From cce57cd74b6dafcc207736e2ddf96aa292245fed Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 26 Jul 2015 13:41:46 +0300 Subject: [PATCH] Update assets. clean-css 3.3.6, uglify-js 2.4.24 --- assets/cleancss-browser.js | 14 +++++++------- assets/uglify.js | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/assets/cleancss-browser.js b/assets/cleancss-browser.js index 318344f..4e471bb 100644 --- a/assets/cleancss-browser.js +++ b/assets/cleancss-browser.js @@ -1,7 +1,7 @@ -!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.CleanCSS=e()}}(function(){var e;return function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[a]={exports:{}};e[a][0].call(c.exports,function(t){var r=e[a][1][t];return i(r?r:t)},c,c.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a0?t.errors:null,r):r}return function(e){return t.options.sourceMap?t.inputSourceMapTracker.track(e,function(){return t.options.sourceMapInlineSources?t.inputSourceMapTracker.resolveSources(function(){return r(e)}):r(e)}):r(e)}}function a(e,t){return t.stats=e.stats,t.errors=e.errors,t.warnings=e.warnings,t}function s(e,t){var n=r.hrtime();e.stats.originalSize=e.sourceTracker.removeAll(t).length,t=l(e,t);var i=r.hrtime(n);return e.stats.timeSpent=~~(1e3*i[0]+i[1]/1e6),e.stats.efficiency=1-t.styles.length/e.stats.originalSize,e.stats.minifiedSize=t.styles.length,t}function u(e){return function(t,n){var i=t.constructor.name+"#"+n,o=r.hrtime();e(t,n);var a=r.hrtime(o);console.log("%d ms: "+i,1e3*a[0]+a[1]/1e6)}}function l(e,t){var r=e.options,n=e.inputSourceMapTracker,i=new g(e,r.keepSpecialComments,r.keepBreaks,r.sourceMap),o=new m(r.sourceMap),a=new v(r.sourceMap),s=new b(e,r.sourceMap,r.compatibility.properties.urlQuotes),l=new h(r,e),c=r.sourceMap?d:p,y=function(e,r){t="function"==typeof e?e(t):e[r](t)};return r.benchmark&&(y=u(y)),y(i,"escape"),y(o,"escape"),y(s,"escape"),y(a,"escape"),y(function(){return l.process(t,c,function(t){return t=a.restore(t),t=s.restore(t),t=r.rebase?f(t,e):t,t=o.restore(t),i.restore(t)},n)}),t}var c=e("./imports/inliner"),f=e("./urls/rebase"),h=e("./selectors/optimizer"),p=e("./stringifier/simple"),d=e("./stringifier/source-maps"),g=e("./text/comments-processor"),m=e("./text/expressions-processor"),v=e("./text/free-text-processor"),b=e("./text/urls-processor"),y=e("./utils/compatibility"),w=e("./utils/input-source-map-tracker"),x=e("./utils/source-tracker"),_=e("./utils/source-reader"),k=e("./properties/validator"),O=e("fs"),E=e("path"),S=5e3,C=t.exports=function(e){e=e||{},this.options={advanced:void 0===e.advanced?!0:!!e.advanced,aggressiveMerging:void 0===e.aggressiveMerging?!0:!!e.aggressiveMerging,benchmark:e.benchmark,compatibility:new y(e.compatibility).toOptions(),debug:e.debug,explicitRoot:!!e.root,explicitTarget:!!e.target,inliner:e.inliner||{},keepBreaks:e.keepBreaks||!1,keepSpecialComments:"keepSpecialComments"in e?e.keepSpecialComments:"*",mediaMerging:void 0===e.mediaMerging?!0:!!e.mediaMerging,processImport:void 0===e.processImport?!0:!!e.processImport,rebase:void 0===e.rebase?!0:!!e.rebase,relativeTo:e.relativeTo,restructuring:void 0===e.restructuring?!0:!!e.restructuring,root:e.root||r.cwd(),roundingPrecision:e.roundingPrecision,semanticMerging:void 0===e.semanticMerging?!1:!!e.semanticMerging,shorthandCompacting:void 0===e.shorthandCompacting?!0:!!e.shorthandCompacting,sourceMap:e.sourceMap,sourceMapInlineSources:!!e.sourceMapInlineSources,target:!e.target||n(e.target)||i(e.target)?e.target:E.dirname(e.target)},this.options.inliner.timeout=this.options.inliner.timeout||S,this.options.inliner.request=this.options.inliner.request||{}};C.prototype.minify=function(e,t){var n={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,localOnly:!t,sourceTracker:new x,validator:new k(this.options.compatibility)};if(n.options.sourceMap&&(n.inputSourceMapTracker=new w(n)),n.sourceReader=new _(n,e),e=n.sourceReader.toString(),n.options.processImport||e.indexOf("@shallow")>0){var i=t?r.nextTick:function(e){return e()};return i(function(){return new c(n).process(e,{localOnly:n.localOnly,whenDone:o(t,n)})})}return o(t,n)(e)}}).call(this,e("_process"))},{"./imports/inliner":5,"./properties/validator":19,"./selectors/optimizer":24,"./stringifier/simple":32,"./stringifier/source-maps":33,"./text/comments-processor":34,"./text/expressions-processor":36,"./text/free-text-processor":37,"./text/urls-processor":38,"./urls/rebase":43,"./utils/compatibility":46,"./utils/input-source-map-tracker":47,"./utils/source-reader":50,"./utils/source-tracker":51,_process:69,fs:53,path:68}],2:[function(e,t,r){function n(e,t,r,n){return t+s[r.toLowerCase()]+n}function i(e,t,r){return u[t.toLowerCase()]+r}var o={},a={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},s={},u={};for(var l in a){var c=a[l];l.length-1,r=e.replace(f,n);return r!=e&&(r=r.replace(f,n)),t?r.replace(h,i):r},t.exports=o},{}],3:[function(e,t,r){function n(e,t,r){this.hue=e,this.saturation=t,this.lightness=r}function i(e,t,r){var n,i,a;if(e%=360,0>e&&(e+=360),e=~~e/360,0>t?t=0:t>100&&(t=100),t=~~t/100,0>r?r=0:r>100&&(r=100),r=~~r/100,0===t)n=i=a=r;else{var s=.5>r?r*(1+t):r+t-r*t,u=2*r-s;n=o(u,s,e+1/3),i=o(u,s,e),a=o(u,s,e-1/3)}return[~~(255*n),~~(255*i),~~(255*a)]}function o(e,t,r){return 0>r&&(r+=1),r>1&&(r-=1),1/6>r?e+6*(t-e)*r:.5>r?t:2/3>r?e+(t-e)*(2/3-r)*6:e}n.prototype.toHex=function(){var e=i(this.hue,this.saturation,this.lightness),t=e[0].toString(16),r=e[1].toString(16),n=e[2].toString(16);return"#"+((1==t.length?"0":"")+t)+((1==r.length?"0":"")+r)+((1==n.length?"0":"")+n)},t.exports=n},{}],4:[function(e,t,r){function n(e,t,r){this.red=e,this.green=t,this.blue=r}n.prototype.toHex=function(){var e=Math.max(0,Math.min(~~this.red,255)),t=Math.max(0,Math.min(~~this.green,255)),r=Math.max(0,Math.min(~~this.blue,255));return"#"+("00000"+(e<<16|t<<8|r).toString(16)).slice(-6)},t.exports=n},{}],5:[function(e,t,r){(function(r){function n(e){this.outerContext=e}function i(e,t){if(t.shallow)return t.shallow=!1,t.done.push(e),s(t);for(var r=0,n=0,i=0,o=u(e);n-1&&-1==n?r:-1==r&&n>-1?n:Math.min(r,n)}function s(e){return e.left.length>0?i.apply(null,e.left.shift()):e.whenDone(e.done.join(""))}function u(e){var t=/(\/\*(?!\*\/)[\s\S]*?\*\/)/,r=0,n=0,i=!1;return function o(a){var s,u=0,l=0,c=0,f=0;return i?!1:a>r&&n>a?!0:(s=e.match(t))?(r=u=s.index,l=u+s[0].length,f=l+n,c=f-s[0].length,e=e.substring(l),n=f,a>f?o(a):f>a&&a>c):(i=!0,!1)}}function l(e){for(var t=u(e),r=-1;;)if(r=e.indexOf("{",r+1),-1==r||!t(r))break;return r>-1}function c(e,t,r,n){n.shallow=e.indexOf("@shallow")>0;var i=e.substring(a(e,t)+"@import".length+1,r).replace(/@shallow\)$/,")").trim(),o=0===i.indexOf("url("),u=o?4:0,c=/^['"]/.exec(i.substring(u,u+2)),d=c?i.indexOf(c[0],u+1):new w(" ").split(i)[0].length-(o?1:0),g=i.substring(u,d).replace(/['"]/g,"").replace(/\)$/,"").trim(),m=i.substring(d+1).replace(/^\)/,"").trim(),v=n.isRemote||k.test(g);if(n.localOnly&&v)return n.afterContent||l(n.done.join(""))?n.warnings.push('Ignoring remote @import of "'+g+'" as no callback given.'):p(g,m,n),s(n);if(!v&&n.afterContent)return n.warnings.push('Ignoring local @import of "'+g+'" as after other CSS content.'),s(n);var b=v?f:h;return b(g,m,n)}function f(e,t,n){function a(e){h||(h=!0,n.errors.push('Broken @import declaration of "'+u+'" - '+e),p(u,t,n),r.nextTick(function(){s(n)}))}var u=k.test(e)?e:b.resolve(n.relativeTo,e),l=u;if(0===u.indexOf("//")&&(u="http:"+u),n.visited.indexOf(u)>-1)return s(n);n.debug&&console.error("Inlining remote stylesheet: "+u),n.visited.push(u);var c=0===u.indexOf("http://")?m.get:v.get,h=!1,d=x(b.parse(u),n.inliner.request);c(d,function(e){if(e.statusCode<200||e.statusCode>399)return a("error "+e.statusCode);if(e.statusCode>299){var s=b.resolve(u,e.headers.location);return f(s,t,n)}var c=[],h=b.parse(u);e.on("data",function(e){c.push(e.toString())}),e.on("end",function(){var e=c.join("");n.rebase&&(e=y(e,{toBase:l},n)),n.sourceReader.trackSource(u,e),e=n.sourceTracker.store(u,e),e=o(e,u),t.length>0&&(e="@media "+t+"{"+e+"}");var a=x(n,{isRemote:!0,relativeTo:h.protocol+"//"+h.host+h.pathname});r.nextTick(function(){i(e,a)})})}).on("error",function(e){a(e.message)}).on("timeout",function(){a("timeout")}).setTimeout(n.inliner.timeout)}function h(e,t,r){var n="/"==e[0]?r.root:r.relativeTo,o=g.resolve(g.join(n,e));if(!d.existsSync(o)||!d.statSync(o).isFile())return r.errors.push('Broken @import declaration of "'+e+'"'),s(r);if(r.visited.indexOf(o)>-1)return s(r);r.debug&&console.error("Inlining local stylesheet: "+o),r.visited.push(o);var a=g.dirname(o),u=d.readFileSync(o,"utf8");if(r.rebase){var l={relative:!0,fromBase:a,toBase:r.baseRelativeTo};u=y(u,l,r)}var c=g.relative(r.root,o);r.sourceReader.trackSource(c,u),u=r.sourceTracker.store(c,u),t.length>0&&(u="@media "+t+"{"+u+"}");var f=x(r,{relativeTo:a});return i(u,f)}function p(e,t,r){var n="@import url("+e+")"+(t.length>0?" "+t:"")+";";r.done.push(n)}var d=e("fs"),g=e("path"),m=e("http"),v=e("https"),b=e("url"),y=e("../urls/rewrite"),w=e("../utils/splitter.js"),x=e("../utils/object.js").override,_=/\/\*# sourceMappingURL=(\S+) \*\//,k=/^(https?:)?\/\//;n.prototype.process=function(e,t){var r=this.outerContext.options.root;return t=x(t,{baseRelativeTo:this.outerContext.options.relativeTo||r,debug:this.outerContext.options.debug,done:[],errors:this.outerContext.errors,left:[],inliner:this.outerContext.options.inliner,rebase:this.outerContext.options.rebase,relativeTo:this.outerContext.options.relativeTo||r,root:r,sourceReader:this.outerContext.sourceReader,sourceTracker:this.outerContext.sourceTracker,warnings:this.outerContext.warnings,visited:[]}),i(e,t)},t.exports=n}).call(this,e("_process"))},{"../urls/rewrite":45,"../utils/object.js":48,"../utils/splitter.js":52,_process:69,fs:53,http:60,https:64,path:68,url:87}],6:[function(e,t,r){function n(e){return function(t){return"invert"==t[0]||e.isValidColor(t[0])}}function i(e){return function(t){return"inherit"!=t[0]&&e.isValidStyle(t[0])}}function o(e,t,r){var n=r[e];return p(n.doubleValues&&2==n.defaultValue.length?[[e,t.important],[n.defaultValue[0]],[n.defaultValue[1]]]:n.doubleValues&&1==n.defaultValue.length?[[e,t.important],[n.defaultValue[0]]]:[[e,t.important],[n.defaultValue]])}function a(e){return function(t){return"inherit"!=t[0]&&e.isValidWidth(t[0])}}function s(e,t,r){var n=o("background-image",e,t),i=o("background-position",e,t),a=o("background-size",e,t),s=o("background-repeat",e,t),u=o("background-attachment",e,t),l=o("background-origin",e,t),c=o("background-clip",e,t),f=o("background-color",e,t),h=[n,i,a,s,u,l,c,f],p=e.value,g=!1,m=!1,v=!1,b=!1;if(1==e.value.length&&"inherit"==e.value[0][0])return f.value=n.value=s.value=i.value=a.value=l.value=c.value=e.value,h;for(var y=p.length-1;y>=0;y--){var w=p[y];if(r.isValidBackgroundAttachment(w[0]))u.value=[w];else if(r.isValidBackgroundBox(w[0]))m?(l.value=[w],v=!0):(c.value=[w],m=!0);else if(r.isValidBackgroundRepeat(w[0]))b?s.value.unshift(w):(s.value=[w],b=!0);else if(r.isValidBackgroundPositionPart(w[0])||r.isValidBackgroundSizePart(w[0]))if(y>0){var x=p[y-1];if(x[0].indexOf("/")>0){var _=new d("/").split(x[0]);a.value=[[_.pop()].concat(x.slice(1)),w],p[y-1]=[_.pop()].concat(x.slice(1))}else y>1&&"/"==p[y-2]?(a.value=[x,w],y-=2):"/"==p[y-1]?a.value=[w]:(g||(i.value=[]),i.value.unshift(w),g=!0)}else g||(i.value=[]),i.value.unshift(w),g=!0;else if(r.isValidBackgroundPositionAndSize(w[0])){var k=new d("/").split(w[0]);a.value=[[k.pop()].concat(w.slice(1))],i.value=[[k.pop()].concat(w.slice(1))]}else f.value!=t[f.name].defaultValue&&"none"!=f.value||!r.isValidColor(w[0])?(r.isValidUrl(w[0])||r.isValidFunction(w[0]))&&(n.value=[w]):f.value=[w]}return m&&!v&&(l.value=c.value.slice(0)),h}function u(e,t){for(var r=e.value,n=-1,i=0,a=r.length;a>i;i++)if("/"==r[i][0]){n=i;break}if(-1==n)return l(e,t);var s=o(e.name,e,t);s.value=r.slice(0,n),s.components=l(s,t);var u=o(e.name,e,t);u.value=r.slice(n+1),u.components=l(u,t);for(var c=0;4>c;c++)s.components[c].multiplex=!0,s.components[c].value=s.components[c].value.concat([["/"]]).concat(u.components[c].value);return s.components}function l(e,t){var r=t[e.name].components,n=[],i=e.value;if(i.length<1)return[];i.length<2&&(i[1]=i[0]),i.length<3&&(i[2]=i[0]),i.length<4&&(i[3]=i[1]);for(var o=r.length-1;o>=0;o--){var a=p([[r[o],e.important]]);a.value=[i[o]],n.unshift(a)}return n}function c(e){return function(t,r,n){var i,a,s,u,l=[],c=t.value;for(i=0,s=c.length;s>i;i++)","==c[i][0]&&l.push(i);if(0===l.length)return e(t,r,n);var f=[];for(i=0,s=l.length;s>=i;i++){var h=0===i?0:l[i-1]+1,p=s>i?l[i]:c.length,d=o(t.name,t,r);d.value=c.slice(h,p),f.push(e(d,r,n))}var m=f[0];for(i=0,s=m.length;s>i;i++)for(m[i].multiplex=!0,a=1,u=f.length;u>a;a++)m[i].value.push([g]),Array.prototype.push.apply(m[i].value,f[a][i].value);return m}}function f(e,t,r){var n=o("list-style-type",e,t),i=o("list-style-position",e,t),a=o("list-style-image",e,t),s=[n,i,a];if(1==e.value.length&&"inherit"==e.value[0][0])return n.value=i.value=a.value=[e.value[0]],s;var u=e.value.slice(0),l=u.length,c=0;for(c=0,l=u.length;l>c;c++)if(r.isValidUrl(u[c][0])||"0"==u[c][0]){a.value=[u[c]],u.splice(c,1);break}for(c=0,l=u.length;l>c;c++)if(r.isValidListStyleType(u[c][0])){n.value=[u[c]],u.splice(c,1);break}return u.length>0&&r.isValidListStylePosition(u[0][0])&&(i.value=[u[0]]),s}function h(e,t,r){for(var s,u,l,c=t[e.name],f=[o(c.components[0],e,t),o(c.components[1],e,t),o(c.components[2],e,t)],h=0;3>h;h++){var p=f[h];p.name.indexOf("color")>0?s=p:p.name.indexOf("style")>0?u=p:l=p}if(1==e.value.length&&"inherit"==e.value[0][0]||3==e.value.length&&"inherit"==e.value[0][0]&&"inherit"==e.value[1][0]&&"inherit"==e.value[2][0])return s.value=u.value=l.value=[e.value[0]],f;var d,g,m=e.value.slice(0);return m.length>0&&(g=m.filter(a(r)),d=g.length>1&&("none"==g[0]||"auto"==g[0])?g[1]:g[0],d&&(l.value=[d],m.splice(m.indexOf(d),1))),m.length>0&&(d=m.filter(i(r))[0],d&&(u.value=[d],m.splice(m.indexOf(d),1))),m.length>0&&(d=m.filter(n(r))[0],d&&(s.value=[d],m.splice(m.indexOf(d),1))),f}var p=e("./wrap-for-optimizing").single,d=e("../utils/splitter"),g=",";t.exports={background:s,border:h,borderRadius:u,fourValues:l,listStyle:f,multiplex:c,outline:h}},{"../utils/splitter":52,"./wrap-for-optimizing":21}],7:[function(e,t,r){function n(){return!0}function i(e,t,r){var n=e.value[0][0],i=t.value[0][0];return"none"==i||"inherit"==i||r.isValidUrl(i)?!0:"none"==n||"inherit"==n||r.isValidUrl(n)?!1:l(e,t,r)}function o(e,t,r){return a(e.components[2],t.components[2],r)}function a(e,t,r){var n=e.value[0][0],i=t.value[0][0];return r.isValidNamedColor(i)||r.isValidHexColor(i)?!0:r.isValidNamedColor(n)||r.isValidHexColor(n)?!1:r.isValidRgbaColor(i)||r.isValidHslaColor(i)?!0:r.isValidRgbaColor(n)||r.isValidHslaColor(n)?!1:l(e,t,r)}function s(e,t,r){var n=e.value[0][0],i=t.value[0][0];return!(r.isValidFunction(n)^r.isValidFunction(i))}function u(e,t){var r=e.value[0][0],n=t.value[0][0];return r===n}function l(e,t,r){var n=e.value[0][0],i=t.value[0][0];return r.areSameFunction(n,i)?!0:n===i}function c(e,t,r){var n=e.value[0][0],i=t.value[0][0];return r.isValidAndCompatibleUnitWithoutFunction(n)&&!r.isValidAndCompatibleUnitWithoutFunction(i)?!1:r.isValidUnitWithoutFunction(i)?!0:r.isValidUnitWithoutFunction(n)?!1:r.isValidFunctionWithoutVendorPrefix(i)&&r.isValidFunctionWithoutVendorPrefix(n)?!0:l(e,t,r)}t.exports={always:n,backgroundImage:i,border:o,color:a,sameValue:u,sameFunctionOrValue:l,twoOptionalFunctions:s,unit:c}},{}],8:[function(e,t,r){function n(e){for(var t=i(e),r=e.components.length-1;r>=0;r--){var n=i(e.components[r]);n.value=e.components[r].value.slice(0),t.components.unshift(n)}return t.dirty=!0,t.value=e.value.slice(0),t}function i(e){var t=o([[e.name,e.important,e.hack]]);return t.unused=!1,t}var o=e("./wrap-for-optimizing").single;t.exports={deep:n,shallow:i}},{"./wrap-for-optimizing":21}],9:[function(e,t,r){var n=e("./break-up"),i=e("./can-override"),o=e("./restore"),a={color:{canOverride:i.color,defaultValue:"transparent",shortestValue:"red"},background:{components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:n.multiplex(n.background),defaultValue:"0 0",restore:o.multiplex(o.background),shortestValue:"0",shorthand:!0},"background-clip":{canOverride:i.always,defaultValue:"border-box",shortestValue:"border-box"},"background-color":{canOverride:i.color,defaultValue:"transparent",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:i.backgroundImage,defaultValue:"none"},"background-origin":{canOverride:i.always,defaultValue:"padding-box",shortestValue:"border-box"},"background-repeat":{canOverride:i.always,defaultValue:["repeat"],doubleValues:!0},"background-position":{canOverride:i.always,defaultValue:["0","0"],doubleValues:!0,shortestValue:"0"},"background-size":{canOverride:i.always,defaultValue:["auto"],doubleValues:!0,shortestValue:"0 0"},"background-attachment":{canOverride:i.always,defaultValue:"scroll"},border:{breakUp:n.border,canOverride:i.border,components:["border-width","border-style","border-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-color":{canOverride:i.color,defaultValue:"none",shorthand:!0},"border-style":{canOverride:i.always,defaultValue:"none",shorthand:!0},"border-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0",shorthand:!0},"list-style":{components:["list-style-type","list-style-position","list-style-image"],canOverride:i.always,breakUp:n.listStyle,restore:o.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-type":{canOverride:i.always,defaultValue:"__hack",shortestValue:"none"},"list-style-position":{canOverride:i.always,defaultValue:"outside",shortestValue:"inside"},"list-style-image":{canOverride:i.always,defaultValue:"none"},outline:{components:["outline-color","outline-style","outline-width"],breakUp:n.outline,restore:o.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:i.color,defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:i.always,defaultValue:"none"},"outline-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0"},"-moz-transform":{canOverride:i.sameFunctionOrValue},"-ms-transform":{canOverride:i.sameFunctionOrValue},"-webkit-transform":{canOverride:i.sameFunctionOrValue},transform:{canOverride:i.sameFunctionOrValue}},s=function(e,t,r){r=r||{},a[e]={canOverride:r.canOverride,components:t,breakUp:r.breakUp||n.fourValues,defaultValue:r.defaultValue||"0",restore:r.restore||o.fourValues,shortestValue:r.shortestValue,shorthand:!0};for(var s=0;sl;l++)a[a[u].components[l]].componentOf=u;t.exports=a},{"./break-up":6,"./can-override":7,"./restore":17}],10:[function(e,t,r){function n(e,t,r,n){for(var a=i(t),s=i(r),u=0,l=t.value.length;l>u;u++)for(var c=0,f=r.value.length;f>c;c++)if(t.value[u][0]!=o&&r.value[c][0]!=o&&(a.value=[t.value[u]],s.value=[r.value[c]],!e(a,s,n)))return!1;return!0}var i=e("./clone").shallow,o=",";t.exports=n},{"./clone":8}],11:[function(e,t,r){function n(e){for(var t=e.value.length-1;t>=0;t--)if("inherit"==e.value[t][0])return!0;return!1}t.exports=n},{}],12:[function(e,t,r){function n(e,t,r,n){function i(e){return t===!1||t===!0?t:t.indexOf(e)>-1}function a(t){var r=e[t-1],n=e[t];return h(r.all,r.position)==h(n.all,n.position)}var s,u={},l=null;e:for(var c=0,f=e.length;f>c;c++){var d=e[c],g=!("-ms-filter"!=d.name&&"filter"!=d.name||"background"!=l&&"background-image"!=l)?l:d.name,m=d.important,v=d.hack;if(!d.unused)if(c>0&&g==l&&a(c))d.unused=!0;else{if(g in u&&(r&&g!=l||i(c))){var b=u[g],y=o[g]&&o[g].canOverride,w=!1;for(s=b.length-1;s>=0;s--){var x=e[b[s]],_=x.name!=g,k=x.important,O=x.hack;if(!x.unused&&!(_&&k||!k&&(O&&!v||!O&&v)||k&&("star"==v||"underscore"==v)||!(O||v||_||!y||y(x,d,n)))){if(k&&!m||k&&v){d.unused=!0;continue e}w=!0,x.unused=!0}}w&&(c=-1,u={})}else{u[g]=u[g]||[],u[g].push(c);var E=p[g];if(E)for(s=E.length-1;s>=0;s--){var S=E[s];u[S]=u[S]||[],u[S].push(c)}}l=g}}}function i(e,t,r,i,o,h){var p=a(t);s(p,h),n(p,r,o.aggressiveMerging,h),i&&o.shorthandCompacting&&(u(p,o.compatibility,h),l(p,o.sourceMap,h)),f(p),c(p)}var o=e("./compactable"),a=e("./wrap-for-optimizing").all,s=e("./populate-components"),u=e("./override-compactor"),l=e("./shorthand-compactor"),c=e("./remove-unused"),f=e("./restore-shorthands"),h=e("../stringifier/one-time").property,p={"animation-delay":["animation"],"animation-direction":["animation"],"animation-duration":["animation"],"animation-fill-mode":["animation"],"animation-iteration-count":["animation"],"animation-name":["animation"],"animation-play-state":["animation"],"animation-timing-function":["animation"],"-moz-animation-delay":["-moz-animation"],"-moz-animation-direction":["-moz-animation"],"-moz-animation-duration":["-moz-animation"],"-moz-animation-fill-mode":["-moz-animation"],"-moz-animation-iteration-count":["-moz-animation"],"-moz-animation-name":["-moz-animation"],"-moz-animation-play-state":["-moz-animation"],"-moz-animation-timing-function":["-moz-animation"],"-o-animation-delay":["-o-animation"],"-o-animation-direction":["-o-animation"],"-o-animation-duration":["-o-animation"],"-o-animation-fill-mode":["-o-animation"],"-o-animation-iteration-count":["-o-animation"],"-o-animation-name":["-o-animation"],"-o-animation-play-state":["-o-animation"],"-o-animation-timing-function":["-o-animation"],"-webkit-animation-delay":["-webkit-animation"],"-webkit-animation-direction":["-webkit-animation"],"-webkit-animation-duration":["-webkit-animation"],"-webkit-animation-fill-mode":["-webkit-animation"],"-webkit-animation-iteration-count":["-webkit-animation"],"-webkit-animation-name":["-webkit-animation"],"-webkit-animation-play-state":["-webkit-animation"],"-webkit-animation-timing-function":["-webkit-animation"],"border-color":["border"],"border-style":["border"],"border-width":["border"],"border-bottom":["border"],"border-bottom-color":["border-bottom","border-color","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left":["border"],"border-left-color":["border-left","border-color","border"],"border-left-style":["border-left","border-style","border"],"border-left-width":["border-left","border-width","border"],"border-right":["border"],"border-right-color":["border-right","border-color","border"],"border-right-style":["border-right","border-style","border"],"border-right-width":["border-right","border-width","border"],"border-top":["border"],"border-top-color":["border-top","border-color","border"],"border-top-style":["border-top","border-style","border"],"border-top-width":["border-top","border-width","border"],"font-family":["font"],"font-size":["font"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"transition-delay":["transition"],"transition-duration":["transition"],"transition-property":["transition"],"transition-timing-function":["transition"],"-moz-transition-delay":["-moz-transition"],"-moz-transition-duration":["-moz-transition"],"-moz-transition-property":["-moz-transition"],"-moz-transition-timing-function":["-moz-transition"],"-o-transition-delay":["-o-transition"],"-o-transition-duration":["-o-transition"],"-o-transition-property":["-o-transition"],"-o-transition-timing-function":["-o-transition"],"-webkit-transition-delay":["-webkit-transition"],"-webkit-transition-duration":["-webkit-transition"],"-webkit-transition-property":["-webkit-transition"],"-webkit-transition-timing-function":["-webkit-transition"]};t.exports=i},{"../stringifier/one-time":31,"./compactable":9,"./override-compactor":13,"./populate-components":14,"./remove-unused":15,"./restore-shorthands":16,"./shorthand-compactor":18,"./wrap-for-optimizing":21}],13:[function(e,t,r){function n(e){return function(t){return e.name===t.name}}function i(e,t){for(var r=0;r-1}function a(e,t){t.unused=!0,f(t,h(e)),e.value=t.value}function s(e,t){t.unused=!0,e.multiplex=!0,e.value=t.value}function u(e,t){t.unused=!0,e.value=t.value}function l(e,t){t.multiplex?s(e,t):e.multiplex?a(e,t):u(e,t)}function c(e,t){t.unused=!0;for(var r=0,n=e.components.length;n>r;r++)l(e.components[r],t.components[r],e.multiplex)}function f(e,t){e.multiplex=!0;for(var r=0,n=e.components.length;n>r;r++){var i=e.components[r];if(!i.multiplex)for(var o=i.value.slice(0),a=1;t>a;a++)i.value.push([j]),Array.prototype.push.apply(i.value,o)}}function h(e){for(var t=0,r=0,n=e.value.length;n>r;r++)e.value[r][0]==j&&t++;return t+1}function p(e){var t=[[e.name]].concat(e.value);return L([t],0).length}function d(e,t,r){for(var n=0,i=t;i>=0&&(e[i].name!=r||e[i].unused||n++,!(n>1));i--);return n>1}function g(e,t,r){for(var n=0,i=e.components.length;i>n;n++)if(m(r.isValidFunction,e.components[n]))return!0;return!1}function m(e,t){for(var r=0,n=t.value.length;n>r;r++)if(t.value[r][0]!=j&&e(t.value[r][0]))return!0;return!1}function v(e,t){if(!e.multiplex&&!t.multiplex||e.multiplex&&t.multiplex)return!1;var r,i=e.multiplex?e:t,o=e.multiplex?t:e,u=E(i);A([u]);var l=E(o);A([l]);var c=p(u)+1+p(l);e.multiplex?(r=u.components.filter(n(l))[0],a(r,l)):(r=l.components.filter(n(u))[0],f(l,h(u)),s(r,u)),A([l]);var d=p(l);return d>c}function b(e){return e.name in O}function y(e,t){return!e.multiplex&&("background"==e.name||"background-image"==e.name)&&t.multiplex&&("background"==t.name||"background-image"==t.name)&&w(t.value)}function w(e){for(var t=x(e),r=0,n=t.length;n>r;r++)if(1==t[r].length&&"none"==t[r][0][0])return!0;return!1}function x(e){for(var t=[],r=0,n=[],i=e.length;i>r;r++){var o=e[r];o[0]==j?(t.push(n),n=[]):n.push(o)}return t.push(n),t}function _(e,t,r){var a,s,u,p,m,w,x;e:for(m=e.length-1;m>=0;m--)if(s=e[m],b(s))for(a=O[s.name].canOverride||k.sameValue,w=m-1;w>=0;w--)if(u=e[w],b(u)&&!u.unused&&!s.unused&&!(u.hack&&!s.hack||!u.hack&&s.hack||C(s)||y(u,s)))if(!u.shorthand&&s.shorthand&&o(s,u)){if(!s.important&&u.important)continue;if(!R([u],s.components))continue;p=s.components.filter(n(u))[0],a=O[u.name]&&O[u.name].canOverride||k.sameValue,M(a,u,p,r)&&(u.unused=!0)}else if(u.shorthand&&!s.shorthand&&o(u,s)){if(s.important&&!u.important)continue;if(d(e,m-1,u.name))continue;if(g(u,s,r))continue;if(p=u.components.filter(n(s))[0],M(a,p,s,r)){var _=!t.properties.backgroundClipMerging&&p.name.indexOf("background-clip")>-1||!t.properties.backgroundOriginMerging&&p.name.indexOf("background-origin")>-1||!t.properties.backgroundSizeMerging&&p.name.indexOf("background-size")>-1,E=O[s.name].nonMergeableValue===s.value[0][0];if(_||E)continue;if(!t.properties.merging&&i(u,r))continue;if(p.value[0][0]!=s.value[0][0]&&(C(u)||C(s)))continue;if(v(u,s))continue;!u.multiplex&&s.multiplex&&f(u,h(s)),l(p,s),u.dirty=!0}}else if(u.shorthand&&s.shorthand&&u.name==s.name){if(!s.important&&u.important){s.unused=!0;continue e}if(s.important&&!u.important){ -u.unused=!0;continue}for(x=u.components.length-1;x>=0;x--){var S=u.components[x],A=s.components[x];if(a=O[S.name].canOverride||k.sameValue,!M(a,S,A,r))continue e;if(!M(k.twoOptionalFunctions,S,A,r)&&r.isValidFunction(A))continue e}c(u,s),u.dirty=!0}else if(u.shorthand&&s.shorthand&&o(u,s)){if(!u.important&&s.important)continue;if(p=u.components.filter(n(s))[0],a=O[s.name].canOverride||k.sameValue,!M(a,p,s,r))continue;if(u.important&&!s.important){s.unused=!0;continue}var L=O[s.name].restore(s,O);if(L.length>1)continue;p=u.components.filter(n(s))[0],l(p,s),s.dirty=!0}else if(u.name==s.name){if(u.important&&!s.important){s.unused=!0;continue}if(a=O[s.name].canOverride||k.sameValue,!M(a,u,s,r))continue;u.unused=!0}}var k=e("./can-override"),O=e("./compactable"),E=e("./clone").deep,S=e("./clone").shallow,C=e("./has-inherit"),A=e("./restore-shorthands"),M=e("./every-combination"),R=e("./vendor-prefixes").same,L=e("../stringifier/one-time").property,j=",";t.exports=_},{"../stringifier/one-time":31,"./can-override":7,"./clone":8,"./compactable":9,"./every-combination":10,"./has-inherit":11,"./restore-shorthands":16,"./vendor-prefixes":20}],14:[function(e,t,r){function n(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r],o=i[n.name];o&&o.shorthand&&(n.shorthand=!0,n.dirty=!0,n.components=o.breakUp(n,i,t),n.components.length>0?n.multiplex=n.components[0].multiplex:n.unused=!0)}}var i=e("./compactable");t.exports=n},{"./compactable":9}],15:[function(e,t,r){function n(e){for(var t=e.length-1;t>=0;t--)e[t].unused&&e[t].all.splice(t,1)}t.exports=n},{}],16:[function(e,t,r){function n(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=i[r.name];if(n&&n.shorthand&&r.dirty&&!r.unused){var o=n.restore(r,i);if(r.value=o,!("all"in r))continue;var a=r.all[r.position];a.splice(1,a.length-1),Array.prototype.push.apply(a,o)}}}var i=e("./compactable");t.exports=n},{"./compactable":9}],17:[function(e,t,r){function n(e,t,r){function n(e){Array.prototype.unshift.apply(l,e.value)}function o(e){var r=t[e.name];return r.doubleValues?1==r.defaultValue.length?e.value[0][0]==r.defaultValue[0]&&(e.value[1]?e.value[1][0]==r.defaultValue[0]:!0):e.value[0][0]==r.defaultValue[0]&&(e.value[1]?e.value[1][0]:e.value[0][0])==r.defaultValue[1]:e.value[0][0]==r.defaultValue}for(var a,s,u=e.components,l=[],c=u.length-1;c>=0;c--){var h=u[c],p=o(h);if("background-clip"==h.name){var d=u[c-1],g=o(d);a=h.value[0][0]==d.value[0][0],s=!a&&(g&&!p||!g&&!p||!g&&p&&h.value[0][0]!=d.value[0][0]),a?n(d):s&&(n(h),n(d)),c--}else if("background-size"==h.name){var m=u[c-1],v=o(m);a=!v&&p,s=!a&&(v&&!p||!v&&!p),a?n(m):s?(n(h),l.unshift([f]),n(m)):1==m.value.length&&n(m),c--}else{if(p||t[h.name].multiplexLastOnly&&!r)continue;n(h)}}return 0===l.length&&1==e.value.length&&"0"==e.value[0][0]&&l.push(e.value[0]),0===l.length&&l.push([t[e.name].defaultValue]),i(l)?[l[0]]:l}function i(e){for(var t=0,r=e.length;r>t;t++){var n=e[t][0];if("inherit"!=n&&n!=c&&n!=f)return!1}return!0}function o(e,t){if(e.multiplex){for(var r=l(e),n=l(e),i=0;4>i;i++){var o=e.components[i],s=l(e);s.value=[o.value[0]],r.components.push(s);var u=l(e);u.value=[o.value[2]],n.components.push(u)}var c=a(r,t),f=a(n,t);return c.length!=f.length||c[0][0]!=f[0][0]||(c.length>1?c[1][0]!=f[1][0]:0)||(c.length>2?c[2][0]!=f[2][0]:0)||(c.length>3?c[3][0]!=f[3][0]:0)?c.concat([["/"]]).concat(f):c}return a(e,t)}function a(e){var t=e.components,r=t[0].value[0],n=t[1].value[0],i=t[2].value[0],o=t[3].value[0];return r[0]==n[0]&&r[0]==i[0]&&r[0]==o[0]?[r]:r[0]==i[0]&&n[0]==o[0]?[r,n]:n[0]==o[0]?[r,n,i]:[r,n,i,o]}function s(e){return function(t,r){if(!t.multiplex)return e(t,r,!0);var n,i,o=0,a=[],s={};for(n=0,i=t.components[0].value.length;i>n;n++)t.components[0].value[n][0]==c&&o++;for(n=0;o>=n;n++){for(var u=l(t),f=0,h=t.components.length;h>f;f++){var p=t.components[f],d=l(p);u.components.push(d);for(var g=s[d.name]||0,m=p.value.length;m>g;g++){if(p.value[g][0]==c){s[d.name]=g+1;break}d.value.push(p.value[g])}}var v=n==o,b=e(u,r,v);Array.prototype.push.apply(a,b),o>n&&a.push([","])}return a}}function u(e,t){for(var r=e.components,n=[],i=r.length-1;i>=0;i--){var o=r[i],a=t[o.name];o.value[0][0]!=a.defaultValue&&n.unshift(o.value[0])}return 0===n.length&&n.push([t[e.name].defaultValue]),n}var l=e("./clone").shallow,c=",",f="/";t.exports={background:n,borderRadius:o,fourValues:a,multiplex:s,withoutDefaults:u}},{"./clone":8}],18:[function(e,t,r){function n(e){var t;for(var r in e){if(void 0!==t&&e[r].important!=t)return!0;t=e[r].important}return!1}function i(e){var t=[];for(var r in e){var n=e[r],i=n.all[n.position],o=i[0][i[0].length-1];Array.isArray(o)&&Array.prototype.push.apply(t,o)}return t}function o(e,t,r,n,o){var a,s=u[r],d=[[r,!1,!1],[s.defaultValue]],g=h(d);g.shorthand=!0,g.dirty=!0,f([g],o);for(var m=0,v=s.components.length;v>m;m++){var b=t[s.components[m]],y=u[b.name].canOverride;if(c(b))return;if(!p(y,g.components[m],b,o))return;g.components[m]=l(b),g.important=b.important,a=b.all}for(var w in t)t[w].unused=!0;if(n){var x=i(t);x.length>0&&d[0].push(x)}g.position=a.length,g.all=a,g.all.push(d),d[0][1]=g.important,e.push(g)}function a(e,t,r,i,a){var s=e[t];for(var l in r)if(void 0===s||l!=s.name){var c=u[l],f=r[l];c.components.length>Object.keys(f).length?delete r[l]:n(f)||o(e,f,l,i,a)}}function s(e,t,r){var n={};if(!(e.length<3)){for(var i=0,o=e.length;o>i;i++){var s=e[i];if(!s.unused&&!s.hack){var l=u[s.name];if(l&&l.componentOf)if(s.shorthand)a(e,i,n,t,r);else{var c=l.componentOf;n[c]=n[c]||{},n[c][s.name]=s}}}a(e,i,n,t,r)}}var u=e("./compactable"),l=e("./clone").deep,c=e("./has-inherit"),f=e("./populate-components"),h=e("./wrap-for-optimizing").single,p=e("./every-combination");t.exports=s},{"./clone":8,"./compactable":9,"./every-combination":10,"./has-inherit":11,"./populate-components":14,"./wrap-for-optimizing":21}],19:[function(e,t,r){function n(e){var t=a.slice(0).filter(function(t){return!(t in e.units)||e.units[t]===!0}),r="(\\-?\\.?\\d+\\.?\\d*("+t.join("|")+"|)|auto|inherit)";this.compatibleCssUnitRegex=new RegExp("^"+r+"$","i"),this.compatibleCssUnitAnyRegex=new RegExp("^(none|"+o.join("|")+"|"+r+"|"+f+"|"+l+"|"+c+")$","i")}var i=e("../utils/splitter"),o=["thin","thick","medium","inherit","initial"],a=["px","%","em","in","cm","mm","ex","pt","pc","ch","rem","vh","vm","vmin","vmax","vw"],s="(\\-?\\.?\\d+\\.?\\d*("+a.join("|")+"|)|auto|inherit)",u="(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)",l="[A-Z]+(\\-|[A-Z]|[0-9])+\\(([A-Z]|[0-9]|\\ |\\,|\\#|\\+|\\-|\\%|\\.|\\(|\\))*\\)",c="\\-(\\-|[A-Z]|[0-9])+\\(([A-Z]|[0-9]|\\ |\\,|\\#|\\+|\\-|\\%|\\.|\\(|\\))*\\)",f="var\\(\\-\\-[^\\)]+\\)",h="("+f+"|"+l+"|"+c+")",p="("+s+"|"+u+")",d="(none|"+o.join("|")+"|"+s+"|"+f+"|"+l+"|"+c+")",g=new RegExp("^"+l+"$","i"),m=new RegExp("^"+c+"$","i"),v=new RegExp("^"+f+"$","i"),b=new RegExp("^"+h+"$","i"),y=new RegExp("^"+s+"$","i"),w=new RegExp("^"+p+"$","i"),x=new RegExp("^"+d+"$","i"),_=["repeat","no-repeat","repeat-x","repeat-y","inherit"],k=["inherit","scroll","fixed","local"],O=["center","top","bottom","left","right"],E=["contain","cover"],S=["border-box","content-box","padding-box"],C=["auto","inherit","hidden","none","dotted","dashed","solid","double","groove","ridge","inset","outset"],A=["armenian","circle","cjk-ideographic","decimal","decimal-leading-zero","disc","georgian","hebrew","hiragana","hiragana-iroha","inherit","katakana","katakana-iroha","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],M=["inside","outside","inherit"];n.prototype.isValidHexColor=function(e){return(4===e.length||7===e.length)&&"#"===e[0]},n.prototype.isValidRgbaColor=function(e){return e=e.split(" ").join(""),e.length>0&&0===e.indexOf("rgba(")&&e.indexOf(")")===e.length-1},n.prototype.isValidHslaColor=function(e){return e=e.split(" ").join(""),e.length>0&&0===e.indexOf("hsla(")&&e.indexOf(")")===e.length-1},n.prototype.isValidNamedColor=function(e){return"auto"!==e&&("transparent"===e||"inherit"===e||/^[a-zA-Z]+$/.test(e))},n.prototype.isValidVariable=function(e){return v.test(e)},n.prototype.isValidColor=function(e){return this.isValidNamedColor(e)||this.isValidHexColor(e)||this.isValidRgbaColor(e)||this.isValidHslaColor(e)||this.isValidVariable(e)||this.isValidVendorPrefixedValue(e)},n.prototype.isValidUrl=function(e){return 0===e.indexOf("__ESCAPED_URL_CLEAN_CSS")},n.prototype.isValidUnit=function(e){return x.test(e)},n.prototype.isValidUnitWithoutFunction=function(e){return y.test(e)},n.prototype.isValidAndCompatibleUnit=function(e){return this.compatibleCssUnitAnyRegex.test(e)},n.prototype.isValidAndCompatibleUnitWithoutFunction=function(e){return this.compatibleCssUnitRegex.test(e)},n.prototype.isValidFunctionWithoutVendorPrefix=function(e){return g.test(e)},n.prototype.isValidFunctionWithVendorPrefix=function(e){return m.test(e)},n.prototype.isValidFunction=function(e){return b.test(e)},n.prototype.isValidBackgroundRepeat=function(e){return _.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidBackgroundAttachment=function(e){return k.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidBackgroundBox=function(e){return S.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidBackgroundPositionPart=function(e){return O.indexOf(e)>=0||w.test(e)||this.isValidVariable(e)},n.prototype.isValidBackgroundPosition=function(e){if("inherit"===e)return!0;for(var t=e.split(" "),r=0,n=t.length;n>r;r++)if(""!==t[r]&&!this.isValidBackgroundPositionPart(t[r])&&!this.isValidVariable(t[r]))return!1;return!0},n.prototype.isValidBackgroundSizePart=function(e){return E.indexOf(e)>=0||y.test(e)||this.isValidVariable(e)},n.prototype.isValidBackgroundPositionAndSize=function(e){if(e.indexOf("/")<0)return!1;var t=new i("/").split(e);return this.isValidBackgroundSizePart(t.pop())&&this.isValidBackgroundPositionPart(t.pop())},n.prototype.isValidListStyleType=function(e){return A.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidListStylePosition=function(e){return M.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidStyle=function(e){return C.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidWidth=function(e){return this.isValidUnit(e)||o.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidVendorPrefixedValue=function(e){return/^-([A-Za-z0-9]|-)*$/gi.test(e)},n.prototype.areSameFunction=function(e,t){if(!this.isValidFunction(e)||!this.isValidFunction(t))return!1;var r=e.substring(0,e.indexOf("(")),n=t.substring(0,t.indexOf("("));return r===n},t.exports=n},{"../utils/splitter":52}],20:[function(e,t,r){function n(e){for(var t=[],r=0,n=e.length;n>r;r++)for(var i=e[r],a=0,s=i.value.length;s>a;a++){var u=o.exec(i.value[a][0]);u&&-1==t.indexOf(u[0])&&t.push(u[0])}return t}function i(e,t){return n(e).sort().join(",")==n(t).sort().join(",")}var o=/$\-moz\-|\-ms\-|\-o\-|\-webkit\-/;t.exports={same:i}},{}],21:[function(e,t,r){function n(e){for(var t=[],r=e.length-1;r>=0;r--)if("string"!=typeof e[r][0]){var n=o(e[r]);n.all=e,n.position=r,t.unshift(n)}return t}function i(e){for(var t=1,r=e.length;r>t;t++)if(","==e[t][0]||"/"==e[t][0])return!0;return!1}function o(e){return{components:[],dirty:!1,hack:e[0][2],important:e[0][1],name:e[0][0],multiplex:e.length>2?i(e):!1,position:0,shorthand:!1,unused:e.length<2,value:e.slice(1)}}t.exports={all:n,single:o}},{}],22:[function(e,t,r){function n(e){var t=[];if("selector"==e[0])for(var r=!/[\.\+#>~\s]/.test(o(e[1])),s=0,u=e[2].length;u>s;s++){var l=e[2][s];if(0!==l.indexOf("__ESCAPED")){var c=e[2][s][0][0];if(0!==c.length){var f=a(e[2],s);t.push([c,f,i(c),e[2][s],c+":"+f,e[1],r])}}}else if("block"==e[0])for(var h=0,p=e[2].length;p>h;h++)t=t.concat(n(e[2][h]));return t}function i(e){return"list-style"==e?e:e.indexOf("-radius")>0?"border-radius":"border-collapse"==e||"border-spacing"==e||"border-image"==e?e:0===e.indexOf("border-")&&/^border\-\w+\-\w+$/.test(e)?e.match(/border\-\w+/)[0]:0===e.indexOf("border-")&&/^border\-\w+$/.test(e)?"border":0===e.indexOf("text-")?e:e.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}var o=e("../stringifier/one-time").selectors,a=e("../stringifier/one-time").value;t.exports=n},{"../stringifier/one-time":31}],23:[function(e,t,r){function n(e){for(var t=e.length-1;t>=0;t--){var r=e[t];switch(r[0]){case"flat-block":case"selector":i(r[2]);break;case"block":n(r[2])}}}function i(e){for(var t=e.length-1;t>=0;t--)"string"!=typeof e[t]&&o(e[t])}function o(e){var t=e[0][0],r=e[e.length-1],n=r[0].indexOf(s)>0,i=!1;t[0]==l?(e[0][0]=t.substring(1),i="underscore"):t[0]==u?(e[0][0]=t.substring(1),i="star"):r[0].indexOf(a)>0&&r[0].indexOf(a)==r[0].length-a.length-1&&(r[0]=r[0].substring(0,r[0].length-a.length-1),i="suffix"),n&&(r[0]=r[0].substring(0,r[0].length-s.length)),e[0].splice(1,0,n,i)}var a="\\",s="!important",u="*",l="_";t.exports=n},{}],24:[function(e,t,r){function n(e,t){this.options=e||{},this.context=t||{}}var i=e("../tokenizer/tokenize"),o=e("./optimizers/simple"),a=e("./optimizers/advanced"),s=e("./optimization-metadata");n.prototype.process=function(e,t,r,n){var u=i(e,this.context);return s(u),new o(this.options).optimize(u),this.options.advanced&&new a(this.options,this.context).optimize(u),t(u,this.options,r,n)},t.exports=n},{"../tokenizer/tokenize":42,"./optimization-metadata":23,"./optimizers/advanced":25,"./optimizers/simple":27}],25:[function(e,t,r){function n(e,t){this.options=e,this.validator=t.validator}function i(e){return/\.|\*| :/.test(e)}function o(e,t){return e>t}function a(e){var t=v(e[1]);return t.indexOf("__")>-1||t.indexOf("--")>-1}function s(e){return e.replace(/--[^ ,>\+~:]+/g,"")}function u(e,t){var r=s(v(e[1]));for(var n in t){var i=t[n],o=s(v(i[1]));(o.indexOf(r)>-1||r.indexOf(o)>-1)&&delete t[n]}}function l(e,t,r){for(var n=0,i=e.length;i>n;n++){var o=e[n];switch(o[0]){case"selector":c(o[1],o[2],!1,!0,t,r);break;case"block":l(o[2],t,r)}}}var c=e("../../properties/optimizer"),f=e("./clean-up"),h=e("../extractor"),p=e("../reorderable").canReorder,d=e("../reorderable").canReorderSingle,g=e("../../stringifier/one-time").all,m=e("../../stringifier/one-time").body,v=e("../../stringifier/one-time").selectors;n.prototype.isSpecial=function(e){return this.options.compatibility.selectors.special.test(e)},n.prototype.removeDuplicates=function(e){for(var t,r,n,i,o={},a=[],s=0,u=e.length;u>s;s++)r=e[s],"selector"==r[0]&&(t=v(r[1]),o[t]&&1==o[t].length?a.push(t):o[t]=o[t]||[],o[t].push(s));for(s=0,u=a.length;u>s;s++){t=a[s],i=[];for(var l=o[t].length-1;l>=0;l--)r=e[o[t][l]],n=m(r[2]),i.indexOf(n)>-1?r[2]=[]:i.push(n)}},n.prototype.mergeAdjacent=function(e){for(var t=[null,[],[]],r=this.options.compatibility.selectors.adjacentSpace,n=0,i=e.length;i>n;n++){var o=e[n];if("selector"==o[0])if("selector"==t[0]&&v(o[1])==v(t[1])){var a=[t[2].length];Array.prototype.push.apply(t[2],o[2]),c(o[1],t[2],a,!0,this.options,this.validator),o[2]=[]}else"selector"!=t[0]||m(o[2])!=m(t[2])||this.isSpecial(v(o[1]))||this.isSpecial(v(t[1]))?t=o:(t[1]=f.selectors(t[1].concat(o[1]),!1,r),o[2]=[]);else t=[null,[],[]]}},n.prototype.reduceNonAdjacent=function(e){for(var t={},r=[],n=e.length-1;n>=0;n--){var i=e[n];if("selector"==i[0]&&0!==i[2].length)for(var o=v(i[1]),a=i[1].length>1&&!this.isSpecial(o),s=a?[o].concat(i[1]):[o],u=0,l=s.length;l>u;u++){var c=s[u];t[c]?r.push(c):t[c]=[],t[c].push({where:n,list:i[1],isPartial:a&&u>0,isComplex:a&&0===u})}}this.reduceSimpleNonAdjacentCases(e,r,t),this.reduceComplexNonAdjacentCases(e,t)},n.prototype.reduceSimpleNonAdjacentCases=function(e,t,r){function n(e,t){return u[e].isPartial&&0===t.length}function i(e,t,r,n){u[r-n-1].isPartial||(e[2]=t)}for(var o=0,a=t.length;a>o;o++){var s=t[o],u=r[s];this.reduceSelector(e,s,u,{filterOut:n,callback:i})}},n.prototype.reduceComplexNonAdjacentCases=function(e,t){function r(e){return i.data[e].wheref;f++){var p=c[f],d=t[p];if(d.length<2)continue e;if(i.data=d,this.reduceSelector(e,p,d,{filterOut:r,callback:n}),m(l[l.length-1])!=m(l[0]))continue e}u[2]=l[0]}}},n.prototype.reduceSelector=function(e,t,r,n){for(var i=[],o=[],a=[],s=[],u=r.length-1,l=0;u>=0;u--)if(!n.filterOut(u,i)){var f=r[u].where,h=e[f];i=i.concat(h[2]),o.push(h[2]),s.push(f)}for(u=0,l=o.length;l>u;u++)o[u].length>0&&a.push((a[u-1]||0)+o[u].length);c(t,i,a,!1,this.options,this.validator);for(var p=s.length,d=i.length-1,g=p-1;g>=0;)if((0===g||i[d]&&o[g].indexOf(i[d])>-1)&&d>-1)d--;else{var m=i.splice(d+1);n.callback(e[s[g]],m,p,g),g--}},n.prototype.mergeNonAdjacentBySelector=function(e){var t,r={},n=[];for(t=e.length-1;t>=0;t--)if("selector"==e[t][0]&&0!==e[t][2].length){var i=v(e[t][1]);r[i]=[t].concat(r[i]||[]),2==r[i].length&&n.push(i)}for(t=n.length-1;t>=0;t--){var o=r[n[t]];e:for(var a=o.length-1;a>0;a--){var s=o[a-1],u=e[s],l=o[a],f=e[l];t:for(var d=1;d>=-1;d-=2){for(var g,m=1==d,b=m?s+1:l-1,y=m?l:s,w=m?1:-1,x=m?u:f,_=m?f:u,k=h(x);b!=y;){var O=h(e[b]);b+=w;var E=m?p(k,O):p(O,k);if(!E&&!m)continue e;if(!E&&m)continue t}m?(g=[x[2].length],Array.prototype.push.apply(x[2],_[2]),_[2]=x[2]):(g=[_[2].length],Array.prototype.push.apply(_[2],x[2])),c(_[1],_[2],g,!0,this.options,this.validator),x[2]=[]}}}},n.prototype.mergeNonAdjacentByBody=function(e){for(var t={},r=this.options.compatibility.selectors.adjacentSpace,n=e.length-1;n>=0;n--){var o=e[n];if("selector"==o[0]){o[2].length>0&&!this.options.semanticMerging&&i(v(o[1]))&&(t={}),o[2].length>0&&this.options.semanticMerging&&a(o)&&u(o,t);var s=t[m(o[2])];!s||this.isSpecial(v(o[1]))||this.isSpecial(v(s[1]))||(o[1]=f.selectors(s[1].concat(o[1]),!1,r),s[2]=[],t[m(o[2])]=null),t[m(o[2])]=o}}},n.prototype.restructure=function(e){function t(e,t,i){for(var o=i.length-1;o>=0;o--){var a=i[o][0],s=r(t,a);if(O[s].length>1&&w(e,O[s])){n(s);break}}}function r(e,t){var r=i(t);return O[r]=O[r]||[],O[r].push([e,t]),r}function n(e){var t,r=e.split(A),n=[];for(var i in O){var o=i.split(A);for(t=o.length-1;t>=0;t--)if(r.indexOf(o[t])>-1){n.push(i);break}}for(t=n.length-1;t>=0;t--)delete O[n[t]]}function i(e){for(var t=[],r=0,n=e.length;n>r;r++)t.push(v(e[r][1]));return t.join(A)}function a(e){for(var t=[],r=[],n=e.length-1;n>=0;n--)S.isSpecial(v(e[n][1]))||(r.unshift(e[n]),e[n][2].length>0&&-1==t.indexOf(e[n])&&t.push(e[n]));return t.length>1?r:[]}function s(e,r){var n=r[0],i=r[1],o=r[4],s=n.length+i.length+1,u=[],c=[],h=a(_[o]);if(!(h.length<2)){var p=l(h,s,1),d=p[0];if(d[1]>0)return t(e,r,p);for(var m=d[0].length-1;m>=0;m--)u=d[0][m][1].concat(u),c.unshift(d[0][m]);u=f.selectorDuplicates(u),g(e,[r],u,c)}}function u(e,t){return e[1]>t[1]}function l(e,t,r){var n=c(e,t,r,C-1);return n.sort(u)}function c(e,t,r,n){var i=[[e,p(e,t,r)]];if(e.length>2&&n>0)for(var o=e.length-1;o>=0;o--){var a=Array.prototype.slice.call(e,0);a.splice(o,1),i=i.concat(c(a,t,r,n-1))}return i}function p(e,t,r){for(var n=0,i=e.length-1;i>=0;i--)n+=e[i][2].length>r?v(e[i][1]).length:-1;return n-(e.length-1)*t+1}function g(t,r,n,i){var o,a,s,u,l=[];for(o=i.length-1;o>=0;o--){var c=i[o];for(a=c[2].length-1;a>=0;a--){var f=c[2][a];for(s=0,u=r.length;u>s;s++){var h=r[s],p=f[0][0],d=h[0],g=h[4];if(p==d&&m([f])==g){c[2].splice(a,1);break}}}}for(o=r.length-1;o>=0;o--)l.push(r[o][3]);var v=["selector",n,l];e.splice(t,0,v)}function b(e,t){var r=t[4],n=_[r];n&&n.length>1&&(y(e,t)||s(e,t))}function y(e,t){var r,n,i=[],o=[],s=t[4],u=a(_[s]);if(!(u.length<2)){e:for(var l in _){var c=_[l];for(r=u.length-1;r>=0;r--)if(-1==c.indexOf(u[r]))continue e;i.push(l)}if(i.length<2)return!1;for(r=i.length-1;r>=0;r--)for(n=k.length-1;n>=0;n--)if(k[n][4]==i[r]){o.unshift([k[n],u]);break}return w(e,o)}}function w(e,t){for(var r,n=0,i=[],o=t.length-1;o>=0;o--){r=t[o][0];var a=r[4];n+=a.length+(o>0?1:0),i.push(r)}var s=t[0][1],u=l(s,n,i.length)[0];if(u[1]>0)return!1;var c=[],h=[];for(o=u[0].length-1;o>=0;o--)c=u[0][o][1].concat(c),h.unshift(u[0][o]);for(c=f.selectorDuplicates(c),g(e,i,c,h),o=i.length-1;o>=0;o--){r=i[o];var p=k.indexOf(r);delete _[r[4]],p>-1&&-1==E.indexOf(p)&&E.push(p)}return!0}function x(e,t,r){var n=e[0],i=t[0];if(n!=i)return!1;var o=t[4],a=_[o];return a&&a.indexOf(r)>-1}for(var _={},k=[],O={},E=[],S=this,C=2,A="%",M=e.length-1;M>=0;M--){var R,L,j,T,B=e[M];if("selector"==B[0])R=!0;else{if("block"!=B[0])continue;R=!1}var V=k.length,P=h(B);E=[];var U=[];for(L=P.length-1;L>=0;L--)for(j=L-1;j>=0;j--)if(!d(P[L],P[j])){U.push(L);break}for(L=0,T=P.length;T>L;L++){var I=P[L],D=!1;for(j=0;V>j;j++){var N=k[j];-1!=E.indexOf(j)||d(I,N)||x(I,N,B)||(b(M+1,N,B),-1==E.indexOf(j)&&(E.push(j),delete _[N[4]])),D||(D=I[0]==N[0]&&I[1]==N[1])}if(R&&!(U.indexOf(L)>-1)){var z=I[4];_[z]=_[z]||[],_[z].push(B),D||k.push(I)}}for(E=E.sort(o),L=0,T=E.length;T>L;L++){var F=E[L]-L;k.splice(F,1)}}for(var $=e[0]&&"at-rule"==e[0][0]&&0===e[0][1][0].indexOf("@charset")?1:0;$r;r++){var i=e[r];if("block"==i[0]){var o=i[1][0]+"%"+g(i[2]),a=t[o];a&&(a[2]=[]),t[o]=i}}},n.prototype.mergeMediaQueries=function(e){for(var t={},r=[],n=e.length-1;n>=0;n--){var i=e[n];if("block"==i[0]){var o=t[i[1][0]];o||(o=[],t[i[1][0]]=o),o.push(n)}}for(var a in t){var s=t[a];e:for(var u=s.length-1;u>0;u--){for(var l=e[s[u]],c=e[s[u-1]],f=h(l),d=s[u]+1;dt;t++){var n=e[t],i=!1;switch(n[0]){case"selector":i=0===n[1].length||0===n[2].length;break;case"block":this.removeEmpty(n[2]),i=0===n[2].length}i&&(e.splice(t,1),t--,r--)}},n.prototype.optimize=function(e){function t(e,n){if(e.forEach(function(e){if("block"==e[0]){var r=/@(-moz-|-o-|-webkit-)?keyframes/.test(e[1][0]);t(e[2],!r)}}),l(e,r.options,r.validator),r.removeDuplicates(e),r.mergeAdjacent(e),r.reduceNonAdjacent(e),r.mergeNonAdjacentBySelector(e),r.mergeNonAdjacentByBody(e),r.options.restructuring&&n&&(r.restructure(e),r.mergeAdjacent(e)),r.options.mediaMerging){r.removeDuplicateMediaQueries(e);for(var i=r.mergeMediaQueries(e),o=i.length-1;o>=0;o--)t(i[o][2])}r.removeEmpty(e)}var r=this;t(e,!0)},t.exports=n},{"../../properties/optimizer":12,"../../stringifier/one-time":31,"../extractor":22,"../reorderable":28,"./clean-up":26}],26:[function(e,t,r){function n(e,t){return"["+t.replace(/ /g,"")+"]"}function i(e,t){return e[0]>t[0]?1:-1}var o={selectors:function(e,t,r){for(var o=[],a=[],s=0,u=e.length;u>s;s++){var l=e[s],c=l[0].replace(/\s+/g," ").replace(/ ?, ?/g,",").replace(/\s*([>\+\~])\s*/g,"$1").trim();r&&c.indexOf("nav")>0&&(c=c.replace(/\+nav(\S|$)/,"+ nav$1")),(!t||-1==c.indexOf("*+html ")&&-1==c.indexOf("*:first-child+html "))&&(c.indexOf("*")>-1&&(c=c.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),c.indexOf("[")>-1&&(c=c.replace(/\[([^\]]+)\]/g,n)),-1==a.indexOf(c)&&(l[0]=c,a.push(c),o.push(l)))}return o.sort(i)},selectorDuplicates:function(e){for(var t=[],r=[],n=0,o=e.length;o>n;n++){var a=e[n];-1==r.indexOf(a[0])&&(r.push(a[0]),t.push(a))}return t.sort(i)},block:function(e,t){e[0]=e[0].replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ \)/g,")"),t||(e[0]=e[0].replace(/\) /g,")"))},atRule:function(e){e[0]=e[0].replace(/\s+/g," ").trim()}};t.exports=o},{}],27:[function(e,t,r){function n(e){this.options=e;var t=["px","em","ex","cm","mm","in","pt","pc","%"],r=["ch","rem","vh","vm","vmax","vmin","vw"];r.forEach(function(r){e.compatibility.units[r]&&t.push(r)}),e.unitsRegexp=new RegExp("(^|\\s|\\(|,)0(?:"+t.join("|")+")(\\W|$)","g"),e.precision={},e.precision.value=void 0===e.roundingPrecision?x:e.roundingPrecision,e.precision.multiplier=Math.pow(10,e.precision.value),e.precision.regexp=new RegExp("(\\d*\\.\\d{"+(e.precision.value+1)+",})px","g")}function i(e,t){return e[t]&&"-"==e[t][0][0]&&parseFloat(e[t][0])<0}function o(e,t){return-1==t.indexOf("0")?t:(t.indexOf("-")>-1&&(t=t.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),t.replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,function(e,t,r){return(t.length>0?".":"")+t+r}).replace(/(^|\D)0\.(\d)/g,"$1.$2"))}function a(e,t){return-1==t.indexOf("0deg")?t:t.replace(/\(0deg\)/g,"(0)")}function s(e,t){return e.indexOf("filter")>-1||-1==t.indexOf(" ")?t:(t=t.replace(/\s+/g," "),t.indexOf("calc")>-1&&(t=t.replace(/\) ?\/ ?/g,")/ ")),t.replace(/\( /g,"(").replace(/ \)/g,")").replace(/, /g,","))}function u(e,t,r){return-1===r.value||-1===t.indexOf(".")?t:t.replace(r.regexp,function(e,t){return Math.round(parseFloat(t)*r.multiplier)/r.multiplier+"px"}).replace(/(\d)\.($|\D)/g,"$1$2")}function l(e,t,r){return/^(?:\-moz\-calc|\-webkit\-calc|calc)\(/.test(t)?t:t.replace(r,"$10$2").replace(r,"$10$2")}function c(e){5==e.length&&"0"===e[1][0]&&"0"===e[2][0]&&"0"===e[3][0]&&"0"===e[4][0]&&(e[0][0].indexOf("box-shadow")>-1?e.splice(3):e.splice(2))}function f(e,t,r){return-1===t.indexOf("#")&&-1==t.indexOf("rgb")&&-1==t.indexOf("hsl")?w.shorten(t):(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,r,n){return new b(t,r,n).toHex()}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,r,n){return new y(t,r,n).toHex()}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(e,t,r){return r[0]==r[1]&&r[2]==r[3]&&r[4]==r[5]?t+"#"+r[0]+r[2]+r[4]:t+"#"+r}).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/g,function(e,t,r){var n=r.split(","),i="hsl"==t&&3==n.length||"hsla"==t&&4==n.length||"rgb"==t&&3==n.length&&r.indexOf("%")>0||"rgba"==t&&4==n.length&&r.indexOf("%")>0;return i?(-1==n[1].indexOf("%")&&(n[1]+="%"),-1==n[2].indexOf("%")&&(n[2]+="%"),t+"("+n.join(",")+")"):e}),r.colors.opacity&&(t=t.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(e){return new v(",").split(t).pop().indexOf("gradient(")>-1?e:"transparent"})),w.shorten(t))}function h(e){4==e.length&&"/"==e[2][0]&&e[1][0]==e[3][0]?e.splice(2):6==e.length&&"/"==e[3][0]&&e[1][0]==e[4][0]&&e[2][0]==e[5][0]?e.splice(3):8==e.length&&"/"==e[4][0]&&e[1][0]==e[5][0]&&e[2][0]==e[6][0]&&e[3][0]==e[7][0]?e.splice(4):10==e.length&&"/"==e[5][0]&&e[1][0]==e[6][0]&&e[2][0]==e[7][0]&&e[3][0]==e[8][0]&&e[4][0]==e[9][0]&&e.splice(5)}function p(e){e.length<3&&(e[1][0]=e[1][0].replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,function(e,t,r){return t.toLowerCase()+r})),e[1][0]=e[1][0].replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")}function d(e){var t=O.indexOf(e[1][0])>-1||e[2]&&O.indexOf(e[2][0])>-1||e[3]&&O.indexOf(e[3][0])>-1;if(!t&&"/"!=e[2]){var r=0;if("normal"==e[1][0]&&r++,e[2]&&"normal"==e[2][0]&&r++,e[3]&&"normal"==e[3][0]&&r++,!(r>1)){var n;E.indexOf(e[1][0])>-1?n=1:e[2]&&E.indexOf(e[2][0])>-1?n=2:e[3]&&E.indexOf(e[3][0])>-1&&(n=3),n&&(e[n][0]=S["font-weight"](e[n][0]))}}}function g(e,t){for(var r,n,g,m,v=0,b=e.length;b>v;v++)if(m=!1,r=e[v],"string"!=typeof r||0!==r.indexOf("__ESCAPED_")){n=r[0][0];var y=r[0][2];if(y&&(("star"==y||"underscore"==y)&&!t.compatibility.properties.iePrefixHack||"suffix"==y&&!t.compatibility.properties.ieSuffixHack)&&(m=!0),0===n.indexOf("padding")&&(i(r,1)||i(r,2)||i(r,3)||i(r,4))&&(m=!0),m)e.splice(v,1),v--,b--;else{for(var w=1,x=r.length;x>w;w++)g=r[w][0],S[n]&&(g=S[n](g,w,x)),g=s(n,g),g=u(n,g,t.precision),g=o(n,g),t.compatibility.properties.zeroUnits&&(g=a(n,g),g=l(n,g,t.unitsRegexp)),t.compatibility.properties.colors&&(g=f(n,g,t.compatibility)),r[w][0]=g;c(r),0===n.indexOf("border")&&n.indexOf("radius")>0?h(r):"filter"==n?p(r):"font"==n&&d(r)}}}var m=e("./clean-up"),v=e("../../utils/splitter"),b=e("../../colors/rgb"),y=e("../../colors/hsl"),w=e("../../colors/hex-name-shortener"),x=2,_="@charset",k=new RegExp("^"+_,"i"),O=["100","200","300","400","500","600","700","800","900"],E=["normal","bold","bolder","lighter"],S={background:function(e,t,r){return 1!=t||2!=r||"none"!=e&&"transparent"!=e?e:"0 0"},"font-weight":function(e){return"normal"==e?"400":"bold"==e?"700":e},outline:function(e,t,r){return 1==t&&2==r&&"none"==e?"0":e}};n.prototype.optimize=function(e){function t(e){for(var t=0,r=e.length;r>t;t++){var n=e[t];"at-rule"==n[0]&&k.test(n[1][0])&&(i||-1==n[1][0].indexOf(_)?(e.splice(t,1),t--,r--):(i=!0,e.splice(t,1),e.unshift(["at-rule",[n[1][0].replace(k,_)]])))}}function r(e){for(var i=!1,o=0,l=e.length;l>o;o++){var c=e[o];switch(c[0]){case"selector":c[1]=m.selectors(c[1],!a,s),g(c[2],n.options);break;case"block":m.block(c[1],u),r(c[2]);break;case"flat-block":m.block(c[1],u),g(c[2],n.options);break;case"at-rule":m.atRule(c[1]),i=!0}(0===c[1].length||c[2]&&0===c[2].length)&&(e.splice(o,1),o--,l--)}i&&t(e)}var n=this,i=!1,o=this.options,a=o.compatibility.selectors.ie7Hack,s=o.compatibility.selectors.adjacentSpace,u=o.compatibility.properties.spaceAfterClosingBrace;r(e)},t.exports=n},{"../../colors/hex-name-shortener":2,"../../colors/hsl":3,"../../colors/rgb":4,"../../utils/splitter":52,"./clean-up":26}],28:[function(e,t,r){function n(e,t){for(var r=t.length-1;r>=0;r--)for(var n=e.length-1;n>=0;n--)if(!i(e[n],t[r]))return!1;return!0}function i(e,t){var r=e[0],n=e[1],i=e[2],f=e[5],h=e[6],p=t[0],d=t[1],g=t[2],m=t[5],v=t[6];return"font"==r&&"line-height"==p||"font"==p&&"line-height"==r?!1:l.test(r)&&l.test(p)?!1:i==g&&a(r)==a(p)&&o(r)^o(p)?!1:("border"!=i||!c.test(g)||"border"!=r&&r!=g)&&("border"!=g||!c.test(i)||"border"!=p&&p!=i)?i!=g?!0:r!=p||i!=g||n!=d&&!s(n,d)?r!=p&&i==g&&r!=i&&p!=g?!0:r!=p&&i==g&&n==d?!0:v&&h&&u(m,f)?!0:!1:!0:!1}function o(e){return/^\-(?:moz|webkit|ms|o)\-/.test(e)}function a(e){return e.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function s(e,t){return o(e)&&o(t)&&e.split("-")[1]!=t.split("-")[2]}function u(e,t){for(var r=0,n=e.length;n>r;r++)for(var i=0,o=t.length;o>i;i++)if(e[r][0]==t[i][0])return!1;return!0}var l=/align\-items|box\-align|box\-pack|flex|justify/,c=/^border\-(top|right|bottom|left|color|style|width|radius)/;t.exports={canReorder:n,canReorderSingle:i}},{}],29:[function(e,t,r){function n(e,t,r){if(!r&&-1==e.indexOf("\n"))return 0===e.indexOf(u)?e:void(t.column+=e.length);for(var n=0,i=e.split("\n"),o=i.length,a=0;;){if(n==o-1)break;var s=i[n];if(/\S/.test(s))break;a+=s.length+1,n++}return t.line+=n,t.column=n>0?0:t.column,t.column+=/^(\s)*/.exec(i[n])[0].length,e.substring(a).trimLeft()}function i(e,t,r){var n=e.source||t.source;return n&&r.resolvePath?r.resolvePath(t.source,n):n}function o(e,t,r){var n={line:t.line,column:t.column,source:t.source},o=null,a=t.sourceMapTracker.isTracking(n.source)?t.sourceMapTracker.originalPositionFor(n,e,r||0):{};if(n.line=a.line||n.line,n.column=a.column||n.column,n.source=a.sourceResolved?a.source:i(a,n,t),t.sourceMapInlineSources){var s=t.sourceMapTracker.sourcesContentFor(t.source);o=s&&s[n.source]?s:t.sourceReader.sourceAt(t.source)}return o?[n.line,n.column,n.source,o]:[n.line,n.column,n.source]}function a(e,t){for(var r=e.split("\n"),n=0,i=r.length;i>n;n++){var o=r[n],a=0;for(n>0&&(t.line++,t.column=0);;){var s=o.indexOf(u,a);if(-1==s){t.column+=o.substring(a).length;break}t.column+=s-a,a+=s-a;var l=o.substring(s,o.indexOf("__",s+1)+2),c=l.substring(l.indexOf("(")+1,l.indexOf(")")).split(",");t.line+=~~c[0],t.column=(0===~~c[0]?t.column:0)+~~c[1],a+=l.length}}}function s(e,t,r,i){var s=n(e,t,r),u=r?o(s,t,i):[];return s&&a(s,t),u}var u="__ESCAPED_";t.exports=s},{}],30:[function(e,t,r){function n(e,t){for(var r=t,n=e.length;n>r;r++)if("string"!=typeof e[r])return!0;return!1}function i(e){return"background"==e[0][0]||"transform"==e[0][0]||"src"==e[0][0]}function o(e,t){return 0===e[t][0].indexOf("var(")}function a(e,t){return")"==e[t][0][e[t][0].length-1]||0===e[t][0].indexOf("__ESCAPED_URL_CLEAN_CSS")}function s(e,t){return","==e[t][0]}function u(e,t){return"/"==e[t][0]}function l(e,t){ -return e[t+1]&&","==e[t+1][0]}function c(e,t){return e[t+1]&&"/"==e[t+1][0]}function f(e){return"filter"==e[0][0]||"-ms-filter"==e[0][0]}function h(e,t,r){return(!r.spaceAfterClosingBrace&&i(e)||o(e,t))&&a(e,t)||c(e,t)||u(e,t)||l(e,t)||s(e,t)}function p(e,t){var r=e[2];"underscore"==r?t.store(_,t):"star"==r&&t.store(w,t)}function d(e,t){for(var r=t.store,n=0,i=e.length;i>n;n++)r(e[n],t),i-1>n&&r(",",t)}function g(e,t){for(var r=0,n=e.length;n>r;r++)m(e,r,r==n-1,t)}function m(e,t,r,n){var i=n.store,o=e[t];"string"==typeof o?i(o,n):(p(o[0],n),i(o[0],n),i(":",n),v(e,t,r,n))}function v(e,t,r,i){for(var o=i.store,a=e[t],s=a[0][1],u=a[0][2],l=1,c=a.length;c>l;l++)o(a[l],i),l==c-1&&"suffix"==u&&o(x,i),l==c-1&&s&&o("!important",i),c-1>l&&(f(a)||!h(a,l,i))?o(" ",i):l==c-1&&!r&&n(e,t+1)&&o(";",i)}function b(e,t){for(var r=t.keepBreaks?y:"",n=t.store,i=0,o=e.length;o>i;i++){var a=e[i];switch(a[0]){case"at-rule":case"text":n(a[1][0],t),n(r,t);break;case"block":d([a[1]],t),n("{",t),b(a[2],t),n("}",t),n(r,t);break;case"flat-block":d([a[1]],t),n("{",t),g(a[2],t),n("}",t),n(r,t);break;default:d(a[1],t),n("{",t),g(a[2],t),n("}",t),n(r,t)}}}var y=e("os").EOL,w="*",x="\\9",_="_";t.exports={all:b,body:g,property:m,selectors:d,value:v}},{os:67}],31:[function(e,t,r){function n(e,t){t.output.push("string"==typeof e?e:e[0])}function i(){return{output:[],store:n}}function o(e){var t=i();return c.all(e,t),t.output.join("")}function a(e){var t=i();return c.body(e,t),t.output.join("")}function s(e,t){var r=i();return c.property(e,t,!0,r),r.output.join("")}function u(e){var t=i();return c.selectors(e,t),t.output.join("")}function l(e,t){var r=i();return c.value(e,t,!0,r),r.output.join("")}var c=e("./helpers");t.exports={all:o,body:a,property:s,selectors:u,value:l}},{"./helpers":30}],32:[function(e,t,r){function n(e,t){t.output.push("string"==typeof e?e:e[0])}function i(e,t,r){var i={keepBreaks:t.keepBreaks,output:[],spaceAfterClosingBrace:t.compatibility.properties.spaceAfterClosingBrace,store:n};return o(e,i,!1),{styles:r(i.output.join("")).trim()}}var o=e("./helpers").all;t.exports=i},{"./helpers":30}],33:[function(e,t,r){(function(r){function n(e,t){var r="string"==typeof e,n=r?e:e[0];n.indexOf("_")>-1&&(n=t.restore(n)),i(n,r?null:e,t),t.output.push(n)}function i(e,t,r){t&&o(t,r);var n=e.split("\n");r.line+=n.length-1,r.column=n.length>1?0:r.column+n.pop().length}function o(e,t){var r=e[e.length-1];if(Array.isArray(r))for(var n=0,i=r.length;i>n;n++)a(r[n],t)}function a(e,t){var r=e[2]||f;c&&(r=r.replace(/\\/g,"/")),t.outputMap.addMapping({generated:{line:t.line,column:t.column},source:r,original:{line:e[0],column:e[1]}}),e[3]&&t.outputMap.setSourceContent(r,e[3][e[2]])}function s(e,t,r,i){var o={column:0,inputMapTracker:i,keepBreaks:t.keepBreaks,line:1,output:[],outputMap:new u,restore:r,sourceMapInlineSources:t.sourceMapInlineSources,spaceAfterClosingBrace:t.compatibility.properties.spaceAfterClosingBrace,store:n};return l(e,o,!1),{sourceMap:o.outputMap,styles:o.output.join("").trim()}}var u=e("source-map").SourceMapGenerator,l=e("./helpers").all,c="win32"==r.platform,f="$stdin";t.exports=s}).call(this,e("_process"))},{"./helpers":30,_process:69,"source-map":90}],34:[function(e,t,r){function n(e,t,r,n){this.comments=new a("COMMENT"),this.specialComments=new a("COMMENT_SPECIAL"),this.context=e,this.restored=0,this.keepAll="*"==t,this.keepOne="1"==t||1===t,this.keepBreaks=r,this.saveWaypoints=n}function i(e){var t=[];return new s(e).each(function(e,r,n){t.push([n,n+e.length])}),function(e){for(var r=0,n=t.length;n>r;r++)if(t[r][0]e)return!0;return!1}}function o(e,t,r,n){for(var i,o=[],a=0;a0?o.join("")+t.substring(a,t.length):t}var a=e("./escape-store"),s=e("../utils/quote-scanner"),u="/*!",l="/*",c="*/",f=e("os").EOL;n.prototype.escape=function(e){for(var t,r,n,o=[],a=0,s=0,h=0,p=0,d=i(e),g=this.saveWaypoints;s0?m.substring(r+f.length).length:p+m.length),g||v){var b=g?[t,n]:null,y=v?this.specialComments.store(m,b):this.comments.store(m,b);o.push(y)}g&&(p=n+1),h=s+c.length}return o.length>0?o.join("")+e.substring(h,e.length):e},n.prototype.restore=function(e){return e=o(this,e,this.comments,!1),e=o(this,e,this.specialComments,!0)},t.exports=n},{"../utils/quote-scanner":49,"./escape-store":35,os:67}],35:[function(e,t,r){function n(e){this.placeholderRoot="ESCAPED_"+e+"_CLEAN_CSS",this.placeholderToData={},this.dataToPlaceholder={},this.count=0,this.restoreMatcher=new RegExp(this.placeholderRoot+"(\\d+)")}var i="__";n.prototype._nextPlaceholder=function(e){return{index:this.count,value:i+this.placeholderRoot+this.count++ +e+i}},n.prototype.store=function(e,t){var r=t?"("+t.join(",")+")":"",n=this.dataToPlaceholder[e];if(!n){var i=this._nextPlaceholder(r);n=i.value,this.placeholderToData[i.index]=e,this.dataToPlaceholder[e]=i.value}return t&&(n=n.replace(/\([^\)]+\)/,r)),n},n.prototype.nextMatch=function(e,t){var r={};return r.start=e.indexOf(this.placeholderRoot,t)-i.length,r.end=e.indexOf(i,r.start+i.length)+i.length,r.start>-1&&r.end>-1&&(r.match=e.substring(r.start,r.end)),r},n.prototype.restore=function(e){var t=this.restoreMatcher.exec(e)[1];return this.placeholderToData[t]},t.exports=n},{}],36:[function(e,t,r){function n(e,t){for(var r=t+a.length,n=0,i=!1,o=!1;;){var l=e[r++];if(i?i="'"!=l&&'"'!=l:(i="'"==l||'"'==l,l==s&&n++,l==u&&n--,l==c&&(o=!0),l!=f||o||1!=n||(r--,n--)),0===n&&l==u)break;if(!l){r=e.substring(0,r).lastIndexOf(f);break}}return r}function i(e){this.expressions=new o("EXPRESSION"),this.saveWaypoints=e}var o=e("./escape-store"),a="expression",s="(",u=")",l=a+s,c="{",f="}",h=e("os").EOL;i.prototype.escape=function(e){for(var t,r,i,o=0,a=0,s=0,u=[],c=0,f=this.saveWaypoints;a0?p.substring(r+h.length).length:c+p.length);var d=f?[t,i]:null,g=this.expressions.store(p,d);u.push(e.substring(s,o)),u.push(g),f&&(c=i+1),s=a}return u.length>0?u.join("")+e.substring(s,e.length):e},i.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=i},{"./escape-store":35,os:67}],37:[function(e,t,r){function n(e){this.matches=new o("FREE_TEXT"),this.saveWaypoints=e}function i(e,t,r){var n=t.lastIndexOf(";",r),i=t.lastIndexOf("{",r),o=0;o=n>-1&&i>-1?Math.max(n,i):-1==n?i:n;var a=t.substring(o+1,r);if(/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(a)&&(e=e.replace(/\\\n|\\\r\n/g,"")),/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/.test(e)&&!/format\($/.test(a)){var s=/^(font|font\-family):/.test(a),u=/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(a),l=/@(-moz-|-o-|-webkit-)?keyframes /.test(a),c=/^(-moz-|-o-|-webkit-)?animation(-name)?:/.test(a);(s||u||l||c)&&(e=e.substring(1,e.length-1))}return e}var o=e("./escape-store"),a=e("../utils/quote-scanner"),s=e("os").EOL;n.prototype.escape=function(e){var t,r,n,i,o=this,u=this.saveWaypoints;return new a(e).each(function(e,a){u&&(t=e.split(s).length-1,r=e.lastIndexOf(s),n=r>0?e.substring(r+s.length).length:e.length,i=[t,n]);var l=o.matches.store(e,i);a.push(l)})},n.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=n},{"../utils/quote-scanner":49,"./escape-store":35,os:67}],38:[function(e,t,r){function n(e,t,r){this.urls=new o("URL"),this.context=e,this.saveWaypoints=t,this.keepUrlQuotes=r}function i(e,t){return e=e.replace(/^url/gi,"url").replace(/\\?\n|\\?\r\n/g,"").replace(/(\s{2,}|\s)/g," ").replace(/^url\((['"])? /,"url($1").replace(/ (['"])?\)$/,"$1)"),t||/^['"].+['"]$/.test(e)||/url\(.*[\s\(\)].*\)/.test(e)||/url\(['"]data:[^;]+;charset/.test(e)||(e=e.replace(/["']/g,"")),e}var o=e("./escape-store"),a=e("../urls/reduce"),s=e("os").EOL;n.prototype.escape=function(e){var t,r,n,i=this.saveWaypoints,o=this;return a(e,this.context,function(e,a){i&&(t=e.split(s).length-1,r=e.lastIndexOf(s),n=r>0?e.substring(r+s.length).length:e.length);var u=o.urls.store(e,i?[t,n]:null);a.push(u)})},n.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=n},{"../urls/reduce":44,"./escape-store":35,os:67}],39:[function(e,t,r){function n(e,t,r){this.chunks=[];for(var n=0,i=e.length;i>n;){var o=n+r>i?i-1:n+r;e[o]!=t&&(o=e.indexOf(t,o)),-1==o&&(o=e.length-1),this.chunks.push(e.substring(n,o+t.length)),n=o+t.length}}n.prototype.isEmpty=function(){return 0===this.chunks.length},n.prototype.next=function(){return this.chunks.shift()},t.exports=n},{}],40:[function(e,t,r){function n(e){return e[0]}function i(){}function o(e,t,r,n){for(var o=r?/^__ESCAPED_COMMENT_/:/__ESCAPED_COMMENT_/,a=r?n.track:i;o.test(e);){var s=e.indexOf("__"),u=e.indexOf("__",s+1)+2,l=e.substring(s,u);e=e.substring(0,s)+e.substring(u),a(l),t.push(l)}return e}function a(e,t,r){return o(e,t,!0,r)}function s(e,t,r){return o(e,t,!1,r)}function u(e,t,r){for(var n=0,i=e.length;i>n;n++)r.track(e[n]),t.push(e[n])}function l(e,t,r){var i=[],o=[],l=new c(/[ ,\/]/);if("string"!=typeof e)return[];e.indexOf(")")>-1&&(e=e.replace(/\)([^\s_;:,\)])/g,r.sourceMap?") __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ $1":") $1")),e.indexOf("ESCAPED_URL_CLEAN_CSS")>-1&&(e=e.replace(/(ESCAPED_URL_CLEAN_CSS[^_]+?__)/g,r.sourceMap?"$1 __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ ":"$1 "));for(var p=e.split(";"),d=0,g=p.length;g>d;d++){var m=p[d],v=m.indexOf(":");if(-1!=v)if(m.indexOf("{")>0)r.track(m);else{var b=[],y=m.substring(0,v);o=[],y.indexOf("__ESCAPED_COMMENT")>-1&&(y=a(y,i,r)),y.indexOf("__ESCAPED_COMMENT")>-1&&(y=s(y,o,r)),b.push([y.trim()].concat(r.track(y,!0))),r.track(":"),u(o,i,r);var w=l.split(m.substring(v+1),!0);if(1!=w.length||""!==w[0]){for(var x=0,_=w.length;_>x;x++){var k=w[x],O=k.trim();if(0!==O.length){var E=O[O.length-1],S=O.length>1&&(E==f||E==h);if(S&&(O=O.substring(0,O.length-1)),O.indexOf("__ESCAPED_COMMENT_CLEAN_CSS(0,-")>-1)r.track(O);else if(o=[],O.indexOf("__ESCAPED_COMMENT")>-1&&(O=a(O,i,r)),O.indexOf("__ESCAPED_COMMENT")>-1&&(O=s(O,o,r)),0!==O.length){var C=b.length-1;"important"!=O||"!"!=b[C][0]?"!important"==O||"important"==O&&"!"==b[C][0][b[C][0].length-1]?(r.track(O),b[C][0]+=O):(b.push([O].concat(r.track(k,!0))),u(o,i,r),S&&(b.push([E]),r.track(E))):(r.track(O),b[C-1][0]+="!important",b.pop())}else u(o,i,r)}}g-1>d&&r.track(";"),i.push(b)}else r.warnings.push("Empty property '"+y+"' inside '"+t.filter(n).join(",")+"' selector. Ignoring.")}else r.track(m),m.indexOf("__ESCAPED_COMMENT_SPECIAL")>-1&&i.push(m.trim())}return i}var c=e("../utils/splitter"),f=",",h="/";t.exports=l},{"../utils/splitter":52}],41:[function(e,t,r){function n(e,t){for(var r,n=[],o=new i(",").split(e),a=0,s=o.length;s>a;a++)r=t.track(o[a],!0,a),t.track(","),n.push([o[a].trim()].concat(r));return n}var i=e("../utils/splitter");t.exports=n},{"../utils/splitter":52}],42:[function(e,t,r){function n(e,t){var r=new u(i(e),"}",128);if(r.isEmpty())return[];var n={chunk:r.next(),chunker:r,column:0,cursor:0,line:1,mode:"top",resolvePath:t.options.explicitTarget?o(t.options.root,t.options.target):null,source:void 0,sourceMap:t.options.sourceMap,sourceMapInlineSources:t.options.sourceMapInlineSources,sourceMapTracker:t.inputSourceMapTracker,sourceReader:t.sourceReader,sourceTracker:t.sourceTracker,state:[],track:t.options.sourceMap?function(e,t,r){return[[f(e,n,t,r)]]}:function(){return[]},warnings:t.warnings};return s(n)}function i(e){return e.replace(/\r\n/g,"\n")}function o(e,t){var r=h.relative(e,t);return function(e,t){return e!=t?h.normalize(h.join(h.relative(r,h.dirname(e)),t)):t}}function a(e){var t,r=e.mode,n=e.chunk;if(n.length==e.cursor){if(e.chunker.isEmpty())return null;e.chunk=n=e.chunker.next(),e.cursor=0}if("body"==r)return t=n.indexOf("}",e.cursor),t>-1?[t,"bodyEnd"]:null;var i=n.indexOf("@",e.cursor),o=n.indexOf("__ESCAPED_",e.cursor),a=n.indexOf("{",e.cursor),s=n.indexOf("}",e.cursor);return o>-1&&/\S/.test(n.substring(e.cursor,o))&&(o=-1),t=i,(-1==t||o>-1&&t>o)&&(t=o),(-1==t||a>-1&&t>a)&&(t=a),(-1==t||s>-1&&t>s)&&(t=s),-1!=t?o===t?[t,"escape"]:a===t?[t,"bodyStart"]:s===t?[t,"bodyEnd"]:i===t?[t,"special"]:void 0:void 0}function s(e){for(var t,r,n=e.chunk,i=[];;){var o=a(e);if(!o){var u=e.chunk.substring(e.cursor);u.trim().length>0&&("body"==e.mode?e.warnings.push("Missing '}' after '"+u+"'. Ignoring."):i.push(["text",[u]]),e.cursor+=u.length);break}var f,h,d=o[0],g=o[1];if(n=e.chunk,e.cursor!=d&&"bodyEnd"!=g){var m=n.substring(e.cursor,d),v=/^\s+/.exec(m);v&&(e.cursor+=v[0].length,e.track(v[0]))}if("special"==g){var b=n.indexOf("{",d),y=n.indexOf(";",d),w=y>-1&&(-1==b||b>y),x=-1==b&&-1==y;if(x)e.warnings.push("Broken declaration: '"+n.substring(e.cursor)+"'."),e.cursor=n.length;else if(w)f=n.indexOf(";",d+1),r=n.substring(e.cursor,f+1),i.push(["at-rule",[r].concat(e.track(r,!0))]),e.track(";"),e.cursor=f+1;else{f=n.indexOf("{",d+1),r=n.substring(e.cursor,f);var _=r.trim(),k=p.test(_);h=e.mode,e.cursor=f+1,e.mode=k?"body":"block",t=[k?"flat-block":"block"],t.push([_].concat(e.track(r,!0))),e.track("{"),t.push(s(e)),"string"==typeof t[2]&&(t[2]=l(t[2],[[_]],e)),e.mode=h,e.track("}"),i.push(t)}}else if("escape"==g){f=n.indexOf("__",d+1);var O=n.substring(e.cursor,f+2),E=!!e.sourceTracker.nextStart(O),S=!!e.sourceTracker.nextEnd(O);if(E)e.track(O),e.state.push({source:e.source,line:e.line,column:e.column}),e.source=e.sourceTracker.nextStart(O).filename,e.line=1,e.column=0;else if(S){var C=e.state.pop();e.source=C.source,e.line=C.line,e.column=C.column,e.track(O)}else 0===O.indexOf("__ESCAPED_COMMENT_SPECIAL")&&i.push(["text",[O]]),e.track(O);e.cursor=f+2}else if("bodyStart"==g){var A=c(n.substring(e.cursor,d),e);h=e.mode,e.cursor=d+1,e.mode="body";var M=l(s(e),A,e);e.track("{"),e.mode=h,i.push(["selector",A,M])}else if("bodyEnd"==g){if("top"==e.mode){var R=e.cursor,L="}"==n[e.cursor]?"Unexpected '}' in '"+n.substring(R-20,R+20)+"'. Ignoring.":"Unexpected content: '"+n.substring(R,d+1)+"'. Ignoring.";e.warnings.push(L),e.cursor=d+1;continue}"block"==e.mode&&e.track(n.substring(e.cursor,d)),"block"!=e.mode&&(i=n.substring(e.cursor,d)),e.cursor=d+1;break}}return i}var u=e("./chunker"),l=e("./extract-properties"),c=e("./extract-selectors"),f=e("../source-maps/track"),h=e("path"),p=/(^@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport|counter\-style)|\\@.+?)/;t.exports=n},{"../source-maps/track":29,"./chunker":39,"./extract-properties":40,"./extract-selectors":41,path:68}],43:[function(e,t,r){function n(e,t){var r={absolute:t.options.explicitRoot,relative:!t.options.explicitRoot&&t.options.explicitTarget,fromBase:t.options.relativeTo};return r.absolute||r.relative?(r.absolute&&t.options.explicitTarget&&t.warnings.push("Both 'root' and output file given so rebasing URLs as absolute paths"),r.absolute&&(r.toBase=i.resolve(t.options.root)),r.relative&&(r.toBase=i.resolve(t.options.target)),r.fromBase&&r.toBase?o(e,r,t):e):e}var i=e("path"),o=e("./rewrite");t.exports=n},{"./rewrite":45,path:68}],44:[function(e,t,r){function n(e,t,r){for(var n=0,i=0,o=0,l=0,c=[],f=e.indexOf(s)>-1;o-1&&(n=i),o='"'==e[n+a.length]?e.indexOf('"',n+a.length+1):"'"==e[n+a.length]?e.indexOf("'",n+a.length+1):e.indexOf(u,n),-1==o?(o=e.indexOf("}",n),-1==o?o=e.length:o--,t.warnings.push("Broken URL declaration: '"+e.substring(n,o+1)+"'.")):e[o]!=u&&(o=e.indexOf(u,o)),c.push(e.substring(l,n));var h=e.substring(n,o+1);r(h,c),l=o+1}return c.length>0?c.join("")+e.substring(l,e.length):e}function i(e,t,r){for(var n,i=0,o=0,a=0,s=0,u=[],f=0,h=0,p="'",d='"';a-1&&o>-1&&i>o&&(i=o),f=e.indexOf(p,i),h=e.indexOf(d,i),f>-1&&h>-1&&h>f?(i=f,n=p):f>-1&&h>-1&&f>h?(i=h,n=d):f>-1?(i=f,n=p):h>-1&&(i=h,n=d),u.push(e.substring(s,i)),a=e.indexOf(n,i+1),-1==a){s=i;break}var g=e.substring(i,a+1);r(g,u),s=a+1}return u.length>0?u.join("")+e.substring(s,e.length):e}function o(e,t,r){return e=n(e,t,r),e=i(e,t,r)}var a="url(",s="URL(",u=")",l="@import",c="@IMPORT";t.exports=o},{}],45:[function(e,t,r){(function(r){function n(e){return"/"==e[0]}function i(e){return"#"==e[0]}function o(e){return 0===e.indexOf("__ESCAPED_URL_CLEAN_CSS__")}function a(e){return/^\w+:\w+/.test(e)}function s(e){return 0===e.indexOf("http://")||0===e.indexOf("https://")||0===e.indexOf("//")}function u(e){return e.lastIndexOf(".css")===e.length-4}function l(e){return 0===e.indexOf("data:")}function c(e,t){return m.resolve(m.join(t.fromBase,e)).replace(t.toBase,"")}function f(e,t){return m.relative(t.toBase,m.join(t.fromBase,e))}function h(e){return y?e.replace(/\\/g,"/"):e}function p(e,t){return n(e)||i(e)||o(e)||a(e)?e:t.rebase!==!1||u(e)?!t.imports&&u(e)?e:l(e)?"'"+e+"'":s(e)||s(t.toBase)?v.resolve(t.toBase,e):h(t.absolute?c(e,t):f(e,t)):e}function d(e){return e.indexOf("'")>-1?'"':e.indexOf('"')>-1?"'":""}function g(e,t,r){return b(e,r,function(e,r){e=e.replace(/^(url\()?\s*['"]?|['"]?\s*\)?$/g,""),r.push("url("+d(e)+p(e,t)+d(e)+")")})}var m=e("path"),v=e("url"),b=e("./reduce"),y="win32"==r.platform;t.exports=g}).call(this,e("_process"))},{"./reduce":44,_process:69,path:68,url:87}],46:[function(e,t,r){function n(e){this.source=e||{}}function i(e,t){for(var r in e){var n=e[r];"object"!=typeof n||a.isRegExp(n)?t[r]=r in t?t[r]:n:t[r]=i(n,t[r]||{})}return t}function o(e){if("object"==typeof e)return e;if(!/[,\+\-]/.test(e))return s[e]||s["*"];var t=e.split(","),r=t[0]in s?s[t.shift()]:s["*"];return e={},t.forEach(function(t){var r="+"==t[0],n=t.substring(1).split("."),i=n[0],o=n[1];e[i]=e[i]||{},e[i][o]=r}),i(r,e)}var a=e("util"),s={"*":{colors:{opacity:!0},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,iePrefixHack:!1,ieSuffixHack:!1,merging:!0,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right)/},units:{ch:!0,rem:!0,vh:!0,vm:!0,vmax:!0,vmin:!0,vw:!0}},ie8:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not)/},units:{ch:!1,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}},ie7:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!0,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:focus|:before|:after|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not)/},units:{ch:!1,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}}};n.prototype.toOptions=function(){return i(s["*"],o(this.source))},t.exports=n},{util:89}],47:[function(e,t,r){(function(r){function n(e){this.options=e.options,this.errors=e.errors,this.warnings=e.warnings,this.sourceTracker=e.sourceTracker,this.timeout=this.options.inliner.timeout,this.requestOptions=this.options.inliner.request,this.localOnly=e.localOnly,this.relativeTo=e.options.target||r.cwd(),this.maps={},this.sourcesContent={}}function i(e,t,r){return e.trackLoaded(void 0,void 0,e.options.sourceMap),r()}function o(e,t,r,n){function i(){n.cursor+=s+1,o(e,t,r,n)}for(var s=0;n.cursor-1&&(s=l.index),c.index>-1&&c.index-1&&f.index299)return n(e.statusCode);var t=[];e.on("data",function(e){t.push(e.toString())}),e.on("end",function(){r(t.join(""))})}).on("error",function(e){a||(n(e.message),a=!0)}).on("timeout",function(){a||(n("timeout"),a=!0)}).setTimeout(e.timeout)}function u(e,t,r,n,i){for(var o,a=n.length,s={line:t,column:r+a};a-->0&&(s.column--,!(o=e.data.originalPositionFor(s))););return null===o.line&&t>1&&i>0?u(e,t-1,r,n,i-1):(e.path&&o.source&&(o.source=y.test(e.path)?m.resolve(e.path,o.source):p.join(e.path,o.source),o.sourceResolved=!0),o)}function l(e,t){var r=e.maps[t].data,n=y.test(t),i={};r.sources.forEach(function(o,a){var s=n?m.resolve(p.dirname(t),o):p.relative(e.relativeTo,p.resolve(p.dirname(t),o));i[s]=r.sourcesContent&&r.sourcesContent[a]}),e.sourcesContent[t]=i}function c(e,t,r){function n(){return c(e,t,r)}if(0===t.length)return r();var i=t.shift(),o=i[0],a=i[1],u=y.test(o);if(u&&e.localOnly)return e.warnings.push('No callback given to `#minify` method, cannot fetch a remote file from "'+a+'"'),n();if(!u){var l=p.join(e.options.root,a);return h.existsSync(l)?e.sourcesContent[o][a]=h.readFileSync(l,"utf-8"):e.warnings.push('Missing original source file at "'+l+'".'),n()}s(e,a,function(t){e.sourcesContent[o][a]=t,n()},function(t){e.warnings.push('Broken original source file at "'+a+'" - '+t),n()})}var f=e("source-map").SourceMapConsumer,h=e("fs"),p=e("path"),d=e("http"),g=e("https"),m=e("url"),v=e("../utils/object.js").override,b=/\/\*# sourceMappingURL=(\S+) \*\//,y=/^(https?:)?\/\//;n.prototype.track=function(e,t){return"string"==typeof this.options.sourceMap?i(this,e,t):o(this,e,t,{files:[],cursor:0,errors:this.errors})},n.prototype.trackLoaded=function(e,t,r){var n=this.options.explicitTarget?this.options.target:this.options.root,i=y.test(e);t&&(t=i?p.dirname(t):p.dirname(p.relative(n,t))),this.maps[e]={path:t,data:new f(r)},l(this,e)},n.prototype.isTracking=function(e){return!!this.maps[e]},n.prototype.originalPositionFor=function(e,t,r){return u(this.maps[e.source],e.line,e.column,t,r)},n.prototype.sourcesContentFor=function(e){return this.sourcesContent[e]},n.prototype.resolveSources=function(e){var t=[];for(var r in this.sourcesContent){var n=this.sourcesContent[r];for(var i in n)n[i]||t.push([r,i])}return c(this,t,e)},t.exports=n}).call(this,e("_process"))},{"../utils/object.js":48,_process:69,fs:53,http:60,https:64,path:68,"source-map":90,url:87}],48:[function(e,t,r){t.exports={override:function(e,t){var r={};for(var n in e)r[n]=e[n];for(var i in t)r[i]=t[i];return r}}},{}],49:[function(e,t,r){function n(e){this.data=e}function i(e,t,r){for(var n="\\",i=r;;){if(i=e.indexOf(t,i+1),-1==i)return-1;if(e[i-1]!=n)return i}}var o=function(e,t,r,n){var i="/*",o="*/",a="\\",s="}",u=e.substring(n,r),l=u.lastIndexOf(o,r),c=u.lastIndexOf(i,r),f=!1;if(l>=r&&c>-1&&(f=!0),r>c&&c>l&&(f=!0),f){var h=e.indexOf(o,r);return h>-1?h:(h=e.indexOf(s,r),h>-1?h-1:e.length)}for(;;){if(void 0===e[r])break;if(e[r]==t&&(e[r-1]!=a||e[r-2]==a))break;r++}return r};n.prototype.each=function(e){for(var t=this.data,r=[],n=0,a=0,s=0,u=null,l="'",c='"',f=t.length;ah?(n=h,u=l):(n=p,u=c),-1==n)break;if(a=o(t,u,n+1,s),-1==a)break;var d=t.substring(n,a+1);r.push(t.substring(s,n)),d.length>0&&e(d,r,n),s=a+1}return r.length>0?r.join("")+t.substring(s,t.length):t},t.exports=n},{}],50:[function(e,t,r){(function(r){function n(e,t){this.outerContext=e,this.data=t,this.sources={}}function i(e){var t=e.data;return e.trackSource(void 0,t),t}function o(e){var t=e.data.toString();return e.trackSource(void 0,t),t}function a(e){return e.data.map(function(t){return e.outerContext.options.processImport===!1?t+"@shallow":t}).map(function(t){return!e.outerContext.options.relativeTo||/^https?:\/\//.test(t)?t:u.relative(e.outerContext.options.relativeTo,t)}).map(function(e){return"@import url("+e+");"}).join("")}function s(e){var t=[],r=u.resolve(e.outerContext.options.target||e.outerContext.options.root);for(var n in e.data){var i=e.data[n].styles,o=e.data[n].sourceMap,a=c.test(n),s=a?n:u.resolve(n),f=u.dirname(s),h={absolute:e.outerContext.options.explicitRoot,relative:!e.outerContext.options.explicitRoot,imports:!0,rebase:e.outerContext.options.rebase,fromBase:f,toBase:a?f:r};i=l(i,h,e.outerContext),e.trackSource(n,i),i=e.outerContext.sourceTracker.store(n,i),e.outerContext.options.sourceMap&&o&&e.outerContext.inputSourceMapTracker.trackLoaded(n,n,o),t.push(i)}return t.join("")}var u=e("path"),l=e("../urls/rewrite"),c=/^(https?:)?\/\//;n.prototype.sourceAt=function(e){return this.sources[e]},n.prototype.trackSource=function(e,t){this.sources[e]={},this.sources[e][e]=t},n.prototype.toString=function(){return"string"==typeof this.data?i(this):r.isBuffer(this.data)?o(this):Array.isArray(this.data)?a(this):s(this)},t.exports=n}).call(this,e("buffer").Buffer)},{"../urls/rewrite":45,buffer:55,path:68}],51:[function(e,t,r){function n(){this.sources=[]}n.prototype.store=function(e,t){return this.sources.push(e),"__ESCAPED_SOURCE_CLEAN_CSS"+(this.sources.length-1)+"__"+t+"__ESCAPED_SOURCE_END_CLEAN_CSS__"},n.prototype.nextStart=function(e){var t=/__ESCAPED_SOURCE_CLEAN_CSS(\d+)__/.exec(e);return t?{index:t.index,filename:this.sources[~~t[1]]}:null},n.prototype.nextEnd=function(e){return/__ESCAPED_SOURCE_END_CLEAN_CSS__/g.exec(e)},n.prototype.removeAll=function(e){return e.replace(/__ESCAPED_SOURCE_CLEAN_CSS\d+__/g,"").replace(/__ESCAPED_SOURCE_END_CLEAN_CSS__/g,"")},t.exports=n},{}],52:[function(e,t,r){function n(e){this.separator=e,this.withRegex="string"!=typeof e}n.prototype.split=function(e,t){var r=this.withRegex?this.separator.test(e):e.indexOf(this.separator);if(!r)return[e];if(-1===e.indexOf("(")&&!t)return e.split(this.separator);for(var n=0,i=0,o=0,a=e.length,s=[];i++o&&s.push(e.substring(o)),s},t.exports=n},{}],53:[function(e,t,r){},{}],54:[function(e,t,r){arguments[4][53][0].apply(r,arguments)},{dup:53}],55:[function(e,t,r){function n(e){return this instanceof n?(this.length=0,this.parent=void 0,"number"==typeof e?i(this,e):"string"==typeof e?o(this,e,arguments.length>1?arguments[1]:"utf8"):a(this,e)):arguments.length>1?new n(e,arguments[1]):new n(e)}function i(e,t){if(e=h(e,0>t?0:0|p(t)),!n.TYPED_ARRAY_SUPPORT)for(var r=0;t>r;r++)e[r]=0;return e}function o(e,t,r){("string"!=typeof r||""===r)&&(r="utf8");var n=0|g(t,r);return e=h(e,n),e.write(t,r),e}function a(e,t){if(n.isBuffer(t))return s(e,t);if(W(t))return u(e,t);if(null==t)throw new TypeError("must start with number, buffer, array or string");return"undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer?l(e,t):t.length?c(e,t):f(e,t)}function s(e,t){var r=0|p(t.length);return e=h(e,r),t.copy(e,0,0,r),e}function u(e,t){var r=0|p(t.length);e=h(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function l(e,t){var r=0|p(t.length);e=h(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function c(e,t){var r=0|p(t.length);e=h(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function f(e,t){var r,n=0;"Buffer"===t.type&&W(t.data)&&(r=t.data,n=0|p(r.length)),e=h(e,n);for(var i=0;n>i;i+=1)e[i]=255&r[i];return e}function h(e,t){n.TYPED_ARRAY_SUPPORT?e=n._augment(new Uint8Array(t)):(e.length=t,e._isBuffer=!0);var r=0!==t&&t<=n.poolSize>>>1;return r&&(e.parent=Y),e}function p(e){if(e>=G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");return 0|e}function d(e,t){if(!(this instanceof d))return new d(e,t);var r=new n(e,t);return delete r.parent,r}function g(e,t){if("string"!=typeof e&&(e=String(e)),0===e.length)return 0;switch(t||"utf8"){case"ascii":case"binary":case"raw":return e.length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e.length;case"hex":return e.length>>>1;case"utf8":case"utf-8":return I(e).length;case"base64":return z(e).length;default:return e.length}}function m(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new Error("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;n>a;a++){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))throw new Error("Invalid hex string");e[r+a]=s}return a}function v(e,t,r,n){return F(I(t,e.length-r),e,r,n)}function b(e,t,r,n){return F(D(t),e,r,n)}function y(e,t,r,n){return b(e,t,r,n)}function w(e,t,r,n){return F(z(t),e,r,n)}function x(e,t,r,n){return F(N(t,e.length-r),e,r,n)}function _(e,t,r){return 0===t&&r===e.length?q.fromByteArray(e):q.fromByteArray(e.slice(t,r))}function k(e,t,r){var n="",i="";r=Math.min(e.length,r);for(var o=t;r>o;o++)e[o]<=127?(n+=$(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return n+$(i)}function O(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(127&e[i]);return n}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(e[i]);return n}function S(e,t,r){var n=e.length;(!t||0>t)&&(t=0),(!r||0>r||r>n)&&(r=n);for(var i="",o=t;r>o;o++)i+=U(e[o]);return i}function C(e,t,r){for(var n=e.slice(t,r),i="",o=0;oe)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,i,o,a){if(!n.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>o||a>t)throw new RangeError("value is out of bounds");if(r+i>e.length)throw new RangeError("index out of range")}function R(e,t,r,n){0>t&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);o>i;i++)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function L(e,t,r,n){0>t&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);o>i;i++)e[r+i]=t>>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(t>i||o>t)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function T(e,t,r,n,i){return i||j(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),H.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return i||j(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),H.write(e,t,r,n,52,8),r+8}function V(e){if(e=P(e).replace(X,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function P(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function U(e){ -return 16>e?"0"+e.toString(16):e.toString(16)}function I(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;n>a;a++){if(r=e.charCodeAt(a),r>55295&&57344>r){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(56320>r){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&((t-=3)>-1&&o.push(239,191,189),i=null);if(128>r){if((t-=1)<0)break;o.push(r)}else if(2048>r){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(65536>r){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(2097152>r))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function D(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function z(e){return q.toByteArray(V(e))}function F(e,t,r,n){for(var i=0;n>i&&!(i+r>=t.length||i>=e.length);i++)t[i+r]=e[i];return i}function $(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}var q=e("base64-js"),H=e("ieee754"),W=e("is-array");r.Buffer=n,r.SlowBuffer=d,r.INSPECT_MAX_BYTES=50,n.poolSize=8192;var G=1073741823,Y={};n.TYPED_ARRAY_SUPPORT=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(r){return!1}}(),n.isBuffer=function(e){return!(null==e||!e._isBuffer)},n.compare=function(e,t){if(!n.isBuffer(e)||!n.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,i=t.length,o=0,a=Math.min(r,i);a>o&&e[o]===t[o];)++o;return o!==a&&(r=e[o],i=t[o]),i>r?-1:r>i?1:0},n.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(e,t){if(!W(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new n(0);if(1===e.length)return e[0];var r;if(void 0===t)for(t=0,r=0;rt&&(t=0),r>this.length&&(r=this.length),t>=r)return"";for(;;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return O(this,t,r);case"binary":return E(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}},n.prototype.equals=function(e){if(!n.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===n.compare(this,e)},n.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},n.prototype.compare=function(e){if(!n.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:n.compare(this,e)},n.prototype.indexOf=function(e,t){function r(e,t,r){for(var n=-1,i=0;r+i2147483647?t=2147483647:-2147483648>t&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(0>t&&(t=Math.max(this.length+t,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,t);if(n.isBuffer(e))return r(this,e,t);if("number"==typeof e)return n.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):r(this,[e],t);throw new TypeError("val must be string, number or Buffer")},n.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},n.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},n.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0);else{var i=n;n=t,t=0|r,r=i}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(0>r||0>t)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return b(this,e,t,r);case"binary":return y(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},n.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,0>e?(e+=r,0>e&&(e=0)):e>r&&(e=r),0>t?(t+=r,0>t&&(t=0)):t>r&&(t=r),e>t&&(t=e);var i;if(n.TYPED_ARRAY_SUPPORT)i=n._augment(this.subarray(e,t));else{var o=t-e;i=new n(o,void 0);for(var a=0;o>a;a++)i[a]=this[a+e]}return i.length&&(i.parent=this.parent||this),i},n.prototype.readUIntLE=function(e,t,r){e=0|e,t=0|t,r||A(e,t,this.length);for(var n=this[e],i=1,o=0;++o0&&(i*=256);)n+=this[e+--t]*i;return n},n.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},n.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},n.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},n.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},n.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},n.prototype.readIntLE=function(e,t,r){e=0|e,t=0|t,r||A(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},n.prototype.readIntBE=function(e,t,r){e=0|e,t=0|t,r||A(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},n.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},n.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},n.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},n.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},n.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},n.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),H.read(this,e,!0,23,4)},n.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),H.read(this,e,!1,23,4)},n.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),H.read(this,e,!0,52,8)},n.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),H.read(this,e,!1,52,8)},n.prototype.writeUIntLE=function(e,t,r,n){e=+e,t=0|t,r=0|r,n||M(this,e,t,r,Math.pow(2,8*r),0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},n.prototype.writeUInt8=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,1,255,0),n.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e,t+1},n.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},n.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):R(this,e,t,!1),t+2},n.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e):L(this,e,t,!0),t+4},n.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):L(this,e,t,!1),t+4},n.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=0,a=1,s=0>e?1:0;for(this[t]=255&e;++o>0)-s&255;return t+r},n.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0>e?1:0;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=(e/a>>0)-s&255;return t+r},n.prototype.writeInt8=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,1,127,-128),n.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=e,t+1},n.prototype.writeInt16LE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},n.prototype.writeInt16BE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):R(this,e,t,!1),t+2},n.prototype.writeInt32LE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,4,2147483647,-2147483648),n.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},n.prototype.writeInt32BE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):L(this,e,t,!1),t+4},n.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},n.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},n.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},n.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},n.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&r>i&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>r||r>=this.length)throw new RangeError("sourceStart out of bounds");if(0>i)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-to||!n.TYPED_ARRAY_SUPPORT)for(var a=0;o>a;a++)e[a+t]=this[a+r];else e._set(this.subarray(r,r+o),t);return o},n.prototype.fill=function(e,t,r){if(e||(e=0),t||(t=0),r||(r=this.length),t>r)throw new RangeError("end < start");if(r!==t&&0!==this.length){if(0>t||t>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof e)for(n=t;r>n;n++)this[n]=e;else{var i=I(e.toString()),o=i.length;for(n=t;r>n;n++)this[n]=i[n%o]}return this}},n.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(n.TYPED_ARRAY_SUPPORT)return new n(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;r>t;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var J=n.prototype;n._augment=function(e){return e.constructor=n,e._isBuffer=!0,e._set=e.set,e.get=J.get,e.set=J.set,e.write=J.write,e.toString=J.toString,e.toLocaleString=J.toString,e.toJSON=J.toJSON,e.equals=J.equals,e.compare=J.compare,e.indexOf=J.indexOf,e.copy=J.copy,e.slice=J.slice,e.readUIntLE=J.readUIntLE,e.readUIntBE=J.readUIntBE,e.readUInt8=J.readUInt8,e.readUInt16LE=J.readUInt16LE,e.readUInt16BE=J.readUInt16BE,e.readUInt32LE=J.readUInt32LE,e.readUInt32BE=J.readUInt32BE,e.readIntLE=J.readIntLE,e.readIntBE=J.readIntBE,e.readInt8=J.readInt8,e.readInt16LE=J.readInt16LE,e.readInt16BE=J.readInt16BE,e.readInt32LE=J.readInt32LE,e.readInt32BE=J.readInt32BE,e.readFloatLE=J.readFloatLE,e.readFloatBE=J.readFloatBE,e.readDoubleLE=J.readDoubleLE,e.readDoubleBE=J.readDoubleBE,e.writeUInt8=J.writeUInt8,e.writeUIntLE=J.writeUIntLE,e.writeUIntBE=J.writeUIntBE,e.writeUInt16LE=J.writeUInt16LE,e.writeUInt16BE=J.writeUInt16BE,e.writeUInt32LE=J.writeUInt32LE,e.writeUInt32BE=J.writeUInt32BE,e.writeIntLE=J.writeIntLE,e.writeIntBE=J.writeIntBE,e.writeInt8=J.writeInt8,e.writeInt16LE=J.writeInt16LE,e.writeInt16BE=J.writeInt16BE,e.writeInt32LE=J.writeInt32LE,e.writeInt32BE=J.writeInt32BE,e.writeFloatLE=J.writeFloatLE,e.writeFloatBE=J.writeFloatBE,e.writeDoubleLE=J.writeDoubleLE,e.writeDoubleBE=J.writeDoubleBE,e.fill=J.fill,e.inspect=J.inspect,e.toArrayBuffer=J.toArrayBuffer,e};var X=/[^+\/0-9A-z\-]/g},{"base64-js":56,ieee754:57,"is-array":58}],56:[function(e,t,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===a||t===f?62:t===s||t===h?63:u>t?-1:u+10>t?t-u+26+26:c+26>t?t-c:l+26>t?t-l+26:void 0}function r(e){function r(e){l[f++]=e}var n,i,a,s,u,l;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;u="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,l=new o(3*e.length/4-u),a=u>0?e.length-4:e.length;var f=0;for(n=0,i=0;a>n;n+=4,i+=3)s=t(e.charAt(n))<<18|t(e.charAt(n+1))<<12|t(e.charAt(n+2))<<6|t(e.charAt(n+3)),r((16711680&s)>>16),r((65280&s)>>8),r(255&s);return 2===u?(s=t(e.charAt(n))<<2|t(e.charAt(n+1))>>4,r(255&s)):1===u&&(s=t(e.charAt(n))<<10|t(e.charAt(n+1))<<4|t(e.charAt(n+2))>>2,r(s>>8&255),r(255&s)),l}function i(e){function t(e){return n.charAt(e)}function r(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var i,o,a,s=e.length%3,u="";for(i=0,a=e.length-s;a>i;i+=3)o=(e[i]<<16)+(e[i+1]<<8)+e[i+2],u+=r(o);switch(s){case 1:o=e[e.length-1],u+=t(o>>2),u+=t(o<<4&63),u+="==";break;case 2:o=(e[e.length-2]<<8)+e[e.length-1],u+=t(o>>10),u+=t(o>>4&63),u+=t(o<<2&63),u+="="}return u}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="+".charCodeAt(0),s="/".charCodeAt(0),u="0".charCodeAt(0),l="a".charCodeAt(0),c="A".charCodeAt(0),f="-".charCodeAt(0),h="_".charCodeAt(0);e.toByteArray=r,e.fromByteArray=i}("undefined"==typeof r?this.base64js={}:r)},{}],57:[function(e,t,r){r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,p=e[t+f];for(f+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,n),o-=l}return(p?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+f>=1?h/u:h*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<0;e[r+p]=255&a,p+=d,a/=256,l-=8);e[r+p-d]|=128*g}},{}],58:[function(e,t,r){var n=Array.isArray,i=Object.prototype.toString;t.exports=n||function(e){return!!e&&"[object Array]"==i.call(e)}},{}],59:[function(e,t,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,r,n,o,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(r=this._events[e],s(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),u=1;n>u;u++)o[u-1]=arguments[u];r.apply(this,o)}else if(a(r)){for(n=arguments.length,o=new Array(n-1),u=1;n>u;u++)o[u-1]=arguments[u];for(l=r.slice(),n=l.length,u=0;n>u;u++)l[u].apply(this,o)}return!0},n.prototype.addListener=function(e,t){var r;if(!i(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned){var r;r=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())}return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var n=!1;return r.listener=t,this.on(e,r),this},n.prototype.removeListener=function(e,t){var r,n,o,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],o=r.length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(r)){for(s=o;s-->0;)if(r[s]===t||r[s].listener&&r[s].listener===t){n=s;break}if(0>n)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);else for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.listenerCount=function(e,t){var r;return r=e._events&&e._events[t]?i(e._events[t])?1:e._events[t].length:0}},{}],60:[function(e,t,r){var n=t.exports,i=(e("events").EventEmitter,e("./lib/request")),o=e("url");n.request=function(e,t){"string"==typeof e&&(e=o.parse(e)),e||(e={}),e.host||e.port||(e.port=parseInt(window.location.port,10)),!e.host&&e.hostname&&(e.host=e.hostname),e.protocol||(e.scheme?e.protocol=e.scheme+":":e.protocol=window.location.protocol),e.host||(e.host=window.location.hostname||window.location.host),/:/.test(e.host)&&(e.port||(e.port=e.host.split(":")[1]),e.host=e.host.split(":")[0]),e.port||(e.port="https:"==e.protocol?443:80);var r=new i(new a,e);return t&&r.on("response",t),r},n.get=function(e,t){e.method="GET";var r=n.request(e,t);return r.end(),r},n.Agent=function(){},n.Agent.defaultMaxSockets=4;var a=function(){if("undefined"==typeof window)throw new Error("no window object present");if(window.XMLHttpRequest)return window.XMLHttpRequest;if(window.ActiveXObject){for(var e=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"],t=0;tthis.offset&&(this.emit("data",t.slice(this.offset)),this.offset=t.length))};var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{stream:85,util:89}],63:[function(e,t,r){!function(){function e(e){this.message=e}var t="undefined"!=typeof r?r:this,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.prototype=new Error,e.prototype.name="InvalidCharacterError",t.btoa||(t.btoa=function(t){for(var r,i,o=0,a=n,s="";t.charAt(0|o)||(a="=",o%1);s+=a.charAt(63&r>>8-o%1*8)){if(i=t.charCodeAt(o+=.75),i>255)throw new e("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|i}return s}),t.atob||(t.atob=function(t){if(t=t.replace(/=+$/,""),t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i=n.indexOf(i);return s})}()},{}],64:[function(e,t,r){var n=e("http"),i=t.exports;for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);i.request=function(e,t){return e||(e={}),e.scheme="https",n.request.call(this,e,t)}},{http:60}],65:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],66:[function(e,t,r){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],67:[function(e,t,r){r.endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n"},{}],68:[function(e,t,r){(function(e){function t(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(r=a+"/"+r,i="/"===a.charAt(0))}return r=t(n(r.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+r||"."},r.normalize=function(e){var i=r.isAbsolute(e),o="/"===a(e,-1);return e=t(n(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},r.isAbsolute=function(e){return"/"===e.charAt(0)},r.join=function(){var e=Array.prototype.slice.call(arguments,0);return r.normalize(n(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},r.relative=function(e,t){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=r.resolve(e).substr(1),t=r.resolve(t).substr(1);for(var i=n(e.split("/")),o=n(t.split("/")),a=Math.min(i.length,o.length),s=a,u=0;a>u;u++)if(i[u]!==o[u]){s=u;break}for(var l=[],u=s;ut&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:69}],69:[function(e,t,r){function n(){c=!1,s.length?l=s.concat(l):f=-1,l.length&&i()}function i(){if(!c){var e=setTimeout(n);c=!0;for(var t=l.length;t;){for(s=l,l=[];++f1)for(var r=1;r1&&(n=r[0]+"@",e=r[1]),e=e.replace(T,".");var i=e.split("."),o=a(i,t).join(".");return n+o}function u(e){for(var t,r,n=[],i=0,o=e.length;o>i;)t=e.charCodeAt(i++),t>=55296&&56319>=t&&o>i?(r=e.charCodeAt(i++),56320==(64512&r)?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--)):n.push(t);return n}function l(e){return a(e,function(e){var t="";return e>65535&&(e-=65536,t+=U(e>>>10&1023|55296),e=56320|1023&e),t+=U(e)}).join("")}function c(e){ -return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:k}function f(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function h(e,t,r){var n=0;for(e=r?P(e/C):e>>1,e+=P(e/t);e>V*E>>1;n+=k)e=P(e/V);return P(n+(V+1)*e/(e+S))}function p(e){var t,r,n,i,a,s,u,f,p,d,g=[],m=e.length,v=0,b=M,y=A;for(r=e.lastIndexOf(R),0>r&&(r=0),n=0;r>n;++n)e.charCodeAt(n)>=128&&o("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;m>i;){for(a=v,s=1,u=k;i>=m&&o("invalid-input"),f=c(e.charCodeAt(i++)),(f>=k||f>P((_-v)/s))&&o("overflow"),v+=f*s,p=y>=u?O:u>=y+E?E:u-y,!(p>f);u+=k)d=k-p,s>P(_/d)&&o("overflow"),s*=d;t=g.length+1,y=h(v-a,t,0==a),P(v/t)>_-b&&o("overflow"),b+=P(v/t),v%=t,g.splice(v++,0,b)}return l(g)}function d(e){var t,r,n,i,a,s,l,c,p,d,g,m,v,b,y,w=[];for(e=u(e),m=e.length,t=M,r=0,a=A,s=0;m>s;++s)g=e[s],128>g&&w.push(U(g));for(n=i=w.length,i&&w.push(R);m>n;){for(l=_,s=0;m>s;++s)g=e[s],g>=t&&l>g&&(l=g);for(v=n+1,l-t>P((_-r)/v)&&o("overflow"),r+=(l-t)*v,t=l,s=0;m>s;++s)if(g=e[s],t>g&&++r>_&&o("overflow"),g==t){for(c=r,p=k;d=a>=p?O:p>=a+E?E:p-a,!(d>c);p+=k)y=c-d,b=k-d,w.push(U(f(d+y%b,0))),c=P(y/b);w.push(U(f(c,0))),a=h(r,v,n==i),r=0,++n}++r,++t}return w.join("")}function g(e){return s(e,function(e){return L.test(e)?p(e.slice(4).toLowerCase()):e})}function m(e){return s(e,function(e){return j.test(e)?"xn--"+d(e):e})}var v="object"==typeof n&&n&&!n.nodeType&&n,b="object"==typeof r&&r&&!r.nodeType&&r,y="object"==typeof t&&t;(y.global===y||y.window===y||y.self===y)&&(i=y);var w,x,_=2147483647,k=36,O=1,E=26,S=38,C=700,A=72,M=128,R="-",L=/^xn--/,j=/[^\x20-\x7E]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,B={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=k-O,P=Math.floor,U=String.fromCharCode;if(w={version:"1.3.2",ucs2:{decode:u,encode:l},decode:p,encode:d,toASCII:m,toUnicode:g},"function"==typeof e&&"object"==typeof e.amd&&e.amd)e("punycode",function(){return w});else if(v&&b)if(r.exports==v)b.exports=w;else for(x in w)w.hasOwnProperty(x)&&(v[x]=w[x]);else i.punycode=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],71:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;l>c;++c){var f,h,p,d,g=e[c].replace(s,"%20"),m=g.indexOf(r);m>=0?(f=g.substr(0,m),h=g.substr(m+1)):(f=g,h=""),p=decodeURIComponent(f),d=decodeURIComponent(h),n(a,p)?i(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],72:[function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;nr;r++)t(e[r],r)}t.exports=n;var a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},s=e("core-util-is");s.inherits=e("inherits");var u=e("./_stream_readable"),l=e("./_stream_writable");s.inherits(n,u),o(a(l.prototype),function(e){n.prototype[e]||(n.prototype[e]=l.prototype[e])})}).call(this,e("_process"))},{"./_stream_readable":77,"./_stream_writable":79,_process:69,"core-util-is":80,inherits:65}],76:[function(e,t,r){function n(e){return this instanceof n?void i.call(this,e):new n(e)}t.exports=n;var i=e("./_stream_transform"),o=e("core-util-is");o.inherits=e("inherits"),o.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":78,"core-util-is":80,inherits:65}],77:[function(e,t,r){(function(r){function n(t,r){var n=e("./_stream_duplex");t=t||{};var i=t.highWaterMark,o=t.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,r instanceof n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(A||(A=e("string_decoder/").StringDecoder),this.decoder=new A(t.encoding),this.encoding=t.encoding)}function i(t){e("./_stream_duplex");return this instanceof i?(this._readableState=new n(t,this),this.readable=!0,void S.call(this)):new i(t)}function o(e,t,r,n,i){var o=l(t,r);if(o)e.emit("error",o);else if(C.isNullOrUndefined(r))t.reading=!1,t.ended||c(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else!t.decoder||i||n||(r=t.decoder.write(r)),i||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&f(e)),p(e,t);else i||(t.reading=!1);return a(t)}function a(e){return!e.ended&&(e.needReadable||e.length=R)e=R;else{e--;for(var t=1;32>t;t<<=1)e|=e>>t;e++}return e}function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||C.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:0>=e?0:(e>t.highWaterMark&&(t.highWaterMark=s(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function l(e,t){var r=null;return C.isBuffer(t)||C.isString(t)||C.isNullOrUndefined(t)||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function c(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,f(e)}function f(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(M("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(function(){h(e)}):h(e))}function h(e){M("emit readable"),e.emit("readable"),b(e)}function p(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){d(e,t)}))}function d(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=i)r=o?n.join(""):O.concat(n,i),n.length=0;else if(el&&e>u;l++){var s=n[0],f=Math.min(e-u,s.length);o?r+=s.slice(0,f):s.copy(r,u,0,f),f0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function x(e,t){for(var r=0,n=e.length;n>r;r++)t(e[r],r)}function _(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1}t.exports=i;var k=e("isarray"),O=e("buffer").Buffer;i.ReadableState=n;var E=e("events").EventEmitter;E.listenerCount||(E.listenerCount=function(e,t){return e.listeners(t).length});var S=e("stream"),C=e("core-util-is");C.inherits=e("inherits");var A,M=e("util");M=M&&M.debuglog?M.debuglog("stream"):function(){},C.inherits(i,S),i.prototype.push=function(e,t){var r=this._readableState;return C.isString(e)&&!r.objectMode&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=new O(e,t),t="")),o(this,r,e,t,!1)},i.prototype.unshift=function(e){var t=this._readableState;return o(this,t,e,"",!0)},i.prototype.setEncoding=function(t){return A||(A=e("string_decoder/").StringDecoder),this._readableState.decoder=new A(t),this._readableState.encoding=t,this};var R=8388608;i.prototype.read=function(e){M("read",e);var t=this._readableState,r=e;if((!C.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return M("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?w(this):f(this),null;if(e=u(e,t),0===e&&t.ended)return 0===t.length&&w(this),null;var n=t.needReadable;M("need readable",n),(0===t.length||t.length-e0?y(e,t):null,C.isNull(i)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&w(this),C.isNull(i)||this.emit("data",i),i},i.prototype._read=function(e){this.emit("error",new Error("not implemented"))},i.prototype.pipe=function(e,t){function n(e){M("onunpipe"),e===f&&o()}function i(){M("onend"),e.end()}function o(){M("cleanup"),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("drain",m),e.removeListener("error",s),e.removeListener("unpipe",n),f.removeListener("end",i),f.removeListener("end",o),f.removeListener("data",a),!h.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function a(t){M("ondata");var r=e.write(t);!1===r&&(M("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,f.pause())}function s(t){M("onerror",t),c(),e.removeListener("error",s),0===E.listenerCount(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",l),c()}function l(){M("onfinish"),e.removeListener("close",u),c()}function c(){M("unpipe"),f.unpipe(e)}var f=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=e;break;case 1:h.pipes=[h.pipes,e];break;default:h.pipes.push(e)}h.pipesCount+=1,M("pipe count=%d opts=%j",h.pipesCount,t);var p=(!t||t.end!==!1)&&e!==r.stdout&&e!==r.stderr,d=p?i:o;h.endEmitted?r.nextTick(d):f.once("end",d),e.on("unpipe",n);var m=g(f);return e.on("drain",m),f.on("data",a),e._events&&e._events.error?k(e._events.error)?e._events.error.unshift(s):e._events.error=[s,e._events.error]:e.on("error",s),e.once("close",u),e.once("finish",l),e.emit("pipe",f),h.flowing||(M("pipe resume"),f.resume()),e},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;n>i;i++)r[i].emit("unpipe",this);return this}var i=_(t.pipes,e);return-1===i?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},i.prototype.on=function(e,t){var n=S.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var i=this._readableState;if(!i.readableListening)if(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading)i.length&&f(this,i);else{var o=this;r.nextTick(function(){M("readable nexttick read 0"),o.read(0)})}}return n},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var e=this._readableState;return e.flowing||(M("resume"),e.flowing=!0,e.reading||(M("resume read 0"),this.read(0)),m(this,e)),this},i.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;e.on("end",function(){if(M("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),e.on("data",function(i){if(M("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)){var o=n.push(i);o||(r=!0,e.pause())}});for(var i in e)C.isFunction(e[i])&&C.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return x(o,function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){M("wrapped _read",t),r&&(r=!1,e.resume())},n},i._fromList=y}).call(this,e("_process"))},{"./_stream_duplex":75,_process:69,buffer:55,"core-util-is":80,events:59,inherits:65,isarray:66,stream:85,"string_decoder/":86,util:54}],78:[function(e,t,r){function n(e,t){this.afterTransform=function(e,r){return i(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,u.isNullOrUndefined(r)||e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length1){for(var r=[],n=0;n=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&56319>=n)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);var i=t.length-1,n=t.charCodeAt(i);if(n>=55296&&56319>=n){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},l.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(2>=t&&r>>4==14){this.charLength=3;break}if(3>=t&&r>>3==30){this.charLength=4;break}}this.charReceived=t},l.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},{buffer:55}],87:[function(e,t,r){function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,r){if(e&&l(e)&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}function o(e){return u(e)&&(e=i(e)),e instanceof n?e.format():n.prototype.format.call(e)}function a(e,t){return i(e,!1,!0).resolve(t)}function s(e,t){return e?i(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function l(e){return"object"==typeof e&&null!==e}function c(e){return null===e}function f(e){return null==e}var h=e("punycode");r.parse=i,r.resolve=a,r.resolveObject=s,r.format=o,r.Url=n;var p=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,g=["<",">",'"',"`"," ","\r","\n"," "],m=["{","}","|","\\","^","`"].concat(g),v=["'"].concat(m),b=["%","/","?",";","#"].concat(v),y=["/","?","#"],w=255,x=/^[a-z0-9A-Z_-]{0,63}$/,_=/^([a-z0-9A-Z_-]{0,63})(.*)$/,k={javascript:!0,"javascript:":!0},O={javascript:!0,"javascript:":!0},E={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},S=e("querystring");n.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e;n=n.trim();var i=p.exec(n);if(i){i=i[0];var o=i.toLowerCase();this.protocol=o,n=n.substr(i.length)}if(r||i||n.match(/^\/\/[^@\/]+@[^@\/]+/)){var a="//"===n.substr(0,2);!a||i&&O[i]||(n=n.substr(2),this.slashes=!0)}if(!O[i]&&(a||i&&!E[i])){for(var s=-1,l=0;lc)&&(s=c)}var f,d;d=-1===s?n.lastIndexOf("@"):n.lastIndexOf("@",s),-1!==d&&(f=n.slice(0,d),n=n.slice(d+1),this.auth=decodeURIComponent(f)),s=-1;for(var l=0;lc)&&(s=c)}-1===s&&(s=n.length),this.host=n.slice(0,s),n=n.slice(s),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var m=this.hostname.split(/\./),l=0,C=m.length;C>l;l++){var A=m[l];if(A&&!A.match(x)){for(var M="",R=0,L=A.length;L>R;R++)M+=A.charCodeAt(R)>127?"x":A[R];if(!M.match(x)){var j=m.slice(0,l),T=m.slice(l+1),B=A.match(_);B&&(j.push(B[1]),T.unshift(B[2])),T.length&&(n="/"+T.join(".")+n),this.hostname=j.join(".");break}}}if(this.hostname.length>w?this.hostname="":this.hostname=this.hostname.toLowerCase(),!g){for(var V=this.hostname.split("."),P=[],l=0;ll;l++){var N=v[l],z=encodeURIComponent(N);z===N&&(z=escape(N)),n=n.split(N).join(z)}var F=n.indexOf("#");-1!==F&&(this.hash=n.substr(F),n=n.slice(0,F));var $=n.indexOf("?");if(-1!==$?(this.search=n.substr($),this.query=n.substr($+1),t&&(this.query=S.parse(this.query)),n=n.slice(0,$)):t&&(this.search="",this.query={}),n&&(this.pathname=n),E[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var I=this.pathname||"",U=this.search||"";this.path=I+U}return this.href=this.format(),this},n.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&l(this.query)&&Object.keys(this.query).length&&(o=S.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||E[t])&&i!==!1?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),a=a.replace("#","%23"),t+i+r+a+n},n.prototype.resolve=function(e){return this.resolveObject(i(e,!1,!0)).format()},n.prototype.resolveObject=function(e){if(u(e)){var t=new n;t.parse(e,!1,!0),e=t}var r=new n;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),E[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!E[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||O[e.protocol])r.pathname=e.pathname;else{for(var i=(e.pathname||"").split("/");i.length&&!(e.host=i.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==i[0]&&i.unshift(""),i.length<2&&i.unshift(""),r.pathname=i.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var o=r.pathname||"",a=r.search||"";r.path=o+a}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var s=r.pathname&&"/"===r.pathname.charAt(0),l=e.host||e.pathname&&"/"===e.pathname.charAt(0),h=l||s||r.host&&e.pathname,p=h,d=r.pathname&&r.pathname.split("/")||[],i=e.pathname&&e.pathname.split("/")||[],g=r.protocol&&!E[r.protocol];if(g&&(r.hostname="",r.port=null,r.host&&(""===d[0]?d[0]=r.host:d.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===i[0]?i[0]=e.host:i.unshift(e.host)),e.host=null),h=h&&(""===i[0]||""===d[0])),l)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,d=i;else if(i.length)d||(d=[]),d.pop(),d=d.concat(i),r.search=e.search,r.query=e.query;else if(!f(e.search)){if(g){r.hostname=r.host=d.shift();var m=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;m&&(r.auth=m.shift(),r.host=r.hostname=m.shift())}return r.search=e.search,r.query=e.query,c(r.pathname)&&c(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!d.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var v=d.slice(-1)[0],b=(r.host||e.host)&&("."===v||".."===v)||""===v,y=0,w=d.length;w>=0;w--)v=d[w], -"."==v?d.splice(w,1):".."===v?(d.splice(w,1),y++):y&&(d.splice(w,1),y--);if(!h&&!p)for(;y--;y)d.unshift("..");!h||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),b&&"/"!==d.join("/").substr(-1)&&d.push("");var x=""===d[0]||d[0]&&"/"===d[0].charAt(0);if(g){r.hostname=r.host=x?"":d.length?d.shift():"";var m=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;m&&(r.auth=m.shift(),r.host=r.hostname=m.shift())}return h=h||r.host&&d.length,h&&!x&&d.unshift(""),d.length?r.pathname=d.join("/"):(r.pathname=null,r.path=null),c(r.pathname)&&c(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:70,querystring:73}],88:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],89:[function(e,t,r){(function(t,n){function i(e,t){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(t)?n.showHidden=t:t&&r._extend(n,t),x(n.showHidden)&&(n.showHidden=!1),x(n.depth)&&(n.depth=2),x(n.colors)&&(n.colors=!1),x(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),u(n,e,n.depth)}function o(e,t){var r=i.styles[t];return r?"["+i.colors[r][0]+"m"+e+"["+i.colors[r][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,n){if(e.customInspect&&t&&S(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return y(i)||(i=u(e,i,n)),i}var o=l(e,t);if(o)return o;var a=Object.keys(t),g=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),E(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(t);if(0===a.length){if(S(t)){var m=t.name?": "+t.name:"";return e.stylize("[Function"+m+"]","special")}if(_(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(O(t))return e.stylize(Date.prototype.toString.call(t),"date");if(E(t))return c(t)}var v="",b=!1,w=["{","}"];if(d(t)&&(b=!0,w=["[","]"]),S(t)){var x=t.name?": "+t.name:"";v=" [Function"+x+"]"}if(_(t)&&(v=" "+RegExp.prototype.toString.call(t)),O(t)&&(v=" "+Date.prototype.toUTCString.call(t)),E(t)&&(v=" "+c(t)),0===a.length&&(!b||0==t.length))return w[0]+v+w[1];if(0>n)return _(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var k;return k=b?f(e,t,n,g,a):a.map(function(r){return h(e,t,n,g,r,b)}),e.seen.pop(),p(k,v,w)}function l(e,t){if(x(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return b(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,i){for(var o=[],a=0,s=t.length;s>a;++a)L(t,String(a))?o.push(h(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))}),o}function h(e,t,r,n,i,o){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),L(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(r)?u(e,l.value,null):u(e,l.value,r-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),x(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e,t,r){var n=0,i=e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return null==e}function b(e){return"number"==typeof e}function y(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function x(e){return void 0===e}function _(e){return k(e)&&"[object RegExp]"===A(e)}function k(e){return"object"==typeof e&&null!==e}function O(e){return k(e)&&"[object Date]"===A(e)}function E(e){return k(e)&&("[object Error]"===A(e)||e instanceof Error)}function S(e){return"function"==typeof e}function C(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function A(e){return Object.prototype.toString.call(e)}function M(e){return 10>e?"0"+e.toString(10):e.toString(10)}function R(){var e=new Date,t=[M(e.getHours()),M(e.getMinutes()),M(e.getSeconds())].join(":");return[e.getDate(),V[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var j=/%[sdj%]/g;r.format=function(e){if(!y(e)){for(var t=[],r=0;r=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),s=n[r];o>r;s=n[++r])a+=m(s)||!k(s)?" "+s:" "+i(s);return a},r.deprecate=function(e,i){function o(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}if(x(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var a=!1;return o};var T,B={};r.debuglog=function(e){if(x(T)&&(T=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!B[e])if(new RegExp("\\b"+e+"\\b","i").test(T)){var n=t.pid;B[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else B[e]=function(){};return B[e]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=d,r.isBoolean=g,r.isNull=m,r.isNullOrUndefined=v,r.isNumber=b,r.isString=y,r.isSymbol=w,r.isUndefined=x,r.isRegExp=_,r.isObject=k,r.isDate=O,r.isError=E,r.isFunction=S,r.isPrimitive=C,r.isBuffer=e("./support/isBuffer");var V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",R(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!k(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":88,_process:69,inherits:65}],90:[function(e,t,r){r.SourceMapGenerator=e("./source-map/source-map-generator").SourceMapGenerator,r.SourceMapConsumer=e("./source-map/source-map-consumer").SourceMapConsumer,r.SourceNode=e("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":96,"./source-map/source-map-generator":97,"./source-map/source-node":98}],91:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(){this._array=[],this._set={}}var i=e("./util");n.fromArray=function(e,t){for(var r=new n,i=0,o=e.length;o>i;i++)r.add(e[i],t);return r},n.prototype.add=function(e,t){var r=this.has(e),n=this._array.length;(!r||t)&&this._array.push(e),r||(this._set[i.toSetString(e)]=n)},n.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,i.toSetString(e))},n.prototype.indexOf=function(e){if(this.has(e))return this._set[i.toSetString(e)];throw new Error('"'+e+'" is not in the set.')},n.prototype.at=function(e){if(e>=0&&ee?(-e<<1)+1:(e<<1)+0}function i(e){var t=1===(1&e),r=e>>1;return t?-r:r}var o=e("./base64"),a=5,s=1<>>=a,i>0&&(t|=l),r+=o.encode(t);while(i>0);return r},t.decode=function(e,t,r){var n,s,c=e.length,f=0,h=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");s=o.decode(e.charAt(t++)),n=!!(s&l),s&=u,f+=s<0?r-u>1?n(u,r,i,o,a,s):s==t.LEAST_UPPER_BOUND?r1?n(e,u,i,o,a,s):s==t.LEAST_UPPER_BOUND?u:0>e?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,o){if(0===r.length)return-1;var a=n(-1,r.length,e,r,i,o||t.GREATEST_LOWER_BOUND);if(0>a)return-1;for(;a-1>=0&&0===i(r[a],r[a-1],!0);)--a;return a}})},{amdefine:100}],95:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,a=t.generatedColumn;return n>r||n==r&&a>=i||o.compareByGeneratedPositions(e,t)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var o=e("./util");i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositions),this._sorted=!0),this._array},t.MappingList=i})},{"./util":99,amdefine:100}],96:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new o(t):new i(t)}function i(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=a.getArg(t,"version"),n=a.getArg(t,"sources"),i=a.getArg(t,"names",[]),o=a.getArg(t,"sourceRoot",null),s=a.getArg(t,"sourcesContent",null),l=a.getArg(t,"mappings"),c=a.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(a.normalize),this._names=u.fromArray(i,!0),this._sources=u.fromArray(n,!0),this.sourceRoot=o,this.sourcesContent=s,this._mappings=l,this.file=c}function o(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=a.getArg(t,"version"),i=a.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);var o={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=a.getArg(e,"offset"),r=a.getArg(t,"line"),i=a.getArg(t,"column");if(r=0)for(var i=this._originalMappings[n],o=i.originalLine,u=i.originalColumn;i&&i.originalLine===o&&(void 0===e.column||i.originalColumn===u);)r.push({line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++n];return r},t.SourceMapConsumer=n,i.prototype=Object.create(n.prototype),i.prototype.consumer=n,i.fromSourceMap=function(e){var t=Object.create(i.prototype);return t._names=u.fromArray(e._names.toArray(),!0),t._sources=u.fromArray(e._sources.toArray(),!0),t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file,t.__generatedMappings=e._mappings.toArray().slice(),t.__originalMappings=e._mappings.toArray().slice().sort(a.compareByOriginalPositions),t},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?a.join(this.sourceRoot,e):e},this)}}),i.prototype._parseMappings=function(e,t){for(var r,n,i,o,s,u=1,c=0,f=0,h=0,p=0,d=0,g=e.length,m=0,v={},b={};g>m;)if(";"===e.charAt(m))u++,++m,c=0;else if(","===e.charAt(m))++m;else{for(r={},r.generatedLine=u,o=m;g>o&&!this._nextCharIsMappingSeparator(e,o);++o);if(n=e.slice(m,o),i=v[n])m+=n.length;else{for(i=[];o>m;)l.decode(e,m,b),s=b.value,m=b.rest,i.push(s);v[n]=i}if(r.generatedColumn=c+i[0],c=r.generatedColumn,i.length>1){if(r.source=this._sources.at(p+i[1]),p+=i[1],2===i.length)throw new Error("Found a source, but no line and column");if(r.originalLine=f+i[2],f=r.originalLine,r.originalLine+=1,3===i.length)throw new Error("Found a source and line, but no column");r.originalColumn=h+i[3],h=r.originalColumn,i.length>4&&(r.name=this._names.at(d+i[4]),d+=i[4])}this.__generatedMappings.push(r),"number"==typeof r.originalLine&&this.__originalMappings.push(r)}this.__generatedMappings.sort(a.compareByGeneratedPositions),this.__originalMappings.sort(a.compareByOriginalPositions)},i.prototype._findMapping=function(e,t,r,n,i,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return s.search(e,t,i,o)},i.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var o=a.getArg(i,"source",null);return null!=o&&null!=this.sourceRoot&&(o=a.join(this.sourceRoot,o)),{source:o,line:a.getArg(i,"originalLine",null),column:a.getArg(i,"originalColumn",null),name:a.getArg(i,"name",null)}}}return{source:null,line:null,column:null,name:null}},i.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=a.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=a.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(e){var t={source:a.getArg(e,"source"),originalLine:a.getArg(e,"line"),originalColumn:a.getArg(e,"column")};null!=this.sourceRoot&&(t.source=a.relative(this.sourceRoot,t.source));var r=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,a.getArg(e,"bias",n.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===t.source)return{line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=i,o.prototype=Object.create(n.prototype),o.prototype.constructor=n,o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&e.column>=0&&!t&&!r&&!n||e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},n.prototype._serializeMappings=function(){for(var e,t=0,r=1,n=0,a=0,s=0,u=0,l="",c=this._mappings.toArray(),f=0,h=c.length;h>f;f++){if(e=c[f],e.generatedLine!==r)for(t=0;e.generatedLine!==r;)l+=";",r++;else if(f>0){if(!o.compareByGeneratedPositions(e,c[f-1]))continue;l+=","}l+=i.encode(e.generatedColumn-t),t=e.generatedColumn,null!=e.source&&(l+=i.encode(this._sources.indexOf(e.source)-u),u=this._sources.indexOf(e.source),l+=i.encode(e.originalLine-1-a),a=e.originalLine-1,l+=i.encode(e.originalColumn-n),n=e.originalColumn,null!=e.name&&(l+=i.encode(this._names.indexOf(e.name)-s),s=this._names.indexOf(e.name)))}return l},n.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var r=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},n.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},n.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=n})},{"./array-set":91,"./base64-vlq":92,"./mapping-list":95,"./util":99,amdefine:100}],98:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[u]=!0,null!=n&&this.add(n)}var i=e("./source-map-generator").SourceMapGenerator,o=e("./util"),a=/(\r?\n)/,s=10,u="$$$isSourceNode$$$";n.fromStringWithSourceMap=function(e,t,r){function i(e,t){if(null===e||void 0===e.source)s.add(t);else{var i=r?o.join(r,e.source):e.source;s.add(new n(e.originalLine,e.originalColumn,i,t,e.name))}}var s=new n,u=e.split(a),l=function(){var e=u.shift(),t=u.shift()||"";return e+t},c=1,f=0,h=null;return t.eachMapping(function(e){if(null!==h){if(!(c0&&(h&&i(h,l()),s.add(u.join(""))),t.sources.forEach(function(e){var n=t.sourceContentFor(e);null!=n&&(null!=r&&(e=o.join(r,e)),s.setSourceContent(e,n))}),s},n.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},n.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},n.prototype.walk=function(e){for(var t,r=0,n=this.children.length;n>r;r++)t=this.children[r],t[u]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},n.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;n-1>r;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},n.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[u]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},n.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},n.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;r>t;t++)this.children[t][u]&&this.children[t].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),t=0,r=n.length;r>t;t++)e(o.fromSetString(n[t]),this.sourceContents[n[t]])},n.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},n.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new i(e),n=!1,o=null,a=null,u=null,l=null;return this.walk(function(e,i){t.code+=e,null!==i.source&&null!==i.line&&null!==i.column?((o!==i.source||a!==i.line||u!==i.column||l!==i.name)&&r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name}),o=i.source,a=i.line,u=i.column,l=i.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),o=null,n=!1);for(var c=0,f=e.length;f>c;c++)e.charCodeAt(c)===s?(t.line++,t.column=0,c+1===f?(o=null,n=!1):n&&r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})):t.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:t.code,map:r}},t.SourceNode=n})},{"./source-map-generator":97,"./util":99,amdefine:100}],99:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}function i(e){var t=e.match(d);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var t=e,r=i(e);if(r){if(!r.path)return e;t=r.path}for(var n,a="/"===t.charAt(0),s=t.split(/\/+/),u=0,l=s.length-1;l>=0;l--)n=s[l],"."===n?s.splice(l,1):".."===n?u++:u>0&&(""===n?(s.splice(l+1,u),u=0):(s.splice(l,2),u--));return t=s.join("/"),""===t&&(t=a?"/":"."),r?(r.path=t,o(r)):t}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),n=i(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),o(r);if(r||t.match(g))return t;if(n&&!n.host&&!n.path)return n.host=t,o(n);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=s,o(n)):s}function u(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");var r=i(e);return"/"==t.charAt(0)&&r&&"/"==r.path?t.slice(1):0===t.indexOf(e+"/")?t.substr(e.length+1):t}function l(e){return"$"+e}function c(e){return e.substr(1)}function f(e,t){var r=e||"",n=t||"";return(r>n)-(n>r)}function h(e,t,r){var n;return(n=f(e.source,t.source))?n:(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,n||r?n:(n=e.generatedColumn-t.generatedColumn)?n:(n=e.generatedLine-t.generatedLine,n?n:f(e.name,t.name)))}function p(e,t,r){var n;return(n=e.generatedLine-t.generatedLine)?n:(n=e.generatedColumn-t.generatedColumn,n||r?n:(n=f(e.source,t.source))?n:(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,n?n:f(e.name,t.name)))}t.getArg=n;var d=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,g=/^data:.+\,.+$/;t.urlParse=i,t.urlGenerate=o,t.normalize=a,t.join=s,t.relative=u,t.toSetString=l,t.fromSetString=c,t.compareByOriginalPositions=h,t.compareByGeneratedPositions=p})},{amdefine:100}],100:[function(e,t,r){(function(r,n){"use strict";function i(t,i){function o(e){var t,r;for(t=0;e[t];t+=1)if(r=e[t],"."===r)e.splice(t,1),t-=1;else if(".."===r){if(1===t&&(".."===e[2]||".."===e[0]))break;t>0&&(e.splice(t-1,2),t-=2)}}function a(e,t){var r;return e&&"."===e.charAt(0)&&t&&(r=t.split("/"),r=r.slice(0,r.length-1),r=r.concat(e.split("/")),o(r),e=r.join("/")),e}function s(e){return function(t){return a(t,e)}}function u(e){function t(t){d[e]=t}return t.fromText=function(e,t){throw new Error("amdefine does not implement load.fromText")},t}function l(e,r,o){var a,s,u,l;if(e)s=d[e]={},u={id:e,uri:n,exports:s},a=f(i,s,u,e);else{if(g)throw new Error("amdefine with no module ID cannot be called more than once per file.");g=!0,s=t.exports,u=t,a=f(i,s,u,t.id)}r&&(r=r.map(function(e){return a(e)})),l="function"==typeof o?o.apply(u.exports,r):o,void 0!==l&&(u.exports=l,e&&(d[e]=u.exports))}function c(e,t,r){Array.isArray(e)?(r=t,t=e,e=void 0):"string"!=typeof e&&(r=e, -e=t=void 0),t&&!Array.isArray(t)&&(r=t,t=void 0),t||(t=["require","exports","module"]),e?p[e]=[e,t,r]:l(e,t,r)}var f,h,p={},d={},g=!1,m=e("path");return f=function(e,t,n,i){function o(o,a){return"string"==typeof o?h(e,t,n,o,i):(o=o.map(function(r){return h(e,t,n,r,i)}),void r.nextTick(function(){a.apply(null,o)}))}return o.toUrl=function(e){return 0===e.indexOf(".")?a(e,m.dirname(n.filename)):e},o},i=i||function(){return t.require.apply(t,arguments)},h=function(e,t,r,n,i){var o,c,g=n.indexOf("!"),m=n;if(-1===g){if(n=a(n,i),"require"===n)return f(e,t,r,i);if("exports"===n)return t;if("module"===n)return r;if(d.hasOwnProperty(n))return d[n];if(p[n])return l.apply(null,p[n]),d[n];if(e)return e(m);throw new Error("No module with ID: "+n)}return o=n.substring(0,g),n=n.substring(g+1,n.length),c=h(e,t,r,o,i),n=c.normalize?c.normalize(n,s(i)):a(n,i),d[n]?d[n]:(c.load(n,f(e,t,r,i),u(n),{}),d[n])},c.require=function(e){return d[e]?d[e]:p[e]?(l.apply(null,p[e]),d[e]):void 0},c.amd={},c}t.exports=i}).call(this,e("_process"),"/node_modules\\source-map\\node_modules\\amdefine\\amdefine.js")},{_process:69,path:68}],101:[function(e,t,r){t.exports=e("./lib/clean")},{"./lib/clean":1}]},{},[101])(101)}); \ No newline at end of file +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.CleanCSS=e()}}(function(){var e;return function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[a]={exports:{}};e[a][0].call(c.exports,function(t){var r=e[a][1][t];return i(r?r:t)},c,c.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a0?t.errors:null,r):r}return function(e){return t.options.sourceMap?t.inputSourceMapTracker.track(e,function(){return t.options.sourceMapInlineSources?t.inputSourceMapTracker.resolveSources(function(){return r(e)}):r(e)}):r(e)}}function a(e,t){return t.stats=e.stats,t.errors=e.errors,t.warnings=e.warnings,t}function s(e,t){var n=r.hrtime();e.stats.originalSize=e.sourceTracker.removeAll(t).length,t=l(e,t);var i=r.hrtime(n);return e.stats.timeSpent=~~(1e3*i[0]+i[1]/1e6),e.stats.efficiency=1-t.styles.length/e.stats.originalSize,e.stats.minifiedSize=t.styles.length,t}function u(e){return function(t,n){var i=t.constructor.name+"#"+n,o=r.hrtime();e(t,n);var a=r.hrtime(o);console.log("%d ms: "+i,1e3*a[0]+a[1]/1e6)}}function l(e,t){var r=e.options,n=e.inputSourceMapTracker,i=new g(e,r.keepSpecialComments,r.keepBreaks,r.sourceMap),o=new m(r.sourceMap),a=new v(r.sourceMap),s=new b(e,r.sourceMap,r.compatibility.properties.urlQuotes),l=new h(r,e),c=r.sourceMap?d:p,y=function(e,r){t="function"==typeof e?e(t):e[r](t)};return r.benchmark&&(y=u(y)),y(i,"escape"),y(o,"escape"),y(s,"escape"),y(a,"escape"),y(function(){return l.process(t,c,function(t){return t=a.restore(t),t=s.restore(t),t=r.rebase?f(t,e):t,t=o.restore(t),i.restore(t)},n)}),t}var c=e("./imports/inliner"),f=e("./urls/rebase"),h=e("./selectors/optimizer"),p=e("./stringifier/simple"),d=e("./stringifier/source-maps"),g=e("./text/comments-processor"),m=e("./text/expressions-processor"),v=e("./text/free-text-processor"),b=e("./text/urls-processor"),y=e("./utils/compatibility"),w=e("./utils/input-source-map-tracker"),x=e("./utils/source-tracker"),_=e("./utils/source-reader"),k=e("./properties/validator"),O=e("fs"),E=e("path"),S=5e3,C=t.exports=function(e){e=e||{},this.options={advanced:void 0===e.advanced?!0:!!e.advanced,aggressiveMerging:void 0===e.aggressiveMerging?!0:!!e.aggressiveMerging,benchmark:e.benchmark,compatibility:new y(e.compatibility).toOptions(),debug:e.debug,explicitRoot:!!e.root,explicitTarget:!!e.target,inliner:e.inliner||{},keepBreaks:e.keepBreaks||!1,keepSpecialComments:"keepSpecialComments"in e?e.keepSpecialComments:"*",mediaMerging:void 0===e.mediaMerging?!0:!!e.mediaMerging,processImport:void 0===e.processImport?!0:!!e.processImport,rebase:void 0===e.rebase?!0:!!e.rebase,relativeTo:e.relativeTo,restructuring:void 0===e.restructuring?!0:!!e.restructuring,root:e.root||r.cwd(),roundingPrecision:e.roundingPrecision,semanticMerging:void 0===e.semanticMerging?!1:!!e.semanticMerging,shorthandCompacting:void 0===e.shorthandCompacting?!0:!!e.shorthandCompacting,sourceMap:e.sourceMap,sourceMapInlineSources:!!e.sourceMapInlineSources,target:!e.target||n(e.target)||i(e.target)?e.target:E.dirname(e.target)},this.options.inliner.timeout=this.options.inliner.timeout||S,this.options.inliner.request=this.options.inliner.request||{}};C.prototype.minify=function(e,t){var n={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,localOnly:!t,sourceTracker:new x,validator:new k(this.options.compatibility)};if(n.options.sourceMap&&(n.inputSourceMapTracker=new w(n)),n.sourceReader=new _(n,e),e=n.sourceReader.toString(),n.options.processImport||e.indexOf("@shallow")>0){var i=t?r.nextTick:function(e){return e()};return i(function(){return new c(n).process(e,{localOnly:n.localOnly,whenDone:o(t,n)})})}return o(t,n)(e)}}).call(this,e("_process"))},{"./imports/inliner":6,"./properties/validator":20,"./selectors/optimizer":25,"./stringifier/simple":33,"./stringifier/source-maps":34,"./text/comments-processor":35,"./text/expressions-processor":37,"./text/free-text-processor":38,"./text/urls-processor":39,"./urls/rebase":44,"./utils/compatibility":47,"./utils/input-source-map-tracker":48,"./utils/source-reader":51,"./utils/source-tracker":52,_process:70,fs:54,path:69}],3:[function(e,t,r){function n(e,t,r,n){return t+s[r.toLowerCase()]+n}function i(e,t,r){return u[t.toLowerCase()]+r}var o={},a={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},s={},u={};for(var l in a){var c=a[l];l.length-1,r=e.replace(f,n);return r!=e&&(r=r.replace(f,n)),t?r.replace(h,i):r},t.exports=o},{}],4:[function(e,t,r){function n(e,t,r){this.hue=e,this.saturation=t,this.lightness=r}function i(e,t,r){var n,i,a;if(e%=360,0>e&&(e+=360),e=~~e/360,0>t?t=0:t>100&&(t=100),t=~~t/100,0>r?r=0:r>100&&(r=100),r=~~r/100,0===t)n=i=a=r;else{var s=.5>r?r*(1+t):r+t-r*t,u=2*r-s;n=o(u,s,e+1/3),i=o(u,s,e),a=o(u,s,e-1/3)}return[~~(255*n),~~(255*i),~~(255*a)]}function o(e,t,r){return 0>r&&(r+=1),r>1&&(r-=1),1/6>r?e+6*(t-e)*r:.5>r?t:2/3>r?e+(t-e)*(2/3-r)*6:e}n.prototype.toHex=function(){var e=i(this.hue,this.saturation,this.lightness),t=e[0].toString(16),r=e[1].toString(16),n=e[2].toString(16);return"#"+((1==t.length?"0":"")+t)+((1==r.length?"0":"")+r)+((1==n.length?"0":"")+n)},t.exports=n},{}],5:[function(e,t,r){function n(e,t,r){this.red=e,this.green=t,this.blue=r}n.prototype.toHex=function(){var e=Math.max(0,Math.min(~~this.red,255)),t=Math.max(0,Math.min(~~this.green,255)),r=Math.max(0,Math.min(~~this.blue,255));return"#"+("00000"+(e<<16|t<<8|r).toString(16)).slice(-6)},t.exports=n},{}],6:[function(e,t,r){(function(r){function n(e){this.outerContext=e}function i(e,t){if(t.shallow)return t.shallow=!1,t.done.push(e),s(t);for(var r=0,n=0,i=0,o=u(e);n-1&&-1==n?r:-1==r&&n>-1?n:Math.min(r,n)}function s(e){return e.left.length>0?i.apply(null,e.left.shift()):e.whenDone(e.done.join(""))}function u(e){var t=/(\/\*(?!\*\/)[\s\S]*?\*\/)/,r=0,n=0,i=!1;return function o(a){var s,u=0,l=0,c=0,f=0;return i?!1:a>r&&n>a?!0:(s=e.match(t))?(r=u=s.index,l=u+s[0].length,f=l+n,c=f-s[0].length,e=e.substring(l),n=f,a>f?o(a):f>a&&a>c):(i=!0,!1)}}function l(e){for(var t=u(e),r=-1;;)if(r=e.indexOf("{",r+1),-1==r||!t(r))break;return r>-1}function c(e,t,r,n){n.shallow=e.indexOf("@shallow")>0;var i=e.substring(a(e,t)+"@import".length+1,r).replace(/@shallow\)$/,")").trim(),o=0===i.indexOf("url("),u=o?4:0,c=/^['"]/.exec(i.substring(u,u+2)),d=c?i.indexOf(c[0],u+1):new w(" ").split(i)[0].length-(o?1:0),g=i.substring(u,d).replace(/['"]/g,"").replace(/\)$/,"").trim(),m=i.substring(d+1).replace(/^\)/,"").trim(),v=n.isRemote||k.test(g);if(n.localOnly&&v)return n.afterContent||l(n.done.join(""))?n.warnings.push('Ignoring remote @import of "'+g+'" as no callback given.'):p(g,m,n),s(n);if(!v&&n.afterContent)return n.warnings.push('Ignoring local @import of "'+g+'" as after other CSS content.'),s(n);var b=v?f:h;return b(g,m,n)}function f(e,t,n){function a(e){h||(h=!0,n.errors.push('Broken @import declaration of "'+u+'" - '+e),p(u,t,n),r.nextTick(function(){s(n)}))}var u=k.test(e)?e:b.resolve(n.relativeTo,e),l=u;if(0===u.indexOf("//")&&(u="http:"+u),n.visited.indexOf(u)>-1)return s(n);n.debug&&console.error("Inlining remote stylesheet: "+u),n.visited.push(u);var c=0===u.indexOf("http://")?m.get:v.get,h=!1,d=x(b.parse(u),n.inliner.request);c(d,function(e){if(e.statusCode<200||e.statusCode>399)return a("error "+e.statusCode);if(e.statusCode>299){var s=b.resolve(u,e.headers.location);return f(s,t,n)}var c=[],h=b.parse(u);e.on("data",function(e){c.push(e.toString())}),e.on("end",function(){var e=c.join("");n.rebase&&(e=y(e,{toBase:l},n)),n.sourceReader.trackSource(u,e),e=n.sourceTracker.store(u,e),e=o(e,u),t.length>0&&(e="@media "+t+"{"+e+"}");var a=x(n,{isRemote:!0,relativeTo:h.protocol+"//"+h.host+h.pathname});r.nextTick(function(){i(e,a)})})}).on("error",function(e){a(e.message)}).on("timeout",function(){a("timeout")}).setTimeout(n.inliner.timeout)}function h(e,t,r){var n="/"==e[0]?r.root:r.relativeTo,o=g.resolve(g.join(n,e));if(!d.existsSync(o)||!d.statSync(o).isFile())return r.errors.push('Broken @import declaration of "'+e+'"'),s(r);if(r.visited.indexOf(o)>-1)return s(r);r.debug&&console.error("Inlining local stylesheet: "+o),r.visited.push(o);var a=g.dirname(o),u=d.readFileSync(o,"utf8");if(r.rebase){var l={relative:!0,fromBase:a,toBase:r.baseRelativeTo};u=y(u,l,r)}var c=g.relative(r.root,o);r.sourceReader.trackSource(c,u),u=r.sourceTracker.store(c,u),t.length>0&&(u="@media "+t+"{"+u+"}");var f=x(r,{relativeTo:a});return i(u,f)}function p(e,t,r){var n="@import url("+e+")"+(t.length>0?" "+t:"")+";";r.done.push(n)}var d=e("fs"),g=e("path"),m=e("http"),v=e("https"),b=e("url"),y=e("../urls/rewrite"),w=e("../utils/splitter.js"),x=e("../utils/object.js").override,_=/\/\*# sourceMappingURL=(\S+) \*\//,k=/^(https?:)?\/\//;n.prototype.process=function(e,t){var r=this.outerContext.options.root;return t=x(t,{baseRelativeTo:this.outerContext.options.relativeTo||r,debug:this.outerContext.options.debug,done:[],errors:this.outerContext.errors,left:[],inliner:this.outerContext.options.inliner,rebase:this.outerContext.options.rebase,relativeTo:this.outerContext.options.relativeTo||r,root:r,sourceReader:this.outerContext.sourceReader,sourceTracker:this.outerContext.sourceTracker,warnings:this.outerContext.warnings,visited:[]}),i(e,t)},t.exports=n}).call(this,e("_process"))},{"../urls/rewrite":46,"../utils/object.js":49,"../utils/splitter.js":53,_process:70,fs:54,http:61,https:65,path:69,url:88}],7:[function(e,t,r){function n(e){return function(t){return"invert"==t[0]||e.isValidColor(t[0])}}function i(e){return function(t){return"inherit"!=t[0]&&e.isValidStyle(t[0])}}function o(e,t,r){var n=r[e];return p(n.doubleValues&&2==n.defaultValue.length?[[e,t.important],[n.defaultValue[0]],[n.defaultValue[1]]]:n.doubleValues&&1==n.defaultValue.length?[[e,t.important],[n.defaultValue[0]]]:[[e,t.important],[n.defaultValue]])}function a(e){return function(t){return"inherit"!=t[0]&&e.isValidWidth(t[0])}}function s(e,t,r){var n=o("background-image",e,t),i=o("background-position",e,t),a=o("background-size",e,t),s=o("background-repeat",e,t),u=o("background-attachment",e,t),l=o("background-origin",e,t),c=o("background-clip",e,t),f=o("background-color",e,t),h=[n,i,a,s,u,l,c,f],p=e.value,g=!1,m=!1,v=!1,b=!1;if(1==e.value.length&&"inherit"==e.value[0][0])return f.value=n.value=s.value=i.value=a.value=l.value=c.value=e.value,h;for(var y=p.length-1;y>=0;y--){var w=p[y];if(r.isValidBackgroundAttachment(w[0]))u.value=[w];else if(r.isValidBackgroundBox(w[0]))m?(l.value=[w],v=!0):(c.value=[w],m=!0);else if(r.isValidBackgroundRepeat(w[0]))b?s.value.unshift(w):(s.value=[w],b=!0);else if(r.isValidBackgroundPositionPart(w[0])||r.isValidBackgroundSizePart(w[0]))if(y>0){var x=p[y-1];if(x[0].indexOf("/")>0){var _=new d("/").split(x[0]);a.value=[[_.pop()].concat(x.slice(1)),w],p[y-1]=[_.pop()].concat(x.slice(1))}else y>1&&"/"==p[y-2]?(a.value=[x,w],y-=2):"/"==p[y-1]?a.value=[w]:(g||(i.value=[]),i.value.unshift(w),g=!0)}else g||(i.value=[]),i.value.unshift(w),g=!0;else if(r.isValidBackgroundPositionAndSize(w[0])){var k=new d("/").split(w[0]);a.value=[[k.pop()].concat(w.slice(1))],i.value=[[k.pop()].concat(w.slice(1))]}else f.value!=t[f.name].defaultValue&&"none"!=f.value||!r.isValidColor(w[0])?(r.isValidUrl(w[0])||r.isValidFunction(w[0]))&&(n.value=[w]):f.value=[w]}return m&&!v&&(l.value=c.value.slice(0)),h}function u(e,t){for(var r=e.value,n=-1,i=0,a=r.length;a>i;i++)if("/"==r[i][0]){n=i;break}if(-1==n)return l(e,t);var s=o(e.name,e,t);s.value=r.slice(0,n),s.components=l(s,t);var u=o(e.name,e,t);u.value=r.slice(n+1),u.components=l(u,t);for(var c=0;4>c;c++)s.components[c].multiplex=!0,s.components[c].value=s.components[c].value.concat([["/"]]).concat(u.components[c].value);return s.components}function l(e,t){var r=t[e.name].components,n=[],i=e.value;if(i.length<1)return[];i.length<2&&(i[1]=i[0]),i.length<3&&(i[2]=i[0]),i.length<4&&(i[3]=i[1]);for(var o=r.length-1;o>=0;o--){var a=p([[r[o],e.important]]);a.value=[i[o]],n.unshift(a)}return n}function c(e){return function(t,r,n){var i,a,s,u,l=[],c=t.value;for(i=0,s=c.length;s>i;i++)","==c[i][0]&&l.push(i);if(0===l.length)return e(t,r,n);var f=[];for(i=0,s=l.length;s>=i;i++){var h=0===i?0:l[i-1]+1,p=s>i?l[i]:c.length,d=o(t.name,t,r);d.value=c.slice(h,p),f.push(e(d,r,n))}var m=f[0];for(i=0,s=m.length;s>i;i++)for(m[i].multiplex=!0,a=1,u=f.length;u>a;a++)m[i].value.push([g]),Array.prototype.push.apply(m[i].value,f[a][i].value);return m}}function f(e,t,r){var n=o("list-style-type",e,t),i=o("list-style-position",e,t),a=o("list-style-image",e,t),s=[n,i,a];if(1==e.value.length&&"inherit"==e.value[0][0])return n.value=i.value=a.value=[e.value[0]],s;var u=e.value.slice(0),l=u.length,c=0;for(c=0,l=u.length;l>c;c++)if(r.isValidUrl(u[c][0])||"0"==u[c][0]){a.value=[u[c]],u.splice(c,1);break}for(c=0,l=u.length;l>c;c++)if(r.isValidListStyleType(u[c][0])){n.value=[u[c]],u.splice(c,1);break}return u.length>0&&r.isValidListStylePosition(u[0][0])&&(i.value=[u[0]]),s}function h(e,t,r){for(var s,u,l,c=t[e.name],f=[o(c.components[0],e,t),o(c.components[1],e,t),o(c.components[2],e,t)],h=0;3>h;h++){var p=f[h];p.name.indexOf("color")>0?s=p:p.name.indexOf("style")>0?u=p:l=p}if(1==e.value.length&&"inherit"==e.value[0][0]||3==e.value.length&&"inherit"==e.value[0][0]&&"inherit"==e.value[1][0]&&"inherit"==e.value[2][0])return s.value=u.value=l.value=[e.value[0]],f;var d,g,m=e.value.slice(0);return m.length>0&&(g=m.filter(a(r)),d=g.length>1&&("none"==g[0]||"auto"==g[0])?g[1]:g[0],d&&(l.value=[d],m.splice(m.indexOf(d),1))),m.length>0&&(d=m.filter(i(r))[0],d&&(u.value=[d],m.splice(m.indexOf(d),1))),m.length>0&&(d=m.filter(n(r))[0],d&&(s.value=[d],m.splice(m.indexOf(d),1))),f}var p=e("./wrap-for-optimizing").single,d=e("../utils/splitter"),g=",";t.exports={background:s,border:h,borderRadius:u,fourValues:l,listStyle:f,multiplex:c,outline:h}},{"../utils/splitter":53,"./wrap-for-optimizing":22}],8:[function(e,t,r){function n(){return!0}function i(e,t,r){var n=e.value[0][0],i=t.value[0][0];return"none"==i||"inherit"==i||r.isValidUrl(i)?!0:"none"==n||"inherit"==n||r.isValidUrl(n)?!1:l(e,t,r)}function o(e,t,r){return a(e.components[2],t.components[2],r)}function a(e,t,r){var n=e.value[0][0],i=t.value[0][0];return r.isValidNamedColor(i)||r.isValidHexColor(i)?!0:r.isValidNamedColor(n)||r.isValidHexColor(n)?!1:r.isValidRgbaColor(i)||r.isValidHslaColor(i)?!0:r.isValidRgbaColor(n)||r.isValidHslaColor(n)?!1:l(e,t,r)}function s(e,t,r){var n=e.value[0][0],i=t.value[0][0];return!(r.isValidFunction(n)^r.isValidFunction(i))}function u(e,t){var r=e.value[0][0],n=t.value[0][0];return r===n}function l(e,t,r){var n=e.value[0][0],i=t.value[0][0];return r.areSameFunction(n,i)?!0:n===i}function c(e,t,r){var n=e.value[0][0],i=t.value[0][0];return r.isValidAndCompatibleUnitWithoutFunction(n)&&!r.isValidAndCompatibleUnitWithoutFunction(i)?!1:r.isValidUnitWithoutFunction(i)?!0:r.isValidUnitWithoutFunction(n)?!1:r.isValidFunctionWithoutVendorPrefix(i)&&r.isValidFunctionWithoutVendorPrefix(n)?!0:l(e,t,r)}t.exports={always:n,backgroundImage:i,border:o,color:a,sameValue:u,sameFunctionOrValue:l,twoOptionalFunctions:s,unit:c}},{}],9:[function(e,t,r){function n(e){for(var t=i(e),r=e.components.length-1;r>=0;r--){var n=i(e.components[r]);n.value=e.components[r].value.slice(0),t.components.unshift(n)}return t.dirty=!0,t.value=e.value.slice(0),t}function i(e){var t=o([[e.name,e.important,e.hack]]);return t.unused=!1,t}var o=e("./wrap-for-optimizing").single;t.exports={deep:n,shallow:i}},{"./wrap-for-optimizing":22}],10:[function(e,t,r){var n=e("./break-up"),i=e("./can-override"),o=e("./restore"),a={color:{canOverride:i.color,defaultValue:"transparent",shortestValue:"red"},background:{components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:n.multiplex(n.background),defaultValue:"0 0",restore:o.multiplex(o.background),shortestValue:"0",shorthand:!0},"background-clip":{canOverride:i.always,defaultValue:"border-box",shortestValue:"border-box"},"background-color":{canOverride:i.color,defaultValue:"transparent",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:i.backgroundImage,defaultValue:"none"},"background-origin":{canOverride:i.always,defaultValue:"padding-box",shortestValue:"border-box"},"background-repeat":{canOverride:i.always,defaultValue:["repeat"],doubleValues:!0},"background-position":{canOverride:i.always,defaultValue:["0","0"],doubleValues:!0,shortestValue:"0"},"background-size":{canOverride:i.always,defaultValue:["auto"],doubleValues:!0,shortestValue:"0 0"},"background-attachment":{canOverride:i.always,defaultValue:"scroll"},border:{breakUp:n.border,canOverride:i.border,components:["border-width","border-style","border-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-color":{canOverride:i.color,defaultValue:"none",shorthand:!0},"border-style":{canOverride:i.always,defaultValue:"none",shorthand:!0},"border-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0",shorthand:!0},"list-style":{components:["list-style-type","list-style-position","list-style-image"],canOverride:i.always,breakUp:n.listStyle,restore:o.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-type":{canOverride:i.always,defaultValue:"__hack",shortestValue:"none"},"list-style-position":{canOverride:i.always,defaultValue:"outside",shortestValue:"inside"},"list-style-image":{canOverride:i.always,defaultValue:"none"},outline:{components:["outline-color","outline-style","outline-width"],breakUp:n.outline,restore:o.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:i.color,defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:i.always,defaultValue:"none"},"outline-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0"},"-moz-transform":{canOverride:i.sameFunctionOrValue},"-ms-transform":{canOverride:i.sameFunctionOrValue},"-webkit-transform":{canOverride:i.sameFunctionOrValue},transform:{canOverride:i.sameFunctionOrValue}},s=function(e,t,r){r=r||{},a[e]={canOverride:r.canOverride,components:t,breakUp:r.breakUp||n.fourValues,defaultValue:r.defaultValue||"0",restore:r.restore||o.fourValues,shortestValue:r.shortestValue,shorthand:!0};for(var s=0;sl;l++)a[a[u].components[l]].componentOf=u;t.exports=a},{"./break-up":7,"./can-override":8,"./restore":18}],11:[function(e,t,r){function n(e,t,r,n){for(var a=i(t),s=i(r),u=0,l=t.value.length;l>u;u++)for(var c=0,f=r.value.length;f>c;c++)if(t.value[u][0]!=o&&r.value[c][0]!=o&&(a.value=[t.value[u]],s.value=[r.value[c]],!e(a,s,n)))return!1;return!0}var i=e("./clone").shallow,o=",";t.exports=n},{"./clone":9}],12:[function(e,t,r){function n(e){for(var t=e.value.length-1;t>=0;t--)if("inherit"==e.value[t][0])return!0;return!1}t.exports=n},{}],13:[function(e,t,r){function n(e,t,r,n){function i(e){return t===!1||t===!0?t:t.indexOf(e)>-1}function a(t){var r=e[t-1],n=e[t];return h(r.all,r.position)==h(n.all,n.position)}var s,u={},l=null;e:for(var c=0,f=e.length;f>c;c++){var d=e[c],g=!("-ms-filter"!=d.name&&"filter"!=d.name||"background"!=l&&"background-image"!=l)?l:d.name,m=d.important,v=d.hack;if(!d.unused)if(c>0&&g==l&&a(c))d.unused=!0;else{if(g in u&&(r&&g!=l||i(c))){var b=u[g],y=o[g]&&o[g].canOverride,w=!1;for(s=b.length-1;s>=0;s--){var x=e[b[s]],_=x.name!=g,k=x.important,O=x.hack;if(!x.unused&&(!_||!k)&&(k||!(O&&!v||!O&&v))&&(!k||"star"!=v&&"underscore"!=v)&&(O||v||_||!y||y(x,d,n))){if(k&&!m||k&&v){d.unused=!0;continue e}w=!0,x.unused=!0}}w&&(c=-1,u={})}else{u[g]=u[g]||[],u[g].push(c);var E=p[g];if(E)for(s=E.length-1;s>=0;s--){var S=E[s];u[S]=u[S]||[],u[S].push(c)}}l=g}}}function i(e,t,r,i,o,h){var p=a(t);s(p,h),n(p,r,o.aggressiveMerging,h),i&&o.shorthandCompacting&&(u(p,o.compatibility,h),l(p,o.sourceMap,h)),f(p),c(p)}var o=e("./compactable"),a=e("./wrap-for-optimizing").all,s=e("./populate-components"),u=e("./override-compactor"),l=e("./shorthand-compactor"),c=e("./remove-unused"),f=e("./restore-shorthands"),h=e("../stringifier/one-time").property,p={"animation-delay":["animation"],"animation-direction":["animation"],"animation-duration":["animation"],"animation-fill-mode":["animation"],"animation-iteration-count":["animation"],"animation-name":["animation"],"animation-play-state":["animation"],"animation-timing-function":["animation"],"-moz-animation-delay":["-moz-animation"],"-moz-animation-direction":["-moz-animation"],"-moz-animation-duration":["-moz-animation"],"-moz-animation-fill-mode":["-moz-animation"],"-moz-animation-iteration-count":["-moz-animation"],"-moz-animation-name":["-moz-animation"],"-moz-animation-play-state":["-moz-animation"],"-moz-animation-timing-function":["-moz-animation"],"-o-animation-delay":["-o-animation"],"-o-animation-direction":["-o-animation"],"-o-animation-duration":["-o-animation"],"-o-animation-fill-mode":["-o-animation"],"-o-animation-iteration-count":["-o-animation"],"-o-animation-name":["-o-animation"],"-o-animation-play-state":["-o-animation"],"-o-animation-timing-function":["-o-animation"],"-webkit-animation-delay":["-webkit-animation"],"-webkit-animation-direction":["-webkit-animation"],"-webkit-animation-duration":["-webkit-animation"],"-webkit-animation-fill-mode":["-webkit-animation"],"-webkit-animation-iteration-count":["-webkit-animation"],"-webkit-animation-name":["-webkit-animation"],"-webkit-animation-play-state":["-webkit-animation"],"-webkit-animation-timing-function":["-webkit-animation"],"border-color":["border"],"border-style":["border"],"border-width":["border"],"border-bottom":["border"],"border-bottom-color":["border-bottom","border-color","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left":["border"],"border-left-color":["border-left","border-color","border"],"border-left-style":["border-left","border-style","border"],"border-left-width":["border-left","border-width","border"],"border-right":["border"],"border-right-color":["border-right","border-color","border"],"border-right-style":["border-right","border-style","border"],"border-right-width":["border-right","border-width","border"],"border-top":["border"],"border-top-color":["border-top","border-color","border"],"border-top-style":["border-top","border-style","border"],"border-top-width":["border-top","border-width","border"],"font-family":["font"],"font-size":["font"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"transition-delay":["transition"],"transition-duration":["transition"],"transition-property":["transition"],"transition-timing-function":["transition"],"-moz-transition-delay":["-moz-transition"],"-moz-transition-duration":["-moz-transition"],"-moz-transition-property":["-moz-transition"],"-moz-transition-timing-function":["-moz-transition"],"-o-transition-delay":["-o-transition"],"-o-transition-duration":["-o-transition"],"-o-transition-property":["-o-transition"],"-o-transition-timing-function":["-o-transition"],"-webkit-transition-delay":["-webkit-transition"],"-webkit-transition-duration":["-webkit-transition"],"-webkit-transition-property":["-webkit-transition"],"-webkit-transition-timing-function":["-webkit-transition"]};t.exports=i},{"../stringifier/one-time":32,"./compactable":10,"./override-compactor":14,"./populate-components":15,"./remove-unused":16,"./restore-shorthands":17,"./shorthand-compactor":19,"./wrap-for-optimizing":22}],14:[function(e,t,r){function n(e){return function(t){return e.name===t.name}}function i(e,t){for(var r=0;r-1}function a(e,t){t.unused=!0,f(t,h(e)),e.value=t.value}function s(e,t){t.unused=!0,e.multiplex=!0,e.value=t.value}function u(e,t){t.unused=!0,e.value=t.value}function l(e,t){t.multiplex?s(e,t):e.multiplex?a(e,t):u(e,t)}function c(e,t){t.unused=!0;for(var r=0,n=e.components.length;n>r;r++)l(e.components[r],t.components[r],e.multiplex)}function f(e,t){e.multiplex=!0;for(var r=0,n=e.components.length;n>r;r++){var i=e.components[r];if(!i.multiplex)for(var o=i.value.slice(0),a=1;t>a;a++)i.value.push([j]),Array.prototype.push.apply(i.value,o)}}function h(e){for(var t=0,r=0,n=e.value.length;n>r;r++)e.value[r][0]==j&&t++;return t+1}function p(e){var t=[[e.name]].concat(e.value);return L([t],0).length}function d(e,t,r){for(var n=0,i=t;i>=0&&(e[i].name!=r||e[i].unused||n++,!(n>1));i--);return n>1}function g(e,t,r){for(var n=0,i=e.components.length;i>n;n++)if(m(r.isValidFunction,e.components[n]))return!0;return!1}function m(e,t){for(var r=0,n=t.value.length;n>r;r++)if(t.value[r][0]!=j&&e(t.value[r][0]))return!0;return!1}function v(e,t){if(!e.multiplex&&!t.multiplex||e.multiplex&&t.multiplex)return!1;var r,i=e.multiplex?e:t,o=e.multiplex?t:e,u=E(i);A([u]);var l=E(o);A([l]);var c=p(u)+1+p(l);e.multiplex?(r=u.components.filter(n(l))[0],a(r,l)):(r=l.components.filter(n(u))[0],f(l,h(u)),s(r,u)),A([l]);var d=p(l);return d>c}function b(e){return e.name in O}function y(e,t){return!e.multiplex&&("background"==e.name||"background-image"==e.name)&&t.multiplex&&("background"==t.name||"background-image"==t.name)&&w(t.value)}function w(e){for(var t=x(e),r=0,n=t.length;n>r;r++)if(1==t[r].length&&"none"==t[r][0][0])return!0;return!1}function x(e){for(var t=[],r=0,n=[],i=e.length;i>r;r++){var o=e[r];o[0]==j?(t.push(n),n=[]):n.push(o)}return t.push(n),t}function _(e,t,r){var a,s,u,p,m,w,x;e:for(m=e.length-1;m>=0;m--)if(s=e[m],b(s))for(a=O[s.name].canOverride||k.sameValue,w=m-1;w>=0;w--)if(u=e[w],b(u)&&!u.unused&&!s.unused&&!(u.hack&&!s.hack||!u.hack&&s.hack||C(s)||y(u,s)))if(!u.shorthand&&s.shorthand&&o(s,u)){if(!s.important&&u.important)continue;if(!R([u],s.components))continue;p=s.components.filter(n(u))[0],a=O[u.name]&&O[u.name].canOverride||k.sameValue,M(a,u,p,r)&&(u.unused=!0)}else if(u.shorthand&&!s.shorthand&&o(u,s)){if(s.important&&!u.important)continue;if(d(e,m-1,u.name))continue;if(g(u,s,r))continue;if(p=u.components.filter(n(s))[0],M(a,p,s,r)){var _=!t.properties.backgroundClipMerging&&p.name.indexOf("background-clip")>-1||!t.properties.backgroundOriginMerging&&p.name.indexOf("background-origin")>-1||!t.properties.backgroundSizeMerging&&p.name.indexOf("background-size")>-1,E=O[s.name].nonMergeableValue===s.value[0][0];if(_||E)continue;if(!t.properties.merging&&i(u,r))continue;if(p.value[0][0]!=s.value[0][0]&&(C(u)||C(s)))continue;if(v(u,s))continue;!u.multiplex&&s.multiplex&&f(u,h(s)),l(p,s),u.dirty=!0}}else if(u.shorthand&&s.shorthand&&u.name==s.name){ +if(!s.important&&u.important){s.unused=!0;continue e}if(s.important&&!u.important){u.unused=!0;continue}for(x=u.components.length-1;x>=0;x--){var S=u.components[x],A=s.components[x];if(a=O[S.name].canOverride||k.sameValue,!M(a,S,A,r))continue e;if(!M(k.twoOptionalFunctions,S,A,r)&&r.isValidFunction(A))continue e}c(u,s),u.dirty=!0}else if(u.shorthand&&s.shorthand&&o(u,s)){if(!u.important&&s.important)continue;if(p=u.components.filter(n(s))[0],a=O[s.name].canOverride||k.sameValue,!M(a,p,s,r))continue;if(u.important&&!s.important){s.unused=!0;continue}var L=O[s.name].restore(s,O);if(L.length>1)continue;p=u.components.filter(n(s))[0],l(p,s),s.dirty=!0}else if(u.name==s.name){if(u.important&&!s.important){s.unused=!0;continue}if(a=O[s.name].canOverride||k.sameValue,!M(a,u,s,r))continue;u.unused=!0}}var k=e("./can-override"),O=e("./compactable"),E=e("./clone").deep,S=e("./clone").shallow,C=e("./has-inherit"),A=e("./restore-shorthands"),M=e("./every-combination"),R=e("./vendor-prefixes").same,L=e("../stringifier/one-time").property,j=",";t.exports=_},{"../stringifier/one-time":32,"./can-override":8,"./clone":9,"./compactable":10,"./every-combination":11,"./has-inherit":12,"./restore-shorthands":17,"./vendor-prefixes":21}],15:[function(e,t,r){function n(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r],o=i[n.name];o&&o.shorthand&&(n.shorthand=!0,n.dirty=!0,n.components=o.breakUp(n,i,t),n.components.length>0?n.multiplex=n.components[0].multiplex:n.unused=!0)}}var i=e("./compactable");t.exports=n},{"./compactable":10}],16:[function(e,t,r){function n(e){for(var t=e.length-1;t>=0;t--)e[t].unused&&e[t].all.splice(t,1)}t.exports=n},{}],17:[function(e,t,r){function n(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=i[r.name];if(n&&n.shorthand&&r.dirty&&!r.unused){var o=n.restore(r,i);if(r.value=o,!("all"in r))continue;var a=r.all[r.position];a.splice(1,a.length-1),Array.prototype.push.apply(a,o)}}}var i=e("./compactable");t.exports=n},{"./compactable":10}],18:[function(e,t,r){function n(e){for(var t=0,r=e.length;r>t;t++){var n=e[t][0];if("inherit"!=n&&n!=c&&n!=f)return!1}return!0}function i(e,t,r){function i(e){Array.prototype.unshift.apply(l,e.value)}function o(e){var r=t[e.name];return r.doubleValues?1==r.defaultValue.length?e.value[0][0]==r.defaultValue[0]&&(e.value[1]?e.value[1][0]==r.defaultValue[0]:!0):e.value[0][0]==r.defaultValue[0]&&(e.value[1]?e.value[1][0]:e.value[0][0])==r.defaultValue[1]:e.value[0][0]==r.defaultValue}for(var a,s,u=e.components,l=[],c=u.length-1;c>=0;c--){var h=u[c],p=o(h);if("background-clip"==h.name){var d=u[c-1],g=o(d);a=h.value[0][0]==d.value[0][0],s=!a&&(g&&!p||!g&&!p||!g&&p&&h.value[0][0]!=d.value[0][0]),a?i(d):s&&(i(h),i(d)),c--}else if("background-size"==h.name){var m=u[c-1],v=o(m);a=!v&&p,s=!a&&(v&&!p||!v&&!p),a?i(m):s?(i(h),l.unshift([f]),i(m)):1==m.value.length&&i(m),c--}else{if(p||t[h.name].multiplexLastOnly&&!r)continue;i(h)}}return 0===l.length&&1==e.value.length&&"0"==e.value[0][0]&&l.push(e.value[0]),0===l.length&&l.push([t[e.name].defaultValue]),n(l)?[l[0]]:l}function o(e,t){if(e.multiplex){for(var r=l(e),n=l(e),i=0;4>i;i++){var o=e.components[i],s=l(e);s.value=[o.value[0]],r.components.push(s);var u=l(e);u.value=[o.value[2]],n.components.push(u)}var c=a(r,t),f=a(n,t);return c.length!=f.length||c[0][0]!=f[0][0]||(c.length>1?c[1][0]!=f[1][0]:0)||(c.length>2?c[2][0]!=f[2][0]:0)||(c.length>3?c[3][0]!=f[3][0]:0)?c.concat([["/"]]).concat(f):c}return a(e,t)}function a(e){var t=e.components,r=t[0].value[0],n=t[1].value[0],i=t[2].value[0],o=t[3].value[0];return r[0]==n[0]&&r[0]==i[0]&&r[0]==o[0]?[r]:r[0]==i[0]&&n[0]==o[0]?[r,n]:n[0]==o[0]?[r,n,i]:[r,n,i,o]}function s(e){return function(t,r){if(!t.multiplex)return e(t,r,!0);var n,i,o=0,a=[],s={};for(n=0,i=t.components[0].value.length;i>n;n++)t.components[0].value[n][0]==c&&o++;for(n=0;o>=n;n++){for(var u=l(t),f=0,h=t.components.length;h>f;f++){var p=t.components[f],d=l(p);u.components.push(d);for(var g=s[d.name]||0,m=p.value.length;m>g;g++){if(p.value[g][0]==c){s[d.name]=g+1;break}d.value.push(p.value[g])}}var v=n==o,b=e(u,r,v);Array.prototype.push.apply(a,b),o>n&&a.push([","])}return a}}function u(e,t){for(var r=e.components,i=[],o=r.length-1;o>=0;o--){var a=r[o],s=t[a.name];a.value[0][0]!=s.defaultValue&&i.unshift(a.value[0])}return 0===i.length&&i.push([t[e.name].defaultValue]),n(i)?[i[0]]:i}var l=e("./clone").shallow,c=",",f="/";t.exports={background:i,borderRadius:o,fourValues:a,multiplex:s,withoutDefaults:u}},{"./clone":9}],19:[function(e,t,r){function n(e){var t;for(var r in e){if(void 0!==t&&e[r].important!=t)return!0;t=e[r].important}return!1}function i(e){var t=[];for(var r in e){var n=e[r],i=n.all[n.position],o=i[0][i[0].length-1];Array.isArray(o)&&Array.prototype.push.apply(t,o)}return t}function o(e,t,r,n,o){var a,s=u[r],d=[[r,!1,!1],[s.defaultValue]],g=h(d);g.shorthand=!0,g.dirty=!0,f([g],o);for(var m=0,v=s.components.length;v>m;m++){var b=t[s.components[m]],y=u[b.name].canOverride;if(c(b))return;if(!p(y,g.components[m],b,o))return;g.components[m]=l(b),g.important=b.important,a=b.all}for(var w in t)t[w].unused=!0;if(n){var x=i(t);x.length>0&&d[0].push(x)}g.position=a.length,g.all=a,g.all.push(d),d[0][1]=g.important,e.push(g)}function a(e,t,r,i,a){var s=e[t];for(var l in r)if(void 0===s||l!=s.name){var c=u[l],f=r[l];c.components.length>Object.keys(f).length?delete r[l]:n(f)||o(e,f,l,i,a)}}function s(e,t,r){var n={};if(!(e.length<3)){for(var i=0,o=e.length;o>i;i++){var s=e[i];if(!s.unused&&!s.hack){var l=u[s.name];if(l&&l.componentOf)if(s.shorthand)a(e,i,n,t,r);else{var c=l.componentOf;n[c]=n[c]||{},n[c][s.name]=s}}}a(e,i,n,t,r)}}var u=e("./compactable"),l=e("./clone").deep,c=e("./has-inherit"),f=e("./populate-components"),h=e("./wrap-for-optimizing").single,p=e("./every-combination");t.exports=s},{"./clone":9,"./compactable":10,"./every-combination":11,"./has-inherit":12,"./populate-components":15,"./wrap-for-optimizing":22}],20:[function(e,t,r){function n(e){var t=a.slice(0).filter(function(t){return!(t in e.units)||e.units[t]===!0}),r="(\\-?\\.?\\d+\\.?\\d*("+t.join("|")+"|)|auto|inherit)";this.compatibleCssUnitRegex=new RegExp("^"+r+"$","i"),this.compatibleCssUnitAnyRegex=new RegExp("^(none|"+o.join("|")+"|"+r+"|"+f+"|"+l+"|"+c+")$","i")}var i=e("../utils/splitter"),o=["thin","thick","medium","inherit","initial"],a=["px","%","em","in","cm","mm","ex","pt","pc","ch","rem","vh","vm","vmin","vmax","vw"],s="(\\-?\\.?\\d+\\.?\\d*("+a.join("|")+"|)|auto|inherit)",u="(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)",l="[A-Z]+(\\-|[A-Z]|[0-9])+\\(([A-Z]|[0-9]|\\ |\\,|\\#|\\+|\\-|\\%|\\.|\\(|\\))*\\)",c="\\-(\\-|[A-Z]|[0-9])+\\(([A-Z]|[0-9]|\\ |\\,|\\#|\\+|\\-|\\%|\\.|\\(|\\))*\\)",f="var\\(\\-\\-[^\\)]+\\)",h="("+f+"|"+l+"|"+c+")",p="("+s+"|"+u+")",d="(none|"+o.join("|")+"|"+s+"|"+f+"|"+l+"|"+c+")",g=new RegExp("^"+l+"$","i"),m=new RegExp("^"+c+"$","i"),v=new RegExp("^"+f+"$","i"),b=new RegExp("^"+h+"$","i"),y=new RegExp("^"+s+"$","i"),w=new RegExp("^"+p+"$","i"),x=new RegExp("^"+d+"$","i"),_=["repeat","no-repeat","repeat-x","repeat-y","inherit"],k=["inherit","scroll","fixed","local"],O=["center","top","bottom","left","right"],E=["contain","cover"],S=["border-box","content-box","padding-box"],C=["auto","inherit","hidden","none","dotted","dashed","solid","double","groove","ridge","inset","outset"],A=["armenian","circle","cjk-ideographic","decimal","decimal-leading-zero","disc","georgian","hebrew","hiragana","hiragana-iroha","inherit","katakana","katakana-iroha","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],M=["inside","outside","inherit"];n.prototype.isValidHexColor=function(e){return(4===e.length||7===e.length)&&"#"===e[0]},n.prototype.isValidRgbaColor=function(e){return e=e.split(" ").join(""),e.length>0&&0===e.indexOf("rgba(")&&e.indexOf(")")===e.length-1},n.prototype.isValidHslaColor=function(e){return e=e.split(" ").join(""),e.length>0&&0===e.indexOf("hsla(")&&e.indexOf(")")===e.length-1},n.prototype.isValidNamedColor=function(e){return"auto"!==e&&("transparent"===e||"inherit"===e||/^[a-zA-Z]+$/.test(e))},n.prototype.isValidVariable=function(e){return v.test(e)},n.prototype.isValidColor=function(e){return this.isValidNamedColor(e)||this.isValidHexColor(e)||this.isValidRgbaColor(e)||this.isValidHslaColor(e)||this.isValidVariable(e)||this.isValidVendorPrefixedValue(e)},n.prototype.isValidUrl=function(e){return 0===e.indexOf("__ESCAPED_URL_CLEAN_CSS")},n.prototype.isValidUnit=function(e){return x.test(e)},n.prototype.isValidUnitWithoutFunction=function(e){return y.test(e)},n.prototype.isValidAndCompatibleUnit=function(e){return this.compatibleCssUnitAnyRegex.test(e)},n.prototype.isValidAndCompatibleUnitWithoutFunction=function(e){return this.compatibleCssUnitRegex.test(e)},n.prototype.isValidFunctionWithoutVendorPrefix=function(e){return g.test(e)},n.prototype.isValidFunctionWithVendorPrefix=function(e){return m.test(e)},n.prototype.isValidFunction=function(e){return b.test(e)},n.prototype.isValidBackgroundRepeat=function(e){return _.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidBackgroundAttachment=function(e){return k.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidBackgroundBox=function(e){return S.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidBackgroundPositionPart=function(e){return O.indexOf(e)>=0||w.test(e)||this.isValidVariable(e)},n.prototype.isValidBackgroundPosition=function(e){if("inherit"===e)return!0;for(var t=e.split(" "),r=0,n=t.length;n>r;r++)if(""!==t[r]&&!this.isValidBackgroundPositionPart(t[r])&&!this.isValidVariable(t[r]))return!1;return!0},n.prototype.isValidBackgroundSizePart=function(e){return E.indexOf(e)>=0||y.test(e)||this.isValidVariable(e)},n.prototype.isValidBackgroundPositionAndSize=function(e){if(e.indexOf("/")<0)return!1;var t=new i("/").split(e);return this.isValidBackgroundSizePart(t.pop())&&this.isValidBackgroundPositionPart(t.pop())},n.prototype.isValidListStyleType=function(e){return A.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidListStylePosition=function(e){return M.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidStyle=function(e){return C.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidWidth=function(e){return this.isValidUnit(e)||o.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidVendorPrefixedValue=function(e){return/^-([A-Za-z0-9]|-)*$/gi.test(e)},n.prototype.areSameFunction=function(e,t){if(!this.isValidFunction(e)||!this.isValidFunction(t))return!1;var r=e.substring(0,e.indexOf("(")),n=t.substring(0,t.indexOf("("));return r===n},t.exports=n},{"../utils/splitter":53}],21:[function(e,t,r){function n(e){for(var t=[],r=0,n=e.length;n>r;r++)for(var i=e[r],a=0,s=i.value.length;s>a;a++){var u=o.exec(i.value[a][0]);u&&-1==t.indexOf(u[0])&&t.push(u[0])}return t}function i(e,t){return n(e).sort().join(",")==n(t).sort().join(",")}var o=/$\-moz\-|\-ms\-|\-o\-|\-webkit\-/;t.exports={same:i}},{}],22:[function(e,t,r){function n(e){for(var t=[],r=e.length-1;r>=0;r--)if("string"!=typeof e[r][0]){var n=o(e[r]);n.all=e,n.position=r,t.unshift(n)}return t}function i(e){for(var t=1,r=e.length;r>t;t++)if(","==e[t][0]||"/"==e[t][0])return!0;return!1}function o(e){return{components:[],dirty:!1,hack:e[0][2],important:e[0][1],name:e[0][0],multiplex:e.length>2?i(e):!1,position:0,shorthand:!1,unused:e.length<2,value:e.slice(1)}}t.exports={all:n,single:o}},{}],23:[function(e,t,r){function n(e){var t=[];if("selector"==e[0])for(var r=!/[\.\+#>~\s]/.test(o(e[1])),s=0,u=e[2].length;u>s;s++){var l=e[2][s];if(0!==l.indexOf("__ESCAPED")){var c=e[2][s][0][0];if(0!==c.length){var f=a(e[2],s);t.push([c,f,i(c),e[2][s],c+":"+f,e[1],r])}}}else if("block"==e[0])for(var h=0,p=e[2].length;p>h;h++)t=t.concat(n(e[2][h]));return t}function i(e){return"list-style"==e?e:e.indexOf("-radius")>0?"border-radius":"border-collapse"==e||"border-spacing"==e||"border-image"==e?e:0===e.indexOf("border-")&&/^border\-\w+\-\w+$/.test(e)?e.match(/border\-\w+/)[0]:0===e.indexOf("border-")&&/^border\-\w+$/.test(e)?"border":0===e.indexOf("text-")?e:e.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}var o=e("../stringifier/one-time").selectors,a=e("../stringifier/one-time").value;t.exports=n},{"../stringifier/one-time":32}],24:[function(e,t,r){function n(e){for(var t=e.length-1;t>=0;t--){var r=e[t];switch(r[0]){case"flat-block":case"selector":i(r[2]);break;case"block":n(r[2])}}}function i(e){for(var t=e.length-1;t>=0;t--)"string"!=typeof e[t]&&o(e[t])}function o(e){var t=e[0][0],r=e[e.length-1],n=r[0].indexOf(s)>0,i=!1;t[0]==l?(e[0][0]=t.substring(1),i="underscore"):t[0]==u?(e[0][0]=t.substring(1),i="star"):r[0].indexOf(a)>0&&r[0].indexOf(a)==r[0].length-a.length-1?(r[0]=r[0].substring(0,r[0].length-a.length-1),i="suffix"):0===r[0].indexOf(a)&&2==r[0].length&&(e.pop(),i="suffix"),n&&(r[0]=r[0].substring(0,r[0].length-s.length)),e[0].splice(1,0,n,i)}var a="\\",s="!important",u="*",l="_";t.exports=n},{}],25:[function(e,t,r){function n(e,t){this.options=e||{},this.context=t||{}}var i=e("../tokenizer/tokenize"),o=e("./optimizers/simple"),a=e("./optimizers/advanced"),s=e("./optimization-metadata");n.prototype.process=function(e,t,r,n){var u=i(e,this.context);return s(u),new o(this.options).optimize(u),this.options.advanced&&new a(this.options,this.context).optimize(u),t(u,this.options,r,n)},t.exports=n},{"../tokenizer/tokenize":43,"./optimization-metadata":24,"./optimizers/advanced":26,"./optimizers/simple":28}],26:[function(e,t,r){function n(e,t){this.options=e,this.validator=t.validator}function i(e){return/\.|\*| :/.test(e)}function o(e,t){return e>t}function a(e){var t=v(e[1]);return t.indexOf("__")>-1||t.indexOf("--")>-1}function s(e){return e.replace(/--[^ ,>\+~:]+/g,"")}function u(e,t){var r=s(v(e[1]));for(var n in t){var i=t[n],o=s(v(i[1]));(o.indexOf(r)>-1||r.indexOf(o)>-1)&&delete t[n]}}function l(e,t,r){for(var n=0,i=e.length;i>n;n++){var o=e[n];switch(o[0]){case"selector":c(o[1],o[2],!1,!0,t,r);break;case"block":l(o[2],t,r)}}}var c=e("../../properties/optimizer"),f=e("./clean-up"),h=e("../extractor"),p=e("../reorderable").canReorder,d=e("../reorderable").canReorderSingle,g=e("../../stringifier/one-time").all,m=e("../../stringifier/one-time").body,v=e("../../stringifier/one-time").selectors;n.prototype.isSpecial=function(e){return this.options.compatibility.selectors.special.test(e)},n.prototype.removeDuplicates=function(e){for(var t,r,n,i,o={},a=[],s=0,u=e.length;u>s;s++)r=e[s],"selector"==r[0]&&(t=v(r[1]),o[t]&&1==o[t].length?a.push(t):o[t]=o[t]||[],o[t].push(s));for(s=0,u=a.length;u>s;s++){t=a[s],i=[];for(var l=o[t].length-1;l>=0;l--)r=e[o[t][l]],n=m(r[2]),i.indexOf(n)>-1?r[2]=[]:i.push(n)}},n.prototype.mergeAdjacent=function(e){for(var t=[null,[],[]],r=this.options.compatibility.selectors.adjacentSpace,n=0,i=e.length;i>n;n++){var o=e[n];if("selector"==o[0])if("selector"==t[0]&&v(o[1])==v(t[1])){var a=[t[2].length];Array.prototype.push.apply(t[2],o[2]),c(o[1],t[2],a,!0,this.options,this.validator),o[2]=[]}else"selector"!=t[0]||m(o[2])!=m(t[2])||this.isSpecial(v(o[1]))||this.isSpecial(v(t[1]))?t=o:(t[1]=f.selectors(t[1].concat(o[1]),!1,r),o[2]=[]);else t=[null,[],[]]}},n.prototype.reduceNonAdjacent=function(e){for(var t={},r=[],n=e.length-1;n>=0;n--){var i=e[n];if("selector"==i[0]&&0!==i[2].length)for(var o=v(i[1]),a=i[1].length>1&&!this.isSpecial(o),s=a?[o].concat(i[1]):[o],u=0,l=s.length;l>u;u++){var c=s[u];t[c]?r.push(c):t[c]=[],t[c].push({where:n,list:i[1],isPartial:a&&u>0,isComplex:a&&0===u})}}this.reduceSimpleNonAdjacentCases(e,r,t),this.reduceComplexNonAdjacentCases(e,t)},n.prototype.reduceSimpleNonAdjacentCases=function(e,t,r){function n(e,t){return u[e].isPartial&&0===t.length}function i(e,t,r,n){u[r-n-1].isPartial||(e[2]=t)}for(var o=0,a=t.length;a>o;o++){var s=t[o],u=r[s];this.reduceSelector(e,s,u,{filterOut:n,callback:i})}},n.prototype.reduceComplexNonAdjacentCases=function(e,t){function r(e){return i.data[e].wheref;f++){var p=c[f],d=t[p];if(d.length<2)continue e;if(i.data=d,this.reduceSelector(e,p,d,{filterOut:r,callback:n}),m(l[l.length-1])!=m(l[0]))continue e}u[2]=l[0]}}},n.prototype.reduceSelector=function(e,t,r,n){for(var i=[],o=[],a=[],s=[],u=r.length-1,l=0;u>=0;u--)if(!n.filterOut(u,i)){var f=r[u].where,h=e[f];i=i.concat(h[2]),o.push(h[2]),s.push(f)}for(u=0,l=o.length;l>u;u++)o[u].length>0&&a.push((a[u-1]||0)+o[u].length);c(t,i,a,!1,this.options,this.validator);for(var p=s.length,d=i.length-1,g=p-1;g>=0;)if((0===g||i[d]&&o[g].indexOf(i[d])>-1)&&d>-1)d--;else{var m=i.splice(d+1);n.callback(e[s[g]],m,p,g),g--}},n.prototype.mergeNonAdjacentBySelector=function(e){var t,r={},n=[];for(t=e.length-1;t>=0;t--)if("selector"==e[t][0]&&0!==e[t][2].length){var i=v(e[t][1]);r[i]=[t].concat(r[i]||[]),2==r[i].length&&n.push(i)}for(t=n.length-1;t>=0;t--){var o=r[n[t]];e:for(var a=o.length-1;a>0;a--){var s=o[a-1],u=e[s],l=o[a],f=e[l];t:for(var d=1;d>=-1;d-=2){for(var g,m=1==d,b=m?s+1:l-1,y=m?l:s,w=m?1:-1,x=m?u:f,_=m?f:u,k=h(x);b!=y;){var O=h(e[b]);b+=w;var E=m?p(k,O):p(O,k);if(!E&&!m)continue e;if(!E&&m)continue t}m?(g=[x[2].length],Array.prototype.push.apply(x[2],_[2]),_[2]=x[2]):(g=[_[2].length],Array.prototype.push.apply(_[2],x[2])),c(_[1],_[2],g,!0,this.options,this.validator),x[2]=[]}}}},n.prototype.mergeNonAdjacentByBody=function(e){for(var t={},r=this.options.compatibility.selectors.adjacentSpace,n=e.length-1;n>=0;n--){var o=e[n];if("selector"==o[0]){o[2].length>0&&!this.options.semanticMerging&&i(v(o[1]))&&(t={}),o[2].length>0&&this.options.semanticMerging&&a(o)&&u(o,t);var s=t[m(o[2])];!s||this.isSpecial(v(o[1]))||this.isSpecial(v(s[1]))||(o[1]=f.selectors(s[1].concat(o[1]),!1,r),s[2]=[],t[m(o[2])]=null),t[m(o[2])]=o}}},n.prototype.restructure=function(e){function t(e,t,i){for(var o=i.length-1;o>=0;o--){var a=i[o][0],s=r(t,a);if(O[s].length>1&&w(e,O[s])){n(s);break}}}function r(e,t){var r=i(t);return O[r]=O[r]||[],O[r].push([e,t]),r}function n(e){var t,r=e.split(A),n=[];for(var i in O){var o=i.split(A);for(t=o.length-1;t>=0;t--)if(r.indexOf(o[t])>-1){n.push(i);break}}for(t=n.length-1;t>=0;t--)delete O[n[t]]}function i(e){for(var t=[],r=0,n=e.length;n>r;r++)t.push(v(e[r][1]));return t.join(A)}function a(e){for(var t=[],r=[],n=e.length-1;n>=0;n--)S.isSpecial(v(e[n][1]))||(r.unshift(e[n]),e[n][2].length>0&&-1==t.indexOf(e[n])&&t.push(e[n]));return t.length>1?r:[]}function s(e,r){var n=r[0],i=r[1],o=r[4],s=n.length+i.length+1,u=[],c=[],h=a(_[o]);if(!(h.length<2)){var p=l(h,s,1),d=p[0];if(d[1]>0)return t(e,r,p);for(var m=d[0].length-1;m>=0;m--)u=d[0][m][1].concat(u),c.unshift(d[0][m]);u=f.selectorDuplicates(u),g(e,[r],u,c)}}function u(e,t){return e[1]>t[1]}function l(e,t,r){var n=c(e,t,r,C-1);return n.sort(u)}function c(e,t,r,n){var i=[[e,p(e,t,r)]];if(e.length>2&&n>0)for(var o=e.length-1;o>=0;o--){var a=Array.prototype.slice.call(e,0);a.splice(o,1),i=i.concat(c(a,t,r,n-1))}return i}function p(e,t,r){for(var n=0,i=e.length-1;i>=0;i--)n+=e[i][2].length>r?v(e[i][1]).length:-1;return n-(e.length-1)*t+1}function g(t,r,n,i){var o,a,s,u,l=[];for(o=i.length-1;o>=0;o--){var c=i[o];for(a=c[2].length-1;a>=0;a--){var f=c[2][a];for(s=0,u=r.length;u>s;s++){var h=r[s],p=f[0][0],d=h[0],g=h[4];if(p==d&&m([f])==g){c[2].splice(a,1);break}}}}for(o=r.length-1;o>=0;o--)l.push(r[o][3]);var v=["selector",n,l];e.splice(t,0,v)}function b(e,t){var r=t[4],n=_[r];n&&n.length>1&&(y(e,t)||s(e,t))}function y(e,t){var r,n,i=[],o=[],s=t[4],u=a(_[s]);if(!(u.length<2)){e:for(var l in _){var c=_[l];for(r=u.length-1;r>=0;r--)if(-1==c.indexOf(u[r]))continue e;i.push(l)}if(i.length<2)return!1;for(r=i.length-1;r>=0;r--)for(n=k.length-1;n>=0;n--)if(k[n][4]==i[r]){o.unshift([k[n],u]);break}return w(e,o)}}function w(e,t){for(var r,n=0,i=[],o=t.length-1;o>=0;o--){r=t[o][0];var a=r[4];n+=a.length+(o>0?1:0),i.push(r)}var s=t[0][1],u=l(s,n,i.length)[0];if(u[1]>0)return!1;var c=[],h=[];for(o=u[0].length-1;o>=0;o--)c=u[0][o][1].concat(c),h.unshift(u[0][o]);for(c=f.selectorDuplicates(c),g(e,i,c,h),o=i.length-1;o>=0;o--){r=i[o];var p=k.indexOf(r);delete _[r[4]],p>-1&&-1==E.indexOf(p)&&E.push(p)}return!0}function x(e,t,r){var n=e[0],i=t[0];if(n!=i)return!1;var o=t[4],a=_[o];return a&&a.indexOf(r)>-1}for(var _={},k=[],O={},E=[],S=this,C=2,A="%",M=e.length-1;M>=0;M--){var R,L,j,T,B=e[M];if("selector"==B[0])R=!0;else{if("block"!=B[0])continue;R=!1}var P=k.length,V=h(B);E=[];var U=[];for(L=V.length-1;L>=0;L--)for(j=L-1;j>=0;j--)if(!d(V[L],V[j])){U.push(L);break}for(L=0,T=V.length;T>L;L++){var I=V[L],D=!1;for(j=0;P>j;j++){var N=k[j];-1!=E.indexOf(j)||d(I,N)||x(I,N,B)||(b(M+1,N,B),-1==E.indexOf(j)&&(E.push(j),delete _[N[4]])),D||(D=I[0]==N[0]&&I[1]==N[1])}if(R&&!(U.indexOf(L)>-1)){var z=I[4];_[z]=_[z]||[],_[z].push(B),D||k.push(I)}}for(E=E.sort(o),L=0,T=E.length;T>L;L++){var F=E[L]-L;k.splice(F,1)}}for(var q=e[0]&&"at-rule"==e[0][0]&&0===e[0][1][0].indexOf("@charset")?1:0;qr;r++){var i=e[r];if("block"==i[0]){var o=i[1][0]+"%"+g(i[2]),a=t[o];a&&(a[2]=[]),t[o]=i}}},n.prototype.mergeMediaQueries=function(e){for(var t={},r=[],n=e.length-1;n>=0;n--){var i=e[n];if("block"==i[0]){var o=t[i[1][0]];o||(o=[],t[i[1][0]]=o),o.push(n)}}for(var a in t){var s=t[a];e:for(var u=s.length-1;u>0;u--){for(var l=e[s[u]],c=e[s[u-1]],f=h(l),d=s[u]+1;dt;t++){var n=e[t],i=!1;switch(n[0]){case"selector":i=0===n[1].length||0===n[2].length;break;case"block":this.removeEmpty(n[2]),i=0===n[2].length}i&&(e.splice(t,1),t--,r--)}},n.prototype.optimize=function(e){function t(e,n){if(e.forEach(function(e){if("block"==e[0]){var r=/@(-moz-|-o-|-webkit-)?keyframes/.test(e[1][0]);t(e[2],!r)}}),l(e,r.options,r.validator),r.removeDuplicates(e),r.mergeAdjacent(e),r.reduceNonAdjacent(e),r.mergeNonAdjacentBySelector(e),r.mergeNonAdjacentByBody(e),r.options.restructuring&&n&&(r.restructure(e),r.mergeAdjacent(e)),r.options.mediaMerging){r.removeDuplicateMediaQueries(e);for(var i=r.mergeMediaQueries(e),o=i.length-1;o>=0;o--)t(i[o][2])}r.removeEmpty(e)}var r=this;t(e,!0)},t.exports=n},{"../../properties/optimizer":13,"../../stringifier/one-time":32,"../extractor":23,"../reorderable":29,"./clean-up":27}],27:[function(e,t,r){function n(e,t){return"["+t.replace(/ /g,"")+"]"}function i(e,t){return e[0]>t[0]?1:-1}var o={selectors:function(e,t,r){for(var o=[],a=[],s=0,u=e.length;u>s;s++){var l=e[s],c=l[0].replace(/\s+/g," ").replace(/ ?, ?/g,",").replace(/\s*([>\+\~])\s*/g,"$1").trim();r&&c.indexOf("nav")>0&&(c=c.replace(/\+nav(\S|$)/,"+ nav$1")),(!t||-1==c.indexOf("*+html ")&&-1==c.indexOf("*:first-child+html "))&&(c.indexOf("*")>-1&&(c=c.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),c.indexOf("[")>-1&&(c=c.replace(/\[([^\]]+)\]/g,n)),-1==a.indexOf(c)&&(l[0]=c,a.push(c),o.push(l)))}return o.sort(i)},selectorDuplicates:function(e){for(var t=[],r=[],n=0,o=e.length;o>n;n++){var a=e[n];-1==r.indexOf(a[0])&&(r.push(a[0]),t.push(a))}return t.sort(i)},block:function(e,t){e[0]=e[0].replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ \)/g,")"),t||(e[0]=e[0].replace(/\) /g,")"))},atRule:function(e){e[0]=e[0].replace(/\s+/g," ").trim()}};t.exports=o},{}],28:[function(e,t,r){function n(e){this.options=e;var t=["px","em","ex","cm","mm","in","pt","pc","%"],r=["ch","rem","vh","vm","vmax","vmin","vw"];r.forEach(function(r){e.compatibility.units[r]&&t.push(r)}),e.unitsRegexp=new RegExp("(^|\\s|\\(|,)0(?:"+t.join("|")+")(\\W|$)","g"),e.precision={},e.precision.value=void 0===e.roundingPrecision?x:e.roundingPrecision,e.precision.multiplier=Math.pow(10,e.precision.value),e.precision.regexp=new RegExp("(\\d*\\.\\d{"+(e.precision.value+1)+",})px","g")}function i(e,t){return e[t]&&"-"==e[t][0][0]&&parseFloat(e[t][0])<0}function o(e,t){return-1==t.indexOf("0")?t:(t.indexOf("-")>-1&&(t=t.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),t.replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,function(e,t,r){return(t.length>0?".":"")+t+r}).replace(/(^|\D)0\.(\d)/g,"$1.$2"))}function a(e,t){return-1==t.indexOf("0deg")?t:t.replace(/\(0deg\)/g,"(0)")}function s(e,t){return e.indexOf("filter")>-1||-1==t.indexOf(" ")?t:(t=t.replace(/\s+/g," "),t.indexOf("calc")>-1&&(t=t.replace(/\) ?\/ ?/g,")/ ")),t.replace(/\( /g,"(").replace(/ \)/g,")").replace(/, /g,","))}function u(e,t,r){return-1===r.value||-1===t.indexOf(".")?t:t.replace(r.regexp,function(e,t){return Math.round(parseFloat(t)*r.multiplier)/r.multiplier+"px"}).replace(/(\d)\.($|\D)/g,"$1$2")}function l(e,t,r){return/^(?:\-moz\-calc|\-webkit\-calc|calc)\(/.test(t)?t:"flex"==e||"flex-basis"==e?t:t.replace(r,"$10$2").replace(r,"$10$2")}function c(e){5==e.length&&"0"===e[1][0]&&"0"===e[2][0]&&"0"===e[3][0]&&"0"===e[4][0]&&(e[0][0].indexOf("box-shadow")>-1?e.splice(3):e.splice(2))}function f(e,t,r){return-1===t.indexOf("#")&&-1==t.indexOf("rgb")&&-1==t.indexOf("hsl")?w.shorten(t):(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,r,n){return new b(t,r,n).toHex()}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,r,n){return new y(t,r,n).toHex()}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(e,t,r){return r[0]==r[1]&&r[2]==r[3]&&r[4]==r[5]?t+"#"+r[0]+r[2]+r[4]:t+"#"+r}).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/g,function(e,t,r){var n=r.split(","),i="hsl"==t&&3==n.length||"hsla"==t&&4==n.length||"rgb"==t&&3==n.length&&r.indexOf("%")>0||"rgba"==t&&4==n.length&&r.indexOf("%")>0;return i?(-1==n[1].indexOf("%")&&(n[1]+="%"),-1==n[2].indexOf("%")&&(n[2]+="%"),t+"("+n.join(",")+")"):e}),r.colors.opacity&&(t=t.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(e){return new v(",").split(t).pop().indexOf("gradient(")>-1?e:"transparent"})),w.shorten(t))}function h(e){4==e.length&&"/"==e[2][0]&&e[1][0]==e[3][0]?e.splice(2):6==e.length&&"/"==e[3][0]&&e[1][0]==e[4][0]&&e[2][0]==e[5][0]?e.splice(3):8==e.length&&"/"==e[4][0]&&e[1][0]==e[5][0]&&e[2][0]==e[6][0]&&e[3][0]==e[7][0]?e.splice(4):10==e.length&&"/"==e[5][0]&&e[1][0]==e[6][0]&&e[2][0]==e[7][0]&&e[3][0]==e[8][0]&&e[4][0]==e[9][0]&&e.splice(5)}function p(e){e.length<3&&(e[1][0]=e[1][0].replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,function(e,t,r){return t.toLowerCase()+r})),e[1][0]=e[1][0].replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")}function d(e){var t=O.indexOf(e[1][0])>-1||e[2]&&O.indexOf(e[2][0])>-1||e[3]&&O.indexOf(e[3][0])>-1;if(!t&&"/"!=e[2]){var r=0;if("normal"==e[1][0]&&r++,e[2]&&"normal"==e[2][0]&&r++,e[3]&&"normal"==e[3][0]&&r++,!(r>1)){var n;S.indexOf(e[1][0])>-1?n=1:e[2]&&S.indexOf(e[2][0])>-1?n=2:e[3]&&S.indexOf(e[3][0])>-1?n=3:E.indexOf(e[1][0])>-1?n=1:e[2]&&E.indexOf(e[2][0])>-1?n=2:e[3]&&E.indexOf(e[3][0])>-1&&(n=3),n&&(e[n][0]=C["font-weight"](e[n][0]))}}}function g(e,t){for(var r,n,g,m,v=0,b=e.length;b>v;v++)if(m=!1,r=e[v],"string"!=typeof r||0!==r.indexOf("__ESCAPED_")){n=r[0][0];var y=r[0][2];if(y&&(("star"==y||"underscore"==y)&&!t.compatibility.properties.iePrefixHack||"suffix"==y&&!t.compatibility.properties.ieSuffixHack)&&(m=!0),0===n.indexOf("padding")&&(i(r,1)||i(r,2)||i(r,3)||i(r,4))&&(m=!0),m)e.splice(v,1),v--,b--;else{for(var w=1,x=r.length;x>w;w++)g=r[w][0],C[n]&&(g=C[n](g,w,x)),g=s(n,g),g=u(n,g,t.precision),g=o(n,g),t.compatibility.properties.zeroUnits&&(g=a(n,g),g=l(n,g,t.unitsRegexp)),t.compatibility.properties.colors&&(g=f(n,g,t.compatibility)),r[w][0]=g;c(r),0===n.indexOf("border")&&n.indexOf("radius")>0?h(r):"filter"==n?p(r):"font"==n&&d(r)}}}var m=e("./clean-up"),v=e("../../utils/splitter"),b=e("../../colors/rgb"),y=e("../../colors/hsl"),w=e("../../colors/hex-name-shortener"),x=2,_="@charset",k=new RegExp("^"+_,"i"),O=["100","200","300","400","500","600","700","800","900"],E=["normal","bold","bolder","lighter"],S=["bold","bolder","lighter"],C={background:function(e,t,r){return 1!=t||2!=r||"none"!=e&&"transparent"!=e?e:"0 0"},"font-weight":function(e){return"normal"==e?"400":"bold"==e?"700":e},outline:function(e,t,r){return 1==t&&2==r&&"none"==e?"0":e}};n.prototype.optimize=function(e){function t(e){for(var t=0,r=e.length;r>t;t++){var n=e[t];"at-rule"==n[0]&&k.test(n[1][0])&&(i||-1==n[1][0].indexOf(_)?(e.splice(t,1),t--,r--):(i=!0,e.splice(t,1),e.unshift(["at-rule",[n[1][0].replace(k,_)]])))}}function r(e){for(var i=!1,o=0,l=e.length;l>o;o++){var c=e[o];switch(c[0]){case"selector":c[1]=m.selectors(c[1],!a,s),g(c[2],n.options);break;case"block":m.block(c[1],u),r(c[2]);break;case"flat-block":m.block(c[1],u),g(c[2],n.options);break;case"at-rule":m.atRule(c[1]),i=!0}(0===c[1].length||c[2]&&0===c[2].length)&&(e.splice(o,1),o--,l--)}i&&t(e)}var n=this,i=!1,o=this.options,a=o.compatibility.selectors.ie7Hack,s=o.compatibility.selectors.adjacentSpace,u=o.compatibility.properties.spaceAfterClosingBrace;r(e)},t.exports=n},{"../../colors/hex-name-shortener":3,"../../colors/hsl":4,"../../colors/rgb":5,"../../utils/splitter":53,"./clean-up":27}],29:[function(e,t,r){function n(e,t){for(var r=t.length-1;r>=0;r--)for(var n=e.length-1;n>=0;n--)if(!i(e[n],t[r]))return!1;return!0}function i(e,t){var r=e[0],n=e[1],i=e[2],f=e[5],h=e[6],p=t[0],d=t[1],g=t[2],m=t[5],v=t[6];return"font"==r&&"line-height"==p||"font"==p&&"line-height"==r?!1:l.test(r)&&l.test(p)?!1:i==g&&a(r)==a(p)&&o(r)^o(p)?!1:("border"!=i||!c.test(g)||"border"!=r&&r!=g)&&("border"!=g||!c.test(i)||"border"!=p&&p!=i)?i!=g?!0:r!=p||i!=g||n!=d&&!s(n,d)?r!=p&&i==g&&r!=i&&p!=g?!0:r!=p&&i==g&&n==d?!0:v&&h&&u(m,f)?!0:!1:!0:!1}function o(e){return/^\-(?:moz|webkit|ms|o)\-/.test(e)}function a(e){return e.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function s(e,t){return o(e)&&o(t)&&e.split("-")[1]!=t.split("-")[2]}function u(e,t){for(var r=0,n=e.length;n>r;r++)for(var i=0,o=t.length;o>i;i++)if(e[r][0]==t[i][0])return!1;return!0}var l=/align\-items|box\-align|box\-pack|flex|justify/,c=/^border\-(top|right|bottom|left|color|style|width|radius)/;t.exports={canReorder:n,canReorderSingle:i}},{}],30:[function(e,t,r){function n(e,t,r){if(!r&&-1==e.indexOf("\n"))return 0===e.indexOf(u)?e:void(t.column+=e.length);for(var n=0,i=e.split("\n"),o=i.length,a=0;;){if(n==o-1)break;var s=i[n];if(/\S/.test(s))break;a+=s.length+1,n++}return t.line+=n,t.column=n>0?0:t.column,t.column+=/^(\s)*/.exec(i[n])[0].length,e.substring(a).trimLeft()}function i(e,t,r){var n=e.source||t.source;return n&&r.resolvePath?r.resolvePath(t.source,n):n}function o(e,t,r){var n={line:t.line,column:t.column,source:t.source},o=null,a=t.sourceMapTracker.isTracking(n.source)?t.sourceMapTracker.originalPositionFor(n,e,r||0):{};if(n.line=a.line||n.line,n.column=a.column||n.column,n.source=a.sourceResolved?a.source:i(a,n,t),t.sourceMapInlineSources){var s=t.sourceMapTracker.sourcesContentFor(t.source);o=s&&s[n.source]?s:t.sourceReader.sourceAt(t.source)}return o?[n.line,n.column,n.source,o]:[n.line,n.column,n.source]}function a(e,t){for(var r=e.split("\n"),n=0,i=r.length;i>n;n++){var o=r[n],a=0;for(n>0&&(t.line++,t.column=0);;){var s=o.indexOf(u,a);if(-1==s){t.column+=o.substring(a).length;break}t.column+=s-a,a+=s-a;var l=o.substring(s,o.indexOf("__",s+1)+2),c=l.substring(l.indexOf("(")+1,l.indexOf(")")).split(",");t.line+=~~c[0],t.column=(0===~~c[0]?t.column:0)+~~c[1],a+=l.length}}}function s(e,t,r,i){var s=n(e,t,r),u=r?o(s,t,i):[];return s&&a(s,t),u}var u="__ESCAPED_";t.exports=s},{}],31:[function(e,t,r){function n(e,t){for(var r=t,n=e.length;n>r;r++)if("string"!=typeof e[r])return!0;return!1}function i(e){ +return"background"==e[0][0]||"transform"==e[0][0]||"src"==e[0][0]}function o(e,t){return 0===e[t][0].indexOf("var(")}function a(e,t){return")"==e[t][0][e[t][0].length-1]||0===e[t][0].indexOf("__ESCAPED_URL_CLEAN_CSS")}function s(e,t){return","==e[t][0]}function u(e,t){return"/"==e[t][0]}function l(e,t){return e[t+1]&&","==e[t+1][0]}function c(e,t){return e[t+1]&&"/"==e[t+1][0]}function f(e){return"filter"==e[0][0]||"-ms-filter"==e[0][0]}function h(e,t,r){return(!r.spaceAfterClosingBrace&&i(e)||o(e,t))&&a(e,t)||c(e,t)||u(e,t)||l(e,t)||s(e,t)}function p(e,t){var r=e[2];"underscore"==r?t.store(_,t):"star"==r&&t.store(w,t)}function d(e,t){for(var r=t.store,n=0,i=e.length;i>n;n++)r(e[n],t),i-1>n&&r(",",t)}function g(e,t){for(var r=0,n=e.length;n>r;r++)m(e,r,r==n-1,t)}function m(e,t,r,n){var i=n.store,o=e[t];"string"==typeof o?i(o,n):(p(o[0],n),i(o[0],n),i(":",n),v(e,t,r,n))}function v(e,t,r,i){for(var o=i.store,a=e[t],s=a[0][1],u=a[0][2],l=1,c=a.length;c>l;l++)o(a[l],i),l==c-1&&"suffix"==u&&o(x,i),l==c-1&&s&&o("!important",i),c-1>l&&(f(a)||!h(a,l,i))?o(" ",i):l==c-1&&!r&&n(e,t+1)&&o(";",i)}function b(e,t){for(var r=t.keepBreaks?y:"",n=t.store,i=0,o=e.length;o>i;i++){var a=e[i];switch(a[0]){case"at-rule":case"text":n(a[1][0],t),n(r,t);break;case"block":d([a[1]],t),n("{",t),b(a[2],t),n("}",t),n(r,t);break;case"flat-block":d([a[1]],t),n("{",t),g(a[2],t),n("}",t),n(r,t);break;default:d(a[1],t),n("{",t),g(a[2],t),n("}",t),n(r,t)}}}var y=e("os").EOL,w="*",x="\\9",_="_";t.exports={all:b,body:g,property:m,selectors:d,value:v}},{os:68}],32:[function(e,t,r){function n(e,t){t.output.push("string"==typeof e?e:e[0])}function i(){return{output:[],store:n}}function o(e){var t=i();return c.all(e,t),t.output.join("")}function a(e){var t=i();return c.body(e,t),t.output.join("")}function s(e,t){var r=i();return c.property(e,t,!0,r),r.output.join("")}function u(e){var t=i();return c.selectors(e,t),t.output.join("")}function l(e,t){var r=i();return c.value(e,t,!0,r),r.output.join("")}var c=e("./helpers");t.exports={all:o,body:a,property:s,selectors:u,value:l}},{"./helpers":31}],33:[function(e,t,r){function n(e,t){t.output.push("string"==typeof e?e:e[0])}function i(e,t,r){var i={keepBreaks:t.keepBreaks,output:[],spaceAfterClosingBrace:t.compatibility.properties.spaceAfterClosingBrace,store:n};return o(e,i,!1),{styles:r(i.output.join("")).trim()}}var o=e("./helpers").all;t.exports=i},{"./helpers":31}],34:[function(e,t,r){(function(r){function n(e,t){var r="string"==typeof e,n=r?e:e[0];n.indexOf("_")>-1&&(n=t.restore(n)),i(n,r?null:e,t),t.output.push(n)}function i(e,t,r){t&&o(t,r);var n=e.split("\n");r.line+=n.length-1,r.column=n.length>1?0:r.column+n.pop().length}function o(e,t){var r=e[e.length-1];if(Array.isArray(r))for(var n=0,i=r.length;i>n;n++)a(r[n],t)}function a(e,t){var r=e[2]||f;c&&(r=r.replace(/\\/g,"/")),t.outputMap.addMapping({generated:{line:t.line,column:t.column},source:r,original:{line:e[0],column:e[1]}}),e[3]&&t.outputMap.setSourceContent(r,e[3][e[2]])}function s(e,t,r,i){var o={column:0,inputMapTracker:i,keepBreaks:t.keepBreaks,line:1,output:[],outputMap:new u,restore:r,sourceMapInlineSources:t.sourceMapInlineSources,spaceAfterClosingBrace:t.compatibility.properties.spaceAfterClosingBrace,store:n};return l(e,o,!1),{sourceMap:o.outputMap,styles:o.output.join("").trim()}}var u=e("source-map").SourceMapGenerator,l=e("./helpers").all,c="win32"==r.platform,f="$stdin";t.exports=s}).call(this,e("_process"))},{"./helpers":31,_process:70,"source-map":91}],35:[function(e,t,r){function n(e,t,r,n){this.comments=new a("COMMENT"),this.specialComments=new a("COMMENT_SPECIAL"),this.context=e,this.restored=0,this.keepAll="*"==t,this.keepOne="1"==t||1===t,this.keepBreaks=r,this.saveWaypoints=n}function i(e){var t=[];return new s(e).each(function(e,r,n){t.push([n,n+e.length])}),function(e){for(var r=0,n=t.length;n>r;r++)if(t[r][0]e)return!0;return!1}}function o(e,t,r,n){for(var i,o=[],a=0;a0?o.join("")+t.substring(a,t.length):t}var a=e("./escape-store"),s=e("../utils/quote-scanner"),u="/*!",l="/*",c="*/",f=e("os").EOL;n.prototype.escape=function(e){for(var t,r,n,o=[],a=0,s=0,h=0,p=0,d=i(e),g=this.saveWaypoints;s0?m.substring(r+f.length).length:p+m.length),g||v){var b=g?[t,n]:null,y=v?this.specialComments.store(m,b):this.comments.store(m,b);o.push(y)}g&&(p=n+1),h=s+c.length}return o.length>0?o.join("")+e.substring(h,e.length):e},n.prototype.restore=function(e){return e=o(this,e,this.comments,!1),e=o(this,e,this.specialComments,!0)},t.exports=n},{"../utils/quote-scanner":50,"./escape-store":36,os:68}],36:[function(e,t,r){function n(e){this.placeholderRoot="ESCAPED_"+e+"_CLEAN_CSS",this.placeholderToData={},this.dataToPlaceholder={},this.count=0,this.restoreMatcher=new RegExp(this.placeholderRoot+"(\\d+)")}var i="__";n.prototype._nextPlaceholder=function(e){return{index:this.count,value:i+this.placeholderRoot+this.count++ +e+i}},n.prototype.store=function(e,t){var r=t?"("+t.join(",")+")":"",n=this.dataToPlaceholder[e];if(!n){var i=this._nextPlaceholder(r);n=i.value,this.placeholderToData[i.index]=e,this.dataToPlaceholder[e]=i.value}return t&&(n=n.replace(/\([^\)]+\)/,r)),n},n.prototype.nextMatch=function(e,t){var r={};return r.start=e.indexOf(this.placeholderRoot,t)-i.length,r.end=e.indexOf(i,r.start+i.length)+i.length,r.start>-1&&r.end>-1&&(r.match=e.substring(r.start,r.end)),r},n.prototype.restore=function(e){var t=this.restoreMatcher.exec(e)[1];return this.placeholderToData[t]},t.exports=n},{}],37:[function(e,t,r){function n(e,t){for(var r=t+a.length,n=0,i=!1,o=!1;;){var l=e[r++];if(i?i="'"!=l&&'"'!=l:(i="'"==l||'"'==l,l==s&&n++,l==u&&n--,l==c&&(o=!0),l!=f||o||1!=n||(r--,n--)),0===n&&l==u)break;if(!l){r=e.substring(0,r).lastIndexOf(f);break}}return r}function i(e){this.expressions=new o("EXPRESSION"),this.saveWaypoints=e}var o=e("./escape-store"),a="expression",s="(",u=")",l=a+s,c="{",f="}",h=e("os").EOL;i.prototype.escape=function(e){for(var t,r,i,o=0,a=0,s=0,u=[],c=0,f=this.saveWaypoints;a0?p.substring(r+h.length).length:c+p.length);var d=f?[t,i]:null,g=this.expressions.store(p,d);u.push(e.substring(s,o)),u.push(g),f&&(c=i+1),s=a}return u.length>0?u.join("")+e.substring(s,e.length):e},i.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=i},{"./escape-store":36,os:68}],38:[function(e,t,r){function n(e){this.matches=new o("FREE_TEXT"),this.saveWaypoints=e}function i(e,t,r){var n=t.lastIndexOf(";",r),i=t.lastIndexOf("{",r),o=0;o=n>-1&&i>-1?Math.max(n,i):-1==n?i:n;var a=t.substring(o+1,r);if(/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(a)&&(e=e.replace(/\\\n|\\\r\n/g,"")),/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/.test(e)&&!/format\($/.test(a)){var s=/^(font|font\-family):/.test(a),u=/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(a),l=/@(-moz-|-o-|-webkit-)?keyframes /.test(a),c=/^(-moz-|-o-|-webkit-)?animation(-name)?:/.test(a);(s||u||l||c)&&(e=e.substring(1,e.length-1))}return e}var o=e("./escape-store"),a=e("../utils/quote-scanner"),s=e("os").EOL;n.prototype.escape=function(e){var t,r,n,i,o=this,u=this.saveWaypoints;return new a(e).each(function(e,a){u&&(t=e.split(s).length-1,r=e.lastIndexOf(s),n=r>0?e.substring(r+s.length).length:e.length,i=[t,n]);var l=o.matches.store(e,i);a.push(l)})},n.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=n},{"../utils/quote-scanner":50,"./escape-store":36,os:68}],39:[function(e,t,r){function n(e,t,r){this.urls=new o("URL"),this.context=e,this.saveWaypoints=t,this.keepUrlQuotes=r}function i(e,t){return e=e.replace(/^url/gi,"url").replace(/\\?\n|\\?\r\n/g,"").replace(/(\s{2,}|\s)/g," ").replace(/^url\((['"])? /,"url($1").replace(/ (['"])?\)$/,"$1)"),t||/^['"].+['"]$/.test(e)||/url\(.*[\s\(\)].*\)/.test(e)||/url\(['"]data:[^;]+;charset/.test(e)||(e=e.replace(/["']/g,"")),e}var o=e("./escape-store"),a=e("../urls/reduce"),s=e("os").EOL;n.prototype.escape=function(e){var t,r,n,i=this.saveWaypoints,o=this;return a(e,this.context,function(e,a){i&&(t=e.split(s).length-1,r=e.lastIndexOf(s),n=r>0?e.substring(r+s.length).length:e.length);var u=o.urls.store(e,i?[t,n]:null);a.push(u)})},n.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=n},{"../urls/reduce":45,"./escape-store":36,os:68}],40:[function(e,t,r){function n(e,t,r){this.chunks=[];for(var n=0,i=e.length;i>n;){var o=n+r>i?i-1:n+r;e[o]!=t&&(o=e.indexOf(t,o)),-1==o&&(o=e.length-1),this.chunks.push(e.substring(n,o+t.length)),n=o+t.length}}n.prototype.isEmpty=function(){return 0===this.chunks.length},n.prototype.next=function(){return this.chunks.shift()},t.exports=n},{}],41:[function(e,t,r){function n(e){return e[0]}function i(){}function o(e,t,r,n){for(var o=r?/^__ESCAPED_COMMENT_/:/__ESCAPED_COMMENT_/,a=r?n.track:i;o.test(e);){var s=e.indexOf("__"),u=e.indexOf("__",s+1)+2,l=e.substring(s,u);e=e.substring(0,s)+e.substring(u),a(l),t.push(l)}return e}function a(e,t,r){return o(e,t,!0,r)}function s(e,t,r){return o(e,t,!1,r)}function u(e,t,r){for(var n=0,i=e.length;i>n;n++)r.track(e[n]),t.push(e[n])}function l(e,t,r){var i=[],o=[],l=new c(/[ ,\/]/);if("string"!=typeof e)return[];e.indexOf(")")>-1&&(e=e.replace(/\)([^\s_;:,\)])/g,r.sourceMap?") __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ $1":") $1")),e.indexOf("ESCAPED_URL_CLEAN_CSS")>-1&&(e=e.replace(/(ESCAPED_URL_CLEAN_CSS[^_]+?__)/g,r.sourceMap?"$1 __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ ":"$1 "));for(var p=e.split(";"),d=0,g=p.length;g>d;d++){var m=p[d],v=m.indexOf(":");if(-1!=v)if(m.indexOf("{")>0)r.track(m);else{var b=[],y=m.substring(0,v);o=[],y.indexOf("__ESCAPED_COMMENT")>-1&&(y=a(y,i,r)),y.indexOf("__ESCAPED_COMMENT")>-1&&(y=s(y,o,r)),b.push([y.trim()].concat(r.track(y,!0))),r.track(":"),u(o,i,r);var w=l.split(m.substring(v+1),!0);if(1!=w.length||""!==w[0]){for(var x=0,_=w.length;_>x;x++){var k=w[x],O=k.trim();if(0!==O.length){var E=O[O.length-1],S=O.length>1&&(E==f||E==h);if(S&&(O=O.substring(0,O.length-1)),O.indexOf("__ESCAPED_COMMENT_CLEAN_CSS(0,-")>-1)r.track(O);else if(o=[],O.indexOf("__ESCAPED_COMMENT")>-1&&(O=a(O,i,r)),O.indexOf("__ESCAPED_COMMENT")>-1&&(O=s(O,o,r)),0!==O.length){var C=b.length-1;"important"!=O||"!"!=b[C][0]?"!important"==O||"important"==O&&"!"==b[C][0][b[C][0].length-1]?(r.track(O),b[C][0]+=O):(b.push([O].concat(r.track(k,!0))),u(o,i,r),S&&(b.push([E]),r.track(E))):(r.track(O),b[C-1][0]+="!important",b.pop())}else u(o,i,r)}}g-1>d&&r.track(";"),i.push(b)}else r.warnings.push("Empty property '"+y+"' inside '"+t.filter(n).join(",")+"' selector. Ignoring.")}else r.track(m),m.indexOf("__ESCAPED_COMMENT_SPECIAL")>-1&&i.push(m.trim())}return i}var c=e("../utils/splitter"),f=",",h="/";t.exports=l},{"../utils/splitter":53}],42:[function(e,t,r){function n(e,t){for(var r,n=[],o=new i(",").split(e),a=0,s=o.length;s>a;a++)r=t.track(o[a],!0,a),t.track(","),n.push([o[a].trim()].concat(r));return n}var i=e("../utils/splitter");t.exports=n},{"../utils/splitter":53}],43:[function(e,t,r){function n(e,t){var r=new u(i(e),"}",128);if(r.isEmpty())return[];var n={chunk:r.next(),chunker:r,column:0,cursor:0,line:1,mode:"top",resolvePath:t.options.explicitTarget?o(t.options.root,t.options.target):null,source:void 0,sourceMap:t.options.sourceMap,sourceMapInlineSources:t.options.sourceMapInlineSources,sourceMapTracker:t.inputSourceMapTracker,sourceReader:t.sourceReader,sourceTracker:t.sourceTracker,state:[],track:t.options.sourceMap?function(e,t,r){return[[f(e,n,t,r)]]}:function(){return[]},warnings:t.warnings};return s(n)}function i(e){return e.replace(/\r\n/g,"\n")}function o(e,t){var r=h.relative(e,t);return function(e,t){return e!=t?h.normalize(h.join(h.relative(r,h.dirname(e)),t)):t}}function a(e){var t,r=e.mode,n=e.chunk;if(n.length==e.cursor){if(e.chunker.isEmpty())return null;e.chunk=n=e.chunker.next(),e.cursor=0}if("body"==r)return t=n.indexOf("}",e.cursor),t>-1?[t,"bodyEnd"]:null;var i=n.indexOf("@",e.cursor),o=n.indexOf("__ESCAPED_",e.cursor),a=n.indexOf("{",e.cursor),s=n.indexOf("}",e.cursor);return o>-1&&/\S/.test(n.substring(e.cursor,o))&&(o=-1),t=i,(-1==t||o>-1&&t>o)&&(t=o),(-1==t||a>-1&&t>a)&&(t=a),(-1==t||s>-1&&t>s)&&(t=s),-1!=t?o===t?[t,"escape"]:a===t?[t,"bodyStart"]:s===t?[t,"bodyEnd"]:i===t?[t,"special"]:void 0:void 0}function s(e){for(var t,r,n=e.chunk,i=[];;){var o=a(e);if(!o){var u=e.chunk.substring(e.cursor);u.trim().length>0&&("body"==e.mode?e.warnings.push("Missing '}' after '"+u+"'. Ignoring."):i.push(["text",[u]]),e.cursor+=u.length);break}var f,h,d=o[0],g=o[1];if(n=e.chunk,e.cursor!=d&&"bodyEnd"!=g){var m=n.substring(e.cursor,d),v=/^\s+/.exec(m);v&&(e.cursor+=v[0].length,e.track(v[0]))}if("special"==g){var b=n.indexOf("{",d),y=n.indexOf(";",d),w=y>-1&&(-1==b||b>y),x=-1==b&&-1==y;if(x)e.warnings.push("Broken declaration: '"+n.substring(e.cursor)+"'."),e.cursor=n.length;else if(w)f=n.indexOf(";",d+1),r=n.substring(e.cursor,f+1),i.push(["at-rule",[r].concat(e.track(r,!0))]),e.track(";"),e.cursor=f+1;else{f=n.indexOf("{",d+1),r=n.substring(e.cursor,f);var _=r.trim(),k=p.test(_);h=e.mode,e.cursor=f+1,e.mode=k?"body":"block",t=[k?"flat-block":"block"],t.push([_].concat(e.track(r,!0))),e.track("{"),t.push(s(e)),"string"==typeof t[2]&&(t[2]=l(t[2],[[_]],e)),e.mode=h,e.track("}"),i.push(t)}}else if("escape"==g){f=n.indexOf("__",d+1);var O=n.substring(e.cursor,f+2),E=!!e.sourceTracker.nextStart(O),S=!!e.sourceTracker.nextEnd(O);if(E)e.track(O),e.state.push({source:e.source,line:e.line,column:e.column}),e.source=e.sourceTracker.nextStart(O).filename,e.line=1,e.column=0;else if(S){var C=e.state.pop();e.source=C.source,e.line=C.line,e.column=C.column,e.track(O)}else 0===O.indexOf("__ESCAPED_COMMENT_SPECIAL")&&i.push(["text",[O]]),e.track(O);e.cursor=f+2}else if("bodyStart"==g){var A=c(n.substring(e.cursor,d),e);h=e.mode,e.cursor=d+1,e.mode="body";var M=l(s(e),A,e);e.track("{"),e.mode=h,i.push(["selector",A,M])}else if("bodyEnd"==g){if("top"==e.mode){var R=e.cursor,L="}"==n[e.cursor]?"Unexpected '}' in '"+n.substring(R-20,R+20)+"'. Ignoring.":"Unexpected content: '"+n.substring(R,d+1)+"'. Ignoring.";e.warnings.push(L),e.cursor=d+1;continue}"block"==e.mode&&e.track(n.substring(e.cursor,d)),"block"!=e.mode&&(i=n.substring(e.cursor,d)),e.cursor=d+1;break}}return i}var u=e("./chunker"),l=e("./extract-properties"),c=e("./extract-selectors"),f=e("../source-maps/track"),h=e("path"),p=/(@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport|counter\-style)|\\@.+?)/;t.exports=n},{"../source-maps/track":30,"./chunker":40,"./extract-properties":41,"./extract-selectors":42,path:69}],44:[function(e,t,r){function n(e,t){var r={absolute:t.options.explicitRoot,relative:!t.options.explicitRoot&&t.options.explicitTarget,fromBase:t.options.relativeTo};return r.absolute||r.relative?(r.absolute&&t.options.explicitTarget&&t.warnings.push("Both 'root' and output file given so rebasing URLs as absolute paths"),r.absolute&&(r.toBase=i.resolve(t.options.root)),r.relative&&(r.toBase=i.resolve(t.options.target)),r.fromBase&&r.toBase?o(e,r,t):e):e}var i=e("path"),o=e("./rewrite");t.exports=n},{"./rewrite":46,path:69}],45:[function(e,t,r){function n(e,t,r){for(var n=0,i=0,o=0,l=0,c=[],f=e.indexOf(s)>-1;o-1&&(n=i),o='"'==e[n+a.length]?e.indexOf('"',n+a.length+1):"'"==e[n+a.length]?e.indexOf("'",n+a.length+1):e.indexOf(u,n),-1==o?(o=e.indexOf("}",n),-1==o?o=e.length:o--,t.warnings.push("Broken URL declaration: '"+e.substring(n,o+1)+"'.")):e[o]!=u&&(o=e.indexOf(u,o)),c.push(e.substring(l,n));var h=e.substring(n,o+1);r(h,c),l=o+1}return c.length>0?c.join("")+e.substring(l,e.length):e}function i(e,t,r){for(var n,i,o=0,a=0,s=0,u=0,f=0,h=[],p=0,d=0,g="'",m='"';u-1&&a>-1&&o>a&&(o=a),p=e.indexOf(g,o),d=e.indexOf(m,o),p>-1&&d>-1&&d>p)s=p,i=g;else if(p>-1&&d>-1&&p>d)s=d,i=m;else if(p>-1)s=p,i=g;else{if(!(d>-1))break;s=d,i=m}if(h.push(e.substring(f,s)),u=e.indexOf(i,s+1),n=e.substring(o,u),-1==u||/^@import\s+(url\(|__ESCAPED)/i.test(n)){f=s;break}var v=e.substring(s,u+1);r(v,h),f=u+1}return h.length>0?h.join("")+e.substring(f,e.length):e}function o(e,t,r){return e=n(e,t,r),e=i(e,t,r)}var a="url(",s="URL(",u=")",l="@import",c="@IMPORT";t.exports=o},{}],46:[function(e,t,r){(function(r){function n(e){return"/"==e[0]}function i(e){return"#"==e[0]}function o(e){return 0===e.indexOf("__ESCAPED_URL_CLEAN_CSS__")}function a(e){return/^\w+:\w+/.test(e)}function s(e){return/^[^:]+?:\/\//.test(e)||0===e.indexOf("//")}function u(e){return e.lastIndexOf(".css")===e.length-4}function l(e){return 0===e.indexOf("data:")}function c(e,t){return m.resolve(m.join(t.fromBase,e)).replace(t.toBase,"")}function f(e,t){return m.relative(t.toBase,m.join(t.fromBase,e))}function h(e){return y?e.replace(/\\/g,"/"):e}function p(e,t){return n(e)||i(e)||o(e)||a(e)?e:t.rebase!==!1||u(e)?!t.imports&&u(e)?e:l(e)?"'"+e+"'":s(e)||s(t.toBase)?v.resolve(t.toBase,e):h(t.absolute?c(e,t):f(e,t)):e}function d(e){return e.indexOf("'")>-1?'"':e.indexOf('"')>-1?"'":/\s/.test(e)?"'":""}function g(e,t,r){return b(e,r,function(e,r){e=e.replace(/^(url\()?\s*['"]?|['"]?\s*\)?$/g,""),r.push("url("+d(e)+p(e,t)+d(e)+")")})}var m=e("path"),v=e("url"),b=e("./reduce"),y="win32"==r.platform;t.exports=g}).call(this,e("_process"))},{"./reduce":45,_process:70,path:69,url:88}],47:[function(e,t,r){function n(e){this.source=e||{}}function i(e,t){for(var r in e){var n=e[r];"object"!=typeof n||a.isRegExp(n)?t[r]=r in t?t[r]:n:t[r]=i(n,t[r]||{})}return t}function o(e){if("object"==typeof e)return e;if(!/[,\+\-]/.test(e))return s[e]||s["*"];var t=e.split(","),r=t[0]in s?s[t.shift()]:s["*"];return e={},t.forEach(function(t){var r="+"==t[0],n=t.substring(1).split("."),i=n[0],o=n[1];e[i]=e[i]||{},e[i][o]=r}),i(r,e)}var a=e("util"),s={"*":{colors:{opacity:!0},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,iePrefixHack:!1,ieSuffixHack:!0,merging:!0,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right)/},units:{ch:!0,rem:!0,vh:!0,vm:!0,vmax:!0,vmin:!0,vw:!0}},ie8:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not)/},units:{ch:!1,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}},ie7:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!0,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:focus|:before|:after|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not)/},units:{ch:!1,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}}};n.prototype.toOptions=function(){return i(s["*"],o(this.source))},t.exports=n},{util:90}],48:[function(e,t,r){(function(r){function n(e){this.options=e.options,this.errors=e.errors,this.warnings=e.warnings,this.sourceTracker=e.sourceTracker,this.timeout=this.options.inliner.timeout,this.requestOptions=this.options.inliner.request,this.localOnly=e.localOnly,this.relativeTo=e.options.target||r.cwd(),this.maps={},this.sourcesContent={}}function i(e,t,r){return e.trackLoaded(void 0,void 0,e.options.sourceMap),r()}function o(e,t,r,n){function i(){n.cursor+=s+1,o(e,t,r,n)}for(var s=0;n.cursor-1&&(s=l.index),c.index>-1&&c.index-1&&f.index299)return n(e.statusCode);var t=[];e.on("data",function(e){t.push(e.toString())}),e.on("end",function(){r(t.join(""))})}).on("error",function(e){a||(n(e.message),a=!0)}).on("timeout",function(){a||(n("timeout"),a=!0)}).setTimeout(e.timeout)}function u(e,t,r,n,i){for(var o,a=n.length,s={line:t,column:r+a};a-->0&&(s.column--,!(o=e.data.originalPositionFor(s))););return null===o.line&&t>1&&i>0?u(e,t-1,r,n,i-1):(e.path&&o.source&&(o.source=y.test(e.path)?m.resolve(e.path,o.source):p.join(e.path,o.source),o.sourceResolved=!0),o)}function l(e,t){var r=e.maps[t].data,n=y.test(t),i={};r.sources.forEach(function(o,a){var s=n?m.resolve(p.dirname(t),o):p.relative(e.relativeTo,p.resolve(p.dirname(t),o));i[s]=r.sourcesContent&&r.sourcesContent[a]}),e.sourcesContent[t]=i}function c(e,t,r){function n(){return c(e,t,r)}if(0===t.length)return r();var i=t.shift(),o=i[0],a=i[1],u=y.test(o);if(u&&e.localOnly)return e.warnings.push('No callback given to `#minify` method, cannot fetch a remote file from "'+a+'"'),n();if(!u){var l=p.join(e.options.root,a);return h.existsSync(l)?e.sourcesContent[o][a]=h.readFileSync(l,"utf-8"):e.warnings.push('Missing original source file at "'+l+'".'),n()}s(e,a,function(t){e.sourcesContent[o][a]=t,n()},function(t){e.warnings.push('Broken original source file at "'+a+'" - '+t),n()})}var f=e("source-map").SourceMapConsumer,h=e("fs"),p=e("path"),d=e("http"),g=e("https"),m=e("url"),v=e("../utils/object.js").override,b=/\/\*# sourceMappingURL=(\S+) \*\//,y=/^(https?:)?\/\//;n.prototype.track=function(e,t){return"string"==typeof this.options.sourceMap?i(this,e,t):o(this,e,t,{files:[],cursor:0,errors:this.errors})},n.prototype.trackLoaded=function(e,t,r){var n=this.options.explicitTarget?this.options.target:this.options.root,i=y.test(e);t&&(t=i?p.dirname(t):p.dirname(p.relative(n,t))),this.maps[e]={path:t,data:new f(r)},l(this,e)},n.prototype.isTracking=function(e){return!!this.maps[e]},n.prototype.originalPositionFor=function(e,t,r){return u(this.maps[e.source],e.line,e.column,t,r)},n.prototype.sourcesContentFor=function(e){return this.sourcesContent[e]},n.prototype.resolveSources=function(e){var t=[];for(var r in this.sourcesContent){var n=this.sourcesContent[r];for(var i in n)n[i]||t.push([r,i])}return c(this,t,e)},t.exports=n}).call(this,e("_process"))},{"../utils/object.js":49,_process:70,fs:54,http:61,https:65,path:69,"source-map":91,url:88}],49:[function(e,t,r){t.exports={override:function(e,t){var r={};for(var n in e)r[n]=e[n];for(var i in t)r[i]=t[i];return r}}},{}],50:[function(e,t,r){function n(e){this.data=e}function i(e,t,r){for(var n="\\",i=r;;){if(i=e.indexOf(t,i+1),-1==i)return-1;if(e[i-1]!=n)return i}}var o=function(e,t,r,n){var i="/*",o="*/",a="\\",s="}",u=e.substring(n,r),l=u.lastIndexOf(o,r),c=u.lastIndexOf(i,r),f=!1;if(l>=r&&c>-1&&(f=!0),r>c&&c>l&&(f=!0),f){var h=e.indexOf(o,r);return h>-1?h:(h=e.indexOf(s,r),h>-1?h-1:e.length)}for(;;){if(void 0===e[r])break;if(e[r]==t&&(e[r-1]!=a||e[r-2]==a))break;r++}return r};n.prototype.each=function(e){for(var t=this.data,r=[],n=0,a=0,s=0,u=null,l="'",c='"',f=t.length;ah?(n=h,u=l):(n=p,u=c),-1==n)break;if(a=o(t,u,n+1,s),-1==a)break;var d=t.substring(n,a+1);r.push(t.substring(s,n)),d.length>0&&e(d,r,n),s=a+1}return r.length>0?r.join("")+t.substring(s,t.length):t},t.exports=n},{}],51:[function(e,t,r){(function(r){function n(e,t){this.outerContext=e,this.data=t,this.sources={}}function i(e){var t=e.data;return e.trackSource(void 0,t),t}function o(e){var t=e.data.toString();return e.trackSource(void 0,t),t}function a(e){return e.data.map(function(t){return e.outerContext.options.processImport===!1?t+"@shallow":t}).map(function(t){return!e.outerContext.options.relativeTo||/^https?:\/\//.test(t)?t:u.relative(e.outerContext.options.relativeTo,t)}).map(function(e){return"@import url("+e+");"}).join("")}function s(e){var t=[],r=u.resolve(e.outerContext.options.target||e.outerContext.options.root);for(var n in e.data){var i=e.data[n].styles,o=e.data[n].sourceMap,a=c.test(n),s=a?n:u.resolve(n),f=u.dirname(s),h={absolute:e.outerContext.options.explicitRoot,relative:!e.outerContext.options.explicitRoot,imports:!0,rebase:e.outerContext.options.rebase,fromBase:f,toBase:a?f:r};i=l(i,h,e.outerContext),e.trackSource(n,i),i=e.outerContext.sourceTracker.store(n,i),e.outerContext.options.sourceMap&&o&&e.outerContext.inputSourceMapTracker.trackLoaded(n,n,o),t.push(i)}return t.join("")}var u=e("path"),l=e("../urls/rewrite"),c=/^(https?:)?\/\//;n.prototype.sourceAt=function(e){return this.sources[e]},n.prototype.trackSource=function(e,t){this.sources[e]={},this.sources[e][e]=t},n.prototype.toString=function(){return"string"==typeof this.data?i(this):r.isBuffer(this.data)?o(this):Array.isArray(this.data)?a(this):s(this)},t.exports=n}).call(this,e("buffer").Buffer)},{"../urls/rewrite":46,buffer:56,path:69}],52:[function(e,t,r){function n(){this.sources=[]}n.prototype.store=function(e,t){return this.sources.push(e),"__ESCAPED_SOURCE_CLEAN_CSS"+(this.sources.length-1)+"__"+t+"__ESCAPED_SOURCE_END_CLEAN_CSS__"},n.prototype.nextStart=function(e){var t=/__ESCAPED_SOURCE_CLEAN_CSS(\d+)__/.exec(e);return t?{index:t.index,filename:this.sources[~~t[1]]}:null},n.prototype.nextEnd=function(e){return/__ESCAPED_SOURCE_END_CLEAN_CSS__/g.exec(e)},n.prototype.removeAll=function(e){return e.replace(/__ESCAPED_SOURCE_CLEAN_CSS\d+__/g,"").replace(/__ESCAPED_SOURCE_END_CLEAN_CSS__/g,"")},t.exports=n},{}],53:[function(e,t,r){function n(e){this.separator=e,this.withRegex="string"!=typeof e}n.prototype.split=function(e,t){var r=this.withRegex?this.separator.test(e):e.indexOf(this.separator);if(!r)return[e];if(-1===e.indexOf("(")&&!t)return e.split(this.separator);for(var n=0,i=0,o=0,a=e.length,s=[];i++o&&s.push(e.substring(o)),s},t.exports=n},{}],54:[function(e,t,r){},{}],55:[function(e,t,r){arguments[4][54][0].apply(r,arguments)},{dup:54}],56:[function(e,t,r){function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e){return this instanceof i?(this.length=0,this.parent=void 0,"number"==typeof e?o(this,e):"string"==typeof e?a(this,e,arguments.length>1?arguments[1]:"utf8"):s(this,e)):arguments.length>1?new i(e,arguments[1]):new i(e)}function o(e,t){if(e=p(e,0>t?0:0|d(t)),!i.TYPED_ARRAY_SUPPORT)for(var r=0;t>r;r++)e[r]=0;return e}function a(e,t,r){("string"!=typeof r||""===r)&&(r="utf8");var n=0|m(t,r);return e=p(e,n),e.write(t,r),e}function s(e,t){if(i.isBuffer(t))return u(e,t);if(Y(t))return l(e,t);if(null==t)throw new TypeError("must start with number, buffer, array or string");return"undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer?c(e,t):t.length?f(e,t):h(e,t)}function u(e,t){var r=0|d(t.length);return e=p(e,r),t.copy(e,0,0,r),e}function l(e,t){var r=0|d(t.length);e=p(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function c(e,t){var r=0|d(t.length);e=p(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function f(e,t){var r=0|d(t.length);e=p(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function h(e,t){var r,n=0;"Buffer"===t.type&&Y(t.data)&&(r=t.data,n=0|d(r.length)),e=p(e,n);for(var i=0;n>i;i+=1)e[i]=255&r[i];return e}function p(e,t){i.TYPED_ARRAY_SUPPORT?e=i._augment(new Uint8Array(t)):(e.length=t,e._isBuffer=!0);var r=0!==t&&t<=i.poolSize>>>1;return r&&(e.parent=J),e}function d(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function g(e,t){if(!(this instanceof g))return new g(e,t);var r=new i(e,t);return delete r.parent,r}function m(e,t){"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(n)return N(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,r){var n=!1;if(t=0|t,r=void 0===r||r===1/0?this.length:0|r,e||(e="utf8"),0>t&&(t=0),r>this.length&&(r=this.length),t>=r)return"";for(;;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return S(this,t,r);case"binary":return C(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new Error("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;n>a;a++){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))throw new Error("Invalid hex string");e[r+a]=s}return a}function y(e,t,r,n){return $(N(t,e.length-r),e,r,n)}function w(e,t,r,n){return $(z(t),e,r,n)}function x(e,t,r,n){return w(e,t,r,n)}function _(e,t,r,n){return $(q(t),e,r,n)}function k(e,t,r,n){return $(F(t,e.length-r),e,r,n)}function O(e,t,r){return 0===t&&r===e.length?W.fromByteArray(e):W.fromByteArray(e.slice(t,r))}function E(e,t,r){var n="",i="";r=Math.min(e.length,r);for(var o=t;r>o;o++)e[o]<=127?(n+=H(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return n+H(i)}function S(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(127&e[i]);return n}function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(e[i]);return n}function A(e,t,r){var n=e.length;(!t||0>t)&&(t=0),(!r||0>r||r>n)&&(r=n);for(var i="",o=t;r>o;o++)i+=D(e[o]);return i}function M(e,t,r){for(var n=e.slice(t,r),i="",o=0;oe)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,r,n,o,a){if(!i.isBuffer(e))throw new TypeError("buffer must be a Buffer instance"); +if(t>o||a>t)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range")}function j(e,t,r,n){0>t&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);o>i;i++)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function T(e,t,r,n){0>t&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);o>i;i++)e[r+i]=t>>>8*(n?i:3-i)&255}function B(e,t,r,n,i,o){if(t>i||o>t)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function P(e,t,r,n,i){return i||B(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),G.write(e,t,r,n,23,4),r+4}function V(e,t,r,n,i){return i||B(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),G.write(e,t,r,n,52,8),r+8}function U(e){if(e=I(e).replace(Z,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function I(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function D(e){return 16>e?"0"+e.toString(16):e.toString(16)}function N(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;n>a;a++){if(r=e.charCodeAt(a),r>55295&&57344>r){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(56320>r){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&((t-=3)>-1&&o.push(239,191,189),i=null);if(128>r){if((t-=1)<0)break;o.push(r)}else if(2048>r){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(65536>r){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(2097152>r))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function z(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function q(e){return W.toByteArray(U(e))}function $(e,t,r,n){for(var i=0;n>i&&!(i+r>=t.length||i>=e.length);i++)t[i+r]=e[i];return i}function H(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}var W=e("base64-js"),G=e("ieee754"),Y=e("is-array");r.Buffer=i,r.SlowBuffer=g,r.INSPECT_MAX_BYTES=50,i.poolSize=8192;var J={};i.TYPED_ARRAY_SUPPORT=function(){function e(){}try{var t=new ArrayBuffer(0),r=new Uint8Array(t);return r.foo=function(){return 42},r.constructor=e,42===r.foo()&&r.constructor===e&&"function"==typeof r.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(n){return!1}}(),i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);a>o&&e[o]===t[o];)++o;return o!==a&&(r=e[o],n=t[o]),n>r?-1:r>n?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!Y(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new i(0);if(1===e.length)return e[0];var r;if(void 0===t)for(t=0,r=0;r0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},i.prototype.compare=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:i.compare(this,e)},i.prototype.indexOf=function(e,t){function r(e,t,r){for(var n=-1,i=0;r+i2147483647?t=2147483647:-2147483648>t&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(0>t&&(t=Math.max(this.length+t,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,t);if(i.isBuffer(e))return r(this,e,t);if("number"==typeof e)return i.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):r(this,[e],t);throw new TypeError("val must be string, number or Buffer")},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0);else{var i=n;n=t,t=0|r,r=i}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(0>r||0>t)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"binary":return x(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,0>e?(e+=r,0>e&&(e=0)):e>r&&(e=r),0>t?(t+=r,0>t&&(t=0)):t>r&&(t=r),e>t&&(t=e);var n;if(i.TYPED_ARRAY_SUPPORT)n=i._augment(this.subarray(e,t));else{var o=t-e;n=new i(o,void 0);for(var a=0;o>a;a++)n[a]=this[a+e]}return n.length&&(n.parent=this.parent||this),n},i.prototype.readUIntLE=function(e,t,r){e=0|e,t=0|t,r||R(e,t,this.length);for(var n=this[e],i=1,o=0;++o0&&(i*=256);)n+=this[e+--t]*i;return n},i.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,r){e=0|e,t=0|t,r||R(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},i.prototype.readIntBE=function(e,t,r){e=0|e,t=0|t,r||R(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},i.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),G.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),G.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),G.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),G.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,r,n){e=+e,t=0|t,r=0|r,n||L(this,e,t,r,Math.pow(2,8*r),0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},i.prototype.writeUInt8=function(e,t,r){return e=+e,t=0|t,r||L(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e,t+1},i.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=0|t,r||L(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=0|t,r||L(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):j(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=0|t,r||L(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e):T(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=0|t,r||L(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):T(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);L(this,e,t,r,i-1,-i)}var o=0,a=1,s=0>e?1:0;for(this[t]=255&e;++o>0)-s&255;return t+r},i.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);L(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0>e?1:0;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=(e/a>>0)-s&255;return t+r},i.prototype.writeInt8=function(e,t,r){return e=+e,t=0|t,r||L(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=e,t+1},i.prototype.writeInt16LE=function(e,t,r){return e=+e,t=0|t,r||L(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,r){return e=+e,t=0|t,r||L(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):j(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,r){return e=+e,t=0|t,r||L(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):T(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,r){return e=+e,t=0|t,r||L(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):T(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,r){return P(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){return P(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){return V(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){return V(this,e,t,!1,r)},i.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&r>n&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>r||r>=this.length)throw new RangeError("sourceStart out of bounds");if(0>n)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-to||!i.TYPED_ARRAY_SUPPORT)for(var a=0;o>a;a++)e[a+t]=this[a+r];else e._set(this.subarray(r,r+o),t);return o},i.prototype.fill=function(e,t,r){if(e||(e=0),t||(t=0),r||(r=this.length),t>r)throw new RangeError("end < start");if(r!==t&&0!==this.length){if(0>t||t>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof e)for(n=t;r>n;n++)this[n]=e;else{var i=N(e.toString()),o=i.length;for(n=t;r>n;n++)this[n]=i[n%o]}return this}},i.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(i.TYPED_ARRAY_SUPPORT)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;r>t;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var X=i.prototype;i._augment=function(e){return e.constructor=i,e._isBuffer=!0,e._set=e.set,e.get=X.get,e.set=X.set,e.write=X.write,e.toString=X.toString,e.toLocaleString=X.toString,e.toJSON=X.toJSON,e.equals=X.equals,e.compare=X.compare,e.indexOf=X.indexOf,e.copy=X.copy,e.slice=X.slice,e.readUIntLE=X.readUIntLE,e.readUIntBE=X.readUIntBE,e.readUInt8=X.readUInt8,e.readUInt16LE=X.readUInt16LE,e.readUInt16BE=X.readUInt16BE,e.readUInt32LE=X.readUInt32LE,e.readUInt32BE=X.readUInt32BE,e.readIntLE=X.readIntLE,e.readIntBE=X.readIntBE,e.readInt8=X.readInt8,e.readInt16LE=X.readInt16LE,e.readInt16BE=X.readInt16BE,e.readInt32LE=X.readInt32LE,e.readInt32BE=X.readInt32BE,e.readFloatLE=X.readFloatLE,e.readFloatBE=X.readFloatBE,e.readDoubleLE=X.readDoubleLE,e.readDoubleBE=X.readDoubleBE,e.writeUInt8=X.writeUInt8,e.writeUIntLE=X.writeUIntLE,e.writeUIntBE=X.writeUIntBE,e.writeUInt16LE=X.writeUInt16LE,e.writeUInt16BE=X.writeUInt16BE,e.writeUInt32LE=X.writeUInt32LE,e.writeUInt32BE=X.writeUInt32BE,e.writeIntLE=X.writeIntLE,e.writeIntBE=X.writeIntBE,e.writeInt8=X.writeInt8,e.writeInt16LE=X.writeInt16LE,e.writeInt16BE=X.writeInt16BE,e.writeInt32LE=X.writeInt32LE,e.writeInt32BE=X.writeInt32BE,e.writeFloatLE=X.writeFloatLE,e.writeFloatBE=X.writeFloatBE,e.writeDoubleLE=X.writeDoubleLE,e.writeDoubleBE=X.writeDoubleBE,e.fill=X.fill,e.inspect=X.inspect,e.toArrayBuffer=X.toArrayBuffer,e};var Z=/[^+\/0-9A-z\-]/g},{"base64-js":57,ieee754:58,"is-array":59}],57:[function(e,t,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===a||t===f?62:t===s||t===h?63:u>t?-1:u+10>t?t-u+26+26:c+26>t?t-c:l+26>t?t-l+26:void 0}function r(e){function r(e){l[f++]=e}var n,i,a,s,u,l;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;u="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,l=new o(3*e.length/4-u),a=u>0?e.length-4:e.length;var f=0;for(n=0,i=0;a>n;n+=4,i+=3)s=t(e.charAt(n))<<18|t(e.charAt(n+1))<<12|t(e.charAt(n+2))<<6|t(e.charAt(n+3)),r((16711680&s)>>16),r((65280&s)>>8),r(255&s);return 2===u?(s=t(e.charAt(n))<<2|t(e.charAt(n+1))>>4,r(255&s)):1===u&&(s=t(e.charAt(n))<<10|t(e.charAt(n+1))<<4|t(e.charAt(n+2))>>2,r(s>>8&255),r(255&s)),l}function i(e){function t(e){return n.charAt(e)}function r(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var i,o,a,s=e.length%3,u="";for(i=0,a=e.length-s;a>i;i+=3)o=(e[i]<<16)+(e[i+1]<<8)+e[i+2],u+=r(o);switch(s){case 1:o=e[e.length-1],u+=t(o>>2),u+=t(o<<4&63),u+="==";break;case 2:o=(e[e.length-2]<<8)+e[e.length-1],u+=t(o>>10),u+=t(o>>4&63),u+=t(o<<2&63),u+="="}return u}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="+".charCodeAt(0),s="/".charCodeAt(0),u="0".charCodeAt(0),l="a".charCodeAt(0),c="A".charCodeAt(0),f="-".charCodeAt(0),h="_".charCodeAt(0);e.toByteArray=r,e.fromByteArray=i}("undefined"==typeof r?this.base64js={}:r)},{}],58:[function(e,t,r){r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,p=e[t+f];for(f+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,n),o-=l}return(p?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+f>=1?h/u:h*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<0;e[r+p]=255&a,p+=d,a/=256,l-=8);e[r+p-d]|=128*g}},{}],59:[function(e,t,r){var n=Array.isArray,i=Object.prototype.toString;t.exports=n||function(e){return!!e&&"[object Array]"==i.call(e)}},{}],60:[function(e,t,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,r,n,o,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(r=this._events[e],s(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),u=1;n>u;u++)o[u-1]=arguments[u];r.apply(this,o)}else if(a(r)){for(n=arguments.length,o=new Array(n-1),u=1;n>u;u++)o[u-1]=arguments[u];for(l=r.slice(),n=l.length,u=0;n>u;u++)l[u].apply(this,o)}return!0},n.prototype.addListener=function(e,t){var r;if(!i(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned){var r;r=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())}return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var n=!1;return r.listener=t,this.on(e,r),this},n.prototype.removeListener=function(e,t){var r,n,o,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],o=r.length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(r)){for(s=o;s-->0;)if(r[s]===t||r[s].listener&&r[s].listener===t){n=s;break}if(0>n)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);else for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.listenerCount=function(e,t){var r;return r=e._events&&e._events[t]?i(e._events[t])?1:e._events[t].length:0}},{}],61:[function(e,t,r){var n=t.exports,i=(e("events").EventEmitter,e("./lib/request")),o=e("url");n.request=function(e,t){"string"==typeof e&&(e=o.parse(e)),e||(e={}),e.host||e.port||(e.port=parseInt(window.location.port,10)),!e.host&&e.hostname&&(e.host=e.hostname),e.protocol||(e.scheme?e.protocol=e.scheme+":":e.protocol=window.location.protocol),e.host||(e.host=window.location.hostname||window.location.host),/:/.test(e.host)&&(e.port||(e.port=e.host.split(":")[1]),e.host=e.host.split(":")[0]),e.port||(e.port="https:"==e.protocol?443:80);var r=new i(new a,e);return t&&r.on("response",t),r},n.get=function(e,t){e.method="GET";var r=n.request(e,t);return r.end(),r},n.Agent=function(){},n.Agent.defaultMaxSockets=4;var a=function(){if("undefined"==typeof window)throw new Error("no window object present");if(window.XMLHttpRequest)return window.XMLHttpRequest;if(window.ActiveXObject){for(var e=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"],t=0;tthis.offset&&(this.emit("data",t.slice(this.offset)),this.offset=t.length))};var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{stream:86,util:90}],64:[function(e,t,r){!function(){function e(e){this.message=e}var t="undefined"!=typeof r?r:this,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.prototype=new Error,e.prototype.name="InvalidCharacterError",t.btoa||(t.btoa=function(t){for(var r,i,o=0,a=n,s="";t.charAt(0|o)||(a="=",o%1);s+=a.charAt(63&r>>8-o%1*8)){if(i=t.charCodeAt(o+=.75),i>255)throw new e("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|i}return s}),t.atob||(t.atob=function(t){if(t=t.replace(/=+$/,""),t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i=n.indexOf(i);return s})}()},{}],65:[function(e,t,r){var n=e("http"),i=t.exports;for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);i.request=function(e,t){return e||(e={}),e.scheme="https",n.request.call(this,e,t)}},{http:61}],66:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],67:[function(e,t,r){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],68:[function(e,t,r){r.endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n"},{}],69:[function(e,t,r){(function(e){function t(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(r=a+"/"+r,i="/"===a.charAt(0))}return r=t(n(r.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+r||"."},r.normalize=function(e){var i=r.isAbsolute(e),o="/"===a(e,-1);return e=t(n(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},r.isAbsolute=function(e){return"/"===e.charAt(0)},r.join=function(){var e=Array.prototype.slice.call(arguments,0);return r.normalize(n(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},r.relative=function(e,t){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=r.resolve(e).substr(1),t=r.resolve(t).substr(1);for(var i=n(e.split("/")),o=n(t.split("/")),a=Math.min(i.length,o.length),s=a,u=0;a>u;u++)if(i[u]!==o[u]){s=u;break}for(var l=[],u=s;ut&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:70}],70:[function(e,t,r){function n(){c=!1,s.length?l=s.concat(l):f=-1,l.length&&i()}function i(){if(!c){var e=setTimeout(n);c=!0;for(var t=l.length;t;){for(s=l,l=[];++f1)for(var r=1;r1&&(n=r[0]+"@",e=r[1]),e=e.replace(T,".");var i=e.split("."),o=a(i,t).join(".");return n+o}function u(e){for(var t,r,n=[],i=0,o=e.length;o>i;)t=e.charCodeAt(i++),t>=55296&&56319>=t&&o>i?(r=e.charCodeAt(i++),56320==(64512&r)?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--)):n.push(t);return n}function l(e){return a(e,function(e){var t="";return e>65535&&(e-=65536,t+=U(e>>>10&1023|55296),e=56320|1023&e),t+=U(e)}).join("")}function c(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:k}function f(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function h(e,t,r){var n=0;for(e=r?V(e/C):e>>1,e+=V(e/t);e>P*E>>1;n+=k)e=V(e/P);return V(n+(P+1)*e/(e+S))}function p(e){var t,r,n,i,a,s,u,f,p,d,g=[],m=e.length,v=0,b=M,y=A;for(r=e.lastIndexOf(R),0>r&&(r=0),n=0;r>n;++n)e.charCodeAt(n)>=128&&o("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;m>i;){for(a=v,s=1,u=k;i>=m&&o("invalid-input"),f=c(e.charCodeAt(i++)),(f>=k||f>V((_-v)/s))&&o("overflow"),v+=f*s,p=y>=u?O:u>=y+E?E:u-y,!(p>f);u+=k)d=k-p,s>V(_/d)&&o("overflow"),s*=d;t=g.length+1,y=h(v-a,t,0==a),V(v/t)>_-b&&o("overflow"),b+=V(v/t),v%=t,g.splice(v++,0,b)}return l(g)}function d(e){var t,r,n,i,a,s,l,c,p,d,g,m,v,b,y,w=[];for(e=u(e),m=e.length,t=M,r=0,a=A,s=0;m>s;++s)g=e[s],128>g&&w.push(U(g));for(n=i=w.length,i&&w.push(R);m>n;){for(l=_,s=0;m>s;++s)g=e[s],g>=t&&l>g&&(l=g);for(v=n+1,l-t>V((_-r)/v)&&o("overflow"),r+=(l-t)*v,t=l,s=0;m>s;++s)if(g=e[s],t>g&&++r>_&&o("overflow"),g==t){for(c=r,p=k;d=a>=p?O:p>=a+E?E:p-a,!(d>c);p+=k)y=c-d,b=k-d,w.push(U(f(d+y%b,0))),c=V(y/b);w.push(U(f(c,0))),a=h(r,v,n==i),r=0,++n}++r,++t}return w.join("")}function g(e){return s(e,function(e){return L.test(e)?p(e.slice(4).toLowerCase()):e})}function m(e){return s(e,function(e){return j.test(e)?"xn--"+d(e):e})}var v="object"==typeof n&&n&&!n.nodeType&&n,b="object"==typeof r&&r&&!r.nodeType&&r,y="object"==typeof t&&t;(y.global===y||y.window===y||y.self===y)&&(i=y);var w,x,_=2147483647,k=36,O=1,E=26,S=38,C=700,A=72,M=128,R="-",L=/^xn--/,j=/[^\x20-\x7E]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,B={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=k-O,V=Math.floor,U=String.fromCharCode;if(w={version:"1.3.2",ucs2:{decode:u,encode:l},decode:p,encode:d,toASCII:m,toUnicode:g},"function"==typeof e&&"object"==typeof e.amd&&e.amd)e("punycode",function(){return w});else if(v&&b)if(r.exports==v)b.exports=w;else for(x in w)w.hasOwnProperty(x)&&(v[x]=w[x]);else i.punycode=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],72:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;l>c;++c){var f,h,p,d,g=e[c].replace(s,"%20"),m=g.indexOf(r);m>=0?(f=g.substr(0,m),h=g.substr(m+1)):(f=g,h=""),p=decodeURIComponent(f),d=decodeURIComponent(h),n(a,p)?i(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],73:[function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;nr;r++)t(e[r],r)}t.exports=n;var a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},s=e("core-util-is");s.inherits=e("inherits");var u=e("./_stream_readable"),l=e("./_stream_writable");s.inherits(n,u),o(a(l.prototype),function(e){n.prototype[e]||(n.prototype[e]=l.prototype[e])})}).call(this,e("_process"))},{"./_stream_readable":78,"./_stream_writable":80,_process:70,"core-util-is":81,inherits:66}],77:[function(e,t,r){function n(e){return this instanceof n?void i.call(this,e):new n(e)}t.exports=n;var i=e("./_stream_transform"),o=e("core-util-is");o.inherits=e("inherits"),o.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":79,"core-util-is":81,inherits:66}],78:[function(e,t,r){(function(r){function n(t,r){var n=e("./_stream_duplex");t=t||{};var i=t.highWaterMark,o=t.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,r instanceof n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(A||(A=e("string_decoder/").StringDecoder),this.decoder=new A(t.encoding),this.encoding=t.encoding)}function i(t){e("./_stream_duplex");return this instanceof i?(this._readableState=new n(t,this),this.readable=!0,void S.call(this)):new i(t)}function o(e,t,r,n,i){var o=l(t,r);if(o)e.emit("error",o);else if(C.isNullOrUndefined(r))t.reading=!1,t.ended||c(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else!t.decoder||i||n||(r=t.decoder.write(r)),i||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&f(e)),p(e,t);else i||(t.reading=!1);return a(t)}function a(e){return!e.ended&&(e.needReadable||e.length=R)e=R;else{e--;for(var t=1;32>t;t<<=1)e|=e>>t;e++}return e}function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||C.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:0>=e?0:(e>t.highWaterMark&&(t.highWaterMark=s(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function l(e,t){var r=null;return C.isBuffer(t)||C.isString(t)||C.isNullOrUndefined(t)||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function c(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,f(e)}function f(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(M("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(function(){h(e)}):h(e))}function h(e){M("emit readable"),e.emit("readable"),b(e)}function p(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){d(e,t)}))}function d(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=i)r=o?n.join(""):O.concat(n,i),n.length=0;else if(el&&e>u;l++){var s=n[0],f=Math.min(e-u,s.length);o?r+=s.slice(0,f):s.copy(r,u,0,f),f0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function x(e,t){for(var r=0,n=e.length;n>r;r++)t(e[r],r)}function _(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1}t.exports=i;var k=e("isarray"),O=e("buffer").Buffer;i.ReadableState=n;var E=e("events").EventEmitter;E.listenerCount||(E.listenerCount=function(e,t){return e.listeners(t).length});var S=e("stream"),C=e("core-util-is");C.inherits=e("inherits");var A,M=e("util");M=M&&M.debuglog?M.debuglog("stream"):function(){},C.inherits(i,S),i.prototype.push=function(e,t){var r=this._readableState;return C.isString(e)&&!r.objectMode&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=new O(e,t),t="")),o(this,r,e,t,!1)},i.prototype.unshift=function(e){var t=this._readableState;return o(this,t,e,"",!0)},i.prototype.setEncoding=function(t){return A||(A=e("string_decoder/").StringDecoder),this._readableState.decoder=new A(t),this._readableState.encoding=t,this};var R=8388608;i.prototype.read=function(e){M("read",e);var t=this._readableState,r=e;if((!C.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return M("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?w(this):f(this),null;if(e=u(e,t),0===e&&t.ended)return 0===t.length&&w(this),null;var n=t.needReadable;M("need readable",n),(0===t.length||t.length-e0?y(e,t):null,C.isNull(i)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&w(this),C.isNull(i)||this.emit("data",i),i},i.prototype._read=function(e){this.emit("error",new Error("not implemented"))},i.prototype.pipe=function(e,t){function n(e){M("onunpipe"),e===f&&o()}function i(){M("onend"),e.end()}function o(){M("cleanup"),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("drain",m),e.removeListener("error",s),e.removeListener("unpipe",n),f.removeListener("end",i),f.removeListener("end",o),f.removeListener("data",a),!h.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function a(t){M("ondata");var r=e.write(t);!1===r&&(M("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,f.pause())}function s(t){M("onerror",t),c(),e.removeListener("error",s),0===E.listenerCount(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",l),c()}function l(){M("onfinish"),e.removeListener("close",u),c()}function c(){M("unpipe"),f.unpipe(e)}var f=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=e;break;case 1:h.pipes=[h.pipes,e];break;default:h.pipes.push(e)}h.pipesCount+=1,M("pipe count=%d opts=%j",h.pipesCount,t);var p=(!t||t.end!==!1)&&e!==r.stdout&&e!==r.stderr,d=p?i:o;h.endEmitted?r.nextTick(d):f.once("end",d),e.on("unpipe",n);var m=g(f);return e.on("drain",m),f.on("data",a),e._events&&e._events.error?k(e._events.error)?e._events.error.unshift(s):e._events.error=[s,e._events.error]:e.on("error",s),e.once("close",u),e.once("finish",l),e.emit("pipe",f),h.flowing||(M("pipe resume"),f.resume()),e},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;n>i;i++)r[i].emit("unpipe",this);return this}var i=_(t.pipes,e);return-1===i?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},i.prototype.on=function(e,t){var n=S.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var i=this._readableState;if(!i.readableListening)if(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading)i.length&&f(this,i);else{var o=this;r.nextTick(function(){M("readable nexttick read 0"),o.read(0)})}}return n},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var e=this._readableState;return e.flowing||(M("resume"),e.flowing=!0,e.reading||(M("resume read 0"),this.read(0)),m(this,e)),this},i.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;e.on("end",function(){if(M("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),e.on("data",function(i){if(M("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)){var o=n.push(i);o||(r=!0,e.pause())}});for(var i in e)C.isFunction(e[i])&&C.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return x(o,function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){M("wrapped _read",t),r&&(r=!1,e.resume())},n},i._fromList=y}).call(this,e("_process"))},{"./_stream_duplex":76,_process:70,buffer:56,"core-util-is":81,events:60,inherits:66,isarray:67,stream:86,"string_decoder/":87,util:55}],79:[function(e,t,r){function n(e,t){this.afterTransform=function(e,r){return i(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,u.isNullOrUndefined(r)||e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length1){for(var r=[],n=0;n=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&56319>=n)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);var i=t.length-1,n=t.charCodeAt(i);if(n>=55296&&56319>=n){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},l.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(2>=t&&r>>4==14){this.charLength=3;break}if(3>=t&&r>>3==30){this.charLength=4;break}}this.charReceived=t},l.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},{buffer:56}],88:[function(e,t,r){function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,r){if(e&&l(e)&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}function o(e){return u(e)&&(e=i(e)),e instanceof n?e.format():n.prototype.format.call(e)}function a(e,t){return i(e,!1,!0).resolve(t)}function s(e,t){return e?i(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function l(e){return"object"==typeof e&&null!==e}function c(e){return null===e}function f(e){return null==e}var h=e("punycode");r.parse=i,r.resolve=a,r.resolveObject=s,r.format=o,r.Url=n;var p=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,g=["<",">",'"',"`"," ","\r","\n"," "],m=["{","}","|","\\","^","`"].concat(g),v=["'"].concat(m),b=["%","/","?",";","#"].concat(v),y=["/","?","#"],w=255,x=/^[a-z0-9A-Z_-]{0,63}$/,_=/^([a-z0-9A-Z_-]{0,63})(.*)$/,k={javascript:!0,"javascript:":!0},O={javascript:!0,"javascript:":!0},E={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},S=e("querystring");n.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e;n=n.trim();var i=p.exec(n);if(i){i=i[0];var o=i.toLowerCase();this.protocol=o,n=n.substr(i.length)}if(r||i||n.match(/^\/\/[^@\/]+@[^@\/]+/)){var a="//"===n.substr(0,2);!a||i&&O[i]||(n=n.substr(2),this.slashes=!0)}if(!O[i]&&(a||i&&!E[i])){for(var s=-1,l=0;lc)&&(s=c)}var f,d;d=-1===s?n.lastIndexOf("@"):n.lastIndexOf("@",s),-1!==d&&(f=n.slice(0,d),n=n.slice(d+1),this.auth=decodeURIComponent(f)),s=-1;for(var l=0;lc)&&(s=c)}-1===s&&(s=n.length),this.host=n.slice(0,s),n=n.slice(s),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var m=this.hostname.split(/\./),l=0,C=m.length;C>l;l++){var A=m[l];if(A&&!A.match(x)){for(var M="",R=0,L=A.length;L>R;R++)M+=A.charCodeAt(R)>127?"x":A[R];if(!M.match(x)){var j=m.slice(0,l),T=m.slice(l+1),B=A.match(_);B&&(j.push(B[1]),T.unshift(B[2])),T.length&&(n="/"+T.join(".")+n),this.hostname=j.join(".");break}}}if(this.hostname.length>w?this.hostname="":this.hostname=this.hostname.toLowerCase(),!g){for(var P=this.hostname.split("."),V=[],l=0;ll;l++){var N=v[l],z=encodeURIComponent(N);z===N&&(z=escape(N)),n=n.split(N).join(z)}var F=n.indexOf("#");-1!==F&&(this.hash=n.substr(F),n=n.slice(0,F));var q=n.indexOf("?");if(-1!==q?(this.search=n.substr(q),this.query=n.substr(q+1),t&&(this.query=S.parse(this.query)),n=n.slice(0,q)):t&&(this.search="",this.query={}),n&&(this.pathname=n),E[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var I=this.pathname||"",U=this.search||"";this.path=I+U}return this.href=this.format(),this},n.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&l(this.query)&&Object.keys(this.query).length&&(o=S.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||E[t])&&i!==!1?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),a=a.replace("#","%23"),t+i+r+a+n},n.prototype.resolve=function(e){return this.resolveObject(i(e,!1,!0)).format()},n.prototype.resolveObject=function(e){if(u(e)){var t=new n;t.parse(e,!1,!0),e=t}var r=new n;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),E[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!E[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||O[e.protocol])r.pathname=e.pathname;else{for(var i=(e.pathname||"").split("/");i.length&&!(e.host=i.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==i[0]&&i.unshift(""),i.length<2&&i.unshift(""),r.pathname=i.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var o=r.pathname||"",a=r.search||"";r.path=o+a}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var s=r.pathname&&"/"===r.pathname.charAt(0),l=e.host||e.pathname&&"/"===e.pathname.charAt(0),h=l||s||r.host&&e.pathname,p=h,d=r.pathname&&r.pathname.split("/")||[],i=e.pathname&&e.pathname.split("/")||[],g=r.protocol&&!E[r.protocol];if(g&&(r.hostname="",r.port=null,r.host&&(""===d[0]?d[0]=r.host:d.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===i[0]?i[0]=e.host:i.unshift(e.host)),e.host=null),h=h&&(""===i[0]||""===d[0])),l)r.host=e.host||""===e.host?e.host:r.host, +r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,d=i;else if(i.length)d||(d=[]),d.pop(),d=d.concat(i),r.search=e.search,r.query=e.query;else if(!f(e.search)){if(g){r.hostname=r.host=d.shift();var m=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;m&&(r.auth=m.shift(),r.host=r.hostname=m.shift())}return r.search=e.search,r.query=e.query,c(r.pathname)&&c(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!d.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var v=d.slice(-1)[0],b=(r.host||e.host)&&("."===v||".."===v)||""===v,y=0,w=d.length;w>=0;w--)v=d[w],"."==v?d.splice(w,1):".."===v?(d.splice(w,1),y++):y&&(d.splice(w,1),y--);if(!h&&!p)for(;y--;y)d.unshift("..");!h||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),b&&"/"!==d.join("/").substr(-1)&&d.push("");var x=""===d[0]||d[0]&&"/"===d[0].charAt(0);if(g){r.hostname=r.host=x?"":d.length?d.shift():"";var m=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;m&&(r.auth=m.shift(),r.host=r.hostname=m.shift())}return h=h||r.host&&d.length,h&&!x&&d.unshift(""),d.length?r.pathname=d.join("/"):(r.pathname=null,r.path=null),c(r.pathname)&&c(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:71,querystring:74}],89:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],90:[function(e,t,r){(function(t,n){function i(e,t){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(t)?n.showHidden=t:t&&r._extend(n,t),x(n.showHidden)&&(n.showHidden=!1),x(n.depth)&&(n.depth=2),x(n.colors)&&(n.colors=!1),x(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),u(n,e,n.depth)}function o(e,t){var r=i.styles[t];return r?"["+i.colors[r][0]+"m"+e+"["+i.colors[r][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,n){if(e.customInspect&&t&&S(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return y(i)||(i=u(e,i,n)),i}var o=l(e,t);if(o)return o;var a=Object.keys(t),g=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),E(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(t);if(0===a.length){if(S(t)){var m=t.name?": "+t.name:"";return e.stylize("[Function"+m+"]","special")}if(_(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(O(t))return e.stylize(Date.prototype.toString.call(t),"date");if(E(t))return c(t)}var v="",b=!1,w=["{","}"];if(d(t)&&(b=!0,w=["[","]"]),S(t)){var x=t.name?": "+t.name:"";v=" [Function"+x+"]"}if(_(t)&&(v=" "+RegExp.prototype.toString.call(t)),O(t)&&(v=" "+Date.prototype.toUTCString.call(t)),E(t)&&(v=" "+c(t)),0===a.length&&(!b||0==t.length))return w[0]+v+w[1];if(0>n)return _(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var k;return k=b?f(e,t,n,g,a):a.map(function(r){return h(e,t,n,g,r,b)}),e.seen.pop(),p(k,v,w)}function l(e,t){if(x(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return b(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,i){for(var o=[],a=0,s=t.length;s>a;++a)L(t,String(a))?o.push(h(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))}),o}function h(e,t,r,n,i,o){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),L(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(r)?u(e,l.value,null):u(e,l.value,r-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),x(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e,t,r){var n=0,i=e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return null==e}function b(e){return"number"==typeof e}function y(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function x(e){return void 0===e}function _(e){return k(e)&&"[object RegExp]"===A(e)}function k(e){return"object"==typeof e&&null!==e}function O(e){return k(e)&&"[object Date]"===A(e)}function E(e){return k(e)&&("[object Error]"===A(e)||e instanceof Error)}function S(e){return"function"==typeof e}function C(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function A(e){return Object.prototype.toString.call(e)}function M(e){return 10>e?"0"+e.toString(10):e.toString(10)}function R(){var e=new Date,t=[M(e.getHours()),M(e.getMinutes()),M(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var j=/%[sdj%]/g;r.format=function(e){if(!y(e)){for(var t=[],r=0;r=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),s=n[r];o>r;s=n[++r])a+=m(s)||!k(s)?" "+s:" "+i(s);return a},r.deprecate=function(e,i){function o(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}if(x(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var a=!1;return o};var T,B={};r.debuglog=function(e){if(x(T)&&(T=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!B[e])if(new RegExp("\\b"+e+"\\b","i").test(T)){var n=t.pid;B[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else B[e]=function(){};return B[e]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=d,r.isBoolean=g,r.isNull=m,r.isNullOrUndefined=v,r.isNumber=b,r.isString=y,r.isSymbol=w,r.isUndefined=x,r.isRegExp=_,r.isObject=k,r.isDate=O,r.isError=E,r.isFunction=S,r.isPrimitive=C,r.isBuffer=e("./support/isBuffer");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",R(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!k(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":89,_process:70,inherits:66}],91:[function(e,t,r){r.SourceMapGenerator=e("./source-map/source-map-generator").SourceMapGenerator,r.SourceMapConsumer=e("./source-map/source-map-consumer").SourceMapConsumer,r.SourceNode=e("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":98,"./source-map/source-map-generator":99,"./source-map/source-node":100}],92:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(){this._array=[],this._set={}}var i=e("./util");n.fromArray=function(e,t){for(var r=new n,i=0,o=e.length;o>i;i++)r.add(e[i],t);return r},n.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},n.prototype.add=function(e,t){var r=this.has(e),n=this._array.length;(!r||t)&&this._array.push(e),r||(this._set[i.toSetString(e)]=n)},n.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,i.toSetString(e))},n.prototype.indexOf=function(e){if(this.has(e))return this._set[i.toSetString(e)];throw new Error('"'+e+'" is not in the set.')},n.prototype.at=function(e){if(e>=0&&ee?(-e<<1)+1:(e<<1)+0}function i(e){var t=1===(1&e),r=e>>1;return t?-r:r}var o=e("./base64"),a=5,s=1<>>=a,i>0&&(t|=l),r+=o.encode(t);while(i>0);return r},t.decode=function(e,t,r){var n,s,c=e.length,f=0,h=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(s=o.decode(e.charCodeAt(t++)),-1===s)throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(s&l),s&=u,f+=s<=0&&e=t&&r>=e?e-t:e>=n&&i>=e?e-n+l:e>=o&&a>=e?e-o+c:e==s?62:e==u?63:-1}})},{amdefine:102}],95:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,r,i,o,a,s){var u=Math.floor((r-e)/2)+e,l=a(i,o[u],!0);return 0===l?u:l>0?r-u>1?n(u,r,i,o,a,s):s==t.LEAST_UPPER_BOUND?r1?n(e,u,i,o,a,s):s==t.LEAST_UPPER_BOUND?u:0>e?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,o){if(0===r.length)return-1;var a=n(-1,r.length,e,r,i,o||t.GREATEST_LOWER_BOUND);if(0>a)return-1;for(;a-1>=0&&0===i(r[a],r[a-1],!0);)--a;return a}})},{amdefine:102}],96:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,a=t.generatedColumn;return n>r||n==r&&a>=i||o.compareByGeneratedPositionsInflated(e,t)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var o=e("./util");i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i})},{"./util":101,amdefine:102}],97:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function i(e,t){return Math.round(e+Math.random()*(t-e))}function o(e,t,r,a){if(a>r){var s=i(r,a),u=r-1;n(e,s,a);for(var l=e[a],c=r;a>c;c++)t(e[c],l)<=0&&(u+=1,n(e,u,c));n(e,u+1,c);var f=u+1;o(e,t,r,f-1),o(e,t,f+1,a)}}t.quickSort=function(e,t){o(e,t,0,e.length-1)}})},{amdefine:102}],98:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new a(t):new i(t)}function i(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=s.getArg(t,"version"),n=s.getArg(t,"sources"),i=s.getArg(t,"names",[]),o=s.getArg(t,"sourceRoot",null),a=s.getArg(t,"sourcesContent",null),u=s.getArg(t,"mappings"),c=s.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(s.normalize),this._names=l.fromArray(i,!0),this._sources=l.fromArray(n,!0),this.sourceRoot=o,this.sourcesContent=a,this._mappings=u,this.file=c}function o(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function a(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=s.getArg(t,"version"),i=s.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new l,this._names=new l;var o={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=s.getArg(e,"offset"),r=s.getArg(t,"line"),i=s.getArg(t,"column");if(r=0){var o=this._originalMappings[i];if(void 0===e.column)for(var a=o.originalLine;o&&o.originalLine===a;)n.push({line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i];else for(var l=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==l;)n.push({line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i]}return n},t.SourceMapConsumer=n,i.prototype=Object.create(n.prototype),i.prototype.consumer=n,i.fromSourceMap=function(e){var t=Object.create(i.prototype),r=t._names=l.fromArray(e._names.toArray(),!0),n=t._sources=l.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),u=t.__generatedMappings=[],c=t.__originalMappings=[],h=0,p=a.length;p>h;h++){var d=a[h],g=new o;g.generatedLine=d.generatedLine,g.generatedColumn=d.generatedColumn,d.source&&(g.source=n.indexOf(d.source),g.originalLine=d.originalLine,g.originalColumn=d.originalColumn,d.name&&(g.name=r.indexOf(d.name)),c.push(g)),u.push(g)}return f(t.__originalMappings,s.compareByOriginalPositions),t},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?s.join(this.sourceRoot,e):e},this)}}),i.prototype._parseMappings=function(e,t){for(var r,n,i,a,u,l=1,h=0,p=0,d=0,g=0,m=0,v=e.length,b=0,y={},w={},x=[],_=[];v>b;)if(";"===e.charAt(b))l++,b++,h=0;else if(","===e.charAt(b))b++;else{for(r=new o,r.generatedLine=l,a=b;v>a&&!this._charIsMappingSeparator(e,a);a++);if(n=e.slice(b,a),i=y[n])b+=n.length;else{for(i=[];a>b;)c.decode(e,b,w),u=w.value,b=w.rest,i.push(u);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");y[n]=i}r.generatedColumn=h+i[0],h=r.generatedColumn,i.length>1&&(r.source=g+i[1],g+=i[1],r.originalLine=p+i[2],p=r.originalLine,r.originalLine+=1,r.originalColumn=d+i[3],d=r.originalColumn,i.length>4&&(r.name=m+i[4],m+=i[4])),_.push(r),"number"==typeof r.originalLine&&x.push(r)}f(_,s.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,f(x,s.compareByOriginalPositions),this.__originalMappings=x},i.prototype._findMapping=function(e,t,r,n,i,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return u.search(e,t,i,o)},i.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var o=s.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),null!=this.sourceRoot&&(o=s.join(this.sourceRoot,o)));var a=s.getArg(i,"name",null);return null!==a&&(a=this._names.at(a)),{source:o,line:s.getArg(i,"originalLine",null),column:s.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}):!1},i.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=s.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=s.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(e){var t=s.getArg(e,"source");if(null!=this.sourceRoot&&(t=s.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};t=this._sources.indexOf(t);var r={source:t,originalLine:s.getArg(e,"line"),originalColumn:s.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(e,"bias",n.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===r.source)return{line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=i,a.prototype=Object.create(n.prototype),a.prototype.constructor=n,a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},n.prototype._serializeMappings=function(){for(var e,t=0,r=1,n=0,a=0,s=0,u=0,l="",c=this._mappings.toArray(),f=0,h=c.length;h>f;f++){if(e=c[f],e.generatedLine!==r)for(t=0;e.generatedLine!==r;)l+=";",r++;else if(f>0){if(!o.compareByGeneratedPositionsInflated(e,c[f-1]))continue;l+=","}l+=i.encode(e.generatedColumn-t),t=e.generatedColumn,null!=e.source&&(l+=i.encode(this._sources.indexOf(e.source)-u),u=this._sources.indexOf(e.source),l+=i.encode(e.originalLine-1-a),a=e.originalLine-1,l+=i.encode(e.originalColumn-n),n=e.originalColumn,null!=e.name&&(l+=i.encode(this._names.indexOf(e.name)-s),s=this._names.indexOf(e.name)))}return l},n.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var r=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},n.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},n.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=n})},{"./array-set":92,"./base64-vlq":93,"./mapping-list":96,"./util":101,amdefine:102}],100:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[u]=!0,null!=n&&this.add(n)}var i=e("./source-map-generator").SourceMapGenerator,o=e("./util"),a=/(\r?\n)/,s=10,u="$$$isSourceNode$$$";n.fromStringWithSourceMap=function(e,t,r){function i(e,t){if(null===e||void 0===e.source)s.add(t);else{var i=r?o.join(r,e.source):e.source;s.add(new n(e.originalLine,e.originalColumn,i,t,e.name))}}var s=new n,u=e.split(a),l=function(){var e=u.shift(),t=u.shift()||"";return e+t},c=1,f=0,h=null;return t.eachMapping(function(e){if(null!==h){if(!(c0&&(h&&i(h,l()),s.add(u.join(""))),t.sources.forEach(function(e){var n=t.sourceContentFor(e);null!=n&&(null!=r&&(e=o.join(r,e)),s.setSourceContent(e,n))}),s},n.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},n.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},n.prototype.walk=function(e){for(var t,r=0,n=this.children.length;n>r;r++)t=this.children[r],t[u]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},n.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;n-1>r;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},n.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[u]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},n.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},n.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;r>t;t++)this.children[t][u]&&this.children[t].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),t=0,r=n.length;r>t;t++)e(o.fromSetString(n[t]),this.sourceContents[n[t]])},n.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},n.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new i(e),n=!1,o=null,a=null,u=null,l=null;return this.walk(function(e,i){t.code+=e,null!==i.source&&null!==i.line&&null!==i.column?((o!==i.source||a!==i.line||u!==i.column||l!==i.name)&&r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name}),o=i.source,a=i.line,u=i.column,l=i.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),o=null,n=!1);for(var c=0,f=e.length;f>c;c++)e.charCodeAt(c)===s?(t.line++,t.column=0,c+1===f?(o=null,n=!1):n&&r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})):t.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:t.code,map:r}},t.SourceNode=n})},{"./source-map-generator":99,"./util":101,amdefine:102}],101:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}function i(e){var t=e.match(g);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"), +e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var t=e,r=i(e);if(r){if(!r.path)return e;t=r.path}for(var n,a="/"===t.charAt(0),s=t.split(/\/+/),u=0,l=s.length-1;l>=0;l--)n=s[l],"."===n?s.splice(l,1):".."===n?u++:u>0&&(""===n?(s.splice(l+1,u),u=0):(s.splice(l,2),u--));return t=s.join("/"),""===t&&(t=a?"/":"."),r?(r.path=t,o(r)):t}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),n=i(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),o(r);if(r||t.match(m))return t;if(n&&!n.host&&!n.path)return n.host=t,o(n);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=s,o(n)):s}function u(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(0>n)return t;if(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}function l(e){return"$"+e}function c(e){return e.substr(1)}function f(e,t,r){var n=e.source-t.source;return 0!==n?n:(n=e.originalLine-t.originalLine,0!==n?n:(n=e.originalColumn-t.originalColumn,0!==n||r?n:(n=e.generatedColumn-t.generatedColumn,0!==n?n:(n=e.generatedLine-t.generatedLine,0!==n?n:e.name-t.name))))}function h(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:(n=e.generatedColumn-t.generatedColumn,0!==n||r?n:(n=e.source-t.source,0!==n?n:(n=e.originalLine-t.originalLine,0!==n?n:(n=e.originalColumn-t.originalColumn,0!==n?n:e.name-t.name))))}function p(e,t){return e===t?0:e>t?1:-1}function d(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=p(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:p(e.name,t.name)))))}t.getArg=n;var g=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,m=/^data:.+\,.+$/;t.urlParse=i,t.urlGenerate=o,t.normalize=a,t.join=s,t.relative=u,t.toSetString=l,t.fromSetString=c,t.compareByOriginalPositions=f,t.compareByGeneratedPositionsDeflated=h,t.compareByGeneratedPositionsInflated=d})},{amdefine:102}],102:[function(e,t,r){(function(r,n){"use strict";function i(t,i){function o(e){var t,r;for(t=0;e[t];t+=1)if(r=e[t],"."===r)e.splice(t,1),t-=1;else if(".."===r){if(1===t&&(".."===e[2]||".."===e[0]))break;t>0&&(e.splice(t-1,2),t-=2)}}function a(e,t){var r;return e&&"."===e.charAt(0)&&t&&(r=t.split("/"),r=r.slice(0,r.length-1),r=r.concat(e.split("/")),o(r),e=r.join("/")),e}function s(e){return function(t){return a(t,e)}}function u(e){function t(t){d[e]=t}return t.fromText=function(e,t){throw new Error("amdefine does not implement load.fromText")},t}function l(e,r,o){var a,s,u,l;if(e)s=d[e]={},u={id:e,uri:n,exports:s},a=f(i,s,u,e);else{if(g)throw new Error("amdefine with no module ID cannot be called more than once per file.");g=!0,s=t.exports,u=t,a=f(i,s,u,t.id)}r&&(r=r.map(function(e){return a(e)})),l="function"==typeof o?o.apply(u.exports,r):o,void 0!==l&&(u.exports=l,e&&(d[e]=u.exports))}function c(e,t,r){Array.isArray(e)?(r=t,t=e,e=void 0):"string"!=typeof e&&(r=e,e=t=void 0),t&&!Array.isArray(t)&&(r=t,t=void 0),t||(t=["require","exports","module"]),e?p[e]=[e,t,r]:l(e,t,r)}var f,h,p={},d={},g=!1,m=e("path");return f=function(e,t,n,i){function o(o,a){return"string"==typeof o?h(e,t,n,o,i):(o=o.map(function(r){return h(e,t,n,r,i)}),void(a&&r.nextTick(function(){a.apply(null,o)})))}return o.toUrl=function(e){return 0===e.indexOf(".")?a(e,m.dirname(n.filename)):e},o},i=i||function(){return t.require.apply(t,arguments)},h=function(e,t,r,n,i){var o,c,g=n.indexOf("!"),m=n;if(-1===g){if(n=a(n,i),"require"===n)return f(e,t,r,i);if("exports"===n)return t;if("module"===n)return r;if(d.hasOwnProperty(n))return d[n];if(p[n])return l.apply(null,p[n]),d[n];if(e)return e(m);throw new Error("No module with ID: "+n)}return o=n.substring(0,g),n=n.substring(g+1,n.length),c=h(e,t,r,o,i),n=c.normalize?c.normalize(n,s(i)):a(n,i),d[n]?d[n]:(c.load(n,f(e,t,r,i),u(n),{}),d[n])},c.require=function(e){return d[e]?d[e]:p[e]?(l.apply(null,p[e]),d[e]):void 0},c.amd={},c}t.exports=i}).call(this,e("_process"),"/node_modules\\source-map\\node_modules\\amdefine\\amdefine.js")},{_process:70,path:69}]},{},[1])(1)}); \ No newline at end of file diff --git a/assets/uglify.js b/assets/uglify.js index d0a2cdc..b7cf001 100644 --- a/assets/uglify.js +++ b/assets/uglify.js @@ -2,5 +2,5 @@ digit:new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]"),non_spacing_mark:new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),space_combining_mark:new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),connector_punctuation:new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")};function is_letter(code){return code>=97&&code<=122||code>=65&&code<=90||code>=170&&UNICODE.letter.test(String.fromCharCode(code))}function is_digit(code){return code>=48&&code<=57}function is_alphanumeric_char(code){return is_digit(code)||is_letter(code)}function is_unicode_digit(code){return UNICODE.digit.test(String.fromCharCode(code))}function is_unicode_combining_mark(ch){return UNICODE.non_spacing_mark.test(ch)||UNICODE.space_combining_mark.test(ch)}function is_unicode_connector_punctuation(ch){return UNICODE.connector_punctuation.test(ch)}function is_identifier(name){return!RESERVED_WORDS(name)&&/^[a-z_$][a-z0-9_$]*$/i.test(name)}function is_identifier_start(code){return code==36||code==95||is_letter(code)}function is_identifier_char(ch){var code=ch.charCodeAt(0);return is_identifier_start(code)||is_digit(code)||code==8204||code==8205||is_unicode_combining_mark(ch)||is_unicode_connector_punctuation(ch)||is_unicode_digit(code)}function is_identifier_string(str){return/^[a-z_$][a-z0-9_$]*$/i.test(str)}function parse_js_number(num){if(RE_HEX_NUMBER.test(num)){return parseInt(num.substr(2),16)}else if(RE_OCT_NUMBER.test(num)){return parseInt(num.substr(1),8)}else if(RE_DEC_NUMBER.test(num)){return parseFloat(num)}}function JS_Parse_Error(message,filename,line,col,pos){this.message=message;this.filename=filename;this.line=line;this.col=col;this.pos=pos;this.stack=(new Error).stack}JS_Parse_Error.prototype.toString=function(){return this.message+" (line: "+this.line+", col: "+this.col+", pos: "+this.pos+")"+"\n\n"+this.stack};function js_error(message,filename,line,col,pos){throw new JS_Parse_Error(message,filename,line,col,pos)}function is_token(token,type,val){return token.type==type&&(val==null||token.value==val)}var EX_EOF={};function tokenizer($TEXT,filename,html5_comments){var S={text:$TEXT,filename:filename,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:false,regex_allowed:false,comments_before:[]};function peek(){return S.text.charAt(S.pos)}function next(signal_eof,in_string){var ch=S.text.charAt(S.pos++);if(signal_eof&&!ch)throw EX_EOF;if("\r\n\u2028\u2029".indexOf(ch)>=0){S.newline_before=S.newline_before||!in_string;++S.line;S.col=0;if(!in_string&&ch=="\r"&&peek()=="\n"){++S.pos;ch="\n"}}else{++S.col}return ch}function forward(i){while(i-->0)next()}function looking_at(str){return S.text.substr(S.pos,str.length)==str}function find(what,signal_eof){var pos=S.text.indexOf(what,S.pos);if(signal_eof&&pos==-1)throw EX_EOF;return pos}function start_token(){S.tokline=S.line;S.tokcol=S.col;S.tokpos=S.pos}var prev_was_dot=false;function token(type,value,is_comment){S.regex_allowed=type=="operator"&&!UNARY_POSTFIX(value)||type=="keyword"&&KEYWORDS_BEFORE_EXPRESSION(value)||type=="punc"&&PUNC_BEFORE_EXPRESSION(value);prev_was_dot=type=="punc"&&value==".";var ret={type:type,value:value,line:S.tokline,col:S.tokcol,pos:S.tokpos,endline:S.line,endcol:S.col,endpos:S.pos,nlb:S.newline_before,file:filename};if(!is_comment){ret.comments_before=S.comments_before;S.comments_before=[];for(var i=0,len=ret.comments_before.length;i0;--n){var digit=parseInt(next(true),16);if(isNaN(digit))parse_error("Invalid hex-character pattern in string");num=num<<4|digit}return num}var read_string=with_eof_error("Unterminated string constant",function(quote_char){var quote=next(),ret="";for(;;){var ch=next(true,true);if(ch=="\\"){var octal_len=0,first=null;ch=read_while(function(ch){if(ch>="0"&&ch<="7"){if(!first){first=ch;return++octal_len}else if(first<="3"&&octal_len<=2)return++octal_len;else if(first>="4"&&octal_len<=1)return++octal_len}return false});if(octal_len>0)ch=String.fromCharCode(parseInt(ch,8));else ch=read_escaped_char(true)}else if(ch==quote)break;ret+=ch}var tok=token("string",ret);tok.quote=quote_char;return tok});function skip_line_comment(type){var regex_allowed=S.regex_allowed;var i=find("\n"),ret;if(i==-1){ret=S.text.substr(S.pos);S.pos=S.text.length}else{ret=S.text.substring(S.pos,i);S.pos=i}S.col=S.tokcol+(S.pos-S.tokpos);S.comments_before.push(token(type,ret,true));S.regex_allowed=regex_allowed;return next_token()}var skip_multiline_comment=with_eof_error("Unterminated multiline comment",function(){var regex_allowed=S.regex_allowed;var i=find("*/",true);var text=S.text.substring(S.pos,i);var a=text.split("\n"),n=a.length;S.pos=i+2;S.line+=n-1;if(n>1)S.col=a[n-1].length;else S.col+=a[n-1].length;S.col+=2;var nlb=S.newline_before=S.newline_before||text.indexOf("\n")>=0;S.comments_before.push(token("comment2",text,true));S.regex_allowed=regex_allowed;S.newline_before=nlb;return next_token()});function read_name(){var backslash=false,name="",ch,escaped=false,hex;while((ch=peek())!=null){if(!backslash){if(ch=="\\")escaped=backslash=true,next();else if(is_identifier_char(ch))name+=next();else break}else{if(ch!="u")parse_error("Expecting UnicodeEscapeSequence -- uXXXX");ch=read_escaped_char();if(!is_identifier_char(ch))parse_error("Unicode char: "+ch.charCodeAt(0)+" is not valid in identifier");name+=ch;backslash=false}}if(KEYWORDS(name)&&escaped){hex=name.charCodeAt(0).toString(16).toUpperCase();name="\\u"+"0000".substr(hex.length)+hex+name.slice(1)}return name}var read_regexp=with_eof_error("Unterminated regular expression",function(regexp){var prev_backslash=false,ch,in_class=false;while(ch=next(true))if(prev_backslash){regexp+="\\"+ch;prev_backslash=false}else if(ch=="["){in_class=true;regexp+=ch}else if(ch=="]"&&in_class){in_class=false;regexp+=ch}else if(ch=="/"&&!in_class){break}else if(ch=="\\"){prev_backslash=true}else{regexp+=ch}var mods=read_name();return token("regexp",new RegExp(regexp,mods))});function read_operator(prefix){function grow(op){if(!peek())return op;var bigger=op+peek();if(OPERATORS(bigger)){next();return grow(bigger)}else{return op}}return token("operator",grow(prefix||next()))}function handle_slash(){next();switch(peek()){case"/":next();return skip_line_comment("comment1");case"*":next();return skip_multiline_comment()}return S.regex_allowed?read_regexp(""):read_operator("/")}function handle_dot(){next();return is_digit(peek().charCodeAt(0))?read_num("."):token("punc",".")}function read_word(){var word=read_name();if(prev_was_dot)return token("name",word);return KEYWORDS_ATOM(word)?token("atom",word):!KEYWORDS(word)?token("name",word):OPERATORS(word)?token("operator",word):token("keyword",word)}function with_eof_error(eof_error,cont){return function(x){try{return cont(x)}catch(ex){if(ex===EX_EOF)parse_error(eof_error);else throw ex}}}function next_token(force_regexp){if(force_regexp!=null)return read_regexp(force_regexp);skip_whitespace();start_token();if(html5_comments){if(looking_at("")&&S.newline_before){forward(3);return skip_line_comment("comment4")}}var ch=peek();if(!ch)return token("eof");var code=ch.charCodeAt(0);switch(code){case 34:case 39:return read_string(ch);case 46:return handle_dot();case 47:return handle_slash()}if(is_digit(code))return read_num();if(PUNC_CHARS(ch))return token("punc",next());if(OPERATOR_CHARS(ch))return read_operator();if(code==92||is_identifier_start(code))return read_word();parse_error("Unexpected character '"+ch+"'")}next_token.context=function(nc){if(nc)S=nc;return S};return next_token}var UNARY_PREFIX=makePredicate(["typeof","void","delete","--","++","!","~","-","+"]);var UNARY_POSTFIX=makePredicate(["--","++"]);var ASSIGNMENT=makePredicate(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]);var PRECEDENCE=function(a,ret){for(var i=0;i","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{});var STATEMENTS_WITH_LABELS=array_to_hash(["for","do","while","switch"]);var ATOMIC_START_TOKEN=array_to_hash(["atom","num","string","regexp","name"]);function parse($TEXT,options){options=defaults(options,{strict:false,filename:null,toplevel:null,expression:false,html5_comments:true,bare_returns:false});var S={input:typeof $TEXT=="string"?tokenizer($TEXT,options.filename,options.html5_comments):$TEXT,token:null,prev:null,peeked:null,in_function:0,in_directives:true,in_loop:0,labels:[]};S.token=next();function is(type,value){return is_token(S.token,type,value)}function peek(){return S.peeked||(S.peeked=S.input())}function next(){S.prev=S.token;if(S.peeked){S.token=S.peeked;S.peeked=null}else{S.token=S.input()}S.in_directives=S.in_directives&&(S.token.type=="string"||is("punc",";"));return S.token}function prev(){return S.prev}function croak(msg,line,col,pos){var ctx=S.input.context();js_error(msg,ctx.filename,line!=null?line:ctx.tokline,col!=null?col:ctx.tokcol,pos!=null?pos:ctx.tokpos)}function token_error(token,msg){croak(msg,token.line,token.col)}function unexpected(token){if(token==null)token=S.token;token_error(token,"Unexpected token: "+token.type+" ("+token.value+")")}function expect_token(type,val){if(is(type,val)){return next()}token_error(S.token,"Unexpected token "+S.token.type+" «"+S.token.value+"»"+", expected "+type+" «"+val+"»")}function expect(punc){return expect_token("punc",punc)}function can_insert_semicolon(){return!options.strict&&(S.token.nlb||is("eof")||is("punc","}"))}function semicolon(){if(is("punc",";"))next();else if(!can_insert_semicolon())unexpected()}function parenthesised(){expect("(");var exp=expression(true);expect(")");return exp}function embed_tokens(parser){return function(){var start=S.token;var expr=parser();var end=prev();expr.start=start;expr.end=end;return expr}}function handle_regexp(){if(is("operator","/")||is("operator","/=")){S.peeked=null;S.token=S.input(S.token.value.substr(1))}}var statement=embed_tokens(function(){var tmp;handle_regexp();switch(S.token.type){case"string":var dir=S.in_directives,stat=simple_statement();if(dir&&stat.body instanceof AST_String&&!is("punc",",")){return new AST_Directive({start:stat.body.start,end:stat.body.end,quote:stat.body.quote,value:stat.body.value})}return stat;case"num":case"regexp":case"operator":case"atom":return simple_statement();case"name":return is_token(peek(),"punc",":")?labeled_statement():simple_statement();case"punc":switch(S.token.value){case"{":return new AST_BlockStatement({start:S.token,body:block_(),end:prev()});case"[":case"(":return simple_statement();case";":next();return new AST_EmptyStatement;default:unexpected()}case"keyword":switch(tmp=S.token.value,next(),tmp){case"break":return break_cont(AST_Break);case"continue":return break_cont(AST_Continue);case"debugger":semicolon();return new AST_Debugger;case"do":return new AST_Do({body:in_loop(statement),condition:(expect_token("keyword","while"),tmp=parenthesised(),semicolon(),tmp)});case"while":return new AST_While({condition:parenthesised(),body:in_loop(statement)});case"for":return for_();case"function":return function_(AST_Defun);case"if":return if_();case"return":if(S.in_function==0&&!options.bare_returns)croak("'return' outside of function");return new AST_Return({value:is("punc",";")?(next(),null):can_insert_semicolon()?null:(tmp=expression(true),semicolon(),tmp)});case"switch":return new AST_Switch({expression:parenthesised(),body:in_loop(switch_body_)});case"throw":if(S.token.nlb)croak("Illegal newline after 'throw'");return new AST_Throw({value:(tmp=expression(true),semicolon(),tmp)});case"try":return try_();case"var":return tmp=var_(),semicolon(),tmp;case"const":return tmp=const_(),semicolon(),tmp;case"with":return new AST_With({expression:parenthesised(),body:statement()});default:unexpected()}}});function labeled_statement(){var label=as_symbol(AST_Label);if(find_if(function(l){return l.name==label.name},S.labels)){croak("Label "+label.name+" defined twice")}expect(":");S.labels.push(label);var stat=statement();S.labels.pop();if(!(stat instanceof AST_IterationStatement)){label.references.forEach(function(ref){if(ref instanceof AST_Continue){ref=ref.label.start;croak("Continue label `"+label.name+"` refers to non-IterationStatement.",ref.line,ref.col,ref.pos)}})}return new AST_LabeledStatement({body:stat,label:label})}function simple_statement(tmp){return new AST_SimpleStatement({body:(tmp=expression(true),semicolon(),tmp)})}function break_cont(type){var label=null,ldef;if(!can_insert_semicolon()){label=as_symbol(AST_LabelRef,true)}if(label!=null){ldef=find_if(function(l){return l.name==label.name},S.labels);if(!ldef)croak("Undefined label "+label.name);label.thedef=ldef}else if(S.in_loop==0)croak(type.TYPE+" not inside a loop or switch");semicolon();var stat=new type({label:label});if(ldef)ldef.references.push(stat);return stat}function for_(){expect("(");var init=null;if(!is("punc",";")){init=is("keyword","var")?(next(),var_(true)):expression(true,true);if(is("operator","in")){if(init instanceof AST_Var&&init.definitions.length>1)croak("Only one variable declaration allowed in for..in loop");next();return for_in(init)}}return regular_for(init)}function regular_for(init){expect(";");var test=is("punc",";")?null:expression(true);expect(";");var step=is("punc",")")?null:expression(true);expect(")");return new AST_For({init:init,condition:test,step:step,body:in_loop(statement)})}function for_in(init){var lhs=init instanceof AST_Var?init.definitions[0].name:null;var obj=expression(true);expect(")");return new AST_ForIn({init:init,name:lhs,object:obj,body:in_loop(statement)})}var function_=function(ctor){var in_statement=ctor===AST_Defun;var name=is("name")?as_symbol(in_statement?AST_SymbolDefun:AST_SymbolLambda):null;if(in_statement&&!name)unexpected();expect("(");return new ctor({name:name,argnames:function(first,a){while(!is("punc",")")){if(first)first=false;else expect(",");a.push(as_symbol(AST_SymbolFunarg))}next();return a}(true,[]),body:function(loop,labels){++S.in_function;S.in_directives=true;S.in_loop=0;S.labels=[];var a=block_();--S.in_function;S.in_loop=loop;S.labels=labels;return a}(S.in_loop,S.labels)})};function if_(){var cond=parenthesised(),body=statement(),belse=null;if(is("keyword","else")){next();belse=statement()}return new AST_If({condition:cond,body:body,alternative:belse})}function block_(){expect("{");var a=[];while(!is("punc","}")){if(is("eof"))unexpected();a.push(statement())}next();return a}function switch_body_(){expect("{");var a=[],cur=null,branch=null,tmp;while(!is("punc","}")){if(is("eof"))unexpected();if(is("keyword","case")){if(branch)branch.end=prev();cur=[];branch=new AST_Case({start:(tmp=S.token,next(),tmp),expression:expression(true),body:cur});a.push(branch);expect(":")}else if(is("keyword","default")){if(branch)branch.end=prev();cur=[];branch=new AST_Default({start:(tmp=S.token,next(),expect(":"),tmp),body:cur});a.push(branch)}else{if(!cur)unexpected();cur.push(statement())}}if(branch)branch.end=prev();next();return a}function try_(){var body=block_(),bcatch=null,bfinally=null;if(is("keyword","catch")){var start=S.token;next();expect("(");var name=as_symbol(AST_SymbolCatch);expect(")");bcatch=new AST_Catch({start:start,argname:name,body:block_(),end:prev()})}if(is("keyword","finally")){var start=S.token;next();bfinally=new AST_Finally({start:start,body:block_(),end:prev()})}if(!bcatch&&!bfinally)croak("Missing catch/finally blocks");return new AST_Try({body:body,bcatch:bcatch,bfinally:bfinally})}function vardefs(no_in,in_const){var a=[];for(;;){a.push(new AST_VarDef({start:S.token,name:as_symbol(in_const?AST_SymbolConst:AST_SymbolVar),value:is("operator","=")?(next(),expression(false,no_in)):null,end:prev()}));if(!is("punc",","))break;next()}return a}var var_=function(no_in){return new AST_Var({start:prev(),definitions:vardefs(no_in,false),end:prev()})};var const_=function(){return new AST_Const({start:prev(),definitions:vardefs(false,true),end:prev()})};var new_=function(){var start=S.token;expect_token("operator","new");var newexp=expr_atom(false),args;if(is("punc","(")){next();args=expr_list(")")}else{args=[]}return subscripts(new AST_New({start:start,expression:newexp,args:args,end:prev()}),true)};function as_atom_node(){var tok=S.token,ret;switch(tok.type){case"name":case"keyword":ret=_make_symbol(AST_SymbolRef);break;case"num":ret=new AST_Number({start:tok,end:tok,value:tok.value});break;case"string":ret=new AST_String({start:tok,end:tok,value:tok.value,quote:tok.quote});break;case"regexp":ret=new AST_RegExp({start:tok,end:tok,value:tok.value});break;case"atom":switch(tok.value){case"false":ret=new AST_False({start:tok,end:tok});break;case"true":ret=new AST_True({start:tok,end:tok});break;case"null":ret=new AST_Null({start:tok,end:tok});break}break}next();return ret}var expr_atom=function(allow_calls){if(is("operator","new")){return new_()}var start=S.token;if(is("punc")){switch(start.value){case"(":next();var ex=expression(true);ex.start=start;ex.end=S.token;expect(")");return subscripts(ex,allow_calls);case"[":return subscripts(array_(),allow_calls);case"{":return subscripts(object_(),allow_calls)}unexpected()}if(is("keyword","function")){next();var func=function_(AST_Function);func.start=start;func.end=prev();return subscripts(func,allow_calls)}if(ATOMIC_START_TOKEN[S.token.type]){return subscripts(as_atom_node(),allow_calls)}unexpected()};function expr_list(closing,allow_trailing_comma,allow_empty){var first=true,a=[];while(!is("punc",closing)){if(first)first=false;else expect(",");if(allow_trailing_comma&&is("punc",closing))break;if(is("punc",",")&&allow_empty){a.push(new AST_Hole({start:S.token,end:S.token}))}else{a.push(expression(false))}}next();return a}var array_=embed_tokens(function(){expect("[");return new AST_Array({elements:expr_list("]",!options.strict,true)})});var object_=embed_tokens(function(){expect("{");var first=true,a=[];while(!is("punc","}")){if(first)first=false;else expect(",");if(!options.strict&&is("punc","}"))break;var start=S.token;var type=start.type;var name=as_property_name();if(type=="name"&&!is("punc",":")){if(name=="get"){a.push(new AST_ObjectGetter({start:start,key:as_atom_node(),value:function_(AST_Accessor),end:prev()}));continue}if(name=="set"){a.push(new AST_ObjectSetter({start:start,key:as_atom_node(),value:function_(AST_Accessor),end:prev()}));continue}}expect(":");a.push(new AST_ObjectKeyVal({start:start,quote:start.quote,key:name,value:expression(false),end:prev()}))}next();return new AST_Object({properties:a})});function as_property_name(){var tmp=S.token;next();switch(tmp.type){case"num":case"string":case"name":case"operator":case"keyword":case"atom":return tmp.value;default:unexpected()}}function as_name(){var tmp=S.token;next();switch(tmp.type){case"name":case"operator":case"keyword":case"atom":return tmp.value;default:unexpected()}}function _make_symbol(type){var name=S.token.value;return new(name=="this"?AST_This:type)({name:String(name),start:S.token,end:S.token})}function as_symbol(type,noerror){if(!is("name")){if(!noerror)croak("Name expected");return null}var sym=_make_symbol(type);next();return sym}var subscripts=function(expr,allow_calls){var start=expr.start;if(is("punc",".")){next();return subscripts(new AST_Dot({start:start,expression:expr,property:as_name(),end:prev()}),allow_calls)}if(is("punc","[")){next();var prop=expression(true);expect("]");return subscripts(new AST_Sub({start:start,expression:expr,property:prop,end:prev()}),allow_calls)}if(allow_calls&&is("punc","(")){next();return subscripts(new AST_Call({start:start,expression:expr,args:expr_list(")"),end:prev()}),true)}return expr};var maybe_unary=function(allow_calls){var start=S.token;if(is("operator")&&UNARY_PREFIX(start.value)){next();handle_regexp();var ex=make_unary(AST_UnaryPrefix,start.value,maybe_unary(allow_calls));ex.start=start;ex.end=prev();return ex}var val=expr_atom(allow_calls);while(is("operator")&&UNARY_POSTFIX(S.token.value)&&!S.token.nlb){val=make_unary(AST_UnaryPostfix,S.token.value,val);val.start=start;val.end=S.token;next()}return val};function make_unary(ctor,op,expr){if((op=="++"||op=="--")&&!is_assignable(expr))croak("Invalid use of "+op+" operator");return new ctor({operator:op,expression:expr})}var expr_op=function(left,min_prec,no_in){var op=is("operator")?S.token.value:null;if(op=="in"&&no_in)op=null;var prec=op!=null?PRECEDENCE[op]:null;if(prec!=null&&prec>min_prec){next();var right=expr_op(maybe_unary(true),prec,no_in);return expr_op(new AST_Binary({start:left.start,left:left,operator:op,right:right,end:right.end}),min_prec,no_in)}return left};function expr_ops(no_in){return expr_op(maybe_unary(true),0,no_in)}var maybe_conditional=function(no_in){var start=S.token;var expr=expr_ops(no_in);if(is("operator","?")){next();var yes=expression(false);expect(":");return new AST_Conditional({start:start,condition:expr,consequent:yes,alternative:expression(false,no_in),end:prev()})}return expr};function is_assignable(expr){if(!options.strict)return true;if(expr instanceof AST_This)return false;return expr instanceof AST_PropAccess||expr instanceof AST_Symbol}var maybe_assign=function(no_in){var start=S.token;var left=maybe_conditional(no_in),val=S.token.value;if(is("operator")&&ASSIGNMENT(val)){if(is_assignable(left)){next();return new AST_Assign({start:start,left:left,operator:val,right:maybe_assign(no_in),end:prev()})}croak("Invalid assignment")}return left};var expression=function(commas,no_in){var start=S.token;var expr=maybe_assign(no_in);if(commas&&is("punc",",")){next();return new AST_Seq({start:start,car:expr,cdr:expression(true,no_in),end:peek()})}return expr};function in_loop(cont){++S.in_loop;var ret=cont();--S.in_loop;return ret}if(options.expression){return expression(true)}return function(){var start=S.token;var body=[];while(!is("eof"))body.push(statement());var end=prev();var toplevel=options.toplevel;if(toplevel){toplevel.body=toplevel.body.concat(body);toplevel.end=end}else{toplevel=new AST_Toplevel({start:start,body:body,end:end})}return toplevel}()}"use strict";function TreeTransformer(before,after){TreeWalker.call(this);this.before=before;this.after=after}TreeTransformer.prototype=new TreeWalker;(function(undefined){function _(node,descend){node.DEFMETHOD("transform",function(tw,in_list){var x,y;tw.push(this);if(tw.before)x=tw.before(this,descend,in_list);if(x===undefined){if(!tw.after){x=this;descend(x,tw)}else{tw.stack[tw.stack.length-1]=x=this.clone();descend(x,tw);y=tw.after(x,in_list);if(y!==undefined)x=y}}tw.pop();return x})}function do_list(list,tw){return MAP(list,function(node){return node.transform(tw,true)})}_(AST_Node,noop);_(AST_LabeledStatement,function(self,tw){self.label=self.label.transform(tw);self.body=self.body.transform(tw)});_(AST_SimpleStatement,function(self,tw){self.body=self.body.transform(tw)});_(AST_Block,function(self,tw){self.body=do_list(self.body,tw)});_(AST_DWLoop,function(self,tw){self.condition=self.condition.transform(tw);self.body=self.body.transform(tw)});_(AST_For,function(self,tw){if(self.init)self.init=self.init.transform(tw);if(self.condition)self.condition=self.condition.transform(tw);if(self.step)self.step=self.step.transform(tw);self.body=self.body.transform(tw)});_(AST_ForIn,function(self,tw){self.init=self.init.transform(tw);self.object=self.object.transform(tw);self.body=self.body.transform(tw)});_(AST_With,function(self,tw){self.expression=self.expression.transform(tw);self.body=self.body.transform(tw)});_(AST_Exit,function(self,tw){if(self.value)self.value=self.value.transform(tw)});_(AST_LoopControl,function(self,tw){if(self.label)self.label=self.label.transform(tw)});_(AST_If,function(self,tw){self.condition=self.condition.transform(tw);self.body=self.body.transform(tw);if(self.alternative)self.alternative=self.alternative.transform(tw)});_(AST_Switch,function(self,tw){self.expression=self.expression.transform(tw);self.body=do_list(self.body,tw)});_(AST_Case,function(self,tw){self.expression=self.expression.transform(tw);self.body=do_list(self.body,tw)});_(AST_Try,function(self,tw){self.body=do_list(self.body,tw);if(self.bcatch)self.bcatch=self.bcatch.transform(tw);if(self.bfinally)self.bfinally=self.bfinally.transform(tw)});_(AST_Catch,function(self,tw){self.argname=self.argname.transform(tw);self.body=do_list(self.body,tw)});_(AST_Definitions,function(self,tw){self.definitions=do_list(self.definitions,tw)});_(AST_VarDef,function(self,tw){self.name=self.name.transform(tw);if(self.value)self.value=self.value.transform(tw)});_(AST_Lambda,function(self,tw){if(self.name)self.name=self.name.transform(tw);self.argnames=do_list(self.argnames,tw);self.body=do_list(self.body,tw)});_(AST_Call,function(self,tw){self.expression=self.expression.transform(tw);self.args=do_list(self.args,tw)});_(AST_Seq,function(self,tw){self.car=self.car.transform(tw);self.cdr=self.cdr.transform(tw)});_(AST_Dot,function(self,tw){self.expression=self.expression.transform(tw)});_(AST_Sub,function(self,tw){self.expression=self.expression.transform(tw);self.property=self.property.transform(tw)});_(AST_Unary,function(self,tw){self.expression=self.expression.transform(tw)});_(AST_Binary,function(self,tw){self.left=self.left.transform(tw);self.right=self.right.transform(tw)});_(AST_Conditional,function(self,tw){self.condition=self.condition.transform(tw);self.consequent=self.consequent.transform(tw);self.alternative=self.alternative.transform(tw)});_(AST_Array,function(self,tw){self.elements=do_list(self.elements,tw)});_(AST_Object,function(self,tw){self.properties=do_list(self.properties,tw)});_(AST_ObjectProperty,function(self,tw){self.value=self.value.transform(tw)})})();"use strict";function SymbolDef(scope,index,orig){this.name=orig.name;this.orig=[orig];this.scope=scope;this.references=[];this.global=false;this.mangled_name=null;this.undeclared=false;this.constant=false;this.index=index}SymbolDef.prototype={unmangleable:function(options){if(!options)options={};return this.global&&!options.toplevel||this.undeclared||!options.eval&&(this.scope.uses_eval||this.scope.uses_with)||options.keep_fnames&&(this.orig[0]instanceof AST_SymbolLambda||this.orig[0]instanceof AST_SymbolDefun)},mangle:function(options){var cache=options.cache&&options.cache.props;if(this.global&&cache&&cache.has(this.name)){this.mangled_name=cache.get(this.name)}else if(!this.mangled_name&&!this.unmangleable(options)){var s=this.scope;if(!options.screw_ie8&&this.orig[0]instanceof AST_SymbolLambda)s=s.parent_scope;this.mangled_name=s.next_mangled(options,this);if(this.global&&cache){cache.set(this.name,this.mangled_name)}}}};AST_Toplevel.DEFMETHOD("figure_out_scope",function(options){options=defaults(options,{screw_ie8:false, cache:null});var self=this;var scope=self.parent_scope=null;var defun=null;var nesting=0;var tw=new TreeWalker(function(node,descend){if(options.screw_ie8&&node instanceof AST_Catch){var save_scope=scope;scope=new AST_Scope(node);scope.init_scope_vars(nesting);scope.parent_scope=save_scope;descend();scope=save_scope;return true}if(node instanceof AST_Scope){node.init_scope_vars(nesting);var save_scope=node.parent_scope=scope;var save_defun=defun;defun=scope=node;++nesting;descend();--nesting;scope=save_scope;defun=save_defun;return true}if(node instanceof AST_Directive){node.scope=scope;push_uniq(scope.directives,node.value);return true}if(node instanceof AST_With){for(var s=scope;s;s=s.parent_scope)s.uses_with=true;return}if(node instanceof AST_Symbol){node.scope=scope}if(node instanceof AST_SymbolLambda){defun.def_function(node)}else if(node instanceof AST_SymbolDefun){(node.scope=defun.parent_scope).def_function(node)}else if(node instanceof AST_SymbolVar||node instanceof AST_SymbolConst){var def=defun.def_variable(node);def.constant=node instanceof AST_SymbolConst;def.init=tw.parent().value}else if(node instanceof AST_SymbolCatch){(options.screw_ie8?scope:defun).def_variable(node)}});self.walk(tw);var func=null;var globals=self.globals=new Dictionary;var tw=new TreeWalker(function(node,descend){if(node instanceof AST_Lambda){var prev_func=func;func=node;descend();func=prev_func;return true}if(node instanceof AST_SymbolRef){var name=node.name;var sym=node.scope.find_variable(name);if(!sym){var g;if(globals.has(name)){g=globals.get(name)}else{g=new SymbolDef(self,globals.size(),node);g.undeclared=true;g.global=true;globals.set(name,g)}node.thedef=g;if(name=="eval"&&tw.parent()instanceof AST_Call){for(var s=node.scope;s&&!s.uses_eval;s=s.parent_scope)s.uses_eval=true}if(func&&name=="arguments"){func.uses_arguments=true}}else{node.thedef=sym}node.reference();return true}});self.walk(tw);if(options.cache){this.cname=options.cache.cname}});AST_Scope.DEFMETHOD("init_scope_vars",function(nesting){this.directives=[];this.variables=new Dictionary;this.functions=new Dictionary;this.uses_with=false;this.uses_eval=false;this.parent_scope=null;this.enclosed=[];this.cname=-1;this.nesting=nesting});AST_Scope.DEFMETHOD("strict",function(){return this.has_directive("use strict")});AST_Lambda.DEFMETHOD("init_scope_vars",function(){AST_Scope.prototype.init_scope_vars.apply(this,arguments);this.uses_arguments=false});AST_SymbolRef.DEFMETHOD("reference",function(){var def=this.definition();def.references.push(this);var s=this.scope;while(s){push_uniq(s.enclosed,def);if(s===def.scope)break;s=s.parent_scope}this.frame=this.scope.nesting-def.scope.nesting});AST_Scope.DEFMETHOD("find_variable",function(name){if(name instanceof AST_Symbol)name=name.name;return this.variables.get(name)||this.parent_scope&&this.parent_scope.find_variable(name)});AST_Scope.DEFMETHOD("has_directive",function(value){return this.parent_scope&&this.parent_scope.has_directive(value)||(this.directives.indexOf(value)>=0?this:null)});AST_Scope.DEFMETHOD("def_function",function(symbol){this.functions.set(symbol.name,this.def_variable(symbol))});AST_Scope.DEFMETHOD("def_variable",function(symbol){var def;if(!this.variables.has(symbol.name)){def=new SymbolDef(this,this.variables.size(),symbol);this.variables.set(symbol.name,def);def.global=!this.parent_scope}else{def=this.variables.get(symbol.name);def.orig.push(symbol)}return symbol.thedef=def});AST_Scope.DEFMETHOD("next_mangled",function(options){var ext=this.enclosed;out:while(true){var m=base54(++this.cname);if(!is_identifier(m))continue;if(options.except.indexOf(m)>=0)continue;for(var i=ext.length;--i>=0;){var sym=ext[i];var name=sym.mangled_name||sym.unmangleable(options)&&sym.name;if(m==name)continue out}return m}});AST_Function.DEFMETHOD("next_mangled",function(options,def){var tricky_def=def.orig[0]instanceof AST_SymbolFunarg&&this.name&&this.name.definition();while(true){var name=AST_Lambda.prototype.next_mangled.call(this,options,def);if(!(tricky_def&&tricky_def.mangled_name==name))return name}});AST_Scope.DEFMETHOD("references",function(sym){if(sym instanceof AST_Symbol)sym=sym.definition();return this.enclosed.indexOf(sym)<0?null:sym});AST_Symbol.DEFMETHOD("unmangleable",function(options){return this.definition().unmangleable(options)});AST_SymbolAccessor.DEFMETHOD("unmangleable",function(){return true});AST_Label.DEFMETHOD("unmangleable",function(){return false});AST_Symbol.DEFMETHOD("unreferenced",function(){return this.definition().references.length==0&&!(this.scope.uses_eval||this.scope.uses_with)});AST_Symbol.DEFMETHOD("undeclared",function(){return this.definition().undeclared});AST_LabelRef.DEFMETHOD("undeclared",function(){return false});AST_Label.DEFMETHOD("undeclared",function(){return false});AST_Symbol.DEFMETHOD("definition",function(){return this.thedef});AST_Symbol.DEFMETHOD("global",function(){return this.definition().global});AST_Toplevel.DEFMETHOD("_default_mangler_options",function(options){return defaults(options,{except:[],eval:false,sort:false,toplevel:false,screw_ie8:false,keep_fnames:false})});AST_Toplevel.DEFMETHOD("mangle_names",function(options){options=this._default_mangler_options(options);var lname=-1;var to_mangle=[];if(options.cache){this.globals.each(function(symbol){if(options.except.indexOf(symbol.name)<0){to_mangle.push(symbol)}})}var tw=new TreeWalker(function(node,descend){if(node instanceof AST_LabeledStatement){var save_nesting=lname;descend();lname=save_nesting;return true}if(node instanceof AST_Scope){var p=tw.parent(),a=[];node.variables.each(function(symbol){if(options.except.indexOf(symbol.name)<0){a.push(symbol)}});if(options.sort)a.sort(function(a,b){return b.references.length-a.references.length});to_mangle.push.apply(to_mangle,a);return}if(node instanceof AST_Label){var name;do name=base54(++lname);while(!is_identifier(name));node.mangled_name=name;return true}if(options.screw_ie8&&node instanceof AST_SymbolCatch){to_mangle.push(node.definition());return}});this.walk(tw);to_mangle.forEach(function(def){def.mangle(options)});if(options.cache){options.cache.cname=this.cname}});AST_Toplevel.DEFMETHOD("compute_char_frequency",function(options){options=this._default_mangler_options(options);var tw=new TreeWalker(function(node){if(node instanceof AST_Constant)base54.consider(node.print_to_string());else if(node instanceof AST_Return)base54.consider("return");else if(node instanceof AST_Throw)base54.consider("throw");else if(node instanceof AST_Continue)base54.consider("continue");else if(node instanceof AST_Break)base54.consider("break");else if(node instanceof AST_Debugger)base54.consider("debugger");else if(node instanceof AST_Directive)base54.consider(node.value);else if(node instanceof AST_While)base54.consider("while");else if(node instanceof AST_Do)base54.consider("do while");else if(node instanceof AST_If){base54.consider("if");if(node.alternative)base54.consider("else")}else if(node instanceof AST_Var)base54.consider("var");else if(node instanceof AST_Const)base54.consider("const");else if(node instanceof AST_Lambda)base54.consider("function");else if(node instanceof AST_For)base54.consider("for");else if(node instanceof AST_ForIn)base54.consider("for in");else if(node instanceof AST_Switch)base54.consider("switch");else if(node instanceof AST_Case)base54.consider("case");else if(node instanceof AST_Default)base54.consider("default");else if(node instanceof AST_With)base54.consider("with");else if(node instanceof AST_ObjectSetter)base54.consider("set"+node.key);else if(node instanceof AST_ObjectGetter)base54.consider("get"+node.key);else if(node instanceof AST_ObjectKeyVal)base54.consider(node.key);else if(node instanceof AST_New)base54.consider("new");else if(node instanceof AST_This)base54.consider("this");else if(node instanceof AST_Try)base54.consider("try");else if(node instanceof AST_Catch)base54.consider("catch");else if(node instanceof AST_Finally)base54.consider("finally");else if(node instanceof AST_Symbol&&node.unmangleable(options))base54.consider(node.name);else if(node instanceof AST_Unary||node instanceof AST_Binary)base54.consider(node.operator);else if(node instanceof AST_Dot)base54.consider(node.property)});this.walk(tw);base54.sort()});var base54=function(){var string="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";var chars,frequency;function reset(){frequency=Object.create(null);chars=string.split("").map(function(ch){return ch.charCodeAt(0)});chars.forEach(function(ch){frequency[ch]=0})}base54.consider=function(str){for(var i=str.length;--i>=0;){var code=str.charCodeAt(i);if(code in frequency)++frequency[code]}};base54.sort=function(){chars=mergeSort(chars,function(a,b){if(is_digit(a)&&!is_digit(b))return 1;if(is_digit(b)&&!is_digit(a))return-1;return frequency[b]-frequency[a]})};base54.reset=reset;reset();base54.get=function(){return chars};base54.freq=function(){return frequency};function base54(num){var ret="",base=54;num++;do{num--;ret+=String.fromCharCode(chars[num%base]);num=Math.floor(num/base);base=64}while(num>0);return ret}return base54}();AST_Toplevel.DEFMETHOD("scope_warnings",function(options){options=defaults(options,{undeclared:false,unreferenced:true,assign_to_global:true,func_arguments:true,nested_defuns:true,eval:true});var tw=new TreeWalker(function(node){if(options.undeclared&&node instanceof AST_SymbolRef&&node.undeclared()){AST_Node.warn("Undeclared symbol: {name} [{file}:{line},{col}]",{name:node.name,file:node.start.file,line:node.start.line,col:node.start.col})}if(options.assign_to_global){var sym=null;if(node instanceof AST_Assign&&node.left instanceof AST_SymbolRef)sym=node.left;else if(node instanceof AST_ForIn&&node.init instanceof AST_SymbolRef)sym=node.init;if(sym&&(sym.undeclared()||sym.global()&&sym.scope!==sym.definition().scope)){AST_Node.warn("{msg}: {name} [{file}:{line},{col}]",{msg:sym.undeclared()?"Accidental global?":"Assignment to global",name:sym.name,file:sym.start.file,line:sym.start.line,col:sym.start.col})}}if(options.eval&&node instanceof AST_SymbolRef&&node.undeclared()&&node.name=="eval"){AST_Node.warn("Eval is used [{file}:{line},{col}]",node.start)}if(options.unreferenced&&(node instanceof AST_SymbolDeclaration||node instanceof AST_Label)&&!(node instanceof AST_SymbolCatch)&&node.unreferenced()){AST_Node.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]",{type:node instanceof AST_Label?"Label":"Symbol",name:node.name,file:node.start.file,line:node.start.line,col:node.start.col})}if(options.func_arguments&&node instanceof AST_Lambda&&node.uses_arguments){AST_Node.warn("arguments used in function {name} [{file}:{line},{col}]",{name:node.name?node.name.name:"anonymous",file:node.start.file,line:node.start.line,col:node.start.col})}if(options.nested_defuns&&node instanceof AST_Defun&&!(tw.parent()instanceof AST_Scope)){AST_Node.warn('Function {name} declared in nested statement "{type}" [{file}:{line},{col}]',{name:node.name.name,type:tw.parent().TYPE,file:node.start.file,line:node.start.line,col:node.start.col})}});this.walk(tw)});"use strict";function OutputStream(options){options=defaults(options,{indent_start:0,indent_level:4,quote_keys:false,space_colon:true,ascii_only:false,unescape_regexps:false,inline_script:false,width:80,max_line_len:32e3,beautify:false,source_map:null,bracketize:false,semicolons:true,comments:false,preserve_line:false,screw_ie8:false,preamble:null,quote_style:0},true);var indentation=0;var current_col=0;var current_line=1;var current_pos=0;var OUTPUT="";function to_ascii(str,identifier){return str.replace(/[\u0080-\uffff]/g,function(ch){var code=ch.charCodeAt(0).toString(16);if(code.length<=2&&!identifier){while(code.length<2)code="0"+code;return"\\x"+code}else{while(code.length<4)code="0"+code;return"\\u"+code}})}function make_string(str,quote){var dq=0,sq=0;str=str.replace(/[\\\b\f\n\r\t\x22\x27\u2028\u2029\0\ufeff]/g,function(s){switch(s){case"\\":return"\\\\";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case'"':++dq;return'"';case"'":++sq;return"'";case"\x00":return"\\x00";case"\ufeff":return"\\ufeff"}return s});function quote_single(){return"'"+str.replace(/\x27/g,"\\'")+"'"}function quote_double(){return'"'+str.replace(/\x22/g,'\\"')+'"'}if(options.ascii_only)str=to_ascii(str);switch(options.quote_style){case 1:return quote_single();case 2:return quote_double();case 3:return quote=="'"?quote_single():quote_double();default:return dq>sq?quote_single():quote_double()}}function encode_string(str,quote){var ret=make_string(str,quote);if(options.inline_script)ret=ret.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1");return ret}function make_name(name){name=name.toString();if(options.ascii_only)name=to_ascii(name,true);return name}function make_indent(back){return repeat_string(" ",options.indent_start+indentation-back*options.indent_level)}var might_need_space=false;var might_need_semicolon=false;var last=null;function last_char(){return last.charAt(last.length-1)}function maybe_newline(){if(options.max_line_len&¤t_col>options.max_line_len)print("\n")}var requireSemicolonChars=makePredicate("( [ + * / - , .");function print(str){str=String(str);var ch=str.charAt(0);if(might_need_semicolon){if((!ch||";}".indexOf(ch)<0)&&!/[;]$/.test(last)){if(options.semicolons||requireSemicolonChars(ch)){OUTPUT+=";";current_col++;current_pos++}else{OUTPUT+="\n";current_pos++;current_line++;current_col=0}if(!options.beautify)might_need_space=false}might_need_semicolon=false}if(!options.beautify&&options.preserve_line&&stack[stack.length-1]){var target_line=stack[stack.length-1].start.line;while(current_line=options.width},newline:newline,print:print,space:space,comma:comma,colon:colon,last:function(){return last},semicolon:semicolon,force_semicolon:force_semicolon,to_ascii:to_ascii,print_name:function(name){print(make_name(name))},print_string:function(str,quote){print(encode_string(str,quote))},next_indent:next_indent,with_indent:with_indent,with_block:with_block,with_parens:with_parens,with_square:with_square,add_mapping:add_mapping,option:function(opt){return options[opt]},line:function(){return current_line},col:function(){return current_col},pos:function(){return current_pos},push_node:function(node){stack.push(node)},pop_node:function(){return stack.pop()},stack:function(){return stack},parent:function(n){return stack[stack.length-2-(n||0)]}}}(function(){function DEFPRINT(nodetype,generator){nodetype.DEFMETHOD("_codegen",generator)}AST_Node.DEFMETHOD("print",function(stream,force_parens){var self=this,generator=self._codegen;function doit(){self.add_comments(stream);self.add_source_map(stream);generator(self,stream)}stream.push_node(self);if(force_parens||self.needs_parens(stream)){stream.with_parens(doit)}else{doit()}stream.pop_node()});AST_Node.DEFMETHOD("print_to_string",function(options){var s=OutputStream(options);this.print(s);return s.get()});AST_Node.DEFMETHOD("add_comments",function(output){var c=output.option("comments"),self=this;if(c){var start=self.start;if(start&&!start._comments_dumped){start._comments_dumped=true;var comments=start.comments_before||[];if(self instanceof AST_Exit&&self.value){self.value.walk(new TreeWalker(function(node){if(node.start&&node.start.comments_before){comments=comments.concat(node.start.comments_before);node.start.comments_before=[]}if(node instanceof AST_Function||node instanceof AST_Array||node instanceof AST_Object){return true}}))}if(c.test){comments=comments.filter(function(comment){return c.test(comment.value)})}else if(typeof c=="function"){comments=comments.filter(function(comment){return c(self,comment)})}if(!output.option("beautify")&&comments.length>0&&/comment[134]/.test(comments[0].type)&&output.col()!==0&&comments[0].nlb){output.print("\n")}comments.forEach(function(c){if(/comment[134]/.test(c.type)){output.print("//"+c.value+"\n");output.indent()}else if(c.type=="comment2"){output.print("/*"+c.value+"*/");if(start.nlb){output.print("\n");output.indent()}else{output.space()}}})}}});function PARENS(nodetype,func){if(Array.isArray(nodetype)){nodetype.forEach(function(nodetype){PARENS(nodetype,func)})}else{nodetype.DEFMETHOD("needs_parens",func)}}PARENS(AST_Node,function(){return false});PARENS(AST_Function,function(output){return first_in_statement(output)});PARENS(AST_Object,function(output){return first_in_statement(output)});PARENS([AST_Unary,AST_Undefined],function(output){var p=output.parent();return p instanceof AST_PropAccess&&p.expression===this});PARENS(AST_Seq,function(output){var p=output.parent();return p instanceof AST_Call||p instanceof AST_Unary||p instanceof AST_Binary||p instanceof AST_VarDef||p instanceof AST_PropAccess||p instanceof AST_Array||p instanceof AST_ObjectProperty||p instanceof AST_Conditional});PARENS(AST_Binary,function(output){var p=output.parent();if(p instanceof AST_Call&&p.expression===this)return true;if(p instanceof AST_Unary)return true;if(p instanceof AST_PropAccess&&p.expression===this)return true;if(p instanceof AST_Binary){var po=p.operator,pp=PRECEDENCE[po];var so=this.operator,sp=PRECEDENCE[so];if(pp>sp||pp==sp&&this===p.right){return true}}});PARENS(AST_PropAccess,function(output){var p=output.parent();if(p instanceof AST_New&&p.expression===this){try{this.walk(new TreeWalker(function(node){if(node instanceof AST_Call)throw p}))}catch(ex){if(ex!==p)throw ex;return true}}});PARENS(AST_Call,function(output){var p=output.parent(),p1;if(p instanceof AST_New&&p.expression===this)return true;return this.expression instanceof AST_Function&&p instanceof AST_PropAccess&&p.expression===this&&(p1=output.parent(1))instanceof AST_Assign&&p1.left===p});PARENS(AST_New,function(output){var p=output.parent();if(no_constructor_parens(this,output)&&(p instanceof AST_PropAccess||p instanceof AST_Call&&p.expression===this))return true});PARENS(AST_Number,function(output){var p=output.parent();if(this.getValue()<0&&p instanceof AST_PropAccess&&p.expression===this)return true});PARENS([AST_Assign,AST_Conditional],function(output){var p=output.parent();if(p instanceof AST_Unary)return true;if(p instanceof AST_Binary&&!(p instanceof AST_Assign))return true;if(p instanceof AST_Call&&p.expression===this)return true;if(p instanceof AST_Conditional&&p.condition===this)return true;if(p instanceof AST_PropAccess&&p.expression===this)return true});DEFPRINT(AST_Directive,function(self,output){output.print_string(self.value,self.quote);output.semicolon()});DEFPRINT(AST_Debugger,function(self,output){output.print("debugger");output.semicolon()});function display_body(body,is_toplevel,output){var last=body.length-1;body.forEach(function(stmt,i){if(!(stmt instanceof AST_EmptyStatement)){output.indent();stmt.print(output);if(!(i==last&&is_toplevel)){output.newline();if(is_toplevel)output.newline()}}})}AST_StatementWithBody.DEFMETHOD("_do_print_body",function(output){force_statement(this.body,output)});DEFPRINT(AST_Statement,function(self,output){self.body.print(output);output.semicolon()});DEFPRINT(AST_Toplevel,function(self,output){display_body(self.body,true,output);output.print("")});DEFPRINT(AST_LabeledStatement,function(self,output){self.label.print(output);output.colon();self.body.print(output)});DEFPRINT(AST_SimpleStatement,function(self,output){self.body.print(output);output.semicolon()});function print_bracketed(body,output){if(body.length>0)output.with_block(function(){display_body(body,false,output)});else output.print("{}")}DEFPRINT(AST_BlockStatement,function(self,output){print_bracketed(self.body,output)});DEFPRINT(AST_EmptyStatement,function(self,output){output.semicolon()});DEFPRINT(AST_Do,function(self,output){output.print("do");output.space();self._do_print_body(output);output.space();output.print("while");output.space();output.with_parens(function(){self.condition.print(output)});output.semicolon()});DEFPRINT(AST_While,function(self,output){output.print("while");output.space();output.with_parens(function(){self.condition.print(output)});output.space();self._do_print_body(output)});DEFPRINT(AST_For,function(self,output){output.print("for");output.space();output.with_parens(function(){if(self.init&&!(self.init instanceof AST_EmptyStatement)){if(self.init instanceof AST_Definitions){self.init.print(output)}else{parenthesize_for_noin(self.init,output,true)}output.print(";");output.space()}else{output.print(";")}if(self.condition){self.condition.print(output);output.print(";");output.space()}else{output.print(";")}if(self.step){self.step.print(output)}});output.space();self._do_print_body(output)});DEFPRINT(AST_ForIn,function(self,output){output.print("for");output.space();output.with_parens(function(){self.init.print(output);output.space();output.print("in");output.space();self.object.print(output)});output.space();self._do_print_body(output)});DEFPRINT(AST_With,function(self,output){output.print("with");output.space();output.with_parens(function(){self.expression.print(output)});output.space();self._do_print_body(output)});AST_Lambda.DEFMETHOD("_do_print",function(output,nokeyword){var self=this;if(!nokeyword){output.print("function")}if(self.name){output.space();self.name.print(output)}output.with_parens(function(){self.argnames.forEach(function(arg,i){if(i)output.comma();arg.print(output)})});output.space();print_bracketed(self.body,output)});DEFPRINT(AST_Lambda,function(self,output){self._do_print(output)});AST_Exit.DEFMETHOD("_do_print",function(output,kind){output.print(kind);if(this.value){output.space();this.value.print(output)}output.semicolon()});DEFPRINT(AST_Return,function(self,output){self._do_print(output,"return")});DEFPRINT(AST_Throw,function(self,output){self._do_print(output,"throw")});AST_LoopControl.DEFMETHOD("_do_print",function(output,kind){output.print(kind);if(this.label){output.space();this.label.print(output)}output.semicolon()});DEFPRINT(AST_Break,function(self,output){self._do_print(output,"break")});DEFPRINT(AST_Continue,function(self,output){self._do_print(output,"continue")});function make_then(self,output){if(output.option("bracketize")){make_block(self.body,output);return}if(!self.body)return output.force_semicolon();if(self.body instanceof AST_Do&&!output.option("screw_ie8")){make_block(self.body,output);return}var b=self.body;while(true){if(b instanceof AST_If){if(!b.alternative){make_block(self.body,output);return}b=b.alternative}else if(b instanceof AST_StatementWithBody){b=b.body}else break}force_statement(self.body,output)}DEFPRINT(AST_If,function(self,output){output.print("if");output.space();output.with_parens(function(){self.condition.print(output)});output.space();if(self.alternative){make_then(self,output);output.space();output.print("else");output.space();force_statement(self.alternative,output)}else{self._do_print_body(output)}});DEFPRINT(AST_Switch,function(self,output){output.print("switch");output.space();output.with_parens(function(){self.expression.print(output)});output.space();if(self.body.length>0)output.with_block(function(){self.body.forEach(function(stmt,i){if(i)output.newline();output.indent(true);stmt.print(output)})});else output.print("{}")});AST_SwitchBranch.DEFMETHOD("_do_print_body",function(output){if(this.body.length>0){output.newline();this.body.forEach(function(stmt){output.indent();stmt.print(output);output.newline()})}});DEFPRINT(AST_Default,function(self,output){output.print("default:");self._do_print_body(output)});DEFPRINT(AST_Case,function(self,output){output.print("case");output.space();self.expression.print(output);output.print(":");self._do_print_body(output)});DEFPRINT(AST_Try,function(self,output){output.print("try");output.space();print_bracketed(self.body,output);if(self.bcatch){output.space();self.bcatch.print(output)}if(self.bfinally){output.space();self.bfinally.print(output)}});DEFPRINT(AST_Catch,function(self,output){output.print("catch");output.space();output.with_parens(function(){self.argname.print(output)});output.space();print_bracketed(self.body,output)});DEFPRINT(AST_Finally,function(self,output){output.print("finally");output.space();print_bracketed(self.body,output)});AST_Definitions.DEFMETHOD("_do_print",function(output,kind){output.print(kind);output.space();this.definitions.forEach(function(def,i){if(i)output.comma();def.print(output)});var p=output.parent();var in_for=p instanceof AST_For||p instanceof AST_ForIn;var avoid_semicolon=in_for&&p.init===this;if(!avoid_semicolon)output.semicolon()});DEFPRINT(AST_Var,function(self,output){self._do_print(output,"var")});DEFPRINT(AST_Const,function(self,output){self._do_print(output,"const")});function parenthesize_for_noin(node,output,noin){if(!noin)node.print(output);else try{node.walk(new TreeWalker(function(node){if(node instanceof AST_Binary&&node.operator=="in")throw output}));node.print(output)}catch(ex){if(ex!==output)throw ex;node.print(output,true)}}DEFPRINT(AST_VarDef,function(self,output){self.name.print(output);if(self.value){output.space();output.print("=");output.space();var p=output.parent(1);var noin=p instanceof AST_For||p instanceof AST_ForIn;parenthesize_for_noin(self.value,output,noin)}});DEFPRINT(AST_Call,function(self,output){self.expression.print(output);if(self instanceof AST_New&&no_constructor_parens(self,output))return;output.with_parens(function(){self.args.forEach(function(expr,i){if(i)output.comma();expr.print(output)})})});DEFPRINT(AST_New,function(self,output){output.print("new");output.space();AST_Call.prototype._codegen(self,output)});AST_Seq.DEFMETHOD("_do_print",function(output){this.car.print(output);if(this.cdr){output.comma();if(output.should_break()){output.newline();output.indent()}this.cdr.print(output)}});DEFPRINT(AST_Seq,function(self,output){self._do_print(output)});DEFPRINT(AST_Dot,function(self,output){var expr=self.expression;expr.print(output);if(expr instanceof AST_Number&&expr.getValue()>=0){if(!/[xa-f.]/i.test(output.last())){output.print(".")}}output.print(".");output.add_mapping(self.end);output.print_name(self.property)});DEFPRINT(AST_Sub,function(self,output){self.expression.print(output);output.print("[");self.property.print(output);output.print("]")});DEFPRINT(AST_UnaryPrefix,function(self,output){var op=self.operator;output.print(op);if(/^[a-z]/i.test(op)||/[+-]$/.test(op)&&self.expression instanceof AST_UnaryPrefix&&/^[+-]/.test(self.expression.operator)){output.space()}self.expression.print(output)});DEFPRINT(AST_UnaryPostfix,function(self,output){self.expression.print(output);output.print(self.operator)});DEFPRINT(AST_Binary,function(self,output){self.left.print(output);output.space();output.print(self.operator);if(self.operator=="<"&&self.right instanceof AST_UnaryPrefix&&self.right.operator=="!"&&self.right.expression instanceof AST_UnaryPrefix&&self.right.expression.operator=="--"){output.print(" ")}else{output.space()}self.right.print(output)});DEFPRINT(AST_Conditional,function(self,output){self.condition.print(output);output.space();output.print("?");output.space();self.consequent.print(output);output.space();output.colon();self.alternative.print(output)});DEFPRINT(AST_Array,function(self,output){output.with_square(function(){var a=self.elements,len=a.length;if(len>0)output.space();a.forEach(function(exp,i){if(i)output.comma();exp.print(output);if(i===len-1&&exp instanceof AST_Hole)output.comma()});if(len>0)output.space()})});DEFPRINT(AST_Object,function(self,output){if(self.properties.length>0)output.with_block(function(){self.properties.forEach(function(prop,i){if(i){output.print(",");output.newline()}output.indent();prop.print(output)});output.newline()});else output.print("{}")});DEFPRINT(AST_ObjectKeyVal,function(self,output){var key=self.key;var quote=self.quote;if(output.option("quote_keys")){output.print_string(key+"")}else if((typeof key=="number"||!output.option("beautify")&&+key+""==key)&&parseFloat(key)>=0){output.print(make_num(key))}else if(RESERVED_WORDS(key)?output.option("screw_ie8"):is_identifier_string(key)){output.print_name(key)}else{output.print_string(key,quote)}output.colon();self.value.print(output)});DEFPRINT(AST_ObjectSetter,function(self,output){output.print("set");output.space();self.key.print(output);self.value._do_print(output,true)});DEFPRINT(AST_ObjectGetter,function(self,output){output.print("get");output.space();self.key.print(output);self.value._do_print(output,true)});DEFPRINT(AST_Symbol,function(self,output){var def=self.definition();output.print_name(def?def.mangled_name||def.name:self.name)});DEFPRINT(AST_Undefined,function(self,output){output.print("void 0")});DEFPRINT(AST_Hole,noop);DEFPRINT(AST_Infinity,function(self,output){output.print("Infinity")});DEFPRINT(AST_NaN,function(self,output){output.print("NaN")});DEFPRINT(AST_This,function(self,output){output.print("this")});DEFPRINT(AST_Constant,function(self,output){output.print(self.getValue())});DEFPRINT(AST_String,function(self,output){output.print_string(self.getValue(),self.quote)});DEFPRINT(AST_Number,function(self,output){output.print(make_num(self.getValue()))});function regexp_safe_literal(code){return[92,47,46,43,42,63,40,41,91,93,123,125,36,94,58,124,33,10,13,0,65279,8232,8233].indexOf(code)<0}DEFPRINT(AST_RegExp,function(self,output){var str=self.getValue().toString();if(output.option("ascii_only")){str=output.to_ascii(str)}else if(output.option("unescape_regexps")){str=str.split("\\\\").map(function(str){return str.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g,function(s){var code=parseInt(s.substr(2),16);return regexp_safe_literal(code)?String.fromCharCode(code):s})}).join("\\\\")}output.print(str);var p=output.parent();if(p instanceof AST_Binary&&/^in/.test(p.operator)&&p.left===self)output.print(" "); });function force_statement(stat,output){if(output.option("bracketize")){if(!stat||stat instanceof AST_EmptyStatement)output.print("{}");else if(stat instanceof AST_BlockStatement)stat.print(output);else output.with_block(function(){output.indent();stat.print(output);output.newline()})}else{if(!stat||stat instanceof AST_EmptyStatement)output.force_semicolon();else stat.print(output)}}function first_in_statement(output){var a=output.stack(),i=a.length,node=a[--i],p=a[--i];while(i>0){if(p instanceof AST_Statement&&p.body===node)return true;if(p instanceof AST_Seq&&p.car===node||p instanceof AST_Call&&p.expression===node&&!(p instanceof AST_New)||p instanceof AST_Dot&&p.expression===node||p instanceof AST_Sub&&p.expression===node||p instanceof AST_Conditional&&p.condition===node||p instanceof AST_Binary&&p.left===node||p instanceof AST_UnaryPostfix&&p.expression===node){node=p;p=a[--i]}else{return false}}}function no_constructor_parens(self,output){return self.args.length==0&&!output.option("beautify")}function best_of(a){var best=a[0],len=best.length;for(var i=1;i=0){a.push("0x"+num.toString(16).toLowerCase(),"0"+num.toString(8))}else{a.push("-0x"+(-num).toString(16).toLowerCase(),"-0"+(-num).toString(8))}if(m=/^(.*?)(0+)$/.exec(num)){a.push(m[1]+"e"+m[2].length)}}else if(m=/^0?\.(0+)(.*)$/.exec(num)){a.push(m[2]+"e-"+(m[1].length+m[2].length),str.substr(str.indexOf(".")))}return best_of(a)}function make_block(stmt,output){if(stmt instanceof AST_BlockStatement){stmt.print(output);return}output.with_block(function(){output.indent();stmt.print(output);output.newline()})}function DEFMAP(nodetype,generator){nodetype.DEFMETHOD("add_source_map",function(stream){generator(this,stream)})}DEFMAP(AST_Node,noop);function basic_sourcemap_gen(self,output){output.add_mapping(self.start)}DEFMAP(AST_Directive,basic_sourcemap_gen);DEFMAP(AST_Debugger,basic_sourcemap_gen);DEFMAP(AST_Symbol,basic_sourcemap_gen);DEFMAP(AST_Jump,basic_sourcemap_gen);DEFMAP(AST_StatementWithBody,basic_sourcemap_gen);DEFMAP(AST_LabeledStatement,noop);DEFMAP(AST_Lambda,basic_sourcemap_gen);DEFMAP(AST_Switch,basic_sourcemap_gen);DEFMAP(AST_SwitchBranch,basic_sourcemap_gen);DEFMAP(AST_BlockStatement,basic_sourcemap_gen);DEFMAP(AST_Toplevel,noop);DEFMAP(AST_New,basic_sourcemap_gen);DEFMAP(AST_Try,basic_sourcemap_gen);DEFMAP(AST_Catch,basic_sourcemap_gen);DEFMAP(AST_Finally,basic_sourcemap_gen);DEFMAP(AST_Definitions,basic_sourcemap_gen);DEFMAP(AST_Constant,basic_sourcemap_gen);DEFMAP(AST_ObjectProperty,function(self,output){output.add_mapping(self.start,self.key)})})();"use strict";function Compressor(options,false_by_default){if(!(this instanceof Compressor))return new Compressor(options,false_by_default);TreeTransformer.call(this,this.before,this.after);this.options=defaults(options,{sequences:!false_by_default,properties:!false_by_default,dead_code:!false_by_default,drop_debugger:!false_by_default,unsafe:false,unsafe_comps:false,conditionals:!false_by_default,comparisons:!false_by_default,evaluate:!false_by_default,booleans:!false_by_default,loops:!false_by_default,unused:!false_by_default,hoist_funs:!false_by_default,keep_fargs:false,keep_fnames:false,hoist_vars:false,if_return:!false_by_default,join_vars:!false_by_default,cascade:!false_by_default,side_effects:!false_by_default,pure_getters:false,pure_funcs:null,negate_iife:!false_by_default,screw_ie8:false,drop_console:false,angular:false,warnings:true,global_defs:{}},true)}Compressor.prototype=new TreeTransformer;merge(Compressor.prototype,{option:function(key){return this.options[key]},warn:function(){if(this.options.warnings)AST_Node.warn.apply(AST_Node,arguments)},before:function(node,descend,in_list){if(node._squeezed)return node;var was_scope=false;if(node instanceof AST_Scope){node=node.hoist_declarations(this);was_scope=true}descend(node,this);node=node.optimize(this);if(was_scope&&node instanceof AST_Scope){node.drop_unused(this);descend(node,this)}node._squeezed=true;return node}});(function(){function OPT(node,optimizer){node.DEFMETHOD("optimize",function(compressor){var self=this;if(self._optimized)return self;var opt=optimizer(self,compressor);opt._optimized=true;if(opt===self)return opt;return opt.transform(compressor)})}OPT(AST_Node,function(self,compressor){return self});AST_Node.DEFMETHOD("equivalent_to",function(node){return this.print_to_string()==node.print_to_string()});function make_node(ctor,orig,props){if(!props)props={};if(orig){if(!props.start)props.start=orig.start;if(!props.end)props.end=orig.end}return new ctor(props)}function make_node_from_constant(compressor,val,orig){if(val instanceof AST_Node)return val.transform(compressor);switch(typeof val){case"string":return make_node(AST_String,orig,{value:val}).optimize(compressor);case"number":return make_node(isNaN(val)?AST_NaN:AST_Number,orig,{value:val}).optimize(compressor);case"boolean":return make_node(val?AST_True:AST_False,orig).optimize(compressor);case"undefined":return make_node(AST_Undefined,orig).optimize(compressor);default:if(val===null){return make_node(AST_Null,orig,{value:null}).optimize(compressor)}if(val instanceof RegExp){return make_node(AST_RegExp,orig,{value:val}).optimize(compressor)}throw new Error(string_template("Can't handle constant of type: {type}",{type:typeof val}))}}function as_statement_array(thing){if(thing===null)return[];if(thing instanceof AST_BlockStatement)return thing.body;if(thing instanceof AST_EmptyStatement)return[];if(thing instanceof AST_Statement)return[thing];throw new Error("Can't convert thing to statement array")}function is_empty(thing){if(thing===null)return true;if(thing instanceof AST_EmptyStatement)return true;if(thing instanceof AST_BlockStatement)return thing.body.length==0;return false}function loop_body(x){if(x instanceof AST_Switch)return x;if(x instanceof AST_For||x instanceof AST_ForIn||x instanceof AST_DWLoop){return x.body instanceof AST_BlockStatement?x.body:x}return x}function tighten_body(statements,compressor){var CHANGED;do{CHANGED=false;if(compressor.option("angular")){statements=process_for_angular(statements)}statements=eliminate_spurious_blocks(statements);if(compressor.option("dead_code")){statements=eliminate_dead_code(statements,compressor)}if(compressor.option("if_return")){statements=handle_if_return(statements,compressor)}if(compressor.option("sequences")){statements=sequencesize(statements,compressor)}if(compressor.option("join_vars")){statements=join_consecutive_vars(statements,compressor)}}while(CHANGED);if(compressor.option("negate_iife")){negate_iifes(statements,compressor)}return statements;function process_for_angular(statements){function has_inject(comment){return/@ngInject/.test(comment.value)}function make_arguments_names_list(func){return func.argnames.map(function(sym){return make_node(AST_String,sym,{value:sym.name})})}function make_array(orig,elements){return make_node(AST_Array,orig,{elements:elements})}function make_injector(func,name){return make_node(AST_SimpleStatement,func,{body:make_node(AST_Assign,func,{operator:"=",left:make_node(AST_Dot,name,{expression:make_node(AST_SymbolRef,name,name),property:"$inject"}),right:make_array(func,make_arguments_names_list(func))})})}function check_expression(body){if(body&&body.args){body.args.forEach(function(argument,index,array){var comments=argument.start.comments_before;if(argument instanceof AST_Lambda&&comments.length&&has_inject(comments[0])){array[index]=make_array(argument,make_arguments_names_list(argument).concat(argument))}});if(body.expression&&body.expression.expression){check_expression(body.expression.expression)}}}return statements.reduce(function(a,stat){a.push(stat);if(stat.body&&stat.body.args){check_expression(stat.body)}else{var token=stat.start;var comments=token.comments_before;if(comments&&comments.length>0){var last=comments.pop();if(has_inject(last)){if(stat instanceof AST_Defun){a.push(make_injector(stat,stat.name))}else if(stat instanceof AST_Definitions){stat.definitions.forEach(function(def){if(def.value&&def.value instanceof AST_Lambda){a.push(make_injector(def.value,def.name))}})}else{compressor.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]",token)}}}}return a},[])}function eliminate_spurious_blocks(statements){var seen_dirs=[];return statements.reduce(function(a,stat){if(stat instanceof AST_BlockStatement){CHANGED=true;a.push.apply(a,eliminate_spurious_blocks(stat.body))}else if(stat instanceof AST_EmptyStatement){CHANGED=true}else if(stat instanceof AST_Directive){if(seen_dirs.indexOf(stat.value)<0){a.push(stat);seen_dirs.push(stat.value)}else{CHANGED=true}}else{a.push(stat)}return a},[])}function handle_if_return(statements,compressor){var self=compressor.self();var in_lambda=self instanceof AST_Lambda;var ret=[];loop:for(var i=statements.length;--i>=0;){var stat=statements[i];switch(true){case in_lambda&&stat instanceof AST_Return&&!stat.value&&ret.length==0:CHANGED=true;continue loop;case stat instanceof AST_If:if(stat.body instanceof AST_Return){if((in_lambda&&ret.length==0||ret[0]instanceof AST_Return&&!ret[0].value)&&!stat.body.value&&!stat.alternative){CHANGED=true;var cond=make_node(AST_SimpleStatement,stat.condition,{body:stat.condition});ret.unshift(cond);continue loop}if(ret[0]instanceof AST_Return&&stat.body.value&&ret[0].value&&!stat.alternative){CHANGED=true;stat=stat.clone();stat.alternative=ret[0];ret[0]=stat.transform(compressor);continue loop}if((ret.length==0||ret[0]instanceof AST_Return)&&stat.body.value&&!stat.alternative&&in_lambda){CHANGED=true;stat=stat.clone();stat.alternative=ret[0]||make_node(AST_Return,stat,{value:make_node(AST_Undefined,stat)});ret[0]=stat.transform(compressor);continue loop}if(!stat.body.value&&in_lambda){CHANGED=true;stat=stat.clone();stat.condition=stat.condition.negate(compressor);stat.body=make_node(AST_BlockStatement,stat,{body:as_statement_array(stat.alternative).concat(ret)});stat.alternative=null;ret=[stat.transform(compressor)];continue loop}if(ret.length==1&&in_lambda&&ret[0]instanceof AST_SimpleStatement&&(!stat.alternative||stat.alternative instanceof AST_SimpleStatement)){CHANGED=true;ret.push(make_node(AST_Return,ret[0],{value:make_node(AST_Undefined,ret[0])}).transform(compressor));ret=as_statement_array(stat.alternative).concat(ret);ret.unshift(stat);continue loop}}var ab=aborts(stat.body);var lct=ab instanceof AST_LoopControl?compressor.loopcontrol_target(ab.label):null;if(ab&&(ab instanceof AST_Return&&!ab.value&&in_lambda||ab instanceof AST_Continue&&self===loop_body(lct)||ab instanceof AST_Break&&lct instanceof AST_BlockStatement&&self===lct)){if(ab.label){remove(ab.label.thedef.references,ab)}CHANGED=true;var body=as_statement_array(stat.body).slice(0,-1);stat=stat.clone();stat.condition=stat.condition.negate(compressor);stat.body=make_node(AST_BlockStatement,stat,{body:as_statement_array(stat.alternative).concat(ret)});stat.alternative=make_node(AST_BlockStatement,stat,{body:body});ret=[stat.transform(compressor)];continue loop}var ab=aborts(stat.alternative);var lct=ab instanceof AST_LoopControl?compressor.loopcontrol_target(ab.label):null;if(ab&&(ab instanceof AST_Return&&!ab.value&&in_lambda||ab instanceof AST_Continue&&self===loop_body(lct)||ab instanceof AST_Break&&lct instanceof AST_BlockStatement&&self===lct)){if(ab.label){remove(ab.label.thedef.references,ab)}CHANGED=true;stat=stat.clone();stat.body=make_node(AST_BlockStatement,stat.body,{body:as_statement_array(stat.body).concat(ret)});stat.alternative=make_node(AST_BlockStatement,stat.alternative,{body:as_statement_array(stat.alternative).slice(0,-1)});ret=[stat.transform(compressor)];continue loop}ret.unshift(stat);break;default:ret.unshift(stat);break}}return ret}function eliminate_dead_code(statements,compressor){var has_quit=false;var orig=statements.length;var self=compressor.self();statements=statements.reduce(function(a,stat){if(has_quit){extract_declarations_from_unreachable_code(compressor,stat,a)}else{if(stat instanceof AST_LoopControl){var lct=compressor.loopcontrol_target(stat.label);if(stat instanceof AST_Break&&lct instanceof AST_BlockStatement&&loop_body(lct)===self||stat instanceof AST_Continue&&loop_body(lct)===self){if(stat.label){remove(stat.label.thedef.references,stat)}}else{a.push(stat)}}else{a.push(stat)}if(aborts(stat))has_quit=true}return a},[]);CHANGED=statements.length!=orig;return statements}function sequencesize(statements,compressor){if(statements.length<2)return statements;var seq=[],ret=[];function push_seq(){seq=AST_Seq.from_array(seq);if(seq)ret.push(make_node(AST_SimpleStatement,seq,{body:seq}));seq=[]}statements.forEach(function(stat){if(stat instanceof AST_SimpleStatement&&seq.length<2e3)seq.push(stat.body);else push_seq(),ret.push(stat)});push_seq();ret=sequencesize_2(ret,compressor);CHANGED=ret.length!=statements.length;return ret}function sequencesize_2(statements,compressor){function cons_seq(right){ret.pop();var left=prev.body;if(left instanceof AST_Seq){left.add(right)}else{left=AST_Seq.cons(left,right)}return left.transform(compressor)}var ret=[],prev=null;statements.forEach(function(stat){if(prev){if(stat instanceof AST_For){var opera={};try{prev.body.walk(new TreeWalker(function(node){if(node instanceof AST_Binary&&node.operator=="in")throw opera}));if(stat.init&&!(stat.init instanceof AST_Definitions)){stat.init=cons_seq(stat.init)}else if(!stat.init){stat.init=prev.body;ret.pop()}}catch(ex){if(ex!==opera)throw ex}}else if(stat instanceof AST_If){stat.condition=cons_seq(stat.condition)}else if(stat instanceof AST_With){stat.expression=cons_seq(stat.expression)}else if(stat instanceof AST_Exit&&stat.value){stat.value=cons_seq(stat.value)}else if(stat instanceof AST_Exit){stat.value=cons_seq(make_node(AST_Undefined,stat))}else if(stat instanceof AST_Switch){stat.expression=cons_seq(stat.expression)}}ret.push(stat);prev=stat instanceof AST_SimpleStatement?stat:null});return ret}function join_consecutive_vars(statements,compressor){var prev=null;return statements.reduce(function(a,stat){if(stat instanceof AST_Definitions&&prev&&prev.TYPE==stat.TYPE){prev.definitions=prev.definitions.concat(stat.definitions);CHANGED=true}else if(stat instanceof AST_For&&prev instanceof AST_Definitions&&(!stat.init||stat.init.TYPE==prev.TYPE)){CHANGED=true;a.pop();if(stat.init){stat.init.definitions=prev.definitions.concat(stat.init.definitions)}else{stat.init=prev}a.push(stat);prev=stat}else{prev=stat;a.push(stat)}return a},[])}function negate_iifes(statements,compressor){statements.forEach(function(stat){if(stat instanceof AST_SimpleStatement){stat.body=function transform(thing){return thing.transform(new TreeTransformer(function(node){if(node instanceof AST_Call&&node.expression instanceof AST_Function){return make_node(AST_UnaryPrefix,node,{operator:"!",expression:node})}else if(node instanceof AST_Call){node.expression=transform(node.expression)}else if(node instanceof AST_Seq){node.car=transform(node.car)}else if(node instanceof AST_Conditional){var expr=transform(node.condition);if(expr!==node.condition){node.condition=expr;var tmp=node.consequent;node.consequent=node.alternative;node.alternative=tmp}}return node}))}(stat.body)}})}}function extract_declarations_from_unreachable_code(compressor,stat,target){compressor.warn("Dropping unreachable code [{file}:{line},{col}]",stat.start);stat.walk(new TreeWalker(function(node){if(node instanceof AST_Definitions){compressor.warn("Declarations in unreachable code! [{file}:{line},{col}]",node.start);node.remove_initializers();target.push(node);return true}if(node instanceof AST_Defun){target.push(node);return true}if(node instanceof AST_Scope){return true}}))}(function(def){var unary_bool=["!","delete"];var binary_bool=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];def(AST_Node,function(){return false});def(AST_UnaryPrefix,function(){return member(this.operator,unary_bool)});def(AST_Binary,function(){return member(this.operator,binary_bool)||(this.operator=="&&"||this.operator=="||")&&this.left.is_boolean()&&this.right.is_boolean()});def(AST_Conditional,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()});def(AST_Assign,function(){return this.operator=="="&&this.right.is_boolean()});def(AST_Seq,function(){return this.cdr.is_boolean()});def(AST_True,function(){return true});def(AST_False,function(){return true})})(function(node,func){node.DEFMETHOD("is_boolean",func)});(function(def){def(AST_Node,function(){return false});def(AST_String,function(){return true});def(AST_UnaryPrefix,function(){return this.operator=="typeof"});def(AST_Binary,function(compressor){return this.operator=="+"&&(this.left.is_string(compressor)||this.right.is_string(compressor))});def(AST_Assign,function(compressor){return(this.operator=="="||this.operator=="+=")&&this.right.is_string(compressor)});def(AST_Seq,function(compressor){return this.cdr.is_string(compressor)});def(AST_Conditional,function(compressor){return this.consequent.is_string(compressor)&&this.alternative.is_string(compressor)});def(AST_Call,function(compressor){return compressor.option("unsafe")&&this.expression instanceof AST_SymbolRef&&this.expression.name=="String"&&this.expression.undeclared()})})(function(node,func){node.DEFMETHOD("is_string",func)});function best_of(ast1,ast2){return ast1.print_to_string().length>ast2.print_to_string().length?ast2:ast1}(function(def){AST_Node.DEFMETHOD("evaluate",function(compressor){if(!compressor.option("evaluate"))return[this];try{var val=this._eval(compressor);return[best_of(make_node_from_constant(compressor,val,this),this),val]}catch(ex){if(ex!==def)throw ex;return[this]}});def(AST_Statement,function(){throw new Error(string_template("Cannot evaluate a statement [{file}:{line},{col}]",this.start))});def(AST_Function,function(){throw def});function ev(node,compressor){if(!compressor)throw new Error("Compressor must be passed");return node._eval(compressor)}def(AST_Node,function(){throw def});def(AST_Constant,function(){return this.getValue()});def(AST_UnaryPrefix,function(compressor){var e=this.expression;switch(this.operator){case"!":return!ev(e,compressor);case"typeof":if(e instanceof AST_Function)return typeof function(){};e=ev(e,compressor);if(e instanceof RegExp)throw def;return typeof e;case"void":return void ev(e,compressor);case"~":return~ev(e,compressor);case"-":e=ev(e,compressor);if(e===0)throw def;return-e;case"+":return+ev(e,compressor)}throw def});def(AST_Binary,function(c){var left=this.left,right=this.right;switch(this.operator){case"&&":return ev(left,c)&&ev(right,c);case"||":return ev(left,c)||ev(right,c);case"|":return ev(left,c)|ev(right,c);case"&":return ev(left,c)&ev(right,c);case"^":return ev(left,c)^ev(right,c);case"+":return ev(left,c)+ev(right,c);case"*":return ev(left,c)*ev(right,c);case"/":return ev(left,c)/ev(right,c);case"%":return ev(left,c)%ev(right,c);case"-":return ev(left,c)-ev(right,c);case"<<":return ev(left,c)<>":return ev(left,c)>>ev(right,c);case">>>":return ev(left,c)>>>ev(right,c);case"==":return ev(left,c)==ev(right,c);case"===":return ev(left,c)===ev(right,c);case"!=":return ev(left,c)!=ev(right,c);case"!==":return ev(left,c)!==ev(right,c);case"<":return ev(left,c)":return ev(left,c)>ev(right,c);case">=":return ev(left,c)>=ev(right,c);case"in":return ev(left,c)in ev(right,c);case"instanceof":return ev(left,c)instanceof ev(right,c)}throw def});def(AST_Conditional,function(compressor){return ev(this.condition,compressor)?ev(this.consequent,compressor):ev(this.alternative,compressor)});def(AST_SymbolRef,function(compressor){var d=this.definition();if(d&&d.constant&&d.init)return ev(d.init,compressor);throw def});def(AST_Dot,function(compressor){if(compressor.option("unsafe")&&this.property=="length"){var str=ev(this.expression,compressor);if(typeof str=="string")return str.length}throw def})})(function(node,func){node.DEFMETHOD("_eval",func)});(function(def){function basic_negation(exp){return make_node(AST_UnaryPrefix,exp,{operator:"!",expression:exp})}def(AST_Node,function(){return basic_negation(this)});def(AST_Statement,function(){throw new Error("Cannot negate a statement")});def(AST_Function,function(){return basic_negation(this)});def(AST_UnaryPrefix,function(){if(this.operator=="!")return this.expression;return basic_negation(this)});def(AST_Seq,function(compressor){var self=this.clone();self.cdr=self.cdr.negate(compressor);return self});def(AST_Conditional,function(compressor){var self=this.clone();self.consequent=self.consequent.negate(compressor);self.alternative=self.alternative.negate(compressor);return best_of(basic_negation(this),self)});def(AST_Binary,function(compressor){var self=this.clone(),op=this.operator;if(compressor.option("unsafe_comps")){switch(op){case"<=":self.operator=">";return self;case"<":self.operator=">=";return self;case">=":self.operator="<";return self;case">":self.operator="<=";return self}}switch(op){case"==":self.operator="!=";return self;case"!=":self.operator="==";return self;case"===":self.operator="!==";return self;case"!==":self.operator="===";return self;case"&&":self.operator="||";self.left=self.left.negate(compressor);self.right=self.right.negate(compressor);return best_of(basic_negation(this),self);case"||":self.operator="&&";self.left=self.left.negate(compressor);self.right=self.right.negate(compressor);return best_of(basic_negation(this),self)}return basic_negation(this)})})(function(node,func){node.DEFMETHOD("negate",function(compressor){return func.call(this,compressor)})});(function(def){def(AST_Node,function(compressor){return true});def(AST_EmptyStatement,function(compressor){return false});def(AST_Constant,function(compressor){return false});def(AST_This,function(compressor){return false});def(AST_Call,function(compressor){var pure=compressor.option("pure_funcs");if(!pure)return true;return pure.indexOf(this.expression.print_to_string())<0});def(AST_Block,function(compressor){for(var i=this.body.length;--i>=0;){if(this.body[i].has_side_effects(compressor))return true}return false});def(AST_SimpleStatement,function(compressor){return this.body.has_side_effects(compressor)});def(AST_Defun,function(compressor){return true});def(AST_Function,function(compressor){return false});def(AST_Binary,function(compressor){return this.left.has_side_effects(compressor)||this.right.has_side_effects(compressor)});def(AST_Assign,function(compressor){return true});def(AST_Conditional,function(compressor){return this.condition.has_side_effects(compressor)||this.consequent.has_side_effects(compressor)||this.alternative.has_side_effects(compressor)});def(AST_Unary,function(compressor){return this.operator=="delete"||this.operator=="++"||this.operator=="--"||this.expression.has_side_effects(compressor)});def(AST_SymbolRef,function(compressor){return this.global()&&this.undeclared()});def(AST_Object,function(compressor){for(var i=this.properties.length;--i>=0;)if(this.properties[i].has_side_effects(compressor))return true;return false});def(AST_ObjectProperty,function(compressor){return this.value.has_side_effects(compressor)});def(AST_Array,function(compressor){for(var i=this.elements.length;--i>=0;)if(this.elements[i].has_side_effects(compressor))return true;return false});def(AST_Dot,function(compressor){if(!compressor.option("pure_getters"))return true;return this.expression.has_side_effects(compressor)});def(AST_Sub,function(compressor){if(!compressor.option("pure_getters"))return true;return this.expression.has_side_effects(compressor)||this.property.has_side_effects(compressor)});def(AST_PropAccess,function(compressor){return!compressor.option("pure_getters")});def(AST_Seq,function(compressor){return this.car.has_side_effects(compressor)||this.cdr.has_side_effects(compressor)})})(function(node,func){node.DEFMETHOD("has_side_effects",func)});function aborts(thing){return thing&&thing.aborts()}(function(def){def(AST_Statement,function(){return null});def(AST_Jump,function(){return this});function block_aborts(){var n=this.body.length;return n>0&&aborts(this.body[n-1])}def(AST_BlockStatement,block_aborts);def(AST_SwitchBranch,block_aborts);def(AST_If,function(){return this.alternative&&aborts(this.body)&&aborts(this.alternative)&&this})})(function(node,func){node.DEFMETHOD("aborts",func)});OPT(AST_Directive,function(self,compressor){if(self.scope.has_directive(self.value)!==self.scope){return make_node(AST_EmptyStatement,self)}return self});OPT(AST_Debugger,function(self,compressor){if(compressor.option("drop_debugger"))return make_node(AST_EmptyStatement,self);return self});OPT(AST_LabeledStatement,function(self,compressor){if(self.body instanceof AST_Break&&compressor.loopcontrol_target(self.body.label)===self.body){return make_node(AST_EmptyStatement,self)}return self.label.references.length==0?self.body:self});OPT(AST_Block,function(self,compressor){self.body=tighten_body(self.body,compressor);return self});OPT(AST_BlockStatement,function(self,compressor){self.body=tighten_body(self.body,compressor);switch(self.body.length){case 1:return self.body[0];case 0:return make_node(AST_EmptyStatement,self)}return self});AST_Scope.DEFMETHOD("drop_unused",function(compressor){var self=this;if(compressor.option("unused")&&!(self instanceof AST_Toplevel)&&!self.uses_eval){var in_use=[];var initializations=new Dictionary;var scope=this;var tw=new TreeWalker(function(node,descend){if(node!==self){if(node instanceof AST_Defun){initializations.add(node.name.name,node);return true}if(node instanceof AST_Definitions&&scope===self){node.definitions.forEach(function(def){if(def.value){initializations.add(def.name.name,def.value);if(def.value.has_side_effects(compressor)){def.value.walk(tw)}}});return true}if(node instanceof AST_SymbolRef){push_uniq(in_use,node.definition());return true}if(node instanceof AST_Scope){var save_scope=scope;scope=node;descend();scope=save_scope;return true}}});self.walk(tw);for(var i=0;i=0;){var sym=a[i];if(sym.unreferenced()){a.pop();compressor.warn("Dropping unused function argument {name} [{file}:{line},{col}]",{name:sym.name,file:sym.start.file,line:sym.start.line,col:sym.start.col})}else break}}}if(node instanceof AST_Defun&&node!==self){if(!member(node.name.definition(),in_use)){compressor.warn("Dropping unused function {name} [{file}:{line},{col}]",{name:node.name.name,file:node.name.start.file,line:node.name.start.line,col:node.name.start.col});return make_node(AST_EmptyStatement,node)}return node}if(node instanceof AST_Definitions&&!(tt.parent()instanceof AST_ForIn)){var def=node.definitions.filter(function(def){if(member(def.name.definition(),in_use))return true;var w={name:def.name.name,file:def.name.start.file,line:def.name.start.line,col:def.name.start.col};if(def.value&&def.value.has_side_effects(compressor)){def._unused_side_effects=true;compressor.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",w);return true}compressor.warn("Dropping unused variable {name} [{file}:{line},{col}]",w);return false});def=mergeSort(def,function(a,b){if(!a.value&&b.value)return-1;if(!b.value&&a.value)return 1;return 0});var side_effects=[];for(var i=0;i0){side_effects.push(x.value);x.value=AST_Seq.from_array(side_effects);side_effects=[]}++i}}if(side_effects.length>0){side_effects=make_node(AST_BlockStatement,node,{body:[make_node(AST_SimpleStatement,node,{body:AST_Seq.from_array(side_effects)})]})}else{side_effects=null}if(def.length==0&&!side_effects){return make_node(AST_EmptyStatement,node)}if(def.length==0){return in_list?MAP.splice(side_effects.body):side_effects}node.definitions=def;if(side_effects){side_effects.body.unshift(node);return in_list?MAP.splice(side_effects.body):side_effects}return node}if(node instanceof AST_For){descend(node,this);if(node.init instanceof AST_BlockStatement){var body=node.init.body.slice(0,-1);node.init=node.init.body.slice(-1)[0].body;body.push(node);return in_list?MAP.splice(body):make_node(AST_BlockStatement,node,{body:body})}}if(node instanceof AST_Scope&&node!==self)return node});self.transform(tt)}});AST_Scope.DEFMETHOD("hoist_declarations",function(compressor){var hoist_funs=compressor.option("hoist_funs");var hoist_vars=compressor.option("hoist_vars");var self=this;if(hoist_funs||hoist_vars){var dirs=[];var hoisted=[];var vars=new Dictionary,vars_found=0,var_decl=0;self.walk(new TreeWalker(function(node){if(node instanceof AST_Scope&&node!==self)return true;if(node instanceof AST_Var){++var_decl;return true}}));hoist_vars=hoist_vars&&var_decl>1;var tt=new TreeTransformer(function before(node){if(node!==self){if(node instanceof AST_Directive){dirs.push(node);return make_node(AST_EmptyStatement,node)}if(node instanceof AST_Defun&&hoist_funs){hoisted.push(node);return make_node(AST_EmptyStatement,node)}if(node instanceof AST_Var&&hoist_vars){node.definitions.forEach(function(def){vars.set(def.name.name,def);++vars_found});var seq=node.to_assignments();var p=tt.parent();if(p instanceof AST_ForIn&&p.init===node){if(seq==null)return node.definitions[0].name;return seq}if(p instanceof AST_For&&p.init===node){return seq}if(!seq)return make_node(AST_EmptyStatement,node);return make_node(AST_SimpleStatement,node,{body:seq})}if(node instanceof AST_Scope)return node}});self=self.transform(tt);if(vars_found>0){var defs=[];vars.each(function(def,name){if(self instanceof AST_Lambda&&find_if(function(x){return x.name==def.name.name},self.argnames)){vars.del(name)}else{def=def.clone();def.value=null;defs.push(def);vars.set(name,def)}});if(defs.length>0){for(var i=0;i1){if(cond[1]){return make_node(AST_For,self,{body:self.body})}else if(self instanceof AST_While){if(compressor.option("dead_code")){var a=[];extract_declarations_from_unreachable_code(compressor,self.body,a); -return make_node(AST_BlockStatement,self,{body:a})}}}return self});function if_break_in_loop(self,compressor){function drop_it(rest){rest=as_statement_array(rest);if(self.body instanceof AST_BlockStatement){self.body=self.body.clone();self.body.body=rest.concat(self.body.body.slice(1));self.body=self.body.transform(compressor)}else{self.body=make_node(AST_BlockStatement,self.body,{body:rest}).transform(compressor)}if_break_in_loop(self,compressor)}var first=self.body instanceof AST_BlockStatement?self.body.body[0]:self.body;if(first instanceof AST_If){if(first.body instanceof AST_Break&&compressor.loopcontrol_target(first.body.label)===self){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition.negate(compressor)})}else{self.condition=first.condition.negate(compressor)}drop_it(first.alternative)}else if(first.alternative instanceof AST_Break&&compressor.loopcontrol_target(first.alternative.label)===self){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition})}else{self.condition=first.condition}drop_it(first.body)}}}OPT(AST_While,function(self,compressor){if(!compressor.option("loops"))return self;self=AST_DWLoop.prototype.optimize.call(self,compressor);if(self instanceof AST_While){if_break_in_loop(self,compressor);self=make_node(AST_For,self,self).transform(compressor)}return self});OPT(AST_For,function(self,compressor){var cond=self.condition;if(cond){cond=cond.evaluate(compressor);self.condition=cond[0]}if(!compressor.option("loops"))return self;if(cond){if(cond.length>1&&!cond[1]){if(compressor.option("dead_code")){var a=[];if(self.init instanceof AST_Statement){a.push(self.init)}else if(self.init){a.push(make_node(AST_SimpleStatement,self.init,{body:self.init}))}extract_declarations_from_unreachable_code(compressor,self.body,a);return make_node(AST_BlockStatement,self,{body:a})}}}if_break_in_loop(self,compressor);return self});OPT(AST_If,function(self,compressor){if(!compressor.option("conditionals"))return self;var cond=self.condition.evaluate(compressor);self.condition=cond[0];if(cond.length>1){if(cond[1]){compressor.warn("Condition always true [{file}:{line},{col}]",self.condition.start);if(compressor.option("dead_code")){var a=[];if(self.alternative){extract_declarations_from_unreachable_code(compressor,self.alternative,a)}a.push(self.body);return make_node(AST_BlockStatement,self,{body:a}).transform(compressor)}}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.condition.start);if(compressor.option("dead_code")){var a=[];extract_declarations_from_unreachable_code(compressor,self.body,a);if(self.alternative)a.push(self.alternative);return make_node(AST_BlockStatement,self,{body:a}).transform(compressor)}}}if(is_empty(self.alternative))self.alternative=null;var negated=self.condition.negate(compressor);var negated_is_best=best_of(self.condition,negated)===negated;if(self.alternative&&negated_is_best){negated_is_best=false;self.condition=negated;var tmp=self.body;self.body=self.alternative||make_node(AST_EmptyStatement);self.alternative=tmp}if(is_empty(self.body)&&is_empty(self.alternative)){return make_node(AST_SimpleStatement,self.condition,{body:self.condition}).transform(compressor)}if(self.body instanceof AST_SimpleStatement&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.body,alternative:self.alternative.body})}).transform(compressor)}if(is_empty(self.alternative)&&self.body instanceof AST_SimpleStatement){if(negated_is_best)return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:negated,right:self.body.body})}).transform(compressor);return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"&&",left:self.condition,right:self.body.body})}).transform(compressor)}if(self.body instanceof AST_EmptyStatement&&self.alternative&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:self.condition,right:self.alternative.body})}).transform(compressor)}if(self.body instanceof AST_Exit&&self.alternative instanceof AST_Exit&&self.body.TYPE==self.alternative.TYPE){return make_node(self.body.CTOR,self,{value:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.value||make_node(AST_Undefined,self.body).optimize(compressor),alternative:self.alternative.value||make_node(AST_Undefined,self.alternative).optimize(compressor)})}).transform(compressor)}if(self.body instanceof AST_If&&!self.body.alternative&&!self.alternative){self.condition=make_node(AST_Binary,self.condition,{operator:"&&",left:self.condition,right:self.body.condition}).transform(compressor);self.body=self.body.body}if(aborts(self.body)){if(self.alternative){var alt=self.alternative;self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,alt]}).transform(compressor)}}if(aborts(self.alternative)){var body=self.body;self.body=self.alternative;self.condition=negated_is_best?negated:self.condition.negate(compressor);self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,body]}).transform(compressor)}return self});OPT(AST_Switch,function(self,compressor){if(self.body.length==0&&compressor.option("conditionals")){return make_node(AST_SimpleStatement,self,{body:self.expression}).transform(compressor)}for(;;){var last_branch=self.body[self.body.length-1];if(last_branch){var stat=last_branch.body[last_branch.body.length-1];if(stat instanceof AST_Break&&loop_body(compressor.loopcontrol_target(stat.label))===self)last_branch.body.pop();if(last_branch instanceof AST_Default&&last_branch.body.length==0){self.body.pop();continue}}break}var exp=self.expression.evaluate(compressor);out:if(exp.length==2)try{self.expression=exp[0];if(!compressor.option("dead_code"))break out;var value=exp[1];var in_if=false;var in_block=false;var started=false;var stopped=false;var ruined=false;var tt=new TreeTransformer(function(node,descend,in_list){if(node instanceof AST_Lambda||node instanceof AST_SimpleStatement){return node}else if(node instanceof AST_Switch&&node===self){node=node.clone();descend(node,this);return ruined?node:make_node(AST_BlockStatement,node,{body:node.body.reduce(function(a,branch){return a.concat(branch.body)},[])}).transform(compressor)}else if(node instanceof AST_If||node instanceof AST_Try){var save=in_if;in_if=!in_block;descend(node,this);in_if=save;return node}else if(node instanceof AST_StatementWithBody||node instanceof AST_Switch){var save=in_block;in_block=true;descend(node,this);in_block=save;return node}else if(node instanceof AST_Break&&this.loopcontrol_target(node.label)===self){if(in_if){ruined=true;return node}if(in_block)return node;stopped=true;return in_list?MAP.skip:make_node(AST_EmptyStatement,node)}else if(node instanceof AST_SwitchBranch&&this.parent()===self){if(stopped)return MAP.skip;if(node instanceof AST_Case){var exp=node.expression.evaluate(compressor);if(exp.length<2){throw self}if(exp[1]===value||started){started=true;if(aborts(node))stopped=true;descend(node,this);return node}return MAP.skip}descend(node,this);return node}});tt.stack=compressor.stack.slice();self=self.transform(tt)}catch(ex){if(ex!==self)throw ex}return self});OPT(AST_Case,function(self,compressor){self.body=tighten_body(self.body,compressor);return self});OPT(AST_Try,function(self,compressor){self.body=tighten_body(self.body,compressor);return self});AST_Definitions.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(def){def.value=null})});AST_Definitions.DEFMETHOD("to_assignments",function(){var assignments=this.definitions.reduce(function(a,def){if(def.value){var name=make_node(AST_SymbolRef,def.name,def.name);a.push(make_node(AST_Assign,def,{operator:"=",left:name,right:def.value}))}return a},[]);if(assignments.length==0)return null;return AST_Seq.from_array(assignments)});OPT(AST_Definitions,function(self,compressor){if(self.definitions.length==0)return make_node(AST_EmptyStatement,self);return self});OPT(AST_Function,function(self,compressor){self=AST_Lambda.prototype.optimize.call(self,compressor);if(compressor.option("unused")&&!compressor.option("keep_fnames")){if(self.name&&self.name.unreferenced()){self.name=null}}return self});OPT(AST_Call,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared()){switch(exp.name){case"Array":if(self.args.length!=1){return make_node(AST_Array,self,{elements:self.args}).transform(compressor)}break;case"Object":if(self.args.length==0){return make_node(AST_Object,self,{properties:[]})}break;case"String":if(self.args.length==0)return make_node(AST_String,self,{value:""});if(self.args.length<=1)return make_node(AST_Binary,self,{left:self.args[0],operator:"+",right:make_node(AST_String,self,{value:""})}).transform(compressor);break;case"Number":if(self.args.length==0)return make_node(AST_Number,self,{value:0});if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:self.args[0],operator:"+"}).transform(compressor);case"Boolean":if(self.args.length==0)return make_node(AST_False,self);if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:make_node(AST_UnaryPrefix,null,{expression:self.args[0],operator:"!"}),operator:"!"}).transform(compressor);break;case"Function":if(self.args.length==0)return make_node(AST_Function,self,{argnames:[],body:[]});if(all(self.args,function(x){return x instanceof AST_String})){try{var code="(function("+self.args.slice(0,-1).map(function(arg){return arg.value}).join(",")+"){"+self.args[self.args.length-1].value+"})()";var ast=parse(code);ast.figure_out_scope({screw_ie8:compressor.option("screw_ie8")});var comp=new Compressor(compressor.options);ast=ast.transform(comp);ast.figure_out_scope({screw_ie8:compressor.option("screw_ie8")});ast.mangle_names();var fun;try{ast.walk(new TreeWalker(function(node){if(node instanceof AST_Lambda){fun=node;throw ast}}))}catch(ex){if(ex!==ast)throw ex}if(!fun)return self;var args=fun.argnames.map(function(arg,i){return make_node(AST_String,self.args[i],{value:arg.print_to_string()})});var code=OutputStream();AST_BlockStatement.prototype._codegen.call(fun,fun,code);code=code.toString().replace(/^\{|\}$/g,"");args.push(make_node(AST_String,self.args[self.args.length-1],{value:code}));self.args=args;return self}catch(ex){if(ex instanceof JS_Parse_Error){compressor.warn("Error parsing code passed to new Function [{file}:{line},{col}]",self.args[self.args.length-1].start);compressor.warn(ex.toString())}else{console.log(ex);throw ex}}}break}}else if(exp instanceof AST_Dot&&exp.property=="toString"&&self.args.length==0){return make_node(AST_Binary,self,{left:make_node(AST_String,self,{value:""}),operator:"+",right:exp.expression}).transform(compressor)}else if(exp instanceof AST_Dot&&exp.expression instanceof AST_Array&&exp.property=="join")EXIT:{var separator=self.args.length==0?",":self.args[0].evaluate(compressor)[1];if(separator==null)break EXIT;var elements=exp.expression.elements.reduce(function(a,el){el=el.evaluate(compressor);if(a.length==0||el.length==1){a.push(el)}else{var last=a[a.length-1];if(last.length==2){var val=""+last[1]+separator+el[1];a[a.length-1]=[make_node_from_constant(compressor,val,last[0]),val]}else{a.push(el)}}return a},[]);if(elements.length==0)return make_node(AST_String,self,{value:""});if(elements.length==1)return elements[0][0];if(separator==""){var first;if(elements[0][0]instanceof AST_String||elements[1][0]instanceof AST_String){first=elements.shift()[0]}else{first=make_node(AST_String,self,{value:""})}return elements.reduce(function(prev,el){return make_node(AST_Binary,el[0],{operator:"+",left:prev,right:el[0]})},first).transform(compressor)}var node=self.clone();node.expression=node.expression.clone();node.expression.expression=node.expression.expression.clone();node.expression.expression.elements=elements.map(function(el){return el[0]});return best_of(self,node)}}if(compressor.option("side_effects")){if(self.expression instanceof AST_Function&&self.args.length==0&&!AST_Block.prototype.has_side_effects.call(self.expression,compressor)){return make_node(AST_Undefined,self).transform(compressor)}}if(compressor.option("drop_console")){if(self.expression instanceof AST_PropAccess){var name=self.expression.expression;while(name.expression){name=name.expression}if(name instanceof AST_SymbolRef&&name.name=="console"&&name.undeclared()){return make_node(AST_Undefined,self).transform(compressor)}}}return self.evaluate(compressor)[0]});OPT(AST_New,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared()){switch(exp.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return make_node(AST_Call,self,self).transform(compressor)}}}return self});OPT(AST_Seq,function(self,compressor){if(!compressor.option("side_effects"))return self;if(!self.car.has_side_effects(compressor)){var p;if(!(self.cdr instanceof AST_SymbolRef&&self.cdr.name=="eval"&&self.cdr.undeclared()&&(p=compressor.parent())instanceof AST_Call&&p.expression===self)){return self.cdr}}if(compressor.option("cascade")){if(self.car instanceof AST_Assign&&!self.car.left.has_side_effects(compressor)){if(self.car.left.equivalent_to(self.cdr)){return self.car}if(self.cdr instanceof AST_Call&&self.cdr.expression.equivalent_to(self.car.left)){self.cdr.expression=self.car;return self.cdr}}if(!self.car.has_side_effects(compressor)&&!self.cdr.has_side_effects(compressor)&&self.car.equivalent_to(self.cdr)){return self.car}}if(self.cdr instanceof AST_UnaryPrefix&&self.cdr.operator=="void"&&!self.cdr.expression.has_side_effects(compressor)){self.cdr.expression=self.car;return self.cdr}if(self.cdr instanceof AST_Undefined){return make_node(AST_UnaryPrefix,self,{operator:"void",expression:self.car})}return self});AST_Unary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.expression instanceof AST_Seq){var seq=this.expression;var x=seq.to_array();this.expression=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}}return this});OPT(AST_UnaryPostfix,function(self,compressor){return self.lift_sequences(compressor)});OPT(AST_UnaryPrefix,function(self,compressor){self=self.lift_sequences(compressor);var e=self.expression;if(compressor.option("booleans")&&compressor.in_boolean_context()){switch(self.operator){case"!":if(e instanceof AST_UnaryPrefix&&e.operator=="!"){return e.expression}break;case"typeof":compressor.warn("Boolean expression always true [{file}:{line},{col}]",self.start);return make_node(AST_True,self)}if(e instanceof AST_Binary&&self.operator=="!"){self=best_of(self,e.negate(compressor))}}return self.evaluate(compressor)[0]});function has_side_effects_or_prop_access(node,compressor){var save_pure_getters=compressor.option("pure_getters");compressor.options.pure_getters=false;var ret=node.has_side_effects(compressor);compressor.options.pure_getters=save_pure_getters;return ret}AST_Binary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.left instanceof AST_Seq){var seq=this.left;var x=seq.to_array();this.left=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}if(this.right instanceof AST_Seq&&this instanceof AST_Assign&&!has_side_effects_or_prop_access(this.left,compressor)){var seq=this.right;var x=seq.to_array();this.right=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}}return this});var commutativeOperators=makePredicate("== === != !== * & | ^");OPT(AST_Binary,function(self,compressor){var reverse=compressor.has_directive("use asm")?noop:function(op,force){if(force||!(self.left.has_side_effects(compressor)||self.right.has_side_effects(compressor))){if(op)self.operator=op;var tmp=self.left;self.left=self.right;self.right=tmp}};if(commutativeOperators(self.operator)){if(self.right instanceof AST_Constant&&!(self.left instanceof AST_Constant)){if(!(self.left instanceof AST_Binary&&PRECEDENCE[self.left.operator]>=PRECEDENCE[self.operator])){reverse(null,true)}}if(/^[!=]==?$/.test(self.operator)){if(self.left instanceof AST_SymbolRef&&self.right instanceof AST_Conditional){if(self.right.consequent instanceof AST_SymbolRef&&self.right.consequent.definition()===self.left.definition()){if(/^==/.test(self.operator))return self.right.condition;if(/^!=/.test(self.operator))return self.right.condition.negate(compressor)}if(self.right.alternative instanceof AST_SymbolRef&&self.right.alternative.definition()===self.left.definition()){if(/^==/.test(self.operator))return self.right.condition.negate(compressor);if(/^!=/.test(self.operator))return self.right.condition}}if(self.right instanceof AST_SymbolRef&&self.left instanceof AST_Conditional){if(self.left.consequent instanceof AST_SymbolRef&&self.left.consequent.definition()===self.right.definition()){if(/^==/.test(self.operator))return self.left.condition;if(/^!=/.test(self.operator))return self.left.condition.negate(compressor)}if(self.left.alternative instanceof AST_SymbolRef&&self.left.alternative.definition()===self.right.definition()){if(/^==/.test(self.operator))return self.left.condition.negate(compressor);if(/^!=/.test(self.operator))return self.left.condition}}}}self=self.lift_sequences(compressor);if(compressor.option("comparisons"))switch(self.operator){case"===":case"!==":if(self.left.is_string(compressor)&&self.right.is_string(compressor)||self.left.is_boolean()&&self.right.is_boolean()){self.operator=self.operator.substr(0,2)}case"==":case"!=":if(self.left instanceof AST_String&&self.left.value=="undefined"&&self.right instanceof AST_UnaryPrefix&&self.right.operator=="typeof"&&compressor.option("unsafe")){if(!(self.right.expression instanceof AST_SymbolRef)||!self.right.expression.undeclared()){self.right=self.right.expression;self.left=make_node(AST_Undefined,self.left).optimize(compressor);if(self.operator.length==2)self.operator+="="}}break}if(compressor.option("booleans")&&compressor.in_boolean_context())switch(self.operator){case"&&":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&!ll[1]||rr.length>1&&!rr[1]){compressor.warn("Boolean && always false [{file}:{line},{col}]",self.start);if(self.left.has_side_effects(compressor)){return make_node(AST_Seq,self,{car:self.left,cdr:make_node(AST_False)}).optimize(compressor)}return make_node(AST_False,self)}if(ll.length>1&&ll[1]){return rr[0]}if(rr.length>1&&rr[1]){return ll[0]}break;case"||":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&ll[1]||rr.length>1&&rr[1]){compressor.warn("Boolean || always true [{file}:{line},{col}]",self.start);if(self.left.has_side_effects(compressor)){return make_node(AST_Seq,self,{car:self.left,cdr:make_node(AST_True)}).optimize(compressor)}return make_node(AST_True,self)}if(ll.length>1&&!ll[1]){return rr[0]}if(rr.length>1&&!rr[1]){return ll[0]}break;case"+":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&ll[0]instanceof AST_String&&ll[1]||rr.length>1&&rr[0]instanceof AST_String&&rr[1]){compressor.warn("+ in boolean context always true [{file}:{line},{col}]",self.start);return make_node(AST_True,self)}break}if(compressor.option("comparisons")){if(!(compressor.parent()instanceof AST_Binary)||compressor.parent()instanceof AST_Assign){var negated=make_node(AST_UnaryPrefix,self,{operator:"!",expression:self.negate(compressor)});self=best_of(self,negated)}switch(self.operator){case"<":reverse(">");break;case"<=":reverse(">=");break}}if(self.operator=="+"&&self.right instanceof AST_String&&self.right.getValue()===""&&self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.is_string(compressor)){return self.left}if(compressor.option("evaluate")){if(self.operator=="+"){if(self.left instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_String,null,{value:""+self.left.getValue()+self.right.left.getValue(),start:self.left.start,end:self.right.left.end}),right:self.right.right})}if(self.right instanceof AST_Constant&&self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.right instanceof AST_Constant&&self.left.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:self.left.left,right:make_node(AST_String,null,{value:""+self.left.right.getValue()+self.right.getValue(),start:self.left.right.start,end:self.right.end})})}if(self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.is_string(compressor)&&self.left.right instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_Binary,self.left,{operator:"+",left:self.left.left,right:make_node(AST_String,null,{value:""+self.left.right.getValue()+self.right.left.getValue(),start:self.left.right.start,end:self.right.left.end})}),right:self.right.right})}}}if(self.right instanceof AST_Binary&&self.right.operator==self.operator&&(self.operator=="*"||self.operator=="&&"||self.operator=="||")){self.left=make_node(AST_Binary,self.left,{operator:self.operator,left:self.left,right:self.right.left});self.right=self.right.right;return self.transform(compressor)}return self.evaluate(compressor)[0]});OPT(AST_SymbolRef,function(self,compressor){if(self.undeclared()){var defines=compressor.option("global_defs");if(defines&&defines.hasOwnProperty(self.name)){return make_node_from_constant(compressor,defines[self.name],self)}switch(self.name){case"undefined":return make_node(AST_Undefined,self);case"NaN":return make_node(AST_NaN,self).transform(compressor);case"Infinity":return make_node(AST_Infinity,self).transform(compressor)}}return self});OPT(AST_Infinity,function(self,compressor){return make_node(AST_Binary,self,{operator:"/",left:make_node(AST_Number,self,{value:1}),right:make_node(AST_Number,self,{value:0})})});OPT(AST_Undefined,function(self,compressor){if(compressor.option("unsafe")){var scope=compressor.find_parent(AST_Scope);var undef=scope.find_variable("undefined");if(undef){var ref=make_node(AST_SymbolRef,self,{name:"undefined",scope:scope,thedef:undef});ref.reference();return ref}}return self});var ASSIGN_OPS=["+","-","/","*","%",">>","<<",">>>","|","^","&"];OPT(AST_Assign,function(self,compressor){self=self.lift_sequences(compressor);if(self.operator=="="&&self.left instanceof AST_SymbolRef&&self.right instanceof AST_Binary&&self.right.left instanceof AST_SymbolRef&&self.right.left.name==self.left.name&&member(self.right.operator,ASSIGN_OPS)){self.operator=self.right.operator+"=";self.right=self.right.right}return self});OPT(AST_Conditional,function(self,compressor){if(!compressor.option("conditionals"))return self;if(self.condition instanceof AST_Seq){var car=self.condition.car;self.condition=self.condition.cdr;return AST_Seq.cons(car,self)}var cond=self.condition.evaluate(compressor);if(cond.length>1){if(cond[1]){compressor.warn("Condition always true [{file}:{line},{col}]",self.start);return self.consequent}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.start);return self.alternative}}var negated=cond[0].negate(compressor);if(best_of(cond[0],negated)===negated){self=make_node(AST_Conditional,self,{condition:negated,consequent:self.alternative,alternative:self.consequent})}var consequent=self.consequent;var alternative=self.alternative;if(consequent instanceof AST_Assign&&alternative instanceof AST_Assign&&consequent.operator==alternative.operator&&consequent.left.equivalent_to(alternative.left)&&!consequent.left.has_side_effects(compressor)){return make_node(AST_Assign,self,{operator:consequent.operator,left:consequent.left,right:make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.right,alternative:alternative.right})})}if(consequent instanceof AST_Call&&alternative.TYPE===consequent.TYPE&&consequent.args.length==alternative.args.length&&!consequent.expression.has_side_effects(compressor)&&consequent.expression.equivalent_to(alternative.expression)){if(consequent.args.length==0){return make_node(AST_Seq,self,{car:self.condition,cdr:consequent})}if(consequent.args.length==1){consequent.args[0]=make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.args[0],alternative:alternative.args[0]});return consequent}}if(consequent instanceof AST_Conditional&&consequent.alternative.equivalent_to(alternative)){return make_node(AST_Conditional,self,{condition:make_node(AST_Binary,self,{left:self.condition,operator:"&&",right:consequent.condition}),consequent:consequent.consequent,alternative:alternative})}if(consequent instanceof AST_Constant&&alternative instanceof AST_Constant&&consequent.equivalent_to(alternative)){if(self.condition.has_side_effects(compressor)){return AST_Seq.from_array([self.condition,make_node_from_constant(compressor,consequent.value,self)])}else{return make_node_from_constant(compressor,consequent.value,self)}}if(consequent instanceof AST_True&&alternative instanceof AST_False){self.condition=self.condition.negate(compressor);return make_node(AST_UnaryPrefix,self.condition,{operator:"!",expression:self.condition})}if(consequent instanceof AST_False&&alternative instanceof AST_True){return self.condition.negate(compressor)}return self});OPT(AST_Boolean,function(self,compressor){if(compressor.option("booleans")){var p=compressor.parent();if(p instanceof AST_Binary&&(p.operator=="=="||p.operator=="!=")){compressor.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:p.operator,value:self.value,file:p.start.file,line:p.start.line,col:p.start.col});return make_node(AST_Number,self,{value:+self.value})}return make_node(AST_UnaryPrefix,self,{operator:"!",expression:make_node(AST_Number,self,{value:1-self.value})})}return self});OPT(AST_Sub,function(self,compressor){var prop=self.property;if(prop instanceof AST_String&&compressor.option("properties")){prop=prop.getValue();if(RESERVED_WORDS(prop)?compressor.option("screw_ie8"):is_identifier_string(prop)){return make_node(AST_Dot,self,{expression:self.expression,property:prop}).optimize(compressor)}var v=parseFloat(prop);if(!isNaN(v)&&v.toString()==prop){self.property=make_node(AST_Number,self.property,{value:v})}}return self});OPT(AST_Dot,function(self,compressor){var prop=self.property;if(RESERVED_WORDS(prop)&&!compressor.option("screw_ie8")){return make_node(AST_Sub,self,{expression:self.expression,property:make_node(AST_String,self,{value:prop})}).optimize(compressor)}return self.evaluate(compressor)[0]});function literals_in_boolean_context(self,compressor){if(compressor.option("booleans")&&compressor.in_boolean_context()&&!self.has_side_effects(compressor)){return make_node(AST_True,self)}return self}OPT(AST_Array,literals_in_boolean_context);OPT(AST_Object,literals_in_boolean_context);OPT(AST_RegExp,literals_in_boolean_context)})();"use strict";function SourceMap(options){options=defaults(options,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var orig_map=options.orig&&new MOZ_SourceMap.SourceMapConsumer(options.orig);var generator;if(orig_map){generator=MOZ_SourceMap.SourceMapGenerator.fromSourceMap(orig_map)}else{generator=new MOZ_SourceMap.SourceMapGenerator({file:options.file,sourceRoot:options.root})}function add(source,gen_line,gen_col,orig_line,orig_col,name){if(orig_map){var info=orig_map.originalPositionFor({line:orig_line,column:orig_col});if(info.source===null){return}source=info.source;orig_line=info.line;orig_col=info.column;name=info.name||name}generator.addMapping({generated:{line:gen_line+options.dest_line_diff,column:gen_col},original:{line:orig_line+options.orig_line_diff,column:orig_col},source:source,name:name})}return{add:add,get:function(){return generator},toString:function(){return JSON.stringify(generator.toJSON())}}}"use strict";(function(){var MOZ_TO_ME={ExpressionStatement:function(M){var expr=M.expression;if(expr.type==="Literal"&&typeof expr.value==="string"){return new AST_Directive({start:my_start_token(M),end:my_end_token(M),value:expr.value})}return new AST_SimpleStatement({start:my_start_token(M),end:my_end_token(M),body:from_moz(expr)})},TryStatement:function(M){var handlers=M.handlers||[M.handler];if(handlers.length>1||M.guardedHandlers&&M.guardedHandlers.length){throw new Error("Multiple catch clauses are not supported.")}return new AST_Try({start:my_start_token(M),end:my_end_token(M),body:from_moz(M.block).body,bcatch:from_moz(handlers[0]),bfinally:M.finalizer?new AST_Finally(from_moz(M.finalizer)):null})},Property:function(M){var key=M.key;var name=key.type=="Identifier"?key.name:key.value;var args={start:my_start_token(key),end:my_end_token(M.value),key:name,value:from_moz(M.value)};switch(M.kind){case"init":return new AST_ObjectKeyVal(args);case"set":args.value.name=from_moz(key);return new AST_ObjectSetter(args);case"get":args.value.name=from_moz(key);return new AST_ObjectGetter(args)}},ObjectExpression:function(M){return new AST_Object({start:my_start_token(M),end:my_end_token(M),properties:M.properties.map(function(prop){prop.type="Property";return from_moz(prop)})})},SequenceExpression:function(M){return AST_Seq.from_array(M.expressions.map(from_moz))},MemberExpression:function(M){return new(M.computed?AST_Sub:AST_Dot)({start:my_start_token(M),end:my_end_token(M),property:M.computed?from_moz(M.property):M.property.name,expression:from_moz(M.object)})},SwitchCase:function(M){return new(M.test?AST_Case:AST_Default)({start:my_start_token(M),end:my_end_token(M),expression:from_moz(M.test),body:M.consequent.map(from_moz)})},VariableDeclaration:function(M){return new(M.kind==="const"?AST_Const:AST_Var)({start:my_start_token(M),end:my_end_token(M),definitions:M.declarations.map(from_moz)})},Literal:function(M){var val=M.value,args={start:my_start_token(M),end:my_end_token(M)};if(val===null)return new AST_Null(args);switch(typeof val){case"string":args.value=val;return new AST_String(args);case"number":args.value=val;return new AST_Number(args);case"boolean":return new(val?AST_True:AST_False)(args);default:args.value=val;return new AST_RegExp(args)}},Identifier:function(M){var p=FROM_MOZ_STACK[FROM_MOZ_STACK.length-2];return new(p.type=="LabeledStatement"?AST_Label:p.type=="VariableDeclarator"&&p.id===M?p.kind=="const"?AST_SymbolConst:AST_SymbolVar:p.type=="FunctionExpression"?p.id===M?AST_SymbolLambda:AST_SymbolFunarg:p.type=="FunctionDeclaration"?p.id===M?AST_SymbolDefun:AST_SymbolFunarg:p.type=="CatchClause"?AST_SymbolCatch:p.type=="BreakStatement"||p.type=="ContinueStatement"?AST_LabelRef:AST_SymbolRef)({start:my_start_token(M),end:my_end_token(M),name:M.name})}};MOZ_TO_ME.UpdateExpression=MOZ_TO_ME.UnaryExpression=function To_Moz_Unary(M){var prefix="prefix"in M?M.prefix:M.type=="UnaryExpression"?true:false;return new(prefix?AST_UnaryPrefix:AST_UnaryPostfix)({start:my_start_token(M),end:my_end_token(M),operator:M.operator,expression:from_moz(M.argument)})};map("Program",AST_Toplevel,"body@body");map("EmptyStatement",AST_EmptyStatement);map("BlockStatement",AST_BlockStatement,"body@body");map("IfStatement",AST_If,"test>condition, consequent>body, alternate>alternative");map("LabeledStatement",AST_LabeledStatement,"label>label, body>body");map("BreakStatement",AST_Break,"label>label");map("ContinueStatement",AST_Continue,"label>label");map("WithStatement",AST_With,"object>expression, body>body");map("SwitchStatement",AST_Switch,"discriminant>expression, cases@body"); -map("ReturnStatement",AST_Return,"argument>value");map("ThrowStatement",AST_Throw,"argument>value");map("WhileStatement",AST_While,"test>condition, body>body");map("DoWhileStatement",AST_Do,"test>condition, body>body");map("ForStatement",AST_For,"init>init, test>condition, update>step, body>body");map("ForInStatement",AST_ForIn,"left>init, right>object, body>body");map("DebuggerStatement",AST_Debugger);map("FunctionDeclaration",AST_Defun,"id>name, params@argnames, body%body");map("VariableDeclarator",AST_VarDef,"id>name, init>value");map("CatchClause",AST_Catch,"param>argname, body%body");map("ThisExpression",AST_This);map("ArrayExpression",AST_Array,"elements@elements");map("FunctionExpression",AST_Function,"id>name, params@argnames, body%body");map("BinaryExpression",AST_Binary,"operator=operator, left>left, right>right");map("LogicalExpression",AST_Binary,"operator=operator, left>left, right>right");map("AssignmentExpression",AST_Assign,"operator=operator, left>left, right>right");map("ConditionalExpression",AST_Conditional,"test>condition, consequent>consequent, alternate>alternative");map("NewExpression",AST_New,"callee>expression, arguments@args");map("CallExpression",AST_Call,"callee>expression, arguments@args");def_to_moz(AST_Directive,function To_Moz_Directive(M){return{type:"ExpressionStatement",expression:{type:"Literal",value:M.value}}});def_to_moz(AST_SimpleStatement,function To_Moz_ExpressionStatement(M){return{type:"ExpressionStatement",expression:to_moz(M.body)}});def_to_moz(AST_SwitchBranch,function To_Moz_SwitchCase(M){return{type:"SwitchCase",test:to_moz(M.expression),consequent:M.body.map(to_moz)}});def_to_moz(AST_Try,function To_Moz_TryStatement(M){return{type:"TryStatement",block:to_moz_block(M),handler:to_moz(M.bcatch),guardedHandlers:[],finalizer:to_moz(M.bfinally)}});def_to_moz(AST_Catch,function To_Moz_CatchClause(M){return{type:"CatchClause",param:to_moz(M.argname),guard:null,body:to_moz_block(M)}});def_to_moz(AST_Definitions,function To_Moz_VariableDeclaration(M){return{type:"VariableDeclaration",kind:M instanceof AST_Const?"const":"var",declarations:M.definitions.map(to_moz)}});def_to_moz(AST_Seq,function To_Moz_SequenceExpression(M){return{type:"SequenceExpression",expressions:M.to_array().map(to_moz)}});def_to_moz(AST_PropAccess,function To_Moz_MemberExpression(M){var isComputed=M instanceof AST_Sub;return{type:"MemberExpression",object:to_moz(M.expression),computed:isComputed,property:isComputed?to_moz(M.property):{type:"Identifier",name:M.property}}});def_to_moz(AST_Unary,function To_Moz_Unary(M){return{type:M.operator=="++"||M.operator=="--"?"UpdateExpression":"UnaryExpression",operator:M.operator,prefix:M instanceof AST_UnaryPrefix,argument:to_moz(M.expression)}});def_to_moz(AST_Binary,function To_Moz_BinaryExpression(M){return{type:M.operator=="&&"||M.operator=="||"?"LogicalExpression":"BinaryExpression",left:to_moz(M.left),operator:M.operator,right:to_moz(M.right)}});def_to_moz(AST_Object,function To_Moz_ObjectExpression(M){return{type:"ObjectExpression",properties:M.properties.map(to_moz)}});def_to_moz(AST_ObjectProperty,function To_Moz_Property(M){var key=is_identifier(M.key)?{type:"Identifier",name:M.key}:{type:"Literal",value:M.key};var kind;if(M instanceof AST_ObjectKeyVal){kind="init"}else if(M instanceof AST_ObjectGetter){kind="get"}else if(M instanceof AST_ObjectSetter){kind="set"}return{type:"Property",kind:kind,key:key,value:to_moz(M.value)}});def_to_moz(AST_Symbol,function To_Moz_Identifier(M){var def=M.definition();return{type:"Identifier",name:def?def.mangled_name||def.name:M.name}});def_to_moz(AST_Constant,function To_Moz_Literal(M){var value=M.value;if(typeof value==="number"&&(value<0||value===0&&1/value<0)){return{type:"UnaryExpression",operator:"-",prefix:true,argument:{type:"Literal",value:-value}}}return{type:"Literal",value:value}});def_to_moz(AST_Atom,function To_Moz_Atom(M){return{type:"Identifier",name:String(M.value)}});AST_Boolean.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Null.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Hole.DEFMETHOD("to_mozilla_ast",function To_Moz_ArrayHole(){return null});AST_Block.DEFMETHOD("to_mozilla_ast",AST_BlockStatement.prototype.to_mozilla_ast);AST_Lambda.DEFMETHOD("to_mozilla_ast",AST_Function.prototype.to_mozilla_ast);function my_start_token(moznode){var loc=moznode.loc,start=loc&&loc.start;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:start&&start.line,col:start&&start.column,pos:range?range[0]:moznode.start,endline:start&&start.line,endcol:start&&start.column,endpos:range?range[0]:moznode.start})}function my_end_token(moznode){var loc=moznode.loc,end=loc&&loc.end;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:end&&end.line,col:end&&end.column,pos:range?range[1]:moznode.end,endline:end&&end.line,endcol:end&&end.column,endpos:range?range[1]:moznode.end})}function map(moztype,mytype,propmap){var moz_to_me="function From_Moz_"+moztype+"(M){\n";moz_to_me+="return new "+mytype.name+"({\n"+"start: my_start_token(M),\n"+"end: my_end_token(M)";var me_to_moz="function To_Moz_"+moztype+"(M){\n";me_to_moz+="return {\n"+"type: "+JSON.stringify(moztype);if(propmap)propmap.split(/\s*,\s*/).forEach(function(prop){var m=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(prop);if(!m)throw new Error("Can't understand property map: "+prop);var moz=m[1],how=m[2],my=m[3];moz_to_me+=",\n"+my+": ";me_to_moz+=",\n"+moz+": ";switch(how){case"@":moz_to_me+="M."+moz+".map(from_moz)";me_to_moz+="M."+my+".map(to_moz)";break;case">":moz_to_me+="from_moz(M."+moz+")";me_to_moz+="to_moz(M."+my+")";break;case"=":moz_to_me+="M."+moz;me_to_moz+="M."+my;break;case"%":moz_to_me+="from_moz(M."+moz+").body";me_to_moz+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+prop)}});moz_to_me+="\n})\n}";me_to_moz+="\n}\n}";moz_to_me=new Function("my_start_token","my_end_token","from_moz","return("+moz_to_me+")")(my_start_token,my_end_token,from_moz);me_to_moz=new Function("to_moz","to_moz_block","return("+me_to_moz+")")(to_moz,to_moz_block);MOZ_TO_ME[moztype]=moz_to_me;def_to_moz(mytype,me_to_moz)}var FROM_MOZ_STACK=null;function from_moz(node){FROM_MOZ_STACK.push(node);var ret=node!=null?MOZ_TO_ME[node.type](node):null;FROM_MOZ_STACK.pop();return ret}AST_Node.from_mozilla_ast=function(node){var save_stack=FROM_MOZ_STACK;FROM_MOZ_STACK=[];var ast=from_moz(node);FROM_MOZ_STACK=save_stack;return ast};function set_moz_loc(mynode,moznode,myparent){var start=mynode.start;var end=mynode.end;if(start.pos!=null&&end.endpos!=null){moznode.range=[start.pos,end.endpos]}if(start.line){moznode.loc={start:{line:start.line,column:start.col},end:end.endline?{line:end.endline,column:end.endcol}:null};if(start.file){moznode.loc.source=start.file}}return moznode}function def_to_moz(mytype,handler){mytype.DEFMETHOD("to_mozilla_ast",function(){return set_moz_loc(this,handler(this))})}function to_moz(node){return node!=null?node.to_mozilla_ast():null}function to_moz_block(node){return{type:"BlockStatement",body:node.body.map(to_moz)}}})();"use strict";function find_builtins(){var a=[];[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(ctor){Object.getOwnPropertyNames(ctor).map(add);if(ctor.prototype){Object.getOwnPropertyNames(ctor.prototype).map(add)}});function add(name){push_uniq(a,name)}return a}function mangle_properties(ast,options){options=defaults(options,{reserved:null,cache:null,only_cache:false});var reserved=options.reserved;if(reserved==null)reserved=find_builtins();var cache=options.cache;if(cache==null){cache={cname:-1,props:new Dictionary}}var names_to_mangle=[];ast.walk(new TreeWalker(function(node){if(node instanceof AST_ObjectKeyVal){add(node.key)}else if(node instanceof AST_ObjectProperty){add(node.key.name)}else if(node instanceof AST_Dot){if(this.parent()instanceof AST_Assign){add(node.property)}}else if(node instanceof AST_Sub){if(this.parent()instanceof AST_Assign){addStrings(node.property)}}}));return ast.transform(new TreeTransformer(function(node){if(node instanceof AST_ObjectKeyVal){if(should_mangle(node.key)){node.key=mangle(node.key)}}else if(node instanceof AST_ObjectProperty){if(should_mangle(node.key.name)){node.key.name=mangle(node.key.name)}}else if(node instanceof AST_Dot){if(should_mangle(node.property)){node.property=mangle(node.property)}}else if(node instanceof AST_Sub){node.property=mangleStrings(node.property)}}));function can_mangle(name){if(reserved.indexOf(name)>=0)return false;if(options.only_cache){return cache.props.has(name)}if(/^[0-9.]+$/.test(name))return false;return true}function should_mangle(name){if(reserved.indexOf(name)>=0)return false;return cache.props.has(name)||names_to_mangle.indexOf(name)>=0}function add(name){if(can_mangle(name))push_uniq(names_to_mangle,name)}function mangle(name){var mangled=cache.props.get(name);if(!mangled){do{mangled=base54(++cache.cname)}while(!can_mangle(mangled));cache.props.set(name,mangled)}return mangled}function addStrings(node){var out={};try{(function walk(node){node.walk(new TreeWalker(function(node){if(node instanceof AST_Seq){walk(node.cdr);return true}if(node instanceof AST_String){add(node.value);return true}if(node instanceof AST_Conditional){walk(node.consequent);walk(node.alternative);return true}throw out}))})(node)}catch(ex){if(ex!==out)throw ex}}function mangleStrings(node){return node.transform(new TreeTransformer(function(node){if(node instanceof AST_Seq){node.cdr=mangleStrings(node.cdr)}else if(node instanceof AST_String){if(should_mangle(node.value)){node.value=mangle(node.value)}}else if(node instanceof AST_Conditional){node.consequent=mangleStrings(node.consequent);node.alternative=mangleStrings(node.alternative)}return node}))}}exports["array_to_hash"]=array_to_hash;exports["slice"]=slice;exports["characters"]=characters;exports["member"]=member;exports["find_if"]=find_if;exports["repeat_string"]=repeat_string;exports["DefaultsError"]=DefaultsError;exports["defaults"]=defaults;exports["merge"]=merge;exports["noop"]=noop;exports["MAP"]=MAP;exports["push_uniq"]=push_uniq;exports["string_template"]=string_template;exports["remove"]=remove;exports["mergeSort"]=mergeSort;exports["set_difference"]=set_difference;exports["set_intersection"]=set_intersection;exports["makePredicate"]=makePredicate;exports["all"]=all;exports["Dictionary"]=Dictionary;exports["DEFNODE"]=DEFNODE;exports["AST_Token"]=AST_Token;exports["AST_Node"]=AST_Node;exports["AST_Statement"]=AST_Statement;exports["AST_Debugger"]=AST_Debugger;exports["AST_Directive"]=AST_Directive;exports["AST_SimpleStatement"]=AST_SimpleStatement;exports["walk_body"]=walk_body;exports["AST_Block"]=AST_Block;exports["AST_BlockStatement"]=AST_BlockStatement;exports["AST_EmptyStatement"]=AST_EmptyStatement;exports["AST_StatementWithBody"]=AST_StatementWithBody;exports["AST_LabeledStatement"]=AST_LabeledStatement;exports["AST_IterationStatement"]=AST_IterationStatement;exports["AST_DWLoop"]=AST_DWLoop;exports["AST_Do"]=AST_Do;exports["AST_While"]=AST_While;exports["AST_For"]=AST_For;exports["AST_ForIn"]=AST_ForIn;exports["AST_With"]=AST_With;exports["AST_Scope"]=AST_Scope;exports["AST_Toplevel"]=AST_Toplevel;exports["AST_Lambda"]=AST_Lambda;exports["AST_Accessor"]=AST_Accessor;exports["AST_Function"]=AST_Function;exports["AST_Defun"]=AST_Defun;exports["AST_Jump"]=AST_Jump;exports["AST_Exit"]=AST_Exit;exports["AST_Return"]=AST_Return;exports["AST_Throw"]=AST_Throw;exports["AST_LoopControl"]=AST_LoopControl;exports["AST_Break"]=AST_Break;exports["AST_Continue"]=AST_Continue;exports["AST_If"]=AST_If;exports["AST_Switch"]=AST_Switch;exports["AST_SwitchBranch"]=AST_SwitchBranch;exports["AST_Default"]=AST_Default;exports["AST_Case"]=AST_Case;exports["AST_Try"]=AST_Try;exports["AST_Catch"]=AST_Catch;exports["AST_Finally"]=AST_Finally;exports["AST_Definitions"]=AST_Definitions;exports["AST_Var"]=AST_Var;exports["AST_Const"]=AST_Const;exports["AST_VarDef"]=AST_VarDef;exports["AST_Call"]=AST_Call;exports["AST_New"]=AST_New;exports["AST_Seq"]=AST_Seq;exports["AST_PropAccess"]=AST_PropAccess;exports["AST_Dot"]=AST_Dot;exports["AST_Sub"]=AST_Sub;exports["AST_Unary"]=AST_Unary;exports["AST_UnaryPrefix"]=AST_UnaryPrefix;exports["AST_UnaryPostfix"]=AST_UnaryPostfix;exports["AST_Binary"]=AST_Binary;exports["AST_Conditional"]=AST_Conditional;exports["AST_Assign"]=AST_Assign;exports["AST_Array"]=AST_Array;exports["AST_Object"]=AST_Object;exports["AST_ObjectProperty"]=AST_ObjectProperty;exports["AST_ObjectKeyVal"]=AST_ObjectKeyVal;exports["AST_ObjectSetter"]=AST_ObjectSetter;exports["AST_ObjectGetter"]=AST_ObjectGetter;exports["AST_Symbol"]=AST_Symbol;exports["AST_SymbolAccessor"]=AST_SymbolAccessor;exports["AST_SymbolDeclaration"]=AST_SymbolDeclaration;exports["AST_SymbolVar"]=AST_SymbolVar;exports["AST_SymbolConst"]=AST_SymbolConst;exports["AST_SymbolFunarg"]=AST_SymbolFunarg;exports["AST_SymbolDefun"]=AST_SymbolDefun;exports["AST_SymbolLambda"]=AST_SymbolLambda;exports["AST_SymbolCatch"]=AST_SymbolCatch;exports["AST_Label"]=AST_Label;exports["AST_SymbolRef"]=AST_SymbolRef;exports["AST_LabelRef"]=AST_LabelRef;exports["AST_This"]=AST_This;exports["AST_Constant"]=AST_Constant;exports["AST_String"]=AST_String;exports["AST_Number"]=AST_Number;exports["AST_RegExp"]=AST_RegExp;exports["AST_Atom"]=AST_Atom;exports["AST_Null"]=AST_Null;exports["AST_NaN"]=AST_NaN;exports["AST_Undefined"]=AST_Undefined;exports["AST_Hole"]=AST_Hole;exports["AST_Infinity"]=AST_Infinity;exports["AST_Boolean"]=AST_Boolean;exports["AST_False"]=AST_False;exports["AST_True"]=AST_True;exports["TreeWalker"]=TreeWalker;exports["KEYWORDS"]=KEYWORDS;exports["KEYWORDS_ATOM"]=KEYWORDS_ATOM;exports["RESERVED_WORDS"]=RESERVED_WORDS;exports["KEYWORDS_BEFORE_EXPRESSION"]=KEYWORDS_BEFORE_EXPRESSION;exports["OPERATOR_CHARS"]=OPERATOR_CHARS;exports["RE_HEX_NUMBER"]=RE_HEX_NUMBER;exports["RE_OCT_NUMBER"]=RE_OCT_NUMBER;exports["RE_DEC_NUMBER"]=RE_DEC_NUMBER;exports["OPERATORS"]=OPERATORS;exports["WHITESPACE_CHARS"]=WHITESPACE_CHARS;exports["PUNC_BEFORE_EXPRESSION"]=PUNC_BEFORE_EXPRESSION;exports["PUNC_CHARS"]=PUNC_CHARS;exports["REGEXP_MODIFIERS"]=REGEXP_MODIFIERS;exports["UNICODE"]=UNICODE;exports["is_letter"]=is_letter;exports["is_digit"]=is_digit;exports["is_alphanumeric_char"]=is_alphanumeric_char;exports["is_unicode_digit"]=is_unicode_digit;exports["is_unicode_combining_mark"]=is_unicode_combining_mark;exports["is_unicode_connector_punctuation"]=is_unicode_connector_punctuation;exports["is_identifier"]=is_identifier;exports["is_identifier_start"]=is_identifier_start;exports["is_identifier_char"]=is_identifier_char;exports["is_identifier_string"]=is_identifier_string;exports["parse_js_number"]=parse_js_number;exports["JS_Parse_Error"]=JS_Parse_Error;exports["js_error"]=js_error;exports["is_token"]=is_token;exports["EX_EOF"]=EX_EOF;exports["tokenizer"]=tokenizer;exports["UNARY_PREFIX"]=UNARY_PREFIX;exports["UNARY_POSTFIX"]=UNARY_POSTFIX;exports["ASSIGNMENT"]=ASSIGNMENT;exports["PRECEDENCE"]=PRECEDENCE;exports["STATEMENTS_WITH_LABELS"]=STATEMENTS_WITH_LABELS;exports["ATOMIC_START_TOKEN"]=ATOMIC_START_TOKEN;exports["parse"]=parse;exports["TreeTransformer"]=TreeTransformer;exports["SymbolDef"]=SymbolDef;exports["base54"]=base54;exports["OutputStream"]=OutputStream;exports["Compressor"]=Compressor;exports["SourceMap"]=SourceMap;exports["find_builtins"]=find_builtins;exports["mangle_properties"]=mangle_properties})({},function(){return this}()); \ No newline at end of file +return make_node(AST_BlockStatement,self,{body:a})}}}return self});function if_break_in_loop(self,compressor){function drop_it(rest){rest=as_statement_array(rest);if(self.body instanceof AST_BlockStatement){self.body=self.body.clone();self.body.body=rest.concat(self.body.body.slice(1));self.body=self.body.transform(compressor)}else{self.body=make_node(AST_BlockStatement,self.body,{body:rest}).transform(compressor)}if_break_in_loop(self,compressor)}var first=self.body instanceof AST_BlockStatement?self.body.body[0]:self.body;if(first instanceof AST_If){if(first.body instanceof AST_Break&&compressor.loopcontrol_target(first.body.label)===self){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition.negate(compressor)})}else{self.condition=first.condition.negate(compressor)}drop_it(first.alternative)}else if(first.alternative instanceof AST_Break&&compressor.loopcontrol_target(first.alternative.label)===self){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition})}else{self.condition=first.condition}drop_it(first.body)}}}OPT(AST_While,function(self,compressor){if(!compressor.option("loops"))return self;self=AST_DWLoop.prototype.optimize.call(self,compressor);if(self instanceof AST_While){if_break_in_loop(self,compressor);self=make_node(AST_For,self,self).transform(compressor)}return self});OPT(AST_For,function(self,compressor){var cond=self.condition;if(cond){cond=cond.evaluate(compressor);self.condition=cond[0]}if(!compressor.option("loops"))return self;if(cond){if(cond.length>1&&!cond[1]){if(compressor.option("dead_code")){var a=[];if(self.init instanceof AST_Statement){a.push(self.init)}else if(self.init){a.push(make_node(AST_SimpleStatement,self.init,{body:self.init}))}extract_declarations_from_unreachable_code(compressor,self.body,a);return make_node(AST_BlockStatement,self,{body:a})}}}if_break_in_loop(self,compressor);return self});OPT(AST_If,function(self,compressor){if(!compressor.option("conditionals"))return self;var cond=self.condition.evaluate(compressor);self.condition=cond[0];if(cond.length>1){if(cond[1]){compressor.warn("Condition always true [{file}:{line},{col}]",self.condition.start);if(compressor.option("dead_code")){var a=[];if(self.alternative){extract_declarations_from_unreachable_code(compressor,self.alternative,a)}a.push(self.body);return make_node(AST_BlockStatement,self,{body:a}).transform(compressor)}}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.condition.start);if(compressor.option("dead_code")){var a=[];extract_declarations_from_unreachable_code(compressor,self.body,a);if(self.alternative)a.push(self.alternative);return make_node(AST_BlockStatement,self,{body:a}).transform(compressor)}}}if(is_empty(self.alternative))self.alternative=null;var negated=self.condition.negate(compressor);var negated_is_best=best_of(self.condition,negated)===negated;if(self.alternative&&negated_is_best){negated_is_best=false;self.condition=negated;var tmp=self.body;self.body=self.alternative||make_node(AST_EmptyStatement);self.alternative=tmp}if(is_empty(self.body)&&is_empty(self.alternative)){return make_node(AST_SimpleStatement,self.condition,{body:self.condition}).transform(compressor)}if(self.body instanceof AST_SimpleStatement&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.body,alternative:self.alternative.body})}).transform(compressor)}if(is_empty(self.alternative)&&self.body instanceof AST_SimpleStatement){if(negated_is_best)return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:negated,right:self.body.body})}).transform(compressor);return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"&&",left:self.condition,right:self.body.body})}).transform(compressor)}if(self.body instanceof AST_EmptyStatement&&self.alternative&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:self.condition,right:self.alternative.body})}).transform(compressor)}if(self.body instanceof AST_Exit&&self.alternative instanceof AST_Exit&&self.body.TYPE==self.alternative.TYPE){return make_node(self.body.CTOR,self,{value:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.value||make_node(AST_Undefined,self.body).optimize(compressor),alternative:self.alternative.value||make_node(AST_Undefined,self.alternative).optimize(compressor)})}).transform(compressor)}if(self.body instanceof AST_If&&!self.body.alternative&&!self.alternative){self.condition=make_node(AST_Binary,self.condition,{operator:"&&",left:self.condition,right:self.body.condition}).transform(compressor);self.body=self.body.body}if(aborts(self.body)){if(self.alternative){var alt=self.alternative;self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,alt]}).transform(compressor)}}if(aborts(self.alternative)){var body=self.body;self.body=self.alternative;self.condition=negated_is_best?negated:self.condition.negate(compressor);self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,body]}).transform(compressor)}return self});OPT(AST_Switch,function(self,compressor){if(self.body.length==0&&compressor.option("conditionals")){return make_node(AST_SimpleStatement,self,{body:self.expression}).transform(compressor)}for(;;){var last_branch=self.body[self.body.length-1];if(last_branch){var stat=last_branch.body[last_branch.body.length-1];if(stat instanceof AST_Break&&loop_body(compressor.loopcontrol_target(stat.label))===self)last_branch.body.pop();if(last_branch instanceof AST_Default&&last_branch.body.length==0){self.body.pop();continue}}break}var exp=self.expression.evaluate(compressor);out:if(exp.length==2)try{self.expression=exp[0];if(!compressor.option("dead_code"))break out;var value=exp[1];var in_if=false;var in_block=false;var started=false;var stopped=false;var ruined=false;var tt=new TreeTransformer(function(node,descend,in_list){if(node instanceof AST_Lambda||node instanceof AST_SimpleStatement){return node}else if(node instanceof AST_Switch&&node===self){node=node.clone();descend(node,this);return ruined?node:make_node(AST_BlockStatement,node,{body:node.body.reduce(function(a,branch){return a.concat(branch.body)},[])}).transform(compressor)}else if(node instanceof AST_If||node instanceof AST_Try){var save=in_if;in_if=!in_block;descend(node,this);in_if=save;return node}else if(node instanceof AST_StatementWithBody||node instanceof AST_Switch){var save=in_block;in_block=true;descend(node,this);in_block=save;return node}else if(node instanceof AST_Break&&this.loopcontrol_target(node.label)===self){if(in_if){ruined=true;return node}if(in_block)return node;stopped=true;return in_list?MAP.skip:make_node(AST_EmptyStatement,node)}else if(node instanceof AST_SwitchBranch&&this.parent()===self){if(stopped)return MAP.skip;if(node instanceof AST_Case){var exp=node.expression.evaluate(compressor);if(exp.length<2){throw self}if(exp[1]===value||started){started=true;if(aborts(node))stopped=true;descend(node,this);return node}return MAP.skip}descend(node,this);return node}});tt.stack=compressor.stack.slice();self=self.transform(tt)}catch(ex){if(ex!==self)throw ex}return self});OPT(AST_Case,function(self,compressor){self.body=tighten_body(self.body,compressor);return self});OPT(AST_Try,function(self,compressor){self.body=tighten_body(self.body,compressor);return self});AST_Definitions.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(def){def.value=null})});AST_Definitions.DEFMETHOD("to_assignments",function(){var assignments=this.definitions.reduce(function(a,def){if(def.value){var name=make_node(AST_SymbolRef,def.name,def.name);a.push(make_node(AST_Assign,def,{operator:"=",left:name,right:def.value}))}return a},[]);if(assignments.length==0)return null;return AST_Seq.from_array(assignments)});OPT(AST_Definitions,function(self,compressor){if(self.definitions.length==0)return make_node(AST_EmptyStatement,self);return self});OPT(AST_Function,function(self,compressor){self=AST_Lambda.prototype.optimize.call(self,compressor);if(compressor.option("unused")&&!compressor.option("keep_fnames")){if(self.name&&self.name.unreferenced()){self.name=null}}return self});OPT(AST_Call,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared()){switch(exp.name){case"Array":if(self.args.length!=1){return make_node(AST_Array,self,{elements:self.args}).transform(compressor)}break;case"Object":if(self.args.length==0){return make_node(AST_Object,self,{properties:[]})}break;case"String":if(self.args.length==0)return make_node(AST_String,self,{value:""});if(self.args.length<=1)return make_node(AST_Binary,self,{left:self.args[0],operator:"+",right:make_node(AST_String,self,{value:""})}).transform(compressor);break;case"Number":if(self.args.length==0)return make_node(AST_Number,self,{value:0});if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:self.args[0],operator:"+"}).transform(compressor);case"Boolean":if(self.args.length==0)return make_node(AST_False,self);if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:make_node(AST_UnaryPrefix,null,{expression:self.args[0],operator:"!"}),operator:"!"}).transform(compressor);break;case"Function":if(self.args.length==0)return make_node(AST_Function,self,{argnames:[],body:[]});if(all(self.args,function(x){return x instanceof AST_String})){try{var code="(function("+self.args.slice(0,-1).map(function(arg){return arg.value}).join(",")+"){"+self.args[self.args.length-1].value+"})()";var ast=parse(code);ast.figure_out_scope({screw_ie8:compressor.option("screw_ie8")});var comp=new Compressor(compressor.options);ast=ast.transform(comp);ast.figure_out_scope({screw_ie8:compressor.option("screw_ie8")});ast.mangle_names();var fun;try{ast.walk(new TreeWalker(function(node){if(node instanceof AST_Lambda){fun=node;throw ast}}))}catch(ex){if(ex!==ast)throw ex}if(!fun)return self;var args=fun.argnames.map(function(arg,i){return make_node(AST_String,self.args[i],{value:arg.print_to_string()})});var code=OutputStream();AST_BlockStatement.prototype._codegen.call(fun,fun,code);code=code.toString().replace(/^\{|\}$/g,"");args.push(make_node(AST_String,self.args[self.args.length-1],{value:code}));self.args=args;return self}catch(ex){if(ex instanceof JS_Parse_Error){compressor.warn("Error parsing code passed to new Function [{file}:{line},{col}]",self.args[self.args.length-1].start);compressor.warn(ex.toString())}else{console.log(ex);throw ex}}}break}}else if(exp instanceof AST_Dot&&exp.property=="toString"&&self.args.length==0){return make_node(AST_Binary,self,{left:make_node(AST_String,self,{value:""}),operator:"+",right:exp.expression}).transform(compressor)}else if(exp instanceof AST_Dot&&exp.expression instanceof AST_Array&&exp.property=="join")EXIT:{var separator=self.args.length==0?",":self.args[0].evaluate(compressor)[1];if(separator==null)break EXIT;var elements=exp.expression.elements.reduce(function(a,el){el=el.evaluate(compressor);if(a.length==0||el.length==1){a.push(el)}else{var last=a[a.length-1];if(last.length==2){var val=""+last[1]+separator+el[1];a[a.length-1]=[make_node_from_constant(compressor,val,last[0]),val]}else{a.push(el)}}return a},[]);if(elements.length==0)return make_node(AST_String,self,{value:""});if(elements.length==1)return elements[0][0];if(separator==""){var first;if(elements[0][0]instanceof AST_String||elements[1][0]instanceof AST_String){first=elements.shift()[0]}else{first=make_node(AST_String,self,{value:""})}return elements.reduce(function(prev,el){return make_node(AST_Binary,el[0],{operator:"+",left:prev,right:el[0]})},first).transform(compressor)}var node=self.clone();node.expression=node.expression.clone();node.expression.expression=node.expression.expression.clone();node.expression.expression.elements=elements.map(function(el){return el[0]});return best_of(self,node)}}if(compressor.option("side_effects")){if(self.expression instanceof AST_Function&&self.args.length==0&&!AST_Block.prototype.has_side_effects.call(self.expression,compressor)){return make_node(AST_Undefined,self).transform(compressor)}}if(compressor.option("drop_console")){if(self.expression instanceof AST_PropAccess){var name=self.expression.expression;while(name.expression){name=name.expression}if(name instanceof AST_SymbolRef&&name.name=="console"&&name.undeclared()){return make_node(AST_Undefined,self).transform(compressor)}}}return self.evaluate(compressor)[0]});OPT(AST_New,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared()){switch(exp.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return make_node(AST_Call,self,self).transform(compressor)}}}return self});OPT(AST_Seq,function(self,compressor){if(!compressor.option("side_effects"))return self;if(!self.car.has_side_effects(compressor)){var p;if(!(self.cdr instanceof AST_SymbolRef&&self.cdr.name=="eval"&&self.cdr.undeclared()&&(p=compressor.parent())instanceof AST_Call&&p.expression===self)){return self.cdr}}if(compressor.option("cascade")){if(self.car instanceof AST_Assign&&!self.car.left.has_side_effects(compressor)){if(self.car.left.equivalent_to(self.cdr)){return self.car}if(self.cdr instanceof AST_Call&&self.cdr.expression.equivalent_to(self.car.left)){self.cdr.expression=self.car;return self.cdr}}if(!self.car.has_side_effects(compressor)&&!self.cdr.has_side_effects(compressor)&&self.car.equivalent_to(self.cdr)){return self.car}}if(self.cdr instanceof AST_UnaryPrefix&&self.cdr.operator=="void"&&!self.cdr.expression.has_side_effects(compressor)){self.cdr.expression=self.car;return self.cdr}if(self.cdr instanceof AST_Undefined){return make_node(AST_UnaryPrefix,self,{operator:"void",expression:self.car})}return self});AST_Unary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.expression instanceof AST_Seq){var seq=this.expression;var x=seq.to_array();this.expression=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}}return this});OPT(AST_UnaryPostfix,function(self,compressor){return self.lift_sequences(compressor)});OPT(AST_UnaryPrefix,function(self,compressor){self=self.lift_sequences(compressor);var e=self.expression;if(compressor.option("booleans")&&compressor.in_boolean_context()){switch(self.operator){case"!":if(e instanceof AST_UnaryPrefix&&e.operator=="!"){return e.expression}break;case"typeof":compressor.warn("Boolean expression always true [{file}:{line},{col}]",self.start);return make_node(AST_True,self)}if(e instanceof AST_Binary&&self.operator=="!"){self=best_of(self,e.negate(compressor))}}return self.evaluate(compressor)[0]});function has_side_effects_or_prop_access(node,compressor){var save_pure_getters=compressor.option("pure_getters");compressor.options.pure_getters=false;var ret=node.has_side_effects(compressor);compressor.options.pure_getters=save_pure_getters;return ret}AST_Binary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.left instanceof AST_Seq){var seq=this.left;var x=seq.to_array();this.left=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}if(this.right instanceof AST_Seq&&this instanceof AST_Assign&&!has_side_effects_or_prop_access(this.left,compressor)){var seq=this.right;var x=seq.to_array();this.right=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}}return this});var commutativeOperators=makePredicate("== === != !== * & | ^");OPT(AST_Binary,function(self,compressor){var reverse=compressor.has_directive("use asm")?noop:function(op,force){if(force||!(self.left.has_side_effects(compressor)||self.right.has_side_effects(compressor))){if(op)self.operator=op;var tmp=self.left;self.left=self.right;self.right=tmp}};if(commutativeOperators(self.operator)){if(self.right instanceof AST_Constant&&!(self.left instanceof AST_Constant)){if(!(self.left instanceof AST_Binary&&PRECEDENCE[self.left.operator]>=PRECEDENCE[self.operator])){reverse(null,true)}}if(/^[!=]==?$/.test(self.operator)){if(self.left instanceof AST_SymbolRef&&self.right instanceof AST_Conditional){if(self.right.consequent instanceof AST_SymbolRef&&self.right.consequent.definition()===self.left.definition()){if(/^==/.test(self.operator))return self.right.condition;if(/^!=/.test(self.operator))return self.right.condition.negate(compressor)}if(self.right.alternative instanceof AST_SymbolRef&&self.right.alternative.definition()===self.left.definition()){if(/^==/.test(self.operator))return self.right.condition.negate(compressor);if(/^!=/.test(self.operator))return self.right.condition}}if(self.right instanceof AST_SymbolRef&&self.left instanceof AST_Conditional){if(self.left.consequent instanceof AST_SymbolRef&&self.left.consequent.definition()===self.right.definition()){if(/^==/.test(self.operator))return self.left.condition;if(/^!=/.test(self.operator))return self.left.condition.negate(compressor)}if(self.left.alternative instanceof AST_SymbolRef&&self.left.alternative.definition()===self.right.definition()){if(/^==/.test(self.operator))return self.left.condition.negate(compressor);if(/^!=/.test(self.operator))return self.left.condition}}}}self=self.lift_sequences(compressor);if(compressor.option("comparisons"))switch(self.operator){case"===":case"!==":if(self.left.is_string(compressor)&&self.right.is_string(compressor)||self.left.is_boolean()&&self.right.is_boolean()){self.operator=self.operator.substr(0,2)}case"==":case"!=":if(self.left instanceof AST_String&&self.left.value=="undefined"&&self.right instanceof AST_UnaryPrefix&&self.right.operator=="typeof"&&compressor.option("unsafe")){if(!(self.right.expression instanceof AST_SymbolRef)||!self.right.expression.undeclared()){self.right=self.right.expression;self.left=make_node(AST_Undefined,self.left).optimize(compressor);if(self.operator.length==2)self.operator+="="}}break}if(compressor.option("conditionals")){if(self.operator=="&&"){var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1){if(ll[1]){compressor.warn("Condition left of && always true [{file}:{line},{col}]",self.start);return rr[0]}else{compressor.warn("Condition left of && always false [{file}:{line},{col}]",self.start);return ll[0]}}}else if(self.operator=="||"){var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1){if(ll[1]){compressor.warn("Condition left of || always true [{file}:{line},{col}]",self.start);return ll[0]}else{compressor.warn("Condition left of || always false [{file}:{line},{col}]",self.start);return rr[0]}}}}if(compressor.option("booleans")&&compressor.in_boolean_context())switch(self.operator){case"&&":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&!ll[1]||rr.length>1&&!rr[1]){compressor.warn("Boolean && always false [{file}:{line},{col}]",self.start);if(self.left.has_side_effects(compressor)){return make_node(AST_Seq,self,{car:self.left,cdr:make_node(AST_False)}).optimize(compressor)}return make_node(AST_False,self)}if(ll.length>1&&ll[1]){return rr[0]}if(rr.length>1&&rr[1]){return ll[0]}break;case"||":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&ll[1]||rr.length>1&&rr[1]){compressor.warn("Boolean || always true [{file}:{line},{col}]",self.start);if(self.left.has_side_effects(compressor)){return make_node(AST_Seq,self,{car:self.left,cdr:make_node(AST_True)}).optimize(compressor)}return make_node(AST_True,self)}if(ll.length>1&&!ll[1]){return rr[0]}if(rr.length>1&&!rr[1]){return ll[0]}break;case"+":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&ll[0]instanceof AST_String&&ll[1]||rr.length>1&&rr[0]instanceof AST_String&&rr[1]){compressor.warn("+ in boolean context always true [{file}:{line},{col}]",self.start);return make_node(AST_True,self)}break}if(compressor.option("comparisons")&&self.is_boolean()){if(!(compressor.parent()instanceof AST_Binary)||compressor.parent()instanceof AST_Assign){var negated=make_node(AST_UnaryPrefix,self,{operator:"!",expression:self.negate(compressor)});self=best_of(self,negated)}switch(self.operator){case"<":reverse(">");break;case"<=":reverse(">=");break}}if(self.operator=="+"&&self.right instanceof AST_String&&self.right.getValue()===""&&self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.is_string(compressor)){return self.left}if(compressor.option("evaluate")){if(self.operator=="+"){if(self.left instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_String,null,{value:""+self.left.getValue()+self.right.left.getValue(),start:self.left.start,end:self.right.left.end}),right:self.right.right})}if(self.right instanceof AST_Constant&&self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.right instanceof AST_Constant&&self.left.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:self.left.left,right:make_node(AST_String,null,{value:""+self.left.right.getValue()+self.right.getValue(),start:self.left.right.start,end:self.right.end})})}if(self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.is_string(compressor)&&self.left.right instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_Binary,self.left,{operator:"+",left:self.left.left,right:make_node(AST_String,null,{value:""+self.left.right.getValue()+self.right.left.getValue(),start:self.left.right.start,end:self.right.left.end})}),right:self.right.right})}}}if(self.right instanceof AST_Binary&&self.right.operator==self.operator&&(self.operator=="&&"||self.operator=="||")){self.left=make_node(AST_Binary,self.left,{operator:self.operator,left:self.left,right:self.right.left});self.right=self.right.right;return self.transform(compressor)}return self.evaluate(compressor)[0]});OPT(AST_SymbolRef,function(self,compressor){if(self.undeclared()){var defines=compressor.option("global_defs");if(defines&&defines.hasOwnProperty(self.name)){return make_node_from_constant(compressor,defines[self.name],self)}switch(self.name){case"undefined":return make_node(AST_Undefined,self);case"NaN":return make_node(AST_NaN,self).transform(compressor);case"Infinity":return make_node(AST_Infinity,self).transform(compressor)}}return self});OPT(AST_Infinity,function(self,compressor){return make_node(AST_Binary,self,{operator:"/",left:make_node(AST_Number,self,{value:1}),right:make_node(AST_Number,self,{value:0})})});OPT(AST_Undefined,function(self,compressor){if(compressor.option("unsafe")){var scope=compressor.find_parent(AST_Scope);var undef=scope.find_variable("undefined");if(undef){var ref=make_node(AST_SymbolRef,self,{name:"undefined",scope:scope,thedef:undef});ref.reference();return ref}}return self});var ASSIGN_OPS=["+","-","/","*","%",">>","<<",">>>","|","^","&"];OPT(AST_Assign,function(self,compressor){self=self.lift_sequences(compressor);if(self.operator=="="&&self.left instanceof AST_SymbolRef&&self.right instanceof AST_Binary&&self.right.left instanceof AST_SymbolRef&&self.right.left.name==self.left.name&&member(self.right.operator,ASSIGN_OPS)){self.operator=self.right.operator+"=";self.right=self.right.right}return self});OPT(AST_Conditional,function(self,compressor){if(!compressor.option("conditionals"))return self;if(self.condition instanceof AST_Seq){var car=self.condition.car;self.condition=self.condition.cdr;return AST_Seq.cons(car,self)}var cond=self.condition.evaluate(compressor);if(cond.length>1){if(cond[1]){compressor.warn("Condition always true [{file}:{line},{col}]",self.start);return self.consequent}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.start);return self.alternative}}var negated=cond[0].negate(compressor);if(best_of(cond[0],negated)===negated){self=make_node(AST_Conditional,self,{condition:negated,consequent:self.alternative,alternative:self.consequent})}var consequent=self.consequent;var alternative=self.alternative;if(consequent instanceof AST_Assign&&alternative instanceof AST_Assign&&consequent.operator==alternative.operator&&consequent.left.equivalent_to(alternative.left)&&!consequent.left.has_side_effects(compressor)){return make_node(AST_Assign,self,{operator:consequent.operator,left:consequent.left,right:make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.right,alternative:alternative.right})})}if(consequent instanceof AST_Call&&alternative.TYPE===consequent.TYPE&&consequent.args.length==alternative.args.length&&!consequent.expression.has_side_effects(compressor)&&consequent.expression.equivalent_to(alternative.expression)){if(consequent.args.length==0){return make_node(AST_Seq,self,{car:self.condition,cdr:consequent})}if(consequent.args.length==1){consequent.args[0]=make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.args[0],alternative:alternative.args[0]});return consequent}}if(consequent instanceof AST_Conditional&&consequent.alternative.equivalent_to(alternative)){return make_node(AST_Conditional,self,{condition:make_node(AST_Binary,self,{left:self.condition,operator:"&&",right:consequent.condition}),consequent:consequent.consequent,alternative:alternative})}if(consequent instanceof AST_Constant&&alternative instanceof AST_Constant&&consequent.equivalent_to(alternative)){if(self.condition.has_side_effects(compressor)){return AST_Seq.from_array([self.condition,make_node_from_constant(compressor,consequent.value,self)])}else{return make_node_from_constant(compressor,consequent.value,self)}}if(consequent instanceof AST_True&&alternative instanceof AST_False){self.condition=self.condition.negate(compressor);return make_node(AST_UnaryPrefix,self.condition,{operator:"!",expression:self.condition})}if(consequent instanceof AST_False&&alternative instanceof AST_True){return self.condition.negate(compressor)}return self});OPT(AST_Boolean,function(self,compressor){if(compressor.option("booleans")){var p=compressor.parent();if(p instanceof AST_Binary&&(p.operator=="=="||p.operator=="!=")){compressor.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:p.operator,value:self.value,file:p.start.file,line:p.start.line,col:p.start.col});return make_node(AST_Number,self,{value:+self.value})}return make_node(AST_UnaryPrefix,self,{operator:"!",expression:make_node(AST_Number,self,{value:1-self.value})})}return self});OPT(AST_Sub,function(self,compressor){var prop=self.property;if(prop instanceof AST_String&&compressor.option("properties")){prop=prop.getValue();if(RESERVED_WORDS(prop)?compressor.option("screw_ie8"):is_identifier_string(prop)){return make_node(AST_Dot,self,{expression:self.expression,property:prop}).optimize(compressor)}var v=parseFloat(prop);if(!isNaN(v)&&v.toString()==prop){self.property=make_node(AST_Number,self.property,{value:v})}}return self});OPT(AST_Dot,function(self,compressor){var prop=self.property;if(RESERVED_WORDS(prop)&&!compressor.option("screw_ie8")){return make_node(AST_Sub,self,{expression:self.expression,property:make_node(AST_String,self,{value:prop})}).optimize(compressor)}return self.evaluate(compressor)[0]});function literals_in_boolean_context(self,compressor){if(compressor.option("booleans")&&compressor.in_boolean_context()&&!self.has_side_effects(compressor)){return make_node(AST_True,self)}return self}OPT(AST_Array,literals_in_boolean_context);OPT(AST_Object,literals_in_boolean_context);OPT(AST_RegExp,literals_in_boolean_context)})();"use strict";function SourceMap(options){options=defaults(options,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var orig_map=options.orig&&new MOZ_SourceMap.SourceMapConsumer(options.orig);var generator;if(orig_map){generator=MOZ_SourceMap.SourceMapGenerator.fromSourceMap(orig_map)}else{generator=new MOZ_SourceMap.SourceMapGenerator({file:options.file,sourceRoot:options.root})}function add(source,gen_line,gen_col,orig_line,orig_col,name){if(orig_map){var info=orig_map.originalPositionFor({line:orig_line,column:orig_col});if(info.source===null){return}source=info.source;orig_line=info.line;orig_col=info.column;name=info.name||name}generator.addMapping({generated:{line:gen_line+options.dest_line_diff,column:gen_col},original:{line:orig_line+options.orig_line_diff,column:orig_col},source:source,name:name})}return{add:add,get:function(){return generator},toString:function(){return JSON.stringify(generator.toJSON())}}}"use strict";(function(){var MOZ_TO_ME={ExpressionStatement:function(M){var expr=M.expression;if(expr.type==="Literal"&&typeof expr.value==="string"){return new AST_Directive({start:my_start_token(M),end:my_end_token(M),value:expr.value})}return new AST_SimpleStatement({start:my_start_token(M),end:my_end_token(M),body:from_moz(expr)})},TryStatement:function(M){var handlers=M.handlers||[M.handler];if(handlers.length>1||M.guardedHandlers&&M.guardedHandlers.length){throw new Error("Multiple catch clauses are not supported.")}return new AST_Try({start:my_start_token(M),end:my_end_token(M),body:from_moz(M.block).body,bcatch:from_moz(handlers[0]),bfinally:M.finalizer?new AST_Finally(from_moz(M.finalizer)):null})},Property:function(M){var key=M.key;var name=key.type=="Identifier"?key.name:key.value;var args={start:my_start_token(key),end:my_end_token(M.value),key:name,value:from_moz(M.value)};switch(M.kind){case"init":return new AST_ObjectKeyVal(args);case"set":args.value.name=from_moz(key);return new AST_ObjectSetter(args);case"get":args.value.name=from_moz(key);return new AST_ObjectGetter(args)}},ObjectExpression:function(M){return new AST_Object({start:my_start_token(M),end:my_end_token(M),properties:M.properties.map(function(prop){prop.type="Property";return from_moz(prop)})})},SequenceExpression:function(M){return AST_Seq.from_array(M.expressions.map(from_moz))},MemberExpression:function(M){return new(M.computed?AST_Sub:AST_Dot)({start:my_start_token(M),end:my_end_token(M),property:M.computed?from_moz(M.property):M.property.name,expression:from_moz(M.object)})},SwitchCase:function(M){return new(M.test?AST_Case:AST_Default)({start:my_start_token(M),end:my_end_token(M),expression:from_moz(M.test),body:M.consequent.map(from_moz)})},VariableDeclaration:function(M){return new(M.kind==="const"?AST_Const:AST_Var)({start:my_start_token(M),end:my_end_token(M),definitions:M.declarations.map(from_moz)})},Literal:function(M){var val=M.value,args={start:my_start_token(M),end:my_end_token(M)};if(val===null)return new AST_Null(args);switch(typeof val){case"string":args.value=val;return new AST_String(args);case"number":args.value=val;return new AST_Number(args);case"boolean":return new(val?AST_True:AST_False)(args);default:args.value=val;return new AST_RegExp(args)}},Identifier:function(M){var p=FROM_MOZ_STACK[FROM_MOZ_STACK.length-2];return new(p.type=="LabeledStatement"?AST_Label:p.type=="VariableDeclarator"&&p.id===M?p.kind=="const"?AST_SymbolConst:AST_SymbolVar:p.type=="FunctionExpression"?p.id===M?AST_SymbolLambda:AST_SymbolFunarg:p.type=="FunctionDeclaration"?p.id===M?AST_SymbolDefun:AST_SymbolFunarg:p.type=="CatchClause"?AST_SymbolCatch:p.type=="BreakStatement"||p.type=="ContinueStatement"?AST_LabelRef:AST_SymbolRef)({start:my_start_token(M),end:my_end_token(M),name:M.name})}};MOZ_TO_ME.UpdateExpression=MOZ_TO_ME.UnaryExpression=function To_Moz_Unary(M){var prefix="prefix"in M?M.prefix:M.type=="UnaryExpression"?true:false; +return new(prefix?AST_UnaryPrefix:AST_UnaryPostfix)({start:my_start_token(M),end:my_end_token(M),operator:M.operator,expression:from_moz(M.argument)})};map("Program",AST_Toplevel,"body@body");map("EmptyStatement",AST_EmptyStatement);map("BlockStatement",AST_BlockStatement,"body@body");map("IfStatement",AST_If,"test>condition, consequent>body, alternate>alternative");map("LabeledStatement",AST_LabeledStatement,"label>label, body>body");map("BreakStatement",AST_Break,"label>label");map("ContinueStatement",AST_Continue,"label>label");map("WithStatement",AST_With,"object>expression, body>body");map("SwitchStatement",AST_Switch,"discriminant>expression, cases@body");map("ReturnStatement",AST_Return,"argument>value");map("ThrowStatement",AST_Throw,"argument>value");map("WhileStatement",AST_While,"test>condition, body>body");map("DoWhileStatement",AST_Do,"test>condition, body>body");map("ForStatement",AST_For,"init>init, test>condition, update>step, body>body");map("ForInStatement",AST_ForIn,"left>init, right>object, body>body");map("DebuggerStatement",AST_Debugger);map("FunctionDeclaration",AST_Defun,"id>name, params@argnames, body%body");map("VariableDeclarator",AST_VarDef,"id>name, init>value");map("CatchClause",AST_Catch,"param>argname, body%body");map("ThisExpression",AST_This);map("ArrayExpression",AST_Array,"elements@elements");map("FunctionExpression",AST_Function,"id>name, params@argnames, body%body");map("BinaryExpression",AST_Binary,"operator=operator, left>left, right>right");map("LogicalExpression",AST_Binary,"operator=operator, left>left, right>right");map("AssignmentExpression",AST_Assign,"operator=operator, left>left, right>right");map("ConditionalExpression",AST_Conditional,"test>condition, consequent>consequent, alternate>alternative");map("NewExpression",AST_New,"callee>expression, arguments@args");map("CallExpression",AST_Call,"callee>expression, arguments@args");def_to_moz(AST_Directive,function To_Moz_Directive(M){return{type:"ExpressionStatement",expression:{type:"Literal",value:M.value}}});def_to_moz(AST_SimpleStatement,function To_Moz_ExpressionStatement(M){return{type:"ExpressionStatement",expression:to_moz(M.body)}});def_to_moz(AST_SwitchBranch,function To_Moz_SwitchCase(M){return{type:"SwitchCase",test:to_moz(M.expression),consequent:M.body.map(to_moz)}});def_to_moz(AST_Try,function To_Moz_TryStatement(M){return{type:"TryStatement",block:to_moz_block(M),handler:to_moz(M.bcatch),guardedHandlers:[],finalizer:to_moz(M.bfinally)}});def_to_moz(AST_Catch,function To_Moz_CatchClause(M){return{type:"CatchClause",param:to_moz(M.argname),guard:null,body:to_moz_block(M)}});def_to_moz(AST_Definitions,function To_Moz_VariableDeclaration(M){return{type:"VariableDeclaration",kind:M instanceof AST_Const?"const":"var",declarations:M.definitions.map(to_moz)}});def_to_moz(AST_Seq,function To_Moz_SequenceExpression(M){return{type:"SequenceExpression",expressions:M.to_array().map(to_moz)}});def_to_moz(AST_PropAccess,function To_Moz_MemberExpression(M){var isComputed=M instanceof AST_Sub;return{type:"MemberExpression",object:to_moz(M.expression),computed:isComputed,property:isComputed?to_moz(M.property):{type:"Identifier",name:M.property}}});def_to_moz(AST_Unary,function To_Moz_Unary(M){return{type:M.operator=="++"||M.operator=="--"?"UpdateExpression":"UnaryExpression",operator:M.operator,prefix:M instanceof AST_UnaryPrefix,argument:to_moz(M.expression)}});def_to_moz(AST_Binary,function To_Moz_BinaryExpression(M){return{type:M.operator=="&&"||M.operator=="||"?"LogicalExpression":"BinaryExpression",left:to_moz(M.left),operator:M.operator,right:to_moz(M.right)}});def_to_moz(AST_Object,function To_Moz_ObjectExpression(M){return{type:"ObjectExpression",properties:M.properties.map(to_moz)}});def_to_moz(AST_ObjectProperty,function To_Moz_Property(M){var key=is_identifier(M.key)?{type:"Identifier",name:M.key}:{type:"Literal",value:M.key};var kind;if(M instanceof AST_ObjectKeyVal){kind="init"}else if(M instanceof AST_ObjectGetter){kind="get"}else if(M instanceof AST_ObjectSetter){kind="set"}return{type:"Property",kind:kind,key:key,value:to_moz(M.value)}});def_to_moz(AST_Symbol,function To_Moz_Identifier(M){var def=M.definition();return{type:"Identifier",name:def?def.mangled_name||def.name:M.name}});def_to_moz(AST_Constant,function To_Moz_Literal(M){var value=M.value;if(typeof value==="number"&&(value<0||value===0&&1/value<0)){return{type:"UnaryExpression",operator:"-",prefix:true,argument:{type:"Literal",value:-value}}}return{type:"Literal",value:value}});def_to_moz(AST_Atom,function To_Moz_Atom(M){return{type:"Identifier",name:String(M.value)}});AST_Boolean.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Null.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Hole.DEFMETHOD("to_mozilla_ast",function To_Moz_ArrayHole(){return null});AST_Block.DEFMETHOD("to_mozilla_ast",AST_BlockStatement.prototype.to_mozilla_ast);AST_Lambda.DEFMETHOD("to_mozilla_ast",AST_Function.prototype.to_mozilla_ast);function my_start_token(moznode){var loc=moznode.loc,start=loc&&loc.start;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:start&&start.line,col:start&&start.column,pos:range?range[0]:moznode.start,endline:start&&start.line,endcol:start&&start.column,endpos:range?range[0]:moznode.start})}function my_end_token(moznode){var loc=moznode.loc,end=loc&&loc.end;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:end&&end.line,col:end&&end.column,pos:range?range[1]:moznode.end,endline:end&&end.line,endcol:end&&end.column,endpos:range?range[1]:moznode.end})}function map(moztype,mytype,propmap){var moz_to_me="function From_Moz_"+moztype+"(M){\n";moz_to_me+="return new "+mytype.name+"({\n"+"start: my_start_token(M),\n"+"end: my_end_token(M)";var me_to_moz="function To_Moz_"+moztype+"(M){\n";me_to_moz+="return {\n"+"type: "+JSON.stringify(moztype);if(propmap)propmap.split(/\s*,\s*/).forEach(function(prop){var m=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(prop);if(!m)throw new Error("Can't understand property map: "+prop);var moz=m[1],how=m[2],my=m[3];moz_to_me+=",\n"+my+": ";me_to_moz+=",\n"+moz+": ";switch(how){case"@":moz_to_me+="M."+moz+".map(from_moz)";me_to_moz+="M."+my+".map(to_moz)";break;case">":moz_to_me+="from_moz(M."+moz+")";me_to_moz+="to_moz(M."+my+")";break;case"=":moz_to_me+="M."+moz;me_to_moz+="M."+my;break;case"%":moz_to_me+="from_moz(M."+moz+").body";me_to_moz+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+prop)}});moz_to_me+="\n})\n}";me_to_moz+="\n}\n}";moz_to_me=new Function("my_start_token","my_end_token","from_moz","return("+moz_to_me+")")(my_start_token,my_end_token,from_moz);me_to_moz=new Function("to_moz","to_moz_block","return("+me_to_moz+")")(to_moz,to_moz_block);MOZ_TO_ME[moztype]=moz_to_me;def_to_moz(mytype,me_to_moz)}var FROM_MOZ_STACK=null;function from_moz(node){FROM_MOZ_STACK.push(node);var ret=node!=null?MOZ_TO_ME[node.type](node):null;FROM_MOZ_STACK.pop();return ret}AST_Node.from_mozilla_ast=function(node){var save_stack=FROM_MOZ_STACK;FROM_MOZ_STACK=[];var ast=from_moz(node);FROM_MOZ_STACK=save_stack;return ast};function set_moz_loc(mynode,moznode,myparent){var start=mynode.start;var end=mynode.end;if(start.pos!=null&&end.endpos!=null){moznode.range=[start.pos,end.endpos]}if(start.line){moznode.loc={start:{line:start.line,column:start.col},end:end.endline?{line:end.endline,column:end.endcol}:null};if(start.file){moznode.loc.source=start.file}}return moznode}function def_to_moz(mytype,handler){mytype.DEFMETHOD("to_mozilla_ast",function(){return set_moz_loc(this,handler(this))})}function to_moz(node){return node!=null?node.to_mozilla_ast():null}function to_moz_block(node){return{type:"BlockStatement",body:node.body.map(to_moz)}}})();"use strict";function find_builtins(){var a=[];[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(ctor){Object.getOwnPropertyNames(ctor).map(add);if(ctor.prototype){Object.getOwnPropertyNames(ctor.prototype).map(add)}});function add(name){push_uniq(a,name)}return a}function mangle_properties(ast,options){options=defaults(options,{reserved:null,cache:null,only_cache:false,regex:null});var reserved=options.reserved;if(reserved==null)reserved=find_builtins();var cache=options.cache;if(cache==null){cache={cname:-1,props:new Dictionary}}var regex=options.regex;var names_to_mangle=[];ast.walk(new TreeWalker(function(node){if(node instanceof AST_ObjectKeyVal){add(node.key)}else if(node instanceof AST_ObjectProperty){add(node.key.name)}else if(node instanceof AST_Dot){if(this.parent()instanceof AST_Assign){add(node.property)}}else if(node instanceof AST_Sub){if(this.parent()instanceof AST_Assign){addStrings(node.property)}}}));return ast.transform(new TreeTransformer(function(node){if(node instanceof AST_ObjectKeyVal){if(should_mangle(node.key)){node.key=mangle(node.key)}}else if(node instanceof AST_ObjectProperty){if(should_mangle(node.key.name)){node.key.name=mangle(node.key.name)}}else if(node instanceof AST_Dot){if(should_mangle(node.property)){node.property=mangle(node.property)}}else if(node instanceof AST_Sub){node.property=mangleStrings(node.property)}}));function can_mangle(name){if(reserved.indexOf(name)>=0)return false;if(options.only_cache){return cache.props.has(name)}if(/^[0-9.]+$/.test(name))return false;return true}function should_mangle(name){if(regex&&!regex.test(name))return false;if(reserved.indexOf(name)>=0)return false;return cache.props.has(name)||names_to_mangle.indexOf(name)>=0}function add(name){if(can_mangle(name))push_uniq(names_to_mangle,name)}function mangle(name){var mangled=cache.props.get(name);if(!mangled){do{mangled=base54(++cache.cname)}while(!can_mangle(mangled));cache.props.set(name,mangled)}return mangled}function addStrings(node){var out={};try{(function walk(node){node.walk(new TreeWalker(function(node){if(node instanceof AST_Seq){walk(node.cdr);return true}if(node instanceof AST_String){add(node.value);return true}if(node instanceof AST_Conditional){walk(node.consequent);walk(node.alternative);return true}throw out}))})(node)}catch(ex){if(ex!==out)throw ex}}function mangleStrings(node){return node.transform(new TreeTransformer(function(node){if(node instanceof AST_Seq){node.cdr=mangleStrings(node.cdr)}else if(node instanceof AST_String){if(should_mangle(node.value)){node.value=mangle(node.value)}}else if(node instanceof AST_Conditional){node.consequent=mangleStrings(node.consequent);node.alternative=mangleStrings(node.alternative)}return node}))}}exports["array_to_hash"]=array_to_hash;exports["slice"]=slice;exports["characters"]=characters;exports["member"]=member;exports["find_if"]=find_if;exports["repeat_string"]=repeat_string;exports["DefaultsError"]=DefaultsError;exports["defaults"]=defaults;exports["merge"]=merge;exports["noop"]=noop;exports["MAP"]=MAP;exports["push_uniq"]=push_uniq;exports["string_template"]=string_template;exports["remove"]=remove;exports["mergeSort"]=mergeSort;exports["set_difference"]=set_difference;exports["set_intersection"]=set_intersection;exports["makePredicate"]=makePredicate;exports["all"]=all;exports["Dictionary"]=Dictionary;exports["DEFNODE"]=DEFNODE;exports["AST_Token"]=AST_Token;exports["AST_Node"]=AST_Node;exports["AST_Statement"]=AST_Statement;exports["AST_Debugger"]=AST_Debugger;exports["AST_Directive"]=AST_Directive;exports["AST_SimpleStatement"]=AST_SimpleStatement;exports["walk_body"]=walk_body;exports["AST_Block"]=AST_Block;exports["AST_BlockStatement"]=AST_BlockStatement;exports["AST_EmptyStatement"]=AST_EmptyStatement;exports["AST_StatementWithBody"]=AST_StatementWithBody;exports["AST_LabeledStatement"]=AST_LabeledStatement;exports["AST_IterationStatement"]=AST_IterationStatement;exports["AST_DWLoop"]=AST_DWLoop;exports["AST_Do"]=AST_Do;exports["AST_While"]=AST_While;exports["AST_For"]=AST_For;exports["AST_ForIn"]=AST_ForIn;exports["AST_With"]=AST_With;exports["AST_Scope"]=AST_Scope;exports["AST_Toplevel"]=AST_Toplevel;exports["AST_Lambda"]=AST_Lambda;exports["AST_Accessor"]=AST_Accessor;exports["AST_Function"]=AST_Function;exports["AST_Defun"]=AST_Defun;exports["AST_Jump"]=AST_Jump;exports["AST_Exit"]=AST_Exit;exports["AST_Return"]=AST_Return;exports["AST_Throw"]=AST_Throw;exports["AST_LoopControl"]=AST_LoopControl;exports["AST_Break"]=AST_Break;exports["AST_Continue"]=AST_Continue;exports["AST_If"]=AST_If;exports["AST_Switch"]=AST_Switch;exports["AST_SwitchBranch"]=AST_SwitchBranch;exports["AST_Default"]=AST_Default;exports["AST_Case"]=AST_Case;exports["AST_Try"]=AST_Try;exports["AST_Catch"]=AST_Catch;exports["AST_Finally"]=AST_Finally;exports["AST_Definitions"]=AST_Definitions;exports["AST_Var"]=AST_Var;exports["AST_Const"]=AST_Const;exports["AST_VarDef"]=AST_VarDef;exports["AST_Call"]=AST_Call;exports["AST_New"]=AST_New;exports["AST_Seq"]=AST_Seq;exports["AST_PropAccess"]=AST_PropAccess;exports["AST_Dot"]=AST_Dot;exports["AST_Sub"]=AST_Sub;exports["AST_Unary"]=AST_Unary;exports["AST_UnaryPrefix"]=AST_UnaryPrefix;exports["AST_UnaryPostfix"]=AST_UnaryPostfix;exports["AST_Binary"]=AST_Binary;exports["AST_Conditional"]=AST_Conditional;exports["AST_Assign"]=AST_Assign;exports["AST_Array"]=AST_Array;exports["AST_Object"]=AST_Object;exports["AST_ObjectProperty"]=AST_ObjectProperty;exports["AST_ObjectKeyVal"]=AST_ObjectKeyVal;exports["AST_ObjectSetter"]=AST_ObjectSetter;exports["AST_ObjectGetter"]=AST_ObjectGetter;exports["AST_Symbol"]=AST_Symbol;exports["AST_SymbolAccessor"]=AST_SymbolAccessor;exports["AST_SymbolDeclaration"]=AST_SymbolDeclaration;exports["AST_SymbolVar"]=AST_SymbolVar;exports["AST_SymbolConst"]=AST_SymbolConst;exports["AST_SymbolFunarg"]=AST_SymbolFunarg;exports["AST_SymbolDefun"]=AST_SymbolDefun;exports["AST_SymbolLambda"]=AST_SymbolLambda;exports["AST_SymbolCatch"]=AST_SymbolCatch;exports["AST_Label"]=AST_Label;exports["AST_SymbolRef"]=AST_SymbolRef;exports["AST_LabelRef"]=AST_LabelRef;exports["AST_This"]=AST_This;exports["AST_Constant"]=AST_Constant;exports["AST_String"]=AST_String;exports["AST_Number"]=AST_Number;exports["AST_RegExp"]=AST_RegExp;exports["AST_Atom"]=AST_Atom;exports["AST_Null"]=AST_Null;exports["AST_NaN"]=AST_NaN;exports["AST_Undefined"]=AST_Undefined;exports["AST_Hole"]=AST_Hole;exports["AST_Infinity"]=AST_Infinity;exports["AST_Boolean"]=AST_Boolean;exports["AST_False"]=AST_False;exports["AST_True"]=AST_True;exports["TreeWalker"]=TreeWalker;exports["KEYWORDS"]=KEYWORDS;exports["KEYWORDS_ATOM"]=KEYWORDS_ATOM;exports["RESERVED_WORDS"]=RESERVED_WORDS;exports["KEYWORDS_BEFORE_EXPRESSION"]=KEYWORDS_BEFORE_EXPRESSION;exports["OPERATOR_CHARS"]=OPERATOR_CHARS;exports["RE_HEX_NUMBER"]=RE_HEX_NUMBER;exports["RE_OCT_NUMBER"]=RE_OCT_NUMBER;exports["RE_DEC_NUMBER"]=RE_DEC_NUMBER;exports["OPERATORS"]=OPERATORS;exports["WHITESPACE_CHARS"]=WHITESPACE_CHARS;exports["PUNC_BEFORE_EXPRESSION"]=PUNC_BEFORE_EXPRESSION;exports["PUNC_CHARS"]=PUNC_CHARS;exports["REGEXP_MODIFIERS"]=REGEXP_MODIFIERS;exports["UNICODE"]=UNICODE;exports["is_letter"]=is_letter;exports["is_digit"]=is_digit;exports["is_alphanumeric_char"]=is_alphanumeric_char;exports["is_unicode_digit"]=is_unicode_digit;exports["is_unicode_combining_mark"]=is_unicode_combining_mark;exports["is_unicode_connector_punctuation"]=is_unicode_connector_punctuation;exports["is_identifier"]=is_identifier;exports["is_identifier_start"]=is_identifier_start;exports["is_identifier_char"]=is_identifier_char;exports["is_identifier_string"]=is_identifier_string;exports["parse_js_number"]=parse_js_number;exports["JS_Parse_Error"]=JS_Parse_Error;exports["js_error"]=js_error;exports["is_token"]=is_token;exports["EX_EOF"]=EX_EOF;exports["tokenizer"]=tokenizer;exports["UNARY_PREFIX"]=UNARY_PREFIX;exports["UNARY_POSTFIX"]=UNARY_POSTFIX;exports["ASSIGNMENT"]=ASSIGNMENT;exports["PRECEDENCE"]=PRECEDENCE;exports["STATEMENTS_WITH_LABELS"]=STATEMENTS_WITH_LABELS;exports["ATOMIC_START_TOKEN"]=ATOMIC_START_TOKEN;exports["parse"]=parse;exports["TreeTransformer"]=TreeTransformer;exports["SymbolDef"]=SymbolDef;exports["base54"]=base54;exports["OutputStream"]=OutputStream;exports["Compressor"]=Compressor;exports["SourceMap"]=SourceMap;exports["find_builtins"]=find_builtins;exports["mangle_properties"]=mangle_properties})({},function(){return this}()); \ No newline at end of file -- 2.34.1