From: alexlamsl Date: Fri, 4 Mar 2016 07:19:01 +0000 (+0800) Subject: package UglifyJS via browserify X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0daf110770393f079da6d6fb66576fdcc6eafd35;p=html-minifier.git package UglifyJS via browserify remove code duplication in minifyJS() --- diff --git a/assets/cleancss-browser.js b/assets/cleancss-browser.js index 741aeba..4233af8 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&&(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\\amdefine\\amdefine.js")},{_process:78,path:76}],2:[function(e,t,r){"use strict";function n(){var e,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=t.length;for(e=0;r>e;e++)u[e]=t[e];for(e=0;r>e;++e)l[t.charCodeAt(e)]=e;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63}function i(e){var t,r,n,i,o,a,s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new c(3*s/4-o),n=o>0?s-4:s;var u=0;for(t=0,r=0;n>t;t+=4,r+=3)i=l[e.charCodeAt(t)]<<18|l[e.charCodeAt(t+1)]<<12|l[e.charCodeAt(t+2)]<<6|l[e.charCodeAt(t+3)],a[u++]=(16711680&i)>>16,a[u++]=(65280&i)>>8,a[u++]=255&i;return 2===o?(i=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}function o(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function a(e,t,r){for(var n,i=[],a=t;r>a;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(o(n));return i.join("")}function s(e){for(var t,r=e.length,n=r%3,i="",o=[],s=16383,l=0,c=r-n;c>l;l+=s)o.push(a(e,l,l+s>c?c:l+s));return 1===n?(t=e[r-1],i+=u[t>>2],i+=u[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=u[t>>10],i+=u[t>>4&63],i+=u[t<<2&63],i+="="),o.push(i),o.join("")}r.toByteArray=i,r.fromByteArray=s;var u=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array;n()},{}],3:[function(e,t,r){},{}],4:[function(e,t,r){arguments[4][3][0].apply(r,arguments)},{dup:3}],5:[function(e,t,r){(function(t){"use strict";function n(){try{var e=new Uint8Array(1);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e){return this instanceof o?(o.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?a(this,e):"string"==typeof e?s(this,e,arguments.length>1?arguments[1]:"utf8"):u(this,e)):arguments.length>1?new o(e,arguments[1]):new o(e)}function a(e,t){if(e=g(e,0>t?0:0|m(t)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;t>r;r++)e[r]=0;return e}function s(e,t,r){"string"==typeof r&&""!==r||(r="utf8");var n=0|b(t,r);return e=g(e,n),e.write(t,r),e}function u(e,t){if(o.isBuffer(t))return l(e,t);if(J(t))return c(e,t);if(null==t)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(t.buffer instanceof ArrayBuffer)return f(e,t);if(t instanceof ArrayBuffer)return h(e,t)}return t.length?p(e,t):d(e,t)}function l(e,t){var r=0|m(t.length);return e=g(e,r),t.copy(e,0,0,r),e}function c(e,t){var r=0|m(t.length);e=g(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function f(e,t){var r=0|m(t.length);e=g(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function h(e,t){return t.byteLength,o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):e=f(e,new Uint8Array(t)),e}function p(e,t){var r=0|m(t.length);e=g(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function d(e,t){var r,n=0;"Buffer"===t.type&&J(t.data)&&(r=t.data,n=0|m(r.length)),e=g(e,n);for(var i=0;n>i;i+=1)e[i]=255&r[i];return e}function g(e,t){o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):e.length=t;var r=0!==t&&t<=o.poolSize>>>1;return r&&(e.parent=K),e}function m(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function v(e,t){if(!(this instanceof v))return new v(e,t);var r=new o(e,t);return delete r.parent,r}function b(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 F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(e).length;default:if(n)return F(e).length;t=(""+t).toLowerCase(),n=!0}}function y(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 L(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return R(this,t,r);case"binary":return M(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function w(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 _(e,t,r,n){return Y(F(t,e.length-r),e,r,n)}function x(e,t,r,n){return Y($(t),e,r,n)}function k(e,t,r,n){return x(e,t,r,n)}function O(e,t,r,n){return Y(W(t),e,r,n)}function C(e,t,r,n){return Y(H(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?G.fromByteArray(e):G.fromByteArray(e.slice(t,r))}function E(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;r>i;){var o=e[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r>=i+s){var u,l,c,f;switch(s){case 1:128>o&&(a=o);break;case 2:u=e[i+1],128===(192&u)&&(f=(31&o)<<6|63&u,f>127&&(a=f));break;case 3:u=e[i+1],l=e[i+2],128===(192&u)&&128===(192&l)&&(f=(15&o)<<12|(63&u)<<6|63&l,f>2047&&(55296>f||f>57343)&&(a=f));break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],128===(192&u)&&128===(192&l)&&128===(192&c)&&(f=(15&o)<<18|(63&u)<<12|(63&l)<<6|63&c,f>65535&&1114112>f&&(a=f))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return A(n)}function A(e){var t=e.length;if(Z>=t)return String.fromCharCode.apply(String,e);for(var r="",n=0;t>n;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Z));return r}function R(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 M(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 L(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+=q(e[o]);return i}function j(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 P(e,t,r,n,i,a){if(!o.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>i||a>t)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range")}function V(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 B(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 U(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function D(e,t,r,n,i){return i||U(e,t,r,4,0xf.fffff(e+31),-0xf.fffff(e+31)),X.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,i){return i||U(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,r,n,52,8),r+8}function N(e){if(e=z(e).replace(Q,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function z(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function q(e){return 16>e?"0"+e.toString(16):e.toString(16)}function F(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}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,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(!(1114112>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 $(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function W(e){return G.toByteArray(N(e))}function Y(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}var G=e("base64-js"),X=e("ieee754"),J=e("isarray");r.Buffer=o,r.SlowBuffer=v,r.INSPECT_MAX_BYTES=50,o.poolSize=8192;var K={};o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:n(),o._augment=function(e){return e.__proto__=o.prototype,e},o.TYPED_ARRAY_SUPPORT?(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})):(o.prototype.length=void 0,o.prototype.parent=void 0),o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);a>i&&e[i]===t[i];)++i;return i!==a&&(r=e[i],n=t[i]),n>r?-1:r>n?1:0},o.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}},o.concat=function(e,t){if(!J(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new o(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+=" ... ")),""},o.prototype.compare=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:o.compare(this,e)},o.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(o.isBuffer(e))return r(this,e,t);if("number"==typeof e)return o.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")},o.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 w(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return x(this,e,t,r);case"binary":return k(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.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(o.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=o.prototype;else{var i=t-e;n=new o(i,void 0);for(var a=0;i>a;a++)n[a]=this[a+e]}return n.length&&(n.parent=this.parent||this),n},o.prototype.readUIntLE=function(e,t,r){e=0|e,t=0|t,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e=0|e,t=0|t,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e=0|e,t=0|t,r||T(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},o.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),X.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),X.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),X.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),X.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t=0|t,r=0|r,n||P(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},o.prototype.writeUInt8=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);P(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},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);P(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},o.prototype.writeInt8=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},o.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-tr&&n>t)for(i=a-1;i>=0;i--)e[i+t]=this[i+r];else if(1e3>a||!o.TYPED_ARRAY_SUPPORT)for(i=0;a>i;i++)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},o.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=F(e.toString()),o=i.length;for(n=t;r>n;n++)this[n]=i[n%o]}return this}};var Q=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":2,ieee754:71,isarray:6}],6:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],7:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],8:[function(e,t,r){t.exports=e("./lib/clean")},{"./lib/clean":9}],9:[function(e,t,r){(function(r){function n(e){return void 0===e?["all"]:e}function i(e){return!A.existsSync(e)&&!/\.css$/.test(e)}function o(e){return A.existsSync(e)&&A.statSync(e).isDirectory()}function a(e){return e?{hostname:M.parse(e).hostname,port:parseInt(M.parse(e).port)}:{}}function s(e,t){function r(r){return r=t.options.debug?l(t,r):f(t,r),r=u(t,r),e?e.call(null,t.errors.length>0?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 u(e,t){return t.stats=e.stats,t.errors=e.errors,t.warnings=e.warnings,t}function l(e,t){var n=r.hrtime();e.stats.originalSize=e.sourceTracker.removeAll(t).length,t=f(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 c(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 f(e,t){function r(t,r){return t=a.restore(t,r),t=s.restore(t),t=n.rebase?p(t,e):t,t=o.restore(t),i.restore(t)}var n=e.options,i=new y(e,n.keepSpecialComments,n.keepBreaks,n.sourceMap),o=new w(n.sourceMap),a=new _(n.sourceMap),s=new x(e,n.sourceMap,n.compatibility.properties.urlQuotes),u=n.sourceMap?b:v,l=function(e,r){t="function"==typeof e?e(t):e[r](t)};n.benchmark&&(l=c(l)),l(i,"escape"),l(o,"escape"),l(s,"escape"),l(a,"escape");var f=d(t,e);return g(f,n),n.advanced&&m(f,n,e.validator,!0),u(f,n,r,e.inputSourceMapTracker)}var h=e("./imports/inliner"),p=e("./urls/rebase"),d=e("./tokenizer/tokenize"),g=e("./selectors/simple"),m=e("./selectors/advanced"),v=e("./stringifier/simple"),b=e("./stringifier/source-maps"),y=e("./text/comments-processor"),w=e("./text/expressions-processor"),_=e("./text/free-text-processor"),x=e("./text/urls-processor"),k=e("./utils/compatibility"),O=e("./utils/input-source-map-tracker"),C=e("./utils/source-tracker"),S=e("./utils/source-reader"),E=e("./properties/validator"),A=e("fs"),R=e("path"),M=e("url"),L=e("./utils/object").override,j=5e3,T=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 k(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,processImportFrom:n(e.processImportFrom),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||i(e.target)||o(e.target)?e.target:R.dirname(e.target)},this.options.inliner.timeout=this.options.inliner.timeout||j,this.options.inliner.request=L(a(r.env.HTTP_PROXY||r.env.http_proxy),this.options.inliner.request||{})};T.prototype.minify=function(e,t){var n={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,localOnly:!t,sourceTracker:new C,validator:new E(this.options.compatibility)};if(n.options.sourceMap&&(n.inputSourceMapTracker=new O(n)),n.sourceReader=new S(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 h(n).process(e,{localOnly:n.localOnly,imports:n.options.processImportFrom,whenDone:s(t,n)})})}return s(t,n)(e)}}).call(this,e("_process"))},{"./imports/inliner":13,"./properties/validator":27,"./selectors/advanced":30,"./selectors/simple":43,"./stringifier/simple":47,"./stringifier/source-maps":48,"./text/comments-processor":49,"./text/expressions-processor":51,"./text/free-text-processor":52,"./text/urls-processor":53,"./tokenizer/tokenize":56,"./urls/rebase":57,"./utils/compatibility":61,"./utils/input-source-map-tracker":62,"./utils/object":63,"./utils/source-reader":65,"./utils/source-tracker":66,_process:78,fs:4,path:76,url:111}],10:[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},{}],11:[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},{}],12:[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},{}],13:[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){var a,s=0,u=0,l=0,c=0;if(i)return!1;do{if(o>r&&n>o)return!0;if(a=e.match(t),!a)return i=!0,!1;r=s=a.index,u=s+a[0].length,c=u+n,l=c-a[0].length,e=e.substring(u),n=c}while(o>c);return c>o&&o>l}}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)),g=c?i.indexOf(c[0],u+1):_(i," ")[0].length-(o?1:0),m=i.substring(u,g).replace(/['"]/g,"").replace(/\)$/,"").trim(),v=i.substring(g+1).replace(/^\)/,"").trim(),b=n.isRemote||O.test(m);if(b&&(n.localOnly||!f(m,!0,n.imports)))return n.afterContent||l(n.done.join(""))?n.warnings.push('Ignoring remote @import of "'+m+'" as no callback given.'):d(m,v,n),s(n);if(!b&&!f(m,!1,n.imports))return n.afterImport?n.warnings.push('Ignoring local @import of "'+m+'" as after other inlined content.'):d(m,v,n),s(n);if(!b&&n.afterContent)return n.warnings.push('Ignoring local @import of "'+m+'" as after other CSS content.'),s(n);var y=b?h:p;return y(m,v,n)}function f(e,t,r){if(0===r.length)return!1;t&&C.test(e)&&(e="http:"+e);for(var n=t?y.parse(e).host:e,i=!0,o=0;o-1)return s(n);n.debug&&console.error("Inlining remote stylesheet: "+u),n.visited.push(u);var c=0===u.indexOf("http://")?v.get:b.get,f=!1,p=x(y.parse(u),n.inliner.request);void 0!==n.inliner.request.hostname&&(p.path=p.href),c(p,function(e){if(e.statusCode<200||e.statusCode>399)return a("error "+e.statusCode);if(e.statusCode>299){var s=y.resolve(u,e.headers.location);return h(s,t,n)}var c=[],f=y.parse(u);e.on("data",function(e){c.push(e.toString())}),e.on("end",function(){var e=c.join("");n.rebase&&(e=w(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+"}"),n.afterImport=!0;var a=x(n,{isRemote:!0,relativeTo:f.protocol+"//"+f.host+f.pathname});r.nextTick(function(){i(e,a)})})}).on("error",function(e){a(e.message)}).on("timeout",function(){a("timeout")}).setTimeout(n.inliner.timeout)}function p(e,t,r){var n="/"==e[0]?r.root:r.relativeTo,o=m.resolve(m.join(n,e));if(!g.existsSync(o)||!g.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=m.dirname(o),u=g.readFileSync(o,"utf8");if(r.rebase){var l={relative:!0,fromBase:a,toBase:r.baseRelativeTo};u=w(u,l,r)}var c=m.relative(r.root,o);r.sourceReader.trackSource(c,u),u=r.sourceTracker.store(c,u),t.length>0&&(u="@media "+t+"{"+u+"}"),r.afterImport=!0;var f=x(r,{relativeTo:a});return i(u,f)}function d(e,t,r){var n="@import url("+e+")"+(t.length>0?" "+t:"")+";";r.done.push(n)}var g=e("fs"),m=e("path"),v=e("http"),b=e("https"),y=e("url"),w=e("../urls/rewrite"),_=e("../utils/split"),x=e("../utils/object.js").override,k=/\/\*# sourceMappingURL=(\S+) \*\//,O=/^(https?:)?\/\//,C=/^\/\//;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":59,"../utils/object.js":63,"../utils/split":67,_process:78,fs:4,http:105,https:70,path:76,url:111}],14:[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])&&!e.isValidColorValue(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])&&!e.isValidStyleKeyword(t[0])&&!e.isValidColorValue(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 _=p[y-1];if(_[0].indexOf("/")>0){var x=d(_[0],"/");a.value=[[x.pop()].concat(_.slice(1)),w],p[y-1]=[x.pop()].concat(_.slice(1))}else y>1&&"/"==p[y-2]?(a.value=[_,w],y-=2):"/"==_[0]?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=d(w[0],"/");a.value=[[k.pop()].concat(w.slice(1))],i.value=[[k.pop()].concat(w.slice(1))]}else f.value[0][0]!=t[f.name].defaultValue&&"none"!=f.value[0][0]||!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].slice(0)),i.length<3&&(i[2]=i[0].slice(0)),i.length<4&&(i[3]=i[1].slice(0));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][0]||"auto"==g[0][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/split"),g=",";t.exports={background:s,border:h,borderRadius:u,fourValues:l,listStyle:f,multiplex:c,outline:h}},{"../utils/split":67,"./wrap-for-optimizing":29}],15:[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.colorOpacity||!r.isValidRgbaColor(n)&&!r.isValidHslaColor(n))&&(r.colorOpacity||!r.isValidRgbaColor(i)&&!r.isValidHslaColor(i))?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):!1}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}},{}],16:[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":29}],17:[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":14,"./can-override":15,"./restore":25}],18:[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":16}],19:[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},{}],20:[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={},c=null;e:for(var f=0,d=e.length;d>f;f++){var g=e[f],m=!("-ms-filter"!=g.name&&"filter"!=g.name||"background"!=c&&"background-image"!=c)?c:g.name,v=g.important,b=g.hack;if(!g.unused)if(f>0&&s&&m==c&&v==s.important&&b==s.hack&&a(f)&&!s.unused)g.unused=!0;else{if(m in l&&(r&&m!=c||i(f))){var y=l[m],w=o[m]&&o[m].canOverride,_=!1;for(u=y.length-1;u>=0;u--){var x=e[y[u]],k=x.name!=m,O=x.important,C=x.hack;if(!x.unused&&(!k||!O)&&(O||!(C&&!b||!C&&b))&&(!O||"star"!=b&&"underscore"!=b)&&(C||b||k||!w||w(x,g,n))){if(O&&!v||O&&b){g.unused=!0,s=g;continue e}_=!0,x.unused=!0}}if(_){f=-1,s=null,c=null,l={};continue}}else{l[m]=l[m]||[],l[m].push(f);var S=p[m];if(S)for(u=S.length-1;u>=0;u--){var E=S[u];l[E]=l[E]||[],l[E].push(f)}}c=m,s=g}}}function i(e,t,r,o,h,p){var d=a(t);s(d,p),n(d,r,h.aggressiveMerging,p);for(var g=0,m=d.length;m>g;g++){var v=d[g];v.variable&&v.block&&i(e,v.value[0],r,o,h,p)}o&&h.shorthandCompacting&&(u(d,h.compatibility,p),l(d,h.sourceMap,p)),f(d),c(d)}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-from-optimizing"),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":46,"./compactable":17,"./override-compactor":21,"./populate-components":22,"./remove-unused":23,"./restore-from-optimizing":24,"./shorthand-compactor":26,"./wrap-for-optimizing":29}],21:[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){for(var r=0,n=e.components.length;n>r;r++)if(m(t.isValidFunction,e.components[r]))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=C(i);A([u]);var l=C(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=_(e),r=0,n=t.length;n>r;r++)if(1==t[r].length&&"none"==t[r][0][0])return!0;return!1}function _(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 x(e,t,r){var a,s,u,p,w,_,x;e:for(w=e.length-1;w>=0;w--)if(s=e[w],b(s)&&!s.variable)for(a=O[s.name].canOverride||k.sameValue,_=w-1;_>=0;_--)if(u=e[_],b(u)&&!(u.variable||u.unused||s.unused||u.hack&&!s.hack||!u.hack&&s.hack||E(s)||y(u,s)))if(!u.shorthand&&s.shorthand&&o(s,u)){if(!s.important&&u.important)continue;if(!M([u],s.components))continue;if(!m(r.isValidFunction,u)&&g(s,r))continue;p=s.components.filter(n(u))[0],a=O[u.name]&&O[u.name].canOverride||k.sameValue,R(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,w-1,u.name))continue;if(g(u,r))continue;if(p=u.components.filter(n(s))[0],R(a,p,s,r)){var C=!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,S=O[s.name].nonMergeableValue===s.value[0][0];if(C||S)continue;if(!t.properties.merging&&i(u,r))continue;if(p.value[0][0]!=s.value[0][0]&&(E(u)||E(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(!u.multiplex&&s.multiplex)continue;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 A=u.components[x],L=s.components[x];if(a=O[A.name].canOverride||k.sameValue,!R(a,A,L,r))continue e;if(!R(k.twoOptionalFunctions,A,L,r)&&r.isValidFunction(L))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,!R(a,p,s,r))continue;if(u.important&&!s.important){s.unused=!0;continue}var j=O[s.name].restore(s,O);if(j.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,!R(a,u,s,r))continue;u.unused=!0}}var k=e("./can-override"),O=e("./compactable"),C=e("./clone").deep,S=e("./clone").shallow,E=e("./has-inherit"),A=e("./restore-from-optimizing"),R=e("./every-combination"),M=e("./vendor-prefixes").same,L=e("../stringifier/one-time").property,j=",";t.exports=x},{"../stringifier/one-time":46,"./can-override":15,"./clone":16,"./compactable":17,"./every-combination":18,"./has-inherit":19,"./restore-from-optimizing":24,"./vendor-prefixes":28}],22:[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":17}],23:[function(e,t,r){function n(e){for(var t=e.length-1;t>=0;t--){var r=e[t];r.unused&&r.all.splice(r.position,1)}}t.exports=n},{}],24:[function(e,t,r){function n(e){e.value[e.value.length-1][0]+=u}function i(e){"underscore"==e.hack?e.name=c+e.name:"star"==e.hack?e.name=l+e.name:"backslash"==e.hack?e.value[e.value.length-1][0]+=s:"bang"==e.hack&&(e.value[e.value.length-1][0]+=" "+f)}function o(e,t){for(var r=e.length-1;r>=0;r--){var o,s=e[r],u=a[s.name];if(!s.unused&&(s.dirty||s.important||s.hack)&&(!t&&u&&u.shorthand?(o=u.restore(s,a),s.value=o):o=s.value,s.important&&n(s),s.hack&&i(s),"all"in s)){var l=s.all[s.position];l[0][0]=s.name,l.splice(1,l.length-1),Array.prototype.push.apply(l,o)}}}var a=e("./compactable"),s="\\9",u="!important",l="*",c="_",f="!ie";t.exports=o},{"./compactable":17}],25:[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":16}],26:[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],[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 _=i(t);_.length>0&&d[0].push(_)}g.position=a.length,g.all=a,g.all.push(d),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&&!s.variable){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":16,"./compactable":17,"./every-combination":18,"./has-inherit":19,"./populate-components":22,"./wrap-for-optimizing":29}],27:[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"),this.colorOpacity=e.colors.opacity}var i=e("../utils/split"),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])+\\(.*?\\)",c="\\-(\\-|[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"),_=new RegExp("^"+d+"$","i"),x=["repeat","no-repeat","repeat-x","repeat-y","inherit"],k=["inherit","scroll","fixed","local"],O=["center","top","bottom","left","right"],C=["contain","cover"],S=["border-box","content-box","padding-box"],E=["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"],R=["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.isValidColorValue(e)||this.isValidVariable(e)||this.isValidVendorPrefixedValue(e); -},n.prototype.isValidColorValue=function(e){return this.isValidHexColor(e)||this.isValidRgbaColor(e)||this.isValidHslaColor(e)},n.prototype.isValidUrl=function(e){return 0===e.indexOf("__ESCAPED_URL_CLEAN_CSS")},n.prototype.isValidUnit=function(e){return _.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 x.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 C.indexOf(e)>=0||y.test(e)||this.isValidVariable(e)},n.prototype.isValidBackgroundPositionAndSize=function(e){if(e.indexOf("/")<0)return!1;var t=i(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 R.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidStyle=function(e){return this.isValidStyleKeyword(e)||this.isValidVariable(e)},n.prototype.isValidStyleKeyword=function(e){return E.indexOf(e)>=0},n.prototype.isValidWidth=function(e){return this.isValidUnit(e)||this.isValidWidthKeyword(e)||this.isValidVariable(e)},n.prototype.isValidWidthKeyword=function(e){return o.indexOf(e)>=0},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/split":67}],28:[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}},{}],29:[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=c(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){var t=!1,r=e[0][0],n=e[e.length-1];return r[0]==d?t="underscore":r[0]==p?t="star":n[0][0]==g&&-1==n[0].indexOf("important")?t="bang":n[0].indexOf(g)>0&&-1==n[0].indexOf("important")?t="bang":n[0].indexOf(f)>0&&n[0].indexOf(f)==n[0].length-f.length-1?t="backslash":0===n[0].indexOf(f)&&2==n[0].length&&(t="backslash"),t}function a(e){return e.length>1?e[e.length-1][0].indexOf(h)>0:!1}function s(e){e.length>0&&(e[e.length-1][0]=e[e.length-1][0].replace(h,""))}function u(e){e[0][0]=e[0][0].substring(1)}function l(e,t){var r=e[e.length-1];r[0]=r[0].substring(0,r[0].indexOf("backslash"==t?f:g)).trim(),0===r[0].length&&e.pop()}function c(e){var t=a(e);t&&s(e);var r=o(e);"star"==r||"underscore"==r?u(e):"backslash"!=r&&"bang"!=r||l(e,r);var n=0===e[0][0].indexOf("--");return{block:n&&e[1]&&Array.isArray(e[1][0][0]),components:[],dirty:!1,hack:r,important:t,name:e[0][0],multiplex:e.length>2?i(e):!1,position:0,shorthand:!1,unused:e.length<2,value:e.slice(1),variable:n}}var f="\\",h="!important",p="*",d="_",g="!";t.exports={all:n,single:c}},{}],30:[function(e,t,r){function n(e){for(var t=0,r=e.length;r>t;t++){var i=e[t],o=!1;switch(i[0]){case"selector":o=0===i[1].length||0===i[2].length;break;case"block":n(i[2]),o=0===i[2].length}o&&(e.splice(t,1),t--,r--)}}function i(e,t,r){for(var n=0,i=e.length;i>n;n++){var o=e[n];if("block"==o[0]){var s=/@(-moz-|-o-|-webkit-)?keyframes/.test(o[1][0]);a(o[2],t,r,!s)}}}function o(e,t,r){for(var n=0,i=e.length;i>n;n++){var a=e[n];switch(a[0]){case"selector":s(a[1],a[2],!1,!0,t,r);break;case"block":o(a[2],t,r)}}}function a(e,t,r,s){if(i(e,t,r),o(e,t,r),u(e),l(e,t,r),c(e,t,r),f(e,t,r),h(e,t),t.restructuring&&s&&(p(e,t),l(e,t,r)),t.mediaMerging){d(e);for(var m=g(e),v=m.length-1;v>=0;v--)a(m[v][2],t,r,!1)}n(e)}var s=e("../properties/optimizer"),u=e("./remove-duplicates"),l=e("./merge-adjacent"),c=e("./reduce-non-adjacent"),f=e("./merge-non-adjacent-by-selector"),h=e("./merge-non-adjacent-by-body"),p=e("./restructure"),d=e("./remove-duplicate-media-queries"),g=e("./merge-media-queries");t.exports=a},{"../properties/optimizer":20,"./merge-adjacent":34,"./merge-media-queries":35,"./merge-non-adjacent-by-body":36,"./merge-non-adjacent-by-selector":37,"./reduce-non-adjacent":38,"./remove-duplicate-media-queries":39,"./remove-duplicates":40,"./restructure":42}],31:[function(e,t,r){function n(e,t){return"["+t.replace(/ /g,"")+"]"}function i(e,t){return e[0]>t[0]?1:-1}function o(e,t,r,n){return t&&r&&n.length?t+r+" ":t&&r?t+r:r}var a={selectors:function(e,t,r){for(var a=[],s=[],u=0,l=e.length;l>u;u++){var c=e[u],f=c[0].replace(/\s+/g," ").replace(/ ?, ?/g,",").replace(/\s*(\\)?([>+~])(\s*)/g,o).trim();r&&f.indexOf("nav")>0&&(f=f.replace(/\+nav(\S|$)/,"+ nav$1")),(!t||-1==f.indexOf("*+html ")&&-1==f.indexOf("*:first-child+html "))&&(f.indexOf("*")>-1&&(f=f.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),f.indexOf("[")>-1&&(f=f.replace(/\[([^\]]+)\]/g,n)),-1==s.indexOf(f)&&(c[0]=f,s.push(f),a.push(c)))}return a.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=a},{}],32:[function(e,t,r){function n(e){var t=[];if("selector"==e[0])for(var r=!/[\.\+>~]/.test(o(e[1])),u=0,l=e[2].length;l>u;u++){var c=e[2][u];if(0!==c.indexOf("__ESCAPED")&&c[0]!=s){var f=e[2][u][0][0];if(0!==f.length&&0!==f.indexOf("--")){var h=a(e[2],u);t.push([f,h,i(f),e[2][u],f+":"+h,e[1],r])}}}else if("block"==e[0])for(var p=0,d=e[2].length;d>p;p++)t=t.concat(n(e[2][p]));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,s="at-rule";t.exports=n},{"../stringifier/one-time":46}],33:[function(e,t,r){function n(e,t){return e.compatibility.selectors.special.test(t)}t.exports=n},{}],34:[function(e,t,r){function n(e,t,r){for(var n=[null,[],[]],l=t.compatibility.selectors.adjacentSpace,c=0,f=e.length;f>c;c++){var h=e[c];if("selector"==h[0])if("selector"==n[0]&&a(h[1])==a(n[1])){var p=[n[2].length];Array.prototype.push.apply(n[2],h[2]),i(h[1],n[2],p,!0,t,r),h[2]=[]}else"selector"!=n[0]||o(h[2])!=o(n[2])||u(t,a(h[1]))||u(t,a(n[1]))?n=h:(n[1]=s(n[1].concat(h[1]),!1,l),h[2]=[]);else n=[null,[],[]]}}var i=e("../properties/optimizer"),o=e("../stringifier/one-time").body,a=e("../stringifier/one-time").selectors,s=e("./clean-up").selectors,u=e("./is-special");t.exports=n},{"../properties/optimizer":20,"../stringifier/one-time":46,"./clean-up":31,"./is-special":33}],35:[function(e,t,r){function n(e){for(var t={},r=[],n=e.length-1;n>=0;n--){var a=e[n];if("block"==a[0]){var s=t[a[1][0]];s||(s=[],t[a[1][0]]=s),s.push(n)}}for(var u in t){var l=t[u];e:for(var c=l.length-1;c>0;c--){var f=l[c],h=e[f],p=l[c-1],d=e[p];t:for(var g=1;g>=-1;g-=2){for(var m=1==g,v=m?f+1:p-1,b=m?p:f,y=m?1:-1,w=m?h:d,_=m?d:h,x=o(w);v!=b;){var k=o(e[v]);if(v+=y,!i(x,k))continue t}_[2]=m?w[2].concat(_[2]):_[2].concat(w[2]),w[2]=[],r.push(_);continue e}}}return r}var i=e("./reorderable").canReorder,o=e("./extractor");t.exports=n},{"./extractor":32,"./reorderable":41}],36:[function(e,t,r){function n(e){return/\.|\*| :/.test(e)}function i(e){var t=l(e[1]);return t.indexOf("__")>-1||t.indexOf("--")>-1}function o(e){return e.replace(/--[^ ,>\+~:]+/g,"")}function a(e,t){var r=o(l(e[1]));for(var n in t){var i=t[n],a=o(l(i[1]));(a.indexOf(r)>-1||r.indexOf(a)>-1)&&delete t[n]}}function s(e,t){for(var r={},o=t.compatibility.selectors.adjacentSpace,s=e.length-1;s>=0;s--){var h=e[s];if("selector"==h[0]){h[2].length>0&&!t.semanticMerging&&n(l(h[1]))&&(r={}),h[2].length>0&&t.semanticMerging&&i(h)&&a(h,r);var p=u(h[2]),d=r[p];!d||f(t,l(h[1]))||f(t,l(d[1]))||(h[1]=h[2].length>0?c(d[1].concat(h[1]),!1,o):d[1].concat(h[1]),d[2]=[],r[p]=null),r[u(h[2])]=h}}}var u=e("../stringifier/one-time").body,l=e("../stringifier/one-time").selectors,c=e("./clean-up").selectors,f=e("./is-special");t.exports=s},{"../stringifier/one-time":46,"./clean-up":31,"./is-special":33}],37:[function(e,t,r){function n(e,t,r){var n,u={},l=[];for(n=e.length-1;n>=0;n--)if("selector"==e[n][0]&&0!==e[n][2].length){var c=o(e[n][1]);u[c]=[n].concat(u[c]||[]),2==u[c].length&&l.push(c)}for(n=l.length-1;n>=0;n--){var f=u[l[n]];e:for(var h=f.length-1;h>0;h--){var p=f[h-1],d=e[p],g=f[h],m=e[g];t:for(var v=1;v>=-1;v-=2){for(var b,y=1==v,w=y?p+1:g-1,_=y?g:p,x=y?1:-1,k=y?d:m,O=y?m:d,C=a(k);w!=_;){var S=a(e[w]);w+=x;var E=y?s(C,S):s(S,C);if(!E&&!y)continue e;if(!E&&y)continue t}y?(b=[k[2].length],Array.prototype.push.apply(k[2],O[2]),O[2]=k[2]):(b=[O[2].length],Array.prototype.push.apply(O[2],k[2])),i(O[1],O[2],b,!0,t,r),k[2]=[]}}}}var i=e("../properties/optimizer"),o=e("../stringifier/one-time").selectors,a=e("./extractor"),s=e("./reorderable").canReorder;t.exports=n},{"../properties/optimizer":20,"../stringifier/one-time":46,"./extractor":32,"./reorderable":41}],38:[function(e,t,r){function n(e,t,r){for(var n={},s=[],u=e.length-1;u>=0;u--){var l=e[u];if("selector"==l[0]&&0!==l[2].length)for(var h=c(l[1]),p=l[1].length>1&&!f(t,h),d=t.sourceMap?i(l[1]):l[1],g=p?[h].concat(d):[h],m=0,v=g.length;v>m;m++){var b=g[m];n[b]?s.push(b):n[b]=[],n[b].push({where:u,list:d,isPartial:p&&m>0,isComplex:p&&0===m})}}o(e,s,n,t,r),a(e,n,t,r)}function i(e){for(var t=[],r=0;ru;u++){var c=t[u],f=r[c];s(e,c,f,{filterOut:o,callback:a},n,i)}}function a(e,t,r,n){function i(e){return a.data[e].wherem;m++){var b=g[m],y=t[b];if(y.length<2)continue e;if(a.data=y,s(e,b,y,{filterOut:i,callback:o},r,n),l(d[d.length-1])!=l(d[0]))continue e}p[2]=d[0]}}}function s(e,t,r,n,i,o){for(var a=[],s=[],l=[],c=[],f=r.length-1,p=0;f>=0;f--)if(!n.filterOut(f,a)){var d=r[f].where,g=e[d],m=h(g[2]);a=a.concat(m),s.push(m),c.push(d)}for(f=0,p=s.length;p>f;f++)s[f].length>0&&l.push((l[f-1]||0)+s[f].length);u(t,a,l,!1,i,o);for(var v=c.length,b=a.length-1,y=v-1;y>=0;)if((0===y||a[b]&&s[y].indexOf(a[b])>-1)&&b>-1)b--;else{var w=a.splice(b+1);n.callback(e[c[y]],w,v,y),y--}}var u=e("../properties/optimizer"),l=e("../stringifier/one-time").body,c=e("../stringifier/one-time").selectors,f=e("./is-special"),h=e("../utils/clone-array");t.exports=n},{"../properties/optimizer":20,"../stringifier/one-time":46,"../utils/clone-array":60,"./is-special":33}],39:[function(e,t,r){function n(e){for(var t={},r=0,n=e.length;n>r;r++){var o=e[r];if("block"==o[0]){var a=o[1][0]+"%"+i(o[2]),s=t[a];s&&(s[2]=[]),t[a]=o}}}var i=e("../stringifier/one-time").all;t.exports=n},{"../stringifier/one-time":46}],40:[function(e,t,r){function n(e){for(var t,r,n,a,s={},u=[],l=0,c=e.length;c>l;l++)r=e[l],"selector"==r[0]&&(t=o(r[1]),s[t]&&1==s[t].length?u.push(t):s[t]=s[t]||[],s[t].push(l));for(l=0,c=u.length;c>l;l++){t=u[l],a=[];for(var f=s[t].length-1;f>=0;f--)r=e[s[t][f]],n=i(r[2]),a.indexOf(n)>-1?r[2]=[]:a.push(n)}}var i=e("../stringifier/one-time").body,o=e("../stringifier/one-time").selectors;t.exports=n},{"../stringifier/one-time":46}],41:[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],d=e[5],g=e[6],m=t[0],v=t[1],b=t[2],y=t[5],w=t[6];return"font"==r&&"line-height"==m||"font"==m&&"line-height"==r?!1:h.test(r)&&h.test(m)?!1:i==b&&a(r)==a(m)&&o(r)^o(m)?!1:("border"!=i||!p.test(b)||"border"!=r&&r!=b)&&("border"!=b||!p.test(i)||"border"!=m&&m!=i)?"border"==i&&"border"==b&&r!=m&&(s(r)&&u(m)||u(r)&&s(m))?!1:i!=b?!0:r!=m||i!=b||n!=v&&!l(n,v)?r!=m&&i==b&&r!=i&&m!=b?!0:r!=m&&i==b&&n==v?!0:!(!w||!g||f(i)||f(b)||!c(y,d)):!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){return"border-top"==e||"border-right"==e||"border-bottom"==e||"border-left"==e}function u(e){return"border-color"==e||"border-style"==e||"border-width"==e}function l(e,t){return o(e)&&o(t)&&e.split("-")[1]!=t.split("-")[2]}function c(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}function f(e){return"font"==e||"line-height"==e||"list-style"==e}var h=/align\-items|box\-align|box\-pack|flex|justify/,p=/^border\-(top|right|bottom|left|color|style|width|radius)/;t.exports={canReorder:n,canReorderSingle:i}},{}],42:[function(e,t,r){function n(e,t){return e>t}function i(e,t){var r=h(e);return r[5]=r[5].concat(t[5]),r}function o(e,t){function r(e,t,r){for(var n=r.length-1;n>=0;n--){var i=r[n][0],a=o(t,i);if(E[a].length>1&&k(e,E[a])){h(a);break}}}function o(e,t){var r=p(t);return E[r]=E[r]||[],E[r].push([e,t]),r}function h(e){var t,r=e.split(M),n=[];for(var i in E){var o=i.split(M);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 E[n[t]]}function p(e){for(var t=[],r=0,n=e.length;n>r;r++)t.push(l(e[r][1]));return t.join(M)}function d(e){for(var r=[],n=[],i=e.length-1;i>=0;i--)f(t,l(e[i][1]))||(n.unshift(e[i]),e[i][2].length>0&&-1==r.indexOf(e[i])&&r.push(e[i]));return r.length>1?n:[]}function g(e,t){var n=t[0],i=t[1],o=t[4],a=n.length+i.length+1,s=[],u=[],l=d(C[o]);if(!(l.length<2)){var f=v(l,a,1),h=f[0];if(h[1]>0)return r(e,t,f);for(var p=h[0].length-1;p>=0;p--)s=h[0][p][1].concat(s),u.unshift(h[0][p]);s=c(s),w(e,[t],s,u)}}function m(e,t){return e[1]>t[1]}function v(e,t,r){var n=b(e,t,r,R-1);return n.sort(m)}function b(e,t,r,n){var i=[[e,y(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(b(a,t,r,n-1))}return i}function y(e,t,r){for(var n=0,i=e.length-1;i>=0;i--)n+=e[i][2].length>r?l(e[i][1]).length:-1;return n-(e.length-1)*t+1}function w(t,r,n,i){var o,a,s,l,c=[];for(o=i.length-1;o>=0;o--){var f=i[o];for(a=f[2].length-1;a>=0;a--){var h=f[2][a];for(s=0,l=r.length;l>s;s++){var p=r[s],d=h[0][0],g=p[0],m=p[4];if(d==g&&u([h])==m){f[2].splice(a,1);break}}}}for(o=r.length-1;o>=0;o--)c.unshift(r[o][3]);var v=["selector",n,c];e.splice(t,0,v)}function _(e,t){var r=t[4],n=C[r];n&&n.length>1&&(x(e,t)||g(e,t))}function x(e,t){var r,n,i=[],o=[],a=t[4],s=d(C[a]);if(!(s.length<2)){e:for(var u in C){var l=C[u];for(r=s.length-1;r>=0;r--)if(-1==l.indexOf(s[r]))continue e;i.push(u)}if(i.length<2)return!1;for(r=i.length-1;r>=0;r--)for(n=S.length-1;n>=0;n--)if(S[n][4]==i[r]){o.unshift([S[n],s]);break}return k(e,o)}}function k(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=v(s,n,i.length)[0];if(u[1]>0)return!1;var l=[],f=[];for(o=u[0].length-1;o>=0;o--)l=u[0][o][1].concat(l),f.unshift(u[0][o]);for(l=c(l),w(e,i,l,f),o=i.length-1;o>=0;o--){r=i[o];var h=S.indexOf(r);delete C[r[4]],h>-1&&-1==A.indexOf(h)&&A.push(h)}return!0}function O(e,t,r){var n=e[0],i=t[0];if(n!=i)return!1;var o=t[4],a=C[o];return a&&a.indexOf(r)>-1}for(var C={},S=[],E={},A=[],R=2,M="%",L=e.length-1;L>=0;L--){var j,T,P,V,B,U=e[L];if("selector"==U[0])j=!0;else{if("block"!=U[0])continue;j=!1}var D=S.length,I=a(U);A=[];var N=[];for(T=I.length-1;T>=0;T--)for(P=T-1;P>=0;P--)if(!s(I[T],I[P])){N.push(T);break}for(T=I.length-1;T>=0;T--){var z=I[T],q=!1;for(P=0;D>P;P++){var F=S[P];-1!=A.indexOf(P)||s(z,F)||O(z,F,U)||(_(L+1,F,U),-1==A.indexOf(P)&&(A.push(P),delete C[F[4]])),q||(q=z[0]==F[0]&&z[1]==F[1],q&&(B=P))}if(j&&!(N.indexOf(T)>-1)){var $=z[4];C[$]=C[$]||[],C[$].push(U),q?S[B]=i(S[B],z):S.push(z)}}for(A=A.sort(n),T=0,V=A.length;V>T;T++){var H=A[T]-T;S.splice(H,1)}}for(var W=e[0]&&"at-rule"==e[0][0]&&0===e[0][1][0].indexOf("@charset")?1:0;W-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 o(e,t){return-1==t.indexOf("0deg")?t:t.replace(/\(0deg\)/g,"(0)")}function a(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 s(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 u(e,t,r){return/^(?:\-moz\-calc|\-webkit\-calc|calc)\(/.test(t)?t:"flex"==e||"-ms-flex"==e||"-webkit-flex"==e||"flex-basis"==e||"-webkit-flex-basis"==e?t:t.indexOf("%")>0&&("height"==e||"max-height"==e)?t:t.replace(r,"$10$2").replace(r,"$10$2")}function l(e){var t,r=e.value;4==r.length&&"0"===r[0][0]&&"0"===r[1][0]&&"0"===r[2][0]&&"0"===r[3][0]&&(t=e.name.indexOf("box-shadow")>-1?2:1),t&&(e.value.splice(t),e.dirty=!0)}function c(e,t,r){return-1===t.indexOf("#")&&-1==t.indexOf("rgb")&&-1==t.indexOf("hsl")?E.shorten(t):(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,r,n){return new C(t,r,n).toHex()}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,r,n){return new S(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&&-1==e.indexOf("background")&&(t=t.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(e){return O(t,",").pop().indexOf("gradient(")>-1?e:"transparent"})),E.shorten(t))}function f(e,t,r){return U.test(t)?t.replace(U,function(e,t){var n,i=parseInt(t);return 0===i?e:(r.properties.shorterLengthUnits&&r.units.pt&&3*i%4===0&&(n=3*i/4+"pt"),r.properties.shorterLengthUnits&&r.units.pc&&i%16===0&&(n=i/16+"pc"),r.properties.shorterLengthUnits&&r.units["in"]&&i%96===0&&(n=i/96+"in"),n&&(n=e.substring(0,e.indexOf(t))+n),n&&n.length-1||t[1]&&P.indexOf(t[1][0])>-1||t[2]&&P.indexOf(t[2][0])>-1;if(!r&&"/"!=t[1]){var n=0;if("normal"==t[0][0]&&n++,t[1]&&"normal"==t[1][0]&&n++,t[2]&&"normal"==t[2][0]&&n++,!(n>1)){var i;B.indexOf(t[0][0])>-1?i=0:t[1]&&B.indexOf(t[1][0])>-1?i=1:t[2]&&B.indexOf(t[2][0])>-1?i=2:V.indexOf(t[0][0])>-1?i=0:t[1]&&V.indexOf(t[1][0])>-1?i=1:t[2]&&V.indexOf(t[2][0])>-1&&(i=2),void 0!==i&&(e.value[i][0]=I["font-weight"](t[i][0]),e.dirty=!0)}}}function m(e,t){for(var r,v,b,y=A(e),w=0,_=y.length;_>w;w++)if(r=y[w],v=r.name,r.hack&&(("star"==r.hack||"underscore"==r.hack)&&!t.compatibility.properties.iePrefixHack||"backslash"==r.hack&&!t.compatibility.properties.ieSuffixHack||"bang"==r.hack&&!t.compatibility.properties.ieBangHack)&&(r.unused=!0),0===v.indexOf("padding")&&(n(r,0)||n(r,1)||n(r,2)||n(r,3))&&(r.unused=!0),!r.unused)if(r.variable)r.block&&m(r.value[0],t);else{for(var x=0,k=r.value.length;k>x;x++)b=r.value[x][0],I[v]&&(b=I[v](b,x,k)),b=a(v,b),b=s(v,b,t.precision),b=f(v,b,t.compatibility),b=h(v,b),b=i(v,b),t.compatibility.properties.zeroUnits&&(b=o(v,b),b=u(v,b,t.unitsRegexp)),t.compatibility.properties.colors&&(b=c(v,b,t.compatibility)),r.value[x][0]=b;l(r),0===v.indexOf("border")&&v.indexOf("radius")>0?p(r):"filter"==v?d(r):"font"==v&&g(r)}R(y,!0),M(y)}function v(e){for(var t=!1,r=0,n=e.length;n>r;r++){var i=e[r];"at-rule"==i[0]&&T.test(i[1][0])&&(t||-1==i[1][0].indexOf(j)?(e.splice(r,1),r--,n--):(t=!0,e.splice(r,1),e.unshift(["at-rule",[i[1][0].replace(T,j)]])))}}function b(e){var t=["px","em","ex","cm","mm","in","pt","pc","%"],r=["ch","rem","vh","vm","vmax","vmin","vw"];return r.forEach(function(r){e.compatibility.units[r]&&t.push(r)}),new RegExp("(^|\\s|\\(|,)0(?:"+t.join("|")+")(\\W|$)","g")}function y(e){var t={};return t.value=void 0===e.roundingPrecision?L:e.roundingPrecision,t.multiplier=Math.pow(10,t.value),t.regexp=new RegExp("(\\d*\\.\\d{"+(t.value+1)+",})px","g"),t}function w(e,t){var r=t.compatibility.selectors.ie7Hack,n=t.compatibility.selectors.adjacentSpace,i=t.compatibility.properties.spaceAfterClosingBrace,o=!1;t.unitsRegexp=b(t),t.precision=y(t);for(var a=0,s=e.length;s>a;a++){var u=e[a];switch(u[0]){case"selector":u[1]=_(u[1],!r,n),m(u[2],t);break;case"block":x(u[1],i),w(u[2],t);break;case"flat-block":x(u[1],i),m(u[2],t);break;case"at-rule":k(u[1]),o=!0}(0===u[1].length||u[2]&&0===u[2].length)&&(e.splice(a,1),a--,s--)}o&&v(e)}var _=e("./clean-up").selectors,x=e("./clean-up").block,k=e("./clean-up").atRule,O=e("../utils/split"),C=e("../colors/rgb"),S=e("../colors/hsl"),E=e("../colors/hex-name-shortener"),A=e("../properties/wrap-for-optimizing").all,R=e("../properties/restore-from-optimizing"),M=e("../properties/remove-unused"),L=2,j="@charset",T=new RegExp("^"+j,"i"),P=["100","200","300","400","500","600","700","800","900"],V=["normal","bold","bolder","lighter"],B=["bold","bolder","lighter"],U=/(?:^|\s|\()(-?\d+)px/,D=/^(\-?[\d\.]+)(m?s)$/,I={background:function(e,t,r){return 0!==t||1!=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 0===t&&1==r&&"none"==e?"0":e}};t.exports=w},{"../colors/hex-name-shortener":10,"../colors/hsl":11,"../colors/rgb":12,"../properties/remove-unused":23,"../properties/restore-from-optimizing":24,"../properties/wrap-for-optimizing":29,"../utils/split":67,"./clean-up":31}],44:[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},{}],45:[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){for(var r=t.store,n=0,i=e.length;i>n;n++)r(e[n],t),i-1>n&&r(",",t)}function d(e,t){for(var r=0,n=e.length;n>r;r++)g(e,r,r==n-1,t)}function g(e,t,r,n){var i=n.store,o=e[t];"string"==typeof o?i(o,n):o[0]==_?m(o[1],r,n):(i(o[0],n),i(":",n),v(e,t,r,n))}function m(e,t,r){var n=r.store;n(e,r),t||n(x,r)}function v(e,t,r,i){var o=i.store,a=e[t],s=0===a[0][0].indexOf("--");if(s&&b(a[1]))return o("{",i),d(a[1],i),void o("};",i);for(var u=1,l=a.length;l>u;u++)o(a[u],i),l-1>u&&(f(a)||!h(a,u,i))?o(" ",i):u==l-1&&!r&&n(e,t+1)&&o(x,i)}function b(e){for(var t=0,r=e.length;r>t;t++)if(e[t][0]==_||Array.isArray(e[t][0]))return!0;return!1}function y(e,t){for(var r=t.keepBreaks?w:"",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":p([a[1]],t),n("{",t),y(a[2],t),n("}",t),n(r,t);break;case"flat-block":p([a[1]],t),n("{",t),d(a[2],t),n("}",t),n(r,t);break;default:p(a[1],t),n("{",t),d(a[2],t),n("}",t),n(r,t)}}}var w=e("os").EOL,_="at-rule",x=";";t.exports={all:y,body:d,property:g,selectors:p,value:v}},{os:75}],46:[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":45}],47:[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":45}],48:[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(t.output))),o(n,r?null:e,t),t.output.push(n)}function i(e){for(var t=[],r=e.length-1;r>=0;r--){var n=e[r];if(t.unshift(n),"{"==n||";"==n)break}return t.join("")}function o(e,t,r){t&&a(t,r);var n=e.split("\n");r.line+=n.length-1,r.column=n.length>1?0:r.column+n.pop().length}function a(e,t){var r=e[e.length-1];if(Array.isArray(r))for(var n=0,i=r.length;i>n;n++)s(r[n],t)}function s(e,t){var r=e[2]||h;f&&(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 u(e,t,r,i){var o={column:0,inputMapTracker:i,keepBreaks:t.keepBreaks,line:1,output:[],outputMap:new l,restore:r,sourceMapInlineSources:t.sourceMapInlineSources,spaceAfterClosingBrace:t.compatibility.properties.spaceAfterClosingBrace,store:n};return c(e,o,!1),{sourceMap:o.outputMap,styles:o.output.join("").trim()}}var l=e("source-map").SourceMapGenerator,c=e("./helpers").all,f="win32"==r.platform,h="$stdin";t.exports=u}).call(this,e("_process"))},{"./helpers":45,_process:78,"source-map":93}],49:[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=0;o0?i.join("")+t.substring(o,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":64,"./escape-store":50,os:75}],50:[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},{}],51:[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":50,os:75}],52:[function(e,t,r){function n(e){this.matches=new o("FREE_TEXT"),this.saveWaypoints=e}function i(e,t,r,n){var i=t;r&&(i=r+t.substring(0,t.indexOf("__ESCAPED_FREE_TEXT_CLEAN_CSS")),n=i.length);var o=i.lastIndexOf(";",n),a=i.lastIndexOf("{",n),s=0;s=o>-1&&a>-1?Math.max(o,a):-1==o?a:o;var u=i.substring(s+1,n);if(/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(u)&&(e=e.replace(/\\\n|\\\r\n/g,"").replace(/\n|\r\n/g,"")),/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/.test(e)&&!/format\($/.test(u)){var l=/^(font|font\-family):/.test(u),c=/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(u),f=/@(-moz-|-o-|-webkit-)?keyframes /.test(u),h=/^(-moz-|-o-|-webkit-)?animation(-name)?:/.test(u);(l||c||f||h)&&(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,t){for(var r=[],n=0;n0?r.join("")+e.substring(n,e.length):e},t.exports=n},{"../utils/quote-scanner":64,"./escape-store":50,os:75}],53:[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":58,"./escape-store":50,os:75}],54:[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=[],d=/[ ,\/]/;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 g=c(e,";",!1,"{","}"),m=0,v=g.length;v>m;m++){var b=g[m],y=b.indexOf(":"),w="@"==b.trim()[0];if(w)r.track(b),i.push([p,b.trim()]);else if(-1!=y)if(b.indexOf("{")>0&&b.indexOf("{")-1&&(x=a(x,i,r)),x.indexOf("__ESCAPED_COMMENT")>-1&&(x=s(x,o,r)),_.push([x.trim()].concat(r.track(x,!0))),r.track(":"),u(o,i,r);var k=b.indexOf("{"),O=0===x.trim().indexOf("--");if(O&&k>0){var C=b.substring(y+1,k+1),S=b.substring(b.indexOf("}")),E=b.substring(k+1,b.length-S.length);r.track(C),_.push(l(E,t,r)),i.push(_),r.track(S),r.track(v-1>m?";":"")}else{var A=c(b.substring(y+1),d,!0);if(1!=A.length||""!==A[0]){for(var R=0,M=A.length;M>R;R++){var L=A[R],j=L.trim();if(0!==j.length){var T=j[j.length-1],P=j.length>1&&(T==f||T==h);if(P&&(j=j.substring(0,j.length-1)),j.indexOf("__ESCAPED_COMMENT_CLEAN_CSS(0,-")>-1)r.track(j);else if(o=[],j.indexOf("__ESCAPED_COMMENT")>-1&&(j=a(j,i,r)),j.indexOf("__ESCAPED_COMMENT")>-1&&(j=s(j,o,r)),0!==j.length){var V=_.length-1;"important"!=j||"!"!=_[V][0]?"!important"==j||"important"==j&&"!"==_[V][0][_[V][0].length-1]?(r.track(j),_[V][0]+=j):(_.push([j].concat(r.track(L,!0))),u(o,i,r),P&&(_.push([T]),r.track(T))):(r.track(j),_[V-1][0]+="!important",_.pop())}else u(o,i,r)}}v-1>m&&r.track(";"),i.push(_)}else r.warnings.push("Empty property '"+x+"' inside '"+t.filter(n).join(",")+"' selector. Ignoring.")}}else r.track(b),b.indexOf("__ESCAPED_COMMENT_SPECIAL")>-1&&i.push(b.trim())}return i}var c=e("../utils/split"),f=",",h="/",p="at-rule";t.exports=l},{"../utils/split":67}],55:[function(e,t,r){function n(e,t){for(var r,n=[],o=i(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/split");t.exports=n},{"../utils/split":67}],56:[function(e,t,r){function n(e,t){var r=f(i(e),"}",!0,"{","}");if(0===r.length)return[];var n={chunk:r.shift(),chunks: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[[c(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(0===e.chunks.length)return null;e.chunk=n=e.chunks.shift(),e.cursor=0}if("body"==r)return"}"==n[e.cursor]?[e.cursor,"bodyEnd"]:-1==n.indexOf("}",e.cursor)?null:(t=e.cursor+f(n.substring(e.cursor-1),"}",!0,"{","}")[0].length-2,[t,"bodyEnd"]);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 c=e.chunk.substring(e.cursor);c.trim().length>0&&("body"==e.mode?e.warnings.push("Missing '}' after '"+c+"'. Ignoring."):i.push(["text",[c]]),e.cursor+=c.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),_=-1==b&&-1==y;if(_)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 x=r.trim(),k=p.test(x);h=e.mode,e.cursor=f+1,e.mode=k?"body":"block",t=[k?"flat-block":"block"],t.push([x].concat(e.track(r,!0))),e.track("{"),t.push(s(e)),"string"==typeof t[2]&&(t[2]=u(t[2],[[x]],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),C=!!e.sourceTracker.nextStart(O),S=!!e.sourceTracker.nextEnd(O);if(C)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 E=e.state.pop();e.source=E.source,e.line=E.line,e.column=E.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=l(n.substring(e.cursor,d),e);h=e.mode,e.cursor=d+1,e.mode="body";var R=u(s(e),A,e);e.track("{"),e.mode=h,i.push(["selector",A,R])}else if("bodyEnd"==g){if("top"==e.mode){var M=e.cursor,L="}"==n[e.cursor]?"Unexpected '}' in '"+n.substring(M-20,M+20)+"'. Ignoring.":"Unexpected content: '"+n.substring(M,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("./extract-properties"),l=e("./extract-selectors"),c=e("../source-maps/track"),f=e("../utils/split"),h=e("path"),p=/(@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport|counter\-style)|\\@.+?)/;t.exports=n},{"../source-maps/track":44,"../utils/split":67,"./extract-properties":54,"./extract-selectors":55,path:76}],57:[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":59,path:76}],58:[function(e,t,r){function n(e,t,r){for(var n=0,i=0,o=0,c=0,f=!1,h=0,p=[],d=e.indexOf(s)>-1;o-1&&(n=i),'"'==e[n+a.length])o=e.indexOf('"',n+a.length+1);else if("'"==e[n+a.length])o=e.indexOf("'",n+a.length+1);else if(f=0===e.substring(n+a.length).trim().indexOf(l),o=e.indexOf(u,n),f)for(;;){if(c=e.indexOf(u,o+1),-1==c||/[\s\{\};]/.test(e.substring(o,c)))break;o=c}-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)),p.push(e.substring(h,n));var g=e.substring(n,o+1);r(g,p),h=o+1}return p.length>0?p.join("")+e.substring(h,e.length):e}function i(e,t,r){for(var n,i,o=0,a=0,s=0,u=0,l=0,p=[],d=0,g=0,m="'",v='"';u-1&&a>-1&&o>a&&(o=a),d=e.indexOf(m,o),g=e.indexOf(v,o),d>-1&&g>-1&&g>d)s=d,i=m;else if(d>-1&&g>-1&&d>g)s=g,i=v;else if(d>-1)s=d,i=m;else{if(!(g>-1))break;s=g,i=v}if(p.push(e.substring(l,s)),u=e.indexOf(i,s+1),n=e.substring(o,u),-1==u||/^@import\s+(url\(|__ESCAPED)/i.test(n)||h.test(n)){l=s;break}var b=e.substring(s,u+1);r(b,p),l=u+1}return p.length>0?p.join("")+e.substring(l,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="data:",c="@import",f="@IMPORT",h=/\*\//;t.exports=o},{}],59:[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,t){return b.parse(e).protocol==b.parse(t).protocol&&b.parse(e).host==b.parse(t).host}function l(e){return e.lastIndexOf(".css")===e.length-4}function c(e){return 0===e.indexOf("data:")}function f(e,t){return v.resolve(v.join(t.fromBase||"",e)).replace(t.toBase,"")}function h(e,t){return v.relative(t.toBase,v.join(t.fromBase||"",e))}function p(e){return w?e.replace(/\\/g,"/"):e}function d(e,t){return n(e)||i(e)||o(e)||a(e)?e:t.rebase!==!1||l(e)?!t.imports&&l(e)?e:c(e)?"'"+e+"'":s(e)&&!s(t.toBase)?e:s(e)&&!u(e,t.toBase)?e:!s(e)&&s(t.toBase)?b.resolve(t.toBase,e):p(t.absolute?f(e,t):h(e,t)):e}function g(e){return e.indexOf("'")>-1?'"':e.indexOf('"')>-1?"'":/\s/.test(e)||/[\(\)]/.test(e)?"'":""}function m(e,t,r){return y(e,r,function(e,r){var n,i=e.replace(/^(url\()?\s*['"]?|['"]?\s*\)?$/g,""),o=e.match(/^(url\()?\s*(['"]).*?(['"])\s*\)?$/);n=t.urlQuotes&&o&&o[2]===o[3]?o[2]:g(i),r.push("url("+n+d(i,t)+n+")")})}var v=e("path"),b=e("url"),y=e("./reduce"),w="win32"==r.platform;t.exports=m}).call(this,e("_process"))},{"./reduce":58,_process:78,path:76,url:111}],60:[function(e,t,r){function n(e){for(var t=e.slice(0),r=0,i=t.length;i>r;r++)Array.isArray(t[r])&&(t[r]=n(t[r]));return t}t.exports=n},{}],61:[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,ieBangHack:!1,iePrefixHack:!1,ieSuffixHack:!0,merging:!0,shorterLengthUnits:!1,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|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!0,"in":!0,pc:!0,pt:!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,ieBangHack:!1,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!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|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!1,"in":!0,pc:!0,pt:!0,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,ieBangHack:!0,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!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|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!1,"in":!0,pc:!0,pt:!0,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:115}],62:[function(e,t,r){(function(r,n,i){function o(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 a(e,t,r){return e.trackLoaded(void 0,void 0,e.options.sourceMap),r()}function s(e,t,r,n){function i(){n.cursor+=o+1,s(e,t,r,n)}for(var o=0;n.cursor-1&&(o=c.index),f.index>-1&&f.index-1&&h.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 f(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?f(e,t-1,r,n,i-1):(e.path&&o.source&&(o.source=x.test(e.path)?y.resolve(e.path,o.source):m.join(e.path,o.source),o.sourceResolved=!0),o)}function h(e,t){var r=e.maps[t].data,n=x.test(t),i={};r.sources.forEach(function(o,a){var s=n?y.resolve(m.dirname(t),o):m.relative(e.relativeTo,m.resolve(m.dirname(t),o));i[s]=r.sourcesContent&&r.sourcesContent[a]}),e.sourcesContent[t]=i}function p(e,t,r){function n(){return p(e,t,r)}if(0===t.length)return r();var i=t.shift(),o=i[0],a=i[1],s=x.test(o);if(s&&e.localOnly)return e.warnings.push('No callback given to `#minify` method, cannot fetch a remote file from "'+a+'"'),n();if(!s){var u=m.join(e.options.root,a);return g.existsSync(u)?e.sourcesContent[o][a]=g.readFileSync(u,"utf-8"):e.warnings.push('Missing original source file at "'+u+'".'),n()}c(e,a,function(t){e.sourcesContent[o][a]=t,n()},function(t){e.warnings.push('Broken original source file at "'+a+'" - '+t),n()})}var d=e("source-map").SourceMapConsumer,g=e("fs"),m=e("path"),v=e("http"),b=e("https"),y=e("url"),w=e("../utils/object.js").override,_=/\/\*# sourceMappingURL=(\S+) \*\//,x=/^(https?:)?\/\//,k=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/,O=n.unescape;o.prototype.track=function(e,t){return"string"==typeof this.options.sourceMap?a(this,e,t):s(this,e,t,{files:[],cursor:0,errors:this.errors})},o.prototype.trackLoaded=function(e,t,r){var n=this.options.explicitTarget?this.options.target:this.options.root,i=x.test(e);t&&(t=i?m.dirname(t):m.dirname(m.relative(n,t))),this.maps[e]={path:t,data:new d(r)},h(this,e)},o.prototype.isTracking=function(e){return!!this.maps[e]},o.prototype.originalPositionFor=function(e,t,r){return f(this.maps[e.source],e.line,e.column,t,r)},o.prototype.sourcesContentFor=function(e){return this.sourcesContent[e]},o.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 p(this,t,e)},t.exports=o}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"../utils/object.js":63,_process:78,buffer:5,fs:4,http:105,https:70,path:76,"source-map":93,url:111}],63:[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}}},{}],64:[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},{}],65:[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,urlQuotes:e.outerContext.options.compatibility.properties.urlQuotes};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,{isBuffer:e("../../../is-buffer/index.js")})},{"../../../is-buffer/index.js":73,"../urls/rewrite":59,path:76}],66:[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},{}],67:[function(e,t,r){function n(e,t,r,n,i){var o="string"!=typeof t,a=o?t.test(e):e.indexOf(t);if(!a)return[e];if(n=n||"(",i=i||")",-1==e.indexOf(n)&&!r)return e.split(t);for(var s=0,u=0,l=0,c=e.length,f=[];c>u;)e[u]==n?s++:e[u]==i&&s--,0===s&&u>0&&c>u+1&&(o?t.test(e[u]):e[u]==t)&&(f.push(e.substring(l,u+(r?1:0))),l=u+1),u++;if(u+1>l){var h=e.substring(l),p=h[h.length-1];!r&&(o?t.test(p):p==t)&&(h=h.substring(0,h.length-1)),f.push(h)}return f}t.exports=n},{}],68:[function(e,t,r){(function(e){function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===m(e)}function n(e){return"boolean"==typeof e}function i(e){return null===e}function o(e){return null==e}function a(e){return"number"==typeof e}function s(e){return"string"==typeof e}function u(e){return"symbol"==typeof e}function l(e){return void 0===e}function c(e){return"[object RegExp]"===m(e)}function f(e){return"object"==typeof e&&null!==e}function h(e){return"[object Date]"===m(e)}function p(e){return"[object Error]"===m(e)||e instanceof Error}function d(e){return"function"==typeof e}function g(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function m(e){return Object.prototype.toString.call(e)}r.isArray=t,r.isBoolean=n,r.isNull=i,r.isNullOrUndefined=o,r.isNumber=a,r.isString=s,r.isSymbol=u,r.isUndefined=l,r.isRegExp=c,r.isObject=f,r.isDate=h,r.isError=p,r.isFunction=d,r.isPrimitive=g,r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":73}],69:[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:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}else if(a(r))for(o=Array.prototype.slice.call(arguments,1),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");return 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&&(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())),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 if(r)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.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},{}],70:[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",e.protocol="https:",n.request.call(this,e,t)}},{http:105}],71:[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}},{}],72:[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}},{}],73:[function(e,t,r){t.exports=function(e){return!(null==e||!(e._isBuffer||e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)))}},{}],74:[function(e,t,r){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],75:[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"},{}],76:[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:78}],77:[function(e,t,r){(function(e){"use strict";function r(t){for(var r=new Array(arguments.length-1),n=0;n1)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?B(e/E):e>>1,e+=B(e/t);e>V*C>>1;n+=k)e=B(e/V);return B(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=R,y=A;for(r=e.lastIndexOf(M),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>B((x-v)/s))&&o("overflow"),v+=f*s,p=y>=u?O:u>=y+C?C:u-y,!(p>f);u+=k)d=k-p,s>B(x/d)&&o("overflow"),s*=d;t=g.length+1,y=h(v-a,t,0==a),B(v/t)>x-b&&o("overflow"),b+=B(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=R,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(M);m>n;){for(l=x,s=0;m>s;++s)g=e[s],g>=t&&l>g&&(l=g);for(v=n+1,l-t>B((x-r)/v)&&o("overflow"),r+=(l-t)*v,t=l,s=0;m>s;++s)if(g=e[s],t>g&&++r>x&&o("overflow"),g==t){for(c=r,p=k;d=a>=p?O:p>=a+C?C:p-a,!(d>c);p+=k)y=c-d,b=k-d,w.push(U(f(d+y%b,0))),c=B(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,C=26,S=38,E=700,A=72,R=128,M="-",L=/^xn--/,j=/[^\x20-\x7E]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,P={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,B=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(_ in w)w.hasOwnProperty(_)&&(v[_]=w[_]);else i.punycode=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],80:[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)}},{}],81:[function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n0)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=V?e=V:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(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 E.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function c(e,t){if(!t.ended){if(t.decoder){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||(L("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?C(h,e):h(e))}function h(e){L("emit readable"),e.emit("readable"),y(e)}function p(e,t){t.readingMore||(t.readingMore=!0,C(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(""):1===n.length?n[0]:E.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,C(x,t,e))}function x(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function k(e,t){for(var r=0,n=e.length;n>r;r++)t(e[r],r)}function O(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1}t.exports=i;var C=e("process-nextick-args"),S=e("isarray"),E=e("buffer").Buffer;i.ReadableState=n;var A,R=(e("events"),function(e,t){return e.listeners(t).length});!function(){try{A=e("stream")}catch(t){}finally{A||(A=e("events").EventEmitter)}}();var E=e("buffer").Buffer,M=e("core-util-is");M.inherits=e("inherits");var L,j=e("util");L=j&&j.debuglog?j.debuglog("stream"):function(){};var T;M.inherits(i,A);var P,P;i.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding,t!==r.encoding&&(e=new E(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.isPaused=function(){return this._readableState.flowing===!1},i.prototype.setEncoding=function(t){return T||(T=e("string_decoder/").StringDecoder),this._readableState.decoder=new T(t),this._readableState.encoding=t,this};var V=8388608;i.prototype.read=function(e){L("read",e);var t=this._readableState,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return L("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?_(this):f(this),null;if(e=u(e,t),0===e&&t.ended)return 0===t.length&&_(this),null;var n=t.needReadable;L("need readable",n),(0===t.length||t.length-e0?w(e,t):null,null===i&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&_(this),null!==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){L("onunpipe"),e===f&&o()}function i(){L("onend"),e.end()}function o(){L("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),v=!0,!h.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function a(t){L("ondata");var r=e.write(t);!1===r&&(1!==h.pipesCount||h.pipes[0]!==e||1!==f.listenerCount("data")||v||(L("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++),f.pause())}function s(t){L("onerror",t),c(),e.removeListener("error",s),0===R(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",l),c()}function l(){L("onfinish"),e.removeListener("close",u),c()}function c(){L("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,L("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?C(d):f.once("end",d),e.on("unpipe",n);var m=g(f);e.on("drain",m);var v=!1;return f.on("data",a),e._events&&e._events.error?S(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||(L("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=O(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 r=A.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&f(this,n):C(m,this))}return r},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var e=this._readableState;return e.flowing||(L("resume"),e.flowing=!0,v(this,e)),this},i.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(L("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(L("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(L("wrapped data"),t.decoder&&(i=t.decoder.write(i)),(!t.objectMode||null!==i&&void 0!==i)&&(t.objectMode||i&&i.length)){var o=n.push(i);o||(r=!0,e.pause())}});for(var i in e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return k(o,function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){L("wrapped _read",t),r&&(r=!1,e.resume())},n},i._fromList=w}).call(this,e("_process"))},{"./_stream_duplex":84,_process:78,buffer:5,"core-util-is":68,events:69,inherits:72,isarray:74,"process-nextick-args":77,"string_decoder/":109,util:3}],87:[function(e,t,r){"use strict";function n(e){this.afterTransform=function(t,r){return i(e,t,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,null!==r&&void 0!==r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e},a.prototype._write=function(e,t,r){r(new Error("not implemented"))},a.prototype._writev=null,a.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||_(this,n,r)}},{"./_stream_duplex":84,buffer:5,"core-util-is":68,events:69,inherits:72,"process-nextick-args":77,"util-deprecate":113}],89:[function(e,t,r){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":85}],90:[function(e,t,r){var n=function(){try{return e("stream")}catch(t){}}();r=t.exports=e("./lib/_stream_readable.js"),r.Stream=n||r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":84,"./lib/_stream_passthrough.js":85,"./lib/_stream_readable.js":86,"./lib/_stream_transform.js":87,"./lib/_stream_writable.js":88}],91:[function(e,t,r){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":87}],92:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":88}],93:[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":100,"./source-map/source-map-generator":101,"./source-map/source-node":102}],94:[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:1}],97:[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:1}],98:[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":103,amdefine:1}],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){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:1}],100:[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])),x.push(r),"number"==typeof r.originalLine&&_.push(r)}f(x,s.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,f(_,s.compareByOriginalPositions),this.__originalMappings=_},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":94,"./base64-vlq":95,"./mapping-list":98,"./util":103,amdefine:1}],102:[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":101,"./util":103,amdefine:1}],103:[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:1}],104:[function(e,t,r){function n(){i.call(this)}t.exports=n;var i=e("events").EventEmitter,o=e("inherits");o(n,i),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),n.Stream=n,n.prototype.pipe=function(e,t){function r(t){e.writable&&!1===e.write(t)&&l.pause&&l.pause()}function n(){l.readable&&l.resume&&l.resume()}function o(){c||(c=!0,e.end())}function a(){c||(c=!0,"function"==typeof e.destroy&&e.destroy())}function s(e){if(u(),0===i.listenerCount(this,"error"))throw e}function u(){l.removeListener("data",r),e.removeListener("drain",n),l.removeListener("end",o),l.removeListener("close",a),l.removeListener("error",s),e.removeListener("error",s),l.removeListener("end",u),l.removeListener("close",u),e.removeListener("close",u)}var l=this;l.on("data",r),e.on("drain",n),e._isStdio||t&&t.end===!1||(l.on("end",o),l.on("close",a));var c=!1;return l.on("error",s),e.on("error",s),l.on("end",u),l.on("close",u),e.on("close",u),e.emit("pipe",l),e}},{events:69,inherits:72,"readable-stream/duplex.js":83,"readable-stream/passthrough.js":89,"readable-stream/readable.js":90,"readable-stream/transform.js":91,"readable-stream/writable.js":92}],105:[function(e,t,r){(function(t){var n=e("./lib/request"),i=e("xtend"),o=e("builtin-status-codes"),a=e("url"),s=r;s.request=function(e,r){e="string"==typeof e?a.parse(e):i(e);var o=-1===t.location.protocol.search(/^https?:$/)?"http:":"",s=e.protocol||o,u=e.hostname||e.host,l=e.port,c=e.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),e.url=(u?s+"//"+u:"")+(l?":"+l:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new n(e);return r&&f.on("response",r),f},s.get=function(e,t){var r=s.request(e,t);return r.end(),r},s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.STATUS_CODES=o,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":107,"builtin-status-codes":7,url:111,xtend:116}],106:[function(e,t,r){(function(e){function t(e){try{return o.responseType=e,o.responseType===e}catch(t){}return!1}function n(e){return"function"==typeof e}r.fetch=n(e.fetch)&&n(e.ReadableByteStream),r.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),r.blobConstructor=!0}catch(i){}var o=new e.XMLHttpRequest;o.open("GET",e.location.host?"/":"https://example.com");var a="undefined"!=typeof e.ArrayBuffer,s=a&&n(e.ArrayBuffer.prototype.slice);r.arraybuffer=a&&t("arraybuffer"),r.msstream=!r.fetch&&s&&t("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&a&&t("moz-chunked-arraybuffer"),r.overrideMimeType=n(o.overrideMimeType),r.vbArray=n(e.VBArray),o=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],107:[function(e,t,r){(function(r,n,i){function o(e){return s.fetch?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":s.vbArray&&e?"text:vbarray":"text"}function a(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}}var s=e("./capability"),u=e("inherits"),l=e("./response"),c=e("stream"),f=e("to-arraybuffer"),h=l.IncomingMessage,p=l.readyStates,d=t.exports=function(e){var t=this;c.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+new i(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(r){t.setHeader(r,e.headers[r])});var r;if("prefer-streaming"===e.mode)r=!1;else if("allow-wrong-content-type"===e.mode)r=!s.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");r=!0}t._mode=o(r),t.on("finish",function(){t._onFinish()})};u(d,c.Writable),d.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===g.indexOf(n)&&(r._headers[n]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this;return t._headers[e.toLowerCase()].value},d.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,o=e._opts,a=e._headers;if("POST"!==o.method&&"PUT"!==o.method&&"PATCH"!==o.method||(t=s.blobConstructor?new n.Blob(e._body.map(function(e){return f(e)}),{type:(a["content-type"]||{}).value||""}):i.concat(e._body).toString()),"fetch"===e._mode){var u=Object.keys(a).map(function(e){return[a[e].name,a[e].value]});n.fetch(e._opts.url,{method:e._opts.method,headers:u,body:t,mode:"cors",credentials:o.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)})}else{var l=e._xhr=new n.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(c){return void r.nextTick(function(){e.emit("error",c)})}"responseType"in l&&(l.responseType=e._mode.split(":")[0]),"withCredentials"in l&&(l.withCredentials=!!o.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(a).forEach(function(e){l.setRequestHeader(a[e].name,a[e].value)}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{l.send(t)}catch(c){return void r.nextTick(function(){e.emit("error",c)})}}}},d.prototype._onXHRProgress=function(){var e=this;a(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new h(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},d.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()},d.prototype.abort=d.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},d.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),c.Writable.prototype.end.call(n,e,t,r)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":106,"./response":108,_process:78,buffer:5,inherits:72,stream:104,"to-arraybuffer":110}],108:[function(e,t,r){(function(t,n,i){var o=e("./capability"),a=e("inherits"),s=e("stream"),u=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=r.IncomingMessage=function(e,r,n){function a(){h.read().then(function(e){if(!u._destroyed){if(e.done)return void u.push(null);u.push(new i(e.value)),a()}})}var u=this;if(s.Readable.call(u),u._mode=n,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){t.nextTick(function(){u.emit("close")})}),"fetch"===n){u._fetchResponse=r,u.statusCode=r.status,u.statusMessage=r.statusText;for(var l,c,f=r.headers[Symbol.iterator]();l=(c=f.next()).value,!c.done;)u.headers[l[0].toLowerCase()]=l[1],u.rawHeaders.push(l[0],l[1]);var h=r.body.getReader();a()}else{u._xhr=e,u._pos=0,u.statusCode=e.status,u.statusMessage=e.statusText;var p=e.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===u.headers[r]&&(u.headers[r]=[]),u.headers[r].push(t[2])):void 0!==u.headers[r]?u.headers[r]+=", "+t[2]:u.headers[r]=t[2],u.rawHeaders.push(t[1],t[2])}}),u._charset="x-user-defined",!o.overrideMimeType){var d=u.rawHeaders["mime-type"];if(d){var g=d.match(/;\s*charset=([^;])(;|$)/);g&&(u._charset=g[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};a(l,s.Readable),l.prototype._read=function(){},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new n.VBArray(t.responseBody).toArray()}catch(o){}if(null!==r){e.push(new i(r));break}case"text":try{r=t.responseText}catch(o){e._mode="text:vbarray";break}if(r.length>e._pos){var a=r.substr(e._pos);if("x-user-defined"===e._charset){for(var s=new i(a.length),l=0;le._pos&&(e.push(new i(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":106,_process:78,buffer:5,inherits:72,stream:104}],109:[function(e,t,r){function n(e){if(e&&!u(e))throw new Error("Unknown encoding: "+e)}function i(e){return e.toString(this.encoding)}function o(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function a(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var s=e("buffer").Buffer,u=s.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},l=r.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),n(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=a;break;default:return void(this.write=i)}this.charBuffer=new s(6),this.charReceived=0,this.charLength=0};l.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=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:5}],110:[function(e,t,r){var n=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,i=0;r>i;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:5}],111:[function(e,t,r){ -"use strict";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.isObject(e)&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}function o(e){return l.isString(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}var u=e("punycode"),l=e("./util");r.parse=i,r.resolve=a,r.resolveObject=s,r.format=o,r.Url=n;var c=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n"," "],d=["{","}","|","\\","^","`"].concat(p),g=["'"].concat(d),m=["%","/","?",";","#"].concat(g),v=["/","?","#"],b=255,y=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},x={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=e("querystring");n.prototype.parse=function(e,t,r){if(!l.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=-1!==n&&nA)&&(S=A)}var R,M;M=-1===S?s.lastIndexOf("@"):s.lastIndexOf("@",S),-1!==M&&(R=s.slice(0,M),s=s.slice(M+1),this.auth=decodeURIComponent(R)),S=-1;for(var E=0;EA)&&(S=A)}-1===S&&(S=s.length),this.host=s.slice(0,S),s=s.slice(S),this.parseHost(),this.hostname=this.hostname||"";var L="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!L)for(var j=this.hostname.split(/\./),E=0,T=j.length;T>E;E++){var P=j[E];if(P&&!P.match(y)){for(var V="",B=0,U=P.length;U>B;B++)V+=P.charCodeAt(B)>127?"x":P[B];if(!V.match(y)){var D=j.slice(0,E),I=j.slice(E+1),N=P.match(w);N&&(D.push(N[1]),I.unshift(N[2])),I.length&&(s="/"+I.join(".")+s),this.hostname=D.join(".");break}}}this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),L||(this.hostname=u.toASCII(this.hostname));var z=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+z,this.href+=this.host,L&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!_[d])for(var E=0,T=g.length;T>E;E++){var F=g[E];if(-1!==s.indexOf(F)){var $=encodeURIComponent(F);$===F&&($=escape(F)),s=s.split(F).join($)}}var H=s.indexOf("#");-1!==H&&(this.hash=s.substr(H),s=s.slice(0,H));var W=s.indexOf("?");if(-1!==W?(this.search=s.substr(W),this.query=s.substr(W+1),t&&(this.query=O.parse(this.query)),s=s.slice(0,W)):t&&(this.search="",this.query={}),s&&(this.pathname=s),k[d]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var z=this.pathname||"",Y=this.search||"";this.path=z+Y}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.isObject(this.query)&&Object.keys(this.query).length&&(o=O.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||k[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(l.isString(e)){var t=new n;t.parse(e,!1,!0),e=t}for(var r=new n,i=Object.keys(this),o=0;o0?r.host.split("@"):!1;C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return r.search=e.search,r.query=e.query,l.isNull(r.pathname)&&l.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=_.slice(-1)[0],E=(r.host||e.host||_.length>1)&&("."===S||".."===S)||""===S,A=0,R=_.length;R>=0;R--)S=_[R],"."===S?_.splice(R,1):".."===S?(_.splice(R,1),A++):A&&(_.splice(R,1),A--);if(!y&&!w)for(;A--;A)_.unshift("..");!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push("");var M=""===_[0]||_[0]&&"/"===_[0].charAt(0);if(O){r.hostname=r.host=M?"":_.length?_.shift():"";var C=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return y=y||r.host&&_.length,y&&!M&&_.unshift(""),_.length?r.pathname=_.join("/"):(r.pathname=null,r.path=null),l.isNull(r.pathname)&&l.isNull(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=f.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":112,punycode:79,querystring:82}],112:[function(e,t,r){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],113:[function(e,t,r){(function(e){function r(e,t){function r(){if(!i){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}if(n("noDeprecation"))return e;var i=!1;return r}function n(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null==n?!1:"true"===String(n).toLowerCase()}t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],114:[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}},{}],115:[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),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(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)),C(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(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(O(t))return e.stylize(Date.prototype.toString.call(t),"date");if(C(t))return c(t)}var v="",b=!1,w=["{","}"];if(d(t)&&(b=!0,w=["[","]"]),S(t)){var _=t.name?": "+t.name:"";v=" [Function"+_+"]"}if(x(t)&&(v=" "+RegExp.prototype.toString.call(t)),O(t)&&(v=" "+Date.prototype.toUTCString.call(t)),C(t)&&(v=" "+c(t)),0===a.length&&(!b||0==t.length))return w[0]+v+w[1];if(0>n)return x(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(_(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")),_(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 _(e){return void 0===e}function x(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 C(e){return k(e)&&("[object Error]"===A(e)||e instanceof Error)}function S(e){return"function"==typeof e}function E(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 R(e){return 10>e?"0"+e.toString(10):e.toString(10)}function M(){var e=new Date,t=[R(e.getHours()),R(e.getMinutes()),R(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(_(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,P={};r.debuglog=function(e){if(_(T)&&(T=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!P[e])if(new RegExp("\\b"+e+"\\b","i").test(T)){var n=t.pid;P[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else P[e]=function(){};return P[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=_,r.isRegExp=x,r.isObject=k,r.isDate=O,r.isError=C,r.isFunction=S,r.isPrimitive=E,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",M(),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":114,_process:78,inherits:72}],116:[function(e,t,r){function n(){for(var e={},t=0;t0&&(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\\amdefine\\amdefine.js")},{_process:77,path:75}],2:[function(e,t,r){"use strict";function n(){var e,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=t.length;for(e=0;r>e;e++)u[e]=t[e];for(e=0;r>e;++e)l[t.charCodeAt(e)]=e;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63}function i(e){var t,r,n,i,o,a,s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new c(3*s/4-o),n=o>0?s-4:s;var u=0;for(t=0,r=0;n>t;t+=4,r+=3)i=l[e.charCodeAt(t)]<<18|l[e.charCodeAt(t+1)]<<12|l[e.charCodeAt(t+2)]<<6|l[e.charCodeAt(t+3)],a[u++]=(16711680&i)>>16,a[u++]=(65280&i)>>8,a[u++]=255&i;return 2===o?(i=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}function o(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function a(e,t,r){for(var n,i=[],a=t;r>a;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(o(n));return i.join("")}function s(e){for(var t,r=e.length,n=r%3,i="",o=[],s=16383,l=0,c=r-n;c>l;l+=s)o.push(a(e,l,l+s>c?c:l+s));return 1===n?(t=e[r-1],i+=u[t>>2],i+=u[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=u[t>>10],i+=u[t>>4&63],i+=u[t<<2&63],i+="="),o.push(i),o.join("")}r.toByteArray=i,r.fromByteArray=s;var u=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array;n()},{}],3:[function(e,t,r){},{}],4:[function(e,t,r){arguments[4][3][0].apply(r,arguments)},{dup:3}],5:[function(e,t,r){(function(t){"use strict";function n(){try{var e=new Uint8Array(1);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e){return this instanceof o?(o.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?a(this,e):"string"==typeof e?s(this,e,arguments.length>1?arguments[1]:"utf8"):u(this,e)):arguments.length>1?new o(e,arguments[1]):new o(e)}function a(e,t){if(e=g(e,0>t?0:0|m(t)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;t>r;r++)e[r]=0;return e}function s(e,t,r){"string"==typeof r&&""!==r||(r="utf8");var n=0|b(t,r);return e=g(e,n),e.write(t,r),e}function u(e,t){if(o.isBuffer(t))return l(e,t);if(J(t))return c(e,t);if(null==t)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(t.buffer instanceof ArrayBuffer)return f(e,t);if(t instanceof ArrayBuffer)return h(e,t)}return t.length?p(e,t):d(e,t)}function l(e,t){var r=0|m(t.length);return e=g(e,r),t.copy(e,0,0,r),e}function c(e,t){var r=0|m(t.length);e=g(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function f(e,t){var r=0|m(t.length);e=g(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function h(e,t){return t.byteLength,o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):e=f(e,new Uint8Array(t)),e}function p(e,t){var r=0|m(t.length);e=g(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function d(e,t){var r,n=0;"Buffer"===t.type&&J(t.data)&&(r=t.data,n=0|m(r.length)),e=g(e,n);for(var i=0;n>i;i+=1)e[i]=255&r[i];return e}function g(e,t){o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):e.length=t;var r=0!==t&&t<=o.poolSize>>>1;return r&&(e.parent=K),e}function m(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function v(e,t){if(!(this instanceof v))return new v(e,t);var r=new o(e,t);return delete r.parent,r}function b(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 F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(e).length;default:if(n)return F(e).length;t=(""+t).toLowerCase(),n=!0}}function y(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 L(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return R(this,t,r);case"binary":return M(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function w(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 _(e,t,r,n){return Y(F(t,e.length-r),e,r,n)}function x(e,t,r,n){return Y($(t),e,r,n)}function k(e,t,r,n){return x(e,t,r,n)}function O(e,t,r,n){return Y(W(t),e,r,n)}function C(e,t,r,n){return Y(H(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?G.fromByteArray(e):G.fromByteArray(e.slice(t,r))}function E(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;r>i;){var o=e[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r>=i+s){var u,l,c,f;switch(s){case 1:128>o&&(a=o);break;case 2:u=e[i+1],128===(192&u)&&(f=(31&o)<<6|63&u,f>127&&(a=f));break;case 3:u=e[i+1],l=e[i+2],128===(192&u)&&128===(192&l)&&(f=(15&o)<<12|(63&u)<<6|63&l,f>2047&&(55296>f||f>57343)&&(a=f));break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],128===(192&u)&&128===(192&l)&&128===(192&c)&&(f=(15&o)<<18|(63&u)<<12|(63&l)<<6|63&c,f>65535&&1114112>f&&(a=f))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return A(n)}function A(e){var t=e.length;if(Z>=t)return String.fromCharCode.apply(String,e);for(var r="",n=0;t>n;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Z));return r}function R(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 M(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 L(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+=q(e[o]);return i}function j(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 P(e,t,r,n,i,a){if(!o.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>i||a>t)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range")}function V(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 B(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 U(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function D(e,t,r,n,i){return i||U(e,t,r,4,0xf.fffff(e+31),-0xf.fffff(e+31)),X.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,i){return i||U(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,r,n,52,8),r+8}function N(e){if(e=z(e).replace(Q,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function z(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function q(e){return 16>e?"0"+e.toString(16):e.toString(16)}function F(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}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,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(!(1114112>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 $(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function W(e){return G.toByteArray(N(e))}function Y(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}var G=e("base64-js"),X=e("ieee754"),J=e("isarray");r.Buffer=o,r.SlowBuffer=v,r.INSPECT_MAX_BYTES=50,o.poolSize=8192;var K={};o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:n(),o._augment=function(e){return e.__proto__=o.prototype,e},o.TYPED_ARRAY_SUPPORT?(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})):(o.prototype.length=void 0,o.prototype.parent=void 0),o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);a>i&&e[i]===t[i];)++i;return i!==a&&(r=e[i],n=t[i]),n>r?-1:r>n?1:0},o.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}},o.concat=function(e,t){if(!J(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new o(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+=" ... ")),""},o.prototype.compare=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:o.compare(this,e)},o.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(o.isBuffer(e))return r(this,e,t);if("number"==typeof e)return o.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")},o.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 w(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return x(this,e,t,r);case"binary":return k(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.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(o.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=o.prototype;else{var i=t-e;n=new o(i,void 0);for(var a=0;i>a;a++)n[a]=this[a+e]}return n.length&&(n.parent=this.parent||this),n},o.prototype.readUIntLE=function(e,t,r){e=0|e,t=0|t,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e=0|e,t=0|t,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e=0|e,t=0|t,r||T(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},o.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),X.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),X.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),X.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),X.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t=0|t,r=0|r,n||P(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},o.prototype.writeUInt8=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);P(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},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);P(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},o.prototype.writeInt8=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t=0|t,r||P(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},o.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-tr&&n>t)for(i=a-1;i>=0;i--)e[i+t]=this[i+r];else if(1e3>a||!o.TYPED_ARRAY_SUPPORT)for(i=0;a>i;i++)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},o.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=F(e.toString()),o=i.length;for(n=t;r>n;n++)this[n]=i[n%o]}return this}};var Q=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":2,ieee754:70,isarray:73}],6:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],7:[function(e,t,r){(function(r){function n(e){return void 0===e?["all"]:e}function i(e){return!A.existsSync(e)&&!/\.css$/.test(e)}function o(e){return A.existsSync(e)&&A.statSync(e).isDirectory()}function a(e){return e?{hostname:M.parse(e).hostname,port:parseInt(M.parse(e).port)}:{}}function s(e,t){function r(r){return r=t.options.debug?l(t,r):f(t,r),r=u(t,r),e?e.call(null,t.errors.length>0?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 u(e,t){return t.stats=e.stats,t.errors=e.errors,t.warnings=e.warnings,t}function l(e,t){var n=r.hrtime();e.stats.originalSize=e.sourceTracker.removeAll(t).length,t=f(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 c(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 f(e,t){function r(t,r){return t=a.restore(t,r),t=s.restore(t),t=n.rebase?p(t,e):t,t=o.restore(t),i.restore(t)}var n=e.options,i=new y(e,n.keepSpecialComments,n.keepBreaks,n.sourceMap),o=new w(n.sourceMap),a=new _(n.sourceMap),s=new x(e,n.sourceMap,n.compatibility.properties.urlQuotes),u=n.sourceMap?b:v,l=function(e,r){t="function"==typeof e?e(t):e[r](t)};n.benchmark&&(l=c(l)),l(i,"escape"),l(o,"escape"),l(s,"escape"),l(a,"escape");var f=d(t,e);return g(f,n),n.advanced&&m(f,n,e.validator,!0),u(f,n,r,e.inputSourceMapTracker)}var h=e("./imports/inliner"),p=e("./urls/rebase"),d=e("./tokenizer/tokenize"),g=e("./selectors/simple"),m=e("./selectors/advanced"),v=e("./stringifier/simple"),b=e("./stringifier/source-maps"),y=e("./text/comments-processor"),w=e("./text/expressions-processor"),_=e("./text/free-text-processor"),x=e("./text/urls-processor"),k=e("./utils/compatibility"),O=e("./utils/input-source-map-tracker"),C=e("./utils/source-tracker"),S=e("./utils/source-reader"),E=e("./properties/validator"),A=e("fs"),R=e("path"),M=e("url"),L=e("./utils/object").override,j=5e3,T=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 k(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,processImportFrom:n(e.processImportFrom),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||i(e.target)||o(e.target)?e.target:R.dirname(e.target)},this.options.inliner.timeout=this.options.inliner.timeout||j,this.options.inliner.request=L(a(r.env.HTTP_PROXY||r.env.http_proxy),this.options.inliner.request||{})};T.prototype.minify=function(e,t){var n={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,localOnly:!t,sourceTracker:new C,validator:new E(this.options.compatibility)};if(n.options.sourceMap&&(n.inputSourceMapTracker=new O(n)),n.sourceReader=new S(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 h(n).process(e,{localOnly:n.localOnly,imports:n.options.processImportFrom,whenDone:s(t,n)})})}return s(t,n)(e)}}).call(this,e("_process"))},{"./imports/inliner":11,"./properties/validator":25,"./selectors/advanced":28,"./selectors/simple":41,"./stringifier/simple":45,"./stringifier/source-maps":46,"./text/comments-processor":47,"./text/expressions-processor":49,"./text/free-text-processor":50,"./text/urls-processor":51,"./tokenizer/tokenize":54,"./urls/rebase":55,"./utils/compatibility":59,"./utils/input-source-map-tracker":60,"./utils/object":61,"./utils/source-reader":63,"./utils/source-tracker":64,_process:77,fs:4,path:75,url:110}],8:[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},{}],9:[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},{}],10:[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},{}],11:[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){var a,s=0,u=0,l=0,c=0;if(i)return!1;do{if(o>r&&n>o)return!0;if(a=e.match(t),!a)return i=!0,!1;r=s=a.index,u=s+a[0].length,c=u+n,l=c-a[0].length,e=e.substring(u),n=c}while(o>c);return c>o&&o>l}}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)),g=c?i.indexOf(c[0],u+1):_(i," ")[0].length-(o?1:0),m=i.substring(u,g).replace(/['"]/g,"").replace(/\)$/,"").trim(),v=i.substring(g+1).replace(/^\)/,"").trim(),b=n.isRemote||O.test(m);if(b&&(n.localOnly||!f(m,!0,n.imports)))return n.afterContent||l(n.done.join(""))?n.warnings.push('Ignoring remote @import of "'+m+'" as no callback given.'):d(m,v,n),s(n);if(!b&&!f(m,!1,n.imports))return n.afterImport?n.warnings.push('Ignoring local @import of "'+m+'" as after other inlined content.'):d(m,v,n),s(n);if(!b&&n.afterContent)return n.warnings.push('Ignoring local @import of "'+m+'" as after other CSS content.'),s(n);var y=b?h:p;return y(m,v,n)}function f(e,t,r){if(0===r.length)return!1;t&&C.test(e)&&(e="http:"+e);for(var n=t?y.parse(e).host:e,i=!0,o=0;o-1)return s(n);n.debug&&console.error("Inlining remote stylesheet: "+u),n.visited.push(u);var c=0===u.indexOf("http://")?v.get:b.get,f=!1,p=x(y.parse(u),n.inliner.request);void 0!==n.inliner.request.hostname&&(p.path=p.href),c(p,function(e){if(e.statusCode<200||e.statusCode>399)return a("error "+e.statusCode);if(e.statusCode>299){var s=y.resolve(u,e.headers.location);return h(s,t,n)}var c=[],f=y.parse(u);e.on("data",function(e){c.push(e.toString())}),e.on("end",function(){var e=c.join("");n.rebase&&(e=w(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+"}"),n.afterImport=!0;var a=x(n,{isRemote:!0,relativeTo:f.protocol+"//"+f.host+f.pathname});r.nextTick(function(){i(e,a)})})}).on("error",function(e){a(e.message)}).on("timeout",function(){a("timeout")}).setTimeout(n.inliner.timeout)}function p(e,t,r){var n="/"==e[0]?r.root:r.relativeTo,o=m.resolve(m.join(n,e));if(!g.existsSync(o)||!g.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=m.dirname(o),u=g.readFileSync(o,"utf8");if(r.rebase){var l={relative:!0,fromBase:a,toBase:r.baseRelativeTo};u=w(u,l,r)}var c=m.relative(r.root,o);r.sourceReader.trackSource(c,u),u=r.sourceTracker.store(c,u),t.length>0&&(u="@media "+t+"{"+u+"}"),r.afterImport=!0;var f=x(r,{relativeTo:a});return i(u,f)}function d(e,t,r){var n="@import url("+e+")"+(t.length>0?" "+t:"")+";";r.done.push(n)}var g=e("fs"),m=e("path"),v=e("http"),b=e("https"),y=e("url"),w=e("../urls/rewrite"),_=e("../utils/split"),x=e("../utils/object.js").override,k=/\/\*# sourceMappingURL=(\S+) \*\//,O=/^(https?:)?\/\//,C=/^\/\//;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":57,"../utils/object.js":61,"../utils/split":65,_process:77,fs:4,http:104,https:69,path:75,url:110}],12:[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])&&!e.isValidColorValue(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])&&!e.isValidStyleKeyword(t[0])&&!e.isValidColorValue(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 _=p[y-1];if(_[0].indexOf("/")>0){var x=d(_[0],"/");a.value=[[x.pop()].concat(_.slice(1)),w],p[y-1]=[x.pop()].concat(_.slice(1))}else y>1&&"/"==p[y-2]?(a.value=[_,w],y-=2):"/"==_[0]?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=d(w[0],"/");a.value=[[k.pop()].concat(w.slice(1))],i.value=[[k.pop()].concat(w.slice(1))]}else f.value[0][0]!=t[f.name].defaultValue&&"none"!=f.value[0][0]||!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].slice(0)),i.length<3&&(i[2]=i[0].slice(0)),i.length<4&&(i[3]=i[1].slice(0));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][0]||"auto"==g[0][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/split"),g=",";t.exports={background:s,border:h,borderRadius:u,fourValues:l,listStyle:f,multiplex:c,outline:h}},{"../utils/split":65,"./wrap-for-optimizing":27}],13:[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.colorOpacity||!r.isValidRgbaColor(n)&&!r.isValidHslaColor(n))&&(r.colorOpacity||!r.isValidRgbaColor(i)&&!r.isValidHslaColor(i))?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):!1}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}},{}],14:[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":27}],15:[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":12,"./can-override":13,"./restore":23}],16:[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":14}],17:[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},{}],18:[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={},c=null;e:for(var f=0,d=e.length;d>f;f++){var g=e[f],m=!("-ms-filter"!=g.name&&"filter"!=g.name||"background"!=c&&"background-image"!=c)?c:g.name,v=g.important,b=g.hack;if(!g.unused)if(f>0&&s&&m==c&&v==s.important&&b==s.hack&&a(f)&&!s.unused)g.unused=!0;else{if(m in l&&(r&&m!=c||i(f))){var y=l[m],w=o[m]&&o[m].canOverride,_=!1;for(u=y.length-1;u>=0;u--){var x=e[y[u]],k=x.name!=m,O=x.important,C=x.hack;if(!x.unused&&(!k||!O)&&(O||!(C&&!b||!C&&b))&&(!O||"star"!=b&&"underscore"!=b)&&(C||b||k||!w||w(x,g,n))){if(O&&!v||O&&b){g.unused=!0,s=g;continue e}_=!0,x.unused=!0}}if(_){f=-1,s=null,c=null,l={};continue}}else{l[m]=l[m]||[],l[m].push(f);var S=p[m];if(S)for(u=S.length-1;u>=0;u--){var E=S[u];l[E]=l[E]||[],l[E].push(f)}}c=m,s=g}}}function i(e,t,r,o,h,p){var d=a(t);s(d,p),n(d,r,h.aggressiveMerging,p);for(var g=0,m=d.length;m>g;g++){var v=d[g];v.variable&&v.block&&i(e,v.value[0],r,o,h,p)}o&&h.shorthandCompacting&&(u(d,h.compatibility,p),l(d,h.sourceMap,p)),f(d),c(d)}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-from-optimizing"),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":44,"./compactable":15,"./override-compactor":19,"./populate-components":20,"./remove-unused":21,"./restore-from-optimizing":22,"./shorthand-compactor":24,"./wrap-for-optimizing":27}],19:[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){for(var r=0,n=e.components.length;n>r;r++)if(m(t.isValidFunction,e.components[r]))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=C(i);A([u]);var l=C(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=_(e),r=0,n=t.length;n>r;r++)if(1==t[r].length&&"none"==t[r][0][0])return!0;return!1}function _(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 x(e,t,r){var a,s,u,p,w,_,x;e:for(w=e.length-1;w>=0;w--)if(s=e[w],b(s)&&!s.variable)for(a=O[s.name].canOverride||k.sameValue,_=w-1;_>=0;_--)if(u=e[_],b(u)&&!(u.variable||u.unused||s.unused||u.hack&&!s.hack||!u.hack&&s.hack||E(s)||y(u,s)))if(!u.shorthand&&s.shorthand&&o(s,u)){if(!s.important&&u.important)continue;if(!M([u],s.components))continue;if(!m(r.isValidFunction,u)&&g(s,r))continue;p=s.components.filter(n(u))[0],a=O[u.name]&&O[u.name].canOverride||k.sameValue,R(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,w-1,u.name))continue;if(g(u,r))continue;if(p=u.components.filter(n(s))[0],R(a,p,s,r)){var C=!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,S=O[s.name].nonMergeableValue===s.value[0][0];if(C||S)continue;if(!t.properties.merging&&i(u,r))continue;if(p.value[0][0]!=s.value[0][0]&&(E(u)||E(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(!u.multiplex&&s.multiplex)continue;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 A=u.components[x],L=s.components[x];if(a=O[A.name].canOverride||k.sameValue,!R(a,A,L,r))continue e;if(!R(k.twoOptionalFunctions,A,L,r)&&r.isValidFunction(L))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,!R(a,p,s,r))continue;if(u.important&&!s.important){s.unused=!0;continue}var j=O[s.name].restore(s,O);if(j.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,!R(a,u,s,r))continue;u.unused=!0}}var k=e("./can-override"),O=e("./compactable"),C=e("./clone").deep,S=e("./clone").shallow,E=e("./has-inherit"),A=e("./restore-from-optimizing"),R=e("./every-combination"),M=e("./vendor-prefixes").same,L=e("../stringifier/one-time").property,j=",";t.exports=x},{"../stringifier/one-time":44,"./can-override":13,"./clone":14,"./compactable":15,"./every-combination":16,"./has-inherit":17,"./restore-from-optimizing":22,"./vendor-prefixes":26}],20:[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":15}],21:[function(e,t,r){function n(e){for(var t=e.length-1;t>=0;t--){var r=e[t];r.unused&&r.all.splice(r.position,1)}}t.exports=n},{}],22:[function(e,t,r){function n(e){e.value[e.value.length-1][0]+=u}function i(e){"underscore"==e.hack?e.name=c+e.name:"star"==e.hack?e.name=l+e.name:"backslash"==e.hack?e.value[e.value.length-1][0]+=s:"bang"==e.hack&&(e.value[e.value.length-1][0]+=" "+f)}function o(e,t){for(var r=e.length-1;r>=0;r--){var o,s=e[r],u=a[s.name];if(!s.unused&&(s.dirty||s.important||s.hack)&&(!t&&u&&u.shorthand?(o=u.restore(s,a),s.value=o):o=s.value,s.important&&n(s),s.hack&&i(s),"all"in s)){var l=s.all[s.position];l[0][0]=s.name,l.splice(1,l.length-1),Array.prototype.push.apply(l,o)}}}var a=e("./compactable"),s="\\9",u="!important",l="*",c="_",f="!ie";t.exports=o},{"./compactable":15}],23:[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":14}],24:[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],[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 _=i(t);_.length>0&&d[0].push(_)}g.position=a.length,g.all=a,g.all.push(d),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&&!s.variable){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":14,"./compactable":15,"./every-combination":16,"./has-inherit":17,"./populate-components":20,"./wrap-for-optimizing":27}],25:[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"),this.colorOpacity=e.colors.opacity}var i=e("../utils/split"),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])+\\(.*?\\)",c="\\-(\\-|[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"),_=new RegExp("^"+d+"$","i"),x=["repeat","no-repeat","repeat-x","repeat-y","inherit"],k=["inherit","scroll","fixed","local"],O=["center","top","bottom","left","right"],C=["contain","cover"],S=["border-box","content-box","padding-box"],E=["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"],R=["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.isValidColorValue(e)||this.isValidVariable(e)||this.isValidVendorPrefixedValue(e)},n.prototype.isValidColorValue=function(e){return this.isValidHexColor(e)||this.isValidRgbaColor(e)||this.isValidHslaColor(e)},n.prototype.isValidUrl=function(e){return 0===e.indexOf("__ESCAPED_URL_CLEAN_CSS"); +},n.prototype.isValidUnit=function(e){return _.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 x.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 C.indexOf(e)>=0||y.test(e)||this.isValidVariable(e)},n.prototype.isValidBackgroundPositionAndSize=function(e){if(e.indexOf("/")<0)return!1;var t=i(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 R.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidStyle=function(e){return this.isValidStyleKeyword(e)||this.isValidVariable(e)},n.prototype.isValidStyleKeyword=function(e){return E.indexOf(e)>=0},n.prototype.isValidWidth=function(e){return this.isValidUnit(e)||this.isValidWidthKeyword(e)||this.isValidVariable(e)},n.prototype.isValidWidthKeyword=function(e){return o.indexOf(e)>=0},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/split":65}],26:[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}},{}],27:[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=c(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){var t=!1,r=e[0][0],n=e[e.length-1];return r[0]==d?t="underscore":r[0]==p?t="star":n[0][0]==g&&-1==n[0].indexOf("important")?t="bang":n[0].indexOf(g)>0&&-1==n[0].indexOf("important")?t="bang":n[0].indexOf(f)>0&&n[0].indexOf(f)==n[0].length-f.length-1?t="backslash":0===n[0].indexOf(f)&&2==n[0].length&&(t="backslash"),t}function a(e){return e.length>1?e[e.length-1][0].indexOf(h)>0:!1}function s(e){e.length>0&&(e[e.length-1][0]=e[e.length-1][0].replace(h,""))}function u(e){e[0][0]=e[0][0].substring(1)}function l(e,t){var r=e[e.length-1];r[0]=r[0].substring(0,r[0].indexOf("backslash"==t?f:g)).trim(),0===r[0].length&&e.pop()}function c(e){var t=a(e);t&&s(e);var r=o(e);"star"==r||"underscore"==r?u(e):"backslash"!=r&&"bang"!=r||l(e,r);var n=0===e[0][0].indexOf("--");return{block:n&&e[1]&&Array.isArray(e[1][0][0]),components:[],dirty:!1,hack:r,important:t,name:e[0][0],multiplex:e.length>2?i(e):!1,position:0,shorthand:!1,unused:e.length<2,value:e.slice(1),variable:n}}var f="\\",h="!important",p="*",d="_",g="!";t.exports={all:n,single:c}},{}],28:[function(e,t,r){function n(e){for(var t=0,r=e.length;r>t;t++){var i=e[t],o=!1;switch(i[0]){case"selector":o=0===i[1].length||0===i[2].length;break;case"block":n(i[2]),o=0===i[2].length}o&&(e.splice(t,1),t--,r--)}}function i(e,t,r){for(var n=0,i=e.length;i>n;n++){var o=e[n];if("block"==o[0]){var s=/@(-moz-|-o-|-webkit-)?keyframes/.test(o[1][0]);a(o[2],t,r,!s)}}}function o(e,t,r){for(var n=0,i=e.length;i>n;n++){var a=e[n];switch(a[0]){case"selector":s(a[1],a[2],!1,!0,t,r);break;case"block":o(a[2],t,r)}}}function a(e,t,r,s){if(i(e,t,r),o(e,t,r),u(e),l(e,t,r),c(e,t,r),f(e,t,r),h(e,t),t.restructuring&&s&&(p(e,t),l(e,t,r)),t.mediaMerging){d(e);for(var m=g(e),v=m.length-1;v>=0;v--)a(m[v][2],t,r,!1)}n(e)}var s=e("../properties/optimizer"),u=e("./remove-duplicates"),l=e("./merge-adjacent"),c=e("./reduce-non-adjacent"),f=e("./merge-non-adjacent-by-selector"),h=e("./merge-non-adjacent-by-body"),p=e("./restructure"),d=e("./remove-duplicate-media-queries"),g=e("./merge-media-queries");t.exports=a},{"../properties/optimizer":18,"./merge-adjacent":32,"./merge-media-queries":33,"./merge-non-adjacent-by-body":34,"./merge-non-adjacent-by-selector":35,"./reduce-non-adjacent":36,"./remove-duplicate-media-queries":37,"./remove-duplicates":38,"./restructure":40}],29:[function(e,t,r){function n(e,t){return"["+t.replace(/ /g,"")+"]"}function i(e,t){return e[0]>t[0]?1:-1}function o(e,t,r,n){return t&&r&&n.length?t+r+" ":t&&r?t+r:r}var a={selectors:function(e,t,r){for(var a=[],s=[],u=0,l=e.length;l>u;u++){var c=e[u],f=c[0].replace(/\s+/g," ").replace(/ ?, ?/g,",").replace(/\s*(\\)?([>+~])(\s*)/g,o).trim();r&&f.indexOf("nav")>0&&(f=f.replace(/\+nav(\S|$)/,"+ nav$1")),(!t||-1==f.indexOf("*+html ")&&-1==f.indexOf("*:first-child+html "))&&(f.indexOf("*")>-1&&(f=f.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),f.indexOf("[")>-1&&(f=f.replace(/\[([^\]]+)\]/g,n)),-1==s.indexOf(f)&&(c[0]=f,s.push(f),a.push(c)))}return a.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=a},{}],30:[function(e,t,r){function n(e){var t=[];if("selector"==e[0])for(var r=!/[\.\+>~]/.test(o(e[1])),u=0,l=e[2].length;l>u;u++){var c=e[2][u];if(0!==c.indexOf("__ESCAPED")&&c[0]!=s){var f=e[2][u][0][0];if(0!==f.length&&0!==f.indexOf("--")){var h=a(e[2],u);t.push([f,h,i(f),e[2][u],f+":"+h,e[1],r])}}}else if("block"==e[0])for(var p=0,d=e[2].length;d>p;p++)t=t.concat(n(e[2][p]));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,s="at-rule";t.exports=n},{"../stringifier/one-time":44}],31:[function(e,t,r){function n(e,t){return e.compatibility.selectors.special.test(t)}t.exports=n},{}],32:[function(e,t,r){function n(e,t,r){for(var n=[null,[],[]],l=t.compatibility.selectors.adjacentSpace,c=0,f=e.length;f>c;c++){var h=e[c];if("selector"==h[0])if("selector"==n[0]&&a(h[1])==a(n[1])){var p=[n[2].length];Array.prototype.push.apply(n[2],h[2]),i(h[1],n[2],p,!0,t,r),h[2]=[]}else"selector"!=n[0]||o(h[2])!=o(n[2])||u(t,a(h[1]))||u(t,a(n[1]))?n=h:(n[1]=s(n[1].concat(h[1]),!1,l),h[2]=[]);else n=[null,[],[]]}}var i=e("../properties/optimizer"),o=e("../stringifier/one-time").body,a=e("../stringifier/one-time").selectors,s=e("./clean-up").selectors,u=e("./is-special");t.exports=n},{"../properties/optimizer":18,"../stringifier/one-time":44,"./clean-up":29,"./is-special":31}],33:[function(e,t,r){function n(e){for(var t={},r=[],n=e.length-1;n>=0;n--){var a=e[n];if("block"==a[0]){var s=t[a[1][0]];s||(s=[],t[a[1][0]]=s),s.push(n)}}for(var u in t){var l=t[u];e:for(var c=l.length-1;c>0;c--){var f=l[c],h=e[f],p=l[c-1],d=e[p];t:for(var g=1;g>=-1;g-=2){for(var m=1==g,v=m?f+1:p-1,b=m?p:f,y=m?1:-1,w=m?h:d,_=m?d:h,x=o(w);v!=b;){var k=o(e[v]);if(v+=y,!i(x,k))continue t}_[2]=m?w[2].concat(_[2]):_[2].concat(w[2]),w[2]=[],r.push(_);continue e}}}return r}var i=e("./reorderable").canReorder,o=e("./extractor");t.exports=n},{"./extractor":30,"./reorderable":39}],34:[function(e,t,r){function n(e){return/\.|\*| :/.test(e)}function i(e){var t=l(e[1]);return t.indexOf("__")>-1||t.indexOf("--")>-1}function o(e){return e.replace(/--[^ ,>\+~:]+/g,"")}function a(e,t){var r=o(l(e[1]));for(var n in t){var i=t[n],a=o(l(i[1]));(a.indexOf(r)>-1||r.indexOf(a)>-1)&&delete t[n]}}function s(e,t){for(var r={},o=t.compatibility.selectors.adjacentSpace,s=e.length-1;s>=0;s--){var h=e[s];if("selector"==h[0]){h[2].length>0&&!t.semanticMerging&&n(l(h[1]))&&(r={}),h[2].length>0&&t.semanticMerging&&i(h)&&a(h,r);var p=u(h[2]),d=r[p];!d||f(t,l(h[1]))||f(t,l(d[1]))||(h[1]=h[2].length>0?c(d[1].concat(h[1]),!1,o):d[1].concat(h[1]),d[2]=[],r[p]=null),r[u(h[2])]=h}}}var u=e("../stringifier/one-time").body,l=e("../stringifier/one-time").selectors,c=e("./clean-up").selectors,f=e("./is-special");t.exports=s},{"../stringifier/one-time":44,"./clean-up":29,"./is-special":31}],35:[function(e,t,r){function n(e,t,r){var n,u={},l=[];for(n=e.length-1;n>=0;n--)if("selector"==e[n][0]&&0!==e[n][2].length){var c=o(e[n][1]);u[c]=[n].concat(u[c]||[]),2==u[c].length&&l.push(c)}for(n=l.length-1;n>=0;n--){var f=u[l[n]];e:for(var h=f.length-1;h>0;h--){var p=f[h-1],d=e[p],g=f[h],m=e[g];t:for(var v=1;v>=-1;v-=2){for(var b,y=1==v,w=y?p+1:g-1,_=y?g:p,x=y?1:-1,k=y?d:m,O=y?m:d,C=a(k);w!=_;){var S=a(e[w]);w+=x;var E=y?s(C,S):s(S,C);if(!E&&!y)continue e;if(!E&&y)continue t}y?(b=[k[2].length],Array.prototype.push.apply(k[2],O[2]),O[2]=k[2]):(b=[O[2].length],Array.prototype.push.apply(O[2],k[2])),i(O[1],O[2],b,!0,t,r),k[2]=[]}}}}var i=e("../properties/optimizer"),o=e("../stringifier/one-time").selectors,a=e("./extractor"),s=e("./reorderable").canReorder;t.exports=n},{"../properties/optimizer":18,"../stringifier/one-time":44,"./extractor":30,"./reorderable":39}],36:[function(e,t,r){function n(e,t,r){for(var n={},s=[],u=e.length-1;u>=0;u--){var l=e[u];if("selector"==l[0]&&0!==l[2].length)for(var h=c(l[1]),p=l[1].length>1&&!f(t,h),d=t.sourceMap?i(l[1]):l[1],g=p?[h].concat(d):[h],m=0,v=g.length;v>m;m++){var b=g[m];n[b]?s.push(b):n[b]=[],n[b].push({where:u,list:d,isPartial:p&&m>0,isComplex:p&&0===m})}}o(e,s,n,t,r),a(e,n,t,r)}function i(e){for(var t=[],r=0;ru;u++){var c=t[u],f=r[c];s(e,c,f,{filterOut:o,callback:a},n,i)}}function a(e,t,r,n){function i(e){return a.data[e].wherem;m++){var b=g[m],y=t[b];if(y.length<2)continue e;if(a.data=y,s(e,b,y,{filterOut:i,callback:o},r,n),l(d[d.length-1])!=l(d[0]))continue e}p[2]=d[0]}}}function s(e,t,r,n,i,o){for(var a=[],s=[],l=[],c=[],f=r.length-1,p=0;f>=0;f--)if(!n.filterOut(f,a)){var d=r[f].where,g=e[d],m=h(g[2]);a=a.concat(m),s.push(m),c.push(d)}for(f=0,p=s.length;p>f;f++)s[f].length>0&&l.push((l[f-1]||0)+s[f].length);u(t,a,l,!1,i,o);for(var v=c.length,b=a.length-1,y=v-1;y>=0;)if((0===y||a[b]&&s[y].indexOf(a[b])>-1)&&b>-1)b--;else{var w=a.splice(b+1);n.callback(e[c[y]],w,v,y),y--}}var u=e("../properties/optimizer"),l=e("../stringifier/one-time").body,c=e("../stringifier/one-time").selectors,f=e("./is-special"),h=e("../utils/clone-array");t.exports=n},{"../properties/optimizer":18,"../stringifier/one-time":44,"../utils/clone-array":58,"./is-special":31}],37:[function(e,t,r){function n(e){for(var t={},r=0,n=e.length;n>r;r++){var o=e[r];if("block"==o[0]){var a=o[1][0]+"%"+i(o[2]),s=t[a];s&&(s[2]=[]),t[a]=o}}}var i=e("../stringifier/one-time").all;t.exports=n},{"../stringifier/one-time":44}],38:[function(e,t,r){function n(e){for(var t,r,n,a,s={},u=[],l=0,c=e.length;c>l;l++)r=e[l],"selector"==r[0]&&(t=o(r[1]),s[t]&&1==s[t].length?u.push(t):s[t]=s[t]||[],s[t].push(l));for(l=0,c=u.length;c>l;l++){t=u[l],a=[];for(var f=s[t].length-1;f>=0;f--)r=e[s[t][f]],n=i(r[2]),a.indexOf(n)>-1?r[2]=[]:a.push(n)}}var i=e("../stringifier/one-time").body,o=e("../stringifier/one-time").selectors;t.exports=n},{"../stringifier/one-time":44}],39:[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],d=e[5],g=e[6],m=t[0],v=t[1],b=t[2],y=t[5],w=t[6];return"font"==r&&"line-height"==m||"font"==m&&"line-height"==r?!1:h.test(r)&&h.test(m)?!1:i==b&&a(r)==a(m)&&o(r)^o(m)?!1:("border"!=i||!p.test(b)||"border"!=r&&r!=b)&&("border"!=b||!p.test(i)||"border"!=m&&m!=i)?"border"==i&&"border"==b&&r!=m&&(s(r)&&u(m)||u(r)&&s(m))?!1:i!=b?!0:r!=m||i!=b||n!=v&&!l(n,v)?r!=m&&i==b&&r!=i&&m!=b?!0:r!=m&&i==b&&n==v?!0:!(!w||!g||f(i)||f(b)||!c(y,d)):!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){return"border-top"==e||"border-right"==e||"border-bottom"==e||"border-left"==e}function u(e){return"border-color"==e||"border-style"==e||"border-width"==e}function l(e,t){return o(e)&&o(t)&&e.split("-")[1]!=t.split("-")[2]}function c(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}function f(e){return"font"==e||"line-height"==e||"list-style"==e}var h=/align\-items|box\-align|box\-pack|flex|justify/,p=/^border\-(top|right|bottom|left|color|style|width|radius)/;t.exports={canReorder:n,canReorderSingle:i}},{}],40:[function(e,t,r){function n(e,t){return e>t}function i(e,t){var r=h(e);return r[5]=r[5].concat(t[5]),r}function o(e,t){function r(e,t,r){for(var n=r.length-1;n>=0;n--){var i=r[n][0],a=o(t,i);if(E[a].length>1&&k(e,E[a])){h(a);break}}}function o(e,t){var r=p(t);return E[r]=E[r]||[],E[r].push([e,t]),r}function h(e){var t,r=e.split(M),n=[];for(var i in E){var o=i.split(M);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 E[n[t]]}function p(e){for(var t=[],r=0,n=e.length;n>r;r++)t.push(l(e[r][1]));return t.join(M)}function d(e){for(var r=[],n=[],i=e.length-1;i>=0;i--)f(t,l(e[i][1]))||(n.unshift(e[i]),e[i][2].length>0&&-1==r.indexOf(e[i])&&r.push(e[i]));return r.length>1?n:[]}function g(e,t){var n=t[0],i=t[1],o=t[4],a=n.length+i.length+1,s=[],u=[],l=d(C[o]);if(!(l.length<2)){var f=v(l,a,1),h=f[0];if(h[1]>0)return r(e,t,f);for(var p=h[0].length-1;p>=0;p--)s=h[0][p][1].concat(s),u.unshift(h[0][p]);s=c(s),w(e,[t],s,u)}}function m(e,t){return e[1]>t[1]}function v(e,t,r){var n=b(e,t,r,R-1);return n.sort(m)}function b(e,t,r,n){var i=[[e,y(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(b(a,t,r,n-1))}return i}function y(e,t,r){for(var n=0,i=e.length-1;i>=0;i--)n+=e[i][2].length>r?l(e[i][1]).length:-1;return n-(e.length-1)*t+1}function w(t,r,n,i){var o,a,s,l,c=[];for(o=i.length-1;o>=0;o--){var f=i[o];for(a=f[2].length-1;a>=0;a--){var h=f[2][a];for(s=0,l=r.length;l>s;s++){var p=r[s],d=h[0][0],g=p[0],m=p[4];if(d==g&&u([h])==m){f[2].splice(a,1);break}}}}for(o=r.length-1;o>=0;o--)c.unshift(r[o][3]);var v=["selector",n,c];e.splice(t,0,v)}function _(e,t){var r=t[4],n=C[r];n&&n.length>1&&(x(e,t)||g(e,t))}function x(e,t){var r,n,i=[],o=[],a=t[4],s=d(C[a]);if(!(s.length<2)){e:for(var u in C){var l=C[u];for(r=s.length-1;r>=0;r--)if(-1==l.indexOf(s[r]))continue e;i.push(u)}if(i.length<2)return!1;for(r=i.length-1;r>=0;r--)for(n=S.length-1;n>=0;n--)if(S[n][4]==i[r]){o.unshift([S[n],s]);break}return k(e,o)}}function k(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=v(s,n,i.length)[0];if(u[1]>0)return!1;var l=[],f=[];for(o=u[0].length-1;o>=0;o--)l=u[0][o][1].concat(l),f.unshift(u[0][o]);for(l=c(l),w(e,i,l,f),o=i.length-1;o>=0;o--){r=i[o];var h=S.indexOf(r);delete C[r[4]],h>-1&&-1==A.indexOf(h)&&A.push(h)}return!0}function O(e,t,r){var n=e[0],i=t[0];if(n!=i)return!1;var o=t[4],a=C[o];return a&&a.indexOf(r)>-1}for(var C={},S=[],E={},A=[],R=2,M="%",L=e.length-1;L>=0;L--){var j,T,P,V,B,U=e[L];if("selector"==U[0])j=!0;else{if("block"!=U[0])continue;j=!1}var D=S.length,I=a(U);A=[];var N=[];for(T=I.length-1;T>=0;T--)for(P=T-1;P>=0;P--)if(!s(I[T],I[P])){N.push(T);break}for(T=I.length-1;T>=0;T--){var z=I[T],q=!1;for(P=0;D>P;P++){var F=S[P];-1!=A.indexOf(P)||s(z,F)||O(z,F,U)||(_(L+1,F,U),-1==A.indexOf(P)&&(A.push(P),delete C[F[4]])),q||(q=z[0]==F[0]&&z[1]==F[1],q&&(B=P))}if(j&&!(N.indexOf(T)>-1)){var $=z[4];C[$]=C[$]||[],C[$].push(U),q?S[B]=i(S[B],z):S.push(z)}}for(A=A.sort(n),T=0,V=A.length;V>T;T++){var H=A[T]-T;S.splice(H,1)}}for(var W=e[0]&&"at-rule"==e[0][0]&&0===e[0][1][0].indexOf("@charset")?1:0;W-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 o(e,t){return-1==t.indexOf("0deg")?t:t.replace(/\(0deg\)/g,"(0)")}function a(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 s(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 u(e,t,r){return/^(?:\-moz\-calc|\-webkit\-calc|calc)\(/.test(t)?t:"flex"==e||"-ms-flex"==e||"-webkit-flex"==e||"flex-basis"==e||"-webkit-flex-basis"==e?t:t.indexOf("%")>0&&("height"==e||"max-height"==e)?t:t.replace(r,"$10$2").replace(r,"$10$2")}function l(e){var t,r=e.value;4==r.length&&"0"===r[0][0]&&"0"===r[1][0]&&"0"===r[2][0]&&"0"===r[3][0]&&(t=e.name.indexOf("box-shadow")>-1?2:1),t&&(e.value.splice(t),e.dirty=!0)}function c(e,t,r){return-1===t.indexOf("#")&&-1==t.indexOf("rgb")&&-1==t.indexOf("hsl")?E.shorten(t):(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,r,n){return new C(t,r,n).toHex()}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,r,n){return new S(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&&-1==e.indexOf("background")&&(t=t.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(e){return O(t,",").pop().indexOf("gradient(")>-1?e:"transparent"})),E.shorten(t))}function f(e,t,r){return U.test(t)?t.replace(U,function(e,t){var n,i=parseInt(t);return 0===i?e:(r.properties.shorterLengthUnits&&r.units.pt&&3*i%4===0&&(n=3*i/4+"pt"),r.properties.shorterLengthUnits&&r.units.pc&&i%16===0&&(n=i/16+"pc"),r.properties.shorterLengthUnits&&r.units["in"]&&i%96===0&&(n=i/96+"in"),n&&(n=e.substring(0,e.indexOf(t))+n),n&&n.length-1||t[1]&&P.indexOf(t[1][0])>-1||t[2]&&P.indexOf(t[2][0])>-1;if(!r&&"/"!=t[1]){var n=0;if("normal"==t[0][0]&&n++,t[1]&&"normal"==t[1][0]&&n++,t[2]&&"normal"==t[2][0]&&n++,!(n>1)){var i;B.indexOf(t[0][0])>-1?i=0:t[1]&&B.indexOf(t[1][0])>-1?i=1:t[2]&&B.indexOf(t[2][0])>-1?i=2:V.indexOf(t[0][0])>-1?i=0:t[1]&&V.indexOf(t[1][0])>-1?i=1:t[2]&&V.indexOf(t[2][0])>-1&&(i=2),void 0!==i&&(e.value[i][0]=I["font-weight"](t[i][0]),e.dirty=!0)}}}function m(e,t){for(var r,v,b,y=A(e),w=0,_=y.length;_>w;w++)if(r=y[w],v=r.name,r.hack&&(("star"==r.hack||"underscore"==r.hack)&&!t.compatibility.properties.iePrefixHack||"backslash"==r.hack&&!t.compatibility.properties.ieSuffixHack||"bang"==r.hack&&!t.compatibility.properties.ieBangHack)&&(r.unused=!0),0===v.indexOf("padding")&&(n(r,0)||n(r,1)||n(r,2)||n(r,3))&&(r.unused=!0),!r.unused)if(r.variable)r.block&&m(r.value[0],t);else{for(var x=0,k=r.value.length;k>x;x++)b=r.value[x][0],I[v]&&(b=I[v](b,x,k)),b=a(v,b),b=s(v,b,t.precision),b=f(v,b,t.compatibility),b=h(v,b),b=i(v,b),t.compatibility.properties.zeroUnits&&(b=o(v,b),b=u(v,b,t.unitsRegexp)),t.compatibility.properties.colors&&(b=c(v,b,t.compatibility)),r.value[x][0]=b;l(r),0===v.indexOf("border")&&v.indexOf("radius")>0?p(r):"filter"==v?d(r):"font"==v&&g(r)}R(y,!0),M(y)}function v(e){for(var t=!1,r=0,n=e.length;n>r;r++){var i=e[r];"at-rule"==i[0]&&T.test(i[1][0])&&(t||-1==i[1][0].indexOf(j)?(e.splice(r,1),r--,n--):(t=!0,e.splice(r,1),e.unshift(["at-rule",[i[1][0].replace(T,j)]])))}}function b(e){var t=["px","em","ex","cm","mm","in","pt","pc","%"],r=["ch","rem","vh","vm","vmax","vmin","vw"];return r.forEach(function(r){e.compatibility.units[r]&&t.push(r)}),new RegExp("(^|\\s|\\(|,)0(?:"+t.join("|")+")(\\W|$)","g")}function y(e){var t={};return t.value=void 0===e.roundingPrecision?L:e.roundingPrecision,t.multiplier=Math.pow(10,t.value),t.regexp=new RegExp("(\\d*\\.\\d{"+(t.value+1)+",})px","g"),t}function w(e,t){var r=t.compatibility.selectors.ie7Hack,n=t.compatibility.selectors.adjacentSpace,i=t.compatibility.properties.spaceAfterClosingBrace,o=!1;t.unitsRegexp=b(t),t.precision=y(t);for(var a=0,s=e.length;s>a;a++){var u=e[a];switch(u[0]){case"selector":u[1]=_(u[1],!r,n),m(u[2],t);break;case"block":x(u[1],i),w(u[2],t);break;case"flat-block":x(u[1],i),m(u[2],t);break;case"at-rule":k(u[1]),o=!0}(0===u[1].length||u[2]&&0===u[2].length)&&(e.splice(a,1),a--,s--)}o&&v(e)}var _=e("./clean-up").selectors,x=e("./clean-up").block,k=e("./clean-up").atRule,O=e("../utils/split"),C=e("../colors/rgb"),S=e("../colors/hsl"),E=e("../colors/hex-name-shortener"),A=e("../properties/wrap-for-optimizing").all,R=e("../properties/restore-from-optimizing"),M=e("../properties/remove-unused"),L=2,j="@charset",T=new RegExp("^"+j,"i"),P=["100","200","300","400","500","600","700","800","900"],V=["normal","bold","bolder","lighter"],B=["bold","bolder","lighter"],U=/(?:^|\s|\()(-?\d+)px/,D=/^(\-?[\d\.]+)(m?s)$/,I={background:function(e,t,r){return 0!==t||1!=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 0===t&&1==r&&"none"==e?"0":e}};t.exports=w},{"../colors/hex-name-shortener":8,"../colors/hsl":9,"../colors/rgb":10,"../properties/remove-unused":21,"../properties/restore-from-optimizing":22,"../properties/wrap-for-optimizing":27,"../utils/split":65,"./clean-up":29}],42:[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},{}],43:[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){for(var r=t.store,n=0,i=e.length;i>n;n++)r(e[n],t),i-1>n&&r(",",t)}function d(e,t){for(var r=0,n=e.length;n>r;r++)g(e,r,r==n-1,t)}function g(e,t,r,n){var i=n.store,o=e[t];"string"==typeof o?i(o,n):o[0]==_?m(o[1],r,n):(i(o[0],n),i(":",n),v(e,t,r,n))}function m(e,t,r){var n=r.store;n(e,r),t||n(x,r)}function v(e,t,r,i){var o=i.store,a=e[t],s=0===a[0][0].indexOf("--");if(s&&b(a[1]))return o("{",i),d(a[1],i),void o("};",i);for(var u=1,l=a.length;l>u;u++)o(a[u],i),l-1>u&&(f(a)||!h(a,u,i))?o(" ",i):u==l-1&&!r&&n(e,t+1)&&o(x,i)}function b(e){for(var t=0,r=e.length;r>t;t++)if(e[t][0]==_||Array.isArray(e[t][0]))return!0;return!1}function y(e,t){for(var r=t.keepBreaks?w:"",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":p([a[1]],t),n("{",t),y(a[2],t),n("}",t),n(r,t);break;case"flat-block":p([a[1]],t),n("{",t),d(a[2],t),n("}",t),n(r,t);break;default:p(a[1],t),n("{",t),d(a[2],t),n("}",t),n(r,t)}}}var w=e("os").EOL,_="at-rule",x=";";t.exports={all:y,body:d,property:g,selectors:p,value:v}},{os:74}],44:[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":43}],45:[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":43}],46:[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(t.output))),o(n,r?null:e,t),t.output.push(n)}function i(e){for(var t=[],r=e.length-1;r>=0;r--){var n=e[r];if(t.unshift(n),"{"==n||";"==n)break}return t.join("")}function o(e,t,r){t&&a(t,r);var n=e.split("\n");r.line+=n.length-1,r.column=n.length>1?0:r.column+n.pop().length}function a(e,t){var r=e[e.length-1];if(Array.isArray(r))for(var n=0,i=r.length;i>n;n++)s(r[n],t)}function s(e,t){var r=e[2]||h;f&&(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 u(e,t,r,i){var o={column:0,inputMapTracker:i,keepBreaks:t.keepBreaks,line:1,output:[],outputMap:new l,restore:r,sourceMapInlineSources:t.sourceMapInlineSources,spaceAfterClosingBrace:t.compatibility.properties.spaceAfterClosingBrace,store:n};return c(e,o,!1),{sourceMap:o.outputMap,styles:o.output.join("").trim()}}var l=e("source-map").SourceMapGenerator,c=e("./helpers").all,f="win32"==r.platform,h="$stdin";t.exports=u}).call(this,e("_process"))},{"./helpers":43,_process:77,"source-map":92}],47:[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=0;o0?i.join("")+t.substring(o,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":62,"./escape-store":48,os:74}],48:[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},{}],49:[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":48,os:74}],50:[function(e,t,r){function n(e){this.matches=new o("FREE_TEXT"),this.saveWaypoints=e}function i(e,t,r,n){var i=t;r&&(i=r+t.substring(0,t.indexOf("__ESCAPED_FREE_TEXT_CLEAN_CSS")),n=i.length);var o=i.lastIndexOf(";",n),a=i.lastIndexOf("{",n),s=0;s=o>-1&&a>-1?Math.max(o,a):-1==o?a:o;var u=i.substring(s+1,n);if(/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(u)&&(e=e.replace(/\\\n|\\\r\n/g,"").replace(/\n|\r\n/g,"")),/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/.test(e)&&!/format\($/.test(u)){var l=/^(font|font\-family):/.test(u),c=/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(u),f=/@(-moz-|-o-|-webkit-)?keyframes /.test(u),h=/^(-moz-|-o-|-webkit-)?animation(-name)?:/.test(u);(l||c||f||h)&&(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,t){for(var r=[],n=0;n0?r.join("")+e.substring(n,e.length):e},t.exports=n},{"../utils/quote-scanner":62,"./escape-store":48,os:74}],51:[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":56,"./escape-store":48,os:74}],52:[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=[],d=/[ ,\/]/;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 g=c(e,";",!1,"{","}"),m=0,v=g.length;v>m;m++){var b=g[m],y=b.indexOf(":"),w="@"==b.trim()[0];if(w)r.track(b),i.push([p,b.trim()]);else if(-1!=y)if(b.indexOf("{")>0&&b.indexOf("{")-1&&(x=a(x,i,r)),x.indexOf("__ESCAPED_COMMENT")>-1&&(x=s(x,o,r)),_.push([x.trim()].concat(r.track(x,!0))),r.track(":"),u(o,i,r);var k=b.indexOf("{"),O=0===x.trim().indexOf("--");if(O&&k>0){var C=b.substring(y+1,k+1),S=b.substring(b.indexOf("}")),E=b.substring(k+1,b.length-S.length);r.track(C),_.push(l(E,t,r)),i.push(_),r.track(S),r.track(v-1>m?";":"")}else{var A=c(b.substring(y+1),d,!0);if(1!=A.length||""!==A[0]){for(var R=0,M=A.length;M>R;R++){var L=A[R],j=L.trim();if(0!==j.length){var T=j[j.length-1],P=j.length>1&&(T==f||T==h);if(P&&(j=j.substring(0,j.length-1)),j.indexOf("__ESCAPED_COMMENT_CLEAN_CSS(0,-")>-1)r.track(j);else if(o=[],j.indexOf("__ESCAPED_COMMENT")>-1&&(j=a(j,i,r)),j.indexOf("__ESCAPED_COMMENT")>-1&&(j=s(j,o,r)),0!==j.length){var V=_.length-1;"important"!=j||"!"!=_[V][0]?"!important"==j||"important"==j&&"!"==_[V][0][_[V][0].length-1]?(r.track(j),_[V][0]+=j):(_.push([j].concat(r.track(L,!0))),u(o,i,r),P&&(_.push([T]),r.track(T))):(r.track(j),_[V-1][0]+="!important",_.pop())}else u(o,i,r)}}v-1>m&&r.track(";"),i.push(_)}else r.warnings.push("Empty property '"+x+"' inside '"+t.filter(n).join(",")+"' selector. Ignoring.")}}else r.track(b),b.indexOf("__ESCAPED_COMMENT_SPECIAL")>-1&&i.push(b.trim())}return i}var c=e("../utils/split"),f=",",h="/",p="at-rule";t.exports=l},{"../utils/split":65}],53:[function(e,t,r){function n(e,t){for(var r,n=[],o=i(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/split");t.exports=n},{"../utils/split":65}],54:[function(e,t,r){function n(e,t){var r=f(i(e),"}",!0,"{","}");if(0===r.length)return[];var n={chunk:r.shift(),chunks: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[[c(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(0===e.chunks.length)return null;e.chunk=n=e.chunks.shift(),e.cursor=0}if("body"==r)return"}"==n[e.cursor]?[e.cursor,"bodyEnd"]:-1==n.indexOf("}",e.cursor)?null:(t=e.cursor+f(n.substring(e.cursor-1),"}",!0,"{","}")[0].length-2,[t,"bodyEnd"]);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 c=e.chunk.substring(e.cursor);c.trim().length>0&&("body"==e.mode?e.warnings.push("Missing '}' after '"+c+"'. Ignoring."):i.push(["text",[c]]),e.cursor+=c.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),_=-1==b&&-1==y;if(_)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 x=r.trim(),k=p.test(x);h=e.mode,e.cursor=f+1,e.mode=k?"body":"block",t=[k?"flat-block":"block"],t.push([x].concat(e.track(r,!0))),e.track("{"),t.push(s(e)),"string"==typeof t[2]&&(t[2]=u(t[2],[[x]],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),C=!!e.sourceTracker.nextStart(O),S=!!e.sourceTracker.nextEnd(O);if(C)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 E=e.state.pop();e.source=E.source,e.line=E.line,e.column=E.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=l(n.substring(e.cursor,d),e);h=e.mode,e.cursor=d+1,e.mode="body";var R=u(s(e),A,e);e.track("{"),e.mode=h,i.push(["selector",A,R])}else if("bodyEnd"==g){if("top"==e.mode){var M=e.cursor,L="}"==n[e.cursor]?"Unexpected '}' in '"+n.substring(M-20,M+20)+"'. Ignoring.":"Unexpected content: '"+n.substring(M,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("./extract-properties"),l=e("./extract-selectors"),c=e("../source-maps/track"),f=e("../utils/split"),h=e("path"),p=/(@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport|counter\-style)|\\@.+?)/;t.exports=n},{"../source-maps/track":42,"../utils/split":65,"./extract-properties":52,"./extract-selectors":53,path:75}],55:[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":57,path:75}],56:[function(e,t,r){function n(e,t,r){for(var n=0,i=0,o=0,c=0,f=!1,h=0,p=[],d=e.indexOf(s)>-1;o-1&&(n=i),'"'==e[n+a.length])o=e.indexOf('"',n+a.length+1);else if("'"==e[n+a.length])o=e.indexOf("'",n+a.length+1);else if(f=0===e.substring(n+a.length).trim().indexOf(l),o=e.indexOf(u,n),f)for(;;){if(c=e.indexOf(u,o+1),-1==c||/[\s\{\};]/.test(e.substring(o,c)))break;o=c}-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)),p.push(e.substring(h,n));var g=e.substring(n,o+1);r(g,p),h=o+1}return p.length>0?p.join("")+e.substring(h,e.length):e}function i(e,t,r){for(var n,i,o=0,a=0,s=0,u=0,l=0,p=[],d=0,g=0,m="'",v='"';u-1&&a>-1&&o>a&&(o=a),d=e.indexOf(m,o),g=e.indexOf(v,o),d>-1&&g>-1&&g>d)s=d,i=m;else if(d>-1&&g>-1&&d>g)s=g,i=v;else if(d>-1)s=d,i=m;else{if(!(g>-1))break;s=g,i=v}if(p.push(e.substring(l,s)),u=e.indexOf(i,s+1),n=e.substring(o,u),-1==u||/^@import\s+(url\(|__ESCAPED)/i.test(n)||h.test(n)){l=s;break}var b=e.substring(s,u+1);r(b,p),l=u+1}return p.length>0?p.join("")+e.substring(l,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="data:",c="@import",f="@IMPORT",h=/\*\//;t.exports=o},{}],57:[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,t){return b.parse(e).protocol==b.parse(t).protocol&&b.parse(e).host==b.parse(t).host}function l(e){return e.lastIndexOf(".css")===e.length-4}function c(e){return 0===e.indexOf("data:")}function f(e,t){return v.resolve(v.join(t.fromBase||"",e)).replace(t.toBase,"")}function h(e,t){return v.relative(t.toBase,v.join(t.fromBase||"",e))}function p(e){return w?e.replace(/\\/g,"/"):e}function d(e,t){return n(e)||i(e)||o(e)||a(e)?e:t.rebase!==!1||l(e)?!t.imports&&l(e)?e:c(e)?"'"+e+"'":s(e)&&!s(t.toBase)?e:s(e)&&!u(e,t.toBase)?e:!s(e)&&s(t.toBase)?b.resolve(t.toBase,e):p(t.absolute?f(e,t):h(e,t)):e}function g(e){return e.indexOf("'")>-1?'"':e.indexOf('"')>-1?"'":/\s/.test(e)||/[\(\)]/.test(e)?"'":""}function m(e,t,r){return y(e,r,function(e,r){var n,i=e.replace(/^(url\()?\s*['"]?|['"]?\s*\)?$/g,""),o=e.match(/^(url\()?\s*(['"]).*?(['"])\s*\)?$/);n=t.urlQuotes&&o&&o[2]===o[3]?o[2]:g(i),r.push("url("+n+d(i,t)+n+")")})}var v=e("path"),b=e("url"),y=e("./reduce"),w="win32"==r.platform;t.exports=m}).call(this,e("_process"))},{"./reduce":56,_process:77,path:75,url:110}],58:[function(e,t,r){function n(e){for(var t=e.slice(0),r=0,i=t.length;i>r;r++)Array.isArray(t[r])&&(t[r]=n(t[r]));return t}t.exports=n},{}],59:[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,ieBangHack:!1,iePrefixHack:!1,ieSuffixHack:!0,merging:!0,shorterLengthUnits:!1,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|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!0,"in":!0,pc:!0,pt:!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,ieBangHack:!1,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!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|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!1,"in":!0,pc:!0,pt:!0,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,ieBangHack:!0,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!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|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!1,"in":!0,pc:!0,pt:!0,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:114}],60:[function(e,t,r){(function(r,n,i){function o(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 a(e,t,r){return e.trackLoaded(void 0,void 0,e.options.sourceMap),r()}function s(e,t,r,n){function i(){n.cursor+=o+1,s(e,t,r,n)}for(var o=0;n.cursor-1&&(o=c.index),f.index>-1&&f.index-1&&h.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 f(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?f(e,t-1,r,n,i-1):(e.path&&o.source&&(o.source=x.test(e.path)?y.resolve(e.path,o.source):m.join(e.path,o.source),o.sourceResolved=!0),o)}function h(e,t){var r=e.maps[t].data,n=x.test(t),i={};r.sources.forEach(function(o,a){var s=n?y.resolve(m.dirname(t),o):m.relative(e.relativeTo,m.resolve(m.dirname(t),o));i[s]=r.sourcesContent&&r.sourcesContent[a]}),e.sourcesContent[t]=i}function p(e,t,r){function n(){return p(e,t,r)}if(0===t.length)return r();var i=t.shift(),o=i[0],a=i[1],s=x.test(o);if(s&&e.localOnly)return e.warnings.push('No callback given to `#minify` method, cannot fetch a remote file from "'+a+'"'),n();if(!s){var u=m.join(e.options.root,a);return g.existsSync(u)?e.sourcesContent[o][a]=g.readFileSync(u,"utf-8"):e.warnings.push('Missing original source file at "'+u+'".'),n()}c(e,a,function(t){e.sourcesContent[o][a]=t,n()},function(t){e.warnings.push('Broken original source file at "'+a+'" - '+t),n()})}var d=e("source-map").SourceMapConsumer,g=e("fs"),m=e("path"),v=e("http"),b=e("https"),y=e("url"),w=e("../utils/object.js").override,_=/\/\*# sourceMappingURL=(\S+) \*\//,x=/^(https?:)?\/\//,k=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/,O=n.unescape;o.prototype.track=function(e,t){return"string"==typeof this.options.sourceMap?a(this,e,t):s(this,e,t,{files:[],cursor:0,errors:this.errors})},o.prototype.trackLoaded=function(e,t,r){var n=this.options.explicitTarget?this.options.target:this.options.root,i=x.test(e);t&&(t=i?m.dirname(t):m.dirname(m.relative(n,t))),this.maps[e]={path:t,data:new d(r)},h(this,e)},o.prototype.isTracking=function(e){return!!this.maps[e]},o.prototype.originalPositionFor=function(e,t,r){return f(this.maps[e.source],e.line,e.column,t,r)},o.prototype.sourcesContentFor=function(e){return this.sourcesContent[e]},o.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 p(this,t,e)},t.exports=o}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"../utils/object.js":61,_process:77,buffer:5,fs:4,http:104,https:69,path:75,"source-map":92,url:110}],61:[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}}},{}],62:[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},{}],63:[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,urlQuotes:e.outerContext.options.compatibility.properties.urlQuotes};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,{isBuffer:e("../../../is-buffer/index.js")})},{"../../../is-buffer/index.js":72,"../urls/rewrite":57,path:75}],64:[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},{}],65:[function(e,t,r){function n(e,t,r,n,i){var o="string"!=typeof t,a=o?t.test(e):e.indexOf(t);if(!a)return[e];if(n=n||"(",i=i||")",-1==e.indexOf(n)&&!r)return e.split(t);for(var s=0,u=0,l=0,c=e.length,f=[];c>u;)e[u]==n?s++:e[u]==i&&s--,0===s&&u>0&&c>u+1&&(o?t.test(e[u]):e[u]==t)&&(f.push(e.substring(l,u+(r?1:0))),l=u+1),u++;if(u+1>l){var h=e.substring(l),p=h[h.length-1];!r&&(o?t.test(p):p==t)&&(h=h.substring(0,h.length-1)),f.push(h)}return f}t.exports=n},{}],66:[function(e,t,r){t.exports=e("./lib/clean")},{"./lib/clean":7}],67:[function(e,t,r){(function(e){function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===m(e)}function n(e){return"boolean"==typeof e}function i(e){return null===e}function o(e){return null==e}function a(e){return"number"==typeof e}function s(e){return"string"==typeof e}function u(e){return"symbol"==typeof e}function l(e){return void 0===e}function c(e){return"[object RegExp]"===m(e)}function f(e){return"object"==typeof e&&null!==e}function h(e){return"[object Date]"===m(e)}function p(e){return"[object Error]"===m(e)||e instanceof Error}function d(e){return"function"==typeof e}function g(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function m(e){return Object.prototype.toString.call(e)}r.isArray=t,r.isBoolean=n,r.isNull=i,r.isNullOrUndefined=o,r.isNumber=a,r.isString=s,r.isSymbol=u,r.isUndefined=l,r.isRegExp=c,r.isObject=f,r.isDate=h,r.isError=p,r.isFunction=d,r.isPrimitive=g,r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":72}],68:[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:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}else if(a(r))for(o=Array.prototype.slice.call(arguments,1),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");return 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&&(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())),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 if(r)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.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},{}],69:[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",e.protocol="https:",n.request.call(this,e,t)}},{http:104}],70:[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}},{}],71:[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}},{}],72:[function(e,t,r){t.exports=function(e){return!(null==e||!(e._isBuffer||e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)))}},{}],73:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],74:[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"},{}],75:[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:77}],76:[function(e,t,r){(function(e){"use strict";function r(t){for(var r=new Array(arguments.length-1),n=0;n1)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?B(e/E):e>>1,e+=B(e/t);e>V*C>>1;n+=k)e=B(e/V);return B(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=R,y=A;for(r=e.lastIndexOf(M),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>B((x-v)/s))&&o("overflow"),v+=f*s,p=y>=u?O:u>=y+C?C:u-y,!(p>f);u+=k)d=k-p,s>B(x/d)&&o("overflow"),s*=d;t=g.length+1,y=h(v-a,t,0==a),B(v/t)>x-b&&o("overflow"),b+=B(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=R,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(M);m>n;){for(l=x,s=0;m>s;++s)g=e[s],g>=t&&l>g&&(l=g);for(v=n+1,l-t>B((x-r)/v)&&o("overflow"),r+=(l-t)*v,t=l,s=0;m>s;++s)if(g=e[s],t>g&&++r>x&&o("overflow"),g==t){for(c=r,p=k;d=a>=p?O:p>=a+C?C:p-a,!(d>c);p+=k)y=c-d,b=k-d,w.push(U(f(d+y%b,0))),c=B(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,C=26,S=38,E=700,A=72,R=128,M="-",L=/^xn--/,j=/[^\x20-\x7E]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,P={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,B=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(_ in w)w.hasOwnProperty(_)&&(v[_]=w[_]);else i.punycode=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],79:[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)}},{}],80:[function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n0)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{var u;!t.decoder||i||n||(r=t.decoder.write(r),u=!t.objectMode&&0===r.length),i||(t.reading=!1),u||(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=V?e=V:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(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 E.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function c(e,t){if(!t.ended){if(t.decoder){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||(j("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?C(h,e):h(e))}function h(e){j("emit readable"),e.emit("readable"),y(e)}function p(e,t){t.readingMore||(t.readingMore=!0,C(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(""):1===n.length?n[0]:E.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,C(x,t,e))}function x(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function k(e,t){for(var r=0,n=e.length;n>r;r++)t(e[r],r)}function O(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1}t.exports=i;var C=e("process-nextick-args"),S=e("isarray"),E=e("buffer").Buffer;i.ReadableState=n;var A,R=(e("events"),function(e,t){return e.listeners(t).length});!function(){try{A=e("stream")}catch(t){}finally{A||(A=e("events").EventEmitter)}}();var E=e("buffer").Buffer,M=e("core-util-is");M.inherits=e("inherits");var L=e("util"),j=void 0;j=L&&L.debuglog?L.debuglog("stream"):function(){};var T;M.inherits(i,A);var P,P;i.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding,t!==r.encoding&&(e=new E(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.isPaused=function(){return this._readableState.flowing===!1},i.prototype.setEncoding=function(t){return T||(T=e("string_decoder/").StringDecoder),this._readableState.decoder=new T(t),this._readableState.encoding=t,this};var V=8388608;i.prototype.read=function(e){j("read",e);var t=this._readableState,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return j("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?_(this):f(this),null;if(e=u(e,t),0===e&&t.ended)return 0===t.length&&_(this),null;var n=t.needReadable;j("need readable",n),(0===t.length||t.length-e0?w(e,t):null,null===i&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&_(this),null!==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){j("onunpipe"),e===f&&o()}function i(){j("onend"),e.end()}function o(){j("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),v=!0,!h.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function a(t){j("ondata");var r=e.write(t);!1===r&&(1!==h.pipesCount||h.pipes[0]!==e||1!==f.listenerCount("data")||v||(j("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++),f.pause())}function s(t){j("onerror",t),c(),e.removeListener("error",s),0===R(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",l),c()}function l(){j("onfinish"),e.removeListener("close",u),c()}function c(){j("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,j("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?C(d):f.once("end",d),e.on("unpipe",n);var m=g(f);e.on("drain",m);var v=!1;return f.on("data",a),e._events&&e._events.error?S(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||(j("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 o=O(t.pipes,e);return-1===o?this:(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},i.prototype.on=function(e,t){var r=A.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&!this._readableState.endEmitted){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&f(this,n):C(m,this))}return r},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var e=this._readableState;return e.flowing||(j("resume"),e.flowing=!0,v(this,e)),this},i.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(j("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(j("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(j("wrapped data"),t.decoder&&(i=t.decoder.write(i)),(!t.objectMode||null!==i&&void 0!==i)&&(t.objectMode||i&&i.length)){var o=n.push(i);o||(r=!0,e.pause())}});for(var i in e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return k(o,function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){j("wrapped _read",t),r&&(r=!1,e.resume())},n},i._fromList=w}).call(this,e("_process"))},{"./_stream_duplex":83,_process:77,buffer:5,"core-util-is":67,events:68,inherits:71,isarray:73,"process-nextick-args":76,"string_decoder/":108,util:3}],86:[function(e,t,r){"use strict";function n(e){this.afterTransform=function(t,r){return i(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=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,null!==r&&void 0!==r&&e.push(r),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length-1?setImmediate:k,C=e("buffer").Buffer;a.WritableState=o;var S=e("core-util-is");S.inherits=e("inherits");var E,A={deprecate:e("util-deprecate")};!function(){try{E=e("stream")}catch(t){}finally{E||(E=e("events").EventEmitter)}}();var C=e("buffer").Buffer;S.inherits(a,E);var R;o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(o.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}();var R;a.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},a.prototype.write=function(e,t,r){var i=this._writableState,o=!1;return"function"==typeof t&&(r=t,t=null),C.isBuffer(e)?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=n),i.ended?s(this,r):u(this,i,e,r)&&(i.pendingcb++,o=c(this,i,e,t,r)),o},a.prototype.cork=function(){var e=this._writableState;e.corked++},a.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||v(this,e))},a.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e},a.prototype._write=function(e,t,r){r(new Error("not implemented"))},a.prototype._writev=null,a.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||_(this,n,r)}}).call(this,e("_process"))},{"./_stream_duplex":83,_process:77,buffer:5,"core-util-is":67,events:68,inherits:71,"process-nextick-args":76,"util-deprecate":112}],88:[function(e,t,r){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":84}],89:[function(e,t,r){var n=function(){try{return e("stream")}catch(t){}}();r=t.exports=e("./lib/_stream_readable.js"),r.Stream=n||r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":83,"./lib/_stream_passthrough.js":84,"./lib/_stream_readable.js":85,"./lib/_stream_transform.js":86,"./lib/_stream_writable.js":87}],90:[function(e,t,r){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":86}],91:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":87}],92:[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":99,"./source-map/source-map-generator":100,"./source-map/source-node":101}],93:[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:1}],96:[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:1}],97:[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":102,amdefine:1}],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){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:1}],99:[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])),x.push(r),"number"==typeof r.originalLine&&_.push(r)}f(x,s.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,f(_,s.compareByOriginalPositions),this.__originalMappings=_},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":93,"./base64-vlq":94,"./mapping-list":97,"./util":102,amdefine:1}],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,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":100,"./util":102,amdefine:1}],102:[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:1}],103:[function(e,t,r){function n(){i.call(this)}t.exports=n;var i=e("events").EventEmitter,o=e("inherits");o(n,i),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),n.Stream=n,n.prototype.pipe=function(e,t){function r(t){e.writable&&!1===e.write(t)&&l.pause&&l.pause()}function n(){l.readable&&l.resume&&l.resume()}function o(){c||(c=!0,e.end())}function a(){c||(c=!0,"function"==typeof e.destroy&&e.destroy())}function s(e){if(u(),0===i.listenerCount(this,"error"))throw e}function u(){l.removeListener("data",r),e.removeListener("drain",n),l.removeListener("end",o),l.removeListener("close",a),l.removeListener("error",s),e.removeListener("error",s),l.removeListener("end",u),l.removeListener("close",u),e.removeListener("close",u)}var l=this;l.on("data",r),e.on("drain",n),e._isStdio||t&&t.end===!1||(l.on("end",o),l.on("close",a));var c=!1;return l.on("error",s),e.on("error",s),l.on("end",u),l.on("close",u),e.on("close",u),e.emit("pipe",l),e}},{events:68,inherits:71,"readable-stream/duplex.js":82,"readable-stream/passthrough.js":88,"readable-stream/readable.js":89,"readable-stream/transform.js":90,"readable-stream/writable.js":91}],104:[function(e,t,r){(function(t){var n=e("./lib/request"),i=e("xtend"),o=e("builtin-status-codes"),a=e("url"),s=r;s.request=function(e,r){e="string"==typeof e?a.parse(e):i(e);var o=-1===t.location.protocol.search(/^https?:$/)?"http:":"",s=e.protocol||o,u=e.hostname||e.host,l=e.port,c=e.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),e.url=(u?s+"//"+u:"")+(l?":"+l:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new n(e);return r&&f.on("response",r),f},s.get=function(e,t){var r=s.request(e,t);return r.end(),r},s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.STATUS_CODES=o,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":106,"builtin-status-codes":6,url:110,xtend:115}],105:[function(e,t,r){(function(e){function t(e){try{return o.responseType=e,o.responseType===e}catch(t){}return!1}function n(e){return"function"==typeof e}r.fetch=n(e.fetch)&&n(e.ReadableByteStream),r.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),r.blobConstructor=!0}catch(i){}var o=new e.XMLHttpRequest;o.open("GET",e.location.host?"/":"https://example.com");var a="undefined"!=typeof e.ArrayBuffer,s=a&&n(e.ArrayBuffer.prototype.slice);r.arraybuffer=a&&t("arraybuffer"),r.msstream=!r.fetch&&s&&t("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&a&&t("moz-chunked-arraybuffer"),r.overrideMimeType=n(o.overrideMimeType),r.vbArray=n(e.VBArray),o=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],106:[function(e,t,r){(function(r,n,i){function o(e){return s.fetch?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":s.vbArray&&e?"text:vbarray":"text"}function a(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}}var s=e("./capability"),u=e("inherits"),l=e("./response"),c=e("stream"),f=e("to-arraybuffer"),h=l.IncomingMessage,p=l.readyStates,d=t.exports=function(e){var t=this;c.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+new i(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(r){t.setHeader(r,e.headers[r])});var r;if("prefer-streaming"===e.mode)r=!1;else if("allow-wrong-content-type"===e.mode)r=!s.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");r=!0}t._mode=o(r),t.on("finish",function(){t._onFinish()})};u(d,c.Writable),d.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===g.indexOf(n)&&(r._headers[n]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this;return t._headers[e.toLowerCase()].value},d.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,o=e._opts,a=e._headers;if("POST"!==o.method&&"PUT"!==o.method&&"PATCH"!==o.method||(t=s.blobConstructor?new n.Blob(e._body.map(function(e){return f(e)}),{type:(a["content-type"]||{}).value||""}):i.concat(e._body).toString()),"fetch"===e._mode){var u=Object.keys(a).map(function(e){return[a[e].name,a[e].value]});n.fetch(e._opts.url,{method:e._opts.method,headers:u,body:t,mode:"cors",credentials:o.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)})}else{var l=e._xhr=new n.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(c){return void r.nextTick(function(){e.emit("error",c)})}"responseType"in l&&(l.responseType=e._mode.split(":")[0]),"withCredentials"in l&&(l.withCredentials=!!o.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(a).forEach(function(e){l.setRequestHeader(a[e].name,a[e].value)}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{l.send(t)}catch(c){return void r.nextTick(function(){e.emit("error",c)})}}}},d.prototype._onXHRProgress=function(){var e=this;a(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new h(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},d.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()},d.prototype.abort=d.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},d.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),c.Writable.prototype.end.call(n,e,t,r)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":105,"./response":107,_process:77,buffer:5,inherits:71,stream:103,"to-arraybuffer":109}],107:[function(e,t,r){(function(t,n,i){var o=e("./capability"),a=e("inherits"),s=e("stream"),u=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=r.IncomingMessage=function(e,r,n){function a(){h.read().then(function(e){if(!u._destroyed){if(e.done)return void u.push(null);u.push(new i(e.value)),a()}})}var u=this;if(s.Readable.call(u),u._mode=n,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){t.nextTick(function(){u.emit("close")})}),"fetch"===n){u._fetchResponse=r,u.statusCode=r.status,u.statusMessage=r.statusText;for(var l,c,f=r.headers[Symbol.iterator]();l=(c=f.next()).value,!c.done;)u.headers[l[0].toLowerCase()]=l[1],u.rawHeaders.push(l[0],l[1]);var h=r.body.getReader();a()}else{u._xhr=e,u._pos=0,u.statusCode=e.status,u.statusMessage=e.statusText;var p=e.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===u.headers[r]&&(u.headers[r]=[]),u.headers[r].push(t[2])):void 0!==u.headers[r]?u.headers[r]+=", "+t[2]:u.headers[r]=t[2],u.rawHeaders.push(t[1],t[2])}}),u._charset="x-user-defined",!o.overrideMimeType){var d=u.rawHeaders["mime-type"];if(d){var g=d.match(/;\s*charset=([^;])(;|$)/);g&&(u._charset=g[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};a(l,s.Readable),l.prototype._read=function(){},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new n.VBArray(t.responseBody).toArray()}catch(o){}if(null!==r){e.push(new i(r));break}case"text":try{r=t.responseText}catch(o){e._mode="text:vbarray";break}if(r.length>e._pos){var a=r.substr(e._pos);if("x-user-defined"===e._charset){for(var s=new i(a.length),l=0;le._pos&&(e.push(new i(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":105,_process:77,buffer:5,inherits:71,stream:103}],108:[function(e,t,r){function n(e){if(e&&!u(e))throw new Error("Unknown encoding: "+e)}function i(e){return e.toString(this.encoding)}function o(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function a(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var s=e("buffer").Buffer,u=s.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},l=r.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),n(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=a;break;default:return void(this.write=i)}this.charBuffer=new s(6),this.charReceived=0,this.charLength=0};l.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=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:5}],109:[function(e,t,r){var n=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,i=0;r>i;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:5}],110:[function(e,t,r){"use strict";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.isObject(e)&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}function o(e){return l.isString(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}var u=e("punycode"),l=e("./util");r.parse=i,r.resolve=a,r.resolveObject=s,r.format=o,r.Url=n;var c=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n"," "],d=["{","}","|","\\","^","`"].concat(p),g=["'"].concat(d),m=["%","/","?",";","#"].concat(g),v=["/","?","#"],b=255,y=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},x={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=e("querystring");n.prototype.parse=function(e,t,r){if(!l.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=-1!==n&&nA)&&(S=A)}var R,M;M=-1===S?s.lastIndexOf("@"):s.lastIndexOf("@",S),-1!==M&&(R=s.slice(0,M),s=s.slice(M+1),this.auth=decodeURIComponent(R)),S=-1;for(var E=0;EA)&&(S=A)}-1===S&&(S=s.length),this.host=s.slice(0,S),s=s.slice(S),this.parseHost(),this.hostname=this.hostname||"";var L="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!L)for(var j=this.hostname.split(/\./),E=0,T=j.length;T>E;E++){var P=j[E];if(P&&!P.match(y)){for(var V="",B=0,U=P.length;U>B;B++)V+=P.charCodeAt(B)>127?"x":P[B];if(!V.match(y)){var D=j.slice(0,E),I=j.slice(E+1),N=P.match(w);N&&(D.push(N[1]),I.unshift(N[2])),I.length&&(s="/"+I.join(".")+s),this.hostname=D.join(".");break}}}this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),L||(this.hostname=u.toASCII(this.hostname));var z=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+z,this.href+=this.host,L&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!_[d])for(var E=0,T=g.length;T>E;E++){var F=g[E];if(-1!==s.indexOf(F)){var $=encodeURIComponent(F);$===F&&($=escape(F)),s=s.split(F).join($)}}var H=s.indexOf("#");-1!==H&&(this.hash=s.substr(H),s=s.slice(0,H));var W=s.indexOf("?");if(-1!==W?(this.search=s.substr(W),this.query=s.substr(W+1),t&&(this.query=O.parse(this.query)),s=s.slice(0,W)):t&&(this.search="",this.query={}),s&&(this.pathname=s),k[d]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var z=this.pathname||"",Y=this.search||"";this.path=z+Y}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.isObject(this.query)&&Object.keys(this.query).length&&(o=O.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||k[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(l.isString(e)){var t=new n;t.parse(e,!1,!0),e=t}for(var r=new n,i=Object.keys(this),o=0;o0?r.host.split("@"):!1;C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return r.search=e.search,r.query=e.query,l.isNull(r.pathname)&&l.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=_.slice(-1)[0],E=(r.host||e.host||_.length>1)&&("."===S||".."===S)||""===S,A=0,R=_.length;R>=0;R--)S=_[R],"."===S?_.splice(R,1):".."===S?(_.splice(R,1),A++):A&&(_.splice(R,1),A--);if(!y&&!w)for(;A--;A)_.unshift("..");!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push("");var M=""===_[0]||_[0]&&"/"===_[0].charAt(0);if(O){r.hostname=r.host=M?"":_.length?_.shift():"";var C=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return y=y||r.host&&_.length,y&&!M&&_.unshift(""),_.length?r.pathname=_.join("/"):(r.pathname=null,r.path=null),l.isNull(r.pathname)&&l.isNull(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=f.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":111,punycode:78,querystring:81}],111:[function(e,t,r){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],112:[function(e,t,r){(function(e){function r(e,t){function r(){if(!i){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}if(n("noDeprecation"))return e;var i=!1;return r}function n(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null==n?!1:"true"===String(n).toLowerCase()}t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],113:[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}},{}],114:[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),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(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)),C(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(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(O(t))return e.stylize(Date.prototype.toString.call(t),"date");if(C(t))return c(t)}var v="",b=!1,w=["{","}"];if(d(t)&&(b=!0,w=["[","]"]),S(t)){var _=t.name?": "+t.name:"";v=" [Function"+_+"]"}if(x(t)&&(v=" "+RegExp.prototype.toString.call(t)),O(t)&&(v=" "+Date.prototype.toUTCString.call(t)),C(t)&&(v=" "+c(t)),0===a.length&&(!b||0==t.length))return w[0]+v+w[1];if(0>n)return x(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(_(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")),_(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 _(e){return void 0===e}function x(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 C(e){return k(e)&&("[object Error]"===A(e)||e instanceof Error)}function S(e){return"function"==typeof e}function E(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 R(e){return 10>e?"0"+e.toString(10):e.toString(10)}function M(){var e=new Date,t=[R(e.getHours()),R(e.getMinutes()),R(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(_(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,P={};r.debuglog=function(e){if(_(T)&&(T=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!P[e])if(new RegExp("\\b"+e+"\\b","i").test(T)){var n=t.pid;P[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else P[e]=function(){};return P[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=_,r.isRegExp=x,r.isObject=k,r.isDate=O,r.isError=C,r.isFunction=S,r.isPrimitive=E,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",M(),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":113,_process:77,inherits:71}],115:[function(e,t,r){function n(){for(var e={},t=0;t1)for(var t=1;to;o++)t.add(e[o],n);return t},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(e,n){var t=o.toSetString(e),r=this._set.hasOwnProperty(t),i=this._array.length;r&&!n||this._array.push(e),r||(this._set[t]=i)},r.prototype.has=function(e){var n=o.toSetString(e);return this._set.hasOwnProperty(n)},r.prototype.indexOf=function(e){var n=o.toSetString(e);if(this._set.hasOwnProperty(n))return this._set[n];throw new Error('"'+e+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&ee?(-e<<1)+1:(e<<1)+0}function o(e){var n=1===(1&e),t=e>>1;return n?-t:t}var i=e("./base64"),a=5,u=1<>>=a,o>0&&(n|=c),t+=i.encode(n);while(o>0);return t},t.decode=function(e,n,t){var r,u,l=e.length,f=0,p=0;do{if(n>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(u=i.decode(e.charCodeAt(n++)),-1===u)throw new Error("Invalid base64 digit: "+e.charAt(n-1));r=!!(u&c),u&=s,f+=u<=0&&e=n&&t>=e?e-n:e>=r&&o>=e?e-r+c:e>=i&&a>=e?e-i+l:e==u?62:e==s?63:-1}},{}],6:[function(e,n,t){function r(e,n,o,i,a,u){var s=Math.floor((n-e)/2)+e,c=a(o,i[s],!0);return 0===c?s:c>0?n-s>1?r(s,n,o,i,a,u):u==t.LEAST_UPPER_BOUND?n1?r(e,s,o,i,a,u):u==t.LEAST_UPPER_BOUND?s:0>e?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,o,i){if(0===n.length)return-1;var a=r(-1,n.length,e,n,o,i||t.GREATEST_LOWER_BOUND);if(0>a)return-1;for(;a-1>=0&&0===o(n[a],n[a-1],!0);)--a;return a}},{}],7:[function(e,n,t){function r(e,n){var t=e.generatedLine,r=n.generatedLine,o=e.generatedColumn,a=n.generatedColumn;return r>t||r==t&&a>=o||i.compareByGeneratedPositionsInflated(e,n)<=0}function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var i=e("./util");o.prototype.unsortedForEach=function(e,n){this._array.forEach(e,n)},o.prototype.add=function(e){r(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=o},{"./util":12}],8:[function(e,n,t){function r(e,n,t){var r=e[n];e[n]=e[t],e[t]=r}function o(e,n){return Math.round(e+Math.random()*(n-e))}function i(e,n,t,a){if(a>t){var u=o(t,a),s=t-1;r(e,u,a);for(var c=e[a],l=t;a>l;l++)n(e[l],c)<=0&&(s+=1,r(e,s,l));r(e,s+1,l);var f=s+1;i(e,n,t,f-1),i(e,n,f+1,a)}}t.quickSort=function(e,n){i(e,n,0,e.length-1)}},{}],9:[function(e,n,t){function r(e){var n=e;return"string"==typeof e&&(n=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=n.sections?new a(n):new o(n)}function o(e){var n=e;"string"==typeof e&&(n=JSON.parse(e.replace(/^\)\]\}'/,"")));var t=u.getArg(n,"version"),r=u.getArg(n,"sources"),o=u.getArg(n,"names",[]),i=u.getArg(n,"sourceRoot",null),a=u.getArg(n,"sourcesContent",null),s=u.getArg(n,"mappings"),l=u.getArg(n,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);r=r.map(u.normalize).map(function(e){return i&&u.isAbsolute(i)&&u.isAbsolute(e)?u.relative(i,e):e}),this._names=c.fromArray(o,!0),this._sources=c.fromArray(r,!0),this.sourceRoot=i,this.sourcesContent=a,this._mappings=s,this.file=l}function i(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function a(e){var n=e;"string"==typeof e&&(n=JSON.parse(e.replace(/^\)\]\}'/,"")));var t=u.getArg(n,"version"),o=u.getArg(n,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new c,this._names=new c;var i={line:-1,column:0};this._sections=o.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=u.getArg(e,"offset"),t=u.getArg(n,"line"),o=u.getArg(n,"column");if(t=0){var i=this._originalMappings[o];if(void 0===e.column)for(var a=i.originalLine;i&&i.originalLine===a;)r.push({line:u.getArg(i,"generatedLine",null),column:u.getArg(i,"generatedColumn",null),lastColumn:u.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o];else for(var c=i.originalColumn;i&&i.originalLine===n&&i.originalColumn==c;)r.push({line:u.getArg(i,"generatedLine",null),column:u.getArg(i,"generatedColumn",null),lastColumn:u.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o]}return r},t.SourceMapConsumer=r,o.prototype=Object.create(r.prototype),o.prototype.consumer=r,o.fromSourceMap=function(e){var n=Object.create(o.prototype),t=n._names=c.fromArray(e._names.toArray(),!0),r=n._sources=c.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file;for(var a=e._mappings.toArray().slice(),s=n.__generatedMappings=[],l=n.__originalMappings=[],p=0,d=a.length;d>p;p++){var h=a[p],g=new i;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=r.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=t.indexOf(h.name)),l.push(g)),s.push(g)}return f(n.__originalMappings,u.compareByOriginalPositions),n},o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?u.join(this.sourceRoot,e):e},this)}}),o.prototype._parseMappings=function(e,n){for(var t,r,o,a,s,c=1,p=0,d=0,h=0,g=0,m=0,_=e.length,v=0,y={},b={},A=[],w=[];_>v;)if(";"===e.charAt(v))c++,v++,p=0;else if(","===e.charAt(v))v++;else{for(t=new i,t.generatedLine=c,a=v;_>a&&!this._charIsMappingSeparator(e,a);a++);if(r=e.slice(v,a),o=y[r])v+=r.length;else{for(o=[];a>v;)l.decode(e,v,b),s=b.value,v=b.rest,o.push(s);if(2===o.length)throw new Error("Found a source, but no line and column");if(3===o.length)throw new Error("Found a source and line, but no column");y[r]=o}t.generatedColumn=p+o[0],p=t.generatedColumn,o.length>1&&(t.source=g+o[1],g+=o[1],t.originalLine=d+o[2],d=t.originalLine,t.originalLine+=1,t.originalColumn=h+o[3],h=t.originalColumn,o.length>4&&(t.name=m+o[4],m+=o[4])),w.push(t),"number"==typeof t.originalLine&&A.push(t)}f(w,u.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,f(A,u.compareByOriginalPositions),this.__originalMappings=A},o.prototype._findMapping=function(e,n,t,r,o,i){if(e[t]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[t]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return s.search(e,n,o,i)},o.prototype.computeColumnSpans=function(){for(var e=0;e=0){var o=this._generatedMappings[t];if(o.generatedLine===n.generatedLine){var i=u.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=u.join(this.sourceRoot,i)));var a=u.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:u.getArg(o,"originalLine",null),column:u.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}):!1},o.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=u.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var t;if(null!=this.sourceRoot&&(t=u.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==t.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!t.path||"/"==t.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')},o.prototype.generatedPositionFor=function(e){var n=u.getArg(e,"source");if(null!=this.sourceRoot&&(n=u.relative(this.sourceRoot,n)),!this._sources.has(n))return{line:null,column:null,lastColumn:null};n=this._sources.indexOf(n);var t={source:n,originalLine:u.getArg(e,"line"),originalColumn:u.getArg(e,"column")},o=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",u.compareByOriginalPositions,u.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===t.source)return{line:u.getArg(i,"generatedLine",null),column:u.getArg(i,"generatedColumn",null),lastColumn:u.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=o,a.prototype=Object.create(r.prototype),a.prototype.constructor=r,a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){for(var e=[],n=0;n0&&e.column>=0)||n||t||r)&&!(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))},r.prototype._serializeMappings=function(){for(var e,n,t,r=0,a=1,u=0,s=0,c=0,l=0,f="",p=this._mappings.toArray(),d=0,h=p.length;h>d;d++){if(e=p[d],e.generatedLine!==a)for(r=0;e.generatedLine!==a;)f+=";",a++;else if(d>0){if(!i.compareByGeneratedPositionsInflated(e,p[d-1]))continue;f+=","}f+=o.encode(e.generatedColumn-r),r=e.generatedColumn,null!=e.source&&(t=this._sources.indexOf(e.source),f+=o.encode(t-l),l=t,f+=o.encode(e.originalLine-1-s),s=e.originalLine-1,f+=o.encode(e.originalColumn-u),u=e.originalColumn,null!=e.name&&(n=this._names.indexOf(e.name),f+=o.encode(n-c),c=n))}return f},r.prototype._generateSourcesContent=function(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=i.relative(n,e));var t=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)},r.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},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=r},{"./array-set":3,"./base64-vlq":4,"./mapping-list":7,"./util":12}],11:[function(e,n,t){function r(e,n,t,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==n?null:n,this.source=null==t?null:t,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}var o=e("./source-map-generator").SourceMapGenerator,i=e("./util"),a=/(\r?\n)/,u=10,s="$$$isSourceNode$$$";r.fromStringWithSourceMap=function(e,n,t){function o(e,n){if(null===e||void 0===e.source)u.add(n);else{var o=t?i.join(t,e.source):e.source;u.add(new r(e.originalLine,e.originalColumn,o,n,e.name))}}var u=new r,s=e.split(a),c=function(){var e=s.shift(),n=s.shift()||"";return e+n},l=1,f=0,p=null;return n.eachMapping(function(e){if(null!==p){if(!(l0&&(p&&o(p,c()),u.add(s.join(""))),n.sources.forEach(function(e){var r=n.sourceContentFor(e);null!=r&&(null!=t&&(e=i.join(t,e)),u.setSourceContent(e,r))}),u},r.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[s]&&"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},r.prototype.prepend=function(e){if(Array.isArray(e))for(var n=e.length-1;n>=0;n--)this.prepend(e[n]);else{if(!e[s]&&"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},r.prototype.walk=function(e){for(var n,t=0,r=this.children.length;r>t;t++)n=this.children[t],n[s]?n.walk(e):""!==n&&e(n,{source:this.source,line:this.line,column:this.column,name:this.name})},r.prototype.join=function(e){var n,t,r=this.children.length;if(r>0){for(n=[],t=0;r-1>t;t++)n.push(this.children[t]),n.push(e);n.push(this.children[t]),this.children=n}return this},r.prototype.replaceRight=function(e,n){var t=this.children[this.children.length-1];return t[s]?t.replaceRight(e,n):"string"==typeof t?this.children[this.children.length-1]=t.replace(e,n):this.children.push("".replace(e,n)),this},r.prototype.setSourceContent=function(e,n){this.sourceContents[i.toSetString(e)]=n},r.prototype.walkSourceContents=function(e){for(var n=0,t=this.children.length;t>n;n++)this.children[n][s]&&this.children[n].walkSourceContents(e);for(var r=Object.keys(this.sourceContents),n=0,t=r.length;t>n;n++)e(i.fromSetString(r[n]),this.sourceContents[r[n]])},r.prototype.toString=function(){var e="";return this.walk(function(n){e+=n}),e},r.prototype.toStringWithSourceMap=function(e){var n={code:"",line:1,column:0},t=new o(e),r=!1,i=null,a=null,s=null,c=null;return this.walk(function(e,o){n.code+=e,null!==o.source&&null!==o.line&&null!==o.column?(i===o.source&&a===o.line&&s===o.column&&c===o.name||t.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:n.line,column:n.column},name:o.name}),i=o.source,a=o.line,s=o.column,c=o.name,r=!0):r&&(t.addMapping({generated:{line:n.line,column:n.column}}),i=null,r=!1);for(var l=0,f=e.length;f>l;l++)e.charCodeAt(l)===u?(n.line++,n.column=0,l+1===f?(i=null,r=!1):r&&t.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:n.line,column:n.column},name:o.name})):n.column++}),this.walkSourceContents(function(e,n){t.setSourceContent(e,n)}),{code:n.code,map:t}},t.SourceNode=r},{"./source-map-generator":10,"./util":12}],12:[function(e,n,t){function r(e,n,t){if(n in e)return e[n];if(3===arguments.length)return t;throw new Error('"'+n+'" is a required argument.')}function o(e){var n=e.match(g);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function i(e){var n="";return e.scheme&&(n+=e.scheme+":"),n+="//",e.auth&&(n+=e.auth+"@"),e.host&&(n+=e.host),e.port&&(n+=":"+e.port),e.path&&(n+=e.path),n}function a(e){var n=e,r=o(e);if(r){if(!r.path)return e;n=r.path}for(var a,u=t.isAbsolute(n),s=n.split(/\/+/),c=0,l=s.length-1;l>=0;l--)a=s[l],"."===a?s.splice(l,1):".."===a?c++:c>0&&(""===a?(s.splice(l+1,c),c=0):(s.splice(l,2),c--));return n=s.join("/"),""===n&&(n=u?"/":"."),r?(r.path=n,i(r)):n}function u(e,n){""===e&&(e="."),""===n&&(n=".");var t=o(n),r=o(e);if(r&&(e=r.path||"/"),t&&!t.scheme)return r&&(t.scheme=r.scheme),i(t);if(t||n.match(m))return n;if(r&&!r.host&&!r.path)return r.host=n,i(r);var u="/"===n.charAt(0)?n:a(e.replace(/\/+$/,"")+"/"+n);return r?(r.path=u,i(r)):u}function s(e,n){""===e&&(e="."),e=e.replace(/\/$/,"");for(var t=0;0!==n.indexOf(e+"/");){var r=e.lastIndexOf("/");if(0>r)return n;if(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/))return n;++t}return Array(t+1).join("../")+n.substr(e.length+1)}function c(e){return"$"+e}function l(e){return e.substr(1)}function f(e,n,t){var r=e.source-n.source;return 0!==r?r:(r=e.originalLine-n.originalLine,0!==r?r:(r=e.originalColumn-n.originalColumn,0!==r||t?r:(r=e.generatedColumn-n.generatedColumn,0!==r?r:(r=e.generatedLine-n.generatedLine,0!==r?r:e.name-n.name))))}function p(e,n,t){var r=e.generatedLine-n.generatedLine;return 0!==r?r:(r=e.generatedColumn-n.generatedColumn,0!==r||t?r:(r=e.source-n.source,0!==r?r:(r=e.originalLine-n.originalLine,0!==r?r:(r=e.originalColumn-n.originalColumn,0!==r?r:e.name-n.name))))}function d(e,n){return e===n?0:e>n?1:-1}function h(e,n){var t=e.generatedLine-n.generatedLine;return 0!==t?t:(t=e.generatedColumn-n.generatedColumn,0!==t?t:(t=d(e.source,n.source),0!==t?t:(t=e.originalLine-n.originalLine,0!==t?t:(t=e.originalColumn-n.originalColumn,0!==t?t:d(e.name,n.name)))))}t.getArg=r;var g=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,m=/^data:.+\,.+$/;t.urlParse=o,t.urlGenerate=i,t.normalize=a,t.join=u,t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(g)},t.relative=s,t.toSetString=c,t.fromSetString=l,t.compareByOriginalPositions=f,t.compareByGeneratedPositionsDeflated=p,t.compareByGeneratedPositionsInflated=h},{}],13:[function(e,n,t){t.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator,t.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer,t.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":9,"./lib/source-map-generator":10,"./lib/source-node":11}],14:[function(e,n,t){function r(e){for(var n=Object.create(null),t=0;t=0;)if(n[t]==e)return!0;return!1}function u(e,n){for(var t=0,r=n.length;r>t;++t)if(e(n[t]))return n[t]}function s(e,n){if(0>=n)return"";if(1==n)return e;var t=s(e,n>>1);return t+=t,1&n&&(t+=e),t}function c(e,n){Error.call(this,e),this.msg=e,this.defs=n}function l(e,n,t){e===!0&&(e={});var r=e||{};if(t)for(var o in r)r.hasOwnProperty(o)&&!n.hasOwnProperty(o)&&c.croak("`"+o+"` is not a supported option",n);for(var o in n)n.hasOwnProperty(o)&&(r[o]=e&&e.hasOwnProperty(o)?e[o]:n[o]);return r}function f(e,n){var t=0;for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r],t++);return t}function p(){}function d(e,n){e.indexOf(n)<0&&e.push(n)}function h(e,n){return e.replace(/\{(.+?)\}/g,function(e,t){return n[t]})}function g(e,n){for(var t=e.length;--t>=0;)e[t]===n&&e.splice(t,1)}function m(e,n){function t(e,t){for(var r=[],o=0,i=0,a=0;o=0})}function y(e){function n(e){if(1==e.length)return t+="return str === "+JSON.stringify(e[0])+";";t+="switch(str){";for(var n=0;n3){r.sort(function(e,n){return n.length-e.length}),t+="switch(str.length){";for(var o=0;o=0;)if(!n(e[t]))return!1;return!0}function A(){this._values=Object.create(null),this._size=0}function w(e,n,r,o){arguments.length<4&&(o=Q),n=n?n.split(/\s+/):[];var i=n;o&&o.PROPS&&(n=n.concat(o.PROPS));for(var a="return function AST_"+e+"(props){ if (props) { ",u=n.length;--u>=0;)a+="this."+n[u]+" = props."+n[u]+";";var s=o&&new o;(s&&s.initialize||r&&r.initialize)&&(a+="this.initialize();"),a+="}}";var c=new Function(a)();if(s&&(c.prototype=s,c.BASE=o),o&&o.SUBCLASSES.push(c),c.prototype.CTOR=c,c.PROPS=n||null,c.SELF_PROPS=i,c.SUBCLASSES=[],e&&(c.prototype.TYPE=c.TYPE=e),r)for(u in r)r.hasOwnProperty(u)&&(/^\$/.test(u)?c[u.substr(1)]=r[u]:c.prototype[u]=r[u]);return c.DEFMETHOD=function(e,n){this.prototype[e]=n},t["AST_"+e]=c,c}function E(e,n){e.body instanceof ee?e.body._walk(n):e.body.forEach(function(e){e._walk(n)})}function C(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}function S(e){return e>=97&&122>=e||e>=65&&90>=e||e>=170&&In.letter.test(String.fromCharCode(e))}function D(e){return e>=48&&57>=e}function F(e){return D(e)||S(e)}function x(e){return In.digit.test(String.fromCharCode(e))}function k(e){return In.non_spacing_mark.test(e)||In.space_combining_mark.test(e)}function B(e){return In.connector_punctuation.test(e)}function T(e){return!$n(e)&&/^[a-z_$][a-z0-9_$]*$/i.test(e)}function O(e){return 36==e||95==e||S(e)}function M(e){var n=e.charCodeAt(0);return O(n)||D(n)||8204==n||8205==n||k(e)||B(e)||x(n)}function $(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function R(e){if(Nn.test(e))return parseInt(e.substr(2),16);if(Pn.test(e))return parseInt(e.substr(1),8);var n=parseFloat(e);return n==e?n:void 0}function L(e,n,t,r,o){this.message=e,this.filename=n,this.line=t,this.col=r,this.pos=o,this.stack=(new Error).stack}function N(e,n,t,r,o){throw new L(e,n,t,r,o)}function P(e,n,t){return e.type==n&&(null==t||e.value==t)}function q(e,n,t,r){function o(){return S.text.charAt(S.pos)}function i(e,n){var t=S.text.charAt(S.pos++);if(e&&!t)throw Gn;return"\r\n\u2028\u2029".indexOf(t)>=0?(S.newline_before=S.newline_before||!n,++S.line,S.col=0,n||"\r"!=t||"\n"!=o()||(++S.pos,t="\n")):++S.col,t}function a(e){for(;e-- >0;)i()}function u(e){return S.text.substr(S.pos,e.length)==e}function s(e,n){var t=S.text.indexOf(e,S.pos);if(n&&-1==t)throw Gn;return t}function c(){S.tokline=S.line,S.tokcol=S.col,S.tokpos=S.pos}function l(t,r,o){S.regex_allowed="operator"==t&&!Wn(r)||"keyword"==t&&Rn(r)||"punc"==t&&zn(r),x="punc"==t&&"."==r;var i={type:t,value:r,line:S.tokline,col:S.tokcol,pos:S.tokpos,endline:S.line, +endcol:S.col,endpos:S.pos,nlb:S.newline_before,file:n};if(/^(?:num|string|regexp)$/i.test(t)&&(i.raw=e.substring(i.pos,i.endpos)),!o){i.comments_before=S.comments_before,S.comments_before=[];for(var a=0,u=i.comments_before.length;u>a;a++)i.nlb=i.nlb||i.comments_before[a].nlb}return S.newline_before=!1,new Z(i)}function f(){for(var e;jn(e=o())||"\u2028"==e||"\u2029"==e;)i()}function p(e){for(var n,t="",r=0;(n=o())&&e(n,r++);)t+=i();return t}function d(e){N(e,n,S.tokline,S.tokcol,S.tokpos)}function h(e){var n=!1,t=!1,r=!1,o="."==e,i=p(function(i,a){var u=i.charCodeAt(0);switch(u){case 120:case 88:return r?!1:r=!0;case 101:case 69:return r?!0:n?!1:n=t=!0;case 45:return t||0==a&&!e;case 43:return t;case t=!1,46:return o||r||n?!1:o=!0}return F(u)});e&&(i=e+i);var a=R(i);return isNaN(a)?void d("Invalid syntax: "+i):l("num",a)}function g(e){var n=i(!0,e);switch(n.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return" ";case 98:return"\b";case 118:return"\x0B";case 102:return"\f";case 48:return"\x00";case 120:return String.fromCharCode(m(2));case 117:return String.fromCharCode(m(4));case 10:return"";case 13:if("\n"==o())return i(!0,e),""}return n}function m(e){for(var n=0;e>0;--e){var t=parseInt(i(!0),16);isNaN(t)&&d("Invalid hex-character pattern in string"),n=n<<4|t}return n}function _(e){var n,t=S.regex_allowed,r=s("\n");return-1==r?(n=S.text.substr(S.pos),S.pos=S.text.length):(n=S.text.substring(S.pos,r),S.pos=r),S.col=S.tokcol+(S.pos-S.tokpos),S.comments_before.push(l(e,n,!0)),S.regex_allowed=t,C()}function v(){for(var e,n,t=!1,r="",a=!1;null!=(e=o());)if(t)"u"!=e&&d("Expecting UnicodeEscapeSequence -- uXXXX"),e=g(),M(e)||d("Unicode char: "+e.charCodeAt(0)+" is not valid in identifier"),r+=e,t=!1;else if("\\"==e)a=t=!0,i();else{if(!M(e))break;r+=i()}return On(r)&&a&&(n=r.charCodeAt(0).toString(16).toUpperCase(),r="\\u"+"0000".substr(n.length)+n+r.slice(1)),r}function y(e){function n(e){if(!o())return e;var t=e+o();return qn(t)?(i(),n(t)):e}return l("operator",n(e||i()))}function b(){switch(i(),o()){case"/":return i(),_("comment1");case"*":return i(),B()}return S.regex_allowed?T(""):y("/")}function A(){return i(),D(o().charCodeAt(0))?h("."):l("punc",".")}function w(){var e=v();return x?l("name",e):Mn(e)?l("atom",e):On(e)?qn(e)?l("operator",e):l("keyword",e):l("name",e)}function E(e,n){return function(t){try{return n(t)}catch(r){if(r!==Gn)throw r;d(e)}}}function C(e){if(null!=e)return T(e);if(f(),c(),t){if(u("")&&S.newline_before)return a(3),_("comment4")}var n=o();if(!n)return l("eof");var s=n.charCodeAt(0);switch(s){case 34:case 39:return k(n);case 46:return A();case 47:return b()}return D(s)?h():Hn(n)?l("punc",i()):Ln(n)?y():92==s||O(s)?w():r&&0==S.pos&&u("#!")?(a(2),_("comment5")):void d("Unexpected character '"+n+"'")}var S={text:e,filename:n,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,comments_before:[]},x=!1,k=E("Unterminated string constant",function(e){for(var n=i(),t="";;){var r=i(!0,!0);if("\\"==r){var o=0,a=null;r=p(function(e){if(e>="0"&&"7">=e){if(!a)return a=e,++o;if("3">=a&&2>=o)return++o;if(a>="4"&&1>=o)return++o}return!1}),r=o>0?String.fromCharCode(parseInt(r,8)):g(!0)}else if("\r\n\u2028\u2029".indexOf(r)>=0)d("Unterminated string constant");else if(r==n)break;t+=r}var u=l("string",t);return u.quote=e,u}),B=E("Unterminated multiline comment",function(){var e=S.regex_allowed,n=s("*/",!0),t=S.text.substring(S.pos,n),r=t.split("\n"),o=r.length;S.pos=n+2,S.line+=o-1,o>1?S.col=r[o-1].length:S.col+=r[o-1].length,S.col+=2;var i=S.newline_before=S.newline_before||t.indexOf("\n")>=0;return S.comments_before.push(l("comment2",t,!0)),S.regex_allowed=e,S.newline_before=i,C()}),T=E("Unterminated regular expression",function(e){for(var n,t=!1,r=!1;n=i(!0);)if(t)e+="\\"+n,t=!1;else if("["==n)r=!0,e+=n;else if("]"==n&&r)r=!1,e+=n;else{if("/"==n&&!r)break;"\\"==n?t=!0:e+=n}var o=v();try{return l("regexp",new RegExp(e,o))}catch(a){d(a.message)}});return C.context=function(e){return e&&(S=e),S},C}function j(e,n){function t(e,n){return P(I.token,e,n)}function r(){return I.peeked||(I.peeked=I.input())}function o(){return I.prev=I.token,I.peeked?(I.token=I.peeked,I.peeked=null):I.token=I.input(),I.in_directives=I.in_directives&&("string"==I.token.type||t("punc",";")),I.token}function i(){return I.prev}function a(e,n,t,r){var o=I.input.context();N(e,o.filename,null!=n?n:o.tokline,null!=t?t:o.tokcol,null!=r?r:o.tokpos)}function s(e,n){a(n,e.line,e.col)}function c(e){null==e&&(e=I.token),s(e,"Unexpected token: "+e.type+" ("+e.value+")")}function f(e,n){return t(e,n)?o():void s(I.token,"Unexpected token "+I.token.type+" «"+I.token.value+"», expected "+e+" «"+n+"»")}function p(e){return f("punc",e)}function d(){return!n.strict&&(I.token.nlb||t("eof")||t("punc","}"))}function h(e){t("punc",";")?o():e||d()||c()}function g(){p("(");var e=me(!0);return p(")"),e}function m(e){return function(){var n=I.token,t=e(),r=i();return t.start=n,t.end=r,t}}function _(){(t("operator","/")||t("operator","/="))&&(I.peeked=null,I.token=I.input(I.token.value.substr(1)))}function v(){var e=R(gn);u(function(n){return n.name==e.name},I.labels)&&a("Label "+e.name+" defined twice"),p(":"),I.labels.push(e);var n=G();return I.labels.pop(),n instanceof ce||e.references.forEach(function(n){n instanceof xe&&(n=n.label.start,a("Continue label `"+e.name+"` refers to non-IterationStatement.",n.line,n.col,n.pos))}),new se({body:n,label:e})}function y(e){return new re({body:(e=me(!0),h(),e)})}function b(e){var n,t=null;d()||(t=R(_n,!0)),null!=t?(n=u(function(e){return e.name==t.name},I.labels),n||a("Undefined label "+t.name),t.thedef=n):0==I.in_loop&&a(e.TYPE+" not inside a loop or switch"),h();var r=new e({label:t});return n&&n.references.push(r),r}function A(){p("(");var e=null;return!t("punc",";")&&(e=t("keyword","var")?(o(),W(!0)):me(!0,!0),t("operator","in"))?(e instanceof Pe&&e.definitions.length>1&&a("Only one variable declaration allowed in for..in loop"),o(),E(e)):w(e)}function w(e){p(";");var n=t("punc",";")?null:me(!0);p(";");var r=t("punc",")")?null:me(!0);return p(")"),new de({init:e,condition:n,step:r,body:U(G)})}function E(e){var n=e instanceof Pe?e.definitions[0].name:null,t=me(!0);return p(")"),new he({init:e,name:n,object:t,body:U(G)})}function C(){var e=g(),n=G(),r=null;return t("keyword","else")&&(o(),r=G()),new ke({condition:e,body:n,alternative:r})}function S(){p("{");for(var e=[];!t("punc","}");)t("eof")&&c(),e.push(G());return o(),e}function D(){p("{");for(var e,n=[],r=null,a=null;!t("punc","}");)t("eof")&&c(),t("keyword","case")?(a&&(a.end=i()),r=[],a=new Me({start:(e=I.token,o(),e),expression:me(!0),body:r}),n.push(a),p(":")):t("keyword","default")?(a&&(a.end=i()),r=[],a=new Oe({start:(e=I.token,o(),p(":"),e),body:r}),n.push(a)):(r||c(),r.push(G()));return a&&(a.end=i()),o(),n}function F(){var e=S(),n=null,r=null;if(t("keyword","catch")){var u=I.token;o(),p("(");var s=R(hn);p(")"),n=new Re({start:u,argname:s,body:S(),end:i()})}if(t("keyword","finally")){var u=I.token;o(),r=new Le({start:u,body:S(),end:i()})}return n||r||a("Missing catch/finally blocks"),new $e({body:e,bcatch:n,bfinally:r})}function x(e,n){for(var r=[];r.push(new je({start:I.token,name:R(n?ln:cn),value:t("operator","=")?(o(),me(!1,e)):null,end:i()})),t("punc",",");)o();return r}function k(){var e,n=I.token;switch(n.type){case"name":case"keyword":e=M(mn);break;case"num":e=new An({start:n,end:n,value:n.value});break;case"string":e=new bn({start:n,end:n,value:n.value,quote:n.quote});break;case"regexp":e=new wn({start:n,end:n,value:n.value});break;case"atom":switch(n.value){case"false":e=new Bn({start:n,end:n});break;case"true":e=new Tn({start:n,end:n});break;case"null":e=new Cn({start:n,end:n})}break;case"operator":if(!$(n.value))throw new L("Invalid getter/setter name: "+n.value,n.file,n.line,n.col,n.pos);e=M(mn)}return o(),e}function B(e,n,r){for(var i=!0,a=[];!t("punc",e)&&(i?i=!1:p(","),!n||!t("punc",e));)t("punc",",")&&r?a.push(new Fn({start:I.token,end:I.token})):a.push(me(!1));return o(),a}function T(){var e=I.token;switch(o(),e.type){case"num":case"string":case"name":case"operator":case"keyword":case"atom":return e.value;default:c()}}function O(){var e=I.token;switch(o(),e.type){case"name":case"operator":case"keyword":case"atom":return e.value;default:c()}}function M(e){var n=I.token.value;return new("this"==n?vn:e)({name:String(n),start:I.token,end:I.token})}function R(e,n){if(!t("name"))return n||a("Name expected"),null;var r=M(e);return o(),r}function j(e,n,t){return"++"!=n&&"--"!=n||H(t)||a("Invalid use of "+n+" operator"),new e({operator:n,expression:t})}function z(e){return oe(ee(!0),0,e)}function H(e){return n.strict?e instanceof vn?!1:e instanceof Ie||e instanceof an:!0}function U(e){++I.in_loop;var n=e();return--I.in_loop,n}n=l(n,{strict:!1,filename:null,toplevel:null,expression:!1,html5_comments:!0,bare_returns:!1,shebang:!0});var I={input:"string"==typeof e?q(e,n.filename,n.html5_comments,n.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_directives:!0,in_loop:0,labels:[]};I.token=o();var G=m(function(){var e;switch(_(),I.token.type){case"string":var u=I.in_directives,s=y();return u&&s.body instanceof bn&&!t("punc",",")?new te({start:s.body.start,end:s.body.end,quote:s.body.quote,value:s.body.value}):s;case"num":case"regexp":case"operator":case"atom":return y();case"name":return P(r(),"punc",":")?v():y();case"punc":switch(I.token.value){case"{":return new ie({start:I.token,body:S(),end:i()});case"[":case"(":return y();case";":return o(),new ae;default:c()}case"keyword":switch(e=I.token.value,o(),e){case"break":return b(Fe);case"continue":return b(xe);case"debugger":return h(),new ne;case"do":return new fe({body:U(G),condition:(f("keyword","while"),e=g(),h(!0),e)});case"while":return new pe({condition:g(),body:U(G)});case"for":return A();case"function":return V(Ae);case"if":return C();case"return":return 0!=I.in_function||n.bare_returns||a("'return' outside of function"),new Ce({value:t("punc",";")?(o(),null):d()?null:(e=me(!0),h(),e)});case"switch":return new Be({expression:g(),body:U(D)});case"throw":return I.token.nlb&&a("Illegal newline after 'throw'"),new Se({value:(e=me(!0),h(),e)});case"try":return F();case"var":return e=W(),h(),e;case"const":return e=J(),h(),e;case"with":return new ge({expression:g(),body:G()});default:c()}}}),V=function(e){var n=e===Ae,r=t("name")?R(n?pn:dn):null;return n&&!r&&c(),p("("),new e({name:r,argnames:function(e,n){for(;!t("punc",")");)e?e=!1:p(","),n.push(R(fn));return o(),n}(!0,[]),body:function(e,n){++I.in_function,I.in_directives=!0,I.in_loop=0,I.labels=[];var t=S();return--I.in_function,I.in_loop=e,I.labels=n,t}(I.in_loop,I.labels)})},W=function(e){return new Pe({start:i(),definitions:x(e,!1),end:i()})},J=function(){return new qe({start:i(),definitions:x(!1,!0),end:i()})},Y=function(e){var n=I.token;f("operator","new");var r,a=X(!1);return t("punc","(")?(o(),r=B(")")):r=[],Q(new He({start:n,expression:a,args:r,end:i()}),e)},X=function(e){if(t("operator","new"))return Y(e);var n=I.token;if(t("punc")){switch(n.value){case"(":o();var r=me(!0);return r.start=n,r.end=I.token,p(")"),Q(r,e);case"[":return Q(K(),e);case"{":return Q(Z(),e)}c()}if(t("keyword","function")){o();var a=V(be);return a.start=n,a.end=i(),Q(a,e)}return Kn[I.token.type]?Q(k(),e):void c()},K=m(function(){return p("["),new Qe({elements:B("]",!n.strict,!0)})}),Z=m(function(){p("{");for(var e=!0,r=[];!t("punc","}")&&(e?e=!1:p(","),n.strict||!t("punc","}"));){var a=I.token,u=a.type,s=T();if("name"==u&&!t("punc",":")){if("get"==s){r.push(new on({start:a,key:k(),value:V(ye),end:i()}));continue}if("set"==s){r.push(new rn({start:a,key:k(),value:V(ye),end:i()}));continue}}p(":"),r.push(new tn({start:a,quote:a.quote,key:s,value:me(!1),end:i()}))}return o(),new en({properties:r})}),Q=function(e,n){var r=e.start;if(t("punc","."))return o(),Q(new Ge({start:r,expression:e,property:O(),end:i()}),n);if(t("punc","[")){o();var a=me(!0);return p("]"),Q(new Ve({start:r,expression:e,property:a,end:i()}),n)}return n&&t("punc","(")?(o(),Q(new ze({start:r,expression:e,args:B(")"),end:i()}),!0)):e},ee=function(e){var n=I.token;if(t("operator")&&Vn(n.value)){o(),_();var r=j(Je,n.value,ee(e));return r.start=n,r.end=i(),r}for(var a=X(e);t("operator")&&Wn(I.token.value)&&!I.token.nlb;)a=j(Ye,I.token.value,a),a.start=n,a.end=I.token,o();return a},oe=function(e,n,r){var i=t("operator")?I.token.value:null;"in"==i&&r&&(i=null);var a=null!=i?Yn[i]:null;if(null!=a&&a>n){o();var u=oe(ee(!0),a,r);return oe(new Xe({start:e.start,left:e,operator:i,right:u,end:u.end}),n,r)}return e},ue=function(e){var n=I.token,r=z(e);if(t("operator","?")){o();var a=me(!1);return p(":"),new Ke({start:n,condition:r,consequent:a,alternative:me(!1,e),end:i()})}return r},le=function(e){var n=I.token,r=ue(e),u=I.token.value;if(t("operator")&&Jn(u)){if(H(r))return o(),new Ze({start:n,left:r,operator:u,right:le(e),end:i()});a("Invalid assignment")}return r},me=function(e,n){var i=I.token,a=le(n);return e&&t("punc",",")?(o(),new Ue({start:i,car:a,cdr:me(!0,n),end:r()})):a};return n.expression?me(!0):function(){for(var e=I.token,r=[];!t("eof");)r.push(G());var o=i(),a=n.toplevel;return a?(a.body=a.body.concat(r),a.end=o):a=new _e({start:e,body:r,end:o}),a}()}function z(e,n){C.call(this),this.before=e,this.after=n}function H(e,n,t){this.name=t.name,this.orig=[t],this.scope=e,this.references=[],this.global=!1,this.mangled_name=null,this.undeclared=!1,this.constant=!1,this.index=n}function U(e){function n(e,n){return e.replace(/[\u0080-\uffff]/g,function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t})}function t(t,r){function o(){return"'"+t.replace(/\x27/g,"\\'")+"'"}function i(){return'"'+t.replace(/\x22/g,'\\"')+'"'}var a=0,u=0;switch(t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(n){switch(n){case"\\":return"\\\\";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\x0B":return e.screw_ie8?"\\v":"\\x0B";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case'"':return++a,'"';case"'":return++u,"'";case"\x00":return"\\x00";case"\ufeff":return"\\ufeff"}return n}),e.ascii_only&&(t=n(t)),e.quote_style){case 1:return o();case 2:return i();case 3:return"'"==r?o():i();default:return a>u?o():i()}}function r(n,r){var o=t(n,r);return e.inline_script&&(o=o.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1"),o=o.replace(/\x3c!--/g,"\\x3c!--"),o=o.replace(/--\x3e/g,"--\\x3e")),o}function o(t){return t=t.toString(),e.ascii_only&&(t=n(t,!0)),t}function i(n){return s(" ",e.indent_start+A-n*e.indent_level)}function a(){return x.charAt(x.length-1)}function u(){e.max_line_len&&w>e.max_line_len&&c("\n")}function c(n){n=String(n);var t=n.charAt(0);if(F&&(F=!1,t&&!(";}".indexOf(t)<0)||/[;]$/.test(x)||(e.semicolons||k(t)?(S+=";",w++,C++):(S+="\n",C++,E++,w=0,/^\s+$/.test(n)&&(F=!0)),e.beautify||(D=!1))),!e.beautify&&e.preserve_line&&N[N.length-1])for(var r=N[N.length-1].start.line;r>E;)S+="\n",C++,E++,w=0,D=!1;if(D){var o=a();(M(o)&&(M(t)||"\\"==t)||/^[\+\-\/]$/.test(t)&&t==o)&&(S+=" ",w++,C++),D=!1}var i=n.split(/\r?\n/),u=i.length-1;E+=u,0==u?w+=i[u].length:w=i[u].length,C+=n.length,x=n,S+=n}function f(){F=!1,c(";")}function d(){return A+e.indent_level}function h(e){var n;return c("{"),$(),O(d(),function(){n=e()}),T(),c("}"),n}function g(e){c("(");var n=e();return c(")"),n}function m(e){c("[");var n=e();return c("]"),n}function _(){c(","),B()}function v(){c(":"),e.space_colon&&B()}function b(){return S}e=l(e,{indent_start:0,indent_level:4,quote_keys:!1,space_colon:!0,ascii_only:!1,unescape_regexps:!1,inline_script:!1,width:80,max_line_len:32e3,beautify:!1,source_map:null,bracketize:!1,semicolons:!0,comments:!1,shebang:!0,preserve_line:!1,screw_ie8:!1,preamble:null,quote_style:0},!0);var A=0,w=0,E=1,C=0,S="",D=!1,F=!1,x=null,k=y("( [ + * / - , ."),B=e.beautify?function(){c(" ")}:function(){D=!0},T=e.beautify?function(n){e.beautify&&c(i(n?.5:0))}:p,O=e.beautify?function(e,n){e===!0&&(e=d());var t=A;A=e;var r=n();return A=t,r}:function(e,n){return n()},$=e.beautify?function(){c("\n")}:u,R=e.beautify?function(){c(";")}:function(){F=!0},L=e.source_map?function(n,t){try{n&&e.source_map.add(n.file||"?",E,w,n.line,n.col,t||"name"!=n.type?t:n.value)}catch(r){Q.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:n.file,line:n.line,col:n.col,cline:E,ccol:w,name:t||""})}}:p;e.preamble&&c(e.preamble.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"));var N=[];return{get:b,toString:b,indent:T,indentation:function(){return A},current_width:function(){return w-A},should_break:function(){return e.width&&this.current_width()>=e.width},newline:$,print:c,space:B,comma:_,colon:v,last:function(){return x},semicolon:R,force_semicolon:f,to_ascii:n,print_name:function(e){c(o(e))},print_string:function(e,n){c(r(e,n))},next_indent:d,with_indent:O,with_block:h,with_parens:g,with_square:m,add_mapping:L,option:function(n){return e[n]},line:function(){return E},col:function(){return w},pos:function(){return C},push_node:function(e){N.push(e)},pop_node:function(){return N.pop()},stack:function(){return N},parent:function(e){return N[N.length-2-(e||0)]}}}function I(e,n){return this instanceof I?(z.call(this,this.before,this.after),void(this.options=l(e,{sequences:!n,properties:!n,dead_code:!n,drop_debugger:!n,unsafe:!1,unsafe_comps:!1,conditionals:!n,comparisons:!n,evaluate:!n,booleans:!n,loops:!n,unused:!n,hoist_funs:!n,keep_fargs:!0,keep_fnames:!1,hoist_vars:!1,if_return:!n,join_vars:!n,collapse_vars:!1,cascade:!n,side_effects:!n,pure_getters:!1,pure_funcs:null,negate_iife:!n,screw_ie8:!1,drop_console:!1,angular:!1,warnings:!0,global_defs:{}},!0))):new I(e,n)}function G(e){function n(n,o,i,a,u,s){if(r){var c=r.originalPositionFor({line:a,column:u});if(null===c.source)return;n=c.source,a=c.line,u=c.column,s=c.name||s}t.addMapping({generated:{line:o+e.dest_line_diff,column:i},original:{line:a+e.orig_line_diff,column:u},source:n,name:s})}e=l(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var t=new Y.SourceMapGenerator({file:e.file,sourceRoot:e.root}),r=e.orig&&new Y.SourceMapConsumer(e.orig);return{add:n,get:function(){return t},toString:function(){return JSON.stringify(t.toJSON())}}}function V(){function e(e){d(n,e)}var n=[];return[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(n){Object.getOwnPropertyNames(n).map(e),n.prototype&&Object.getOwnPropertyNames(n.prototype).map(e)}),n}function W(e,n){function t(e){return h.indexOf(e)>=0?!1:s.indexOf(e)>=0?!1:n.only_cache?c.props.has(e):!/^[0-9.]+$/.test(e)}function r(e){return f&&!f.test(e)?!1:s.indexOf(e)>=0?!1:c.props.has(e)||p.indexOf(e)>=0}function o(e){t(e)&&d(p,e),r(e)||d(h,e)}function i(e){if(!r(e))return e;var n=c.props.get(e);if(!n){do n=Zn(++c.cname);while(!t(n));c.props.set(e,n)}return n}function a(e){var n={};try{!function r(e){e.walk(new C(function(e){if(e instanceof Ue)return r(e.cdr),!0;if(e instanceof bn)return o(e.value),!0;if(e instanceof Ke)return r(e.consequent),r(e.alternative),!0;throw n}))}(e)}catch(t){if(t!==n)throw t}}function u(e){return e.transform(new z(function(e){return e instanceof Ue?e.cdr=u(e.cdr):e instanceof bn?e.value=i(e.value):e instanceof Ke&&(e.consequent=u(e.consequent),e.alternative=u(e.alternative)),e}))}n=l(n,{reserved:null,cache:null,only_cache:!1,regex:null});var s=n.reserved;null==s&&(s=V());var c=n.cache;null==c&&(c={cname:-1,props:new A});var f=n.regex,p=[],h=[];return e.walk(new C(function(e){e instanceof tn?o(e.key):e instanceof nn?o(e.key.name):e instanceof Ge?this.parent()instanceof Ze&&o(e.property):e instanceof Ve&&this.parent()instanceof Ze&&a(e.property)})),e.transform(new z(function(e){e instanceof tn?e.key=i(e.key):e instanceof nn?e.key.name=i(e.key.name):e instanceof Ge?e.property=i(e.property):e instanceof Ve&&(e.property=u(e.property))}))}var J=e("util"),Y=e("source-map"),X=t;c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.croak=function(e,n){throw new c(e,n)};var K=function(){function e(e,i,a){function u(){var u=i(e[s],s),f=u instanceof r;return f&&(u=u.v),u instanceof n?(u=u.v,u instanceof t?l.push.apply(l,a?u.v.slice().reverse():u.v):l.push(u)):u!==o&&(u instanceof t?c.push.apply(c,a?u.v.slice().reverse():u.v):c.push(u)),f}var s,c=[],l=[];if(e instanceof Array)if(a){for(s=e.length;--s>=0&&!u(););c.reverse(),l.reverse()}else for(s=0;s SymbolDef for all variables/functions defined in this scope",functions:"[Object/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"}},oe),_e=w("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_enclose:function(e){var n=this,t=[],r=[];e.forEach(function(e){var n=e.lastIndexOf(":");t.push(e.substr(0,n)),r.push(e.substr(n+1))});var o="(function("+r.join(",")+"){ '$ORIG'; })("+t.join(",")+")";return o=j(o),o=o.transform(new z(function(e){return e instanceof te&&"$ORIG"==e.value?K.splice(n.body):void 0}))},wrap_commonjs:function(e,n){var t=this,r=[];n&&(t.figure_out_scope(),t.walk(new C(function(e){e instanceof sn&&e.definition().global&&(u(function(n){return n.name==e.name},r)||r.push(e))})));var o="(function(exports, global){ '$ORIG'; '$EXPORTS'; global['"+e+"'] = exports; }({}, (function(){return this}())))";return o=j(o),o=o.transform(new z(function(e){if(e instanceof te)switch(e.value){case"$ORIG":return K.splice(t.body);case"$EXPORTS":var n=[];return r.forEach(function(e){n.push(new re({body:new Ze({left:new Ve({expression:new mn({name:"exports"}),property:new bn({value:e.name})}),operator:"=",right:new mn(e)})}))}),K.splice(n)}}))}},me),ve=w("Lambda","name argnames uses_arguments",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg*] array of function arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array"},_walk:function(e){return e._visit(this,function(){this.name&&this.name._walk(e),this.argnames.forEach(function(n){n._walk(e)}),E(this,e)})}},me),ye=w("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},ve),be=w("Function",null,{$documentation:"A function expression"},ve),Ae=w("Defun",null,{$documentation:"A function definition"},ve),we=w("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},ee),Ee=w("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})}},we),Ce=w("Return",null,{$documentation:"A `return` statement"},Ee),Se=w("Throw",null,{$documentation:"A `throw` statement"},Ee),De=w("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})}},we),Fe=w("Break",null,{$documentation:"A `break` statement"},De),xe=w("Continue",null,{$documentation:"A `continue` statement"},De),ke=w("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)})}},ue),Be=w("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),E(this,e)})}},oe),Te=w("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},oe),Oe=w("Default",null,{$documentation:"A `default` switch branch"},Te),Me=w("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),E(this,e)})}},Te),$e=w("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(e){return e._visit(this,function(){E(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)})}},oe),Re=w("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch] symbol for the exception"},_walk:function(e){return e._visit(this,function(){this.argname._walk(e),E(this,e)})}},oe),Le=w("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},oe),Ne=w("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,function(){this.definitions.forEach(function(n){n._walk(e)})})}},ee),Pe=w("Var",null,{$documentation:"A `var` statement"},Ne),qe=w("Const",null,{$documentation:"A `const` statement"},Ne),je=w("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_SymbolVar|AST_SymbolConst] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(e){return e._visit(this,function(){this.name._walk(e),this.value&&this.value._walk(e)})}}),ze=w("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.args.forEach(function(n){n._walk(e)})})}}),He=w("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},ze),Ue=w("Seq","car cdr",{$documentation:"A sequence expression (two comma-separated expressions)",$propdoc:{car:"[AST_Node] first element in sequence",cdr:"[AST_Node] second element in sequence"},$cons:function(e,n){ +var t=new Ue(e);return t.car=e,t.cdr=n,t},$from_array:function(e){if(0==e.length)return null;if(1==e.length)return e[0].clone();for(var n=null,t=e.length;--t>=0;)n=Ue.cons(e[t],n);for(var r=n;r;){if(r.cdr&&!r.cdr.cdr){r.cdr=r.cdr.car;break}r=r.cdr}return n},to_array:function(){for(var e=this,n=[];e;){if(n.push(e.car),e.cdr&&!(e.cdr instanceof Ue)){n.push(e.cdr);break}e=e.cdr}return n},add:function(e){for(var n=this;n;){if(!(n.cdr instanceof Ue)){var t=Ue.cons(n.cdr,e);return n.cdr=t}n=n.cdr}},_walk:function(e){return e._visit(this,function(){this.car._walk(e),this.cdr&&this.cdr._walk(e)})}}),Ie=w("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Ge=w("Dot",null,{$documentation:"A dotted property access expression",_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}},Ie),Ve=w("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.property._walk(e)})}},Ie),We=w("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}}),Je=w("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},We),Ye=w("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},We),Xe=w("Binary","left operator right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(e){return e._visit(this,function(){this.left._walk(e),this.right._walk(e)})}}),Ke=w("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)})}}),Ze=w("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},Xe),Qe=w("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,function(){this.elements.forEach(function(n){n._walk(e)})})}}),en=w("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(e){return e._visit(this,function(){this.properties.forEach(function(n){n._walk(e)})})}}),nn=w("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string] the property name converted to a string for ObjectKeyVal. For setters and getters this is an arbitrary AST_Node.",value:"[AST_Node] property value. For setters and getters this is an AST_Function."},_walk:function(e){return e._visit(this,function(){this.value._walk(e)})}}),tn=w("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},nn),rn=w("ObjectSetter",null,{$documentation:"An object setter property"},nn),on=w("ObjectGetter",null,{$documentation:"An object getter property"},nn),an=w("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),un=w("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},an),sn=w("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)",$propdoc:{init:"[AST_Node*/S] array of initializers for this declaration."}},an),cn=w("SymbolVar",null,{$documentation:"Symbol defining a variable"},sn),ln=w("SymbolConst",null,{$documentation:"A constant declaration"},sn),fn=w("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},cn),pn=w("SymbolDefun",null,{$documentation:"Symbol defining a function"},sn),dn=w("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},sn),hn=w("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},sn),gn=w("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},an),mn=w("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},an),_n=w("LabelRef",null,{$documentation:"Reference to a label symbol"},an),vn=w("This",null,{$documentation:"The `this` symbol"},an),yn=w("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),bn=w("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},yn),An=w("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},yn),wn=w("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},yn),En=w("Atom",null,{$documentation:"Base class for atoms"},yn),Cn=w("Null",null,{$documentation:"The `null` atom",value:null},En),Sn=w("NaN",null,{$documentation:"The impossible value",value:NaN},En),Dn=w("Undefined",null,{$documentation:"The `undefined` value",value:void 0},En),Fn=w("Hole",null,{$documentation:"A hole in an array",value:void 0},En),xn=w("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},En),kn=w("Boolean",null,{$documentation:"Base class for booleans"},En),Bn=w("False",null,{$documentation:"The `false` atom",value:!1},kn),Tn=w("True",null,{$documentation:"The `true` atom",value:!0},kn);C.prototype={_visit:function(e,n){this.push(e);var t=this.visit(e,n?function(){n.call(e)}:p);return!t&&n&&n.call(e),this.pop(e),t},parent:function(e){return this.stack[this.stack.length-2-(e||0)]},push:function(e){e instanceof ve?this.directives=Object.create(this.directives):e instanceof te&&(this.directives[e.value]=this.directives[e.value]?"up":!0),this.stack.push(e)},pop:function(e){this.stack.pop(),e instanceof ve&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(e){for(var n=this.stack,t=n.length;--t>=0;){var r=n[t];if(r instanceof e)return r}},has_directive:function(e){var n=this.directives[e];if(n)return n;var t=this.stack[this.stack.length-1];if(t instanceof me)for(var r=0;r0;){var r=e[--n];if(r instanceof ke&&r.condition===t||r instanceof Ke&&r.condition===t||r instanceof le&&r.condition===t||r instanceof de&&r.condition===t||r instanceof Je&&"!"==r.operator&&r.expression===t)return!0;if(!(r instanceof Xe)||"&&"!=r.operator&&"||"!=r.operator)return!1;t=r}},loopcontrol_target:function(e){var n=this.stack;if(e)for(var t=n.length;--t>=0;){var r=n[t];if(r instanceof se&&r.label.name==e.name)return r.body}else for(var t=n.length;--t>=0;){var r=n[t];if(r instanceof Be||r instanceof ce)return r}}};var On="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with",Mn="false null true",$n="abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized this throws transient volatile yield "+Mn+" "+On,Rn="return new delete throw else case";On=y(On),$n=y($n),Rn=y(Rn),Mn=y(Mn);var Ln=y(i("+-*&%=<>!?|~^")),Nn=/^0x[0-9a-f]+$/i,Pn=/^0[0-7]+$/,qn=y(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),jn=y(i("  \n\r \f\x0B​᠎              \ufeff")),zn=y(i("[{(,.;:")),Hn=y(i("[]{}(),;:")),Un=y(i("gmsiy")),In={letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),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]")};L.prototype.toString=function(){return this.message+" (line: "+this.line+", col: "+this.col+", pos: "+this.pos+")\n\n"+this.stack};var Gn={},Vn=y(["typeof","void","delete","--","++","!","~","-","+"]),Wn=y(["--","++"]),Jn=y(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),Yn=function(e,n){for(var t=0;t","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),Xn=r(["for","do","while","switch"]),Kn=r(["atom","num","string","regexp","name"]);z.prototype=new C,function(e){function n(n,t){n.DEFMETHOD("transform",function(n,r){var o,i;return n.push(this),n.before&&(o=n.before(this,t,r)),o===e&&(n.after?(n.stack[n.stack.length-1]=o=this,t(o,n),i=n.after(o,r),i!==e&&(o=i)):(o=this,t(o,n))),n.pop(this),o})}function t(e,n){return K(e,function(e){return e.transform(n,!0)})}n(Q,p),n(se,function(e,n){e.label=e.label.transform(n),e.body=e.body.transform(n)}),n(re,function(e,n){e.body=e.body.transform(n)}),n(oe,function(e,n){e.body=t(e.body,n)}),n(le,function(e,n){e.condition=e.condition.transform(n),e.body=e.body.transform(n)}),n(de,function(e,n){e.init&&(e.init=e.init.transform(n)),e.condition&&(e.condition=e.condition.transform(n)),e.step&&(e.step=e.step.transform(n)),e.body=e.body.transform(n)}),n(he,function(e,n){e.init=e.init.transform(n),e.object=e.object.transform(n),e.body=e.body.transform(n)}),n(ge,function(e,n){e.expression=e.expression.transform(n),e.body=e.body.transform(n)}),n(Ee,function(e,n){e.value&&(e.value=e.value.transform(n))}),n(De,function(e,n){e.label&&(e.label=e.label.transform(n))}),n(ke,function(e,n){e.condition=e.condition.transform(n),e.body=e.body.transform(n),e.alternative&&(e.alternative=e.alternative.transform(n))}),n(Be,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),n(Me,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),n($e,function(e,n){e.body=t(e.body,n),e.bcatch&&(e.bcatch=e.bcatch.transform(n)),e.bfinally&&(e.bfinally=e.bfinally.transform(n))}),n(Re,function(e,n){e.argname=e.argname.transform(n),e.body=t(e.body,n)}),n(Ne,function(e,n){e.definitions=t(e.definitions,n)}),n(je,function(e,n){e.name=e.name.transform(n),e.value&&(e.value=e.value.transform(n))}),n(ve,function(e,n){e.name&&(e.name=e.name.transform(n)),e.argnames=t(e.argnames,n),e.body=t(e.body,n)}),n(ze,function(e,n){e.expression=e.expression.transform(n),e.args=t(e.args,n)}),n(Ue,function(e,n){e.car=e.car.transform(n),e.cdr=e.cdr.transform(n)}),n(Ge,function(e,n){e.expression=e.expression.transform(n)}),n(Ve,function(e,n){e.expression=e.expression.transform(n),e.property=e.property.transform(n)}),n(We,function(e,n){e.expression=e.expression.transform(n)}),n(Xe,function(e,n){e.left=e.left.transform(n),e.right=e.right.transform(n)}),n(Ke,function(e,n){e.condition=e.condition.transform(n),e.consequent=e.consequent.transform(n),e.alternative=e.alternative.transform(n)}),n(Qe,function(e,n){e.elements=t(e.elements,n)}),n(en,function(e,n){e.properties=t(e.properties,n)}),n(nn,function(e,n){e.value=e.value.transform(n)})}(),H.prototype={unmangleable:function(e){return e||(e={}),this.global&&!e.toplevel||this.undeclared||!e.eval&&(this.scope.uses_eval||this.scope.uses_with)||e.keep_fnames&&(this.orig[0]instanceof dn||this.orig[0]instanceof pn)},mangle:function(e){var n=e.cache&&e.cache.props;if(this.global&&n&&n.has(this.name))this.mangled_name=n.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var t=this.scope;!e.screw_ie8&&this.orig[0]instanceof dn&&(t=t.parent_scope),this.mangled_name=t.next_mangled(e,this),this.global&&n&&n.set(this.name,this.mangled_name)}}},_e.DEFMETHOD("figure_out_scope",function(e){e=l(e,{screw_ie8:!1,cache:null});var n=this,t=n.parent_scope=null,r=new A,o=null,i=!1,a=0,u=new C(function(n,s){if(e.screw_ie8&&n instanceof Re){var c=t;return t=new me(n),t.init_scope_vars(a),t.parent_scope=c,s(),t=c,!0}if(n instanceof me){n.init_scope_vars(a);var c=n.parent_scope=t,l=o,f=r;return o=t=n,r=new A,++a,s(),--a,t=c,o=l,r=f,!0}if(n instanceof se){var p=n.label;if(r.has(p.name))throw new Error(h("Label {name} defined twice",p));return r.set(p.name,p),s(),r.del(p.name),!0}if(n instanceof ge)for(var d=t;d;d=d.parent_scope)d.uses_with=!0;else if(n instanceof an&&(n.scope=t),n instanceof gn&&(n.thedef=n,n.references=[]),n instanceof dn)o.def_function(n);else if(n instanceof pn)(n.scope=o.parent_scope).def_function(n);else if(n instanceof Pe)i=n.has_const_pragma();else if(n instanceof cn||n instanceof ln){var g=o.def_variable(n);g.constant=n instanceof ln||i,g.init=u.parent().value}else if(n instanceof hn)(e.screw_ie8?t:o).def_variable(n);else if(n instanceof _n){var m=r.get(n.name);if(!m)throw new Error(h("Undefined label {name} [{line},{col}]",{name:n.name,line:n.start.line,col:n.start.col}));n.thedef=m}});n.walk(u);var s=null,c=n.globals=new A,u=new C(function(e,t){if(e instanceof ve){var r=s;return s=e,t(),s=r,!0}if(e instanceof De&&e.label)return e.label.thedef.references.push(e),!0;if(e instanceof mn){var o=e.name;if("eval"==o&&u.parent()instanceof ze)for(var i=e.scope;i&&!i.uses_eval;i=i.parent_scope)i.uses_eval=!0;var a=e.scope.find_variable(o);if(a)e.thedef=a;else{var l;c.has(o)?l=c.get(o):(l=new H(n,c.size(),e),l.undeclared=!0,l.global=!0,c.set(o,l)),e.thedef=l,s&&"arguments"==o&&(s.uses_arguments=!0)}return e.reference(),!0}});n.walk(u),e.cache&&(this.cname=e.cache.cname)}),me.DEFMETHOD("init_scope_vars",function(e){this.variables=new A,this.functions=new A,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=null,this.enclosed=[],this.cname=-1,this.nesting=e}),ve.DEFMETHOD("init_scope_vars",function(){me.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1;var e=new je({name:"arguments",start:this.start,end:this.end}),n=new H(this,this.variables.size(),e);this.variables.set(e.name,n)}),mn.DEFMETHOD("reference",function(){var e=this.definition();e.references.push(this);for(var n=this.scope;n&&(d(n.enclosed,e),n!==e.scope);)n=n.parent_scope;this.frame=this.scope.nesting-e.scope.nesting}),me.DEFMETHOD("find_variable",function(e){return e instanceof an&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)}),me.DEFMETHOD("def_function",function(e){this.functions.set(e.name,this.def_variable(e))}),me.DEFMETHOD("def_variable",function(e){var n;return this.variables.has(e.name)?(n=this.variables.get(e.name),n.orig.push(e)):(n=new H(this,this.variables.size(),e),this.variables.set(e.name,n),n.global=!this.parent_scope),e.thedef=n}),me.DEFMETHOD("next_mangled",function(e){var n=this.enclosed;e:for(;;){var t=Zn(++this.cname);if(T(t)&&!(e.except.indexOf(t)>=0)){for(var r=n.length;--r>=0;){var o=n[r],i=o.mangled_name||o.unmangleable(e)&&o.name;if(t==i)continue e}return t}}}),be.DEFMETHOD("next_mangled",function(e,n){for(var t=n.orig[0]instanceof fn&&this.name&&this.name.definition();;){var r=ve.prototype.next_mangled.call(this,e,n);if(!t||t.mangled_name!=r)return r}}),me.DEFMETHOD("references",function(e){return e instanceof an&&(e=e.definition()),this.enclosed.indexOf(e)<0?null:e}),an.DEFMETHOD("unmangleable",function(e){return this.definition().unmangleable(e)}),un.DEFMETHOD("unmangleable",function(){return!0}),gn.DEFMETHOD("unmangleable",function(){return!1}),an.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),an.DEFMETHOD("undeclared",function(){return this.definition().undeclared}),_n.DEFMETHOD("undeclared",function(){return!1}),gn.DEFMETHOD("undeclared",function(){return!1}),an.DEFMETHOD("definition",function(){return this.thedef}),an.DEFMETHOD("global",function(){return this.definition().global}),Pe.DEFMETHOD("has_const_pragma",function(){var e=this.start&&this.start.comments_before,n=e&&e[e.length-1];return n&&/@const\b/.test(n.value)}),_e.DEFMETHOD("_default_mangler_options",function(e){return l(e,{except:[],eval:!1,sort:!1,toplevel:!1,screw_ie8:!1,keep_fnames:!1})}),_e.DEFMETHOD("mangle_names",function(e){e=this._default_mangler_options(e),e.except.push("arguments");var n=-1,t=[];e.cache&&this.globals.each(function(n){e.except.indexOf(n.name)<0&&t.push(n)});var r=new C(function(o,i){if(o instanceof se){var a=n;return i(),n=a,!0}if(o instanceof me){var u=(r.parent(),[]);return o.variables.each(function(n){e.except.indexOf(n.name)<0&&u.push(n)}),e.sort&&u.sort(function(e,n){return n.references.length-e.references.length}),void t.push.apply(t,u)}if(o instanceof gn){var s;do s=Zn(++n);while(!T(s));return o.mangled_name=s,!0}return e.screw_ie8&&o instanceof hn?void t.push(o.definition()):void 0});this.walk(r),t.forEach(function(n){n.mangle(e)}),e.cache&&(e.cache.cname=this.cname)}),_e.DEFMETHOD("compute_char_frequency",function(e){e=this._default_mangler_options(e);var n=new C(function(n){n instanceof yn?Zn.consider(n.print_to_string()):n instanceof Ce?Zn.consider("return"):n instanceof Se?Zn.consider("throw"):n instanceof xe?Zn.consider("continue"):n instanceof Fe?Zn.consider("break"):n instanceof ne?Zn.consider("debugger"):n instanceof te?Zn.consider(n.value):n instanceof pe?Zn.consider("while"):n instanceof fe?Zn.consider("do while"):n instanceof ke?(Zn.consider("if"),n.alternative&&Zn.consider("else")):n instanceof Pe?Zn.consider("var"):n instanceof qe?Zn.consider("const"):n instanceof ve?Zn.consider("function"):n instanceof de?Zn.consider("for"):n instanceof he?Zn.consider("for in"):n instanceof Be?Zn.consider("switch"):n instanceof Me?Zn.consider("case"):n instanceof Oe?Zn.consider("default"):n instanceof ge?Zn.consider("with"):n instanceof rn?Zn.consider("set"+n.key):n instanceof on?Zn.consider("get"+n.key):n instanceof tn?Zn.consider(n.key):n instanceof He?Zn.consider("new"):n instanceof vn?Zn.consider("this"):n instanceof $e?Zn.consider("try"):n instanceof Re?Zn.consider("catch"):n instanceof Le?Zn.consider("finally"):n instanceof an&&n.unmangleable(e)?Zn.consider(n.name):n instanceof We||n instanceof Xe?Zn.consider(n.operator):n instanceof Ge&&Zn.consider(n.property)});this.walk(n),Zn.sort()});var Zn=function(){function e(){r=Object.create(null),t=o.split("").map(function(e){return e.charCodeAt(0)}),t.forEach(function(e){r[e]=0})}function n(e){var n="",r=54;e++;do e--,n+=String.fromCharCode(t[e%r]),e=Math.floor(e/r),r=64;while(e>0);return n}var t,r,o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return n.consider=function(e){for(var n=e.length;--n>=0;){var t=e.charCodeAt(n);t in r&&++r[t]}},n.sort=function(){t=m(t,function(e,n){return D(e)&&!D(n)?1:D(n)&&!D(e)?-1:r[n]-r[e]})},n.reset=e,e(),n.get=function(){return t},n.freq=function(){return r},n}();_e.DEFMETHOD("scope_warnings",function(e){e=l(e,{undeclared:!1,unreferenced:!0,assign_to_global:!0,func_arguments:!0,nested_defuns:!0,eval:!0});var n=new C(function(t){if(e.undeclared&&t instanceof mn&&t.undeclared()&&Q.warn("Undeclared symbol: {name} [{file}:{line},{col}]",{name:t.name,file:t.start.file,line:t.start.line,col:t.start.col}),e.assign_to_global){var r=null;t instanceof Ze&&t.left instanceof mn?r=t.left:t instanceof he&&t.init instanceof mn&&(r=t.init),r&&(r.undeclared()||r.global()&&r.scope!==r.definition().scope)&&Q.warn("{msg}: {name} [{file}:{line},{col}]",{msg:r.undeclared()?"Accidental global?":"Assignment to global",name:r.name,file:r.start.file,line:r.start.line,col:r.start.col})}e.eval&&t instanceof mn&&t.undeclared()&&"eval"==t.name&&Q.warn("Eval is used [{file}:{line},{col}]",t.start),e.unreferenced&&(t instanceof sn||t instanceof gn)&&!(t instanceof hn)&&t.unreferenced()&&Q.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]",{type:t instanceof gn?"Label":"Symbol",name:t.name,file:t.start.file,line:t.start.line,col:t.start.col}),e.func_arguments&&t instanceof ve&&t.uses_arguments&&Q.warn("arguments used in function {name} [{file}:{line},{col}]",{name:t.name?t.name.name:"anonymous",file:t.start.file,line:t.start.line,col:t.start.col}),e.nested_defuns&&t instanceof Ae&&!(n.parent()instanceof me)&&Q.warn('Function {name} declared in nested statement "{type}" [{file}:{line},{col}]',{name:t.name.name,type:n.parent().TYPE,file:t.start.file,line:t.start.line,col:t.start.col})});this.walk(n)}),function(){function e(e,n){e.DEFMETHOD("_codegen",n)}function n(e,t){Array.isArray(e)?e.forEach(function(e){n(e,t)}):e.DEFMETHOD("needs_parens",t)}function t(e,n,t){var r=e.length-1;e.forEach(function(e,o){e instanceof ae||(t.indent(),e.print(t),o==r&&n||(t.newline(),n&&t.newline()))})}function r(e,n){e.length>0?n.with_block(function(){t(e,!1,n)}):n.print("{}")}function o(e,n){if(n.option("bracketize"))return void d(e.body,n);if(!e.body)return n.force_semicolon();if(e.body instanceof fe&&!n.option("screw_ie8"))return void d(e.body,n);for(var t=e.body;;)if(t instanceof ke){if(!t.alternative)return void d(e.body,n);t=t.alternative}else{if(!(t instanceof ue))break;t=t.body}u(e.body,n)}function i(e,n,t){if(t)try{e.walk(new C(function(e){if(e instanceof Xe&&"in"==e.operator)throw n})),e.print(n)}catch(r){if(r!==n)throw r;e.print(n,!0)}else e.print(n)}function a(e){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(e)<0}function u(e,n){n.option("bracketize")?!e||e instanceof ae?n.print("{}"):e instanceof ie?e.print(n):n.with_block(function(){n.indent(),e.print(n),n.newline()}):!e||e instanceof ae?n.force_semicolon():e.print(n)}function s(e){for(var n=e.stack(),t=n.length,r=n[--t],o=n[--t];t>0;){if(o instanceof ee&&o.body===r)return!0;if(!(o instanceof Ue&&o.car===r||o instanceof ze&&o.expression===r&&!(o instanceof He)||o instanceof Ge&&o.expression===r||o instanceof Ve&&o.expression===r||o instanceof Ke&&o.condition===r||o instanceof Xe&&o.left===r||o instanceof Ye&&o.expression===r))return!1;r=o,o=n[--t]}}function c(e,n){return 0==e.args.length&&!n.option("beautify")}function l(e){for(var n=e[0],t=n.length,r=1;r=0?r.push("0x"+e.toString(16).toLowerCase(),"0"+e.toString(8)):r.push("-0x"+(-e).toString(16).toLowerCase(),"-0"+(-e).toString(8)), +(n=/^(.*?)(0+)$/.exec(e))&&r.push(n[1]+"e"+n[2].length)):(n=/^0?\.(0+)(.*)$/.exec(e))&&r.push(n[2]+"e-"+(n[1].length+n[2].length),t.substr(t.indexOf("."))),l(r)}function d(e,n){return e instanceof ie?void e.print(n):void n.with_block(function(){n.indent(),e.print(n),n.newline()})}function h(e,n){e.DEFMETHOD("add_source_map",function(e){n(this,e)})}function g(e,n){n.add_mapping(e.start)}var m=!1;Q.DEFMETHOD("print",function(e,n){function t(){r.add_comments(e),r.add_source_map(e),o(r,e)}var r=this,o=r._codegen,i=m;r instanceof te&&"use asm"==r.value&&(m=!0),e.push_node(r),n||r.needs_parens(e)?e.with_parens(t):t(),e.pop_node(),r instanceof ve&&(m=i)}),Q.DEFMETHOD("print_to_string",function(e){var n=U(e);return this.print(n),n.get()}),Q.DEFMETHOD("add_comments",function(e){var n=e.option("comments"),t=this,r=t.start;if(r&&!r._comments_dumped){r._comments_dumped=!0;var o=r.comments_before||[];t instanceof Ee&&t.value&&t.value.walk(new C(function(e){return e.start&&e.start.comments_before&&(o=o.concat(e.start.comments_before),e.start.comments_before=[]),e instanceof be||e instanceof Qe||e instanceof en?!0:void 0})),n?n.test?o=o.filter(function(e){return"comment5"==e.type||n.test(e.value)}):"function"==typeof n&&(o=o.filter(function(e){return"comment5"==e.type||n(t,e)})):o=o.filter(function(e){return"comment5"==e.type}),!e.option("beautify")&&o.length>0&&/comment[134]/.test(o[0].type)&&0!==e.col()&&o[0].nlb&&e.print("\n"),o.forEach(function(n){/comment[134]/.test(n.type)?(e.print("//"+n.value+"\n"),e.indent()):"comment2"==n.type?(e.print("/*"+n.value+"*/"),r.nlb?(e.print("\n"),e.indent()):e.space()):0===e.pos()&&"comment5"==n.type&&e.option("shebang")&&(e.print("#!"+n.value+"\n"),e.indent())})}}),n(Q,function(){return!1}),n(be,function(e){return s(e)}),n(en,function(e){return s(e)}),n([We,Dn],function(e){var n=e.parent();return n instanceof Ie&&n.expression===this}),n(Ue,function(e){var n=e.parent();return n instanceof ze||n instanceof We||n instanceof Xe||n instanceof je||n instanceof Ie||n instanceof Qe||n instanceof nn||n instanceof Ke}),n(Xe,function(e){var n=e.parent();if(n instanceof ze&&n.expression===this)return!0;if(n instanceof We)return!0;if(n instanceof Ie&&n.expression===this)return!0;if(n instanceof Xe){var t=n.operator,r=Yn[t],o=this.operator,i=Yn[o];if(r>i||r==i&&this===n.right)return!0}}),n(Ie,function(e){var n=e.parent();if(n instanceof He&&n.expression===this)try{this.walk(new C(function(e){if(e instanceof ze)throw n}))}catch(t){if(t!==n)throw t;return!0}}),n(ze,function(e){var n,t=e.parent();return t instanceof He&&t.expression===this?!0:this.expression instanceof be&&t instanceof Ie&&t.expression===this&&(n=e.parent(1))instanceof Ze&&n.left===t}),n(He,function(e){var n=e.parent();return c(this,e)&&(n instanceof Ie||n instanceof ze&&n.expression===this)?!0:void 0}),n(An,function(e){var n=e.parent();return this.getValue()<0&&n instanceof Ie&&n.expression===this?!0:void 0}),n([Ze,Ke],function(e){var n=e.parent();return n instanceof We?!0:n instanceof Xe&&!(n instanceof Ze)?!0:n instanceof ze&&n.expression===this?!0:n instanceof Ke&&n.condition===this?!0:n instanceof Ie&&n.expression===this?!0:void 0}),e(te,function(e,n){n.print_string(e.value,e.quote),n.semicolon()}),e(ne,function(e,n){n.print("debugger"),n.semicolon()}),ue.DEFMETHOD("_do_print_body",function(e){u(this.body,e)}),e(ee,function(e,n){e.body.print(n),n.semicolon()}),e(_e,function(e,n){t(e.body,!0,n),n.print("")}),e(se,function(e,n){e.label.print(n),n.colon(),e.body.print(n)}),e(re,function(e,n){e.body.print(n),n.semicolon()}),e(ie,function(e,n){r(e.body,n)}),e(ae,function(e,n){n.semicolon()}),e(fe,function(e,n){n.print("do"),n.space(),e._do_print_body(n),n.space(),n.print("while"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.semicolon()}),e(pe,function(e,n){n.print("while"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.space(),e._do_print_body(n)}),e(de,function(e,n){n.print("for"),n.space(),n.with_parens(function(){!e.init||e.init instanceof ae?n.print(";"):(e.init instanceof Ne?e.init.print(n):i(e.init,n,!0),n.print(";"),n.space()),e.condition?(e.condition.print(n),n.print(";"),n.space()):n.print(";"),e.step&&e.step.print(n)}),n.space(),e._do_print_body(n)}),e(he,function(e,n){n.print("for"),n.space(),n.with_parens(function(){e.init.print(n),n.space(),n.print("in"),n.space(),e.object.print(n)}),n.space(),e._do_print_body(n)}),e(ge,function(e,n){n.print("with"),n.space(),n.with_parens(function(){e.expression.print(n)}),n.space(),e._do_print_body(n)}),ve.DEFMETHOD("_do_print",function(e,n){var t=this;n||e.print("function"),t.name&&(e.space(),t.name.print(e)),e.with_parens(function(){t.argnames.forEach(function(n,t){t&&e.comma(),n.print(e)})}),e.space(),r(t.body,e)}),e(ve,function(e,n){e._do_print(n)}),Ee.DEFMETHOD("_do_print",function(e,n){e.print(n),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),e(Ce,function(e,n){e._do_print(n,"return")}),e(Se,function(e,n){e._do_print(n,"throw")}),De.DEFMETHOD("_do_print",function(e,n){e.print(n),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(Fe,function(e,n){e._do_print(n,"break")}),e(xe,function(e,n){e._do_print(n,"continue")}),e(ke,function(e,n){n.print("if"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.space(),e.alternative?(o(e,n),n.space(),n.print("else"),n.space(),u(e.alternative,n)):e._do_print_body(n)}),e(Be,function(e,n){n.print("switch"),n.space(),n.with_parens(function(){e.expression.print(n)}),n.space(),e.body.length>0?n.with_block(function(){e.body.forEach(function(e,t){t&&n.newline(),n.indent(!0),e.print(n)})}):n.print("{}")}),Te.DEFMETHOD("_do_print_body",function(e){this.body.length>0&&(e.newline(),this.body.forEach(function(n){e.indent(),n.print(e),e.newline()}))}),e(Oe,function(e,n){n.print("default:"),e._do_print_body(n)}),e(Me,function(e,n){n.print("case"),n.space(),e.expression.print(n),n.print(":"),e._do_print_body(n)}),e($e,function(e,n){n.print("try"),n.space(),r(e.body,n),e.bcatch&&(n.space(),e.bcatch.print(n)),e.bfinally&&(n.space(),e.bfinally.print(n))}),e(Re,function(e,n){n.print("catch"),n.space(),n.with_parens(function(){e.argname.print(n)}),n.space(),r(e.body,n)}),e(Le,function(e,n){n.print("finally"),n.space(),r(e.body,n)}),Ne.DEFMETHOD("_do_print",function(e,n){e.print(n),e.space(),this.definitions.forEach(function(n,t){t&&e.comma(),n.print(e)});var t=e.parent(),r=t instanceof de||t instanceof he,o=r&&t.init===this;o||e.semicolon()}),e(Pe,function(e,n){e._do_print(n,"var")}),e(qe,function(e,n){e._do_print(n,"const")}),e(je,function(e,n){if(e.name.print(n),e.value){n.space(),n.print("="),n.space();var t=n.parent(1),r=t instanceof de||t instanceof he;i(e.value,n,r)}}),e(ze,function(e,n){e.expression.print(n),e instanceof He&&c(e,n)||n.with_parens(function(){e.args.forEach(function(e,t){t&&n.comma(),e.print(n)})})}),e(He,function(e,n){n.print("new"),n.space(),ze.prototype._codegen(e,n)}),Ue.DEFMETHOD("_do_print",function(e){this.car.print(e),this.cdr&&(e.comma(),e.should_break()&&(e.newline(),e.indent()),this.cdr.print(e))}),e(Ue,function(e,n){e._do_print(n)}),e(Ge,function(e,n){var t=e.expression;t.print(n),t instanceof An&&t.getValue()>=0&&(/[xa-f.]/i.test(n.last())||n.print(".")),n.print("."),n.add_mapping(e.end),n.print_name(e.property)}),e(Ve,function(e,n){e.expression.print(n),n.print("["),e.property.print(n),n.print("]")}),e(Je,function(e,n){var t=e.operator;n.print(t),(/^[a-z]/i.test(t)||/[+-]$/.test(t)&&e.expression instanceof Je&&/^[+-]/.test(e.expression.operator))&&n.space(),e.expression.print(n)}),e(Ye,function(e,n){e.expression.print(n),n.print(e.operator)}),e(Xe,function(e,n){var t=e.operator;e.left.print(n),">"==t[0]&&e.left instanceof Ye&&"--"==e.left.operator?n.print(" "):n.space(),n.print(t),("<"==t||"<<"==t)&&e.right instanceof Je&&"!"==e.right.operator&&e.right.expression instanceof Je&&"--"==e.right.expression.operator?n.print(" "):n.space(),e.right.print(n)}),e(Ke,function(e,n){e.condition.print(n),n.space(),n.print("?"),n.space(),e.consequent.print(n),n.space(),n.colon(),e.alternative.print(n)}),e(Qe,function(e,n){n.with_square(function(){var t=e.elements,r=t.length;r>0&&n.space(),t.forEach(function(e,t){t&&n.comma(),e.print(n),t===r-1&&e instanceof Fn&&n.comma()}),r>0&&n.space()})}),e(en,function(e,n){e.properties.length>0?n.with_block(function(){e.properties.forEach(function(e,t){t&&(n.print(","),n.newline()),n.indent(),e.print(n)}),n.newline()}):n.print("{}")}),e(tn,function(e,n){var t=e.key,r=e.quote;n.option("quote_keys")?n.print_string(t+""):("number"==typeof t||!n.option("beautify")&&+t+""==t)&&parseFloat(t)>=0?n.print(f(t)):($n(t)?n.option("screw_ie8"):$(t))?n.print_name(t):n.print_string(t,r),n.colon(),e.value.print(n)}),e(rn,function(e,n){n.print("set"),n.space(),e.key.print(n),e.value._do_print(n,!0)}),e(on,function(e,n){n.print("get"),n.space(),e.key.print(n),e.value._do_print(n,!0)}),e(an,function(e,n){var t=e.definition();n.print_name(t?t.mangled_name||t.name:e.name)}),e(Dn,function(e,n){n.print("void 0")}),e(Fn,p),e(xn,function(e,n){n.print("Infinity")}),e(Sn,function(e,n){n.print("NaN")}),e(vn,function(e,n){n.print("this")}),e(yn,function(e,n){n.print(e.getValue())}),e(bn,function(e,n){n.print_string(e.getValue(),e.quote)}),e(An,function(e,n){m&&null!=e.start.raw?n.print(e.start.raw):n.print(f(e.getValue()))}),e(wn,function(e,n){var t=e.getValue().toString();n.option("ascii_only")?t=n.to_ascii(t):n.option("unescape_regexps")&&(t=t.split("\\\\").map(function(e){return e.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g,function(e){var n=parseInt(e.substr(2),16);return a(n)?String.fromCharCode(n):e})}).join("\\\\")),n.print(t);var r=n.parent();r instanceof Xe&&/^in/.test(r.operator)&&r.left===e&&n.print(" ")}),h(Q,p),h(te,g),h(ne,g),h(an,g),h(we,g),h(ue,g),h(se,p),h(ve,g),h(Be,g),h(Te,g),h(ie,g),h(_e,p),h(He,g),h($e,g),h(Re,g),h(Le,g),h(Ne,g),h(yn,g),h(rn,function(e,n){n.add_mapping(e.start,e.key.name)}),h(on,function(e,n){n.add_mapping(e.start,e.key.name)}),h(nn,function(e,n){n.add_mapping(e.start,e.key)})}(),I.prototype=new z,f(I.prototype,{option:function(e){return this.options[e]},warn:function(){this.options.warnings&&Q.warn.apply(Q,arguments)},before:function(e,n,t){if(e._squeezed)return e;var r=!1;return e instanceof me&&(e=e.hoist_declarations(this),r=!0),n(e,this),e=e.optimize(this),r&&e instanceof me&&(e.drop_unused(this),n(e,this)),e._squeezed=!0,e}}),function(){function e(e,n){e.DEFMETHOD("optimize",function(e){var t=this;if(t._optimized)return t;if(e.has_directive("use asm"))return t;var r=n(t,e);return r._optimized=!0,r===t?r:r.transform(e)})}function n(e,n,t){return t||(t={}),n&&(t.start||(t.start=n.start),t.end||(t.end=n.end)),new e(t)}function t(e,t,r){if(t instanceof Q)return t.transform(e);switch(typeof t){case"string":return n(bn,r,{value:t}).optimize(e);case"number":return n(isNaN(t)?Sn:An,r,{value:t}).optimize(e);case"boolean":return n(t?Tn:Bn,r).optimize(e);case"undefined":return n(Dn,r).optimize(e);default:if(null===t)return n(Cn,r,{value:null}).optimize(e);if(t instanceof RegExp)return n(wn,r,{value:t}).optimize(e);throw new Error(h("Can't handle constant of type: {type}",{type:typeof t}))}}function r(e,t,r){return e instanceof ze&&e.expression===t&&(r instanceof Ie||r instanceof mn&&"eval"===r.name)?n(Ue,t,{car:n(An,t,{value:0}),cdr:r}):r}function o(e){if(null===e)return[];if(e instanceof ie)return e.body;if(e instanceof ae)return[];if(e instanceof ee)return[e];throw new Error("Can't convert thing to statement array")}function i(e){return null===e?!0:e instanceof ae?!0:e instanceof ie?0==e.body.length:!1}function s(e){return e instanceof Be?e:(e instanceof de||e instanceof he||e instanceof le)&&e.body instanceof ie?e.body:e}function c(e,t){function i(e,t){function o(e,n){return e instanceof mn&&(n instanceof Ze&&e===n.left||n instanceof We&&n.expression===e&&("++"==n.operator||"--"==n.operator))}function a(i,a,c){if(o(i,a))return i;var p=r(a,i,b.value);return b.value=null,d.splice(y,1),0===d.length&&(e[f]=n(ae,u),s=!0),l.walk(new C(function(e){delete e._squeezed,delete e._optimized})),t.warn("Replacing "+(c?"constant":"variable")+" "+A+" [{file}:{line},{col}]",i.start),v=!0,p}for(var u=t.self(),s=!1,c=e.length;--c>=0;){var l=e[c];if(!(l instanceof Ne)){if([l,l.body,l.alternative,l.bcatch,l.bfinally].forEach(function(e){e&&e.body&&i(e.body,t)}),0>=c)break;var f=c-1,p=e[f];if(p instanceof Ne){var d=p.definitions;if(null!=d)for(var h={},g=!1,m=!1,_={},y=d.length;--y>=0;){var b=d[y];if(null==b.value)break;var A=b.name.name;if(!A||!A.length)break;if(A in h)break;h[A]=!0;var w=u.find_variable&&u.find_variable(A);if(w&&w.references&&1===w.references.length&&"arguments"!=A){var E=w.references[0];if(E.scope.uses_eval||E.scope.uses_with)break;if(b.value.is_constant(t)){var S=new z(function(e){return e===E?a(e,S.parent(),!0):void 0});l.transform(S)}else if(!(g|=m))if(E.scope===u){var D=new C(function(e){e instanceof mn&&o(e,D.parent())&&(_[e.name]=m=!0)});b.value.walk(D);var F=!1,x=new z(function(e){if(F)return e;var n=x.parent();return e instanceof ve||e instanceof $e||e instanceof ge||e instanceof Me||e instanceof ce||n instanceof ke&&e!==n.condition||n instanceof Ke&&e!==n.condition||n instanceof Xe&&("&&"==n.operator||"||"==n.operator)&&e===n.right||n instanceof Be&&e!==n.expression?(g=F=!0,e):void 0},function(e){return F?e:e===E?(F=!0,a(e,x.parent(),!1)):(g|=e.has_side_effects(t))?(F=!0,e):m&&e instanceof mn&&e.name in _?(g=!0,F=!0,e):void 0});l.transform(x)}else g|=b.value.has_side_effects(t)}else g=!0}}}}if(s)for(var k=e.length;--k>=0;)e.length>1&&e[k]instanceof ae&&e.splice(k,1);return e}function a(e){function r(e){return/@ngInject/.test(e.value)}function o(e){return e.argnames.map(function(e){return n(bn,e,{value:e.name})})}function i(e,t){return n(Qe,e,{elements:t})}function a(e,t){return n(re,e,{body:n(Ze,e,{operator:"=",left:n(Ge,t,{expression:n(mn,t,t),property:"$inject"}),right:i(e,o(e))})})}function u(e){e&&e.args&&(e.args.forEach(function(e,n,t){var a=e.start.comments_before;e instanceof ve&&a.length&&r(a[0])&&(t[n]=i(e,o(e).concat(e)))}),e.expression&&e.expression.expression&&u(e.expression.expression))}return e.reduce(function(e,n){if(e.push(n),n.body&&n.body.args)u(n.body);else{var o=n.start,i=o.comments_before;if(i&&i.length>0){var s=i.pop();r(s)&&(n instanceof Ae?e.push(a(n,n.name)):n instanceof Ne?n.definitions.forEach(function(n){n.value&&n.value instanceof ve&&e.push(a(n.value,n.name))}):t.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]",o))}}return e},[])}function u(e){var n=[];return e.reduce(function(e,t){return t instanceof ie?(v=!0,e.push.apply(e,u(t.body))):t instanceof ae?v=!0:t instanceof te?n.indexOf(t.value)<0?(e.push(t),n.push(t.value)):v=!0:e.push(t),e},[])}function c(e,t){var r=t.self(),i=r instanceof ve,a=[];e:for(var u=e.length;--u>=0;){var c=e[u];switch(!0){case i&&c instanceof Ce&&!c.value&&0==a.length:v=!0;continue e;case c instanceof ke:if(c.body instanceof Ce){if((i&&0==a.length||a[0]instanceof Ce&&!a[0].value)&&!c.body.value&&!c.alternative){v=!0;var l=n(re,c.condition,{body:c.condition});a.unshift(l);continue e}if(a[0]instanceof Ce&&c.body.value&&a[0].value&&!c.alternative){v=!0,c=c.clone(),c.alternative=a[0],a[0]=c.transform(t);continue e}if((0==a.length||a[0]instanceof Ce)&&c.body.value&&!c.alternative&&i){v=!0,c=c.clone(),c.alternative=a[0]||n(Ce,c,{value:n(Dn,c)}),a[0]=c.transform(t);continue e}if(!c.body.value&&i){v=!0,c=c.clone(),c.condition=c.condition.negate(t),c.body=n(ie,c,{body:o(c.alternative).concat(a)}),c.alternative=null,a=[c.transform(t)];continue e}if(t.option("sequences")&&1==a.length&&i&&a[0]instanceof re&&(!c.alternative||c.alternative instanceof re)){v=!0,a.push(n(Ce,a[0],{value:n(Dn,a[0])}).transform(t)),a=o(c.alternative).concat(a),a.unshift(c);continue e}}var f=p(c.body),d=f instanceof De?t.loopcontrol_target(f.label):null;if(f&&(f instanceof Ce&&!f.value&&i||f instanceof xe&&r===s(d)||f instanceof Fe&&d instanceof ie&&r===d)){f.label&&g(f.label.thedef.references,f),v=!0;var h=o(c.body).slice(0,-1);c=c.clone(),c.condition=c.condition.negate(t),c.body=n(ie,c,{body:o(c.alternative).concat(a)}),c.alternative=n(ie,c,{body:h}),a=[c.transform(t)];continue e}var f=p(c.alternative),d=f instanceof De?t.loopcontrol_target(f.label):null;if(f&&(f instanceof Ce&&!f.value&&i||f instanceof xe&&r===s(d)||f instanceof Fe&&d instanceof ie&&r===d)){f.label&&g(f.label.thedef.references,f),v=!0,c=c.clone(),c.body=n(ie,c.body,{body:o(c.body).concat(a)}),c.alternative=n(ie,c.alternative,{body:o(c.alternative).slice(0,-1)}),a=[c.transform(t)];continue e}a.unshift(c);break;default:a.unshift(c)}}return a}function f(e,n){var t=!1,r=e.length,o=n.self();return e=e.reduce(function(e,r){if(t)l(n,r,e);else{if(r instanceof De){var i=n.loopcontrol_target(r.label);r instanceof Fe&&i instanceof ie&&s(i)===o||r instanceof xe&&s(i)===o?r.label&&g(r.label.thedef.references,r):e.push(r)}else e.push(r);p(r)&&(t=!0)}return e},[]),v=e.length!=r,e}function d(e,t){function r(){o=Ue.from_array(o),o&&i.push(n(re,o,{body:o})),o=[]}if(e.length<2)return e;var o=[],i=[];return e.forEach(function(e){e instanceof re&&o.length<2e3?o.push(e.body):(r(),i.push(e))}),r(),i=h(i,t),v=i.length!=e.length,i}function h(e,t){function r(e){o.pop();var n=i.body;return n instanceof Ue?n.add(e):n=Ue.cons(n,e),n.transform(t)}var o=[],i=null;return e.forEach(function(e){if(i)if(e instanceof de){var t={};try{i.body.walk(new C(function(e){if(e instanceof Xe&&"in"==e.operator)throw t})),!e.init||e.init instanceof Ne?e.init||(e.init=i.body,o.pop()):e.init=r(e.init)}catch(a){if(a!==t)throw a}}else e instanceof ke?e.condition=r(e.condition):e instanceof ge?e.expression=r(e.expression):e instanceof Ee&&e.value?e.value=r(e.value):e instanceof Ee?e.value=r(n(Dn,e)):e instanceof Be&&(e.expression=r(e.expression));o.push(e),i=e instanceof re?e:null}),o}function m(e,n){var t=null;return e.reduce(function(e,n){return n instanceof Ne&&t&&t.TYPE==n.TYPE?(t.definitions=t.definitions.concat(n.definitions),v=!0):n instanceof de&&t instanceof Ne&&(!n.init||n.init.TYPE==t.TYPE)?(v=!0,e.pop(),n.init?n.init.definitions=t.definitions.concat(n.init.definitions):n.init=t,e.push(n),t=n):(t=n,e.push(n)),e},[])}function _(e,t){e.forEach(function(e){e instanceof re&&(e.body=function t(e){return e.transform(new z(function(e){if(e instanceof ze&&e.expression instanceof be)return n(Je,e,{operator:"!",expression:e});if(e instanceof ze)e.expression=t(e.expression);else if(e instanceof Ue)e.car=t(e.car);else if(e instanceof Ke){var r=t(e.condition);if(r!==e.condition){e.condition=r;var o=e.consequent;e.consequent=e.alternative,e.alternative=o}}return e}))}(e.body))})}var v,y=10;do v=!1,t.option("angular")&&(e=a(e)),e=u(e),t.option("dead_code")&&(e=f(e,t)),t.option("if_return")&&(e=c(e,t)),t.option("sequences")&&(e=d(e,t)),t.option("join_vars")&&(e=m(e,t)),t.option("collapse_vars")&&(e=i(e,t));while(v&&y-- >0);return t.option("negate_iife")&&_(e,t),e}function l(e,n,t){e.warn("Dropping unreachable code [{file}:{line},{col}]",n.start),n.walk(new C(function(n){return n instanceof Ne?(e.warn("Declarations in unreachable code! [{file}:{line},{col}]",n.start),n.remove_initializers(),t.push(n),!0):n instanceof Ae?(t.push(n),!0):n instanceof me?!0:void 0}))}function f(e,n){return e.print_to_string().length>n.print_to_string().length?n:e}function p(e){return e&&e.aborts()}function _(e,t){function r(r){r=o(r),e.body instanceof ie?(e.body=e.body.clone(),e.body.body=r.concat(e.body.body.slice(1)),e.body=e.body.transform(t)):e.body=n(ie,e.body,{body:r}).transform(t),_(e,t)}var i=e.body instanceof ie?e.body.body[0]:e.body;i instanceof ke&&(i.body instanceof Fe&&t.loopcontrol_target(i.body.label)===e?(e.condition?e.condition=n(Xe,e.condition,{left:e.condition,operator:"&&",right:i.condition.negate(t)}):e.condition=i.condition.negate(t),r(i.alternative)):i.alternative instanceof Fe&&t.loopcontrol_target(i.alternative.label)===e&&(e.condition?e.condition=n(Xe,e.condition,{left:e.condition,operator:"&&",right:i.condition}):e.condition=i.condition,r(i.body)))}function v(e,n){var t=n.option("pure_getters");n.options.pure_getters=!1;var r=e.has_side_effects(n);return n.options.pure_getters=t,r}function w(e,t){return t.option("booleans")&&t.in_boolean_context()&&!e.has_side_effects(t)?n(Tn,e):e}e(Q,function(e,n){return e}),Q.DEFMETHOD("equivalent_to",function(e){return this.print_to_string()==e.print_to_string()}),function(e){var n=["!","delete"],t=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];e(Q,function(){return!1}),e(Je,function(){return a(this.operator,n)}),e(Xe,function(){return a(this.operator,t)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),e(Ke,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),e(Ze,function(){return"="==this.operator&&this.right.is_boolean()}),e(Ue,function(){return this.cdr.is_boolean()}),e(Tn,function(){return!0}),e(Bn,function(){return!0})}(function(e,n){e.DEFMETHOD("is_boolean",n)}),function(e){e(Q,function(){return!1}),e(bn,function(){return!0}),e(Je,function(){return"typeof"==this.operator}),e(Xe,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),e(Ze,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),e(Ue,function(e){return this.cdr.is_string(e)}),e(Ke,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)}),e(ze,function(e){return e.option("unsafe")&&this.expression instanceof mn&&"String"==this.expression.name&&this.expression.undeclared()})}(function(e,n){e.DEFMETHOD("is_string",n)}),function(e){function n(e,n){if(!n)throw new Error("Compressor must be passed");return e._eval(n)}Q.DEFMETHOD("evaluate",function(n){if(!n.option("evaluate"))return[this];try{var r=this._eval(n);return[f(t(n,r,this),this),r]}catch(o){if(o!==e)throw o;return[this]}}),Q.DEFMETHOD("is_constant",function(e){return this instanceof yn||this instanceof Je&&"!"==this.operator&&this.expression instanceof yn||this.evaluate(e).length>1}),Q.DEFMETHOD("constant_value",function(e){if(this instanceof yn)return this.value;if(this instanceof Je&&"!"==this.operator&&this.expression instanceof yn)return!this.expression.value;var n=this.evaluate(e);return n.length>1?n[1]:void 0}),e(ee,function(){throw new Error(h("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(be,function(){throw e}),e(Q,function(){throw e}),e(yn,function(){return this.getValue()}),e(Je,function(t){var r=this.expression;switch(this.operator){case"!":return!n(r,t);case"typeof":if(r instanceof be)return"function";if(r=n(r,t),r instanceof RegExp)throw e;return typeof r;case"void":return void n(r,t);case"~":return~n(r,t);case"-":if(r=n(r,t),0===r)throw e;return-r;case"+":return+n(r,t)}throw e}),e(Xe,function(t){var r=this.left,o=this.right;switch(this.operator){case"&&":return n(r,t)&&n(o,t);case"||":return n(r,t)||n(o,t);case"|":return n(r,t)|n(o,t);case"&":return n(r,t)&n(o,t);case"^":return n(r,t)^n(o,t);case"+":return n(r,t)+n(o,t);case"*":return n(r,t)*n(o,t);case"/":return n(r,t)/n(o,t);case"%":return n(r,t)%n(o,t);case"-":return n(r,t)-n(o,t);case"<<":return n(r,t)<>":return n(r,t)>>n(o,t);case">>>":return n(r,t)>>>n(o,t);case"==":return n(r,t)==n(o,t);case"===":return n(r,t)===n(o,t);case"!=":return n(r,t)!=n(o,t);case"!==":return n(r,t)!==n(o,t);case"<":return n(r,t)":return n(r,t)>n(o,t);case">=":return n(r,t)>=n(o,t);case"in":return n(r,t)in n(o,t);case"instanceof":return n(r,t)instanceof n(o,t)}throw e}),e(Ke,function(e){return n(this.condition,e)?n(this.consequent,e):n(this.alternative,e)}),e(mn,function(t){var r=this.definition();if(r&&r.constant&&r.init)return n(r.init,t);throw e}),e(Ge,function(t){if(t.option("unsafe")&&"length"==this.property){var r=n(this.expression,t);if("string"==typeof r)return r.length}throw e})}(function(e,n){e.DEFMETHOD("_eval",n)}),function(e){function t(e){return n(Je,e,{operator:"!",expression:e})}e(Q,function(){return t(this)}),e(ee,function(){throw new Error("Cannot negate a statement")}),e(be,function(){return t(this)}),e(Je,function(){return"!"==this.operator?this.expression:t(this)}),e(Ue,function(e){var n=this.clone();return n.cdr=n.cdr.negate(e),n}),e(Ke,function(e){var n=this.clone();return n.consequent=n.consequent.negate(e),n.alternative=n.alternative.negate(e),f(t(this),n)}),e(Xe,function(e){var n=this.clone(),r=this.operator;if(e.option("unsafe_comps"))switch(r){case"<=":return n.operator=">",n;case"<":return n.operator=">=",n;case">=":return n.operator="<",n;case">":return n.operator="<=",n}switch(r){case"==":return n.operator="!=",n;case"!=":return n.operator="==",n;case"===":return n.operator="!==",n;case"!==":return n.operator="===",n;case"&&":return n.operator="||",n.left=n.left.negate(e),n.right=n.right.negate(e),f(t(this),n);case"||":return n.operator="&&",n.left=n.left.negate(e),n.right=n.right.negate(e),f(t(this),n)}return t(this)})}(function(e,n){e.DEFMETHOD("negate",function(e){return n.call(this,e)})}),function(e){e(Q,function(e){return!0}),e(ae,function(e){return!1}),e(yn,function(e){return!1}),e(vn,function(e){return!1}),e(ze,function(e){var n=e.option("pure_funcs");return n?"function"==typeof n?n(this):n.indexOf(this.expression.print_to_string())<0:!0}),e(oe,function(e){for(var n=this.body.length;--n>=0;)if(this.body[n].has_side_effects(e))return!0;return!1}),e(re,function(e){return this.body.has_side_effects(e)}),e(Ae,function(e){return!0}),e(be,function(e){return!1}),e(Xe,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(Ze,function(e){return!0}),e(Ke,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e(We,function(e){return"delete"==this.operator||"++"==this.operator||"--"==this.operator||this.expression.has_side_effects(e)}),e(mn,function(e){return this.global()&&this.undeclared()}),e(en,function(e){for(var n=this.properties.length;--n>=0;)if(this.properties[n].has_side_effects(e))return!0;return!1}),e(nn,function(e){return this.value.has_side_effects(e)}),e(Qe,function(e){for(var n=this.elements.length;--n>=0;)if(this.elements[n].has_side_effects(e))return!0;return!1}),e(Ge,function(e){return e.option("pure_getters")?this.expression.has_side_effects(e):!0}),e(Ve,function(e){return e.option("pure_getters")?this.expression.has_side_effects(e)||this.property.has_side_effects(e):!0}),e(Ie,function(e){return!e.option("pure_getters")}),e(Ue,function(e){return this.car.has_side_effects(e)||this.cdr.has_side_effects(e)})}(function(e,n){e.DEFMETHOD("has_side_effects",n)}),function(e){function n(){var e=this.body.length;return e>0&&p(this.body[e-1])}e(ee,function(){return null}),e(we,function(){return this}),e(ie,n),e(Te,n),e(ke,function(){return this.alternative&&p(this.body)&&p(this.alternative)&&this})}(function(e,n){e.DEFMETHOD("aborts",n)}),e(te,function(e,t){return"up"===t.has_directive(e.value)?n(ae,e):e}),e(ne,function(e,t){return t.option("drop_debugger")?n(ae,e):e}),e(se,function(e,t){return e.body instanceof Fe&&t.loopcontrol_target(e.body.label)===e.body?n(ae,e):0==e.label.references.length?e.body:e}),e(oe,function(e,n){return e.body=c(e.body,n),e}),e(ie,function(e,t){switch(e.body=c(e.body,t),e.body.length){case 1:return e.body[0];case 0:return n(ae,e)}return e}),me.DEFMETHOD("drop_unused",function(e){var t=this;if(e.has_directive("use asm"))return t;if(e.option("unused")&&!(t instanceof _e)&&!t.uses_eval){var r=[],o=new A,i=this,u=new C(function(n,a){if(n!==t){if(n instanceof Ae)return o.add(n.name.name,n),!0;if(n instanceof Ne&&i===t)return n.definitions.forEach(function(n){n.value&&(o.add(n.name.name,n.value),n.value.has_side_effects(e)&&n.value.walk(u))}),!0;if(n instanceof mn)return d(r,n.definition()),!0;if(n instanceof me){var s=i;return i=n,a(),i=s,!0}}});t.walk(u);for(var s=0;s=0;){var f=s[l];if(!f.unreferenced())break;s.pop(),e.warn("Dropping unused function argument {name} [{file}:{line},{col}]",{name:f.name,file:f.start.file,line:f.start.line,col:f.start.col})}if(o instanceof Ae&&o!==t)return a(o.name.definition(),r)?o:(e.warn("Dropping unused function {name} [{file}:{line},{col}]",{name:o.name.name,file:o.name.start.file,line:o.name.start.line,col:o.name.start.col}),n(ae,o));if(o instanceof Ne&&!(c.parent()instanceof he)){var p=o.definitions.filter(function(n){if(a(n.name.definition(),r))return!0;var t={name:n.name.name,file:n.name.start.file,line:n.name.start.line,col:n.name.start.col};return n.value&&n.value.has_side_effects(e)?(n._unused_side_effects=!0,e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",t),!0):(e.warn("Dropping unused variable {name} [{file}:{line},{col}]",t),!1)});p=m(p,function(e,n){return!e.value&&n.value?-1:!n.value&&e.value?1:0});for(var d=[],l=0;l0&&(d.push(h.value),h.value=Ue.from_array(d),d=[]),++l)}return d=d.length>0?n(ie,o,{body:[n(re,o,{body:Ue.from_array(d)})]}):null,0!=p.length||d?0==p.length?u?K.splice(d.body):d:(o.definitions=p,d?(d.body.unshift(o),u?K.splice(d.body):d):o):n(ae,o)}if(o instanceof de&&(i(o,this),o.init instanceof ie)){var g=o.init.body.slice(0,-1);return o.init=o.init.body.slice(-1)[0].body,g.push(o),u?K.splice(g):n(ie,o,{body:g})}return o instanceof me&&o!==t?o:void 0});t.transform(c)}}),me.DEFMETHOD("hoist_declarations",function(e){var t=this;if(e.has_directive("use asm"))return t;var r=e.option("hoist_funs"),o=e.option("hoist_vars");if(r||o){var i=[],a=[],s=new A,c=0,l=0;t.walk(new C(function(e){return e instanceof me&&e!==t?!0:e instanceof Pe?(++l,!0):void 0})),o=o&&l>1;var f=new z(function(e){if(e!==t){if(e instanceof te)return i.push(e),n(ae,e);if(e instanceof Ae&&r)return a.push(e),n(ae,e);if(e instanceof Pe&&o){e.definitions.forEach(function(e){s.set(e.name.name,e),++c});var u=e.to_assignments(),l=f.parent();if(l instanceof he&&l.init===e){if(null==u){var p=e.definitions[0].name;return n(mn,p,p)}return u}return l instanceof de&&l.init===e?u:u?n(re,e,{body:u}):n(ae,e)}if(e instanceof me)return e}});if(t=t.transform(f),c>0){var p=[];if(s.each(function(e,n){t instanceof ve&&u(function(n){return n.name==e.name.name},t.argnames)?s.del(n):(e=e.clone(),e.value=null,p.push(e),s.set(n,e))}),p.length>0){for(var d=0;d1){if(r[1])return n(de,e,{body:e.body});if(e instanceof pe&&t.option("dead_code")){var o=[];return l(t,e.body,o),n(ie,e,{body:o})}}return e}),e(pe,function(e,t){return t.option("loops")?(e=le.prototype.optimize.call(e,t),e instanceof pe&&(_(e,t),e=n(de,e,e).transform(t)),e):e}),e(de,function(e,t){var r=e.condition;if(r&&(r=r.evaluate(t), +e.condition=r[0]),!t.option("loops"))return e;if(r&&r.length>1&&!r[1]&&t.option("dead_code")){var o=[];return e.init instanceof ee?o.push(e.init):e.init&&o.push(n(re,e.init,{body:e.init})),l(t,e.body,o),n(ie,e,{body:o})}return _(e,t),e}),e(ke,function(e,t){if(!t.option("conditionals"))return e;var r=e.condition.evaluate(t);if(e.condition=r[0],r.length>1)if(r[1]){if(t.warn("Condition always true [{file}:{line},{col}]",e.condition.start),t.option("dead_code")){var o=[];return e.alternative&&l(t,e.alternative,o),o.push(e.body),n(ie,e,{body:o}).transform(t)}}else if(t.warn("Condition always false [{file}:{line},{col}]",e.condition.start),t.option("dead_code")){var o=[];return l(t,e.body,o),e.alternative&&o.push(e.alternative),n(ie,e,{body:o}).transform(t)}i(e.alternative)&&(e.alternative=null);var a=e.condition.negate(t),u=e.condition.print_to_string().length,s=a.print_to_string().length,c=u>s;if(e.alternative&&c){c=!1,e.condition=a;var f=e.body;e.body=e.alternative||n(ae),e.alternative=f}if(i(e.body)&&i(e.alternative))return n(re,e.condition,{body:e.condition}).transform(t);if(e.body instanceof re&&e.alternative instanceof re)return n(re,e,{body:n(Ke,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).transform(t);if(i(e.alternative)&&e.body instanceof re)return u===s&&!c&&e.condition instanceof Xe&&"||"==e.condition.operator&&(c=!0),c?n(re,e,{body:n(Xe,e,{operator:"||",left:a,right:e.body.body})}).transform(t):n(re,e,{body:n(Xe,e,{operator:"&&",left:e.condition,right:e.body.body})}).transform(t);if(e.body instanceof ae&&e.alternative&&e.alternative instanceof re)return n(re,e,{body:n(Xe,e,{operator:"||",left:e.condition,right:e.alternative.body})}).transform(t);if(e.body instanceof Ee&&e.alternative instanceof Ee&&e.body.TYPE==e.alternative.TYPE)return n(e.body.CTOR,e,{value:n(Ke,e,{condition:e.condition,consequent:e.body.value||n(Dn,e.body).optimize(t),alternative:e.alternative.value||n(Dn,e.alternative).optimize(t)})}).transform(t);if(e.body instanceof ke&&!e.body.alternative&&!e.alternative&&(e.condition=n(Xe,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}).transform(t),e.body=e.body.body),p(e.body)&&e.alternative){var d=e.alternative;return e.alternative=null,n(ie,e,{body:[e,d]}).transform(t)}if(p(e.alternative)){var h=e.body;return e.body=e.alternative,e.condition=c?a:e.condition.negate(t),e.alternative=null,n(ie,e,{body:[e,h]}).transform(t)}return e}),e(Be,function(e,t){if(0==e.body.length&&t.option("conditionals"))return n(re,e,{body:e.expression}).transform(t);for(;;){var r=e.body[e.body.length-1];if(r){var o=r.body[r.body.length-1];if(o instanceof Fe&&s(t.loopcontrol_target(o.label))===e&&r.body.pop(),r instanceof Oe&&0==r.body.length){e.body.pop();continue}}break}var i=e.expression.evaluate(t);e:if(2==i.length)try{if(e.expression=i[0],!t.option("dead_code"))break e;var a=i[1],u=!1,c=!1,l=!1,f=!1,d=!1,h=new z(function(r,o,i){if(r instanceof ve||r instanceof re)return r;if(r instanceof Be&&r===e)return r=r.clone(),o(r,this),d?r:n(ie,r,{body:r.body.reduce(function(e,n){return e.concat(n.body)},[])}).transform(t);if(r instanceof ke||r instanceof $e){var s=u;return u=!c,o(r,this),u=s,r}if(r instanceof ue||r instanceof Be){var s=c;return c=!0,o(r,this),c=s,r}if(r instanceof Fe&&this.loopcontrol_target(r.label)===e)return u?(d=!0,r):c?r:(f=!0,i?K.skip:n(ae,r));if(r instanceof Te&&this.parent()===e){if(f)return K.skip;if(r instanceof Me){var h=r.expression.evaluate(t);if(h.length<2)throw e;return h[1]===a||l?(l=!0,p(r)&&(f=!0),o(r,this),r):K.skip}return o(r,this),r}});h.stack=t.stack.slice(),e=e.transform(h)}catch(g){if(g!==e)throw g}return e}),e(Me,function(e,n){return e.body=c(e.body,n),e}),e($e,function(e,n){return e.body=c(e.body,n),e}),Ne.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(e){e.value=null})}),Ne.DEFMETHOD("to_assignments",function(){var e=this.definitions.reduce(function(e,t){if(t.value){var r=n(mn,t.name,t.name);e.push(n(Ze,t,{operator:"=",left:r,right:t.value}))}return e},[]);return 0==e.length?null:Ue.from_array(e)}),e(Ne,function(e,t){return 0==e.definitions.length?n(ae,e):e}),e(be,function(e,n){return e=ve.prototype.optimize.call(e,n),n.option("unused")&&!n.option("keep_fnames")&&e.name&&e.name.unreferenced()&&(e.name=null),e}),e(ze,function(e,r){if(r.option("unsafe")){var o=e.expression;if(o instanceof mn&&o.undeclared())switch(o.name){case"Array":if(1!=e.args.length)return n(Qe,e,{elements:e.args}).transform(r);break;case"Object":if(0==e.args.length)return n(en,e,{properties:[]});break;case"String":if(0==e.args.length)return n(bn,e,{value:""});if(e.args.length<=1)return n(Xe,e,{left:e.args[0],operator:"+",right:n(bn,e,{value:""})}).transform(r);break;case"Number":if(0==e.args.length)return n(An,e,{value:0});if(1==e.args.length)return n(Je,e,{expression:e.args[0],operator:"+"}).transform(r);case"Boolean":if(0==e.args.length)return n(Bn,e);if(1==e.args.length)return n(Je,e,{expression:n(Je,null,{expression:e.args[0],operator:"!"}),operator:"!"}).transform(r);break;case"Function":if(0==e.args.length)return n(be,e,{argnames:[],body:[]});if(b(e.args,function(e){return e instanceof bn}))try{var i="(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})()",a=j(i);a.figure_out_scope({screw_ie8:r.option("screw_ie8")});var u=new I(r.options);a=a.transform(u),a.figure_out_scope({screw_ie8:r.option("screw_ie8")}),a.mangle_names();var s;try{a.walk(new C(function(e){if(e instanceof ve)throw s=e,a}))}catch(c){if(c!==a)throw c}if(!s)return e;var l=s.argnames.map(function(t,r){return n(bn,e.args[r],{value:t.print_to_string()})}),i=U();return ie.prototype._codegen.call(s,s,i),i=i.toString().replace(/^\{|\}$/g,""),l.push(n(bn,e.args[e.args.length-1],{value:i})),e.args=l,e}catch(c){if(!(c instanceof L))throw console.log(c),c;r.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),r.warn(c.toString())}}else{if(o instanceof Ge&&"toString"==o.property&&0==e.args.length)return n(Xe,e,{left:n(bn,e,{value:""}),operator:"+",right:o.expression}).transform(r);if(o instanceof Ge&&o.expression instanceof Qe&&"join"==o.property){var p=0==e.args.length?",":e.args[0].evaluate(r)[1];if(null!=p){var d=o.expression.elements.reduce(function(e,n){if(n=n.evaluate(r),0==e.length||1==n.length)e.push(n);else{var o=e[e.length-1];if(2==o.length){var i=""+o[1]+p+n[1];e[e.length-1]=[t(r,i,o[0]),i]}else e.push(n)}return e},[]);if(0==d.length)return n(bn,e,{value:""});if(1==d.length)return d[0][0];if(""==p){var h;return h=d[0][0]instanceof bn||d[1][0]instanceof bn?d.shift()[0]:n(bn,e,{value:""}),d.reduce(function(e,t){return n(Xe,t[0],{operator:"+",left:e,right:t[0]})},h).transform(r)}var g=e.clone();return g.expression=g.expression.clone(),g.expression.expression=g.expression.expression.clone(),g.expression.expression.elements=d.map(function(e){return e[0]}),f(e,g)}}}}if(r.option("side_effects")&&e.expression instanceof be&&0==e.args.length&&!oe.prototype.has_side_effects.call(e.expression,r))return n(Dn,e).transform(r);if(r.option("drop_console")&&e.expression instanceof Ie){for(var m=e.expression.expression;m.expression;)m=m.expression;if(m instanceof mn&&"console"==m.name&&m.undeclared())return n(Dn,e).transform(r)}return e.evaluate(r)[0]}),e(He,function(e,t){if(t.option("unsafe")){var r=e.expression;if(r instanceof mn&&r.undeclared())switch(r.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return n(ze,e,e).transform(t)}}return e}),e(Ue,function(e,t){if(!t.option("side_effects"))return e;if(!e.car.has_side_effects(t))return r(t.parent(),e,e.cdr);if(t.option("cascade")){if(e.car instanceof Ze&&!e.car.left.has_side_effects(t)){if(e.car.left.equivalent_to(e.cdr))return e.car;if(e.cdr instanceof ze&&e.cdr.expression.equivalent_to(e.car.left))return e.cdr.expression=e.car,e.cdr}if(!e.car.has_side_effects(t)&&!e.cdr.has_side_effects(t)&&e.car.equivalent_to(e.cdr))return e.car}return e.cdr instanceof Je&&"void"==e.cdr.operator&&!e.cdr.expression.has_side_effects(t)?(e.cdr.expression=e.car,e.cdr):e.cdr instanceof Dn?n(Je,e,{operator:"void",expression:e.car}):e}),We.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")&&this.expression instanceof Ue){var n=this.expression,t=n.to_array();return this.expression=t.pop(),t.push(this),n=Ue.from_array(t).transform(e)}return this}),e(Ye,function(e,n){return e.lift_sequences(n)}),e(Je,function(e,t){e=e.lift_sequences(t);var r=e.expression;if(t.option("booleans")&&t.in_boolean_context()){switch(e.operator){case"!":if(r instanceof Je&&"!"==r.operator)return r.expression;break;case"typeof":return t.warn("Boolean expression always true [{file}:{line},{col}]",e.start),n(Tn,e)}r instanceof Xe&&"!"==e.operator&&(e=f(e,r.negate(t)))}return e.evaluate(t)[0]}),Xe.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")){if(this.left instanceof Ue){var n=this.left,t=n.to_array();return this.left=t.pop(),t.push(this),n=Ue.from_array(t).transform(e)}if(this.right instanceof Ue&&this instanceof Ze&&!v(this.left,e)){var n=this.right,t=n.to_array();return this.right=t.pop(),t.push(this),n=Ue.from_array(t).transform(e)}}return this});var E=y("== === != !== * & | ^");e(Xe,function(e,t){function o(n,r){if(r||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)){n&&(e.operator=n);var o=e.left;e.left=e.right,e.right=o}}if(E(e.operator)&&(e.right instanceof yn&&!(e.left instanceof yn)&&(e.left instanceof Xe&&Yn[e.left.operator]>=Yn[e.operator]||o(null,!0)),/^[!=]==?$/.test(e.operator))){if(e.left instanceof mn&&e.right instanceof Ke){if(e.right.consequent instanceof mn&&e.right.consequent.definition()===e.left.definition()){if(/^==/.test(e.operator))return e.right.condition;if(/^!=/.test(e.operator))return e.right.condition.negate(t)}if(e.right.alternative instanceof mn&&e.right.alternative.definition()===e.left.definition()){if(/^==/.test(e.operator))return e.right.condition.negate(t);if(/^!=/.test(e.operator))return e.right.condition}}if(e.right instanceof mn&&e.left instanceof Ke){if(e.left.consequent instanceof mn&&e.left.consequent.definition()===e.right.definition()){if(/^==/.test(e.operator))return e.left.condition;if(/^!=/.test(e.operator))return e.left.condition.negate(t)}if(e.left.alternative instanceof mn&&e.left.alternative.definition()===e.right.definition()){if(/^==/.test(e.operator))return e.left.condition.negate(t);if(/^!=/.test(e.operator))return e.left.condition}}}if(e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_boolean()&&e.right.is_boolean())&&(e.operator=e.operator.substr(0,2));case"==":case"!=":e.left instanceof bn&&"undefined"==e.left.value&&e.right instanceof Je&&"typeof"==e.right.operator&&t.option("unsafe")&&(e.right.expression instanceof mn&&e.right.expression.undeclared()||(e.right=e.right.expression,e.left=n(Dn,e.left).optimize(t),2==e.operator.length&&(e.operator+="=")))}if(t.option("conditionals"))if("&&"==e.operator){var i=e.left.evaluate(t);if(i.length>1)return i[1]?(t.warn("Condition left of && always true [{file}:{line},{col}]",e.start),r(t.parent(),e,e.right.evaluate(t)[0])):(t.warn("Condition left of && always false [{file}:{line},{col}]",e.start),r(t.parent(),e,i[0]))}else if("||"==e.operator){var i=e.left.evaluate(t);if(i.length>1)return i[1]?(t.warn("Condition left of || always true [{file}:{line},{col}]",e.start),r(t.parent(),e,i[0])):(t.warn("Condition left of || always false [{file}:{line},{col}]",e.start),r(t.parent(),e,e.right.evaluate(t)[0]))}if(t.option("booleans")&&t.in_boolean_context())switch(e.operator){case"&&":var i=e.left.evaluate(t),a=e.right.evaluate(t);if(i.length>1&&!i[1]||a.length>1&&!a[1])return t.warn("Boolean && always false [{file}:{line},{col}]",e.start),e.left.has_side_effects(t)?n(Ue,e,{car:e.left,cdr:n(Bn)}).optimize(t):n(Bn,e);if(i.length>1&&i[1])return a[0];if(a.length>1&&a[1])return i[0];break;case"||":var i=e.left.evaluate(t),a=e.right.evaluate(t);if(i.length>1&&i[1]||a.length>1&&a[1])return t.warn("Boolean || always true [{file}:{line},{col}]",e.start),e.left.has_side_effects(t)?n(Ue,e,{car:e.left,cdr:n(Tn)}).optimize(t):n(Tn,e);if(i.length>1&&!i[1])return a[0];if(a.length>1&&!a[1])return i[0];break;case"+":var i=e.left.evaluate(t),a=e.right.evaluate(t);if(i.length>1&&i[0]instanceof bn&&i[1]||a.length>1&&a[0]instanceof bn&&a[1])return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),n(Tn,e)}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof Xe)||t.parent()instanceof Ze){var u=n(Je,e,{operator:"!",expression:e.negate(t)});e=f(e,u)}switch(e.operator){case"<":o(">");break;case"<=":o(">=")}}return"+"==e.operator&&e.right instanceof bn&&""===e.right.getValue()&&e.left instanceof Xe&&"+"==e.left.operator&&e.left.is_string(t)?e.left:(t.option("evaluate")&&"+"==e.operator&&(e.left instanceof yn&&e.right instanceof Xe&&"+"==e.right.operator&&e.right.left instanceof yn&&e.right.is_string(t)&&(e=n(Xe,e,{operator:"+",left:n(bn,null,{value:""+e.left.getValue()+e.right.left.getValue(),start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof yn&&e.left instanceof Xe&&"+"==e.left.operator&&e.left.right instanceof yn&&e.left.is_string(t)&&(e=n(Xe,e,{operator:"+",left:e.left.left,right:n(bn,null,{value:""+e.left.right.getValue()+e.right.getValue(),start:e.left.right.start,end:e.right.end})})),e.left instanceof Xe&&"+"==e.left.operator&&e.left.is_string(t)&&e.left.right instanceof yn&&e.right instanceof Xe&&"+"==e.right.operator&&e.right.left instanceof yn&&e.right.is_string(t)&&(e=n(Xe,e,{operator:"+",left:n(Xe,e.left,{operator:"+",left:e.left.left,right:n(bn,null,{value:""+e.left.right.getValue()+e.right.left.getValue(),start:e.left.right.start,end:e.right.left.end})}),right:e.right.right}))),e.right instanceof Xe&&e.right.operator==e.operator&&("&&"==e.operator||"||"==e.operator)?(e.left=n(Xe,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(t)):e.evaluate(t)[0])}),e(mn,function(e,r){function o(e,n){return n instanceof Xe&&"="===n.operator&&n.left===e}if(e.undeclared()&&!o(e,r.parent())){var i=r.option("global_defs");if(i&&i.hasOwnProperty(e.name))return t(r,i[e.name],e);switch(e.name){case"undefined":return n(Dn,e);case"NaN":return n(Sn,e).transform(r);case"Infinity":return n(xn,e).transform(r)}}return e}),e(xn,function(e,t){return n(Xe,e,{operator:"/",left:n(An,e,{value:1}),right:n(An,e,{value:0})})}),e(Dn,function(e,t){if(t.option("unsafe")){var r=t.find_parent(me),o=r.find_variable("undefined");if(o){var i=n(mn,e,{name:"undefined",scope:r,thedef:o});return i.reference(),i}}return e});var S=["+","-","/","*","%",">>","<<",">>>","|","^","&"];e(Ze,function(e,n){return e=e.lift_sequences(n),"="==e.operator&&e.left instanceof mn&&e.right instanceof Xe&&e.right.left instanceof mn&&e.right.left.name==e.left.name&&a(e.right.operator,S)&&(e.operator=e.right.operator+"=",e.right=e.right.right),e}),e(Ke,function(e,o){function i(e){return e instanceof Tn||e instanceof Je&&"!"==e.operator&&e.expression instanceof yn&&!e.expression.value}function a(e){return e instanceof Bn||e instanceof Je&&"!"==e.operator&&e.expression instanceof yn&&!!e.expression.value}if(!o.option("conditionals"))return e;if(e.condition instanceof Ue){var u=e.condition.car;return e.condition=e.condition.cdr,Ue.cons(u,e)}var s=e.condition.evaluate(o);if(s.length>1)return s[1]?(o.warn("Condition always true [{file}:{line},{col}]",e.start),r(o.parent(),e,e.consequent)):(o.warn("Condition always false [{file}:{line},{col}]",e.start),r(o.parent(),e,e.alternative));var c=s[0].negate(o);f(s[0],c)===c&&(e=n(Ke,e,{condition:c,consequent:e.alternative,alternative:e.consequent}));var l=e.consequent,p=e.alternative;if(l instanceof Ze&&p instanceof Ze&&l.operator==p.operator&&l.left.equivalent_to(p.left)&&!l.left.has_side_effects(o))return n(Ze,e,{operator:l.operator,left:l.left,right:n(Ke,e,{condition:e.condition,consequent:l.right,alternative:p.right})});if(l instanceof ze&&p.TYPE===l.TYPE&&l.args.length==p.args.length&&!l.expression.has_side_effects(o)&&l.expression.equivalent_to(p.expression)){if(0==l.args.length)return n(Ue,e,{car:e.condition,cdr:l});if(1==l.args.length)return l.args[0]=n(Ke,e,{condition:e.condition,consequent:l.args[0],alternative:p.args[0]}),l}if(l instanceof Ke&&l.alternative.equivalent_to(p))return n(Ke,e,{condition:n(Xe,e,{left:e.condition,operator:"&&",right:l.condition}),consequent:l.consequent,alternative:p});if(l.is_constant(o)&&p.is_constant(o)&&l.equivalent_to(p)){var d=l.constant_value();return e.condition.has_side_effects(o)?Ue.from_array([e.condition,t(o,d,e)]):t(o,d,e)}return i(l)&&a(p)?e.condition.is_boolean()?e.condition:(e.condition=e.condition.negate(o),n(Je,e.condition,{operator:"!",expression:e.condition})):a(l)&&i(p)?e.condition.negate(o):e}),e(kn,function(e,t){if(t.option("booleans")){var r=t.parent();return r instanceof Xe&&("=="==r.operator||"!="==r.operator)?(t.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:r.operator,value:e.value,file:r.start.file,line:r.start.line,col:r.start.col}),n(An,e,{value:+e.value})):n(Je,e,{operator:"!",expression:n(An,e,{value:1-e.value})})}return e}),e(Ve,function(e,t){var r=e.property;if(r instanceof bn&&t.option("properties")){if(r=r.getValue(),$n(r)?t.option("screw_ie8"):$(r))return n(Ge,e,{expression:e.expression,property:r}).optimize(t);var o=parseFloat(r);isNaN(o)||o.toString()!=r||(e.property=n(An,e.property,{value:o}))}return e}),e(Ge,function(e,t){var r=e.property;return $n(r)&&!t.option("screw_ie8")?n(Ve,e,{expression:e.expression,property:n(bn,e,{value:r})}).optimize(t):e.evaluate(t)[0]}),e(Qe,w),e(en,w),e(wn,w),e(Ce,function(e,n){return e.value instanceof Dn&&(e.value=null),e})}(),function(){function e(e){return"Literal"==e.type?null!=e.raw?e.raw:e.value+"":void 0}function n(n){var t=n.loc,r=t&&t.start,o=n.range;return new Z({file:t&&t.source,line:r&&r.line,col:r&&r.column,pos:o?o[0]:n.start,endline:r&&r.line,endcol:r&&r.column,endpos:o?o[0]:n.start,raw:e(n)})}function r(n){var t=n.loc,r=t&&t.end,o=n.range;return new Z({file:t&&t.source,line:r&&r.line,col:r&&r.column,pos:o?o[1]:n.end,endline:r&&r.line,endcol:r&&r.column,endpos:o?o[1]:n.end,raw:e(n)})}function o(e,o,a){var f="function From_Moz_"+e+"(M){\n";f+="return new U2."+o.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var p="function To_Moz_"+e+"(M){\n";p+="return {\ntype: "+JSON.stringify(e),a&&a.split(/\s*,\s*/).forEach(function(e){var n=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(e);if(!n)throw new Error("Can't understand property map: "+e);var t=n[1],r=n[2],o=n[3];switch(f+=",\n"+o+": ",p+=",\n"+t+": ",r){case"@":f+="M."+t+".map(from_moz)",p+="M."+o+".map(to_moz)";break;case">":f+="from_moz(M."+t+")",p+="to_moz(M."+o+")";break;case"=":f+="M."+t,p+="M."+o;break;case"%":f+="from_moz(M."+t+").body",p+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),f+="\n})\n}",p+="\n}\n}",f=new Function("U2","my_start_token","my_end_token","from_moz","return("+f+")")(t,n,r,i),p=new Function("to_moz","to_moz_block","return("+p+")")(s,c),l[e]=f,u(o,p)}function i(e){f.push(e);var n=null!=e?l[e.type](e):null;return f.pop(),n}function a(e,n,t){var r=e.start,o=e.end;return null!=r.pos&&null!=o.endpos&&(n.range=[r.pos,o.endpos]),r.line&&(n.loc={start:{line:r.line,column:r.col},end:o.endline?{line:o.endline,column:o.endcol}:null},r.file&&(n.loc.source=r.file)),n}function u(e,n){e.DEFMETHOD("to_mozilla_ast",function(){return a(this,n(this))})}function s(e){return null!=e?e.to_mozilla_ast():null}function c(e){return{type:"BlockStatement",body:e.body.map(s)}}var l={ExpressionStatement:function(e){var t=e.expression;return"Literal"===t.type&&"string"==typeof t.value?new te({start:n(e),end:r(e),value:t.value}):new re({start:n(e),end:r(e),body:i(t)})},TryStatement:function(e){var t=e.handlers||[e.handler];if(t.length>1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new $e({start:n(e),end:r(e),body:i(e.block).body,bcatch:i(t[0]),bfinally:e.finalizer?new Le(i(e.finalizer)):null})},Property:function(e){var t=e.key,o="Identifier"==t.type?t.name:t.value,a={start:n(t),end:r(e.value),key:o,value:i(e.value)};switch(e.kind){case"init":return new tn(a);case"set":return a.value.name=i(t),new rn(a);case"get":return a.value.name=i(t),new on(a)}},ObjectExpression:function(e){return new en({start:n(e),end:r(e),properties:e.properties.map(function(e){return e.type="Property",i(e)})})},SequenceExpression:function(e){return Ue.from_array(e.expressions.map(i))},MemberExpression:function(e){return new(e.computed?Ve:Ge)({start:n(e),end:r(e),property:e.computed?i(e.property):e.property.name,expression:i(e.object)})},SwitchCase:function(e){return new(e.test?Me:Oe)({start:n(e),end:r(e),expression:i(e.test),body:e.consequent.map(i)})},VariableDeclaration:function(e){return new("const"===e.kind?qe:Pe)({start:n(e),end:r(e),definitions:e.declarations.map(i)})},Literal:function(e){var t=e.value,o={start:n(e),end:r(e)};if(null===t)return new Cn(o);switch(typeof t){case"string":return o.value=t,new bn(o);case"number":return o.value=t,new An(o);case"boolean":return new(t?Tn:Bn)(o);default:var i=e.regex;return i&&i.pattern?o.value=new RegExp(i.pattern,i.flags).toString():o.value=e.regex&&e.raw?e.raw:t,new wn(o)}},Identifier:function(e){var t=f[f.length-2];return new("LabeledStatement"==t.type?gn:"VariableDeclarator"==t.type&&t.id===e?"const"==t.kind?ln:cn:"FunctionExpression"==t.type?t.id===e?dn:fn:"FunctionDeclaration"==t.type?t.id===e?pn:fn:"CatchClause"==t.type?hn:"BreakStatement"==t.type||"ContinueStatement"==t.type?_n:mn)({start:n(e),end:r(e),name:e.name})}};l.UpdateExpression=l.UnaryExpression=function(e){var t="prefix"in e?e.prefix:"UnaryExpression"==e.type;return new(t?Je:Ye)({start:n(e),end:r(e),operator:e.operator,expression:i(e.argument)})},o("Program",_e,"body@body"),o("EmptyStatement",ae),o("BlockStatement",ie,"body@body"),o("IfStatement",ke,"test>condition, consequent>body, alternate>alternative"),o("LabeledStatement",se,"label>label, body>body"),o("BreakStatement",Fe,"label>label"),o("ContinueStatement",xe,"label>label"),o("WithStatement",ge,"object>expression, body>body"),o("SwitchStatement",Be,"discriminant>expression, cases@body"),o("ReturnStatement",Ce,"argument>value"),o("ThrowStatement",Se,"argument>value"),o("WhileStatement",pe,"test>condition, body>body"),o("DoWhileStatement",fe,"test>condition, body>body"),o("ForStatement",de,"init>init, test>condition, update>step, body>body"),o("ForInStatement",he,"left>init, right>object, body>body"),o("DebuggerStatement",ne),o("FunctionDeclaration",Ae,"id>name, params@argnames, body%body"),o("VariableDeclarator",je,"id>name, init>value"),o("CatchClause",Re,"param>argname, body%body"),o("ThisExpression",vn),o("ArrayExpression",Qe,"elements@elements"),o("FunctionExpression",be,"id>name, params@argnames, body%body"),o("BinaryExpression",Xe,"operator=operator, left>left, right>right"),o("LogicalExpression",Xe,"operator=operator, left>left, right>right"),o("AssignmentExpression",Ze,"operator=operator, left>left, right>right"),o("ConditionalExpression",Ke,"test>condition, consequent>consequent, alternate>alternative"),o("NewExpression",He,"callee>expression, arguments@args"),o("CallExpression",ze,"callee>expression, arguments@args"),u(te,function(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value}}}),u(re,function(e){return{type:"ExpressionStatement",expression:s(e.body)}}),u(Te,function(e){return{type:"SwitchCase",test:s(e.expression),consequent:e.body.map(s)}}),u($e,function(e){return{type:"TryStatement",block:c(e),handler:s(e.bcatch),guardedHandlers:[],finalizer:s(e.bfinally)}}),u(Re,function(e){return{type:"CatchClause",param:s(e.argname),guard:null,body:c(e)}}),u(Ne,function(e){return{type:"VariableDeclaration",kind:e instanceof qe?"const":"var",declarations:e.definitions.map(s)}}),u(Ue,function(e){return{type:"SequenceExpression",expressions:e.to_array().map(s)}}),u(Ie,function(e){var n=e instanceof Ve;return{type:"MemberExpression",object:s(e.expression),computed:n,property:n?s(e.property):{type:"Identifier",name:e.property}}}),u(We,function(e){return{type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof Je,argument:s(e.expression)}}),u(Xe,function(e){return{type:"&&"==e.operator||"||"==e.operator?"LogicalExpression":"BinaryExpression",left:s(e.left),operator:e.operator,right:s(e.right)}}),u(en,function(e){return{type:"ObjectExpression",properties:e.properties.map(s)}}),u(nn,function(e){var n,t=T(e.key)?{type:"Identifier",name:e.key}:{type:"Literal",value:e.key};return e instanceof tn?n="init":e instanceof on?n="get":e instanceof rn&&(n="set"),{type:"Property",kind:n,key:t,value:s(e.value)}}),u(an,function(e){var n=e.definition();return{type:"Identifier",name:n?n.mangled_name||n.name:e.name}}),u(wn,function(e){var n=e.value;return{type:"Literal",value:n,raw:n.toString(),regex:{pattern:n.source,flags:n.toString().match(/[gimuy]*$/)[0]}}}),u(yn,function(e){var n=e.value;return"number"==typeof n&&(0>n||0===n&&0>1/n)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-n,raw:e.start.raw}}:{type:"Literal",value:n,raw:e.start.raw}}),u(En,function(e){return{type:"Identifier",name:String(e.value)}}),kn.DEFMETHOD("to_mozilla_ast",yn.prototype.to_mozilla_ast),Cn.DEFMETHOD("to_mozilla_ast",yn.prototype.to_mozilla_ast),Fn.DEFMETHOD("to_mozilla_ast",function(){return null}),oe.DEFMETHOD("to_mozilla_ast",ie.prototype.to_mozilla_ast),ve.DEFMETHOD("to_mozilla_ast",be.prototype.to_mozilla_ast);var f=null;Q.from_mozilla_ast=function(e){var n=f;f=[];var t=i(e);return f=n,t}}(),t.Compressor=I,t.DefaultsError=c,t.Dictionary=A,t.JS_Parse_Error=L,t.MAP=K,t.OutputStream=U,t.SourceMap=G,t.TreeTransformer=z,t.TreeWalker=C,t.base54=Zn,t.defaults=l,t.mangle_properties=W,t.merge=f,t.parse=j,t.push_uniq=d,t.string_template=h,t.is_identifier=T,t.SymbolDef=H,t.sys=J,t.MOZ_SourceMap=Y,t.UglifyJS=X,t.array_to_hash=r,t.slice=o,t.characters=i,t.member=a,t.find_if=u,t.repeat_string=s,t.DefaultsError=c,t.defaults=l,t.merge=f,t.noop=p,t.MAP=K,t.push_uniq=d,t.string_template=h,t.remove=g,t.mergeSort=m,t.set_difference=_,t.set_intersection=v,t.makePredicate=y,t.all=b,t.Dictionary=A,t.DEFNODE=w,t.AST_Token=Z,t.AST_Node=Q,t.AST_Statement=ee,t.AST_Debugger=ne,t.AST_Directive=te,t.AST_SimpleStatement=re,t.walk_body=E,t.AST_Block=oe,t.AST_BlockStatement=ie,t.AST_EmptyStatement=ae,t.AST_StatementWithBody=ue,t.AST_LabeledStatement=se,t.AST_IterationStatement=ce,t.AST_DWLoop=le,t.AST_Do=fe,t.AST_While=pe,t.AST_For=de,t.AST_ForIn=he,t.AST_With=ge,t.AST_Scope=me,t.AST_Toplevel=_e,t.AST_Lambda=ve,t.AST_Accessor=ye,t.AST_Function=be,t.AST_Defun=Ae,t.AST_Jump=we,t.AST_Exit=Ee,t.AST_Return=Ce,t.AST_Throw=Se,t.AST_LoopControl=De,t.AST_Break=Fe,t.AST_Continue=xe,t.AST_If=ke,t.AST_Switch=Be,t.AST_SwitchBranch=Te,t.AST_Default=Oe,t.AST_Case=Me,t.AST_Try=$e,t.AST_Catch=Re,t.AST_Finally=Le,t.AST_Definitions=Ne,t.AST_Var=Pe,t.AST_Const=qe,t.AST_VarDef=je,t.AST_Call=ze,t.AST_New=He,t.AST_Seq=Ue,t.AST_PropAccess=Ie,t.AST_Dot=Ge,t.AST_Sub=Ve,t.AST_Unary=We,t.AST_UnaryPrefix=Je,t.AST_UnaryPostfix=Ye,t.AST_Binary=Xe,t.AST_Conditional=Ke,t.AST_Assign=Ze,t.AST_Array=Qe,t.AST_Object=en,t.AST_ObjectProperty=nn,t.AST_ObjectKeyVal=tn,t.AST_ObjectSetter=rn,t.AST_ObjectGetter=on,t.AST_Symbol=an,t.AST_SymbolAccessor=un,t.AST_SymbolDeclaration=sn,t.AST_SymbolVar=cn,t.AST_SymbolConst=ln,t.AST_SymbolFunarg=fn,t.AST_SymbolDefun=pn,t.AST_SymbolLambda=dn,t.AST_SymbolCatch=hn,t.AST_Label=gn,t.AST_SymbolRef=mn,t.AST_LabelRef=_n,t.AST_This=vn,t.AST_Constant=yn,t.AST_String=bn,t.AST_Number=An,t.AST_RegExp=wn,t.AST_Atom=En,t.AST_Null=Cn,t.AST_NaN=Sn,t.AST_Undefined=Dn,t.AST_Hole=Fn,t.AST_Infinity=xn,t.AST_Boolean=kn,t.AST_False=Bn,t.AST_True=Tn,t.TreeWalker=C,t.KEYWORDS=On,t.KEYWORDS_ATOM=Mn,t.RESERVED_WORDS=$n,t.KEYWORDS_BEFORE_EXPRESSION=Rn,t.OPERATOR_CHARS=Ln,t.RE_HEX_NUMBER=Nn,t.RE_OCT_NUMBER=Pn,t.OPERATORS=qn,t.WHITESPACE_CHARS=jn,t.PUNC_BEFORE_EXPRESSION=zn,t.PUNC_CHARS=Hn,t.REGEXP_MODIFIERS=Un,t.UNICODE=In,t.is_letter=S,t.is_digit=D,t.is_alphanumeric_char=F,t.is_unicode_digit=x,t.is_unicode_combining_mark=k,t.is_unicode_connector_punctuation=B,t.is_identifier=T,t.is_identifier_start=O,t.is_identifier_char=M,t.is_identifier_string=$,t.parse_js_number=R,t.JS_Parse_Error=L,t.js_error=N,t.is_token=P,t.EX_EOF=Gn,t.tokenizer=q,t.UNARY_PREFIX=Vn,t.UNARY_POSTFIX=Wn,t.ASSIGNMENT=Jn,t.PRECEDENCE=Yn,t.STATEMENTS_WITH_LABELS=Xn,t.ATOMIC_START_TOKEN=Kn,t.parse=j,t.TreeTransformer=z,t.SymbolDef=H,t.base54=Zn,t.OutputStream=U,t.Compressor=I,t.SourceMap=G,t.find_builtins=V,t.mangle_properties=W,t.AST_Node.warn_function=function(e){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e)},t.minify=function(e,n){n=X.defaults(n,{spidermonkey:!1,outSourceMap:null,sourceRoot:null,inSourceMap:null,fromString:!1,warnings:!1,mangle:{},mangleProperties:!1,nameCache:null,output:null,compress:{},parse:{}}),X.base54.reset();var t=null,r={};if(n.spidermonkey?t=X.AST_Node.from_mozilla_ast(e):("string"==typeof e&&(e=[e]),e.forEach(function(e,o){var i=n.fromString?e:fs.readFileSync(e,"utf8");r[e]=i,t=X.parse(i,{filename:n.fromString?o:e,toplevel:t,bare_returns:n.parse?n.parse.bare_returns:void 0})})),n.wrap&&(t=t.wrap_commonjs(n.wrap,n.exportAll)),n.compress){var o={warnings:n.warnings};X.merge(o,n.compress),t.figure_out_scope();var i=X.Compressor(o);t=t.transform(i)}(n.mangleProperties||n.nameCache)&&(n.mangleProperties.cache=X.readNameCache(n.nameCache,"props"),t=X.mangle_properties(t,n.mangleProperties),X.writeNameCache(n.nameCache,"props",n.mangleProperties.cache)),n.mangle&&(t.figure_out_scope(n.mangle),t.compute_char_frequency(n.mangle),t.mangle_names(n.mangle));var a=n.inSourceMap,u={};if("string"==typeof n.inSourceMap&&(a=fs.readFileSync(n.inSourceMap,"utf8")),n.outSourceMap&&(u.source_map=X.SourceMap({file:n.outSourceMap,orig:a,root:n.sourceRoot}),n.sourceMapIncludeSources))for(var s in r)r.hasOwnProperty(s)&&u.source_map.get().setSourceContent(s,r[s]);n.output&&X.merge(u,n.output);var c=X.OutputStream(u);t.print(c),n.outSourceMap&&"string"==typeof n.outSourceMap&&(c+="\n//# sourceMappingURL="+n.outSourceMap);var l=u.source_map;return l&&(l+=""),{code:c+"",map:l}},t.describe_ast=function(){function e(t){n.print("AST_"+t.TYPE);var r=t.SELF_PROPS.filter(function(e){return!/^\$/.test(e)});r.length>0&&(n.space(),n.with_parens(function(){r.forEach(function(e,t){t&&n.space(),n.print(e)})})),t.documentation&&(n.space(),n.print_string(t.documentation)),t.SUBCLASSES.length>0&&(n.space(),n.with_block(function(){t.SUBCLASSES.forEach(function(t,r){n.indent(),e(t),n.newline()})}))}var n=X.OutputStream({beautify:!0});return e(X.AST_Node),n+""}},{"source-map":13,util:16}],15:[function(e,n,t){n.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],16:[function(e,n,t){(function(n,r){function o(e,n){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&t._extend(r,n),A(r.showHidden)&&(r.showHidden=!1),A(r.depth)&&(r.depth=2),A(r.colors)&&(r.colors=!1),A(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),s(r,e,r.depth)}function i(e,n){var t=o.styles[n];return t?"["+o.colors[t][0]+"m"+e+"["+o.colors[t][1]+"m":e}function a(e,n){return e}function u(e){var n={};return e.forEach(function(e,t){n[e]=!0}),n}function s(e,n,r){if(e.customInspect&&n&&D(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return y(o)||(o=s(e,o,r)),o}var i=c(e,n);if(i)return i;var a=Object.keys(n),g=u(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)), +S(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(n);if(0===a.length){if(D(n)){var m=n.name?": "+n.name:"";return e.stylize("[Function"+m+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return l(n)}var _="",v=!1,b=["{","}"];if(h(n)&&(v=!0,b=["[","]"]),D(n)){var A=n.name?": "+n.name:"";_=" [Function"+A+"]"}if(w(n)&&(_=" "+RegExp.prototype.toString.call(n)),C(n)&&(_=" "+Date.prototype.toUTCString.call(n)),S(n)&&(_=" "+l(n)),0===a.length&&(!v||0==n.length))return b[0]+_+b[1];if(0>r)return w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var E;return E=v?f(e,n,r,g,a):a.map(function(t){return p(e,n,r,g,t,v)}),e.seen.pop(),d(E,_,b)}function c(e,n){if(A(n))return e.stylize("undefined","undefined");if(y(n)){var t="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}return v(n)?e.stylize(""+n,"number"):g(n)?e.stylize(""+n,"boolean"):m(n)?e.stylize("null","null"):void 0}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,n,t,r,o){for(var i=[],a=0,u=n.length;u>a;++a)T(n,String(a))?i.push(p(e,n,t,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(p(e,n,t,r,o,!0))}),i}function p(e,n,t,r,o,i){var a,u,c;if(c=Object.getOwnPropertyDescriptor(n,o)||{value:n[o]},c.get?u=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(u=e.stylize("[Setter]","special")),T(r,o)||(a="["+o+"]"),u||(e.seen.indexOf(c.value)<0?(u=m(t)?s(e,c.value,null):s(e,c.value,t-1),u.indexOf("\n")>-1&&(u=i?u.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return" "+e}).join("\n"))):u=e.stylize("[Circular]","special")),A(a)){if(i&&o.match(/^\d+$/))return u;a=JSON.stringify(""+o),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+": "+u}function d(e,n,t){var r=0,o=e.reduce(function(e,n){return r++,n.indexOf("\n")>=0&&r++,e+n.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?t[0]+(""===n?"":n+"\n ")+" "+e.join(",\n ")+" "+t[1]:t[0]+n+" "+e.join(", ")+" "+t[1]}function h(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function m(e){return null===e}function _(e){return null==e}function v(e){return"number"==typeof e}function y(e){return"string"==typeof e}function b(e){return"symbol"==typeof e}function A(e){return void 0===e}function w(e){return E(e)&&"[object RegExp]"===x(e)}function E(e){return"object"==typeof e&&null!==e}function C(e){return E(e)&&"[object Date]"===x(e)}function S(e){return E(e)&&("[object Error]"===x(e)||e instanceof Error)}function D(e){return"function"==typeof e}function F(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function x(e){return Object.prototype.toString.call(e)}function k(e){return 10>e?"0"+e.toString(10):e.toString(10)}function B(){var e=new Date,n=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],n].join(" ")}function T(e,n){return Object.prototype.hasOwnProperty.call(e,n)}var O=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var n=[],t=0;t=i)return e;switch(e){case"%s":return String(r[t++]);case"%d":return Number(r[t++]);case"%j":try{return JSON.stringify(r[t++])}catch(n){return"[Circular]"}default:return e}}),u=r[t];i>t;u=r[++t])a+=m(u)||!E(u)?" "+u:" "+o(u);return a},t.deprecate=function(e,o){function i(){if(!a){if(n.throwDeprecation)throw new Error(o);n.traceDeprecation?console.trace(o):console.error(o),a=!0}return e.apply(this,arguments)}if(A(r.process))return function(){return t.deprecate(e,o).apply(this,arguments)};if(n.noDeprecation===!0)return e;var a=!1;return i};var M,$={};t.debuglog=function(e){if(A(M)&&(M=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!$[e])if(new RegExp("\\b"+e+"\\b","i").test(M)){var r=n.pid;$[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else $[e]=function(){};return $[e]},t.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=g,t.isNull=m,t.isNullOrUndefined=_,t.isNumber=v,t.isString=y,t.isSymbol=b,t.isUndefined=A,t.isRegExp=w,t.isObject=E,t.isDate=C,t.isError=S,t.isFunction=D,t.isPrimitive=F,t.isBuffer=e("./support/isBuffer");var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];t.log=function(){console.log("%s - %s",B(),t.format.apply(t,arguments))},t.inherits=e("inherits"),t._extend=function(e,n){if(!n||!E(n))return e;for(var t=Object.keys(n),r=t.length;r--;)e[t[r]]=n[t[r]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":15,_process:2,inherits:1}]},{},[14])(14)}); \ No newline at end of file diff --git a/assets/uglify.js b/assets/uglify.js deleted file mode 100644 index e68ec40..0000000 --- a/assets/uglify.js +++ /dev/null @@ -1,4 +0,0 @@ -!function(n,e){"use strict";function t(n){for(var e=Object.create(null),t=0;t=0;)if(e[t]==n)return!0;return!1}function o(n,e){for(var t=0,r=e.length;r>t;++t)if(n(e[t]))return e[t]}function a(n,e){if(0>=e)return"";if(1==e)return n;var t=a(n,e>>1);return t+=t,1&e&&(t+=n),t}function u(n,e){Error.call(this,n),this.msg=n,this.defs=e}function s(n,e,t){n===!0&&(n={});var r=n||{};if(t)for(var i in r)r.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&u.croak("`"+i+"` is not a supported option",e);for(var i in e)e.hasOwnProperty(i)&&(r[i]=n&&n.hasOwnProperty(i)?n[i]:e[i]);return r}function c(n,e){var t=0;for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r],t++);return t}function f(){}function l(n,e){n.indexOf(e)<0&&n.push(e)}function p(n,e){return n.replace(/\{(.+?)\}/g,function(n,t){return e[t]})}function d(n,e){for(var t=n.length;--t>=0;)n[t]===e&&n.splice(t,1)}function h(n,e){function t(n,t){for(var r=[],i=0,o=0,a=0;i3){r.sort(function(n,e){return e.length-n.length}),t+="switch(str.length){";for(var i=0;i=0;)if(!e(n[t]))return!1;return!0}function _(){this._values=Object.create(null),this._size=0}function g(e,t,r,i){arguments.length<4&&(i=Y),t=t?t.split(/\s+/):[];var o=t;i&&i.PROPS&&(t=t.concat(i.PROPS));for(var a="return function AST_"+e+"(props){ if (props) { ",u=t.length;--u>=0;)a+="this."+t[u]+" = props."+t[u]+";";var s=i&&new i;(s&&s.initialize||r&&r.initialize)&&(a+="this.initialize();"),a+="}}";var c=new Function(a)();if(s&&(c.prototype=s,c.BASE=i),i&&i.SUBCLASSES.push(c),c.prototype.CTOR=c,c.PROPS=t||null,c.SELF_PROPS=o,c.SUBCLASSES=[],e&&(c.prototype.TYPE=c.TYPE=e),r)for(u in r)r.hasOwnProperty(u)&&(/^\$/.test(u)?c[u.substr(1)]=r[u]:c.prototype[u]=r[u]);return c.DEFMETHOD=function(n,e){this.prototype[n]=e},n["AST_"+e]=c,c}function b(n,e){n.body instanceof W?n.body._walk(e):n.body.forEach(function(n){n._walk(e)})}function y(n){this.visit=n,this.stack=[],this.directives=Object.create(null)}function A(n){return n>=97&&122>=n||n>=65&&90>=n||n>=170&&ze.letter.test(String.fromCharCode(n))}function w(n){return n>=48&&57>=n}function E(n){return w(n)||A(n)}function D(n){return ze.digit.test(String.fromCharCode(n))}function F(n){return ze.non_spacing_mark.test(n)||ze.space_combining_mark.test(n)}function x(n){return ze.connector_punctuation.test(n)}function k(n){return!ke(n)&&/^[a-z_$][a-z0-9_$]*$/i.test(n)}function C(n){return 36==n||95==n||A(n)}function B(n){var e=n.charCodeAt(0);return C(e)||w(e)||8204==e||8205==e||F(n)||x(n)||D(e)}function S(n){return/^[a-z_$][a-z0-9_$]*$/i.test(n)}function T(n){if(Se.test(n))return parseInt(n.substr(2),16);if(Te.test(n))return parseInt(n.substr(1),8);var e=parseFloat(n);return e==n?e:void 0}function $(n,e,t,r,i){this.message=n,this.filename=e,this.line=t,this.col=r,this.pos=i,this.stack=(new Error).stack}function O(n,e,t,r,i){throw new $(n,e,t,r,i)}function q(n,e,t){return n.type==e&&(null==t||n.value==t)}function M(n,e,t,r){function i(){return k.text.charAt(k.pos)}function o(n,e){var t=k.text.charAt(k.pos++);if(n&&!t)throw He;return"\r\n\u2028\u2029".indexOf(t)>=0?(k.newline_before=k.newline_before||!e,++k.line,k.col=0,e||"\r"!=t||"\n"!=i()||(++k.pos,t="\n")):++k.col,t}function a(n){for(;n-- >0;)o()}function u(n){return k.text.substr(k.pos,n.length)==n}function s(n,e){var t=k.text.indexOf(n,k.pos);if(e&&-1==t)throw He;return t}function c(){k.tokline=k.line,k.tokcol=k.col,k.tokpos=k.pos}function f(t,r,i){k.regex_allowed="operator"==t&&!je(r)||"keyword"==t&&Ce(r)||"punc"==t&&qe(r),S="punc"==t&&"."==r;var o={type:t,value:r,line:k.tokline,col:k.tokcol,pos:k.tokpos,endline:k.line,endcol:k.col,endpos:k.pos,nlb:k.newline_before,file:e};if(/^(?:num|string|regexp)$/i.test(t)&&(o.raw=n.substring(o.pos,o.endpos)),!i){o.comments_before=k.comments_before,k.comments_before=[];for(var a=0,u=o.comments_before.length;u>a;a++)o.nlb=o.nlb||o.comments_before[a].nlb}return k.newline_before=!1,new V(o)}function l(){for(var n;Oe(n=i())||"\u2028"==n||"\u2029"==n;)o()}function p(n){for(var e,t="",r=0;(e=i())&&n(e,r++);)t+=o();return t}function d(n){O(n,e,k.tokline,k.tokcol,k.tokpos)}function h(n){var e=!1,t=!1,r=!1,i="."==n,o=p(function(o,a){var u=o.charCodeAt(0);switch(u){case 120:case 88:return r?!1:r=!0;case 101:case 69:return r?!0:e?!1:e=t=!0;case 45:return t||0==a&&!n;case 43:return t;case t=!1,46:return i||r||e?!1:i=!0}return E(u)});n&&(o=n+o);var a=T(o);return isNaN(a)?void d("Invalid syntax: "+o):f("num",a)}function v(n){var e=o(!0,n);switch(e.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return" ";case 98:return"\b";case 118:return"\x0B";case 102:return"\f";case 48:return"\x00";case 120:return String.fromCharCode(m(2));case 117:return String.fromCharCode(m(4));case 10:return"";case 13:if("\n"==i())return o(!0,n),""}return e}function m(n){for(var e=0;n>0;--n){var t=parseInt(o(!0),16);isNaN(t)&&d("Invalid hex-character pattern in string"),e=e<<4|t}return e}function _(n){var e,t=k.regex_allowed,r=s("\n");return-1==r?(e=k.text.substr(k.pos),k.pos=k.text.length):(e=k.text.substring(k.pos,r),k.pos=r),k.col=k.tokcol+(k.pos-k.tokpos),k.comments_before.push(f(n,e,!0)),k.regex_allowed=t,x()}function g(){for(var n,e,t=!1,r="",a=!1;null!=(n=i());)if(t)"u"!=n&&d("Expecting UnicodeEscapeSequence -- uXXXX"),n=v(),B(n)||d("Unicode char: "+n.charCodeAt(0)+" is not valid in identifier"),r+=n,t=!1;else if("\\"==n)a=t=!0,o();else{if(!B(n))break;r+=o()}return Fe(r)&&a&&(e=r.charCodeAt(0).toString(16).toUpperCase(),r="\\u"+"0000".substr(e.length)+e+r.slice(1)),r}function b(n){function e(n){if(!i())return n;var t=n+i();return $e(t)?(o(),e(t)):n}return f("operator",e(n||o()))}function y(){switch(o(),i()){case"/":return o(),_("comment1");case"*":return o(),q()}return k.regex_allowed?M(""):b("/")}function A(){return o(),w(i().charCodeAt(0))?h("."):f("punc",".")}function D(){var n=g();return S?f("name",n):xe(n)?f("atom",n):Fe(n)?$e(n)?f("operator",n):f("keyword",n):f("name",n)}function F(n,e){return function(t){try{return e(t)}catch(r){if(r!==He)throw r;d(n)}}}function x(n){if(null!=n)return M(n);if(l(),c(),t){if(u("")&&k.newline_before)return a(3),_("comment4")}var e=i();if(!e)return f("eof");var s=e.charCodeAt(0);switch(s){case 34:case 39:return $(e);case 46:return A();case 47:return y()}return w(s)?h():Me(e)?f("punc",o()):Be(e)?b():92==s||C(s)?D():r&&0==k.pos&&u("#!")?(a(2),_("comment5")):void d("Unexpected character '"+e+"'")}var k={text:n,filename:e,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,comments_before:[]},S=!1,$=F("Unterminated string constant",function(n){for(var e=o(),t="";;){var r=o(!0,!0);if("\\"==r){var i=0,a=null;r=p(function(n){if(n>="0"&&"7">=n){if(!a)return a=n,++i;if("3">=a&&2>=i)return++i;if(a>="4"&&1>=i)return++i}return!1}),r=i>0?String.fromCharCode(parseInt(r,8)):v(!0)}else if("\r\n\u2028\u2029".indexOf(r)>=0)d("Unterminated string constant");else if(r==e)break;t+=r}var u=f("string",t);return u.quote=n,u}),q=F("Unterminated multiline comment",function(){var n=k.regex_allowed,e=s("*/",!0),t=k.text.substring(k.pos,e),r=t.split("\n"),i=r.length;k.pos=e+2,k.line+=i-1,i>1?k.col=r[i-1].length:k.col+=r[i-1].length,k.col+=2;var o=k.newline_before=k.newline_before||t.indexOf("\n")>=0;return k.comments_before.push(f("comment2",t,!0)),k.regex_allowed=n,k.newline_before=o,x()}),M=F("Unterminated regular expression",function(n){for(var e,t=!1,r=!1;e=o(!0);)if(t)n+="\\"+e,t=!1;else if("["==e)r=!0,n+=e;else if("]"==e&&r)r=!1,n+=e;else{if("/"==e&&!r)break;"\\"==e?t=!0:n+=e}var i=g();try{return f("regexp",new RegExp(n,i))}catch(a){d(a.message)}});return x.context=function(n){return n&&(k=n),k},x}function z(n,e){function t(n,e){return q(L.token,n,e)}function r(){return L.peeked||(L.peeked=L.input())}function i(){return L.prev=L.token,L.peeked?(L.token=L.peeked,L.peeked=null):L.token=L.input(),L.in_directives=L.in_directives&&("string"==L.token.type||t("punc",";")),L.token}function a(){return L.prev}function u(n,e,t,r){var i=L.input.context();O(n,i.filename,null!=e?e:i.tokline,null!=t?t:i.tokcol,null!=r?r:i.tokpos)}function c(n,e){u(e,n.line,n.col)}function f(n){null==n&&(n=L.token),c(n,"Unexpected token: "+n.type+" ("+n.value+")")}function l(n,e){return t(n,e)?i():void c(L.token,"Unexpected token "+L.token.type+" «"+L.token.value+"», expected "+n+" «"+e+"»")}function p(n){return l("punc",n)}function d(){return!e.strict&&(L.token.nlb||t("eof")||t("punc","}"))}function h(n){t("punc",";")?i():n||d()||f()}function v(){p("(");var n=Rn(!0);return p(")"),n}function m(n){return function(){var e=L.token,t=n(),r=a();return t.start=e,t.end=r,t}}function _(){(t("operator","/")||t("operator","/="))&&(L.peeked=null,L.token=L.input(L.token.value.substr(1)))}function g(){var n=j(se);o(function(e){return e.name==n.name},L.labels)&&u("Label "+n.name+" defined twice"),p(":"),L.labels.push(n);var e=V();return L.labels.pop(),e instanceof tn||n.references.forEach(function(e){e instanceof wn&&(e=e.label.start,u("Continue label `"+n.name+"` refers to non-IterationStatement.",e.line,e.col,e.pos))}),new en({body:e,label:n})}function b(n){return new X({body:(n=Rn(!0),h(),n)})}function y(n){var e,t=null;d()||(t=j(fe,!0)),null!=t?(e=o(function(n){return n.name==t.name},L.labels),e||u("Undefined label "+t.name),t.thedef=e):0==L.in_loop&&u(n.TYPE+" not inside a loop or switch"),h();var r=new n({label:t});return e&&e.references.push(r),r}function A(){p("(");var n=null;return!t("punc",";")&&(n=t("keyword","var")?(i(),W(!0)):Rn(!0,!0),t("operator","in"))?(n instanceof $n&&n.definitions.length>1&&u("Only one variable declaration allowed in for..in loop"),i(),E(n)):w(n)}function w(n){p(";");var e=t("punc",";")?null:Rn(!0);p(";");var r=t("punc",")")?null:Rn(!0);return p(")"),new un({init:n,condition:e,step:r,body:U(V)})}function E(n){var e=n instanceof $n?n.definitions[0].name:null,t=Rn(!0);return p(")"),new sn({init:n,name:e,object:t,body:U(V)})}function D(){var n=v(),e=V(),r=null;return t("keyword","else")&&(i(),r=V()),new En({condition:n,body:e,alternative:r})}function F(){p("{");for(var n=[];!t("punc","}");)t("eof")&&f(),n.push(V());return i(),n}function x(){p("{");for(var n,e=[],r=null,o=null;!t("punc","}");)t("eof")&&f(),t("keyword","case")?(o&&(o.end=a()),r=[],o=new kn({start:(n=L.token,i(),n),expression:Rn(!0),body:r}),e.push(o),p(":")):t("keyword","default")?(o&&(o.end=a()),r=[],o=new xn({start:(n=L.token,i(),p(":"),n),body:r}),e.push(o)):(r||f(),r.push(V()));return o&&(o.end=a()),i(),e}function k(){var n=F(),e=null,r=null;if(t("keyword","catch")){var o=L.token;i(),p("(");var s=j(ue);p(")"),e=new Bn({start:o,argname:s,body:F(),end:a()})}if(t("keyword","finally")){var o=L.token;i(),r=new Sn({start:o,body:F(),end:a()})}return e||r||u("Missing catch/finally blocks"),new Cn({body:n,bcatch:e,bfinally:r})}function C(n,e){for(var r=[];r.push(new qn({start:L.token,name:j(e?re:te),value:t("operator","=")?(i(),Rn(!1,n)):null,end:a()})),t("punc",",");)i();return r}function B(){var n,e=L.token;switch(e.type){case"name":case"keyword":n=N(ce);break;case"num":n=new he({start:e,end:e,value:e.value});break;case"string":n=new de({start:e,end:e,value:e.value,quote:e.quote});break;case"regexp":n=new ve({start:e,end:e,value:e.value});break;case"atom":switch(e.value){case"false":n=new Ee({start:e,end:e});break;case"true":n=new De({start:e,end:e});break;case"null":n=new _e({start:e,end:e})}break;case"operator":if(!S(e.value))throw new $("Invalid getter/setter name: "+e.value,e.file,e.line,e.col,e.pos);n=N(ce)}return i(),n}function T(n,e,r){for(var o=!0,a=[];!t("punc",n)&&(o?o=!1:p(","),!e||!t("punc",n));)t("punc",",")&&r?a.push(new ye({start:L.token,end:L.token})):a.push(Rn(!1));return i(),a}function z(){var n=L.token;switch(i(),n.type){case"num":case"string":case"name":case"operator":case"keyword":case"atom":return n.value;default:f()}}function H(){var n=L.token;switch(i(),n.type){case"name":case"operator":case"keyword":case"atom":return n.value;default:f()}}function N(n){var e=L.token.value;return new("this"==e?le:n)({name:String(e),start:L.token,end:L.token})}function j(n,e){if(!t("name"))return e||u("Name expected"),null;var r=N(n);return i(),r}function P(n,e,t){return"++"!=e&&"--"!=e||I(t)||u("Invalid use of "+e+" operator"),new n({operator:e,expression:t})}function R(n){return yn(_n(!0),0,n)}function I(n){return e.strict?n instanceof le?!1:n instanceof Nn||n instanceof Qn:!0}function U(n){++L.in_loop;var e=n();return--L.in_loop,e}e=s(e,{strict:!1,filename:null,toplevel:null,expression:!1,html5_comments:!0,bare_returns:!1,shebang:!0});var L={input:"string"==typeof n?M(n,e.filename,e.html5_comments,e.shebang):n,token:null,prev:null,peeked:null,in_function:0,in_directives:!0,in_loop:0,labels:[]};L.token=i();var V=m(function(){var n;switch(_(),L.token.type){case"string":var o=L.in_directives,s=b();return o&&s.body instanceof de&&!t("punc",",")?new G({start:s.body.start,end:s.body.end,quote:s.body.quote,value:s.body.value}):s;case"num":case"regexp":case"operator":case"atom":return b();case"name":return q(r(),"punc",":")?g():b();case"punc":switch(L.token.value){case"{":return new Z({start:L.token,body:F(),end:a()});case"[":case"(":return b();case";":return i(),new Q;default:f()}case"keyword":switch(n=L.token.value,i(),n){case"break":return y(An);case"continue":return y(wn);case"debugger":return h(),new J;case"do":return new on({body:U(V),condition:(l("keyword","while"),n=v(),h(!0),n)});case"while":return new an({condition:v(),body:U(V)});case"for":return A();case"function":return Y(vn);case"if":return D();case"return":return 0!=L.in_function||e.bare_returns||u("'return' outside of function"),new gn({value:t("punc",";")?(i(),null):d()?null:(n=Rn(!0),h(),n)});case"switch":return new Dn({expression:v(),body:U(x)});case"throw":return L.token.nlb&&u("Illegal newline after 'throw'"),new bn({value:(n=Rn(!0),h(),n)});case"try":return k();case"var":return n=W(),h(),n;case"const":return n=K(),h(),n;case"with":return new cn({expression:v(),body:V()});default:f()}}}),Y=function(n){var e=n===vn,r=t("name")?j(e?oe:ae):null;return e&&!r&&f(),p("("),new n({name:r,argnames:function(n,e){for(;!t("punc",")");)n?n=!1:p(","),e.push(j(ie));return i(),e}(!0,[]),body:function(n,e){++L.in_function,L.in_directives=!0,L.in_loop=0,L.labels=[];var t=F();return--L.in_function,L.in_loop=n,L.labels=e,t}(L.in_loop,L.labels)})},W=function(n){return new $n({start:a(),definitions:C(n,!1),end:a()})},K=function(){return new On({start:a(),definitions:C(!1,!0),end:a()})},nn=function(n){var e=L.token;l("operator","new");var r,o=rn(!1);return t("punc","(")?(i(),r=T(")")):r=[],mn(new zn({start:e,expression:o,args:r,end:a()}),n)},rn=function(n){if(t("operator","new"))return nn(n);var e=L.token;if(t("punc")){switch(e.value){case"(":i();var r=Rn(!0);return r.start=e,r.end=L.token,p(")"),mn(r,n);case"[":return mn(fn(),n);case"{":return mn(pn(),n)}f()}if(t("keyword","function")){i();var o=Y(hn);return o.start=e,o.end=a(),mn(o,n)}return Ie[L.token.type]?mn(B(),n):void f()},fn=m(function(){return p("["),new Wn({elements:T("]",!e.strict,!0)})}),pn=m(function(){p("{");for(var n=!0,r=[];!t("punc","}")&&(n?n=!1:p(","),e.strict||!t("punc","}"));){var o=L.token,u=o.type,s=z();if("name"==u&&!t("punc",":")){if("get"==s){r.push(new Zn({start:o,key:B(),value:Y(dn),end:a()}));continue}if("set"==s){r.push(new Kn({start:o,key:B(),value:Y(dn),end:a()}));continue}}p(":"),r.push(new Xn({start:o,quote:o.quote,key:s,value:Rn(!1),end:a()}))}return i(),new Jn({properties:r})}),mn=function(n,e){var r=n.start;if(t("punc","."))return i(),mn(new jn({start:r,expression:n,property:H(),end:a()}),e);if(t("punc","[")){i();var o=Rn(!0);return p("]"),mn(new Pn({start:r,expression:n,property:o,end:a()}),e)}return e&&t("punc","(")?(i(),mn(new Mn({start:r,expression:n,args:T(")"),end:a()}),!0)):n},_n=function(n){var e=L.token;if(t("operator")&&Ne(e.value)){i(),_();var r=P(In,e.value,_n(n));return r.start=e,r.end=a(),r}for(var o=rn(n);t("operator")&&je(L.token.value)&&!L.token.nlb;)o=P(Un,L.token.value,o),o.start=e,o.end=L.token,i();return o},yn=function(n,e,r){var o=t("operator")?L.token.value:null;"in"==o&&r&&(o=null);var a=null!=o?Re[o]:null;if(null!=a&&a>e){i();var u=yn(_n(!0),a,r);return yn(new Ln({start:n.start,left:n,operator:o,right:u,end:u.end}),e,r)}return n},Fn=function(n){var e=L.token,r=R(n);if(t("operator","?")){i();var o=Rn(!1);return p(":"),new Vn({start:e,condition:r,consequent:o,alternative:Rn(!1,n),end:a()})}return r},Tn=function(n){var e=L.token,r=Fn(n),o=L.token.value;if(t("operator")&&Pe(o)){if(I(r))return i(),new Yn({start:e,left:r,operator:o,right:Tn(n),end:a()});u("Invalid assignment")}return r},Rn=function(n,e){var o=L.token,a=Tn(e);return n&&t("punc",",")?(i(),new Hn({start:o,car:a,cdr:Rn(!0,e),end:r()})):a};return e.expression?Rn(!0):function(){for(var n=L.token,r=[];!t("eof");)r.push(V());var i=a(),o=e.toplevel;return o?(o.body=o.body.concat(r),o.end=i):o=new ln({start:n,body:r,end:i}),o}()}function H(n,e){y.call(this),this.before=n,this.after=e}function N(n,e,t){this.name=t.name,this.orig=[t],this.scope=n,this.references=[],this.global=!1,this.mangled_name=null,this.undeclared=!1,this.constant=!1,this.index=e}function j(n){function e(n,e){return n.replace(/[\u0080-\uffff]/g,function(n){var t=n.charCodeAt(0).toString(16);if(t.length<=2&&!e){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t})}function t(t,r){function i(){return"'"+t.replace(/\x27/g,"\\'")+"'"}function o(){return'"'+t.replace(/\x22/g,'\\"')+'"'}var a=0,u=0;switch(t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(e){switch(e){case"\\":return"\\\\";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\x0B":return n.screw_ie8?"\\v":"\\x0B";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case'"':return++a,'"';case"'":return++u,"'";case"\x00":return"\\x00";case"\ufeff":return"\\ufeff"}return e}),n.ascii_only&&(t=e(t)),n.quote_style){case 1:return i();case 2:return o();case 3:return"'"==r?i():o();default:return a>u?i():o()}}function r(e,r){var i=t(e,r);return n.inline_script&&(i=i.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1"),i=i.replace(/\x3c!--/g,"\\x3c!--"),i=i.replace(/--\x3e/g,"--\\x3e")),i}function i(t){return t=t.toString(),n.ascii_only&&(t=e(t,!0)),t}function o(e){return a(" ",n.indent_start+A-e*n.indent_level)}function u(){return C.charAt(C.length-1)}function c(){n.max_line_len&&w>n.max_line_len&&l("\n")}function l(e){e=String(e);var t=e.charAt(0);if(k&&(k=!1,t&&!(";}".indexOf(t)<0)||/[;]$/.test(C)||(n.semicolons||S(t)?(F+=";",w++,D++):(F+="\n",D++,E++,w=0,/^\s+$/.test(e)&&(k=!0)),n.beautify||(x=!1))),!n.beautify&&n.preserve_line&&H[H.length-1])for(var r=H[H.length-1].start.line;r>E;)F+="\n",D++,E++,w=0,x=!1;if(x){var i=u();(B(i)&&(B(t)||"\\"==t)||/^[\+\-\/]$/.test(t)&&t==i)&&(F+=" ",w++,D++),x=!1}var o=e.split(/\r?\n/),a=o.length-1;E+=a,0==a?w+=o[a].length:w=o[a].length,D+=e.length,C=e,F+=e}function p(){k=!1,l(";")}function d(){return A+n.indent_level}function h(n){var e;return l("{"),q(),O(d(),function(){e=n()}),$(),l("}"),e}function m(n){l("(");var e=n();return l(")"),e}function _(n){l("[");var e=n();return l("]"),e}function g(){l(","),T()}function b(){l(":"),n.space_colon&&T()}function y(){return F}n=s(n,{indent_start:0,indent_level:4,quote_keys:!1,space_colon:!0,ascii_only:!1,unescape_regexps:!1,inline_script:!1,width:80,max_line_len:32e3,beautify:!1,source_map:null,bracketize:!1,semicolons:!0,comments:!1,shebang:!0,preserve_line:!1,screw_ie8:!1,preamble:null,quote_style:0},!0);var A=0,w=0,E=1,D=0,F="",x=!1,k=!1,C=null,S=v("( [ + * / - , ."),T=n.beautify?function(){l(" ")}:function(){x=!0},$=n.beautify?function(e){n.beautify&&l(o(e?.5:0))}:f,O=n.beautify?function(n,e){n===!0&&(n=d());var t=A;A=n;var r=e();return A=t,r}:function(n,e){return e()},q=n.beautify?function(){l("\n")}:c,M=n.beautify?function(){l(";")}:function(){k=!0},z=n.source_map?function(e,t){try{e&&n.source_map.add(e.file||"?",E,w,e.line,e.col,t||"name"!=e.type?t:e.value)}catch(r){Y.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:e.file,line:e.line,col:e.col,cline:E,ccol:w,name:t||""})}}:f;n.preamble&&l(n.preamble.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"));var H=[];return{get:y,toString:y,indent:$,indentation:function(){return A},current_width:function(){return w-A},should_break:function(){return n.width&&this.current_width()>=n.width},newline:q,print:l,space:T,comma:g,colon:b,last:function(){return C},semicolon:M,force_semicolon:p,to_ascii:e,print_name:function(n){l(i(n))},print_string:function(n,e){l(r(n,e))},next_indent:d,with_indent:O,with_block:h,with_parens:m,with_square:_,add_mapping:z,option:function(e){return n[e]},line:function(){return E},col:function(){return w},pos:function(){return D},push_node:function(n){H.push(n)},pop_node:function(){return H.pop()},stack:function(){return H},parent:function(n){return H[H.length-2-(n||0)]}}}function P(n,e){return this instanceof P?(H.call(this,this.before,this.after),void(this.options=s(n,{sequences:!e,properties:!e,dead_code:!e,drop_debugger:!e,unsafe:!1,unsafe_comps:!1,conditionals:!e,comparisons:!e,evaluate:!e,booleans:!e,loops:!e,unused:!e,hoist_funs:!e,keep_fargs:!0,keep_fnames:!1,hoist_vars:!1,if_return:!e,join_vars:!e,collapse_vars:!1,cascade:!e,side_effects:!e,pure_getters:!1,pure_funcs:null,negate_iife:!e,screw_ie8:!1,drop_console:!1,angular:!1,warnings:!0,global_defs:{}},!0))):new P(n,e)}function R(n){function e(e,i,o,a,u,s){if(r){var c=r.originalPositionFor({line:a,column:u});if(null===c.source)return;e=c.source,a=c.line,u=c.column,s=c.name||s}t.addMapping({generated:{line:i+n.dest_line_diff,column:o},original:{line:a+n.orig_line_diff,column:u},source:e,name:s})}n=s(n,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var t=new MOZ_SourceMap.SourceMapGenerator({file:n.file,sourceRoot:n.root}),r=n.orig&&new MOZ_SourceMap.SourceMapConsumer(n.orig);return{add:e,get:function(){return t},toString:function(){return JSON.stringify(t.toJSON())}}}function I(){function n(n){l(e,n)}var e=[];return[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(e){Object.getOwnPropertyNames(e).map(n),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(n)}),e}function U(n,e){function t(n){return h.indexOf(n)>=0?!1:c.indexOf(n)>=0?!1:e.only_cache?f.props.has(n):!/^[0-9.]+$/.test(n)}function r(n){return p&&!p.test(n)?!1:c.indexOf(n)>=0?!1:f.props.has(n)||d.indexOf(n)>=0}function i(n){t(n)&&l(d,n),r(n)||l(h,n)}function o(n){if(!r(n))return n;var e=f.props.get(n);if(!e){do e=Ue(++f.cname);while(!t(e));f.props.set(n,e)}return e}function a(n){var e={};try{!function r(n){n.walk(new y(function(n){if(n instanceof Hn)return r(n.cdr),!0;if(n instanceof de)return i(n.value),!0;if(n instanceof Vn)return r(n.consequent),r(n.alternative),!0;throw e}))}(n)}catch(t){if(t!==e)throw t}}function u(n){return n.transform(new H(function(n){return n instanceof Hn?n.cdr=u(n.cdr):n instanceof de?n.value=o(n.value):n instanceof Vn&&(n.consequent=u(n.consequent),n.alternative=u(n.alternative)),n}))}e=s(e,{reserved:null,cache:null,only_cache:!1,regex:null});var c=e.reserved;null==c&&(c=I());var f=e.cache;null==f&&(f={cname:-1,props:new _});var p=e.regex,d=[],h=[];return n.walk(new y(function(n){n instanceof Xn?i(n.key):n instanceof Gn?i(n.key.name):n instanceof jn?this.parent()instanceof Yn&&i(n.property):n instanceof Pn&&this.parent()instanceof Yn&&a(n.property)})),n.transform(new H(function(n){n instanceof Xn?n.key=o(n.key):n instanceof Gn?n.key.name=o(n.key.name):n instanceof jn?n.property=o(n.property):n instanceof Pn&&(n.property=u(n.property))}))}u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u.croak=function(n,e){throw new u(n,e)};var L=function(){function n(n,o,a){function u(){var u=o(n[s],s),l=u instanceof r;return l&&(u=u.v),u instanceof e?(u=u.v,u instanceof t?f.push.apply(f,a?u.v.slice().reverse():u.v):f.push(u)):u!==i&&(u instanceof t?c.push.apply(c,a?u.v.slice().reverse():u.v):c.push(u)),l}var s,c=[],f=[];if(n instanceof Array)if(a){for(s=n.length;--s>=0&&!u(););c.reverse(),f.reverse()}else for(s=0;s SymbolDef for all variables/functions defined in this scope",functions:"[Object/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"}},K),ln=g("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_enclose:function(n){var e=this,t=[],r=[];n.forEach(function(n){var e=n.lastIndexOf(":");t.push(n.substr(0,e)),r.push(n.substr(e+1))});var i="(function("+r.join(",")+"){ '$ORIG'; })("+t.join(",")+")";return i=z(i),i=i.transform(new H(function(n){return n instanceof G&&"$ORIG"==n.value?L.splice(e.body):void 0}))},wrap_commonjs:function(n,e){var t=this,r=[];e&&(t.figure_out_scope(),t.walk(new y(function(n){n instanceof ee&&n.definition().global&&(o(function(e){return e.name==n.name},r)||r.push(n))})));var i="(function(exports, global){ '$ORIG'; '$EXPORTS'; global['"+n+"'] = exports; }({}, (function(){return this}())))";return i=z(i),i=i.transform(new H(function(n){if(n instanceof G)switch(n.value){case"$ORIG":return L.splice(t.body);case"$EXPORTS":var e=[];return r.forEach(function(n){e.push(new X({body:new Yn({left:new Pn({expression:new ce({name:"exports"}),property:new de({value:n.name})}),operator:"=",right:new ce(n)})}))}),L.splice(e)}}))}},fn),pn=g("Lambda","name argnames uses_arguments",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg*] array of function arguments", -uses_arguments:"[boolean/S] tells whether this function accesses the arguments array"},_walk:function(n){return n._visit(this,function(){this.name&&this.name._walk(n),this.argnames.forEach(function(e){e._walk(n)}),b(this,n)})}},fn),dn=g("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},pn),hn=g("Function",null,{$documentation:"A function expression"},pn),vn=g("Defun",null,{$documentation:"A function definition"},pn),mn=g("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},W),_n=g("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(n){return n._visit(this,this.value&&function(){this.value._walk(n)})}},mn),gn=g("Return",null,{$documentation:"A `return` statement"},_n),bn=g("Throw",null,{$documentation:"A `throw` statement"},_n),yn=g("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(n){return n._visit(this,this.label&&function(){this.label._walk(n)})}},mn),An=g("Break",null,{$documentation:"A `break` statement"},yn),wn=g("Continue",null,{$documentation:"A `continue` statement"},yn),En=g("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(n){return n._visit(this,function(){this.condition._walk(n),this.body._walk(n),this.alternative&&this.alternative._walk(n)})}},nn),Dn=g("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(n){return n._visit(this,function(){this.expression._walk(n),b(this,n)})}},K),Fn=g("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},K),xn=g("Default",null,{$documentation:"A `default` switch branch"},Fn),kn=g("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(n){return n._visit(this,function(){this.expression._walk(n),b(this,n)})}},Fn),Cn=g("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(n){return n._visit(this,function(){b(this,n),this.bcatch&&this.bcatch._walk(n),this.bfinally&&this.bfinally._walk(n)})}},K),Bn=g("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch] symbol for the exception"},_walk:function(n){return n._visit(this,function(){this.argname._walk(n),b(this,n)})}},K),Sn=g("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},K),Tn=g("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(n){return n._visit(this,function(){this.definitions.forEach(function(e){e._walk(n)})})}},W),$n=g("Var",null,{$documentation:"A `var` statement"},Tn),On=g("Const",null,{$documentation:"A `const` statement"},Tn),qn=g("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_SymbolVar|AST_SymbolConst] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(n){return n._visit(this,function(){this.name._walk(n),this.value&&this.value._walk(n)})}}),Mn=g("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(n){return n._visit(this,function(){this.expression._walk(n),this.args.forEach(function(e){e._walk(n)})})}}),zn=g("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},Mn),Hn=g("Seq","car cdr",{$documentation:"A sequence expression (two comma-separated expressions)",$propdoc:{car:"[AST_Node] first element in sequence",cdr:"[AST_Node] second element in sequence"},$cons:function(n,e){var t=new Hn(n);return t.car=n,t.cdr=e,t},$from_array:function(n){if(0==n.length)return null;if(1==n.length)return n[0].clone();for(var e=null,t=n.length;--t>=0;)e=Hn.cons(n[t],e);for(var r=e;r;){if(r.cdr&&!r.cdr.cdr){r.cdr=r.cdr.car;break}r=r.cdr}return e},to_array:function(){for(var n=this,e=[];n;){if(e.push(n.car),n.cdr&&!(n.cdr instanceof Hn)){e.push(n.cdr);break}n=n.cdr}return e},add:function(n){for(var e=this;e;){if(!(e.cdr instanceof Hn)){var t=Hn.cons(e.cdr,n);return e.cdr=t}e=e.cdr}},_walk:function(n){return n._visit(this,function(){this.car._walk(n),this.cdr&&this.cdr._walk(n)})}}),Nn=g("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),jn=g("Dot",null,{$documentation:"A dotted property access expression",_walk:function(n){return n._visit(this,function(){this.expression._walk(n)})}},Nn),Pn=g("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(n){return n._visit(this,function(){this.expression._walk(n),this.property._walk(n)})}},Nn),Rn=g("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(n){return n._visit(this,function(){this.expression._walk(n)})}}),In=g("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Rn),Un=g("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},Rn),Ln=g("Binary","left operator right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(n){return n._visit(this,function(){this.left._walk(n),this.right._walk(n)})}}),Vn=g("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(n){return n._visit(this,function(){this.condition._walk(n),this.consequent._walk(n),this.alternative._walk(n)})}}),Yn=g("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},Ln),Wn=g("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(n){return n._visit(this,function(){this.elements.forEach(function(e){e._walk(n)})})}}),Jn=g("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(n){return n._visit(this,function(){this.properties.forEach(function(e){e._walk(n)})})}}),Gn=g("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string] the property name converted to a string for ObjectKeyVal. For setters and getters this is an arbitrary AST_Node.",value:"[AST_Node] property value. For setters and getters this is an AST_Function."},_walk:function(n){return n._visit(this,function(){this.value._walk(n)})}}),Xn=g("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},Gn),Kn=g("ObjectSetter",null,{$documentation:"An object setter property"},Gn),Zn=g("ObjectGetter",null,{$documentation:"An object getter property"},Gn),Qn=g("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),ne=g("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},Qn),ee=g("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)",$propdoc:{init:"[AST_Node*/S] array of initializers for this declaration."}},Qn),te=g("SymbolVar",null,{$documentation:"Symbol defining a variable"},ee),re=g("SymbolConst",null,{$documentation:"A constant declaration"},ee),ie=g("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},te),oe=g("SymbolDefun",null,{$documentation:"Symbol defining a function"},ee),ae=g("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},ee),ue=g("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},ee),se=g("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},Qn),ce=g("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},Qn),fe=g("LabelRef",null,{$documentation:"Reference to a label symbol"},Qn),le=g("This",null,{$documentation:"The `this` symbol"},Qn),pe=g("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),de=g("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},pe),he=g("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},pe),ve=g("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},pe),me=g("Atom",null,{$documentation:"Base class for atoms"},pe),_e=g("Null",null,{$documentation:"The `null` atom",value:null},me),ge=g("NaN",null,{$documentation:"The impossible value",value:NaN},me),be=g("Undefined",null,{$documentation:"The `undefined` value",value:void 0},me),ye=g("Hole",null,{$documentation:"A hole in an array",value:void 0},me),Ae=g("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},me),we=g("Boolean",null,{$documentation:"Base class for booleans"},me),Ee=g("False",null,{$documentation:"The `false` atom",value:!1},we),De=g("True",null,{$documentation:"The `true` atom",value:!0},we);y.prototype={_visit:function(n,e){this.push(n);var t=this.visit(n,e?function(){e.call(n)}:f);return!t&&e&&e.call(n),this.pop(n),t},parent:function(n){return this.stack[this.stack.length-2-(n||0)]},push:function(n){n instanceof pn?this.directives=Object.create(this.directives):n instanceof G&&(this.directives[n.value]=this.directives[n.value]?"up":!0),this.stack.push(n)},pop:function(n){this.stack.pop(),n instanceof pn&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(n){for(var e=this.stack,t=e.length;--t>=0;){var r=e[t];if(r instanceof n)return r}},has_directive:function(n){var e=this.directives[n];if(e)return e;var t=this.stack[this.stack.length-1];if(t instanceof fn)for(var r=0;r0;){var r=n[--e];if(r instanceof En&&r.condition===t||r instanceof Vn&&r.condition===t||r instanceof rn&&r.condition===t||r instanceof un&&r.condition===t||r instanceof In&&"!"==r.operator&&r.expression===t)return!0;if(!(r instanceof Ln)||"&&"!=r.operator&&"||"!=r.operator)return!1;t=r}},loopcontrol_target:function(n){var e=this.stack;if(n)for(var t=e.length;--t>=0;){var r=e[t];if(r instanceof en&&r.label.name==n.name)return r.body}else for(var t=e.length;--t>=0;){var r=e[t];if(r instanceof Dn||r instanceof tn)return r}}};var Fe="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with",xe="false null true",ke="abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized this throws transient volatile yield "+xe+" "+Fe,Ce="return new delete throw else case";Fe=v(Fe),ke=v(ke),Ce=v(Ce),xe=v(xe);var Be=v(r("+-*&%=<>!?|~^")),Se=/^0x[0-9a-f]+$/i,Te=/^0[0-7]+$/,$e=v(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),Oe=v(r("  \n\r \f\x0B​᠎              \ufeff")),qe=v(r("[{(,.;:")),Me=v(r("[]{}(),;:")),ze=(v(r("gmsiy")),{letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),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]")});$.prototype.toString=function(){return this.message+" (line: "+this.line+", col: "+this.col+", pos: "+this.pos+")\n\n"+this.stack};var He={},Ne=v(["typeof","void","delete","--","++","!","~","-","+"]),je=v(["--","++"]),Pe=v(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),Re=function(n,e){for(var t=0;t","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),Ie=(t(["for","do","while","switch"]),t(["atom","num","string","regexp","name"]));H.prototype=new y,function(n){function e(e,t){e.DEFMETHOD("transform",function(e,r){var i,o;return e.push(this),e.before&&(i=e.before(this,t,r)),i===n&&(e.after?(e.stack[e.stack.length-1]=i=this,t(i,e),o=e.after(i,r),o!==n&&(i=o)):(i=this,t(i,e))),e.pop(this),i})}function t(n,e){return L(n,function(n){return n.transform(e,!0)})}e(Y,f),e(en,function(n,e){n.label=n.label.transform(e),n.body=n.body.transform(e)}),e(X,function(n,e){n.body=n.body.transform(e)}),e(K,function(n,e){n.body=t(n.body,e)}),e(rn,function(n,e){n.condition=n.condition.transform(e),n.body=n.body.transform(e)}),e(un,function(n,e){n.init&&(n.init=n.init.transform(e)),n.condition&&(n.condition=n.condition.transform(e)),n.step&&(n.step=n.step.transform(e)),n.body=n.body.transform(e)}),e(sn,function(n,e){n.init=n.init.transform(e),n.object=n.object.transform(e),n.body=n.body.transform(e)}),e(cn,function(n,e){n.expression=n.expression.transform(e),n.body=n.body.transform(e)}),e(_n,function(n,e){n.value&&(n.value=n.value.transform(e))}),e(yn,function(n,e){n.label&&(n.label=n.label.transform(e))}),e(En,function(n,e){n.condition=n.condition.transform(e),n.body=n.body.transform(e),n.alternative&&(n.alternative=n.alternative.transform(e))}),e(Dn,function(n,e){n.expression=n.expression.transform(e),n.body=t(n.body,e)}),e(kn,function(n,e){n.expression=n.expression.transform(e),n.body=t(n.body,e)}),e(Cn,function(n,e){n.body=t(n.body,e),n.bcatch&&(n.bcatch=n.bcatch.transform(e)),n.bfinally&&(n.bfinally=n.bfinally.transform(e))}),e(Bn,function(n,e){n.argname=n.argname.transform(e),n.body=t(n.body,e)}),e(Tn,function(n,e){n.definitions=t(n.definitions,e)}),e(qn,function(n,e){n.name=n.name.transform(e),n.value&&(n.value=n.value.transform(e))}),e(pn,function(n,e){n.name&&(n.name=n.name.transform(e)),n.argnames=t(n.argnames,e),n.body=t(n.body,e)}),e(Mn,function(n,e){n.expression=n.expression.transform(e),n.args=t(n.args,e)}),e(Hn,function(n,e){n.car=n.car.transform(e),n.cdr=n.cdr.transform(e)}),e(jn,function(n,e){n.expression=n.expression.transform(e)}),e(Pn,function(n,e){n.expression=n.expression.transform(e),n.property=n.property.transform(e)}),e(Rn,function(n,e){n.expression=n.expression.transform(e)}),e(Ln,function(n,e){n.left=n.left.transform(e),n.right=n.right.transform(e)}),e(Vn,function(n,e){n.condition=n.condition.transform(e),n.consequent=n.consequent.transform(e),n.alternative=n.alternative.transform(e)}),e(Wn,function(n,e){n.elements=t(n.elements,e)}),e(Jn,function(n,e){n.properties=t(n.properties,e)}),e(Gn,function(n,e){n.value=n.value.transform(e)})}(),N.prototype={unmangleable:function(n){return n||(n={}),this.global&&!n.toplevel||this.undeclared||!n.eval&&(this.scope.uses_eval||this.scope.uses_with)||n.keep_fnames&&(this.orig[0]instanceof ae||this.orig[0]instanceof oe)},mangle:function(n){var e=n.cache&&n.cache.props;if(this.global&&e&&e.has(this.name))this.mangled_name=e.get(this.name);else if(!this.mangled_name&&!this.unmangleable(n)){var t=this.scope;!n.screw_ie8&&this.orig[0]instanceof ae&&(t=t.parent_scope),this.mangled_name=t.next_mangled(n,this),this.global&&e&&e.set(this.name,this.mangled_name)}}},ln.DEFMETHOD("figure_out_scope",function(n){n=s(n,{screw_ie8:!1,cache:null});var e=this,t=e.parent_scope=null,r=new _,i=null,o=!1,a=0,u=new y(function(e,s){if(n.screw_ie8&&e instanceof Bn){var c=t;return t=new fn(e),t.init_scope_vars(a),t.parent_scope=c,s(),t=c,!0}if(e instanceof fn){e.init_scope_vars(a);var c=e.parent_scope=t,f=i,l=r;return i=t=e,r=new _,++a,s(),--a,t=c,i=f,r=l,!0}if(e instanceof en){var d=e.label;if(r.has(d.name))throw new Error(p("Label {name} defined twice",d));return r.set(d.name,d),s(),r.del(d.name),!0}if(e instanceof cn)for(var h=t;h;h=h.parent_scope)h.uses_with=!0;else if(e instanceof Qn&&(e.scope=t),e instanceof se&&(e.thedef=e,e.references=[]),e instanceof ae)i.def_function(e);else if(e instanceof oe)(e.scope=i.parent_scope).def_function(e);else if(e instanceof $n)o=e.has_const_pragma();else if(e instanceof te||e instanceof re){var v=i.def_variable(e);v.constant=e instanceof re||o,v.init=u.parent().value}else if(e instanceof ue)(n.screw_ie8?t:i).def_variable(e);else if(e instanceof fe){var m=r.get(e.name);if(!m)throw new Error(p("Undefined label {name} [{line},{col}]",{name:e.name,line:e.start.line,col:e.start.col}));e.thedef=m}});e.walk(u);var c=null,f=e.globals=new _,u=new y(function(n,t){if(n instanceof pn){var r=c;return c=n,t(),c=r,!0}if(n instanceof yn&&n.label)return n.label.thedef.references.push(n),!0;if(n instanceof ce){var i=n.name;if("eval"==i&&u.parent()instanceof Mn)for(var o=n.scope;o&&!o.uses_eval;o=o.parent_scope)o.uses_eval=!0;var a=n.scope.find_variable(i);if(a)n.thedef=a;else{var s;f.has(i)?s=f.get(i):(s=new N(e,f.size(),n),s.undeclared=!0,s.global=!0,f.set(i,s)),n.thedef=s,c&&"arguments"==i&&(c.uses_arguments=!0)}return n.reference(),!0}});e.walk(u),n.cache&&(this.cname=n.cache.cname)}),fn.DEFMETHOD("init_scope_vars",function(n){this.variables=new _,this.functions=new _,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=null,this.enclosed=[],this.cname=-1,this.nesting=n}),pn.DEFMETHOD("init_scope_vars",function(){fn.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1;var n=new qn({name:"arguments",start:this.start,end:this.end}),e=new N(this,this.variables.size(),n);this.variables.set(n.name,e)}),ce.DEFMETHOD("reference",function(){var n=this.definition();n.references.push(this);for(var e=this.scope;e&&(l(e.enclosed,n),e!==n.scope);)e=e.parent_scope;this.frame=this.scope.nesting-n.scope.nesting}),fn.DEFMETHOD("find_variable",function(n){return n instanceof Qn&&(n=n.name),this.variables.get(n)||this.parent_scope&&this.parent_scope.find_variable(n)}),fn.DEFMETHOD("def_function",function(n){this.functions.set(n.name,this.def_variable(n))}),fn.DEFMETHOD("def_variable",function(n){var e;return this.variables.has(n.name)?(e=this.variables.get(n.name),e.orig.push(n)):(e=new N(this,this.variables.size(),n),this.variables.set(n.name,e),e.global=!this.parent_scope),n.thedef=e}),fn.DEFMETHOD("next_mangled",function(n){var e=this.enclosed;n:for(;;){var t=Ue(++this.cname);if(k(t)&&!(n.except.indexOf(t)>=0)){for(var r=e.length;--r>=0;){var i=e[r],o=i.mangled_name||i.unmangleable(n)&&i.name;if(t==o)continue n}return t}}}),hn.DEFMETHOD("next_mangled",function(n,e){for(var t=e.orig[0]instanceof ie&&this.name&&this.name.definition();;){var r=pn.prototype.next_mangled.call(this,n,e);if(!t||t.mangled_name!=r)return r}}),fn.DEFMETHOD("references",function(n){return n instanceof Qn&&(n=n.definition()),this.enclosed.indexOf(n)<0?null:n}),Qn.DEFMETHOD("unmangleable",function(n){return this.definition().unmangleable(n)}),ne.DEFMETHOD("unmangleable",function(){return!0}),se.DEFMETHOD("unmangleable",function(){return!1}),Qn.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),Qn.DEFMETHOD("undeclared",function(){return this.definition().undeclared}),fe.DEFMETHOD("undeclared",function(){return!1}),se.DEFMETHOD("undeclared",function(){return!1}),Qn.DEFMETHOD("definition",function(){return this.thedef}),Qn.DEFMETHOD("global",function(){return this.definition().global}),$n.DEFMETHOD("has_const_pragma",function(){var n=this.start&&this.start.comments_before,e=n&&n[n.length-1];return e&&/@const\b/.test(e.value)}),ln.DEFMETHOD("_default_mangler_options",function(n){return s(n,{except:[],eval:!1,sort:!1,toplevel:!1,screw_ie8:!1,keep_fnames:!1})}),ln.DEFMETHOD("mangle_names",function(n){n=this._default_mangler_options(n),n.except.push("arguments");var e=-1,t=[];n.cache&&this.globals.each(function(e){n.except.indexOf(e.name)<0&&t.push(e)});var r=new y(function(i,o){if(i instanceof en){var a=e;return o(),e=a,!0}if(i instanceof fn){var u=(r.parent(),[]);return i.variables.each(function(e){n.except.indexOf(e.name)<0&&u.push(e)}),n.sort&&u.sort(function(n,e){return e.references.length-n.references.length}),void t.push.apply(t,u)}if(i instanceof se){var s;do s=Ue(++e);while(!k(s));return i.mangled_name=s,!0}return n.screw_ie8&&i instanceof ue?void t.push(i.definition()):void 0});this.walk(r),t.forEach(function(e){e.mangle(n)}),n.cache&&(n.cache.cname=this.cname)}),ln.DEFMETHOD("compute_char_frequency",function(n){n=this._default_mangler_options(n);var e=new y(function(e){e instanceof pe?Ue.consider(e.print_to_string()):e instanceof gn?Ue.consider("return"):e instanceof bn?Ue.consider("throw"):e instanceof wn?Ue.consider("continue"):e instanceof An?Ue.consider("break"):e instanceof J?Ue.consider("debugger"):e instanceof G?Ue.consider(e.value):e instanceof an?Ue.consider("while"):e instanceof on?Ue.consider("do while"):e instanceof En?(Ue.consider("if"),e.alternative&&Ue.consider("else")):e instanceof $n?Ue.consider("var"):e instanceof On?Ue.consider("const"):e instanceof pn?Ue.consider("function"):e instanceof un?Ue.consider("for"):e instanceof sn?Ue.consider("for in"):e instanceof Dn?Ue.consider("switch"):e instanceof kn?Ue.consider("case"):e instanceof xn?Ue.consider("default"):e instanceof cn?Ue.consider("with"):e instanceof Kn?Ue.consider("set"+e.key):e instanceof Zn?Ue.consider("get"+e.key):e instanceof Xn?Ue.consider(e.key):e instanceof zn?Ue.consider("new"):e instanceof le?Ue.consider("this"):e instanceof Cn?Ue.consider("try"):e instanceof Bn?Ue.consider("catch"):e instanceof Sn?Ue.consider("finally"):e instanceof Qn&&e.unmangleable(n)?Ue.consider(e.name):e instanceof Rn||e instanceof Ln?Ue.consider(e.operator):e instanceof jn&&Ue.consider(e.property); -});this.walk(e),Ue.sort()});var Ue=function(){function n(){r=Object.create(null),t=i.split("").map(function(n){return n.charCodeAt(0)}),t.forEach(function(n){r[n]=0})}function e(n){var e="",r=54;n++;do n--,e+=String.fromCharCode(t[n%r]),n=Math.floor(n/r),r=64;while(n>0);return e}var t,r,i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return e.consider=function(n){for(var e=n.length;--e>=0;){var t=n.charCodeAt(e);t in r&&++r[t]}},e.sort=function(){t=h(t,function(n,e){return w(n)&&!w(e)?1:w(e)&&!w(n)?-1:r[e]-r[n]})},e.reset=n,n(),e.get=function(){return t},e.freq=function(){return r},e}();ln.DEFMETHOD("scope_warnings",function(n){n=s(n,{undeclared:!1,unreferenced:!0,assign_to_global:!0,func_arguments:!0,nested_defuns:!0,eval:!0});var e=new y(function(t){if(n.undeclared&&t instanceof ce&&t.undeclared()&&Y.warn("Undeclared symbol: {name} [{file}:{line},{col}]",{name:t.name,file:t.start.file,line:t.start.line,col:t.start.col}),n.assign_to_global){var r=null;t instanceof Yn&&t.left instanceof ce?r=t.left:t instanceof sn&&t.init instanceof ce&&(r=t.init),r&&(r.undeclared()||r.global()&&r.scope!==r.definition().scope)&&Y.warn("{msg}: {name} [{file}:{line},{col}]",{msg:r.undeclared()?"Accidental global?":"Assignment to global",name:r.name,file:r.start.file,line:r.start.line,col:r.start.col})}n.eval&&t instanceof ce&&t.undeclared()&&"eval"==t.name&&Y.warn("Eval is used [{file}:{line},{col}]",t.start),n.unreferenced&&(t instanceof ee||t instanceof se)&&!(t instanceof ue)&&t.unreferenced()&&Y.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]",{type:t instanceof se?"Label":"Symbol",name:t.name,file:t.start.file,line:t.start.line,col:t.start.col}),n.func_arguments&&t instanceof pn&&t.uses_arguments&&Y.warn("arguments used in function {name} [{file}:{line},{col}]",{name:t.name?t.name.name:"anonymous",file:t.start.file,line:t.start.line,col:t.start.col}),n.nested_defuns&&t instanceof vn&&!(e.parent()instanceof fn)&&Y.warn('Function {name} declared in nested statement "{type}" [{file}:{line},{col}]',{name:t.name.name,type:e.parent().TYPE,file:t.start.file,line:t.start.line,col:t.start.col})});this.walk(e)}),function(){function n(n,e){n.DEFMETHOD("_codegen",e)}function e(n,t){Array.isArray(n)?n.forEach(function(n){e(n,t)}):n.DEFMETHOD("needs_parens",t)}function t(n,e,t){var r=n.length-1;n.forEach(function(n,i){n instanceof Q||(t.indent(),n.print(t),i==r&&e||(t.newline(),e&&t.newline()))})}function r(n,e){n.length>0?e.with_block(function(){t(n,!1,e)}):e.print("{}")}function i(n,e){if(e.option("bracketize"))return void d(n.body,e);if(!n.body)return e.force_semicolon();if(n.body instanceof on&&!e.option("screw_ie8"))return void d(n.body,e);for(var t=n.body;;)if(t instanceof En){if(!t.alternative)return void d(n.body,e);t=t.alternative}else{if(!(t instanceof nn))break;t=t.body}u(n.body,e)}function o(n,e,t){if(t)try{n.walk(new y(function(n){if(n instanceof Ln&&"in"==n.operator)throw e})),n.print(e)}catch(r){if(r!==e)throw r;n.print(e,!0)}else n.print(e)}function a(n){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(n)<0}function u(n,e){e.option("bracketize")?!n||n instanceof Q?e.print("{}"):n instanceof Z?n.print(e):e.with_block(function(){e.indent(),n.print(e),e.newline()}):!n||n instanceof Q?e.force_semicolon():n.print(e)}function s(n){for(var e=n.stack(),t=e.length,r=e[--t],i=e[--t];t>0;){if(i instanceof W&&i.body===r)return!0;if(!(i instanceof Hn&&i.car===r||i instanceof Mn&&i.expression===r&&!(i instanceof zn)||i instanceof jn&&i.expression===r||i instanceof Pn&&i.expression===r||i instanceof Vn&&i.condition===r||i instanceof Ln&&i.left===r||i instanceof Un&&i.expression===r))return!1;r=i,i=e[--t]}}function c(n,e){return 0==n.args.length&&!e.option("beautify")}function l(n){for(var e=n[0],t=e.length,r=1;r=0?r.push("0x"+n.toString(16).toLowerCase(),"0"+n.toString(8)):r.push("-0x"+(-n).toString(16).toLowerCase(),"-0"+(-n).toString(8)),(e=/^(.*?)(0+)$/.exec(n))&&r.push(e[1]+"e"+e[2].length)):(e=/^0?\.(0+)(.*)$/.exec(n))&&r.push(e[2]+"e-"+(e[1].length+e[2].length),t.substr(t.indexOf("."))),l(r)}function d(n,e){return n instanceof Z?void n.print(e):void e.with_block(function(){e.indent(),n.print(e),e.newline()})}function h(n,e){n.DEFMETHOD("add_source_map",function(n){e(this,n)})}function v(n,e){e.add_mapping(n.start)}var m=!1;Y.DEFMETHOD("print",function(n,e){function t(){r.add_comments(n),r.add_source_map(n),i(r,n)}var r=this,i=r._codegen,o=m;r instanceof G&&"use asm"==r.value&&(m=!0),n.push_node(r),e||r.needs_parens(n)?n.with_parens(t):t(),n.pop_node(),r instanceof pn&&(m=o)}),Y.DEFMETHOD("print_to_string",function(n){var e=j(n);return this.print(e),e.get()}),Y.DEFMETHOD("add_comments",function(n){var e=n.option("comments"),t=this,r=t.start;if(r&&!r._comments_dumped){r._comments_dumped=!0;var i=r.comments_before||[];t instanceof _n&&t.value&&t.value.walk(new y(function(n){return n.start&&n.start.comments_before&&(i=i.concat(n.start.comments_before),n.start.comments_before=[]),n instanceof hn||n instanceof Wn||n instanceof Jn?!0:void 0})),e?e.test?i=i.filter(function(n){return"comment5"==n.type||e.test(n.value)}):"function"==typeof e&&(i=i.filter(function(n){return"comment5"==n.type||e(t,n)})):i=i.filter(function(n){return"comment5"==n.type}),!n.option("beautify")&&i.length>0&&/comment[134]/.test(i[0].type)&&0!==n.col()&&i[0].nlb&&n.print("\n"),i.forEach(function(e){/comment[134]/.test(e.type)?(n.print("//"+e.value+"\n"),n.indent()):"comment2"==e.type?(n.print("/*"+e.value+"*/"),r.nlb?(n.print("\n"),n.indent()):n.space()):0===n.pos()&&"comment5"==e.type&&n.option("shebang")&&(n.print("#!"+e.value+"\n"),n.indent())})}}),e(Y,function(){return!1}),e(hn,function(n){return s(n)}),e(Jn,function(n){return s(n)}),e([Rn,be],function(n){var e=n.parent();return e instanceof Nn&&e.expression===this}),e(Hn,function(n){var e=n.parent();return e instanceof Mn||e instanceof Rn||e instanceof Ln||e instanceof qn||e instanceof Nn||e instanceof Wn||e instanceof Gn||e instanceof Vn}),e(Ln,function(n){var e=n.parent();if(e instanceof Mn&&e.expression===this)return!0;if(e instanceof Rn)return!0;if(e instanceof Nn&&e.expression===this)return!0;if(e instanceof Ln){var t=e.operator,r=Re[t],i=this.operator,o=Re[i];if(r>o||r==o&&this===e.right)return!0}}),e(Nn,function(n){var e=n.parent();if(e instanceof zn&&e.expression===this)try{this.walk(new y(function(n){if(n instanceof Mn)throw e}))}catch(t){if(t!==e)throw t;return!0}}),e(Mn,function(n){var e,t=n.parent();return t instanceof zn&&t.expression===this?!0:this.expression instanceof hn&&t instanceof Nn&&t.expression===this&&(e=n.parent(1))instanceof Yn&&e.left===t}),e(zn,function(n){var e=n.parent();return c(this,n)&&(e instanceof Nn||e instanceof Mn&&e.expression===this)?!0:void 0}),e(he,function(n){var e=n.parent();return this.getValue()<0&&e instanceof Nn&&e.expression===this?!0:void 0}),e([Yn,Vn],function(n){var e=n.parent();return e instanceof Rn?!0:e instanceof Ln&&!(e instanceof Yn)?!0:e instanceof Mn&&e.expression===this?!0:e instanceof Vn&&e.condition===this?!0:e instanceof Nn&&e.expression===this?!0:void 0}),n(G,function(n,e){e.print_string(n.value,n.quote),e.semicolon()}),n(J,function(n,e){e.print("debugger"),e.semicolon()}),nn.DEFMETHOD("_do_print_body",function(n){u(this.body,n)}),n(W,function(n,e){n.body.print(e),e.semicolon()}),n(ln,function(n,e){t(n.body,!0,e),e.print("")}),n(en,function(n,e){n.label.print(e),e.colon(),n.body.print(e)}),n(X,function(n,e){n.body.print(e),e.semicolon()}),n(Z,function(n,e){r(n.body,e)}),n(Q,function(n,e){e.semicolon()}),n(on,function(n,e){e.print("do"),e.space(),n._do_print_body(e),e.space(),e.print("while"),e.space(),e.with_parens(function(){n.condition.print(e)}),e.semicolon()}),n(an,function(n,e){e.print("while"),e.space(),e.with_parens(function(){n.condition.print(e)}),e.space(),n._do_print_body(e)}),n(un,function(n,e){e.print("for"),e.space(),e.with_parens(function(){!n.init||n.init instanceof Q?e.print(";"):(n.init instanceof Tn?n.init.print(e):o(n.init,e,!0),e.print(";"),e.space()),n.condition?(n.condition.print(e),e.print(";"),e.space()):e.print(";"),n.step&&n.step.print(e)}),e.space(),n._do_print_body(e)}),n(sn,function(n,e){e.print("for"),e.space(),e.with_parens(function(){n.init.print(e),e.space(),e.print("in"),e.space(),n.object.print(e)}),e.space(),n._do_print_body(e)}),n(cn,function(n,e){e.print("with"),e.space(),e.with_parens(function(){n.expression.print(e)}),e.space(),n._do_print_body(e)}),pn.DEFMETHOD("_do_print",function(n,e){var t=this;e||n.print("function"),t.name&&(n.space(),t.name.print(n)),n.with_parens(function(){t.argnames.forEach(function(e,t){t&&n.comma(),e.print(n)})}),n.space(),r(t.body,n)}),n(pn,function(n,e){n._do_print(e)}),_n.DEFMETHOD("_do_print",function(n,e){n.print(e),this.value&&(n.space(),this.value.print(n)),n.semicolon()}),n(gn,function(n,e){n._do_print(e,"return")}),n(bn,function(n,e){n._do_print(e,"throw")}),yn.DEFMETHOD("_do_print",function(n,e){n.print(e),this.label&&(n.space(),this.label.print(n)),n.semicolon()}),n(An,function(n,e){n._do_print(e,"break")}),n(wn,function(n,e){n._do_print(e,"continue")}),n(En,function(n,e){e.print("if"),e.space(),e.with_parens(function(){n.condition.print(e)}),e.space(),n.alternative?(i(n,e),e.space(),e.print("else"),e.space(),u(n.alternative,e)):n._do_print_body(e)}),n(Dn,function(n,e){e.print("switch"),e.space(),e.with_parens(function(){n.expression.print(e)}),e.space(),n.body.length>0?e.with_block(function(){n.body.forEach(function(n,t){t&&e.newline(),e.indent(!0),n.print(e)})}):e.print("{}")}),Fn.DEFMETHOD("_do_print_body",function(n){this.body.length>0&&(n.newline(),this.body.forEach(function(e){n.indent(),e.print(n),n.newline()}))}),n(xn,function(n,e){e.print("default:"),n._do_print_body(e)}),n(kn,function(n,e){e.print("case"),e.space(),n.expression.print(e),e.print(":"),n._do_print_body(e)}),n(Cn,function(n,e){e.print("try"),e.space(),r(n.body,e),n.bcatch&&(e.space(),n.bcatch.print(e)),n.bfinally&&(e.space(),n.bfinally.print(e))}),n(Bn,function(n,e){e.print("catch"),e.space(),e.with_parens(function(){n.argname.print(e)}),e.space(),r(n.body,e)}),n(Sn,function(n,e){e.print("finally"),e.space(),r(n.body,e)}),Tn.DEFMETHOD("_do_print",function(n,e){n.print(e),n.space(),this.definitions.forEach(function(e,t){t&&n.comma(),e.print(n)});var t=n.parent(),r=t instanceof un||t instanceof sn,i=r&&t.init===this;i||n.semicolon()}),n($n,function(n,e){n._do_print(e,"var")}),n(On,function(n,e){n._do_print(e,"const")}),n(qn,function(n,e){if(n.name.print(e),n.value){e.space(),e.print("="),e.space();var t=e.parent(1),r=t instanceof un||t instanceof sn;o(n.value,e,r)}}),n(Mn,function(n,e){n.expression.print(e),n instanceof zn&&c(n,e)||e.with_parens(function(){n.args.forEach(function(n,t){t&&e.comma(),n.print(e)})})}),n(zn,function(n,e){e.print("new"),e.space(),Mn.prototype._codegen(n,e)}),Hn.DEFMETHOD("_do_print",function(n){this.car.print(n),this.cdr&&(n.comma(),n.should_break()&&(n.newline(),n.indent()),this.cdr.print(n))}),n(Hn,function(n,e){n._do_print(e)}),n(jn,function(n,e){var t=n.expression;t.print(e),t instanceof he&&t.getValue()>=0&&(/[xa-f.]/i.test(e.last())||e.print(".")),e.print("."),e.add_mapping(n.end),e.print_name(n.property)}),n(Pn,function(n,e){n.expression.print(e),e.print("["),n.property.print(e),e.print("]")}),n(In,function(n,e){var t=n.operator;e.print(t),(/^[a-z]/i.test(t)||/[+-]$/.test(t)&&n.expression instanceof In&&/^[+-]/.test(n.expression.operator))&&e.space(),n.expression.print(e)}),n(Un,function(n,e){n.expression.print(e),e.print(n.operator)}),n(Ln,function(n,e){var t=n.operator;n.left.print(e),">"==t[0]&&n.left instanceof Un&&"--"==n.left.operator?e.print(" "):e.space(),e.print(t),("<"==t||"<<"==t)&&n.right instanceof In&&"!"==n.right.operator&&n.right.expression instanceof In&&"--"==n.right.expression.operator?e.print(" "):e.space(),n.right.print(e)}),n(Vn,function(n,e){n.condition.print(e),e.space(),e.print("?"),e.space(),n.consequent.print(e),e.space(),e.colon(),n.alternative.print(e)}),n(Wn,function(n,e){e.with_square(function(){var t=n.elements,r=t.length;r>0&&e.space(),t.forEach(function(n,t){t&&e.comma(),n.print(e),t===r-1&&n instanceof ye&&e.comma()}),r>0&&e.space()})}),n(Jn,function(n,e){n.properties.length>0?e.with_block(function(){n.properties.forEach(function(n,t){t&&(e.print(","),e.newline()),e.indent(),n.print(e)}),e.newline()}):e.print("{}")}),n(Xn,function(n,e){var t=n.key,r=n.quote;e.option("quote_keys")?e.print_string(t+""):("number"==typeof t||!e.option("beautify")&&+t+""==t)&&parseFloat(t)>=0?e.print(p(t)):(ke(t)?e.option("screw_ie8"):S(t))?e.print_name(t):e.print_string(t,r),e.colon(),n.value.print(e)}),n(Kn,function(n,e){e.print("set"),e.space(),n.key.print(e),n.value._do_print(e,!0)}),n(Zn,function(n,e){e.print("get"),e.space(),n.key.print(e),n.value._do_print(e,!0)}),n(Qn,function(n,e){var t=n.definition();e.print_name(t?t.mangled_name||t.name:n.name)}),n(be,function(n,e){e.print("void 0")}),n(ye,f),n(Ae,function(n,e){e.print("Infinity")}),n(ge,function(n,e){e.print("NaN")}),n(le,function(n,e){e.print("this")}),n(pe,function(n,e){e.print(n.getValue())}),n(de,function(n,e){e.print_string(n.getValue(),n.quote)}),n(he,function(n,e){m&&null!=n.start.raw?e.print(n.start.raw):e.print(p(n.getValue()))}),n(ve,function(n,e){var t=n.getValue().toString();e.option("ascii_only")?t=e.to_ascii(t):e.option("unescape_regexps")&&(t=t.split("\\\\").map(function(n){return n.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g,function(n){var e=parseInt(n.substr(2),16);return a(e)?String.fromCharCode(e):n})}).join("\\\\")),e.print(t);var r=e.parent();r instanceof Ln&&/^in/.test(r.operator)&&r.left===n&&e.print(" ")}),h(Y,f),h(G,v),h(J,v),h(Qn,v),h(mn,v),h(nn,v),h(en,f),h(pn,v),h(Dn,v),h(Fn,v),h(Z,v),h(ln,f),h(zn,v),h(Cn,v),h(Bn,v),h(Sn,v),h(Tn,v),h(pe,v),h(Kn,function(n,e){e.add_mapping(n.start,n.key.name)}),h(Zn,function(n,e){e.add_mapping(n.start,n.key.name)}),h(Gn,function(n,e){e.add_mapping(n.start,n.key)})}(),P.prototype=new H,c(P.prototype,{option:function(n){return this.options[n]},warn:function(){this.options.warnings&&Y.warn.apply(Y,arguments)},before:function(n,e,t){if(n._squeezed)return n;var r=!1;return n instanceof fn&&(n=n.hoist_declarations(this),r=!0),e(n,this),n=n.optimize(this),r&&n instanceof fn&&(n.drop_unused(this),e(n,this)),n._squeezed=!0,n}}),function(){function n(n,e){n.DEFMETHOD("optimize",function(n){var t=this;if(t._optimized)return t;if(n.has_directive("use asm"))return t;var r=e(t,n);return r._optimized=!0,r===t?r:r.transform(n)})}function e(n,e,t){return t||(t={}),e&&(t.start||(t.start=e.start),t.end||(t.end=e.end)),new n(t)}function t(n,t,r){if(t instanceof Y)return t.transform(n);switch(typeof t){case"string":return e(de,r,{value:t}).optimize(n);case"number":return e(isNaN(t)?ge:he,r,{value:t}).optimize(n);case"boolean":return e(t?De:Ee,r).optimize(n);case"undefined":return e(be,r).optimize(n);default:if(null===t)return e(_e,r,{value:null}).optimize(n);if(t instanceof RegExp)return e(ve,r,{value:t}).optimize(n);throw new Error(p("Can't handle constant of type: {type}",{type:typeof t}))}}function r(n,t,r){return n instanceof Mn&&n.expression===t&&(r instanceof Nn||r instanceof ce&&"eval"===r.name)?e(Hn,t,{car:e(he,t,{value:0}),cdr:r}):r}function a(n){if(null===n)return[];if(n instanceof Z)return n.body;if(n instanceof Q)return[];if(n instanceof W)return[n];throw new Error("Can't convert thing to statement array")}function u(n){return null===n?!0:n instanceof Q?!0:n instanceof Z?0==n.body.length:!1}function s(n){return n instanceof Dn?n:(n instanceof un||n instanceof sn||n instanceof rn)&&n.body instanceof Z?n.body:n}function c(n,t){function i(n,t){function o(n,e){return n instanceof ce&&(e instanceof Yn&&n===e.left||e instanceof Rn&&e.expression===n&&("++"==e.operator||"--"==e.operator))}function a(i,a,c){if(o(i,a))return i;var p=r(a,i,A.value);return A.value=null,d.splice(b,1),0===d.length&&(n[l]=e(Q,u),s=!0),f.walk(new y(function(n){delete n._squeezed,delete n._optimized})),t.warn("Replacing "+(c?"constant":"variable")+" "+w+" [{file}:{line},{col}]",i.start),_=!0,p}for(var u=t.self(),s=!1,c=n.length;--c>=0;){var f=n[c];if(!(f instanceof Tn)){if([f,f.body,f.alternative,f.bcatch,f.bfinally].forEach(function(n){n&&n.body&&i(n.body,t)}),0>=c)break;var l=c-1,p=n[l];if(p instanceof Tn){var d=p.definitions;if(null!=d)for(var h={},v=!1,m=!1,g={},b=d.length;--b>=0;){var A=d[b];if(null==A.value)break;var w=A.name.name;if(!w||!w.length)break;if(w in h)break;h[w]=!0;var E=u.find_variable&&u.find_variable(w);if(E&&E.references&&1===E.references.length&&"arguments"!=w){var D=E.references[0];if(D.scope.uses_eval||D.scope.uses_with)break;if(A.value.is_constant(t)){var F=new H(function(n){return n===D?a(n,F.parent(),!0):void 0});f.transform(F)}else if(!(v|=m))if(D.scope===u){var x=new y(function(n){n instanceof ce&&o(n,x.parent())&&(g[n.name]=m=!0)});A.value.walk(x);var k=!1,C=new H(function(n){if(k)return n;var e=C.parent();return n instanceof pn||n instanceof Cn||n instanceof cn||n instanceof kn||n instanceof tn||e instanceof En&&n!==e.condition||e instanceof Vn&&n!==e.condition||e instanceof Ln&&("&&"==e.operator||"||"==e.operator)&&n===e.right||e instanceof Dn&&n!==e.expression?(v=k=!0,n):void 0},function(n){return k?n:n===D?(k=!0,a(n,C.parent(),!1)):(v|=n.has_side_effects(t))?(k=!0,n):m&&n instanceof ce&&n.name in g?(v=!0,k=!0,n):void 0});f.transform(C)}else v|=A.value.has_side_effects(t)}else v=!0}}}}if(s)for(var B=n.length;--B>=0;)n.length>1&&n[B]instanceof Q&&n.splice(B,1);return n}function o(n){function r(n){return/@ngInject/.test(n.value)}function i(n){return n.argnames.map(function(n){return e(de,n,{value:n.name})})}function o(n,t){return e(Wn,n,{elements:t})}function a(n,t){return e(X,n,{body:e(Yn,n,{operator:"=",left:e(jn,t,{expression:e(ce,t,t),property:"$inject"}),right:o(n,i(n))})})}function u(n){n&&n.args&&(n.args.forEach(function(n,e,t){var a=n.start.comments_before;n instanceof pn&&a.length&&r(a[0])&&(t[e]=o(n,i(n).concat(n)))}),n.expression&&n.expression.expression&&u(n.expression.expression))}return n.reduce(function(n,e){if(n.push(e),e.body&&e.body.args)u(e.body);else{var i=e.start,o=i.comments_before;if(o&&o.length>0){var s=o.pop();r(s)&&(e instanceof vn?n.push(a(e,e.name)):e instanceof Tn?e.definitions.forEach(function(e){e.value&&e.value instanceof pn&&n.push(a(e.value,e.name))}):t.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]",i))}}return n},[])}function u(n){var e=[];return n.reduce(function(n,t){return t instanceof Z?(_=!0,n.push.apply(n,u(t.body))):t instanceof Q?_=!0:t instanceof G?e.indexOf(t.value)<0?(n.push(t),e.push(t.value)):_=!0:n.push(t),n},[])}function c(n,t){var r=t.self(),i=r instanceof pn,o=[];n:for(var u=n.length;--u>=0;){var c=n[u];switch(!0){case i&&c instanceof gn&&!c.value&&0==o.length:_=!0;continue n;case c instanceof En:if(c.body instanceof gn){if((i&&0==o.length||o[0]instanceof gn&&!o[0].value)&&!c.body.value&&!c.alternative){_=!0;var f=e(X,c.condition,{body:c.condition});o.unshift(f);continue n}if(o[0]instanceof gn&&c.body.value&&o[0].value&&!c.alternative){_=!0,c=c.clone(),c.alternative=o[0],o[0]=c.transform(t);continue n}if((0==o.length||o[0]instanceof gn)&&c.body.value&&!c.alternative&&i){_=!0,c=c.clone(),c.alternative=o[0]||e(gn,c,{value:e(be,c)}),o[0]=c.transform(t);continue n}if(!c.body.value&&i){_=!0,c=c.clone(),c.condition=c.condition.negate(t),c.body=e(Z,c,{body:a(c.alternative).concat(o)}),c.alternative=null,o=[c.transform(t)];continue n}if(t.option("sequences")&&1==o.length&&i&&o[0]instanceof X&&(!c.alternative||c.alternative instanceof X)){_=!0,o.push(e(gn,o[0],{value:e(be,o[0])}).transform(t)),o=a(c.alternative).concat(o),o.unshift(c);continue n}}var l=b(c.body),p=l instanceof yn?t.loopcontrol_target(l.label):null;if(l&&(l instanceof gn&&!l.value&&i||l instanceof wn&&r===s(p)||l instanceof An&&p instanceof Z&&r===p)){l.label&&d(l.label.thedef.references,l),_=!0;var h=a(c.body).slice(0,-1);c=c.clone(),c.condition=c.condition.negate(t),c.body=e(Z,c,{body:a(c.alternative).concat(o)}),c.alternative=e(Z,c,{body:h}),o=[c.transform(t)];continue n}var l=b(c.alternative),p=l instanceof yn?t.loopcontrol_target(l.label):null;if(l&&(l instanceof gn&&!l.value&&i||l instanceof wn&&r===s(p)||l instanceof An&&p instanceof Z&&r===p)){l.label&&d(l.label.thedef.references,l),_=!0,c=c.clone(),c.body=e(Z,c.body,{body:a(c.body).concat(o)}),c.alternative=e(Z,c.alternative,{body:a(c.alternative).slice(0,-1)}),o=[c.transform(t)];continue n}o.unshift(c);break;default:o.unshift(c)}}return o}function l(n,e){var t=!1,r=n.length,i=e.self();return n=n.reduce(function(n,r){if(t)f(e,r,n);else{if(r instanceof yn){var o=e.loopcontrol_target(r.label);r instanceof An&&o instanceof Z&&s(o)===i||r instanceof wn&&s(o)===i?r.label&&d(r.label.thedef.references,r):n.push(r)}else n.push(r);b(r)&&(t=!0)}return n},[]),_=n.length!=r,n}function p(n,t){function r(){i=Hn.from_array(i),i&&o.push(e(X,i,{body:i})),i=[]}if(n.length<2)return n;var i=[],o=[];return n.forEach(function(n){n instanceof X&&i.length<2e3?i.push(n.body):(r(),o.push(n))}),r(),o=h(o,t),_=o.length!=n.length,o}function h(n,t){function r(n){i.pop();var e=o.body;return e instanceof Hn?e.add(n):e=Hn.cons(e,n),e.transform(t)}var i=[],o=null;return n.forEach(function(n){if(o)if(n instanceof un){var t={};try{o.body.walk(new y(function(n){if(n instanceof Ln&&"in"==n.operator)throw t})),!n.init||n.init instanceof Tn?n.init||(n.init=o.body,i.pop()):n.init=r(n.init)}catch(a){if(a!==t)throw a}}else n instanceof En?n.condition=r(n.condition):n instanceof cn?n.expression=r(n.expression):n instanceof _n&&n.value?n.value=r(n.value):n instanceof _n?n.value=r(e(be,n)):n instanceof Dn&&(n.expression=r(n.expression));i.push(n),o=n instanceof X?n:null}),i}function v(n,e){var t=null;return n.reduce(function(n,e){return e instanceof Tn&&t&&t.TYPE==e.TYPE?(t.definitions=t.definitions.concat(e.definitions),_=!0):e instanceof un&&t instanceof Tn&&(!e.init||e.init.TYPE==t.TYPE)?(_=!0,n.pop(),e.init?e.init.definitions=t.definitions.concat(e.init.definitions):e.init=t,n.push(e),t=e):(t=e,n.push(e)),n},[])}function m(n,t){n.forEach(function(n){n instanceof X&&(n.body=function t(n){return n.transform(new H(function(n){if(n instanceof Mn&&n.expression instanceof hn)return e(In,n,{operator:"!",expression:n});if(n instanceof Mn)n.expression=t(n.expression);else if(n instanceof Hn)n.car=t(n.car);else if(n instanceof Vn){var r=t(n.condition);if(r!==n.condition){n.condition=r;var i=n.consequent;n.consequent=n.alternative,n.alternative=i}}return n}))}(n.body))})}var _,g=10;do _=!1,t.option("angular")&&(n=o(n)),n=u(n),t.option("dead_code")&&(n=l(n,t)),t.option("if_return")&&(n=c(n,t)),t.option("sequences")&&(n=p(n,t)),t.option("join_vars")&&(n=v(n,t)),t.option("collapse_vars")&&(n=i(n,t));while(_&&g-- >0);return t.option("negate_iife")&&m(n,t),n}function f(n,e,t){n.warn("Dropping unreachable code [{file}:{line},{col}]",e.start),e.walk(new y(function(e){return e instanceof Tn?(n.warn("Declarations in unreachable code! [{file}:{line},{col}]",e.start),e.remove_initializers(),t.push(e),!0):e instanceof vn?(t.push(e),!0):e instanceof fn?!0:void 0}))}function g(n,e){return n.print_to_string().length>e.print_to_string().length?e:n}function b(n){return n&&n.aborts()}function A(n,t){function r(r){r=a(r),n.body instanceof Z?(n.body=n.body.clone(),n.body.body=r.concat(n.body.body.slice(1)),n.body=n.body.transform(t)):n.body=e(Z,n.body,{body:r}).transform(t),A(n,t)}var i=n.body instanceof Z?n.body.body[0]:n.body;i instanceof En&&(i.body instanceof An&&t.loopcontrol_target(i.body.label)===n?(n.condition?n.condition=e(Ln,n.condition,{left:n.condition,operator:"&&",right:i.condition.negate(t)}):n.condition=i.condition.negate(t),r(i.alternative)):i.alternative instanceof An&&t.loopcontrol_target(i.alternative.label)===n&&(n.condition?n.condition=e(Ln,n.condition,{left:n.condition,operator:"&&",right:i.condition}):n.condition=i.condition,r(i.body)))}function w(n,e){var t=e.option("pure_getters");e.options.pure_getters=!1;var r=n.has_side_effects(e);return e.options.pure_getters=t,r}function E(n,t){return t.option("booleans")&&t.in_boolean_context()&&!n.has_side_effects(t)?e(De,n):n}n(Y,function(n,e){return n}),Y.DEFMETHOD("equivalent_to",function(n){return this.print_to_string()==n.print_to_string()}),function(n){var e=["!","delete"],t=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];n(Y,function(){return!1}),n(In,function(){return i(this.operator,e)}),n(Ln,function(){return i(this.operator,t)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),n(Vn,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),n(Yn,function(){return"="==this.operator&&this.right.is_boolean()}),n(Hn,function(){return this.cdr.is_boolean()}),n(De,function(){return!0}),n(Ee,function(){return!0})}(function(n,e){n.DEFMETHOD("is_boolean",e)}),function(n){n(Y,function(){return!1}),n(de,function(){return!0}),n(In,function(){return"typeof"==this.operator}),n(Ln,function(n){return"+"==this.operator&&(this.left.is_string(n)||this.right.is_string(n))}),n(Yn,function(n){return("="==this.operator||"+="==this.operator)&&this.right.is_string(n)}),n(Hn,function(n){return this.cdr.is_string(n)}),n(Vn,function(n){return this.consequent.is_string(n)&&this.alternative.is_string(n)}),n(Mn,function(n){return n.option("unsafe")&&this.expression instanceof ce&&"String"==this.expression.name&&this.expression.undeclared()})}(function(n,e){n.DEFMETHOD("is_string",e)}),function(n){function e(n,e){if(!e)throw new Error("Compressor must be passed");return n._eval(e)}Y.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return[this];try{var r=this._eval(e);return[g(t(e,r,this),this),r]}catch(i){if(i!==n)throw i;return[this]}}),Y.DEFMETHOD("is_constant",function(n){return this instanceof pe||this instanceof In&&"!"==this.operator&&this.expression instanceof pe||this.evaluate(n).length>1}),Y.DEFMETHOD("constant_value",function(n){if(this instanceof pe)return this.value;if(this instanceof In&&"!"==this.operator&&this.expression instanceof pe)return!this.expression.value;var e=this.evaluate(n);return e.length>1?e[1]:void 0}),n(W,function(){throw new Error(p("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),n(hn,function(){throw n}),n(Y,function(){throw n}),n(pe,function(){return this.getValue()}),n(In,function(t){var r=this.expression;switch(this.operator){case"!":return!e(r,t);case"typeof":if(r instanceof hn)return"function";if(r=e(r,t),r instanceof RegExp)throw n;return typeof r;case"void":return void e(r,t);case"~":return~e(r,t);case"-":if(r=e(r,t),0===r)throw n;return-r;case"+":return+e(r,t)}throw n}),n(Ln,function(t){var r=this.left,i=this.right;switch(this.operator){case"&&":return e(r,t)&&e(i,t);case"||":return e(r,t)||e(i,t);case"|":return e(r,t)|e(i,t);case"&":return e(r,t)&e(i,t);case"^":return e(r,t)^e(i,t);case"+":return e(r,t)+e(i,t);case"*":return e(r,t)*e(i,t);case"/":return e(r,t)/e(i,t);case"%":return e(r,t)%e(i,t);case"-":return e(r,t)-e(i,t);case"<<":return e(r,t)<>":return e(r,t)>>e(i,t);case">>>":return e(r,t)>>>e(i,t);case"==":return e(r,t)==e(i,t);case"===":return e(r,t)===e(i,t);case"!=":return e(r,t)!=e(i,t);case"!==":return e(r,t)!==e(i,t);case"<":return e(r,t)":return e(r,t)>e(i,t);case">=":return e(r,t)>=e(i,t);case"in":return e(r,t)in e(i,t);case"instanceof":return e(r,t)instanceof e(i,t)}throw n}),n(Vn,function(n){return e(this.condition,n)?e(this.consequent,n):e(this.alternative,n)}),n(ce,function(t){var r=this.definition();if(r&&r.constant&&r.init)return e(r.init,t);throw n}),n(jn,function(t){if(t.option("unsafe")&&"length"==this.property){var r=e(this.expression,t);if("string"==typeof r)return r.length}throw n})}(function(n,e){n.DEFMETHOD("_eval",e)}),function(n){function t(n){return e(In,n,{operator:"!",expression:n})}n(Y,function(){return t(this)}),n(W,function(){throw new Error("Cannot negate a statement")}),n(hn,function(){return t(this)}),n(In,function(){return"!"==this.operator?this.expression:t(this)}),n(Hn,function(n){var e=this.clone();return e.cdr=e.cdr.negate(n),e}),n(Vn,function(n){var e=this.clone();return e.consequent=e.consequent.negate(n),e.alternative=e.alternative.negate(n),g(t(this),e)}),n(Ln,function(n){var e=this.clone(),r=this.operator;if(n.option("unsafe_comps"))switch(r){case"<=":return e.operator=">",e;case"<":return e.operator=">=",e;case">=":return e.operator="<",e;case">":return e.operator="<=",e}switch(r){case"==":return e.operator="!=",e;case"!=":return e.operator="==",e;case"===":return e.operator="!==",e;case"!==":return e.operator="===",e;case"&&":return e.operator="||",e.left=e.left.negate(n),e.right=e.right.negate(n),g(t(this),e);case"||":return e.operator="&&",e.left=e.left.negate(n),e.right=e.right.negate(n),g(t(this),e)}return t(this)})}(function(n,e){n.DEFMETHOD("negate",function(n){return e.call(this,n)})}),function(n){n(Y,function(n){return!0}),n(Q,function(n){return!1}),n(pe,function(n){return!1}),n(le,function(n){return!1}),n(Mn,function(n){var e=n.option("pure_funcs");return e?"function"==typeof e?e(this):e.indexOf(this.expression.print_to_string())<0:!0}),n(K,function(n){for(var e=this.body.length;--e>=0;)if(this.body[e].has_side_effects(n))return!0;return!1}),n(X,function(n){return this.body.has_side_effects(n)}),n(vn,function(n){return!0}),n(hn,function(n){return!1}),n(Ln,function(n){return this.left.has_side_effects(n)||this.right.has_side_effects(n)}),n(Yn,function(n){return!0}),n(Vn,function(n){return this.condition.has_side_effects(n)||this.consequent.has_side_effects(n)||this.alternative.has_side_effects(n)}),n(Rn,function(n){return"delete"==this.operator||"++"==this.operator||"--"==this.operator||this.expression.has_side_effects(n)}),n(ce,function(n){return this.global()&&this.undeclared()}),n(Jn,function(n){for(var e=this.properties.length;--e>=0;)if(this.properties[e].has_side_effects(n))return!0;return!1}),n(Gn,function(n){return this.value.has_side_effects(n)}),n(Wn,function(n){for(var e=this.elements.length;--e>=0;)if(this.elements[e].has_side_effects(n))return!0;return!1}),n(jn,function(n){return n.option("pure_getters")?this.expression.has_side_effects(n):!0}),n(Pn,function(n){return n.option("pure_getters")?this.expression.has_side_effects(n)||this.property.has_side_effects(n):!0}),n(Nn,function(n){return!n.option("pure_getters")}),n(Hn,function(n){return this.car.has_side_effects(n)||this.cdr.has_side_effects(n)})}(function(n,e){n.DEFMETHOD("has_side_effects",e)}),function(n){function e(){var n=this.body.length;return n>0&&b(this.body[n-1])}n(W,function(){return null}),n(mn,function(){return this}),n(Z,e),n(Fn,e),n(En,function(){return this.alternative&&b(this.body)&&b(this.alternative)&&this})}(function(n,e){n.DEFMETHOD("aborts",e)}),n(G,function(n,t){return"up"===t.has_directive(n.value)?e(Q,n):n}),n(J,function(n,t){return t.option("drop_debugger")?e(Q,n):n}),n(en,function(n,t){return n.body instanceof An&&t.loopcontrol_target(n.body.label)===n.body?e(Q,n):0==n.label.references.length?n.body:n}),n(K,function(n,e){return n.body=c(n.body,e),n}),n(Z,function(n,t){switch(n.body=c(n.body,t),n.body.length){case 1:return n.body[0];case 0:return e(Q,n)}return n}),fn.DEFMETHOD("drop_unused",function(n){var t=this;if(n.has_directive("use asm"))return t;if(n.option("unused")&&!(t instanceof ln)&&!t.uses_eval){var r=[],o=new _,a=this,u=new y(function(e,i){if(e!==t){if(e instanceof vn)return o.add(e.name.name,e),!0;if(e instanceof Tn&&a===t)return e.definitions.forEach(function(e){e.value&&(o.add(e.name.name,e.value),e.value.has_side_effects(n)&&e.value.walk(u))}),!0;if(e instanceof ce)return l(r,e.definition()),!0;if(e instanceof fn){var s=a; -return a=e,i(),a=s,!0}}});t.walk(u);for(var s=0;s=0;){var l=s[f];if(!l.unreferenced())break;s.pop(),n.warn("Dropping unused function argument {name} [{file}:{line},{col}]",{name:l.name,file:l.start.file,line:l.start.line,col:l.start.col})}if(o instanceof vn&&o!==t)return i(o.name.definition(),r)?o:(n.warn("Dropping unused function {name} [{file}:{line},{col}]",{name:o.name.name,file:o.name.start.file,line:o.name.start.line,col:o.name.start.col}),e(Q,o));if(o instanceof Tn&&!(c.parent()instanceof sn)){var p=o.definitions.filter(function(e){if(i(e.name.definition(),r))return!0;var t={name:e.name.name,file:e.name.start.file,line:e.name.start.line,col:e.name.start.col};return e.value&&e.value.has_side_effects(n)?(e._unused_side_effects=!0,n.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",t),!0):(n.warn("Dropping unused variable {name} [{file}:{line},{col}]",t),!1)});p=h(p,function(n,e){return!n.value&&e.value?-1:!e.value&&n.value?1:0});for(var d=[],f=0;f0&&(d.push(v.value),v.value=Hn.from_array(d),d=[]),++f)}return d=d.length>0?e(Z,o,{body:[e(X,o,{body:Hn.from_array(d)})]}):null,0!=p.length||d?0==p.length?u?L.splice(d.body):d:(o.definitions=p,d?(d.body.unshift(o),u?L.splice(d.body):d):o):e(Q,o)}if(o instanceof un&&(a(o,this),o.init instanceof Z)){var m=o.init.body.slice(0,-1);return o.init=o.init.body.slice(-1)[0].body,m.push(o),u?L.splice(m):e(Z,o,{body:m})}return o instanceof fn&&o!==t?o:void 0});t.transform(c)}}),fn.DEFMETHOD("hoist_declarations",function(n){var t=this;if(n.has_directive("use asm"))return t;var r=n.option("hoist_funs"),i=n.option("hoist_vars");if(r||i){var a=[],u=[],s=new _,c=0,f=0;t.walk(new y(function(n){return n instanceof fn&&n!==t?!0:n instanceof $n?(++f,!0):void 0})),i=i&&f>1;var l=new H(function(n){if(n!==t){if(n instanceof G)return a.push(n),e(Q,n);if(n instanceof vn&&r)return u.push(n),e(Q,n);if(n instanceof $n&&i){n.definitions.forEach(function(n){s.set(n.name.name,n),++c});var o=n.to_assignments(),f=l.parent();if(f instanceof sn&&f.init===n){if(null==o){var p=n.definitions[0].name;return e(ce,p,p)}return o}return f instanceof un&&f.init===n?o:o?e(X,n,{body:o}):e(Q,n)}if(n instanceof fn)return n}});if(t=t.transform(l),c>0){var p=[];if(s.each(function(n,e){t instanceof pn&&o(function(e){return e.name==n.name.name},t.argnames)?s.del(e):(n=n.clone(),n.value=null,p.push(n),s.set(e,n))}),p.length>0){for(var h=0;h1){if(r[1])return e(un,n,{body:n.body});if(n instanceof an&&t.option("dead_code")){var i=[];return f(t,n.body,i),e(Z,n,{body:i})}}return n}),n(an,function(n,t){return t.option("loops")?(n=rn.prototype.optimize.call(n,t),n instanceof an&&(A(n,t),n=e(un,n,n).transform(t)),n):n}),n(un,function(n,t){var r=n.condition;if(r&&(r=r.evaluate(t),n.condition=r[0]),!t.option("loops"))return n;if(r&&r.length>1&&!r[1]&&t.option("dead_code")){var i=[];return n.init instanceof W?i.push(n.init):n.init&&i.push(e(X,n.init,{body:n.init})),f(t,n.body,i),e(Z,n,{body:i})}return A(n,t),n}),n(En,function(n,t){if(!t.option("conditionals"))return n;var r=n.condition.evaluate(t);if(n.condition=r[0],r.length>1)if(r[1]){if(t.warn("Condition always true [{file}:{line},{col}]",n.condition.start),t.option("dead_code")){var i=[];return n.alternative&&f(t,n.alternative,i),i.push(n.body),e(Z,n,{body:i}).transform(t)}}else if(t.warn("Condition always false [{file}:{line},{col}]",n.condition.start),t.option("dead_code")){var i=[];return f(t,n.body,i),n.alternative&&i.push(n.alternative),e(Z,n,{body:i}).transform(t)}u(n.alternative)&&(n.alternative=null);var o=n.condition.negate(t),a=n.condition.print_to_string().length,s=o.print_to_string().length,c=a>s;if(n.alternative&&c){c=!1,n.condition=o;var l=n.body;n.body=n.alternative||e(Q),n.alternative=l}if(u(n.body)&&u(n.alternative))return e(X,n.condition,{body:n.condition}).transform(t);if(n.body instanceof X&&n.alternative instanceof X)return e(X,n,{body:e(Vn,n,{condition:n.condition,consequent:n.body.body,alternative:n.alternative.body})}).transform(t);if(u(n.alternative)&&n.body instanceof X)return a===s&&!c&&n.condition instanceof Ln&&"||"==n.condition.operator&&(c=!0),c?e(X,n,{body:e(Ln,n,{operator:"||",left:o,right:n.body.body})}).transform(t):e(X,n,{body:e(Ln,n,{operator:"&&",left:n.condition,right:n.body.body})}).transform(t);if(n.body instanceof Q&&n.alternative&&n.alternative instanceof X)return e(X,n,{body:e(Ln,n,{operator:"||",left:n.condition,right:n.alternative.body})}).transform(t);if(n.body instanceof _n&&n.alternative instanceof _n&&n.body.TYPE==n.alternative.TYPE)return e(n.body.CTOR,n,{value:e(Vn,n,{condition:n.condition,consequent:n.body.value||e(be,n.body).optimize(t),alternative:n.alternative.value||e(be,n.alternative).optimize(t)})}).transform(t);if(n.body instanceof En&&!n.body.alternative&&!n.alternative&&(n.condition=e(Ln,n.condition,{operator:"&&",left:n.condition,right:n.body.condition}).transform(t),n.body=n.body.body),b(n.body)&&n.alternative){var p=n.alternative;return n.alternative=null,e(Z,n,{body:[n,p]}).transform(t)}if(b(n.alternative)){var d=n.body;return n.body=n.alternative,n.condition=c?o:n.condition.negate(t),n.alternative=null,e(Z,n,{body:[n,d]}).transform(t)}return n}),n(Dn,function(n,t){if(0==n.body.length&&t.option("conditionals"))return e(X,n,{body:n.expression}).transform(t);for(;;){var r=n.body[n.body.length-1];if(r){var i=r.body[r.body.length-1];if(i instanceof An&&s(t.loopcontrol_target(i.label))===n&&r.body.pop(),r instanceof xn&&0==r.body.length){n.body.pop();continue}}break}var o=n.expression.evaluate(t);n:if(2==o.length)try{if(n.expression=o[0],!t.option("dead_code"))break n;var a=o[1],u=!1,c=!1,f=!1,l=!1,p=!1,d=new H(function(r,i,o){if(r instanceof pn||r instanceof X)return r;if(r instanceof Dn&&r===n)return r=r.clone(),i(r,this),p?r:e(Z,r,{body:r.body.reduce(function(n,e){return n.concat(e.body)},[])}).transform(t);if(r instanceof En||r instanceof Cn){var s=u;return u=!c,i(r,this),u=s,r}if(r instanceof nn||r instanceof Dn){var s=c;return c=!0,i(r,this),c=s,r}if(r instanceof An&&this.loopcontrol_target(r.label)===n)return u?(p=!0,r):c?r:(l=!0,o?L.skip:e(Q,r));if(r instanceof Fn&&this.parent()===n){if(l)return L.skip;if(r instanceof kn){var d=r.expression.evaluate(t);if(d.length<2)throw n;return d[1]===a||f?(f=!0,b(r)&&(l=!0),i(r,this),r):L.skip}return i(r,this),r}});d.stack=t.stack.slice(),n=n.transform(d)}catch(h){if(h!==n)throw h}return n}),n(kn,function(n,e){return n.body=c(n.body,e),n}),n(Cn,function(n,e){return n.body=c(n.body,e),n}),Tn.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(n){n.value=null})}),Tn.DEFMETHOD("to_assignments",function(){var n=this.definitions.reduce(function(n,t){if(t.value){var r=e(ce,t.name,t.name);n.push(e(Yn,t,{operator:"=",left:r,right:t.value}))}return n},[]);return 0==n.length?null:Hn.from_array(n)}),n(Tn,function(n,t){return 0==n.definitions.length?e(Q,n):n}),n(hn,function(n,e){return n=pn.prototype.optimize.call(n,e),e.option("unused")&&!e.option("keep_fnames")&&n.name&&n.name.unreferenced()&&(n.name=null),n}),n(Mn,function(n,r){if(r.option("unsafe")){var i=n.expression;if(i instanceof ce&&i.undeclared())switch(i.name){case"Array":if(1!=n.args.length)return e(Wn,n,{elements:n.args}).transform(r);break;case"Object":if(0==n.args.length)return e(Jn,n,{properties:[]});break;case"String":if(0==n.args.length)return e(de,n,{value:""});if(n.args.length<=1)return e(Ln,n,{left:n.args[0],operator:"+",right:e(de,n,{value:""})}).transform(r);break;case"Number":if(0==n.args.length)return e(he,n,{value:0});if(1==n.args.length)return e(In,n,{expression:n.args[0],operator:"+"}).transform(r);case"Boolean":if(0==n.args.length)return e(Ee,n);if(1==n.args.length)return e(In,n,{expression:e(In,null,{expression:n.args[0],operator:"!"}),operator:"!"}).transform(r);break;case"Function":if(0==n.args.length)return e(hn,n,{argnames:[],body:[]});if(m(n.args,function(n){return n instanceof de}))try{var o="(function("+n.args.slice(0,-1).map(function(n){return n.value}).join(",")+"){"+n.args[n.args.length-1].value+"})()",a=z(o);a.figure_out_scope({screw_ie8:r.option("screw_ie8")});var u=new P(r.options);a=a.transform(u),a.figure_out_scope({screw_ie8:r.option("screw_ie8")}),a.mangle_names();var s;try{a.walk(new y(function(n){if(n instanceof pn)throw s=n,a}))}catch(c){if(c!==a)throw c}if(!s)return n;var f=s.argnames.map(function(t,r){return e(de,n.args[r],{value:t.print_to_string()})}),o=j();return Z.prototype._codegen.call(s,s,o),o=o.toString().replace(/^\{|\}$/g,""),f.push(e(de,n.args[n.args.length-1],{value:o})),n.args=f,n}catch(c){if(!(c instanceof $))throw console.log(c),c;r.warn("Error parsing code passed to new Function [{file}:{line},{col}]",n.args[n.args.length-1].start),r.warn(c.toString())}}else{if(i instanceof jn&&"toString"==i.property&&0==n.args.length)return e(Ln,n,{left:e(de,n,{value:""}),operator:"+",right:i.expression}).transform(r);if(i instanceof jn&&i.expression instanceof Wn&&"join"==i.property){var l=0==n.args.length?",":n.args[0].evaluate(r)[1];if(null!=l){var p=i.expression.elements.reduce(function(n,e){if(e=e.evaluate(r),0==n.length||1==e.length)n.push(e);else{var i=n[n.length-1];if(2==i.length){var o=""+i[1]+l+e[1];n[n.length-1]=[t(r,o,i[0]),o]}else n.push(e)}return n},[]);if(0==p.length)return e(de,n,{value:""});if(1==p.length)return p[0][0];if(""==l){var d;return d=p[0][0]instanceof de||p[1][0]instanceof de?p.shift()[0]:e(de,n,{value:""}),p.reduce(function(n,t){return e(Ln,t[0],{operator:"+",left:n,right:t[0]})},d).transform(r)}var h=n.clone();return h.expression=h.expression.clone(),h.expression.expression=h.expression.expression.clone(),h.expression.expression.elements=p.map(function(n){return n[0]}),g(n,h)}}}}if(r.option("side_effects")&&n.expression instanceof hn&&0==n.args.length&&!K.prototype.has_side_effects.call(n.expression,r))return e(be,n).transform(r);if(r.option("drop_console")&&n.expression instanceof Nn){for(var v=n.expression.expression;v.expression;)v=v.expression;if(v instanceof ce&&"console"==v.name&&v.undeclared())return e(be,n).transform(r)}return n.evaluate(r)[0]}),n(zn,function(n,t){if(t.option("unsafe")){var r=n.expression;if(r instanceof ce&&r.undeclared())switch(r.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return e(Mn,n,n).transform(t)}}return n}),n(Hn,function(n,t){if(!t.option("side_effects"))return n;if(!n.car.has_side_effects(t))return r(t.parent(),n,n.cdr);if(t.option("cascade")){if(n.car instanceof Yn&&!n.car.left.has_side_effects(t)){if(n.car.left.equivalent_to(n.cdr))return n.car;if(n.cdr instanceof Mn&&n.cdr.expression.equivalent_to(n.car.left))return n.cdr.expression=n.car,n.cdr}if(!n.car.has_side_effects(t)&&!n.cdr.has_side_effects(t)&&n.car.equivalent_to(n.cdr))return n.car}return n.cdr instanceof In&&"void"==n.cdr.operator&&!n.cdr.expression.has_side_effects(t)?(n.cdr.expression=n.car,n.cdr):n.cdr instanceof be?e(In,n,{operator:"void",expression:n.car}):n}),Rn.DEFMETHOD("lift_sequences",function(n){if(n.option("sequences")&&this.expression instanceof Hn){var e=this.expression,t=e.to_array();return this.expression=t.pop(),t.push(this),e=Hn.from_array(t).transform(n)}return this}),n(Un,function(n,e){return n.lift_sequences(e)}),n(In,function(n,t){n=n.lift_sequences(t);var r=n.expression;if(t.option("booleans")&&t.in_boolean_context()){switch(n.operator){case"!":if(r instanceof In&&"!"==r.operator)return r.expression;break;case"typeof":return t.warn("Boolean expression always true [{file}:{line},{col}]",n.start),e(De,n)}r instanceof Ln&&"!"==n.operator&&(n=g(n,r.negate(t)))}return n.evaluate(t)[0]}),Ln.DEFMETHOD("lift_sequences",function(n){if(n.option("sequences")){if(this.left instanceof Hn){var e=this.left,t=e.to_array();return this.left=t.pop(),t.push(this),e=Hn.from_array(t).transform(n)}if(this.right instanceof Hn&&this instanceof Yn&&!w(this.left,n)){var e=this.right,t=e.to_array();return this.right=t.pop(),t.push(this),e=Hn.from_array(t).transform(n)}}return this});var D=v("== === != !== * & | ^");n(Ln,function(n,t){function i(e,r){if(r||!n.left.has_side_effects(t)&&!n.right.has_side_effects(t)){e&&(n.operator=e);var i=n.left;n.left=n.right,n.right=i}}if(D(n.operator)&&(n.right instanceof pe&&!(n.left instanceof pe)&&(n.left instanceof Ln&&Re[n.left.operator]>=Re[n.operator]||i(null,!0)),/^[!=]==?$/.test(n.operator))){if(n.left instanceof ce&&n.right instanceof Vn){if(n.right.consequent instanceof ce&&n.right.consequent.definition()===n.left.definition()){if(/^==/.test(n.operator))return n.right.condition;if(/^!=/.test(n.operator))return n.right.condition.negate(t)}if(n.right.alternative instanceof ce&&n.right.alternative.definition()===n.left.definition()){if(/^==/.test(n.operator))return n.right.condition.negate(t);if(/^!=/.test(n.operator))return n.right.condition}}if(n.right instanceof ce&&n.left instanceof Vn){if(n.left.consequent instanceof ce&&n.left.consequent.definition()===n.right.definition()){if(/^==/.test(n.operator))return n.left.condition;if(/^!=/.test(n.operator))return n.left.condition.negate(t)}if(n.left.alternative instanceof ce&&n.left.alternative.definition()===n.right.definition()){if(/^==/.test(n.operator))return n.left.condition.negate(t);if(/^!=/.test(n.operator))return n.left.condition}}}if(n=n.lift_sequences(t),t.option("comparisons"))switch(n.operator){case"===":case"!==":(n.left.is_string(t)&&n.right.is_string(t)||n.left.is_boolean()&&n.right.is_boolean())&&(n.operator=n.operator.substr(0,2));case"==":case"!=":n.left instanceof de&&"undefined"==n.left.value&&n.right instanceof In&&"typeof"==n.right.operator&&t.option("unsafe")&&(n.right.expression instanceof ce&&n.right.expression.undeclared()||(n.right=n.right.expression,n.left=e(be,n.left).optimize(t),2==n.operator.length&&(n.operator+="=")))}if(t.option("conditionals"))if("&&"==n.operator){var o=n.left.evaluate(t);if(o.length>1)return o[1]?(t.warn("Condition left of && always true [{file}:{line},{col}]",n.start),r(t.parent(),n,n.right.evaluate(t)[0])):(t.warn("Condition left of && always false [{file}:{line},{col}]",n.start),r(t.parent(),n,o[0]))}else if("||"==n.operator){var o=n.left.evaluate(t);if(o.length>1)return o[1]?(t.warn("Condition left of || always true [{file}:{line},{col}]",n.start),r(t.parent(),n,o[0])):(t.warn("Condition left of || always false [{file}:{line},{col}]",n.start),r(t.parent(),n,n.right.evaluate(t)[0]))}if(t.option("booleans")&&t.in_boolean_context())switch(n.operator){case"&&":var o=n.left.evaluate(t),a=n.right.evaluate(t);if(o.length>1&&!o[1]||a.length>1&&!a[1])return t.warn("Boolean && always false [{file}:{line},{col}]",n.start),n.left.has_side_effects(t)?e(Hn,n,{car:n.left,cdr:e(Ee)}).optimize(t):e(Ee,n);if(o.length>1&&o[1])return a[0];if(a.length>1&&a[1])return o[0];break;case"||":var o=n.left.evaluate(t),a=n.right.evaluate(t);if(o.length>1&&o[1]||a.length>1&&a[1])return t.warn("Boolean || always true [{file}:{line},{col}]",n.start),n.left.has_side_effects(t)?e(Hn,n,{car:n.left,cdr:e(De)}).optimize(t):e(De,n);if(o.length>1&&!o[1])return a[0];if(a.length>1&&!a[1])return o[0];break;case"+":var o=n.left.evaluate(t),a=n.right.evaluate(t);if(o.length>1&&o[0]instanceof de&&o[1]||a.length>1&&a[0]instanceof de&&a[1])return t.warn("+ in boolean context always true [{file}:{line},{col}]",n.start),e(De,n)}if(t.option("comparisons")&&n.is_boolean()){if(!(t.parent()instanceof Ln)||t.parent()instanceof Yn){var u=e(In,n,{operator:"!",expression:n.negate(t)});n=g(n,u)}switch(n.operator){case"<":i(">");break;case"<=":i(">=")}}return"+"==n.operator&&n.right instanceof de&&""===n.right.getValue()&&n.left instanceof Ln&&"+"==n.left.operator&&n.left.is_string(t)?n.left:(t.option("evaluate")&&"+"==n.operator&&(n.left instanceof pe&&n.right instanceof Ln&&"+"==n.right.operator&&n.right.left instanceof pe&&n.right.is_string(t)&&(n=e(Ln,n,{operator:"+",left:e(de,null,{value:""+n.left.getValue()+n.right.left.getValue(),start:n.left.start,end:n.right.left.end}),right:n.right.right})),n.right instanceof pe&&n.left instanceof Ln&&"+"==n.left.operator&&n.left.right instanceof pe&&n.left.is_string(t)&&(n=e(Ln,n,{operator:"+",left:n.left.left,right:e(de,null,{value:""+n.left.right.getValue()+n.right.getValue(),start:n.left.right.start,end:n.right.end})})),n.left instanceof Ln&&"+"==n.left.operator&&n.left.is_string(t)&&n.left.right instanceof pe&&n.right instanceof Ln&&"+"==n.right.operator&&n.right.left instanceof pe&&n.right.is_string(t)&&(n=e(Ln,n,{operator:"+",left:e(Ln,n.left,{operator:"+",left:n.left.left,right:e(de,null,{value:""+n.left.right.getValue()+n.right.left.getValue(),start:n.left.right.start,end:n.right.left.end})}),right:n.right.right}))),n.right instanceof Ln&&n.right.operator==n.operator&&("&&"==n.operator||"||"==n.operator)?(n.left=e(Ln,n.left,{operator:n.operator,left:n.left,right:n.right.left}),n.right=n.right.right,n.transform(t)):n.evaluate(t)[0])}),n(ce,function(n,r){function i(n,e){return e instanceof Ln&&"="===e.operator&&e.left===n}if(n.undeclared()&&!i(n,r.parent())){var o=r.option("global_defs");if(o&&o.hasOwnProperty(n.name))return t(r,o[n.name],n);switch(n.name){case"undefined":return e(be,n);case"NaN":return e(ge,n).transform(r);case"Infinity":return e(Ae,n).transform(r)}}return n}),n(Ae,function(n,t){return e(Ln,n,{operator:"/",left:e(he,n,{value:1}),right:e(he,n,{value:0})})}),n(be,function(n,t){if(t.option("unsafe")){var r=t.find_parent(fn),i=r.find_variable("undefined");if(i){var o=e(ce,n,{name:"undefined",scope:r,thedef:i});return o.reference(),o}}return n});var F=["+","-","/","*","%",">>","<<",">>>","|","^","&"];n(Yn,function(n,e){return n=n.lift_sequences(e),"="==n.operator&&n.left instanceof ce&&n.right instanceof Ln&&n.right.left instanceof ce&&n.right.left.name==n.left.name&&i(n.right.operator,F)&&(n.operator=n.right.operator+"=",n.right=n.right.right),n}),n(Vn,function(n,i){function o(n){return n instanceof De||n instanceof In&&"!"==n.operator&&n.expression instanceof pe&&!n.expression.value}function a(n){return n instanceof Ee||n instanceof In&&"!"==n.operator&&n.expression instanceof pe&&!!n.expression.value}if(!i.option("conditionals"))return n;if(n.condition instanceof Hn){var u=n.condition.car;return n.condition=n.condition.cdr,Hn.cons(u,n)}var s=n.condition.evaluate(i);if(s.length>1)return s[1]?(i.warn("Condition always true [{file}:{line},{col}]",n.start),r(i.parent(),n,n.consequent)):(i.warn("Condition always false [{file}:{line},{col}]",n.start),r(i.parent(),n,n.alternative));var c=s[0].negate(i);g(s[0],c)===c&&(n=e(Vn,n,{condition:c,consequent:n.alternative,alternative:n.consequent}));var f=n.consequent,l=n.alternative;if(f instanceof Yn&&l instanceof Yn&&f.operator==l.operator&&f.left.equivalent_to(l.left)&&!f.left.has_side_effects(i))return e(Yn,n,{operator:f.operator,left:f.left,right:e(Vn,n,{condition:n.condition,consequent:f.right,alternative:l.right})});if(f instanceof Mn&&l.TYPE===f.TYPE&&f.args.length==l.args.length&&!f.expression.has_side_effects(i)&&f.expression.equivalent_to(l.expression)){if(0==f.args.length)return e(Hn,n,{car:n.condition,cdr:f});if(1==f.args.length)return f.args[0]=e(Vn,n,{condition:n.condition,consequent:f.args[0],alternative:l.args[0]}),f}if(f instanceof Vn&&f.alternative.equivalent_to(l))return e(Vn,n,{condition:e(Ln,n,{left:n.condition,operator:"&&",right:f.condition}),consequent:f.consequent,alternative:l});if(f.is_constant(i)&&l.is_constant(i)&&f.equivalent_to(l)){var p=f.constant_value();return n.condition.has_side_effects(i)?Hn.from_array([n.condition,t(i,p,n)]):t(i,p,n)}return o(f)&&a(l)?n.condition.is_boolean()?n.condition:(n.condition=n.condition.negate(i),e(In,n.condition,{operator:"!",expression:n.condition})):a(f)&&o(l)?n.condition.negate(i):n}),n(we,function(n,t){if(t.option("booleans")){var r=t.parent();return r instanceof Ln&&("=="==r.operator||"!="==r.operator)?(t.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:r.operator,value:n.value,file:r.start.file,line:r.start.line,col:r.start.col}),e(he,n,{value:+n.value})):e(In,n,{operator:"!",expression:e(he,n,{value:1-n.value})})}return n}),n(Pn,function(n,t){var r=n.property;if(r instanceof de&&t.option("properties")){if(r=r.getValue(),ke(r)?t.option("screw_ie8"):S(r))return e(jn,n,{expression:n.expression,property:r}).optimize(t);var i=parseFloat(r);isNaN(i)||i.toString()!=r||(n.property=e(he,n.property,{value:i}))}return n}),n(jn,function(n,t){var r=n.property;return ke(r)&&!t.option("screw_ie8")?e(Pn,n,{expression:n.expression,property:e(de,n,{value:r})}).optimize(t):n.evaluate(t)[0]}),n(Wn,E),n(Jn,E),n(ve,E),n(gn,function(n,e){return n.value instanceof be&&(n.value=null),n})}(),function(){function e(n){return"Literal"==n.type?null!=n.raw?n.raw:n.value+"":void 0}function t(n){var t=n.loc,r=t&&t.start,i=n.range;return new V({file:t&&t.source,line:r&&r.line,col:r&&r.column,pos:i?i[0]:n.start,endline:r&&r.line,endcol:r&&r.column,endpos:i?i[0]:n.start,raw:e(n)})}function r(n){var t=n.loc,r=t&&t.end,i=n.range;return new V({file:t&&t.source,line:r&&r.line,col:r&&r.column,pos:i?i[1]:n.end,endline:r&&r.line,endcol:r&&r.column,endpos:i?i[1]:n.end,raw:e(n)})}function i(e,i,a){var l="function From_Moz_"+e+"(M){\n";l+="return new U2."+i.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var p="function To_Moz_"+e+"(M){\n";p+="return {\ntype: "+JSON.stringify(e),a&&a.split(/\s*,\s*/).forEach(function(n){var e=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(n);if(!e)throw new Error("Can't understand property map: "+n);var t=e[1],r=e[2],i=e[3];switch(l+=",\n"+i+": ",p+=",\n"+t+": ",r){case"@":l+="M."+t+".map(from_moz)",p+="M."+i+".map(to_moz)";break;case">":l+="from_moz(M."+t+")",p+="to_moz(M."+i+")";break;case"=":l+="M."+t,p+="M."+i;break;case"%":l+="from_moz(M."+t+").body",p+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+n)}}),l+="\n})\n}",p+="\n}\n}",l=new Function("U2","my_start_token","my_end_token","from_moz","return("+l+")")(n,t,r,o),p=new Function("to_moz","to_moz_block","return("+p+")")(s,c),f[e]=l,u(i,p)}function o(n){l.push(n);var e=null!=n?f[n.type](n):null;return l.pop(),e}function a(n,e,t){var r=n.start,i=n.end;return null!=r.pos&&null!=i.endpos&&(e.range=[r.pos,i.endpos]),r.line&&(e.loc={start:{line:r.line,column:r.col},end:i.endline?{line:i.endline,column:i.endcol}:null},r.file&&(e.loc.source=r.file)),e}function u(n,e){n.DEFMETHOD("to_mozilla_ast",function(){return a(this,e(this))})}function s(n){return null!=n?n.to_mozilla_ast():null}function c(n){return{type:"BlockStatement",body:n.body.map(s)}}var f={ExpressionStatement:function(n){var e=n.expression;return"Literal"===e.type&&"string"==typeof e.value?new G({start:t(n),end:r(n),value:e.value}):new X({start:t(n),end:r(n),body:o(e)})},TryStatement:function(n){var e=n.handlers||[n.handler];if(e.length>1||n.guardedHandlers&&n.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new Cn({start:t(n),end:r(n),body:o(n.block).body,bcatch:o(e[0]),bfinally:n.finalizer?new Sn(o(n.finalizer)):null})},Property:function(n){var e=n.key,i="Identifier"==e.type?e.name:e.value,a={start:t(e),end:r(n.value),key:i,value:o(n.value)};switch(n.kind){case"init":return new Xn(a);case"set":return a.value.name=o(e),new Kn(a);case"get":return a.value.name=o(e),new Zn(a)}},ObjectExpression:function(n){return new Jn({start:t(n),end:r(n),properties:n.properties.map(function(n){return n.type="Property",o(n)})})},SequenceExpression:function(n){return Hn.from_array(n.expressions.map(o))},MemberExpression:function(n){return new(n.computed?Pn:jn)({start:t(n),end:r(n),property:n.computed?o(n.property):n.property.name,expression:o(n.object)})},SwitchCase:function(n){return new(n.test?kn:xn)({start:t(n),end:r(n),expression:o(n.test),body:n.consequent.map(o)})},VariableDeclaration:function(n){return new("const"===n.kind?On:$n)({start:t(n),end:r(n),definitions:n.declarations.map(o)})},Literal:function(n){var e=n.value,i={start:t(n),end:r(n)};if(null===e)return new _e(i);switch(typeof e){case"string":return i.value=e,new de(i);case"number":return i.value=e,new he(i);case"boolean":return new(e?De:Ee)(i);default:var o=n.regex;return o&&o.pattern?i.value=new RegExp(o.pattern,o.flags).toString():i.value=n.regex&&n.raw?n.raw:e,new ve(i)}},Identifier:function(n){var e=l[l.length-2];return new("LabeledStatement"==e.type?se:"VariableDeclarator"==e.type&&e.id===n?"const"==e.kind?re:te:"FunctionExpression"==e.type?e.id===n?ae:ie:"FunctionDeclaration"==e.type?e.id===n?oe:ie:"CatchClause"==e.type?ue:"BreakStatement"==e.type||"ContinueStatement"==e.type?fe:ce)({start:t(n),end:r(n),name:n.name})}};f.UpdateExpression=f.UnaryExpression=function(n){var e="prefix"in n?n.prefix:"UnaryExpression"==n.type;return new(e?In:Un)({start:t(n),end:r(n),operator:n.operator,expression:o(n.argument)})},i("Program",ln,"body@body"),i("EmptyStatement",Q),i("BlockStatement",Z,"body@body"),i("IfStatement",En,"test>condition, consequent>body, alternate>alternative"),i("LabeledStatement",en,"label>label, body>body"),i("BreakStatement",An,"label>label"),i("ContinueStatement",wn,"label>label"),i("WithStatement",cn,"object>expression, body>body"),i("SwitchStatement",Dn,"discriminant>expression, cases@body"),i("ReturnStatement",gn,"argument>value"),i("ThrowStatement",bn,"argument>value"),i("WhileStatement",an,"test>condition, body>body"),i("DoWhileStatement",on,"test>condition, body>body"),i("ForStatement",un,"init>init, test>condition, update>step, body>body"),i("ForInStatement",sn,"left>init, right>object, body>body"),i("DebuggerStatement",J),i("FunctionDeclaration",vn,"id>name, params@argnames, body%body"),i("VariableDeclarator",qn,"id>name, init>value"),i("CatchClause",Bn,"param>argname, body%body"),i("ThisExpression",le),i("ArrayExpression",Wn,"elements@elements"),i("FunctionExpression",hn,"id>name, params@argnames, body%body"),i("BinaryExpression",Ln,"operator=operator, left>left, right>right"),i("LogicalExpression",Ln,"operator=operator, left>left, right>right"),i("AssignmentExpression",Yn,"operator=operator, left>left, right>right"),i("ConditionalExpression",Vn,"test>condition, consequent>consequent, alternate>alternative"),i("NewExpression",zn,"callee>expression, arguments@args"),i("CallExpression",Mn,"callee>expression, arguments@args"),u(G,function(n){return{type:"ExpressionStatement",expression:{type:"Literal",value:n.value}}}),u(X,function(n){return{type:"ExpressionStatement",expression:s(n.body)}}),u(Fn,function(n){return{type:"SwitchCase",test:s(n.expression),consequent:n.body.map(s)}}),u(Cn,function(n){return{type:"TryStatement",block:c(n),handler:s(n.bcatch),guardedHandlers:[],finalizer:s(n.bfinally)}}),u(Bn,function(n){return{type:"CatchClause",param:s(n.argname),guard:null,body:c(n)}}),u(Tn,function(n){return{type:"VariableDeclaration",kind:n instanceof On?"const":"var",declarations:n.definitions.map(s)}}),u(Hn,function(n){return{type:"SequenceExpression",expressions:n.to_array().map(s)}}),u(Nn,function(n){var e=n instanceof Pn;return{type:"MemberExpression",object:s(n.expression),computed:e,property:e?s(n.property):{type:"Identifier",name:n.property}}}),u(Rn,function(n){return{type:"++"==n.operator||"--"==n.operator?"UpdateExpression":"UnaryExpression",operator:n.operator,prefix:n instanceof In,argument:s(n.expression)}}),u(Ln,function(n){return{type:"&&"==n.operator||"||"==n.operator?"LogicalExpression":"BinaryExpression",left:s(n.left),operator:n.operator,right:s(n.right)}}),u(Jn,function(n){return{type:"ObjectExpression",properties:n.properties.map(s)}}),u(Gn,function(n){var e,t=k(n.key)?{type:"Identifier",name:n.key}:{type:"Literal",value:n.key};return n instanceof Xn?e="init":n instanceof Zn?e="get":n instanceof Kn&&(e="set"),{type:"Property",kind:e,key:t,value:s(n.value)}}),u(Qn,function(n){var e=n.definition();return{type:"Identifier",name:e?e.mangled_name||e.name:n.name}}),u(ve,function(n){var e=n.value;return{type:"Literal",value:e,raw:e.toString(),regex:{pattern:e.source,flags:e.toString().match(/[gimuy]*$/)[0]}}}),u(pe,function(n){var e=n.value;return"number"==typeof e&&(0>e||0===e&&0>1/e)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-e,raw:n.start.raw}}:{type:"Literal",value:e,raw:n.start.raw}}),u(me,function(n){return{type:"Identifier",name:String(n.value)}}),we.DEFMETHOD("to_mozilla_ast",pe.prototype.to_mozilla_ast),_e.DEFMETHOD("to_mozilla_ast",pe.prototype.to_mozilla_ast),ye.DEFMETHOD("to_mozilla_ast",function(){return null}),K.DEFMETHOD("to_mozilla_ast",Z.prototype.to_mozilla_ast),pn.DEFMETHOD("to_mozilla_ast",hn.prototype.to_mozilla_ast);var l=null;Y.from_mozilla_ast=function(n){var e=l;l=[];var t=o(n);return l=e,t}}(),n.Compressor=P,n.DefaultsError=u,n.Dictionary=_,n.JS_Parse_Error=$,n.MAP=L,n.OutputStream=j,n.SourceMap=R,n.TreeTransformer=H,n.TreeWalker=y,n.base54=Ue,n.defaults=s,n.mangle_properties=U,n.merge=c,n.parse=z,n.push_uniq=l,n.string_template=p,n.is_identifier=k,n.SymbolDef=N,e.UglifyJS=n}({},function(){return this}()); \ No newline at end of file diff --git a/dist/htmlminifier.js b/dist/htmlminifier.js index 4af7e69..f658ca2 100644 --- a/dist/htmlminifier.js +++ b/dist/htmlminifier.js @@ -1202,69 +1202,20 @@ var minifyJS = (function() { var UglifyJS = getModule('UglifyJS', 'uglify-js'); - if (UglifyJS) { - if (UglifyJS.minify) { - return function(text, options) { - try { - return UglifyJS.minify(text, options).code; - } - catch (err) { - log(err); - return text; - } - }; - } - else if (UglifyJS.parse) { - return function(text, options) { - try { - options = UglifyJS.defaults(options, { - warnings: false, - mangle: {}, - mangleProperties: false, - nameCache: null, - compress: {}, - parse: {} - }); - UglifyJS.base54.reset(); - // 1. parse - var toplevel = UglifyJS.parse(text, { - filename: 0, - toplevel: null, - bare_returns: options.parse ? options.parse.bare_returns : undefined - }); - // 2. compress - if (options.compress) { - var compress = { warnings: options.warnings }; - UglifyJS.merge(compress, options.compress); - toplevel.figure_out_scope(); - var sq = UglifyJS.Compressor(compress); - toplevel = toplevel.transform(sq); - } - // 3. mangle properties - if (options.mangleProperties && options.nameCache) { - options.mangleProperties.cache = UglifyJS.readNameCache(options.nameCache, 'props'); - toplevel = UglifyJS.mangle_properties(toplevel, options.mangleProperties); - UglifyJS.writeNameCache(options.nameCache, 'props', options.mangleProperties.cache); - } - // 4. mangle - if (options.mangle) { - toplevel.figure_out_scope(options.mangle); - toplevel.compute_char_frequency(options.mangle); - toplevel.mangle_names(options.mangle); - } - // 5. output - var stream = UglifyJS.OutputStream(options.output); - toplevel.print(stream); - return stream.toString(); - } - catch (err) { - log(err); - return text; - } - }; - } + if (UglifyJS && UglifyJS.minify) { + return function(text, options) { + try { + return UglifyJS.minify(text, options).code; + } + catch (err) { + log(err); + return text; + } + }; + } + else { + return noop; } - return noop; })(); var minifyCSS = (function() { diff --git a/dist/htmlminifier.min.js b/dist/htmlminifier.min.js index 7fc61a0..1c6a2d7 100644 --- a/dist/htmlminifier.min.js +++ b/dist/htmlminifier.min.js @@ -3,4 +3,4 @@ * Copyright 2010-2016 Juriy "kangax" Zaytsev * Licensed under the MIT license */ -!function(a){"use strict";function b(a){var b=e.source+"(?:\\s*("+c(a)+")\\s*(?:"+h.join("|")+"))?";if(a.customAttrSurround){for(var d=[],f=a.customAttrSurround.length-1;f>=0;f--)d[f]="(?:("+a.customAttrSurround[f][0].source+")\\s*"+b+"\\s*("+a.customAttrSurround[f][1].source+"))";d.push("(?:"+b+")"),b="(?:"+d.join("|")+")"}return new RegExp("^\\s*"+b)}function c(a){return g.concat(a.customAttrAssign||[]).map(function(a){return"(?:"+a.source+")"}).join("|")}function d(a){for(var b={},c=a.split(","),d=0;d\/=]+)/,f=/=/,g=[f],h=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],i=function(){var b;return b="function"==typeof require?require("ncname"):a.NCName,b=b?b.source.slice(1,-1):"[:A-Za-z_][:\\w\\-\\.]*","((?:"+b+"\\:)?"+b+")"}(),j=new RegExp("^<"+i),k=/^\s*(\/?)>/,l=new RegExp("^<\\/"+i+"[^>]*>"),m=/^]+>/i,n=!1;"x".replace(/x(.)?/g,function(a,b){n=""===b});var o=d("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),p=d("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),q=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),r=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),s=d("script,style"),t=d("abbr,b,bdi,bdo,button,cite,code,data,dfn,em,h1,h2,h3,h4,h5,h6,i,kbd,label,legend,mark,meter,output,p,pre,progress,q,rp,rt,s,samp,small,span,strong,sub,sup,time,u,var"),u=d("a,abbr,area,audio,b,bdi,bdo,br,button,canvas,cite,code,data,datalist,del,dfn,em,embed,i,iframe,img,input,ins,kbd,keygen,label,link,main,map,mark,math,menu,meter,nav,noscript,object,ol,output,p,picture,pre,progress,q,ruby,s,samp,script,section,select,small,span,strong,sub,sup,svg,table,template,textarea,time,u,ul,var,video,wbr"),v={},w=a.HTMLParser=function(a,c){function d(a){var b=a.match(j);if(b){var c={tagName:b[1],attrs:[]};a=a.slice(b[0].length);for(var d,e;!(d=a.match(k))&&(e=a.match(y));)a=a.slice(e[0].length),c.attrs.push(e);if(d)return c.unarySlash=d[1],c.rest=a.slice(d[0].length),c}}function e(a){var b=a.tagName,d=a.unarySlash;if(c.html5&&g&&t[g]&&!u[b]&&f("",g),!c.html5)for(;g&&p[g];)f("",g);q[b]&&g===b&&f("",b);var e=o[b]||"html"===b&&"head"===g||!!d,h=a.attrs.map(function(a){var b,d,e,f,g,h,i,j=7;n&&-1===a[0].indexOf('""')&&(""===a[3]&&(a[3]=void 0),""===a[4]&&(a[4]=void 0),""===a[5]&&(a[5]=void 0));var k=1;if(c.customAttrSurround)for(var l=0,m=c.customAttrSurround.length;m>l;l++,k+=j)if(b=a[k+1],h=a[k+2],b){e=a[k+3],d=e||a[k+4]||a[k+5],i=e?'"':d?"'":"",f=a[k],g=a[k+6];break}return!b&&(b=a[k])&&(h=a[k+1],e=a[k+2],d=e||a[k+3]||a[k+4],i=e?'"':d?"'":""),void 0===d&&(d=r[b]?b:e),{name:b,value:d,customAssign:h||"=",customOpen:f||"",customClose:g||"",quote:i||""}});e||(x.push({tag:b,attrs:h}),g=b,d=""),c.start&&c.start(b,h,e,d)}function f(a,b){var d;if(b){var e=b.toLowerCase();for(d=x.length-1;d>=0&&x[d].tag.toLowerCase()!==e;d--);}else d=0;if(d>=0){for(var f=x.length-1;f>=d;f--)c.end&&c.end(x[f].tag,x[f].attrs,f>d||!a);x.length=d,g=d&&x[d-1].tag}}for(var g,h,i,w,x=[],y=b(c);a;){if(h=a,g&&s[g]){var z=g.toLowerCase(),A=v[z]||(v[z]=new RegExp("([\\s\\S]*?)]*>","i"));a=a.replace(A,function(a,b){return"script"!==z&&"style"!==z&&"noscript"!==z&&(b=b.replace(//g,"$1").replace(//g,"$1")),c.chars&&c.chars(b),""}),f("",z)}else{var B=a.indexOf("<");if(0===B){if(/^");if(C>=0){c.comment&&c.comment(a.substring(4,C)),a=a.substring(C+3),i="";continue}}if(/^");if(D>=0){c.comment&&c.comment(a.substring(2,D+1),!0),a=a.substring(D+2),i="";continue}}var E=a.match(m);if(E){c.doctype&&c.doctype(E[0]),a=a.substring(E[0].length),i="";continue}var F=a.match(l);if(F){a=a.substring(F[0].length),F[0].replace(l,f),i="/"+F[1].toLowerCase();continue}var G=d(a);if(G){a=G.rest,e(G),i=G.tagName.toLowerCase();continue}}var H;B>=0?(H=a.substring(0,B),a=a.substring(B)):(H=a,a="");var I=d(a);I?w=I.tagName:(I=a.match(l),w=I?"/"+I[1]:""),c.chars&&c.chars(H,i,w),i=""}if(a===h)throw"Parse Error: "+a}c.partialMarkup||f()};a.HTMLtoXML=function(a){var b="";return new w(a,{start:function(a,c,d){b+="<"+a;for(var e=0;e"},end:function(a){b+=""},chars:function(a){b+=a},comment:function(a){b+=""},ignore:function(a){b+=a}}),b},a.HTMLtoDOM=function(a,b){var c=d("html,head,body,title"),e={link:"head",base:"head"};b?b=b.ownerDocument||b.getOwnerDocument&&b.getOwnerDocument()||b:"undefined"!=typeof DOMDocument?b=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?b=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(b=new ActiveXObject("Msxml.DOMDocument"));var f=[],g=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!g&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new w(a,{start:function(a,d,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in d)h.setAttribute(d[j].name,d[j].value);e[a]&&"boolean"!=typeof c[e[a]]?c[e[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(f.push(h),i=h)},end:function(){f.length-=1,i=f[f.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}}("undefined"==typeof exports?this:exports),function(a){"use strict";function b(a){return" "===a?a:" "}function c(a){return a?a.replace(/[\t\n\r ]+/g,b):a}function d(a){var b={};return a.forEach(function(a){b[a]=1}),function(a){return 1===b[a]}}function e(a){return d(a.split(/,/))}function f(a,d,e,f,g){var h="",i="";return d.preserveLineBreaks&&(a=a.replace(/^[\t ]*[\n\r][\t\n\r ]*/,function(){return h="\n",""}).replace(/[\t\n\r ]*[\n\r][\t ]*$/,function(){return i="\n",""})),e&&(a=a.replace(/^\s+/,!h&&d.conservativeCollapse?b:"")),f&&(a=a.replace(/\s+$/,!i&&d.conservativeCollapse?b:"")),g&&(a=c(a)),h+a+i}function g(a,b,c,d){var e=b&&!W(b);e&&!d.collapseInlineTagWhitespace&&(e="/"===b.charAt(0)?!U(b.slice(1)):!V(b));var g=c&&!W(c);return g&&!d.collapseInlineTagWhitespace&&(g="/"===c.charAt(0)?!V(c.slice(1)):!U(c)),f(a,d,e,g,b&&c)}function h(a){return/^\[if\s[^\]]+\]|\[endif\]$/.test(a)}function i(a,b){if(/^!/.test(a))return!0;if(b.ignoreCustomComments)for(var c=0,d=b.ignoreCustomComments.length;d>c;c++)if(b.ignoreCustomComments[c].test(a))return!0;return!1}function j(a,b){var c=b.customEventAttributes;if(c){for(var d=c.length;d--;)if(c[d].test(a))return!0;return!1}return/^on[a-z]{3,}$/.test(a)}function k(a){return/^[^\x20\t\n\f\r"'`=<>]+$/.test(a)}function l(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function m(a,b,c,d){return c=c?T(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!l(d,"src")||"a"===a&&"name"===b&&l(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function n(a,b,c){return"script"===a&&"type"===b&&X(T(c.toLowerCase()))}function o(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e){var f=T(b[c].value.split(/;/,2)[0]).toLowerCase();return""===f||X(f)}}return!0}function p(a,b,c){return("style"===a||"link"===a)&&"type"===b&&"text/css"===T(c.toLowerCase())}function q(a,b){return Y(a)||"draggable"===a&&!Z(b)}function r(a,b){return/^(?:a|area|link|base)$/.test(b)&&"href"===a||"img"===b&&/^(?:src|longdesc|usemap)$/.test(a)||"object"===b&&/^(?:classid|codebase|data|usemap)$/.test(a)||"q"===b&&"cite"===a||"blockquote"===b&&"cite"===a||("ins"===b||"del"===b)&&"cite"===a||"form"===b&&"action"===a||"input"===b&&("src"===a||"usemap"===a)||"head"===b&&"profile"===a||"script"===b&&("src"===a||"for"===a)}function s(a,b){return/^(?:a|area|object|button)$/.test(b)&&"tabindex"===a||"input"===b&&("maxlength"===a||"tabindex"===a)||"select"===b&&("size"===a||"tabindex"===a)||"textarea"===b&&/^(?:rows|cols|tabindex)$/.test(a)||"colgroup"===b&&"span"===a||"col"===b&&"span"===a||("th"===b||"td"===b)&&("rowspan"===a||"colspan"===a)}function t(a,b){if("link"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("rel"===b[c].name&&"canonical"===b[c].value)return!0}function u(a,b,d,e,f){if(d&&j(b,e)){if(d=T(d).replace(/^javascript:\s*/i,"").replace(/\s*;$/,""),e.minifyJS){var g=va($+d+_,e.minifyJS);return g.slice($.length,-_.length)}return d}return"class"===b?c(T(d)):r(b,a)?(d=T(d),e.minifyURLs&&!t(a,f)?ua(d,e.minifyURLs):d):s(b,a)?T(d):"style"===b?(d=T(d),d&&(d=d.replace(/\s*;\s*$/,"")),e.minifyCSS?wa(d,e.minifyCSS,!0):d):(v(a,f)&&"content"===b?d=d.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(a){return(+a).toString()}):d&&e.customAttrCollapse&&e.customAttrCollapse.test(b)?d=d.replace(/\n+|\r+|\s{2,}/g,""):"script"===a&&"type"===b&&(d=T(d.replace(/\s*;\s*/g,";"))),d)}function v(a,b){if("meta"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("name"===b[c].name&&"viewport"===b[c].value)return!0}function w(a){return"*{"+a+"}"}function x(a){var b=a.match(/^\*\{([\s\S]*)\}$/m);return b&&b[1]?b[1]:a}function y(a,b){return a.replace(/^(\[if\s[^\]]+\]>)([\s\S]*?)(\s*\*\/|\/\/\s*\]\]>)\s*$/,"")}function A(a,b,c){for(var d=0,e=c.length;e>d;d++)if("type"===c[d].name.toLowerCase()&&b.processScripts.indexOf(c[d].value)>-1)return P(a,b);return a}function B(a,b){return a.replace(aa[b],"").replace(ba[b],"")}function C(a,b){switch(a){case"html":case"head":return!0;case"body":return!ea(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function D(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return ma(a)}return!1}function E(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return fa(b);case"p":return ga(b);case"rb":case"rt":case"rp":return ia(b);case"rtc":return ja(b);case"option":return ka(b);case"thead":case"tbody":return la(b);case"tfoot":return"tbody"===b;case"td":case"th":return na(b)}return!1}function F(a,b,c){var d=!c||/^\s*$/.test(c);return d?"input"===a&&"value"===b||ta.test(b):!1}function G(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function H(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(G("src",b))return!1;break;case"iframe":if(G("src",b)||G("srcdoc",b))return!1;break;case"object":if(G("data",b))return!1;break;case"applet":if(G("code",b))return!1}return!0}function I(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function J(a){return!/^(?:pre|textarea)$/.test(a)}function K(a,b,c,d,e,f,g){var h,i,j=f.caseSensitive?a.name:a.name.toLowerCase(),l=a.value,o=a.quote;if(f.removeRedundantAttributes&&m(c,j,l,b)||f.removeScriptTypeAttributes&&n(c,j,l)||f.removeStyleLinkTypeAttributes&&p(c,j,l))return"";if(l=u(c,j,l,f,b),f.removeEmptyAttributes&&F(c,j,l))return"";if(void 0!==l&&!f.removeAttributeQuotes||!k(l)){if(!f.preventAttributesEscaping){if(void 0!==f.quoteCharacter)o="'"===f.quoteCharacter?"'":'"';else{var r=(l.match(/'/g)||[]).length,s=(l.match(/"/g)||[]).length;o=s>r?"'":'"'}l='"'===o?l.replace(/"/g,"""):l.replace(/'/g,"'")}i=o+l+o,g||f.removeTagWhitespace||(i+=" ")}else i=!g||d||/\/$/.test(l)?l+" ":l;return void 0===l||f.collapseBooleanAttributes&&q(j.toLowerCase(),l.toLowerCase())?(h=j,g||(h+=" ")):h=j+a.customAssign+i,a.customOpen+h+a.customClose}function L(a){"includeAutoGeneratedTags"in a||(a.includeAutoGeneratedTags=!0);for(var b=["canCollapseWhitespace","canTrimWhitespace"],c=0,d=b.length;d>c;c++)a[b[c]]||(a[b[c]]=function(){return!1});a.minifyURLs&&"object"!=typeof a.minifyURLs&&(a.minifyURLs={}),a.minifyJS&&("object"!=typeof a.minifyJS&&(a.minifyJS={}),a.minifyJS.fromString=!0,(a.minifyJS.output||(a.minifyJS.output={})).inline_script=!0),a.minifyCSS&&("object"!=typeof a.minifyCSS&&(a.minifyCSS={}),"undefined"==typeof a.minifyCSS.advanced&&(a.minifyCSS.advanced=!1))}function M(a){return a}function N(b,c){var d=a[b];return"undefined"==typeof d&&"function"==typeof require&&(d=require(c)),d}function O(a){var b;do b=Math.random().toString(36).slice(2);while(~a.indexOf(b));return b}function P(a,b,d){function e(a,c){return I(a)||b.canCollapseWhitespace(a,c)}function j(a,c){return J(a)||b.canTrimWhitespace(a,c)}function k(){for(var a=t.length-1;a>0&&!/^<[^\/!]/.test(t[a]);)a--;t.length=Math.max(0,a)}function l(){for(var a=t.length-1;a>0&&!/^<\//.test(t[a]);)a--;t.length=Math.max(0,a)}function m(a){var c;t.length>1&&/^(?:0&&/\s$/.test(t[t.length-1])&&(c=t.length-1),c>0&&(t[c]=t[c].replace(/\s+$/,function(c){return g(c,"comment",a,b)}))}b=b||{};var n=[];L(b),a=b.collapseWhitespace?T(a):a;var p,q,r,s,t=[],u="",v="",w=[],x=[],F=[],G="",M="",N=b.lint,P=Date.now(),U=[],W=[];a=a.replace(/([\s\S]*?)/g,function(b,c){r||(r="");var d=r+U.length;return U.push(c),d});var X=(b.ignoreCustomFragments||[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]).map(function(a){return a.source});if(X.length){var Y=new RegExp("\\s*(?:"+X.join("|")+")+\\s*","g");a=a.replace(Y,function(b){s||(s=O(a));var c=s+W.length;return W.push(b)," "+c+" "})}new S(a,{partialMarkup:d,html5:"undefined"!=typeof b.html5?b.html5:!0,start:function(a,c,d,f){var g=a.toLowerCase();if("svg"===g){n.push(b);var h={};for(var i in b)h[i]=b[i];h.keepClosingSlash=!0,h.caseSensitive=!0,b=h}a=b.caseSensitive?a:g,v=a,p=a,V(a)||(u=""),q=!1,w=c;var o=b.removeOptionalTags;if(o){var r=sa(a);r&&C(G,a)&&k(),G="",r&&E(M,a)&&(l(),o=!D(M,a)),M=""}b.collapseWhitespace&&(x.length||m(a),j(a,c)||x.push(a),e(a,c)||F.push(a));var s="<"+a,y=f&&b.keepClosingSlash;t.push(s),N&&N.testElement(a);for(var z,A=[],B=!0,H=c.length;--H>=0;)N&&N.testAttribute(a,c[H].name.toLowerCase(),c[H].value),z=K(c[H],c,a,y,H,b,B),z&&(B=!1,A.unshift(z));A.length>0?(t.push(" "),t.push.apply(t,A)):o&&ca(a)&&(G=a),t.push(t.pop()+(y?"/":"")+">")},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=n.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(x.length?a===x[x.length-1]&&x.pop():m("/"+a),F.length&&a===F[F.length-1]&&F.pop());var f=!1;a===v&&(v="",f=!q),b.removeOptionalTags&&(f&&oa(G)&&k(),G="",!sa(a)||!M||ra(M)||"p"===M&&ha(a)||l(),M=da(a)?a:""),b.removeEmptyElements&&f&&H(a,c)?(k(),G="",M=""):(!b.includeAutoGeneratedTags&&d||t.push(""),p="/"+a,V(a)||(u=""))},chars:function(a,d,e){if(d=""===d?"comment":d,e=""===e?"comment":e,b.collapseWhitespace){if(!x.length){if("comment"===d){var h=""===t[t.length-1];if(h&&(d=p),t.length>1&&(h||/ $/.test(u))){var i=t.length-2;t[i]=t[i].replace(/\s+$/,function(b){return a=b+a,""})}}if(d&&V("/"===d.charAt(0)?d.slice(1):d)&&(a=f(a,b,/(?:^|\s)$/.test(u))),a=d||e?g(a,d,e,b):T(a),!a&&/\s$/.test(u)&&d&&"/"===d.charAt(0))for(var m=t.length-2,n=d.slice(1);m>=0&&j(n);m--){var r=t[m],s=r.match(/^<\/([\w:-]+)>$/);if(s)n=s[1];else if(/>$/.test(r)||(t[m]=g(r,null,e,b)))break}}F.length||(a=d&&e||"html"===e?a:c(a))}"script"!==v&&"style"!==v||(b.removeCommentsFromCDATA&&(a=B(a,v)),b.removeCDATASectionsFromCDATA&&(a=z(a)),b.processScripts&&(a=A(a,b,w))),b.minifyJS&&o(v,w)&&(a=va(a,b.minifyJS),";"===a.charAt(a.length-1)&&(a=a.slice(0,-1))),"style"===v&&b.minifyCSS&&(a=wa(a,b.minifyCSS)),b.removeOptionalTags&&a&&(("html"===G||"body"===G&&!/^\s/.test(a))&&k(),G="",(pa(M)||qa(M)&&!/^\s/.test(a))&&l(),M=""),p=/^\s*$/.test(a)?d:"comment",u+=a,a&&(q=!0),N&&N.testChars(a),t.push(a)},comment:function(a,c){var d=c?"":"-->";a=h(a)?d+y(a,b)+e:b.removeComments?i(a,b)?"":"":d+a+e,b.removeOptionalTags&&a&&(G="",M=""),t.push(a)},doctype:function(a){t.push(b.useShortDoctype?"":c(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(oa(G)&&k(),M&&!ra(M)&&l());var Z=Q(t,b);return s&&(Z=Z.replace(new RegExp("(\\s*)"+s+"([0-9]+)(\\s*)","g"),function(a,c,d,e){var g=W[+d];return b.collapseWhitespace?(" "!==c&&(g=c+g)," "!==e&&(g+=e),f(g,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!0},/^\s/.test(g),/\s$/.test(g))):g})),r&&(Z=Z.replace(new RegExp(r+"([0-9]+)","g"),function(a,b){return U[+b]})),R("minified in: "+(Date.now()-P)+"ms"),Z}function Q(a,b){var c,d=b.maxLineLength;if(d){for(var e,f=[],g="",h=0,i=a.length;i>h;h++)e=a[h],g.length+e.length\s*$/,style:/\s*-->\s*$/},ca=e("html,head,body,colgroup,tbody"),da=e("html,head,body,li,dt,dd,p,rb,rt,rtc,rp,optgroup,option,colgroup,caption,thead,tbody,tfoot,tr,td,th"),ea=e("meta,link,script,style,template,noscript"),fa=e("dt,dd"),ga=e("address,article,aside,blockquote,details,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,main,menu,nav,ol,p,pre,section,table,ul"),ha=e("a,audio,del,ins,map,noscript,video"),ia=e("rb,rt,rtc,rp"),ja=e("rb,rtc,rp"),ka=e("option,optgroup"),la=e("tbody,tfoot"),ma=e("thead,tbody,tfoot"),na=e("td,th"),oa=e("html,head,body"),pa=e("html,body"),qa=e("head,colgroup,caption"),ra=e("dt,thead"),sa=e("a,abbr,acronym,address,applet,area,article,aside,audio,b,base,basefont,bdi,bdo,bgsound,big,blink,blockquote,body,br,button,canvas,caption,center,cite,code,col,colgroup,command,content,data,datalist,dd,del,details,dfn,dialog,dir,div,dl,dt,element,em,embed,fieldset,figcaption,figure,font,footer,form,frame,frameset,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,image,img,input,ins,isindex,kbd,keygen,label,legend,li,link,listing,main,map,mark,marquee,menu,menuitem,meta,meter,multicol,nav,nobr,noembed,noframes,noscript,object,ol,optgroup,option,output,p,param,picture,plaintext,pre,progress,q,rp,rt,rtc,ruby,s,samp,script,section,select,shadow,small,source,spacer,span,strike,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,tt,u,ul,var,video,wbr,xmp"),ta=new RegExp("^(?:class|id|style|title|lang|dir|on(?:focus|blur|change|click|dblclick|mouse(?:down|up|over|move|out)|key(?:press|down|up)))$"),ua=function(){var a=N("RelateUrl","relateurl");return a&&a.relate?function(b,c){try{return a.relate(b,c)}catch(d){return R(d),b}}:M}(),va=function(){var a=N("UglifyJS","uglify-js");if(a){if(a.minify)return function(b,c){try{return a.minify(b,c).code}catch(d){return R(d),b}};if(a.parse)return function(b,c){try{c=a.defaults(c,{warnings:!1,mangle:{},mangleProperties:!1,nameCache:null,compress:{},parse:{}}),a.base54.reset();var d=a.parse(b,{filename:0,toplevel:null,bare_returns:c.parse?c.parse.bare_returns:void 0});if(c.compress){var e={warnings:c.warnings};a.merge(e,c.compress),d.figure_out_scope();var f=a.Compressor(e);d=d.transform(f)}c.mangleProperties&&c.nameCache&&(c.mangleProperties.cache=a.readNameCache(c.nameCache,"props"),d=a.mangle_properties(d,c.mangleProperties),a.writeNameCache(c.nameCache,"props",c.mangleProperties.cache)),c.mangle&&(d.figure_out_scope(c.mangle),d.compute_char_frequency(c.mangle),d.mangle_names(c.mangle));var g=a.OutputStream(c.output);return d.print(g),g.toString()}catch(h){return R(h),b}}}return M}(),wa=function(){var a=N("CleanCSS","clean-css");return a?function(b,c,d){try{var e=new a(c);return d?x(e.minify(w(b)).styles):e.minify(b).styles}catch(f){return R(f),b}}:M}();a.minify=function(a,b){return P(a,b)}}("undefined"==typeof exports?this:exports),function(a){"use strict";function b(a){return/^(?:big|small|hr|blink|marquee)$/.test(a)}function c(a){return/^(?:applet|basefont|center|dir|font|isindex|strike)$/.test(a)}function d(a){return/^on[a-z]+/.test(a)}function e(a){return"style"===a.toLowerCase()}function f(a,b){return"align"===b&&/^(?:caption|applet|iframe|img|imput|object|legend|table|hr|div|h[1-6]|p)$/.test(a)||"alink"===b&&"body"===a||"alt"===b&&"applet"===a||"archive"===b&&"applet"===a||"background"===b&&"body"===a||"bgcolor"===b&&/^(?:table|t[rdh]|body)$/.test(a)||"border"===b&&/^(?:img|object)$/.test(a)||"clear"===b&&"br"===a||"code"===b&&"applet"===a||"codebase"===b&&"applet"===a||"color"===b&&/^(?:base(?:font)?)$/.test(a)||"compact"===b&&/^(?:dir|[dou]l|menu)$/.test(a)||"face"===b&&/^base(?:font)?$/.test(a)||"height"===b&&/^(?:t[dh]|applet)$/.test(a)||"hspace"===b&&/^(?:applet|img|object)$/.test(a)||"language"===b&&"script"===a||"link"===b&&"body"===a||"name"===b&&"applet"===a||"noshade"===b&&"hr"===a||"nowrap"===b&&/^t[dh]$/.test(a)||"object"===b&&"applet"===a||"prompt"===b&&"isindex"===a||"size"===b&&/^(?:hr|font|basefont)$/.test(a)||"start"===b&&"ol"===a||"text"===b&&"body"===a||"type"===b&&/^(?:li|ol|ul)$/.test(a)||"value"===b&&"li"===a||"version"===b&&"html"===a||"vlink"===b&&"body"===a||"vspace"===b&&/^(?:applet|img|object)$/.test(a)||"width"===b&&/^(?:hr|td|th|applet|pre)$/.test(a)}function g(a,b){return"href"===a&&/^\s*javascript\s*:\s*void\s*(\s+0|\(\s*0\s*\))\s*$/i.test(b)}function h(){this.log=[],this._lastElement=null,this._isElementRepeated=!1}h.prototype.testElement=function(a){c(a)?this.log.push('Found deprecated <'+a+"> element"):b(a)?this.log.push('Found presentational <'+a+"> element"):this.checkRepeatingElement(a)},h.prototype.checkRepeatingElement=function(a){"br"===a&&"br"===this._lastElement?this._isElementRepeated=!0:this._isElementRepeated&&(this._reportRepeatingElement(),this._isElementRepeated=!1),this._lastElement=a},h.prototype._reportRepeatingElement=function(){this.log.push("Found <br> sequence. Try replacing it with styling.")},h.prototype.testAttribute=function(a,b,c){d(b)?this.log.push('Found event attribute ('+b+") on <"+a+"> element."):f(a,b)?this.log.push('Found deprecated '+b+" attribute on <"+a+"> element."):e(b)?this.log.push('Found style attribute on <'+a+"> element."):g(b,c)&&this.log.push('Found inaccessible attribute (on <'+a+"> element).")},h.prototype.testChars=function(a){this._lastElement="",/( \s*){2,}/.test(a)&&this.log.push("Found repeating &nbsp; sequence. Try replacing it with styling.")},h.prototype.test=function(a,b,c){this.testElement(a),this.testAttribute(a,b,c)},h.prototype.populate=function(a){if(this._isElementRepeated&&this._reportRepeatingElement(),this.log.length)if(a)a.innerHTML="
  1. "+this.log.join("
  2. ")+"
";else{var b=" - "+this.log.join("\n - ").replace(/(<([^>]+)>)/gi,"").replace(/</g,"<").replace(/>/g,">");console.log(b)}},a.HTMLLint=h}("undefined"==typeof exports?this:exports); \ No newline at end of file +!function(a){"use strict";function b(a){var b=e.source+"(?:\\s*("+c(a)+")\\s*(?:"+h.join("|")+"))?";if(a.customAttrSurround){for(var d=[],f=a.customAttrSurround.length-1;f>=0;f--)d[f]="(?:("+a.customAttrSurround[f][0].source+")\\s*"+b+"\\s*("+a.customAttrSurround[f][1].source+"))";d.push("(?:"+b+")"),b="(?:"+d.join("|")+")"}return new RegExp("^\\s*"+b)}function c(a){return g.concat(a.customAttrAssign||[]).map(function(a){return"(?:"+a.source+")"}).join("|")}function d(a){for(var b={},c=a.split(","),d=0;d\/=]+)/,f=/=/,g=[f],h=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],i=function(){var b;return b="function"==typeof require?require("ncname"):a.NCName,b=b?b.source.slice(1,-1):"[:A-Za-z_][:\\w\\-\\.]*","((?:"+b+"\\:)?"+b+")"}(),j=new RegExp("^<"+i),k=/^\s*(\/?)>/,l=new RegExp("^<\\/"+i+"[^>]*>"),m=/^]+>/i,n=!1;"x".replace(/x(.)?/g,function(a,b){n=""===b});var o=d("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),p=d("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),q=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),r=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),s=d("script,style"),t=d("abbr,b,bdi,bdo,button,cite,code,data,dfn,em,h1,h2,h3,h4,h5,h6,i,kbd,label,legend,mark,meter,output,p,pre,progress,q,rp,rt,s,samp,small,span,strong,sub,sup,time,u,var"),u=d("a,abbr,area,audio,b,bdi,bdo,br,button,canvas,cite,code,data,datalist,del,dfn,em,embed,i,iframe,img,input,ins,kbd,keygen,label,link,main,map,mark,math,menu,meter,nav,noscript,object,ol,output,p,picture,pre,progress,q,ruby,s,samp,script,section,select,small,span,strong,sub,sup,svg,table,template,textarea,time,u,ul,var,video,wbr"),v={},w=a.HTMLParser=function(a,c){function d(a){var b=a.match(j);if(b){var c={tagName:b[1],attrs:[]};a=a.slice(b[0].length);for(var d,e;!(d=a.match(k))&&(e=a.match(y));)a=a.slice(e[0].length),c.attrs.push(e);if(d)return c.unarySlash=d[1],c.rest=a.slice(d[0].length),c}}function e(a){var b=a.tagName,d=a.unarySlash;if(c.html5&&g&&t[g]&&!u[b]&&f("",g),!c.html5)for(;g&&p[g];)f("",g);q[b]&&g===b&&f("",b);var e=o[b]||"html"===b&&"head"===g||!!d,h=a.attrs.map(function(a){var b,d,e,f,g,h,i,j=7;n&&-1===a[0].indexOf('""')&&(""===a[3]&&(a[3]=void 0),""===a[4]&&(a[4]=void 0),""===a[5]&&(a[5]=void 0));var k=1;if(c.customAttrSurround)for(var l=0,m=c.customAttrSurround.length;m>l;l++,k+=j)if(b=a[k+1],h=a[k+2],b){e=a[k+3],d=e||a[k+4]||a[k+5],i=e?'"':d?"'":"",f=a[k],g=a[k+6];break}return!b&&(b=a[k])&&(h=a[k+1],e=a[k+2],d=e||a[k+3]||a[k+4],i=e?'"':d?"'":""),void 0===d&&(d=r[b]?b:e),{name:b,value:d,customAssign:h||"=",customOpen:f||"",customClose:g||"",quote:i||""}});e||(x.push({tag:b,attrs:h}),g=b,d=""),c.start&&c.start(b,h,e,d)}function f(a,b){var d;if(b){var e=b.toLowerCase();for(d=x.length-1;d>=0&&x[d].tag.toLowerCase()!==e;d--);}else d=0;if(d>=0){for(var f=x.length-1;f>=d;f--)c.end&&c.end(x[f].tag,x[f].attrs,f>d||!a);x.length=d,g=d&&x[d-1].tag}}for(var g,h,i,w,x=[],y=b(c);a;){if(h=a,g&&s[g]){var z=g.toLowerCase(),A=v[z]||(v[z]=new RegExp("([\\s\\S]*?)]*>","i"));a=a.replace(A,function(a,b){return"script"!==z&&"style"!==z&&"noscript"!==z&&(b=b.replace(//g,"$1").replace(//g,"$1")),c.chars&&c.chars(b),""}),f("",z)}else{var B=a.indexOf("<");if(0===B){if(/^");if(C>=0){c.comment&&c.comment(a.substring(4,C)),a=a.substring(C+3),i="";continue}}if(/^");if(D>=0){c.comment&&c.comment(a.substring(2,D+1),!0),a=a.substring(D+2),i="";continue}}var E=a.match(m);if(E){c.doctype&&c.doctype(E[0]),a=a.substring(E[0].length),i="";continue}var F=a.match(l);if(F){a=a.substring(F[0].length),F[0].replace(l,f),i="/"+F[1].toLowerCase();continue}var G=d(a);if(G){a=G.rest,e(G),i=G.tagName.toLowerCase();continue}}var H;B>=0?(H=a.substring(0,B),a=a.substring(B)):(H=a,a="");var I=d(a);I?w=I.tagName:(I=a.match(l),w=I?"/"+I[1]:""),c.chars&&c.chars(H,i,w),i=""}if(a===h)throw"Parse Error: "+a}c.partialMarkup||f()};a.HTMLtoXML=function(a){var b="";return new w(a,{start:function(a,c,d){b+="<"+a;for(var e=0;e"},end:function(a){b+=""},chars:function(a){b+=a},comment:function(a){b+=""},ignore:function(a){b+=a}}),b},a.HTMLtoDOM=function(a,b){var c=d("html,head,body,title"),e={link:"head",base:"head"};b?b=b.ownerDocument||b.getOwnerDocument&&b.getOwnerDocument()||b:"undefined"!=typeof DOMDocument?b=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?b=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(b=new ActiveXObject("Msxml.DOMDocument"));var f=[],g=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!g&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new w(a,{start:function(a,d,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in d)h.setAttribute(d[j].name,d[j].value);e[a]&&"boolean"!=typeof c[e[a]]?c[e[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(f.push(h),i=h)},end:function(){f.length-=1,i=f[f.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}}("undefined"==typeof exports?this:exports),function(a){"use strict";function b(a){return" "===a?a:" "}function c(a){return a?a.replace(/[\t\n\r ]+/g,b):a}function d(a){var b={};return a.forEach(function(a){b[a]=1}),function(a){return 1===b[a]}}function e(a){return d(a.split(/,/))}function f(a,d,e,f,g){var h="",i="";return d.preserveLineBreaks&&(a=a.replace(/^[\t ]*[\n\r][\t\n\r ]*/,function(){return h="\n",""}).replace(/[\t\n\r ]*[\n\r][\t ]*$/,function(){return i="\n",""})),e&&(a=a.replace(/^\s+/,!h&&d.conservativeCollapse?b:"")),f&&(a=a.replace(/\s+$/,!i&&d.conservativeCollapse?b:"")),g&&(a=c(a)),h+a+i}function g(a,b,c,d){var e=b&&!W(b);e&&!d.collapseInlineTagWhitespace&&(e="/"===b.charAt(0)?!U(b.slice(1)):!V(b));var g=c&&!W(c);return g&&!d.collapseInlineTagWhitespace&&(g="/"===c.charAt(0)?!V(c.slice(1)):!U(c)),f(a,d,e,g,b&&c)}function h(a){return/^\[if\s[^\]]+\]|\[endif\]$/.test(a)}function i(a,b){if(/^!/.test(a))return!0;if(b.ignoreCustomComments)for(var c=0,d=b.ignoreCustomComments.length;d>c;c++)if(b.ignoreCustomComments[c].test(a))return!0;return!1}function j(a,b){var c=b.customEventAttributes;if(c){for(var d=c.length;d--;)if(c[d].test(a))return!0;return!1}return/^on[a-z]{3,}$/.test(a)}function k(a){return/^[^\x20\t\n\f\r"'`=<>]+$/.test(a)}function l(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function m(a,b,c,d){return c=c?T(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!l(d,"src")||"a"===a&&"name"===b&&l(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function n(a,b,c){return"script"===a&&"type"===b&&X(T(c.toLowerCase()))}function o(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e){var f=T(b[c].value.split(/;/,2)[0]).toLowerCase();return""===f||X(f)}}return!0}function p(a,b,c){return("style"===a||"link"===a)&&"type"===b&&"text/css"===T(c.toLowerCase())}function q(a,b){return Y(a)||"draggable"===a&&!Z(b)}function r(a,b){return/^(?:a|area|link|base)$/.test(b)&&"href"===a||"img"===b&&/^(?:src|longdesc|usemap)$/.test(a)||"object"===b&&/^(?:classid|codebase|data|usemap)$/.test(a)||"q"===b&&"cite"===a||"blockquote"===b&&"cite"===a||("ins"===b||"del"===b)&&"cite"===a||"form"===b&&"action"===a||"input"===b&&("src"===a||"usemap"===a)||"head"===b&&"profile"===a||"script"===b&&("src"===a||"for"===a)}function s(a,b){return/^(?:a|area|object|button)$/.test(b)&&"tabindex"===a||"input"===b&&("maxlength"===a||"tabindex"===a)||"select"===b&&("size"===a||"tabindex"===a)||"textarea"===b&&/^(?:rows|cols|tabindex)$/.test(a)||"colgroup"===b&&"span"===a||"col"===b&&"span"===a||("th"===b||"td"===b)&&("rowspan"===a||"colspan"===a)}function t(a,b){if("link"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("rel"===b[c].name&&"canonical"===b[c].value)return!0}function u(a,b,d,e,f){if(d&&j(b,e)){if(d=T(d).replace(/^javascript:\s*/i,"").replace(/\s*;$/,""),e.minifyJS){var g=va($+d+_,e.minifyJS);return g.slice($.length,-_.length)}return d}return"class"===b?c(T(d)):r(b,a)?(d=T(d),e.minifyURLs&&!t(a,f)?ua(d,e.minifyURLs):d):s(b,a)?T(d):"style"===b?(d=T(d),d&&(d=d.replace(/\s*;\s*$/,"")),e.minifyCSS?wa(d,e.minifyCSS,!0):d):(v(a,f)&&"content"===b?d=d.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(a){return(+a).toString()}):d&&e.customAttrCollapse&&e.customAttrCollapse.test(b)?d=d.replace(/\n+|\r+|\s{2,}/g,""):"script"===a&&"type"===b&&(d=T(d.replace(/\s*;\s*/g,";"))),d)}function v(a,b){if("meta"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("name"===b[c].name&&"viewport"===b[c].value)return!0}function w(a){return"*{"+a+"}"}function x(a){var b=a.match(/^\*\{([\s\S]*)\}$/m);return b&&b[1]?b[1]:a}function y(a,b){return a.replace(/^(\[if\s[^\]]+\]>)([\s\S]*?)(\s*\*\/|\/\/\s*\]\]>)\s*$/,"")}function A(a,b,c){for(var d=0,e=c.length;e>d;d++)if("type"===c[d].name.toLowerCase()&&b.processScripts.indexOf(c[d].value)>-1)return P(a,b);return a}function B(a,b){return a.replace(aa[b],"").replace(ba[b],"")}function C(a,b){switch(a){case"html":case"head":return!0;case"body":return!ea(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function D(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return ma(a)}return!1}function E(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return fa(b);case"p":return ga(b);case"rb":case"rt":case"rp":return ia(b);case"rtc":return ja(b);case"option":return ka(b);case"thead":case"tbody":return la(b);case"tfoot":return"tbody"===b;case"td":case"th":return na(b)}return!1}function F(a,b,c){var d=!c||/^\s*$/.test(c);return d?"input"===a&&"value"===b||ta.test(b):!1}function G(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function H(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(G("src",b))return!1;break;case"iframe":if(G("src",b)||G("srcdoc",b))return!1;break;case"object":if(G("data",b))return!1;break;case"applet":if(G("code",b))return!1}return!0}function I(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function J(a){return!/^(?:pre|textarea)$/.test(a)}function K(a,b,c,d,e,f,g){var h,i,j=f.caseSensitive?a.name:a.name.toLowerCase(),l=a.value,o=a.quote;if(f.removeRedundantAttributes&&m(c,j,l,b)||f.removeScriptTypeAttributes&&n(c,j,l)||f.removeStyleLinkTypeAttributes&&p(c,j,l))return"";if(l=u(c,j,l,f,b),f.removeEmptyAttributes&&F(c,j,l))return"";if(void 0!==l&&!f.removeAttributeQuotes||!k(l)){if(!f.preventAttributesEscaping){if(void 0!==f.quoteCharacter)o="'"===f.quoteCharacter?"'":'"';else{var r=(l.match(/'/g)||[]).length,s=(l.match(/"/g)||[]).length;o=s>r?"'":'"'}l='"'===o?l.replace(/"/g,"""):l.replace(/'/g,"'")}i=o+l+o,g||f.removeTagWhitespace||(i+=" ")}else i=!g||d||/\/$/.test(l)?l+" ":l;return void 0===l||f.collapseBooleanAttributes&&q(j.toLowerCase(),l.toLowerCase())?(h=j,g||(h+=" ")):h=j+a.customAssign+i,a.customOpen+h+a.customClose}function L(a){"includeAutoGeneratedTags"in a||(a.includeAutoGeneratedTags=!0);for(var b=["canCollapseWhitespace","canTrimWhitespace"],c=0,d=b.length;d>c;c++)a[b[c]]||(a[b[c]]=function(){return!1});a.minifyURLs&&"object"!=typeof a.minifyURLs&&(a.minifyURLs={}),a.minifyJS&&("object"!=typeof a.minifyJS&&(a.minifyJS={}),a.minifyJS.fromString=!0,(a.minifyJS.output||(a.minifyJS.output={})).inline_script=!0),a.minifyCSS&&("object"!=typeof a.minifyCSS&&(a.minifyCSS={}),"undefined"==typeof a.minifyCSS.advanced&&(a.minifyCSS.advanced=!1))}function M(a){return a}function N(b,c){var d=a[b];return"undefined"==typeof d&&"function"==typeof require&&(d=require(c)),d}function O(a){var b;do b=Math.random().toString(36).slice(2);while(~a.indexOf(b));return b}function P(a,b,d){function e(a,c){return I(a)||b.canCollapseWhitespace(a,c)}function j(a,c){return J(a)||b.canTrimWhitespace(a,c)}function k(){for(var a=t.length-1;a>0&&!/^<[^\/!]/.test(t[a]);)a--;t.length=Math.max(0,a)}function l(){for(var a=t.length-1;a>0&&!/^<\//.test(t[a]);)a--;t.length=Math.max(0,a)}function m(a){var c;t.length>1&&/^(?:0&&/\s$/.test(t[t.length-1])&&(c=t.length-1),c>0&&(t[c]=t[c].replace(/\s+$/,function(c){return g(c,"comment",a,b)}))}b=b||{};var n=[];L(b),a=b.collapseWhitespace?T(a):a;var p,q,r,s,t=[],u="",v="",w=[],x=[],F=[],G="",M="",N=b.lint,P=Date.now(),U=[],W=[];a=a.replace(/([\s\S]*?)/g,function(b,c){r||(r="");var d=r+U.length;return U.push(c),d});var X=(b.ignoreCustomFragments||[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]).map(function(a){return a.source});if(X.length){var Y=new RegExp("\\s*(?:"+X.join("|")+")+\\s*","g");a=a.replace(Y,function(b){s||(s=O(a));var c=s+W.length;return W.push(b)," "+c+" "})}new S(a,{partialMarkup:d,html5:"undefined"!=typeof b.html5?b.html5:!0,start:function(a,c,d,f){var g=a.toLowerCase();if("svg"===g){n.push(b);var h={};for(var i in b)h[i]=b[i];h.keepClosingSlash=!0,h.caseSensitive=!0,b=h}a=b.caseSensitive?a:g,v=a,p=a,V(a)||(u=""),q=!1,w=c;var o=b.removeOptionalTags;if(o){var r=sa(a);r&&C(G,a)&&k(),G="",r&&E(M,a)&&(l(),o=!D(M,a)),M=""}b.collapseWhitespace&&(x.length||m(a),j(a,c)||x.push(a),e(a,c)||F.push(a));var s="<"+a,y=f&&b.keepClosingSlash;t.push(s),N&&N.testElement(a);for(var z,A=[],B=!0,H=c.length;--H>=0;)N&&N.testAttribute(a,c[H].name.toLowerCase(),c[H].value),z=K(c[H],c,a,y,H,b,B),z&&(B=!1,A.unshift(z));A.length>0?(t.push(" "),t.push.apply(t,A)):o&&ca(a)&&(G=a),t.push(t.pop()+(y?"/":"")+">")},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=n.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(x.length?a===x[x.length-1]&&x.pop():m("/"+a),F.length&&a===F[F.length-1]&&F.pop());var f=!1;a===v&&(v="",f=!q),b.removeOptionalTags&&(f&&oa(G)&&k(),G="",!sa(a)||!M||ra(M)||"p"===M&&ha(a)||l(),M=da(a)?a:""),b.removeEmptyElements&&f&&H(a,c)?(k(),G="",M=""):(!b.includeAutoGeneratedTags&&d||t.push(""),p="/"+a,V(a)||(u=""))},chars:function(a,d,e){if(d=""===d?"comment":d,e=""===e?"comment":e,b.collapseWhitespace){if(!x.length){if("comment"===d){var h=""===t[t.length-1];if(h&&(d=p),t.length>1&&(h||/ $/.test(u))){var i=t.length-2;t[i]=t[i].replace(/\s+$/,function(b){return a=b+a,""})}}if(d&&V("/"===d.charAt(0)?d.slice(1):d)&&(a=f(a,b,/(?:^|\s)$/.test(u))),a=d||e?g(a,d,e,b):T(a),!a&&/\s$/.test(u)&&d&&"/"===d.charAt(0))for(var m=t.length-2,n=d.slice(1);m>=0&&j(n);m--){var r=t[m],s=r.match(/^<\/([\w:-]+)>$/);if(s)n=s[1];else if(/>$/.test(r)||(t[m]=g(r,null,e,b)))break}}F.length||(a=d&&e||"html"===e?a:c(a))}"script"!==v&&"style"!==v||(b.removeCommentsFromCDATA&&(a=B(a,v)),b.removeCDATASectionsFromCDATA&&(a=z(a)),b.processScripts&&(a=A(a,b,w))),b.minifyJS&&o(v,w)&&(a=va(a,b.minifyJS),";"===a.charAt(a.length-1)&&(a=a.slice(0,-1))),"style"===v&&b.minifyCSS&&(a=wa(a,b.minifyCSS)),b.removeOptionalTags&&a&&(("html"===G||"body"===G&&!/^\s/.test(a))&&k(),G="",(pa(M)||qa(M)&&!/^\s/.test(a))&&l(),M=""),p=/^\s*$/.test(a)?d:"comment",u+=a,a&&(q=!0),N&&N.testChars(a),t.push(a)},comment:function(a,c){var d=c?"":"-->";a=h(a)?d+y(a,b)+e:b.removeComments?i(a,b)?"":"":d+a+e,b.removeOptionalTags&&a&&(G="",M=""),t.push(a)},doctype:function(a){t.push(b.useShortDoctype?"":c(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(oa(G)&&k(),M&&!ra(M)&&l());var Z=Q(t,b);return s&&(Z=Z.replace(new RegExp("(\\s*)"+s+"([0-9]+)(\\s*)","g"),function(a,c,d,e){var g=W[+d];return b.collapseWhitespace?(" "!==c&&(g=c+g)," "!==e&&(g+=e),f(g,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!0},/^\s/.test(g),/\s$/.test(g))):g})),r&&(Z=Z.replace(new RegExp(r+"([0-9]+)","g"),function(a,b){return U[+b]})),R("minified in: "+(Date.now()-P)+"ms"),Z}function Q(a,b){var c,d=b.maxLineLength;if(d){for(var e,f=[],g="",h=0,i=a.length;i>h;h++)e=a[h],g.length+e.length\s*$/,style:/\s*-->\s*$/},ca=e("html,head,body,colgroup,tbody"),da=e("html,head,body,li,dt,dd,p,rb,rt,rtc,rp,optgroup,option,colgroup,caption,thead,tbody,tfoot,tr,td,th"),ea=e("meta,link,script,style,template,noscript"),fa=e("dt,dd"),ga=e("address,article,aside,blockquote,details,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,main,menu,nav,ol,p,pre,section,table,ul"),ha=e("a,audio,del,ins,map,noscript,video"),ia=e("rb,rt,rtc,rp"),ja=e("rb,rtc,rp"),ka=e("option,optgroup"),la=e("tbody,tfoot"),ma=e("thead,tbody,tfoot"),na=e("td,th"),oa=e("html,head,body"),pa=e("html,body"),qa=e("head,colgroup,caption"),ra=e("dt,thead"),sa=e("a,abbr,acronym,address,applet,area,article,aside,audio,b,base,basefont,bdi,bdo,bgsound,big,blink,blockquote,body,br,button,canvas,caption,center,cite,code,col,colgroup,command,content,data,datalist,dd,del,details,dfn,dialog,dir,div,dl,dt,element,em,embed,fieldset,figcaption,figure,font,footer,form,frame,frameset,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,image,img,input,ins,isindex,kbd,keygen,label,legend,li,link,listing,main,map,mark,marquee,menu,menuitem,meta,meter,multicol,nav,nobr,noembed,noframes,noscript,object,ol,optgroup,option,output,p,param,picture,plaintext,pre,progress,q,rp,rt,rtc,ruby,s,samp,script,section,select,shadow,small,source,spacer,span,strike,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,tt,u,ul,var,video,wbr,xmp"),ta=new RegExp("^(?:class|id|style|title|lang|dir|on(?:focus|blur|change|click|dblclick|mouse(?:down|up|over|move|out)|key(?:press|down|up)))$"),ua=function(){var a=N("RelateUrl","relateurl");return a&&a.relate?function(b,c){try{return a.relate(b,c)}catch(d){return R(d),b}}:M}(),va=function(){var a=N("UglifyJS","uglify-js");return a&&a.minify?function(b,c){try{return a.minify(b,c).code}catch(d){return R(d),b}}:M}(),wa=function(){var a=N("CleanCSS","clean-css");return a?function(b,c,d){try{var e=new a(c);return d?x(e.minify(w(b)).styles):e.minify(b).styles}catch(f){return R(f),b}}:M}();a.minify=function(a,b){return P(a,b)}}("undefined"==typeof exports?this:exports),function(a){"use strict";function b(a){return/^(?:big|small|hr|blink|marquee)$/.test(a)}function c(a){return/^(?:applet|basefont|center|dir|font|isindex|strike)$/.test(a)}function d(a){return/^on[a-z]+/.test(a)}function e(a){return"style"===a.toLowerCase()}function f(a,b){return"align"===b&&/^(?:caption|applet|iframe|img|imput|object|legend|table|hr|div|h[1-6]|p)$/.test(a)||"alink"===b&&"body"===a||"alt"===b&&"applet"===a||"archive"===b&&"applet"===a||"background"===b&&"body"===a||"bgcolor"===b&&/^(?:table|t[rdh]|body)$/.test(a)||"border"===b&&/^(?:img|object)$/.test(a)||"clear"===b&&"br"===a||"code"===b&&"applet"===a||"codebase"===b&&"applet"===a||"color"===b&&/^(?:base(?:font)?)$/.test(a)||"compact"===b&&/^(?:dir|[dou]l|menu)$/.test(a)||"face"===b&&/^base(?:font)?$/.test(a)||"height"===b&&/^(?:t[dh]|applet)$/.test(a)||"hspace"===b&&/^(?:applet|img|object)$/.test(a)||"language"===b&&"script"===a||"link"===b&&"body"===a||"name"===b&&"applet"===a||"noshade"===b&&"hr"===a||"nowrap"===b&&/^t[dh]$/.test(a)||"object"===b&&"applet"===a||"prompt"===b&&"isindex"===a||"size"===b&&/^(?:hr|font|basefont)$/.test(a)||"start"===b&&"ol"===a||"text"===b&&"body"===a||"type"===b&&/^(?:li|ol|ul)$/.test(a)||"value"===b&&"li"===a||"version"===b&&"html"===a||"vlink"===b&&"body"===a||"vspace"===b&&/^(?:applet|img|object)$/.test(a)||"width"===b&&/^(?:hr|td|th|applet|pre)$/.test(a)}function g(a,b){return"href"===a&&/^\s*javascript\s*:\s*void\s*(\s+0|\(\s*0\s*\))\s*$/i.test(b)}function h(){this.log=[],this._lastElement=null,this._isElementRepeated=!1}h.prototype.testElement=function(a){c(a)?this.log.push('Found deprecated <'+a+"> element"):b(a)?this.log.push('Found presentational <'+a+"> element"):this.checkRepeatingElement(a)},h.prototype.checkRepeatingElement=function(a){"br"===a&&"br"===this._lastElement?this._isElementRepeated=!0:this._isElementRepeated&&(this._reportRepeatingElement(),this._isElementRepeated=!1),this._lastElement=a},h.prototype._reportRepeatingElement=function(){this.log.push("Found <br> sequence. Try replacing it with styling.")},h.prototype.testAttribute=function(a,b,c){d(b)?this.log.push('Found event attribute ('+b+") on <"+a+"> element."):f(a,b)?this.log.push('Found deprecated '+b+" attribute on <"+a+"> element."):e(b)?this.log.push('Found style attribute on <'+a+"> element."):g(b,c)&&this.log.push('Found inaccessible attribute (on <'+a+"> element).")},h.prototype.testChars=function(a){this._lastElement="",/( \s*){2,}/.test(a)&&this.log.push("Found repeating &nbsp; sequence. Try replacing it with styling.")},h.prototype.test=function(a,b,c){this.testElement(a),this.testAttribute(a,b,c)},h.prototype.populate=function(a){if(this._isElementRepeated&&this._reportRepeatingElement(),this.log.length)if(a)a.innerHTML="
  1. "+this.log.join("
  2. ")+"
";else{var b=" - "+this.log.join("\n - ").replace(/(<([^>]+)>)/gi,"").replace(/</g,"<").replace(/>/g,">");console.log(b)}},a.HTMLLint=h}("undefined"==typeof exports?this:exports); \ No newline at end of file diff --git a/index.html b/index.html index ad950e0..25d2c0c 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,11 @@ HTML minifier + + + + +
@@ -264,11 +269,6 @@
- - - - - diff --git a/package.json b/package.json index cf09339..daf1d56 100644 --- a/package.json +++ b/package.json @@ -34,10 +34,10 @@ }, "scripts": { "assets": "grunt assets", - "assets/clean-css": "browserify --standalone CleanCSS node_modules/clean-css/index.js | uglifyjs --compress --mangle -o assets/cleancss-browser.js", + "assets/clean-css": "browserify node_modules/clean-css/ --standalone CleanCSS | uglifyjs --compress --mangle -o assets/cleancss-browser.js", "assets/ncname": "browserify node_modules/ncname/ --standalone NCName | uglifyjs --compress --mangle -o assets/ncname-browser.js", "assets/relateurl": "browserify node_modules/relateurl/ --standalone RelateUrl | uglifyjs --compress --mangle -o assets/relateurl-browser.js", - "assets/uglify-js": "uglifyjs --self --compress --mangle -o assets/uglify.js", + "assets/uglify-js": "browserify node_modules/uglify-js/ --standalone UglifyJS | uglifyjs --compress --mangle -o assets/uglify-browser.js", "test": "grunt test" }, "dependencies": { diff --git a/src/htmlminifier.js b/src/htmlminifier.js index b3ed4e2..12ccba1 100644 --- a/src/htmlminifier.js +++ b/src/htmlminifier.js @@ -671,69 +671,20 @@ var minifyJS = (function() { var UglifyJS = getModule('UglifyJS', 'uglify-js'); - if (UglifyJS) { - if (UglifyJS.minify) { - return function(text, options) { - try { - return UglifyJS.minify(text, options).code; - } - catch (err) { - log(err); - return text; - } - }; - } - else if (UglifyJS.parse) { - return function(text, options) { - try { - options = UglifyJS.defaults(options, { - warnings: false, - mangle: {}, - mangleProperties: false, - nameCache: null, - compress: {}, - parse: {} - }); - UglifyJS.base54.reset(); - // 1. parse - var toplevel = UglifyJS.parse(text, { - filename: 0, - toplevel: null, - bare_returns: options.parse ? options.parse.bare_returns : undefined - }); - // 2. compress - if (options.compress) { - var compress = { warnings: options.warnings }; - UglifyJS.merge(compress, options.compress); - toplevel.figure_out_scope(); - var sq = UglifyJS.Compressor(compress); - toplevel = toplevel.transform(sq); - } - // 3. mangle properties - if (options.mangleProperties && options.nameCache) { - options.mangleProperties.cache = UglifyJS.readNameCache(options.nameCache, 'props'); - toplevel = UglifyJS.mangle_properties(toplevel, options.mangleProperties); - UglifyJS.writeNameCache(options.nameCache, 'props', options.mangleProperties.cache); - } - // 4. mangle - if (options.mangle) { - toplevel.figure_out_scope(options.mangle); - toplevel.compute_char_frequency(options.mangle); - toplevel.mangle_names(options.mangle); - } - // 5. output - var stream = UglifyJS.OutputStream(options.output); - toplevel.print(stream); - return stream.toString(); - } - catch (err) { - log(err); - return text; - } - }; - } + if (UglifyJS && UglifyJS.minify) { + return function(text, options) { + try { + return UglifyJS.minify(text, options).code; + } + catch (err) { + log(err); + return text; + } + }; + } + else { + return noop; } - return noop; })(); var minifyCSS = (function() { diff --git a/tests/index.html b/tests/index.html index 15a7e17..98741f4 100644 --- a/tests/index.html +++ b/tests/index.html @@ -8,7 +8,7 @@ - +