view on requirebin
Created
February 10, 2014 05:57
-
-
Save gfranko/8910999 to your computer and use it in GitHub Desktop.
requirebin sketch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var esprima = require('esprima'), | |
estraverse = require('estraverse'), | |
escodegen = require('escodegen'); | |
console.log('esprima', esprima); | |
console.log('estraverse', estraverse); | |
console.log('escodegen', escodegen); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);throw Error("Cannot find module '"+a+"'")}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return i(n?n:e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;r.length>a;a++)i(r[a]);return i}({"ic/jtS":[function(e,t,n){(function(e,t){"use strict";"function"==typeof define&&define.amd?define(["exports"],t):n!==void 0?t(n):t(e.esprima={})})(this,function(e){"use strict";function t(e,t){if(!e)throw Error("ASSERT: "+t)}function n(e,t){return dn.slice(e,t)}function r(e){return"0123456789".indexOf(e)>=0}function i(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function o(e){return"01234567".indexOf(e)>=0}function a(e){return" "===e||" "===e||""===e||"\f"===e||" "===e||e.charCodeAt(0)>=5760&&" ".indexOf(e)>=0}function s(e){return"\n"===e||"\r"===e||"\u2028"===e||"\u2029"===e}function l(e){return"$"===e||"_"===e||"\\"===e||e>="a"&&"z">=e||e>="A"&&"Z">=e||e.charCodeAt(0)>=128&&fn.NonAsciiIdentifierStart.test(e)}function u(e){return"$"===e||"_"===e||"\\"===e||e>="a"&&"z">=e||e>="A"&&"Z">=e||e>="0"&&"9">=e||e.charCodeAt(0)>=128&&fn.NonAsciiIdentifierPart.test(e)}function c(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0}return!1}function p(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0}return!1}function f(e){return"eval"===e||"arguments"===e}function d(e){var t=!1;switch(e.length){case 2:t="if"===e||"in"===e||"do"===e;break;case 3:t="var"===e||"for"===e||"new"===e||"try"===e;break;case 4:t="this"===e||"else"===e||"case"===e||"void"===e||"with"===e;break;case 5:t="while"===e||"break"===e||"catch"===e||"throw"===e;break;case 6:t="return"===e||"typeof"===e||"delete"===e||"switch"===e;break;case 7:t="default"===e||"finally"===e;break;case 8:t="function"===e||"continue"===e||"debugger"===e;break;case 10:t="instanceof"===e}if(t)return!0;switch(e){case"const":return!0;case"yield":case"let":return!0}return hn&&p(e)?!0:c(e)}function h(){var e,t,n;for(t=!1,n=!1;Sn>mn;)if(e=dn[mn],n)e=dn[mn++],s(e)&&(n=!1,"\r"===e&&"\n"===dn[mn]&&++mn,++gn,yn=mn);else if(t)s(e)?("\r"===e&&"\n"===dn[mn+1]&&++mn,++gn,++mn,yn=mn,mn>=Sn&&A({},pn.UnexpectedToken,"ILLEGAL")):(e=dn[mn++],mn>=Sn&&A({},pn.UnexpectedToken,"ILLEGAL"),"*"===e&&(e=dn[mn],"/"===e&&(++mn,t=!1)));else if("/"===e)if(e=dn[mn+1],"/"===e)mn+=2,n=!0;else{if("*"!==e)break;mn+=2,t=!0,mn>=Sn&&A({},pn.UnexpectedToken,"ILLEGAL")}else if(a(e))++mn;else{if(!s(e))break;++mn,"\r"===e&&"\n"===dn[mn]&&++mn,++gn,yn=mn}}function m(e){var t,n,r,o=0;for(n="u"===e?4:2,t=0;n>t;++t){if(!(Sn>mn&&i(dn[mn])))return"";r=dn[mn++],o=16*o+"0123456789abcdef".indexOf(r.toLowerCase())}return String.fromCharCode(o)}function g(){var e,t,n,r;if(e=dn[mn],l(e)){if(t=mn,"\\"===e){if(++mn,"u"!==dn[mn])return;if(++mn,r=mn,e=m("u")){if("\\"===e||!l(e))return;n=e}else mn=r,n="u"}else n=dn[mn++];for(;Sn>mn&&(e=dn[mn],u(e));)if("\\"===e){if(++mn,"u"!==dn[mn])return;if(++mn,r=mn,e=m("u")){if("\\"===e||!u(e))return;n+=e}else mn=r,n+="u"}else n+=dn[mn++];return 1===n.length?{type:sn.Identifier,value:n,lineNumber:gn,lineStart:yn,range:[t,mn]}:d(n)?{type:sn.Keyword,value:n,lineNumber:gn,lineStart:yn,range:[t,mn]}:"null"===n?{type:sn.NullLiteral,value:n,lineNumber:gn,lineStart:yn,range:[t,mn]}:"true"===n||"false"===n?{type:sn.BooleanLiteral,value:n,lineNumber:gn,lineStart:yn,range:[t,mn]}:{type:sn.Identifier,value:n,lineNumber:gn,lineStart:yn,range:[t,mn]}}}function y(){var e,t,n,i=mn,o=dn[mn];return";"===o||"{"===o||"}"===o?(++mn,{type:sn.Punctuator,value:o,lineNumber:gn,lineStart:yn,range:[i,mn]}):","===o||"("===o||")"===o?(++mn,{type:sn.Punctuator,value:o,lineNumber:gn,lineStart:yn,range:[i,mn]}):(e=dn[mn+1],"."!==o||r(e)?(t=dn[mn+2],n=dn[mn+3],">"===o&&">"===e&&">"===t&&"="===n?(mn+=4,{type:sn.Punctuator,value:">>>=",lineNumber:gn,lineStart:yn,range:[i,mn]}):"="===o&&"="===e&&"="===t?(mn+=3,{type:sn.Punctuator,value:"===",lineNumber:gn,lineStart:yn,range:[i,mn]}):"!"===o&&"="===e&&"="===t?(mn+=3,{type:sn.Punctuator,value:"!==",lineNumber:gn,lineStart:yn,range:[i,mn]}):">"===o&&">"===e&&">"===t?(mn+=3,{type:sn.Punctuator,value:">>>",lineNumber:gn,lineStart:yn,range:[i,mn]}):"<"===o&&"<"===e&&"="===t?(mn+=3,{type:sn.Punctuator,value:"<<=",lineNumber:gn,lineStart:yn,range:[i,mn]}):">"===o&&">"===e&&"="===t?(mn+=3,{type:sn.Punctuator,value:">>=",lineNumber:gn,lineStart:yn,range:[i,mn]}):"="===e&&"<>=!+-*%&|^/".indexOf(o)>=0?(mn+=2,{type:sn.Punctuator,value:o+e,lineNumber:gn,lineStart:yn,range:[i,mn]}):o===e&&"+-<>&|".indexOf(o)>=0&&"+-<>&|".indexOf(e)>=0?(mn+=2,{type:sn.Punctuator,value:o+e,lineNumber:gn,lineStart:yn,range:[i,mn]}):"[]<>+-*%&|^!~?:=/".indexOf(o)>=0?{type:sn.Punctuator,value:dn[mn++],lineNumber:gn,lineStart:yn,range:[i,mn]}:void 0):{type:sn.Punctuator,value:dn[mn++],lineNumber:gn,lineStart:yn,range:[i,mn]})}function S(){var e,n,a;if(a=dn[mn],t(r(a)||"."===a,"Numeric literal must start with a decimal digit or a decimal point"),n=mn,e="","."!==a){if(e=dn[mn++],a=dn[mn],"0"===e){if("x"===a||"X"===a){for(e+=dn[mn++];Sn>mn&&(a=dn[mn],i(a));)e+=dn[mn++];return 2>=e.length&&A({},pn.UnexpectedToken,"ILLEGAL"),Sn>mn&&(a=dn[mn],l(a)&&A({},pn.UnexpectedToken,"ILLEGAL")),{type:sn.NumericLiteral,value:parseInt(e,16),lineNumber:gn,lineStart:yn,range:[n,mn]}}if(o(a)){for(e+=dn[mn++];Sn>mn&&(a=dn[mn],o(a));)e+=dn[mn++];return Sn>mn&&(a=dn[mn],(l(a)||r(a))&&A({},pn.UnexpectedToken,"ILLEGAL")),{type:sn.NumericLiteral,value:parseInt(e,8),octal:!0,lineNumber:gn,lineStart:yn,range:[n,mn]}}r(a)&&A({},pn.UnexpectedToken,"ILLEGAL")}for(;Sn>mn&&(a=dn[mn],r(a));)e+=dn[mn++]}if("."===a)for(e+=dn[mn++];Sn>mn&&(a=dn[mn],r(a));)e+=dn[mn++];if("e"===a||"E"===a)if(e+=dn[mn++],a=dn[mn],("+"===a||"-"===a)&&(e+=dn[mn++]),a=dn[mn],r(a))for(e+=dn[mn++];Sn>mn&&(a=dn[mn],r(a));)e+=dn[mn++];else a="character "+a,mn>=Sn&&(a="<end>"),A({},pn.UnexpectedToken,"ILLEGAL");return Sn>mn&&(a=dn[mn],l(a)&&A({},pn.UnexpectedToken,"ILLEGAL")),{type:sn.NumericLiteral,value:parseFloat(e),lineNumber:gn,lineStart:yn,range:[n,mn]}}function v(){var e,n,r,i,a,l,u="",c=!1;for(e=dn[mn],t("'"===e||'"'===e,"String literal must starts with a quote"),n=mn,++mn;Sn>mn;){if(r=dn[mn++],r===e){e="";break}if("\\"===r)if(r=dn[mn++],s(r))++gn,"\r"===r&&"\n"===dn[mn]&&++mn;else switch(r){case"n":u+="\n";break;case"r":u+="\r";break;case"t":u+=" ";break;case"u":case"x":l=mn,a=m(r),a?u+=a:(mn=l,u+=r);break;case"b":u+="\b";break;case"f":u+="\f";break;case"v":u+="";break;default:o(r)?(i="01234567".indexOf(r),0!==i&&(c=!0),Sn>mn&&o(dn[mn])&&(c=!0,i=8*i+"01234567".indexOf(dn[mn++]),"0123".indexOf(r)>=0&&Sn>mn&&o(dn[mn])&&(i=8*i+"01234567".indexOf(dn[mn++]))),u+=String.fromCharCode(i)):u+=r}else{if(s(r))break;u+=r}}return""!==e&&A({},pn.UnexpectedToken,"ILLEGAL"),{type:sn.StringLiteral,value:u,octal:c,lineNumber:gn,lineStart:yn,range:[n,mn]}}function E(){var e,n,r,i,o,a,l,c=!1,p=!1;for(vn=null,h(),r=mn,n=dn[mn],t("/"===n,"Regular expression literal must start with a slash"),e=dn[mn++];Sn>mn;)if(n=dn[mn++],e+=n,"\\"===n)n=dn[mn++],s(n)&&A({},pn.UnterminatedRegExp),e+=n;else if(c)"]"===n&&(c=!1);else{if("/"===n){p=!0;break}"["===n?c=!0:s(n)&&A({},pn.UnterminatedRegExp)}for(p||A({},pn.UnterminatedRegExp),i=e.substr(1,e.length-2),o="";Sn>mn&&(n=dn[mn],u(n));)if(++mn,"\\"===n&&Sn>mn)if(n=dn[mn],"u"===n)if(++mn,l=mn,n=m("u"))for(o+=n,e+="\\u";mn>l;++l)e+=dn[l];else mn=l,o+="u",e+="\\u";else e+="\\";else o+=n,e+=n;try{a=RegExp(i,o)}catch(f){A({},pn.InvalidRegExp)}return{literal:e,value:a,range:[r,mn]}}function b(e){return e.type===sn.Identifier||e.type===sn.Keyword||e.type===sn.BooleanLiteral||e.type===sn.NullLiteral}function w(){var e,t;return h(),mn>=Sn?{type:sn.EOF,lineNumber:gn,lineStart:yn,range:[mn,mn]}:(t=y(),t!==void 0?t:(e=dn[mn],"'"===e||'"'===e?v():"."===e||r(e)?S():(t=g(),t!==void 0?t:(A({},pn.UnexpectedToken,"ILLEGAL"),void 0))))}function x(){var e;return vn?(mn=vn.range[1],gn=vn.lineNumber,yn=vn.lineStart,e=vn,vn=null,e):(vn=null,w())}function C(){var e,t,n;return null!==vn?vn:(e=mn,t=gn,n=yn,vn=w(),mn=e,gn=t,yn=n,vn)}function I(){var e,t,n,r;return e=mn,t=gn,n=yn,h(),r=gn!==t,mn=e,gn=t,yn=n,r}function A(e,t){var n,r=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,function(e,t){return r[t]||""});throw"number"==typeof e.lineNumber?(n=Error("Line "+e.lineNumber+": "+i),n.index=e.range[0],n.lineNumber=e.lineNumber,n.column=e.range[0]-yn+1):(n=Error("Line "+gn+": "+i),n.index=mn,n.lineNumber=gn,n.column=mn-yn+1),n}function _(){try{A.apply(null,arguments)}catch(e){if(!bn.errors)throw e;bn.errors.push(e)}}function k(e){if(e.type===sn.EOF&&A(e,pn.UnexpectedEOS),e.type===sn.NumericLiteral&&A(e,pn.UnexpectedNumber),e.type===sn.StringLiteral&&A(e,pn.UnexpectedString),e.type===sn.Identifier&&A(e,pn.UnexpectedIdentifier),e.type===sn.Keyword){if(c(e.value))A(e,pn.UnexpectedReserved);else if(hn&&p(e.value))return _(e,pn.StrictReservedWord),void 0;A(e,pn.UnexpectedToken,e.value)}A(e,pn.UnexpectedToken,e.value)}function L(e){var t=x();(t.type!==sn.Punctuator||t.value!==e)&&k(t)}function O(e){var t=x();(t.type!==sn.Keyword||t.value!==e)&&k(t)}function R(e){var t=C();return t.type===sn.Punctuator&&t.value===e}function N(e){var t=C();return t.type===sn.Keyword&&t.value===e}function D(){var e=C(),t=e.value;return e.type!==sn.Punctuator?!1:"="===t||"*="===t||"/="===t||"%="===t||"+="===t||"-="===t||"<<="===t||">>="===t||">>>="===t||"&="===t||"^="===t||"|="===t}function P(){var e,t;if(";"===dn[mn])return x(),void 0;if(t=gn,h(),gn===t){if(R(";"))return x(),void 0;e=C(),e.type===sn.EOF||R("}")||k(e)}}function T(e){return e.type===un.Identifier||e.type===un.MemberExpression}function F(){var e=[];for(L("[");!R("]");)R(",")?(x(),e.push(null)):(e.push(ut()),R("]")||L(","));return L("]"),{type:un.ArrayExpression,elements:e}}function B(e,t){var n,r;return n=hn,r=Ft(),t&&hn&&f(e[0].name)&&_(t,pn.StrictParamName),hn=n,{type:un.FunctionExpression,id:null,params:e,defaults:[],body:r,rest:null,generator:!1,expression:!1}}function M(){var e=x();return e.type===sn.StringLiteral||e.type===sn.NumericLiteral?(hn&&e.octal&&_(e,pn.StrictOctalLiteral),Kt(e)):{type:un.Identifier,name:e.value}}function U(){var e,t,n,r;return e=C(),e.type===sn.Identifier?(n=M(),"get"!==e.value||R(":")?"set"!==e.value||R(":")?(L(":"),{type:un.Property,key:n,value:ut(),kind:"init"}):(t=M(),L("("),e=C(),e.type!==sn.Identifier?(L(")"),_(e,pn.UnexpectedToken,e.value),{type:un.Property,key:t,value:B([]),kind:"set"}):(r=[dt()],L(")"),{type:un.Property,key:t,value:B(r,e),kind:"set"})):(t=M(),L("("),L(")"),{type:un.Property,key:t,value:B([]),kind:"get"})):e.type!==sn.EOF&&e.type!==sn.Punctuator?(t=M(),L(":"),{type:un.Property,key:t,value:ut(),kind:"init"}):(k(e),void 0)}function j(){var e,t,n,r=[],i={},o=String;for(L("{");!R("}");)e=U(),t=e.key.type===un.Identifier?e.key.name:o(e.key.value),n="init"===e.kind?cn.Data:"get"===e.kind?cn.Get:cn.Set,Object.prototype.hasOwnProperty.call(i,t)?(i[t]===cn.Data?hn&&n===cn.Data?_({},pn.StrictDuplicateProperty):n!==cn.Data&&_({},pn.AccessorDataProperty):n===cn.Data?_({},pn.AccessorDataProperty):i[t]&n&&_({},pn.AccessorGetSet),i[t]|=n):i[t]=n,r.push(e),R("}")||L(",");return L("}"),{type:un.ObjectExpression,properties:r}}function q(){var e;return L("("),e=ct(),L(")"),e}function W(){var e=C(),t=e.type;if(t===sn.Identifier)return{type:un.Identifier,name:x().value};if(t===sn.StringLiteral||t===sn.NumericLiteral)return hn&&e.octal&&_(e,pn.StrictOctalLiteral),Kt(x());if(t===sn.Keyword){if(N("this"))return x(),{type:un.ThisExpression};if(N("function"))return Mt()}return t===sn.BooleanLiteral?(x(),e.value="true"===e.value,Kt(e)):t===sn.NullLiteral?(x(),e.value=null,Kt(e)):R("[")?F():R("{")?j():R("(")?q():R("/")||R("/=")?Kt(E()):k(x())}function G(){var e=[];if(L("("),!R(")"))for(;Sn>mn&&(e.push(ut()),!R(")"));)L(",");return L(")"),e}function H(){var e=x();return b(e)||k(e),{type:un.Identifier,name:e.value}}function V(){return L("."),H()}function z(){var e;return L("["),e=ct(),L("]"),e}function Y(){var e;return O("new"),e={type:un.NewExpression,callee:X(),arguments:[]},R("(")&&(e.arguments=G()),e}function K(){var e;for(e=N("new")?Y():W();R(".")||R("[")||R("(");)e=R("(")?{type:un.CallExpression,callee:e,arguments:G()}:R("[")?{type:un.MemberExpression,computed:!0,object:e,property:z()}:{type:un.MemberExpression,computed:!1,object:e,property:V()};return e}function X(){var e;for(e=N("new")?Y():W();R(".")||R("[");)e=R("[")?{type:un.MemberExpression,computed:!0,object:e,property:z()}:{type:un.MemberExpression,computed:!1,object:e,property:V()};return e}function $(){var e,t=K();return e=C(),e.type!==sn.Punctuator?t:(!R("++")&&!R("--")||I()||(hn&&t.type===un.Identifier&&f(t.name)&&_({},pn.StrictLHSPostfix),T(t)||_({},pn.InvalidLHSInAssignment),t={type:un.UpdateExpression,operator:x().value,argument:t,prefix:!1}),t)}function J(){var e,t;return e=C(),e.type!==sn.Punctuator&&e.type!==sn.Keyword?$():R("++")||R("--")?(e=x(),t=J(),hn&&t.type===un.Identifier&&f(t.name)&&_({},pn.StrictLHSPrefix),T(t)||_({},pn.InvalidLHSInAssignment),t={type:un.UpdateExpression,operator:e.value,argument:t,prefix:!0}):R("+")||R("-")||R("~")||R("!")?t={type:un.UnaryExpression,operator:x().value,argument:J(),prefix:!0}:N("delete")||N("void")||N("typeof")?(t={type:un.UnaryExpression,operator:x().value,argument:J(),prefix:!0},hn&&"delete"===t.operator&&t.argument.type===un.Identifier&&_({},pn.StrictDelete),t):$()}function Q(){for(var e=J();R("*")||R("/")||R("%");)e={type:un.BinaryExpression,operator:x().value,left:e,right:J()};return e}function Z(){for(var e=Q();R("+")||R("-");)e={type:un.BinaryExpression,operator:x().value,left:e,right:Q()};return e}function et(){for(var e=Z();R("<<")||R(">>")||R(">>>");)e={type:un.BinaryExpression,operator:x().value,left:e,right:Z()};return e}function tt(){var e,t;for(t=En.allowIn,En.allowIn=!0,e=et();R("<")||R(">")||R("<=")||R(">=")||t&&N("in")||N("instanceof");)e={type:un.BinaryExpression,operator:x().value,left:e,right:et()};return En.allowIn=t,e}function nt(){for(var e=tt();R("==")||R("!=")||R("===")||R("!==");)e={type:un.BinaryExpression,operator:x().value,left:e,right:tt()};return e}function rt(){for(var e=nt();R("&");)x(),e={type:un.BinaryExpression,operator:"&",left:e,right:nt()};return e}function it(){for(var e=rt();R("^");)x(),e={type:un.BinaryExpression,operator:"^",left:e,right:rt()};return e}function ot(){for(var e=it();R("|");)x(),e={type:un.BinaryExpression,operator:"|",left:e,right:it()};return e}function at(){for(var e=ot();R("&&");)x(),e={type:un.LogicalExpression,operator:"&&",left:e,right:ot()};return e}function st(){for(var e=at();R("||");)x(),e={type:un.LogicalExpression,operator:"||",left:e,right:at()};return e}function lt(){var e,t,n;return e=st(),R("?")&&(x(),t=En.allowIn,En.allowIn=!0,n=ut(),En.allowIn=t,L(":"),e={type:un.ConditionalExpression,test:e,consequent:n,alternate:ut()}),e}function ut(){var e,t;return e=C(),t=lt(),D()&&(T(t)||_({},pn.InvalidLHSInAssignment),hn&&t.type===un.Identifier&&f(t.name)&&_(e,pn.StrictLHSAssignment),t={type:un.AssignmentExpression,operator:x().value,left:t,right:ut()}),t}function ct(){var e=ut();if(R(","))for(e={type:un.SequenceExpression,expressions:[e]};Sn>mn&&R(",");)x(),e.expressions.push(ut());return e}function pt(){for(var e,t=[];Sn>mn&&!R("}")&&(e=Ut(),void 0!==e);)t.push(e);return t}function ft(){var e;return L("{"),e=pt(),L("}"),{type:un.BlockStatement,body:e}}function dt(){var e=x();return e.type!==sn.Identifier&&k(e),{type:un.Identifier,name:e.value}}function ht(e){var t=dt(),n=null;return hn&&f(t.name)&&_({},pn.StrictVarName),"const"===e?(L("="),n=ut()):R("=")&&(x(),n=ut()),{type:un.VariableDeclarator,id:t,init:n}}function mt(e){var t=[];do{if(t.push(ht(e)),!R(","))break;x()}while(Sn>mn);return t}function gt(){var e;return O("var"),e=mt(),P(),{type:un.VariableDeclaration,declarations:e,kind:"var"}}function yt(e){var t;return O(e),t=mt(e),P(),{type:un.VariableDeclaration,declarations:t,kind:e}}function St(){return L(";"),{type:un.EmptyStatement}}function vt(){var e=ct();return P(),{type:un.ExpressionStatement,expression:e}}function Et(){var e,t,n;return O("if"),L("("),e=ct(),L(")"),t=Tt(),N("else")?(x(),n=Tt()):n=null,{type:un.IfStatement,test:e,consequent:t,alternate:n}}function bt(){var e,t,n;return O("do"),n=En.inIteration,En.inIteration=!0,e=Tt(),En.inIteration=n,O("while"),L("("),t=ct(),L(")"),R(";")&&x(),{type:un.DoWhileStatement,body:e,test:t}}function wt(){var e,t,n;return O("while"),L("("),e=ct(),L(")"),n=En.inIteration,En.inIteration=!0,t=Tt(),En.inIteration=n,{type:un.WhileStatement,test:e,body:t}}function xt(){var e=x();return{type:un.VariableDeclaration,declarations:mt(),kind:e.value}}function Ct(){var e,t,n,r,i,o,a;return e=t=n=null,O("for"),L("("),R(";")?x():(N("var")||N("let")?(En.allowIn=!1,e=xt(),En.allowIn=!0,1===e.declarations.length&&N("in")&&(x(),r=e,i=ct(),e=null)):(En.allowIn=!1,e=ct(),En.allowIn=!0,N("in")&&(T(e)||_({},pn.InvalidLHSInForIn),x(),r=e,i=ct(),e=null)),r===void 0&&L(";")),r===void 0&&(R(";")||(t=ct()),L(";"),R(")")||(n=ct())),L(")"),a=En.inIteration,En.inIteration=!0,o=Tt(),En.inIteration=a,r===void 0?{type:un.ForStatement,init:e,test:t,update:n,body:o}:{type:un.ForInStatement,left:r,right:i,body:o,each:!1}}function It(){var e,t=null;return O("continue"),";"===dn[mn]?(x(),En.inIteration||A({},pn.IllegalContinue),{type:un.ContinueStatement,label:null}):I()?(En.inIteration||A({},pn.IllegalContinue),{type:un.ContinueStatement,label:null}):(e=C(),e.type===sn.Identifier&&(t=dt(),Object.prototype.hasOwnProperty.call(En.labelSet,t.name)||A({},pn.UnknownLabel,t.name)),P(),null!==t||En.inIteration||A({},pn.IllegalContinue),{type:un.ContinueStatement,label:t})}function At(){var e,t=null;return O("break"),";"===dn[mn]?(x(),En.inIteration||En.inSwitch||A({},pn.IllegalBreak),{type:un.BreakStatement,label:null}):I()?(En.inIteration||En.inSwitch||A({},pn.IllegalBreak),{type:un.BreakStatement,label:null}):(e=C(),e.type===sn.Identifier&&(t=dt(),Object.prototype.hasOwnProperty.call(En.labelSet,t.name)||A({},pn.UnknownLabel,t.name)),P(),null!==t||En.inIteration||En.inSwitch||A({},pn.IllegalBreak),{type:un.BreakStatement,label:t})}function _t(){var e,t=null;return O("return"),En.inFunctionBody||_({},pn.IllegalReturn)," "===dn[mn]&&l(dn[mn+1])?(t=ct(),P(),{type:un.ReturnStatement,argument:t}):I()?{type:un.ReturnStatement,argument:null}:(R(";")||(e=C(),R("}")||e.type===sn.EOF||(t=ct())),P(),{type:un.ReturnStatement,argument:t})}function kt(){var e,t;return hn&&_({},pn.StrictModeWith),O("with"),L("("),e=ct(),L(")"),t=Tt(),{type:un.WithStatement,object:e,body:t}}function Lt(){var e,t,n=[];for(N("default")?(x(),e=null):(O("case"),e=ct()),L(":");Sn>mn&&!(R("}")||N("default")||N("case"))&&(t=Tt(),void 0!==t);)n.push(t);return{type:un.SwitchCase,test:e,consequent:n}}function Ot(){var e,t,n,r,i;if(O("switch"),L("("),e=ct(),L(")"),L("{"),t=[],R("}"))return x(),{type:un.SwitchStatement,discriminant:e,cases:t};for(r=En.inSwitch,En.inSwitch=!0,i=!1;Sn>mn&&!R("}");)n=Lt(),null===n.test&&(i&&A({},pn.MultipleDefaultsInSwitch),i=!0),t.push(n);return En.inSwitch=r,L("}"),{type:un.SwitchStatement,discriminant:e,cases:t}}function Rt(){var e;return O("throw"),I()&&A({},pn.NewlineAfterThrow),e=ct(),P(),{type:un.ThrowStatement,argument:e}}function Nt(){var e;return O("catch"),L("("),R(")")&&k(C()),e=dt(),hn&&f(e.name)&&_({},pn.StrictCatchVariable),L(")"),{type:un.CatchClause,param:e,body:ft()}}function Dt(){var e,t=[],n=null;return O("try"),e=ft(),N("catch")&&t.push(Nt()),N("finally")&&(x(),n=ft()),0!==t.length||n||A({},pn.NoCatchOrFinally),{type:un.TryStatement,block:e,guardedHandlers:[],handlers:t,finalizer:n}}function Pt(){return O("debugger"),P(),{type:un.DebuggerStatement}}function Tt(){var e,t,n=C();if(n.type===sn.EOF&&k(n),n.type===sn.Punctuator)switch(n.value){case";":return St();case"{":return ft();case"(":return vt();default:}if(n.type===sn.Keyword)switch(n.value){case"break":return At();case"continue":return It();case"debugger":return Pt();case"do":return bt();case"for":return Ct();case"function":return Bt();case"if":return Et();case"return":return _t();case"switch":return Ot();case"throw":return Rt();case"try":return Dt();case"var":return gt();case"while":return wt();case"with":return kt();default:}return e=ct(),e.type===un.Identifier&&R(":")?(x(),Object.prototype.hasOwnProperty.call(En.labelSet,e.name)&&A({},pn.Redeclaration,"Label",e.name),En.labelSet[e.name]=!0,t=Tt(),delete En.labelSet[e.name],{type:un.LabeledStatement,label:e,body:t}):(P(),{type:un.ExpressionStatement,expression:e})}function Ft(){var e,t,r,i,o,a,s,l,u=[];for(L("{");Sn>mn&&(t=C(),t.type===sn.StringLiteral)&&(e=Ut(),u.push(e),e.expression.type===un.Literal);)r=n(t.range[0]+1,t.range[1]-1),"use strict"===r?(hn=!0,i&&_(i,pn.StrictOctalLiteral)):!i&&t.octal&&(i=t);for(o=En.labelSet,a=En.inIteration,s=En.inSwitch,l=En.inFunctionBody,En.labelSet={},En.inIteration=!1,En.inSwitch=!1,En.inFunctionBody=!0;Sn>mn&&!R("}")&&(e=Ut(),void 0!==e);)u.push(e);return L("}"),En.labelSet=o,En.inIteration=a,En.inSwitch=s,En.inFunctionBody=l,{type:un.BlockStatement,body:u}}function Bt(){var e,t,n,r,i,o,a,s,l,u=[];if(O("function"),r=C(),e=dt(),hn?f(r.value)&&_(r,pn.StrictFunctionName):f(r.value)?(o=r,a=pn.StrictFunctionName):p(r.value)&&(o=r,a=pn.StrictReservedWord),L("("),!R(")"))for(l={};Sn>mn&&(r=C(),t=dt(),hn?(f(r.value)&&(i=r,a=pn.StrictParamName),Object.prototype.hasOwnProperty.call(l,r.value)&&(i=r,a=pn.StrictParamDupe)):o||(f(r.value)?(o=r,a=pn.StrictParamName):p(r.value)?(o=r,a=pn.StrictReservedWord):Object.prototype.hasOwnProperty.call(l,r.value)&&(o=r,a=pn.StrictParamDupe)),u.push(t),l[t.name]=!0,!R(")"));)L(",");return L(")"),s=hn,n=Ft(),hn&&o&&A(o,a),hn&&i&&_(i,a),hn=s,{type:un.FunctionDeclaration,id:e,params:u,defaults:[],body:n,rest:null,generator:!1,expression:!1}}function Mt(){var e,t,n,r,i,o,a,s,l=null,u=[];if(O("function"),R("(")||(e=C(),l=dt(),hn?f(e.value)&&_(e,pn.StrictFunctionName):f(e.value)?(n=e,r=pn.StrictFunctionName):p(e.value)&&(n=e,r=pn.StrictReservedWord)),L("("),!R(")"))for(s={};Sn>mn&&(e=C(),i=dt(),hn?(f(e.value)&&(t=e,r=pn.StrictParamName),Object.prototype.hasOwnProperty.call(s,e.value)&&(t=e,r=pn.StrictParamDupe)):n||(f(e.value)?(n=e,r=pn.StrictParamName):p(e.value)?(n=e,r=pn.StrictReservedWord):Object.prototype.hasOwnProperty.call(s,e.value)&&(n=e,r=pn.StrictParamDupe)),u.push(i),s[i.name]=!0,!R(")"));)L(",");return L(")"),a=hn,o=Ft(),hn&&n&&A(n,r),hn&&t&&_(t,r),hn=a,{type:un.FunctionExpression,id:l,params:u,defaults:[],body:o,rest:null,generator:!1,expression:!1}}function Ut(){var e=C();if(e.type===sn.Keyword)switch(e.value){case"const":case"let":return yt(e.value);case"function":return Bt();default:return Tt()}return e.type!==sn.EOF?Tt():void 0}function jt(){for(var e,t,r,i,o=[];Sn>mn&&(t=C(),t.type===sn.StringLiteral)&&(e=Ut(),o.push(e),e.expression.type===un.Literal);)r=n(t.range[0]+1,t.range[1]-1),"use strict"===r?(hn=!0,i&&_(i,pn.StrictOctalLiteral)):!i&&t.octal&&(i=t);for(;Sn>mn&&(e=Ut(),void 0!==e);)o.push(e);return o}function qt(){var e;return hn=!1,e={type:un.Program,body:jt()}}function Wt(e,n,r,i,o){t("number"==typeof r,"Comment must have valid position"),bn.comments.length>0&&bn.comments[bn.comments.length-1].range[1]>r||bn.comments.push({type:e,value:n,range:[r,i],loc:o})}function Gt(){var e,t,n,r,i,o;for(e="",i=!1,o=!1;Sn>mn;)if(t=dn[mn],o)t=dn[mn++],s(t)?(n.end={line:gn,column:mn-yn-1},o=!1,Wt("Line",e,r,mn-1,n),"\r"===t&&"\n"===dn[mn]&&++mn,++gn,yn=mn,e=""):mn>=Sn?(o=!1,e+=t,n.end={line:gn,column:Sn-yn},Wt("Line",e,r,Sn,n)):e+=t;else if(i)s(t)?("\r"===t&&"\n"===dn[mn+1]?(++mn,e+="\r\n"):e+=t,++gn,++mn,yn=mn,mn>=Sn&&A({},pn.UnexpectedToken,"ILLEGAL")):(t=dn[mn++],mn>=Sn&&A({},pn.UnexpectedToken,"ILLEGAL"),e+=t,"*"===t&&(t=dn[mn],"/"===t&&(e=e.substr(0,e.length-1),i=!1,++mn,n.end={line:gn,column:mn-yn},Wt("Block",e,r,mn,n),e="")));else if("/"===t)if(t=dn[mn+1],"/"===t)n={start:{line:gn,column:mn-yn}},r=mn,mn+=2,o=!0,mn>=Sn&&(n.end={line:gn,column:mn-yn},o=!1,Wt("Line",e,r,mn,n));else{if("*"!==t)break;r=mn,mn+=2,i=!0,n={start:{line:gn,column:mn-yn-2}},mn>=Sn&&A({},pn.UnexpectedToken,"ILLEGAL")}else if(a(t))++mn;else{if(!s(t))break;++mn,"\r"===t&&"\n"===dn[mn]&&++mn,++gn,yn=mn}}function Ht(){var e,t,n,r=[];for(e=0;bn.comments.length>e;++e)t=bn.comments[e],n={type:t.type,value:t.value},bn.range&&(n.range=t.range),bn.loc&&(n.loc=t.loc),r.push(n);bn.comments=r}function Vt(){var e,t,r,i,o;return h(),e=mn,t={start:{line:gn,column:mn-yn}},r=bn.advance(),t.end={line:gn,column:mn-yn},r.type!==sn.EOF&&(i=[r.range[0],r.range[1]],o=n(r.range[0],r.range[1]),bn.tokens.push({type:ln[r.type],value:o,range:i,loc:t})),r}function zt(){var e,t,n,r;return h(),e=mn,t={start:{line:gn,column:mn-yn}},n=bn.scanRegExp(),t.end={line:gn,column:mn-yn},bn.tokens.length>0&&(r=bn.tokens[bn.tokens.length-1],r.range[0]===e&&"Punctuator"===r.type&&("/"===r.value||"/="===r.value)&&bn.tokens.pop()),bn.tokens.push({type:"RegularExpression",value:n.literal,range:[e,mn],loc:t}),n}function Yt(){var e,t,n,r=[];for(e=0;bn.tokens.length>e;++e)t=bn.tokens[e],n={type:t.type,value:t.value},bn.range&&(n.range=t.range),bn.loc&&(n.loc=t.loc),r.push(n);bn.tokens=r}function Kt(e){return{type:un.Literal,value:e.value}}function Xt(e){return{type:un.Literal,value:e.value,raw:n(e.range[0],e.range[1])}}function $t(){var e={};return e.range=[mn,mn],e.loc={start:{line:gn,column:mn-yn},end:{line:gn,column:mn-yn}},e.end=function(){this.range[1]=mn,this.loc.end.line=gn,this.loc.end.column=mn-yn},e.applyGroup=function(e){bn.range&&(e.groupRange=[this.range[0],this.range[1]]),bn.loc&&(e.groupLoc={start:{line:this.loc.start.line,column:this.loc.start.column},end:{line:this.loc.end.line,column:this.loc.end.column}})},e.apply=function(e){bn.range&&(e.range=[this.range[0],this.range[1]]),bn.loc&&(e.loc={start:{line:this.loc.start.line,column:this.loc.start.column},end:{line:this.loc.end.line,column:this.loc.end.column}})},e}function Jt(){var e,t;return h(),e=$t(),L("("),t=ct(),L(")"),e.end(),e.applyGroup(t),t}function Qt(){var e,t;for(h(),e=$t(),t=N("new")?Y():W();R(".")||R("[");)R("[")?(t={type:un.MemberExpression,computed:!0,object:t,property:z()},e.end(),e.apply(t)):(t={type:un.MemberExpression,computed:!1,object:t,property:V()},e.end(),e.apply(t));return t}function Zt(){var e,t;for(h(),e=$t(),t=N("new")?Y():W();R(".")||R("[")||R("(");)R("(")?(t={type:un.CallExpression,callee:t,arguments:G()},e.end(),e.apply(t)):R("[")?(t={type:un.MemberExpression,computed:!0,object:t,property:z()},e.end(),e.apply(t)):(t={type:un.MemberExpression,computed:!1,object:t,property:V()},e.end(),e.apply(t));return t}function en(e){var t,n,r;t="[object Array]"===Object.prototype.toString.apply(e)?[]:{};for(n in e)e.hasOwnProperty(n)&&"groupRange"!==n&&"groupLoc"!==n&&(r=e[n],t[n]=null===r||"object"!=typeof r||r instanceof RegExp?r:en(r));return t}function tn(e,t){return function(n){function r(e){return e.type===un.LogicalExpression||e.type===un.BinaryExpression}function i(n){var o,a;r(n.left)&&i(n.left),r(n.right)&&i(n.right),e&&(n.left.groupRange||n.right.groupRange?(o=n.left.groupRange?n.left.groupRange[0]:n.left.range[0],a=n.right.groupRange?n.right.groupRange[1]:n.right.range[1],n.range=[o,a]):n.range===void 0&&(o=n.left.range[0],a=n.right.range[1],n.range=[o,a])),t&&(n.left.groupLoc||n.right.groupLoc?(o=n.left.groupLoc?n.left.groupLoc.start:n.left.loc.start,a=n.right.groupLoc?n.right.groupLoc.end:n.right.loc.end,n.loc={start:o,end:a}):n.loc===void 0&&(n.loc={start:n.left.loc.start,end:n.right.loc.end}))}return function(){var o,a;return h(),o=$t(),a=n.apply(null,arguments),o.end(),e&&a.range===void 0&&o.apply(a),t&&a.loc===void 0&&o.apply(a),r(a)&&i(a),a}}}function nn(){var e;bn.comments&&(bn.skipComment=h,h=Gt),bn.raw&&(bn.createLiteral=Kt,Kt=Xt),(bn.range||bn.loc)&&(bn.parseGroupExpression=q,bn.parseLeftHandSideExpression=X,bn.parseLeftHandSideExpressionAllowCall=K,q=Jt,X=Qt,K=Zt,e=tn(bn.range,bn.loc),bn.parseAdditiveExpression=Z,bn.parseAssignmentExpression=ut,bn.parseBitwiseANDExpression=rt,bn.parseBitwiseORExpression=ot,bn.parseBitwiseXORExpression=it,bn.parseBlock=ft,bn.parseFunctionSourceElements=Ft,bn.parseCatchClause=Nt,bn.parseComputedMember=z,bn.parseConditionalExpression=lt,bn.parseConstLetDeclaration=yt,bn.parseEqualityExpression=nt,bn.parseExpression=ct,bn.parseForVariableDeclaration=xt,bn.parseFunctionDeclaration=Bt,bn.parseFunctionExpression=Mt,bn.parseLogicalANDExpression=at,bn.parseLogicalORExpression=st,bn.parseMultiplicativeExpression=Q,bn.parseNewExpression=Y,bn.parseNonComputedProperty=H,bn.parseObjectProperty=U,bn.parseObjectPropertyKey=M,bn.parsePostfixExpression=$,bn.parsePrimaryExpression=W,bn.parseProgram=qt,bn.parsePropertyFunction=B,bn.parseRelationalExpression=tt,bn.parseStatement=Tt,bn.parseShiftExpression=et,bn.parseSwitchCase=Lt,bn.parseUnaryExpression=J,bn.parseVariableDeclaration=ht,bn.parseVariableIdentifier=dt,Z=e(bn.parseAdditiveExpression),ut=e(bn.parseAssignmentExpression),rt=e(bn.parseBitwiseANDExpression),ot=e(bn.parseBitwiseORExpression),it=e(bn.parseBitwiseXORExpression),ft=e(bn.parseBlock),Ft=e(bn.parseFunctionSourceElements),Nt=e(bn.parseCatchClause),z=e(bn.parseComputedMember),lt=e(bn.parseConditionalExpression),yt=e(bn.parseConstLetDeclaration),nt=e(bn.parseEqualityExpression),ct=e(bn.parseExpression),xt=e(bn.parseForVariableDeclaration),Bt=e(bn.parseFunctionDeclaration),Mt=e(bn.parseFunctionExpression),X=e(X),at=e(bn.parseLogicalANDExpression),st=e(bn.parseLogicalORExpression),Q=e(bn.parseMultiplicativeExpression),Y=e(bn.parseNewExpression),H=e(bn.parseNonComputedProperty),U=e(bn.parseObjectProperty),M=e(bn.parseObjectPropertyKey),$=e(bn.parsePostfixExpression),W=e(bn.parsePrimaryExpression),qt=e(bn.parseProgram),B=e(bn.parsePropertyFunction),tt=e(bn.parseRelationalExpression),Tt=e(bn.parseStatement),et=e(bn.parseShiftExpression),Lt=e(bn.parseSwitchCase),J=e(bn.parseUnaryExpression),ht=e(bn.parseVariableDeclaration),dt=e(bn.parseVariableIdentifier)),bn.tokens!==void 0&&(bn.advance=w,bn.scanRegExp=E,w=Vt,E=zt)}function rn(){"function"==typeof bn.skipComment&&(h=bn.skipComment),bn.raw&&(Kt=bn.createLiteral),(bn.range||bn.loc)&&(Z=bn.parseAdditiveExpression,ut=bn.parseAssignmentExpression,rt=bn.parseBitwiseANDExpression,ot=bn.parseBitwiseORExpression,it=bn.parseBitwiseXORExpression,ft=bn.parseBlock,Ft=bn.parseFunctionSourceElements,Nt=bn.parseCatchClause,z=bn.parseComputedMember,lt=bn.parseConditionalExpression,yt=bn.parseConstLetDeclaration,nt=bn.parseEqualityExpression,ct=bn.parseExpression,xt=bn.parseForVariableDeclaration,Bt=bn.parseFunctionDeclaration,Mt=bn.parseFunctionExpression,q=bn.parseGroupExpression,X=bn.parseLeftHandSideExpression,K=bn.parseLeftHandSideExpressionAllowCall,at=bn.parseLogicalANDExpression,st=bn.parseLogicalORExpression,Q=bn.parseMultiplicativeExpression,Y=bn.parseNewExpression,H=bn.parseNonComputedProperty,U=bn.parseObjectProperty,M=bn.parseObjectPropertyKey,W=bn.parsePrimaryExpression,$=bn.parsePostfixExpression,qt=bn.parseProgram,B=bn.parsePropertyFunction,tt=bn.parseRelationalExpression,Tt=bn.parseStatement,et=bn.parseShiftExpression,Lt=bn.parseSwitchCase,J=bn.parseUnaryExpression,ht=bn.parseVariableDeclaration,dt=bn.parseVariableIdentifier),"function"==typeof bn.scanRegExp&&(w=bn.advance,E=bn.scanRegExp)}function on(e){var t,n=e.length,r=[];for(t=0;n>t;++t)r[t]=e.charAt(t);return r}function an(e,t){var n,r;r=String,"string"==typeof e||e instanceof String||(e=r(e)),dn=e,mn=0,gn=dn.length>0?1:0,yn=0,Sn=dn.length,vn=null,En={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1},bn={},t!==void 0&&(bn.range="boolean"==typeof t.range&&t.range,bn.loc="boolean"==typeof t.loc&&t.loc,bn.raw="boolean"==typeof t.raw&&t.raw,"boolean"==typeof t.tokens&&t.tokens&&(bn.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(bn.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(bn.errors=[])),Sn>0&&dn[0]===void 0&&(e instanceof String&&(dn=e.valueOf()),dn[0]===void 0&&(dn=on(e))),nn(); | |
try{n=qt(),bn.comments!==void 0&&(Ht(),n.comments=bn.comments),bn.tokens!==void 0&&(Yt(),n.tokens=bn.tokens),bn.errors!==void 0&&(n.errors=bn.errors),(bn.range||bn.loc)&&(n.body=en(n.body))}catch(i){throw i}finally{rn(),bn={}}return n}var sn,ln,un,cn,pn,fn,dn,hn,mn,gn,yn,Sn,vn,En,bn;sn={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8},ln={},ln[sn.BooleanLiteral]="Boolean",ln[sn.EOF]="<end>",ln[sn.Identifier]="Identifier",ln[sn.Keyword]="Keyword",ln[sn.NullLiteral]="Null",ln[sn.NumericLiteral]="Numeric",ln[sn.Punctuator]="Punctuator",ln[sn.StringLiteral]="String",un={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},cn={Data:1,Get:2,Set:4},pn={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},fn={NonAsciiIdentifierStart:RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},"esprima"[0]===void 0&&(n=function(e,t){return dn.slice(e,t).join("")}),e.version="1.0.4",e.parse=an,e.Syntax=function(){var e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in un)un.hasOwnProperty(e)&&(t[e]=un[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()})},{}],esprima:[function(e,t){t.exports=e("ic/jtS")},{}]},{},[]),require=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);throw Error("Cannot find module '"+a+"'")}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return i(n?n:e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;r.length>a;a++)i(r[a]);return i}({tsAKcz:[function(e,t,n){(function(e,t){"use strict";"function"==typeof define&&define.amd?define(["exports"],t):n!==void 0?t(n):t(e.estraverse={})})(this,function(e){"use strict";function t(){}function n(e){var t,r,i={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],i[t]="object"==typeof r&&null!==r?n(r):r);return i}function r(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function i(e,t){var n,r,i,o;for(r=e.length,i=0;r;)n=r>>>1,o=i+n,t(e[o])?r=n:(i=o+1,r-=n+1);return i}function o(e,t){var n,r,i,o;for(r=e.length,i=0;r;)n=r>>>1,o=i+n,t(e[o])?(i=o+1,r-=n+1):r=n;return i}function a(e,t){this.parent=e,this.key=t}function s(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function l(){}function u(e,t){var n=new l;return n.traverse(e,t)}function c(e,t){var n=new l;return n.replace(e,t)}function p(e,t){var n;return n=i(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),n-=1,n>=0&&(e.extendedRange[0]=t[n].range[1]),e}function f(e,t,r){var i,o,a,s,l=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(a=0,o=t.length;o>a;a+=1)i=n(t[a]),i.extendedRange=[0,e.range[0]],l.push(i);e.leadingComments=l}return e}for(a=0,o=t.length;o>a;a+=1)l.push(p(n(t[a]),r));return s=0,u(e,{enter:function(e){for(var t;l.length>s&&(t=l[s],!(t.extendedRange[1]>e.range[0]));)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?m.Break:l[s].extendedRange[0]>e.range[1]?m.Skip:void 0}}),s=0,u(e,{leave:function(e){for(var t;l.length>s&&(t=l[s],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?m.Break:l[s].extendedRange[0]>e.range[1]?m.Skip:void 0}}),e}var d,h,m,g,y,S;d={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},h=Array.isArray,h||(h=function h(e){return"[object Array]"===Object.prototype.toString.call(e)}),t(r),t(o),g={AssignmentExpression:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","defaults","rest","body"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","body","superClass"],ClassExpression:["id","body","superClass"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],FunctionDeclaration:["id","params","defaults","rest","body"],FunctionExpression:["id","params","defaults","rest","body"],Identifier:[],IfStatement:["test","consequent","alternate"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handlers","handler","guardedHandlers","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},y={},S={},m={Break:y,Skip:S},a.prototype.replace=function c(e){this.parent[this.key]=e},l.prototype.path=function(){function e(e,t){if(h(t))for(r=0,i=t.length;i>r;++r)e.push(t[r]);else e.push(t)}var t,n,r,i,o,a;if(!this.__current.path)return null;for(o=[],t=2,n=this.__leavelist.length;n>t;++t)a=this.__leavelist[t],e(o,a.path);return e(o,this.__current.path),o},l.prototype.parents=function(){var e,t,n;for(n=[],e=1,t=this.__leavelist.length;t>e;++e)n.push(this.__leavelist[e].node);return n},l.prototype.current=function(){return this.__current.node},l.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},l.prototype.notify=function(e){this.__state=e},l.prototype.skip=function(){this.notify(S)},l.prototype["break"]=function(){this.notify(y)},l.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null},l.prototype.traverse=function u(e,t){var n,r,i,o,a,l,u,c,p,f,m,v;for(this.__initialize(e,t),v={},n=this.__worklist,r=this.__leavelist,n.push(new s(e,null,null,null)),r.push(new s(null,null,null,null));n.length;)if(i=n.pop(),i!==v){if(i.node){if(l=this.__execute(t.enter,i),this.__state===y||l===y)return;if(n.push(v),r.push(i),this.__state===S||l===S)continue;for(o=i.node,a=i.wrap||o.type,f=g[a],c=f.length;(c-=1)>=0;)if(u=f[c],m=o[u])if(h(m))for(p=m.length;(p-=1)>=0;)m[p]&&(i=a!==d.ObjectExpression&&a!==d.ObjectPattern||"properties"!==f[c]?new s(m[p],[u,p],null,null):new s(m[p],[u,p],"Property",null),n.push(i));else n.push(new s(m,u,null,null))}}else if(i=r.pop(),l=this.__execute(t.leave,i),this.__state===y||l===y)return},l.prototype.replace=function c(e,t){var n,r,i,o,l,u,c,p,f,m,v,E,b;for(this.__initialize(e,t),v={},n=this.__worklist,r=this.__leavelist,E={root:e},u=new s(e,null,null,new a(E,"root")),n.push(u),r.push(u);n.length;)if(u=n.pop(),u!==v){if(l=this.__execute(t.enter,u),void 0!==l&&l!==y&&l!==S&&(u.ref.replace(l),u.node=l),this.__state===y||l===y)return E.root;if(i=u.node,i&&(n.push(v),r.push(u),this.__state!==S&&l!==S))for(o=u.wrap||i.type,f=g[o],c=f.length;(c-=1)>=0;)if(b=f[c],m=i[b])if(h(m))for(p=m.length;(p-=1)>=0;)m[p]&&(u=o===d.ObjectExpression&&"properties"===f[c]?new s(m[p],[b,p],"Property",new a(m,p)):new s(m[p],[b,p],null,new a(m,p)),n.push(u));else n.push(new s(m,b,null,new a(i,b)))}else if(u=r.pop(),l=this.__execute(t.leave,u),void 0!==l&&l!==y&&l!==S&&u.ref.replace(l),this.__state===y||l===y)return E.root;return E.root},e.version="1.3.3-dev",e.Syntax=d,e.traverse=u,e.replace=c,e.attachComments=f,e.VisitorKeys=g,e.VisitorOption=m,e.Controller=l})},{}],estraverse:[function(e,t){t.exports=e("tsAKcz")},{}]},{},[]),require=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);throw Error("Cannot find module '"+a+"'")}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return i(n?n:e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;r.length>a;a++)i(r[a]);return i}({escodegen:[function(e,t){t.exports=e("OXS/e5")},{}],"OXS/e5":[function(e,t,n){var r="undefined"!=typeof self?self:"undefined"!=typeof window?window:{};(function(){"use strict";function t(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1,parenthesizedComprehensionBlock:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,verbatim:null}}function i(e,t){var n="";for(t|=0;t>0;t>>>=1,e+=e)1&t&&(n+=e);return n}function o(e){return/[\r\n]/g.test(e)}function a(e){var t=e.length;return t&&q.code.isLineTerminator(e.charCodeAt(t-1))}function s(e,t){function n(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof RegExp)}var r,i;for(r in t)t.hasOwnProperty(r)&&(i=t[r],n(i)?n(e[r])?s(e[r],i):e[r]=s({},i):e[r]=i);return e}function l(e){var t,n,r,i,o;if(e!==e)throw Error("Numeric literal whose value is NaN");if(0>e||0===e&&0>1/e)throw Error("Numeric literal whose value is negative");if(e===1/0)return V?"null":z?"1e400":"1e+400";if(t=""+e,!z||3>t.length)return t;for(n=t.indexOf("."),V||48!==t.charCodeAt(0)||1!==n||(n=0,t=t.slice(1)),r=t,t=t.replace("e+","e"),i=0,(o=r.indexOf("e"))>0&&(i=+r.slice(o+1),r=r.slice(0,o)),n>=0&&(i-=r.length-n-1,r=+(r.slice(0,n)+r.slice(n+1))+""),o=0;48===r.charCodeAt(r.length+o-1);)--o;return 0!==o&&(i-=o,r=r.slice(0,o)),0!==i&&(r+="e"+i),(r.length<t.length||Y&&e>1e12&&Math.floor(e)===e&&(r="0x"+e.toString(16)).length<t.length)&&+r===e&&(t=r),t}function u(e,t){return 8232===(-2&e)?(t?"u":"\\u")+(8232===e?"2028":"2029"):10===e||13===e?(t?"":"\\")+(10===e?"n":"r"):String.fromCharCode(e)}function c(e){var t,n,r,i,o,a,s,l;if(n=""+e,e.source){if(t=n.match(/\/([^/]*)$/),!t)return n;for(r=t[1],n="",s=!1,l=!1,i=0,o=e.source.length;o>i;++i)a=e.source.charCodeAt(i),l?(n+=u(a,l),l=!1):(s?93===a&&(s=!1):47===a?n+="\\":91===a&&(s=!0),n+=u(a,l),l=92===a);return"/"+n+"/"+r}return n}function p(e,t){var n,r="\\";switch(e){case 8:r+="b";break;case 12:r+="f";break;case 9:r+="t";break;default:n=e.toString(16).toUpperCase(),r+=V||e>255?"u"+"0000".slice(n.length)+n:0!==e||q.code.isDecimalDigit(t)?11===e?"x0B":"x"+"00".slice(n.length)+n:"0"}return r}function f(e){var t="\\";switch(e){case 92:t+="\\";break;case 10:t+="n";break;case 13:t+="r";break;case 8232:t+="u2028";break;case 8233:t+="u2029";break;default:throw Error("Incorrectly classified character")}return t}function d(e){var t,n,r,i;for(i="double"===K?'"':"'",t=0,n=e.length;n>t;++t){if(r=e.charCodeAt(t),39===r){i='"';break}if(34===r){i="'";break}92===r&&++t}return i+e+i}function h(e){var t,n,r,i,o,a="",s=0,l=0;for(t=0,n=e.length;n>t;++t){if(r=e.charCodeAt(t),39===r)++s;else if(34===r)++l;else if(47===r&&V)a+="\\";else{if(q.code.isLineTerminator(r)||92===r){a+=f(r);continue}if(V&&32>r||!(V||X||r>=32&&126>=r)){a+=p(r,e.charCodeAt(t+1));continue}}a+=String.fromCharCode(r)}if(i=!("double"===K||"auto"===K&&s>l),o=i?"'":'"',!(i?s:l))return o+a+o;for(e=a,a=o,t=0,n=e.length;n>t;++t)r=e.charCodeAt(t),(39===r&&i||34===r&&!i)&&(a+="\\"),a+=String.fromCharCode(r);return a+o}function m(e){var t,n,r,i="";for(t=0,n=e.length;n>t;++t)r=e[t],i+=W(r)?m(r):r;return i}function g(e,t){if(!it)return W(e)?m(e):e;if(null==t){if(e instanceof U)return e;t={}}return null==t.loc?new U(null,null,it,e,t.name||null):new U(t.loc.start.line,t.loc.start.column,it===!0?t.loc.source||null:it,e,t.name||null)}function y(){return J?J:" "}function S(e,t){var n=""+g(e),r=""+g(t),i=n.charCodeAt(n.length-1),o=r.charCodeAt(0);return(43===i||45===i)&&i===o||q.code.isIdentifierPart(i)&&q.code.isIdentifierPart(o)||47===i&&105===o?[e,y(),t]:q.code.isWhiteSpace(i)||q.code.isLineTerminator(i)||q.code.isWhiteSpace(o)||q.code.isLineTerminator(o)?[e,t]:[e,J,t]}function v(e){return[G,e]}function E(e){var t,n;return t=G,G+=H,n=e.call(this,G),G=t,n}function b(e){var t;for(t=e.length-1;t>=0&&!q.code.isLineTerminator(e.charCodeAt(t));--t);return e.length-1-t}function w(e,t){var n,r,i,o,a,s,l,u;for(n=e.split(/\r\n|[\r\n]/),s=Number.MAX_VALUE,r=1,i=n.length;i>r;++r){for(o=n[r],a=0;o.length>a&&q.code.isWhiteSpace(o.charCodeAt(a));)++a;s>a&&(s=a)}for(t!==void 0?(l=G,"*"===n[1][s]&&(t+=" "),G=t):(1&s&&--s,l=G),r=1,i=n.length;i>r;++r)u=g(v(n[r].slice(s))),n[r]=it?u.join(""):u;return G=l,n.join("\n")}function x(e,t){return"Line"===e.type?a(e.value)?"//"+e.value:"//"+e.value+"\n":nt.format.indent.adjustMultilineComment&&/[\n\r]/.test(e.value)?w("/*"+e.value+"*/",t):"/*"+e.value+"*/"}function C(e,t){var n,r,o,s,l,u,c;if(e.leadingComments&&e.leadingComments.length>0){for(s=t,o=e.leadingComments[0],t=[],et&&e.type===F.Program&&0===e.body.length&&t.push("\n"),t.push(x(o)),a(""+g(t))||t.push("\n"),n=1,r=e.leadingComments.length;r>n;++n)o=e.leadingComments[n],c=[x(o)],a(""+g(c))||c.push("\n"),t.push(v(c));t.push(v(s))}if(e.trailingComments)for(l=!a(""+g(t)),u=i(" ",b(""+g([G,t,H]))),n=0,r=e.trailingComments.length;r>n;++n)o=e.trailingComments[n],l?(t=0===n?[t,H]:[t,u],t.push(x(o,u))):t=[t,v(x(o))],n===r-1||a(""+g(t))||(t=[t,"\n"]);return t}function I(e,t,n){return n>t?["(",e,")"]:e}function A(e,t,n){var r,i;return i=!nt.comment||!e.leadingComments,e.type===F.BlockStatement&&i?[J,P(e,{functionBody:n})]:e.type===F.EmptyStatement&&i?";":(E(function(){r=[$,v(P(e,{semicolonOptional:t,functionBody:n}))]}),r)}function _(e,t){var n=a(""+g(t));return e.type!==F.BlockStatement||nt.comment&&e.leadingComments||n?n?[t,G]:[t,$,G]:[t,J]}function k(e,t){var n,r;for(r=e[nt.verbatim].split(/\r\n|\n/),n=1;r.length>n;n++)r[n]=$+G+r[n];return r=I(r,B.Sequence,t.precedence),g(r,e)}function L(e){return g(e.name,e)}function O(e,t){var n;return n=e.type===F.Identifier?L(e):D(e,{precedence:t.precedence,allowIn:t.allowIn,allowCall:!0})}function R(e){var t,n,r,i,o;if(o=e.type===F.ArrowFunctionExpression,o&&1===e.params.length&&e.params[0].type===F.Identifier)t=[L(e.params[0])];else{for(t=["("],n=0,r=e.params.length;r>n;++n)t.push(O(e.params[n],{precedence:B.Assignment,allowIn:!0})),r>n+1&&t.push(","+J);t.push(")")}return o&&(t.push(J),t.push("=>")),e.expression?(t.push(J),i=D(e.body,{precedence:B.Assignment,allowIn:!0,allowCall:!0}),"{"===(""+i).charAt(0)&&(i=["(",i,")"]),t.push(i)):t.push(A(e.body,!1,!0)),t}function N(e,t,n){var r=["for"+J+"("];return E(function(){t.left.type===F.VariableDeclaration?E(function(){r.push(t.left.kind+y()),r.push(P(t.left.declarations[0],{allowIn:!1}))}):r.push(D(t.left,{precedence:B.Call,allowIn:!0,allowCall:!0})),r=S(r,e),r=[S(r,D(t.right,{precedence:B.Sequence,allowIn:!0,allowCall:!0})),")"]}),r.push(A(t.body,n)),r}function D(e,t){var n,r,i,s,u,p,f,d,m,v,b,w,x,C,A,_,O;if(r=t.precedence,x=t.allowIn,C=t.allowCall,i=e.type||t.type,nt.verbatim&&e.hasOwnProperty(nt.verbatim))return k(e,t);switch(i){case F.SequenceExpression:for(n=[],x|=r>B.Sequence,u=0,p=e.expressions.length;p>u;++u)n.push(D(e.expressions[u],{precedence:B.Assignment,allowIn:x,allowCall:!0})),p>u+1&&n.push(","+J);n=I(n,B.Sequence,r);break;case F.AssignmentExpression:x|=r>B.Assignment,n=I([D(e.left,{precedence:B.Call,allowIn:x,allowCall:!0}),J+e.operator+J,D(e.right,{precedence:B.Assignment,allowIn:x,allowCall:!0})],B.Assignment,r);break;case F.ArrowFunctionExpression:x|=r>B.ArrowFunction,n=I(R(e),B.ArrowFunction,r);break;case F.ConditionalExpression:x|=r>B.Conditional,n=I([D(e.test,{precedence:B.LogicalOR,allowIn:x,allowCall:!0}),J+"?"+J,D(e.consequent,{precedence:B.Assignment,allowIn:x,allowCall:!0}),J+":"+J,D(e.alternate,{precedence:B.Assignment,allowIn:x,allowCall:!0})],B.Conditional,r);break;case F.LogicalExpression:case F.BinaryExpression:s=M[e.operator],x|=r>s,d=D(e.left,{precedence:s,allowIn:x,allowCall:!0}),b=""+d,n=47===b.charCodeAt(b.length-1)&&q.code.isIdentifierPart(e.operator.charCodeAt(0))?[d,y(),e.operator]:S(d,e.operator),d=D(e.right,{precedence:s+1,allowIn:x,allowCall:!0}),"/"===e.operator&&"/"===(""+d).charAt(0)||"<"===e.operator.slice(-1)&&"!--"===(""+d).slice(0,3)?(n.push(y()),n.push(d)):n=S(n,d),n="in"!==e.operator||x?I(n,s,r):["(",n,")"];break;case F.CallExpression:for(n=[D(e.callee,{precedence:B.Call,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!1})],n.push("("),u=0,p=e.arguments.length;p>u;++u)n.push(D(e.arguments[u],{precedence:B.Assignment,allowIn:!0,allowCall:!0})),p>u+1&&n.push(","+J);n.push(")"),n=C?I(n,B.Call,r):["(",n,")"];break;case F.NewExpression:if(p=e.arguments.length,A=void 0===t.allowUnparenthesizedNew||t.allowUnparenthesizedNew,n=S("new",D(e.callee,{precedence:B.New,allowIn:!0,allowCall:!1,allowUnparenthesizedNew:A&&!Q&&0===p})),!A||Q||p>0){for(n.push("("),u=0;p>u;++u)n.push(D(e.arguments[u],{precedence:B.Assignment,allowIn:!0,allowCall:!0})),p>u+1&&n.push(","+J);n.push(")")}n=I(n,B.New,r);break;case F.MemberExpression:n=[D(e.object,{precedence:B.Call,allowIn:!0,allowCall:C,allowUnparenthesizedNew:!1})],e.computed?(n.push("["),n.push(D(e.property,{precedence:B.Sequence,allowIn:!0,allowCall:C})),n.push("]")):(e.object.type===F.Literal&&"number"==typeof e.object.value&&(d=""+g(n),0>d.indexOf(".")&&!/[eExX]/.test(d)&&q.code.isDecimalDigit(d.charCodeAt(d.length-1))&&!(d.length>=2&&48===d.charCodeAt(0))&&n.push(".")),n.push("."),n.push(L(e.property))),n=I(n,B.Member,r);break;case F.UnaryExpression:d=D(e.argument,{precedence:B.Unary,allowIn:!0,allowCall:!0}),""===J?n=S(e.operator,d):(n=[e.operator],e.operator.length>2?n=S(n,d):(b=""+g(n),v=b.charCodeAt(b.length-1),w=(""+d).charCodeAt(0),(43===v||45===v)&&v===w||q.code.isIdentifierPart(v)&&q.code.isIdentifierPart(w)?(n.push(y()),n.push(d)):n.push(d))),n=I(n,B.Unary,r);break;case F.YieldExpression:n=e.delegate?"yield*":"yield",e.argument&&(n=S(n,D(e.argument,{precedence:B.Yield,allowIn:!0,allowCall:!0}))),n=I(n,B.Yield,r);break;case F.UpdateExpression:n=e.prefix?I([e.operator,D(e.argument,{precedence:B.Unary,allowIn:!0,allowCall:!0})],B.Unary,r):I([D(e.argument,{precedence:B.Postfix,allowIn:!0,allowCall:!0}),e.operator],B.Postfix,r);break;case F.FunctionExpression:O=e.generator&&!nt.moz.starlessGenerator,n=O?"function*":"function",n=e.id?[n,O?J:y(),L(e.id),R(e)]:[n+J,R(e)];break;case F.ArrayPattern:case F.ArrayExpression:if(!e.elements.length){n="[]";break}m=e.elements.length>1,n=["[",m?$:""],E(function(t){for(u=0,p=e.elements.length;p>u;++u)e.elements[u]?(n.push(m?t:""),n.push(D(e.elements[u],{precedence:B.Assignment,allowIn:!0,allowCall:!0}))):(m&&n.push(t),u+1===p&&n.push(",")),p>u+1&&n.push(","+(m?$:J))}),m&&!a(""+g(n))&&n.push($),n.push(m?G:""),n.push("]");break;case F.Property:"get"===e.kind||"set"===e.kind?n=[e.kind,y(),D(e.key,{precedence:B.Sequence,allowIn:!0,allowCall:!0}),R(e.value)]:e.shorthand?n=D(e.key,{precedence:B.Sequence,allowIn:!0,allowCall:!0}):e.method?(n=[],e.value.generator&&n.push("*"),n.push(D(e.key,{precedence:B.Sequence,allowIn:!0,allowCall:!0})),n.push(R(e.value))):n=[D(e.key,{precedence:B.Sequence,allowIn:!0,allowCall:!0}),":"+J,D(e.value,{precedence:B.Assignment,allowIn:!0,allowCall:!0})];break;case F.ObjectExpression:if(!e.properties.length){n="{}";break}if(m=e.properties.length>1,E(function(){d=D(e.properties[0],{precedence:B.Sequence,allowIn:!0,allowCall:!0,type:F.Property})}),!m&&!o(""+g(d))){n=["{",J,d,J,"}"];break}E(function(t){if(n=["{",$,t,d],m)for(n.push(","+$),u=1,p=e.properties.length;p>u;++u)n.push(t),n.push(D(e.properties[u],{precedence:B.Sequence,allowIn:!0,allowCall:!0,type:F.Property})),p>u+1&&n.push(","+$)}),a(""+g(n))||n.push($),n.push(G),n.push("}");break;case F.ObjectPattern:if(!e.properties.length){n="{}";break}if(m=!1,1===e.properties.length)_=e.properties[0],_.value.type!==F.Identifier&&(m=!0);else for(u=0,p=e.properties.length;p>u;++u)if(_=e.properties[u],!_.shorthand){m=!0;break}n=["{",m?$:""],E(function(t){for(u=0,p=e.properties.length;p>u;++u)n.push(m?t:""),n.push(D(e.properties[u],{precedence:B.Sequence,allowIn:!0,allowCall:!0})),p>u+1&&n.push(","+(m?$:J))}),m&&!a(""+g(n))&&n.push($),n.push(m?G:""),n.push("}");break;case F.ThisExpression:n="this";break;case F.Identifier:n=L(e);break;case F.Literal:if(e.hasOwnProperty("raw")&&rt)try{if(f=rt(e.raw).body[0].expression,f.type===F.Literal&&f.value===e.value){n=e.raw;break}}catch(N){}if(null===e.value){n="null";break}if("string"==typeof e.value){n=h(e.value);break}if("number"==typeof e.value){n=l(e.value);break}if("boolean"==typeof e.value){n=e.value?"true":"false";break}n=c(e.value);break;case F.GeneratorExpression:case F.ComprehensionExpression:n=i===F.GeneratorExpression?["("]:["["],nt.moz.comprehensionExpressionStartsWithAssignment&&(d=D(e.body,{precedence:B.Assignment,allowIn:!0,allowCall:!0}),n.push(d)),e.blocks&&E(function(){for(u=0,p=e.blocks.length;p>u;++u)d=D(e.blocks[u],{precedence:B.Sequence,allowIn:!0,allowCall:!0}),u>0||nt.moz.comprehensionExpressionStartsWithAssignment?n=S(n,d):n.push(d)}),e.filter&&(n=S(n,"if"+J),d=D(e.filter,{precedence:B.Sequence,allowIn:!0,allowCall:!0}),n=nt.moz.parenthesizedComprehensionBlock?S(n,["(",d,")"]):S(n,d)),nt.moz.comprehensionExpressionStartsWithAssignment||(d=D(e.body,{precedence:B.Assignment,allowIn:!0,allowCall:!0}),n=S(n,d)),n.push(i===F.GeneratorExpression?")":"]");break;case F.ComprehensionBlock:d=e.left.type===F.VariableDeclaration?[e.left.kind,y(),P(e.left.declarations[0],{allowIn:!1})]:D(e.left,{precedence:B.Call,allowIn:!0,allowCall:!0}),d=S(d,e.of?"of":"in"),d=S(d,D(e.right,{precedence:B.Sequence,allowIn:!0,allowCall:!0})),n=nt.moz.parenthesizedComprehensionBlock?["for"+J+"(",d,")"]:S("for"+J,d);break;default:throw Error("Unknown expression type: "+e.type)}return g(n,e)}function P(e,t){var n,r,i,o,s,l,u,c,p,f;switch(s=!0,p=";",l=!1,u=!1,t&&(s=void 0===t.allowIn||t.allowIn,Z||t.semicolonOptional!==!0||(p=""),l=t.functionBody,u=t.directiveContext),e.type){case F.BlockStatement:i=["{",$],E(function(){for(n=0,r=e.body.length;r>n;++n)c=v(P(e.body[n],{semicolonOptional:n===r-1,directiveContext:l})),i.push(c),a(""+g(c))||i.push($)}),i.push(v("}"));break;case F.BreakStatement:i=e.label?"break "+e.label.name+p:"break"+p;break;case F.ContinueStatement:i=e.label?"continue "+e.label.name+p:"continue"+p;break;case F.DirectiveStatement:i=e.raw?e.raw+p:d(e.directive)+p;break;case F.DoWhileStatement:i=S("do",A(e.body)),i=_(e.body,i),i=S(i,["while"+J+"(",D(e.test,{precedence:B.Sequence,allowIn:!0,allowCall:!0}),")"+p]);break;case F.CatchClause:E(function(){var t;i=["catch"+J+"(",D(e.param,{precedence:B.Sequence,allowIn:!0,allowCall:!0}),")"],e.guard&&(t=D(e.guard,{precedence:B.Sequence,allowIn:!0,allowCall:!0}),i.splice(2,0," if ",t))}),i.push(A(e.body));break;case F.DebuggerStatement:i="debugger"+p;break;case F.EmptyStatement:i=";";break;case F.ExportDeclaration:if(i="export ",e.declaration){i=[i,P(e.declaration,{semicolonOptional:""===p})];break}break;case F.ExpressionStatement:i=[D(e.expression,{precedence:B.Sequence,allowIn:!0,allowCall:!0})],c=""+g(i),"{"===c.charAt(0)||"function"===c.slice(0,8)&&"* (".indexOf(c.charAt(8))>=0||tt&&u&&e.expression.type===F.Literal&&"string"==typeof e.expression.value?i=["(",i,")"+p]:i.push(p);break;case F.VariableDeclarator:i=e.init?[D(e.id,{precedence:B.Assignment,allowIn:s,allowCall:!0}),J,"=",J,D(e.init,{precedence:B.Assignment,allowIn:s,allowCall:!0})]:O(e.id,{precedence:B.Assignment,allowIn:s});break;case F.VariableDeclaration:i=[e.kind],1===e.declarations.length&&e.declarations[0].init&&e.declarations[0].init.type===F.FunctionExpression?(i.push(y()),i.push(P(e.declarations[0],{allowIn:s}))):E(function(){for(o=e.declarations[0],nt.comment&&o.leadingComments?(i.push("\n"),i.push(v(P(o,{allowIn:s})))):(i.push(y()),i.push(P(o,{allowIn:s}))),n=1,r=e.declarations.length;r>n;++n)o=e.declarations[n],nt.comment&&o.leadingComments?(i.push(","+$),i.push(v(P(o,{allowIn:s})))):(i.push(","+J),i.push(P(o,{allowIn:s})))}),i.push(p);break;case F.ThrowStatement:i=[S("throw",D(e.argument,{precedence:B.Sequence,allowIn:!0,allowCall:!0})),p];break;case F.TryStatement:if(i=["try",A(e.block)],i=_(e.block,i),e.handlers)for(n=0,r=e.handlers.length;r>n;++n)i=S(i,P(e.handlers[n])),(e.finalizer||n+1!==r)&&(i=_(e.handlers[n].body,i));else{for(e.guardedHandlers=e.guardedHandlers||[],n=0,r=e.guardedHandlers.length;r>n;++n)i=S(i,P(e.guardedHandlers[n])),(e.finalizer||n+1!==r)&&(i=_(e.guardedHandlers[n].body,i));if(e.handler)if(W(e.handler))for(n=0,r=e.handler.length;r>n;++n)i=S(i,P(e.handler[n])),(e.finalizer||n+1!==r)&&(i=_(e.handler[n].body,i));else i=S(i,P(e.handler)),e.finalizer&&(i=_(e.handler.body,i)) | |
}e.finalizer&&(i=S(i,["finally",A(e.finalizer)]));break;case F.SwitchStatement:if(E(function(){i=["switch"+J+"(",D(e.discriminant,{precedence:B.Sequence,allowIn:!0,allowCall:!0}),")"+J+"{"+$]}),e.cases)for(n=0,r=e.cases.length;r>n;++n)c=v(P(e.cases[n],{semicolonOptional:n===r-1})),i.push(c),a(""+g(c))||i.push($);i.push(v("}"));break;case F.SwitchCase:E(function(){for(i=e.test?[S("case",D(e.test,{precedence:B.Sequence,allowIn:!0,allowCall:!0})),":"]:["default:"],n=0,r=e.consequent.length,r&&e.consequent[0].type===F.BlockStatement&&(c=A(e.consequent[0]),i.push(c),n=1),n===r||a(""+g(i))||i.push($);r>n;++n)c=v(P(e.consequent[n],{semicolonOptional:n===r-1&&""===p})),i.push(c),n+1===r||a(""+g(c))||i.push($)});break;case F.IfStatement:E(function(){i=["if"+J+"(",D(e.test,{precedence:B.Sequence,allowIn:!0,allowCall:!0}),")"]}),e.alternate?(i.push(A(e.consequent)),i=_(e.consequent,i),i=e.alternate.type===F.IfStatement?S(i,["else ",P(e.alternate,{semicolonOptional:""===p})]):S(i,S("else",A(e.alternate,""===p)))):i.push(A(e.consequent,""===p));break;case F.ForStatement:E(function(){i=["for"+J+"("],e.init?e.init.type===F.VariableDeclaration?i.push(P(e.init,{allowIn:!1})):(i.push(D(e.init,{precedence:B.Sequence,allowIn:!1,allowCall:!0})),i.push(";")):i.push(";"),e.test?(i.push(J),i.push(D(e.test,{precedence:B.Sequence,allowIn:!0,allowCall:!0})),i.push(";")):i.push(";"),e.update?(i.push(J),i.push(D(e.update,{precedence:B.Sequence,allowIn:!0,allowCall:!0})),i.push(")")):i.push(")")}),i.push(A(e.body,""===p));break;case F.ForInStatement:i=N("in",e,""===p);break;case F.ForOfStatement:i=N("of",e,""===p);break;case F.LabeledStatement:i=[e.label.name+":",A(e.body,""===p)];break;case F.Program:for(r=e.body.length,i=[et&&r>0?"\n":""],n=0;r>n;++n)c=v(P(e.body[n],{semicolonOptional:!et&&n===r-1,directiveContext:!0})),i.push(c),r>n+1&&!a(""+g(c))&&i.push($);break;case F.FunctionDeclaration:f=e.generator&&!nt.moz.starlessGenerator,i=[f?"function*":"function",f?J:y(),L(e.id),R(e)];break;case F.ReturnStatement:i=e.argument?[S("return",D(e.argument,{precedence:B.Sequence,allowIn:!0,allowCall:!0})),p]:["return"+p];break;case F.WhileStatement:E(function(){i=["while"+J+"(",D(e.test,{precedence:B.Sequence,allowIn:!0,allowCall:!0}),")"]}),i.push(A(e.body,""===p));break;case F.WithStatement:E(function(){i=["with"+J+"(",D(e.object,{precedence:B.Sequence,allowIn:!0,allowCall:!0}),")"]}),i.push(A(e.body,""===p));break;default:throw Error("Unknown statement type: "+e.type)}return nt.comment&&(i=C(e,i)),c=""+g(i),e.type!==F.Program||et||""!==$||"\n"!==c.charAt(c.length-1)||(i=it?g(i).replaceRight(/\s+$/,""):c.replace(/\s+$/,"")),g(i,e)}function T(o,a){var l,u,c=t();switch(null!=a?("string"==typeof a.indent&&(c.format.indent.style=a.indent),"number"==typeof a.base&&(c.format.indent.base=a.base),a=s(c,a),H=a.format.indent.style,G="string"==typeof a.base?a.base:i(H,a.format.indent.base)):(a=c,H=a.format.indent.style,G=i(H,a.format.indent.base)),V=a.format.json,z=a.format.renumber,Y=V?!1:a.format.hexadecimal,K=V?"double":a.format.quotes,X=a.format.escapeless,$=a.format.newline,J=a.format.space,a.format.compact&&($=J=H=G=""),Q=a.format.parentheses,Z=a.format.semicolons,et=a.format.safeConcatenation,tt=a.directive,rt=V?null:a.parse,it=a.sourceMap,nt=a,it&&(U=n.browser?r.sourceMap.SourceNode:e("source-map").SourceNode),o.type){case F.BlockStatement:case F.BreakStatement:case F.CatchClause:case F.ContinueStatement:case F.DirectiveStatement:case F.DoWhileStatement:case F.DebuggerStatement:case F.EmptyStatement:case F.ExpressionStatement:case F.ForStatement:case F.ForInStatement:case F.ForOfStatement:case F.FunctionDeclaration:case F.IfStatement:case F.LabeledStatement:case F.Program:case F.ReturnStatement:case F.SwitchStatement:case F.SwitchCase:case F.ThrowStatement:case F.TryStatement:case F.VariableDeclaration:case F.VariableDeclarator:case F.WhileStatement:case F.WithStatement:l=P(o);break;case F.AssignmentExpression:case F.ArrayExpression:case F.ArrayPattern:case F.BinaryExpression:case F.CallExpression:case F.ConditionalExpression:case F.FunctionExpression:case F.Identifier:case F.Literal:case F.LogicalExpression:case F.MemberExpression:case F.NewExpression:case F.ObjectExpression:case F.ObjectPattern:case F.Property:case F.SequenceExpression:case F.ThisExpression:case F.UnaryExpression:case F.UpdateExpression:case F.YieldExpression:l=D(o,{precedence:B.Sequence,allowIn:!0,allowCall:!0});break;default:throw Error("Unknown node type: "+o.type)}return it?(u=l.toStringWithSourceMap({file:a.file,sourceRoot:a.sourceMapRoot}),a.sourceContent&&u.map.setSourceContent(a.sourceMap,a.sourceContent),a.sourceMapWithCode?u:""+u.map):""+l}var F,B,M,U,j,q,W,G,H,V,z,Y,K,X,$,J,Q,Z,et,tt,nt,rt,it,ot,at;j=e("estraverse"),q=e("esutils"),F={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportDeclaration:"ExportDeclaration",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},B={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,LogicalOR:3,LogicalAND:4,BitwiseOR:5,BitwiseXOR:6,BitwiseAND:7,Equality:8,Relational:9,BitwiseSHIFT:10,Additive:11,Multiplicative:12,Unary:13,Postfix:14,Call:15,New:16,Member:17,Primary:18},M={"||":B.LogicalOR,"&&":B.LogicalAND,"|":B.BitwiseOR,"^":B.BitwiseXOR,"&":B.BitwiseAND,"==":B.Equality,"!=":B.Equality,"===":B.Equality,"!==":B.Equality,is:B.Equality,isnt:B.Equality,"<":B.Relational,">":B.Relational,"<=":B.Relational,">=":B.Relational,"in":B.Relational,"instanceof":B.Relational,"<<":B.BitwiseSHIFT,">>":B.BitwiseSHIFT,">>>":B.BitwiseSHIFT,"+":B.Additive,"-":B.Additive,"*":B.Multiplicative,"%":B.Multiplicative,"/":B.Multiplicative},W=Array.isArray,W||(W=function W(e){return"[object Array]"===Object.prototype.toString.call(e)}),ot={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},at=t().format,n.version=e("./package.json").version,n.generate=T,n.attachComments=j.attachComments,n.browser=!1,n.FORMAT_MINIFY=ot,n.FORMAT_DEFAULTS=at})()},{"./package.json":17,estraverse:3,esutils:6,"source-map":7}],3:[function(e,t,n){(function(e,t){"use strict";"function"==typeof define&&define.amd?define(["exports"],t):n!==void 0?t(n):t(e.estraverse={})})(this,function(e){"use strict";function t(){}function n(e){var t,r,i={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],i[t]="object"==typeof r&&null!==r?n(r):r);return i}function r(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function i(e,t){var n,r,i,o;for(r=e.length,i=0;r;)n=r>>>1,o=i+n,t(e[o])?r=n:(i=o+1,r-=n+1);return i}function o(e,t){var n,r,i,o;for(r=e.length,i=0;r;)n=r>>>1,o=i+n,t(e[o])?(i=o+1,r-=n+1):r=n;return i}function a(e,t){this.parent=e,this.key=t}function s(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function l(){}function u(e,t){var n=new l;return n.traverse(e,t)}function c(e,t){var n=new l;return n.replace(e,t)}function p(e,t){var n;return n=i(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),n-=1,n>=0&&(e.extendedRange[0]=t[n].range[1]),e}function f(e,t,r){var i,o,a,s,l=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(a=0,o=t.length;o>a;a+=1)i=n(t[a]),i.extendedRange=[0,e.range[0]],l.push(i);e.leadingComments=l}return e}for(a=0,o=t.length;o>a;a+=1)l.push(p(n(t[a]),r));return s=0,u(e,{enter:function(e){for(var t;l.length>s&&(t=l[s],!(t.extendedRange[1]>e.range[0]));)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?m.Break:l[s].extendedRange[0]>e.range[1]?m.Skip:void 0}}),s=0,u(e,{leave:function(e){for(var t;l.length>s&&(t=l[s],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?m.Break:l[s].extendedRange[0]>e.range[1]?m.Skip:void 0}}),e}var d,h,m,g,y,S;d={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},h=Array.isArray,h||(h=function h(e){return"[object Array]"===Object.prototype.toString.call(e)}),t(r),t(o),g={AssignmentExpression:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","defaults","rest","body"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","body","superClass"],ClassExpression:["id","body","superClass"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],FunctionDeclaration:["id","params","defaults","rest","body"],FunctionExpression:["id","params","defaults","rest","body"],Identifier:[],IfStatement:["test","consequent","alternate"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handlers","handler","guardedHandlers","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},y={},S={},m={Break:y,Skip:S},a.prototype.replace=function c(e){this.parent[this.key]=e},l.prototype.path=function(){function e(e,t){if(h(t))for(r=0,i=t.length;i>r;++r)e.push(t[r]);else e.push(t)}var t,n,r,i,o,a;if(!this.__current.path)return null;for(o=[],t=2,n=this.__leavelist.length;n>t;++t)a=this.__leavelist[t],e(o,a.path);return e(o,this.__current.path),o},l.prototype.parents=function(){var e,t,n;for(n=[],e=1,t=this.__leavelist.length;t>e;++e)n.push(this.__leavelist[e].node);return n},l.prototype.current=function(){return this.__current.node},l.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},l.prototype.notify=function(e){this.__state=e},l.prototype.skip=function(){this.notify(S)},l.prototype["break"]=function(){this.notify(y)},l.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null},l.prototype.traverse=function u(e,t){var n,r,i,o,a,l,u,c,p,f,m,v;for(this.__initialize(e,t),v={},n=this.__worklist,r=this.__leavelist,n.push(new s(e,null,null,null)),r.push(new s(null,null,null,null));n.length;)if(i=n.pop(),i!==v){if(i.node){if(l=this.__execute(t.enter,i),this.__state===y||l===y)return;if(n.push(v),r.push(i),this.__state===S||l===S)continue;for(o=i.node,a=i.wrap||o.type,f=g[a],c=f.length;(c-=1)>=0;)if(u=f[c],m=o[u])if(h(m))for(p=m.length;(p-=1)>=0;)m[p]&&(i=a!==d.ObjectExpression&&a!==d.ObjectPattern||"properties"!==f[c]?new s(m[p],[u,p],null,null):new s(m[p],[u,p],"Property",null),n.push(i));else n.push(new s(m,u,null,null))}}else if(i=r.pop(),l=this.__execute(t.leave,i),this.__state===y||l===y)return},l.prototype.replace=function c(e,t){var n,r,i,o,l,u,c,p,f,m,v,E,b;for(this.__initialize(e,t),v={},n=this.__worklist,r=this.__leavelist,E={root:e},u=new s(e,null,null,new a(E,"root")),n.push(u),r.push(u);n.length;)if(u=n.pop(),u!==v){if(l=this.__execute(t.enter,u),void 0!==l&&l!==y&&l!==S&&(u.ref.replace(l),u.node=l),this.__state===y||l===y)return E.root;if(i=u.node,i&&(n.push(v),r.push(u),this.__state!==S&&l!==S))for(o=u.wrap||i.type,f=g[o],c=f.length;(c-=1)>=0;)if(b=f[c],m=i[b])if(h(m))for(p=m.length;(p-=1)>=0;)m[p]&&(u=o===d.ObjectExpression&&"properties"===f[c]?new s(m[p],[b,p],"Property",new a(m,p)):new s(m[p],[b,p],null,new a(m,p)),n.push(u));else n.push(new s(m,b,null,new a(i,b)))}else if(u=r.pop(),l=this.__execute(t.leave,u),void 0!==l&&l!==y&&l!==S&&u.ref.replace(l),this.__state===y||l===y)return E.root;return E.root},e.version="1.3.3-dev",e.Syntax=d,e.traverse=u,e.replace=c,e.attachComments=f,e.VisitorKeys=g,e.VisitorOption=m,e.Controller=l})},{}],4:[function(e,t){(function(){"use strict";function e(e){return e>=48&&57>=e}function n(t){return e(t)||t>=97&&102>=t||t>=65&&70>=t}function r(e){return e>=48&&55>=e}function i(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function o(e){return 10===e||13===e||8232===e||8233===e}function a(e){return 36===e||95===e||e>=65&&90>=e||e>=97&&122>=e||92===e||e>=128&&l.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function s(e){return 36===e||95===e||e>=65&&90>=e||e>=97&&122>=e||e>=48&&57>=e||92===e||e>=128&&l.NonAsciiIdentifierPart.test(String.fromCharCode(e))}var l;l={NonAsciiIdentifierStart:RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},t.exports={isDecimalDigit:e,isHexDigit:n,isOctalDigit:r,isWhiteSpace:i,isLineTerminator:o,isIdentifierStart:a,isIdentifierPart:s}})()},{}],5:[function(e,t){(function(){"use strict";function n(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(e,t){return t||"yield"!==e?i(e,t):!1}function i(e,t){if(t&&n(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e){return"eval"===e||"arguments"===e}function a(e){var t,n,r;if(0===e.length)return!1;if(r=e.charCodeAt(0),!s.isIdentifierStart(r)||92===r)return!1;for(t=1,n=e.length;n>t;++t)if(r=e.charCodeAt(t),!s.isIdentifierPart(r)||92===r)return!1;return!0}var s=e("./code");t.exports={isKeywordES5:r,isKeywordES6:i,isRestrictedWord:o,isIdentifierName:a}})()},{"./code":4}],6:[function(e,t,n){(function(){"use strict";n.code=e("./code"),n.keyword=e("./keyword")})()},{"./code":4,"./keyword":5}],7:[function(e,t,n){n.SourceMapGenerator=e("./source-map/source-map-generator").SourceMapGenerator,n.SourceMapConsumer=e("./source-map/source-map-consumer").SourceMapConsumer,n.SourceNode=e("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":12,"./source-map/source-map-generator":13,"./source-map/source-node":14}],8:[function(e,t){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t){function n(){this._array=[],this._set={}}var r=e("./util");n.fromArray=function(e,t){for(var r=new n,i=0,o=e.length;o>i;i++)r.add(e[i],t);return r},n.prototype.add=function(e,t){var n=this.has(e),i=this._array.length;(!n||t)&&this._array.push(e),n||(this._set[r.toSetString(e)]=i)},n.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,r.toSetString(e))},n.prototype.indexOf=function(e){if(this.has(e))return this._set[r.toSetString(e)];throw Error('"'+e+'" is not in the set.')},n.prototype.at=function(e){if(e>=0&&this._array.length>e)return this._array[e];throw Error("No element indexed by "+e)},n.prototype.toArray=function(){return this._array.slice()},t.ArraySet=n})},{"./util":15,amdefine:16}],9:[function(e,t){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t){function n(e){return 0>e?(-e<<1)+1:(e<<1)+0}function r(e){var t=1===(1&e),n=e>>1;return t?-n:n}var i=e("./base64"),o=5,a=1<<o,s=a-1,l=a;t.encode=function(e){var t,r="",a=n(e);do t=a&s,a>>>=o,a>0&&(t|=l),r+=i.encode(t);while(a>0);return r},t.decode=function(e){var t,n,a=0,u=e.length,c=0,p=0;do{if(a>=u)throw Error("Expected more digits in base 64 VLQ value.");n=i.decode(e.charAt(a++)),t=!!(n&l),n&=s,c+=n<<p,p+=o}while(t);return{value:r(c),rest:e.slice(a)}}})},{"./base64":10,amdefine:16}],10:[function(e,t){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t){var n={},r={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,t){n[e]=t,r[t]=e}),t.encode=function(e){if(e in r)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){if(e in n)return n[e];throw new TypeError("Not a valid base 64 digit: "+e)}})},{amdefine:16}],11:[function(e,t){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t){function n(e,t,r,i,o){var a=Math.floor((t-e)/2)+e,s=o(r,i[a],!0);return 0===s?i[a]:s>0?t-a>1?n(a,t,r,i,o):i[a]:a-e>1?n(e,a,r,i,o):0>e?null:i[e]}t.search=function(e,t,r){return t.length>0?n(-1,t.length,e,t,r):null}})},{amdefine:16}],12:[function(e,t){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t){function n(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),i=r.getArg(t,"sources"),a=r.getArg(t,"names",[]),s=r.getArg(t,"sourceRoot",null),l=r.getArg(t,"sourcesContent",null),u=r.getArg(t,"mappings"),c=r.getArg(t,"file",null);if(n!=this._version)throw Error("Unsupported version: "+n);this._names=o.fromArray(a,!0),this._sources=o.fromArray(i,!0),this.sourceRoot=s,this.sourcesContent=l,this._mappings=u,this.file=c}var r=e("./util"),i=e("./binary-search"),o=e("./array-set").ArraySet,a=e("./base64-vlq");n.fromSourceMap=function(e){var t=Object.create(n.prototype);return t._names=o.fromArray(e._names.toArray(),!0),t._sources=o.fromArray(e._sources.toArray(),!0),t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file,t.__generatedMappings=e._mappings.slice().sort(r.compareByGeneratedPositions),t.__originalMappings=e._mappings.slice().sort(r.compareByOriginalPositions),t},n.prototype._version=3,Object.defineProperty(n.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return this.sourceRoot?r.join(this.sourceRoot,e):e},this)}}),n.prototype.__generatedMappings=null,Object.defineProperty(n.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__generatedMappings}}),n.prototype.__originalMappings=null,Object.defineProperty(n.prototype,"_originalMappings",{get:function(){return this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__originalMappings}}),n.prototype._parseMappings=function(e){for(var t,n,i=1,o=0,s=0,l=0,u=0,c=0,p=/^[,;]/,f=e;f.length>0;)if(";"===f.charAt(0))i++,f=f.slice(1),o=0;else if(","===f.charAt(0))f=f.slice(1);else{if(t={},t.generatedLine=i,n=a.decode(f),t.generatedColumn=o+n.value,o=t.generatedColumn,f=n.rest,f.length>0&&!p.test(f.charAt(0))){if(n=a.decode(f),t.source=this._sources.at(u+n.value),u+=n.value,f=n.rest,0===f.length||p.test(f.charAt(0)))throw Error("Found a source, but no line and column");if(n=a.decode(f),t.originalLine=s+n.value,s=t.originalLine,t.originalLine+=1,f=n.rest,0===f.length||p.test(f.charAt(0)))throw Error("Found a source and line, but no column");n=a.decode(f),t.originalColumn=l+n.value,l=t.originalColumn,f=n.rest,f.length>0&&!p.test(f.charAt(0))&&(n=a.decode(f),t.name=this._names.at(c+n.value),c+=n.value,f=n.rest)}this.__generatedMappings.push(t),"number"==typeof t.originalLine&&this.__originalMappings.push(t)}this.__originalMappings.sort(r.compareByOriginalPositions)},n.prototype._findMapping=function(e,t,n,r,o){if(0>=e[n])throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(0>e[r])throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,o)},n.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositions);if(n){var i=r.getArg(n,"source",null);return i&&this.sourceRoot&&(i=r.join(this.sourceRoot,i)),{source:i,line:r.getArg(n,"originalLine",null),column:r.getArg(n,"originalColumn",null),name:r.getArg(n,"name",null)}}return{source:null,line:null,column:null,name:null}},n.prototype.sourceContentFor=function(e){if(!this.sourcesContent)return null;if(this.sourceRoot&&(e=r.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var t;if(this.sourceRoot&&(t=r.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==t.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!t.path||"/"==t.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}throw Error('"'+e+'" is not in the SourceMap.')},n.prototype.generatedPositionFor=function(e){var t={source:r.getArg(e,"source"),originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")};this.sourceRoot&&(t.source=r.relative(this.sourceRoot,t.source));var n=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions);return n?{line:r.getArg(n,"generatedLine",null),column:r.getArg(n,"generatedColumn",null)}:{line:null,column:null}},n.GENERATED_ORDER=1,n.ORIGINAL_ORDER=2,n.prototype.eachMapping=function(e,t,i){var o,a=t||null,s=i||n.GENERATED_ORDER;switch(s){case n.GENERATED_ORDER:o=this._generatedMappings;break;case n.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var l=this.sourceRoot;o.map(function(e){var t=e.source;return t&&l&&(t=r.join(l,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name}}).forEach(e,a)},t.SourceMapConsumer=n})},{"./array-set":8,"./base64-vlq":9,"./binary-search":11,"./util":15,amdefine:16}],13:[function(e,t){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t){function n(e){this._file=i.getArg(e,"file"),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._sources=new o,this._names=new o,this._mappings=[],this._sourcesContents=null}var r=e("./base64-vlq"),i=e("./util"),o=e("./array-set").ArraySet;n.prototype._version=3,n.fromSourceMap=function(e){var t=e.sourceRoot,r=new n({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source&&(n.source=e.source,t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},e.name&&(n.name=e.name)),r.addMapping(n)}),e.sources.forEach(function(t){var n=e.sourceContentFor(t);n&&r.setSourceContent(t,n)}),r},n.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._validateMapping(t,n,r,o),r&&!this._sources.has(r)&&this._sources.add(r),o&&!this._names.has(o)&&this._names.add(o),this._mappings.push({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o})},n.prototype.setSourceContent=function(e,t){var n=e;this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!==t?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[i.toSetString(n)]=t):(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},n.prototype.applySourceMap=function(e,t){t||(t=e.file);var n=this._sourceRoot;n&&(t=i.relative(n,t));var r=new o,a=new o;this._mappings.forEach(function(o){if(o.source===t&&o.originalLine){var s=e.originalPositionFor({line:o.originalLine,column:o.originalColumn});null!==s.source&&(o.source=n?i.relative(n,s.source):s.source,o.originalLine=s.line,o.originalColumn=s.column,null!==s.name&&null!==o.name&&(o.name=s.name))}var l=o.source;l&&!r.has(l)&&r.add(l);var u=o.name;u&&!a.has(u)&&a.add(u)},this),this._sources=r,this._names=a,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r&&(n&&(t=i.relative(n,t)),this.setSourceContent(t,r))},this)},n.prototype._validateMapping=function(e,t,n,r){if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!r||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&&n))throw Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,orginal:t,name:r}))},n.prototype._serializeMappings=function(){var e,t=0,n=1,o=0,a=0,s=0,l=0,u="";this._mappings.sort(i.compareByGeneratedPositions);for(var c=0,p=this._mappings.length;p>c;c++){if(e=this._mappings[c],e.generatedLine!==n)for(t=0;e.generatedLine!==n;)u+=";",n++;else if(c>0){if(!i.compareByGeneratedPositions(e,this._mappings[c-1]))continue;u+=","}u+=r.encode(e.generatedColumn-t),t=e.generatedColumn,e.source&&(u+=r.encode(this._sources.indexOf(e.source)-l),l=this._sources.indexOf(e.source),u+=r.encode(e.originalLine-1-a),a=e.originalLine-1,u+=r.encode(e.originalColumn-o),o=e.originalColumn,e.name&&(u+=r.encode(this._names.indexOf(e.name)-s),s=this._names.indexOf(e.name)))}return u},n.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},n.prototype.toJSON=function(){var e={version:this._version,file:this._file,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return 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)},t.SourceMapGenerator=n})},{"./array-set":8,"./base64-vlq":9,"./util":15,amdefine:16}],14:[function(e,t){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t){function n(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=void 0===e?null:e,this.column=void 0===t?null:t,this.source=void 0===n?null:n,this.name=void 0===i?null:i,null!=r&&this.add(r)}var r=e("./source-map-generator").SourceMapGenerator,i=e("./util");n.fromStringWithSourceMap=function(e,t){function r(e,t){null===e||void 0===e.source?i.add(t):i.add(new n(e.originalLine,e.originalColumn,e.source,t,e.name)) | |
}var i=new n,o=e.split("\n"),a=1,s=0,l=null;return t.eachMapping(function(e){if(null===l){for(;e.generatedLine>a;)i.add(o.shift()+"\n"),a++;if(e.generatedColumn>s){var t=o[0];i.add(t.substr(0,e.generatedColumn)),o[0]=t.substr(e.generatedColumn),s=e.generatedColumn}}else if(e.generatedLine>a){var n="";do n+=o.shift()+"\n",a++,s=0;while(e.generatedLine>a);if(e.generatedColumn>s){var t=o[0];n+=t.substr(0,e.generatedColumn),o[0]=t.substr(e.generatedColumn),s=e.generatedColumn}r(l,n)}else{var t=o[0],n=t.substr(0,e.generatedColumn-s);o[0]=t.substr(e.generatedColumn-s),s=e.generatedColumn,r(l,n)}l=e},this),r(l,o.join("\n")),t.sources.forEach(function(e){var n=t.sourceContentFor(e);n&&i.setSourceContent(e,n)}),i},n.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!(e instanceof n||"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 instanceof n||"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,i=this.children.length;i>r;r++)t=this.children[r],t instanceof n?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,n,r=this.children.length;if(r>0){for(t=[],n=0;r-1>n;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},n.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r instanceof n?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[i.toSetString(e)]=t},n.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;r>t;t++)this.children[t]instanceof n&&this.children[t].walkSourceContents(e);for(var o=Object.keys(this.sourceContents),t=0,r=o.length;r>t;t++)e(i.fromSetString(o[t]),this.sourceContents[o[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},n=new r(e),i=!1,o=null,a=null,s=null,l=null;return this.walk(function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?((o!==r.source||a!==r.line||s!==r.column||l!==r.name)&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),o=r.source,a=r.line,s=r.column,l=r.name,i=!0):i&&(n.addMapping({generated:{line:t.line,column:t.column}}),o=null,i=!1),e.split("").forEach(function(e){"\n"===e?(t.line++,t.column=0):t.column++})}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:t.code,map:n}},t.SourceNode=n})},{"./source-map-generator":13,"./util":15,amdefine:16}],15:[function(e,t){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t){function n(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw Error('"'+t+'" is a required argument.')}function r(e){var t=e.match(f);return t?{scheme:t[1],auth:t[3],host:t[4],port:t[6],path:t[7]}:null}function i(e){var t=e.scheme+"://";return e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e,t){var n;return t.match(f)||t.match(d)?t:"/"===t.charAt(0)&&(n=r(e))?(n.path=t,i(n)):e.replace(/\/$/,"")+"/"+t}function a(e){return"$"+e}function s(e){return e.substr(1)}function l(e,t){e=e.replace(/\/$/,"");var n=r(e);return"/"==t.charAt(0)&&n&&"/"==n.path?t.slice(1):0===t.indexOf(e+"/")?t.substr(e.length+1):t}function u(e,t){var n=e||"",r=t||"";return(n>r)-(r>n)}function c(e,t,n){var r;return(r=u(e.source,t.source))?r:(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,r||n?r:(r=u(e.name,t.name))?r:(r=e.generatedLine-t.generatedLine,r?r:e.generatedColumn-t.generatedColumn))}function p(e,t,n){var r;return(r=e.generatedLine-t.generatedLine)?r:(r=e.generatedColumn-t.generatedColumn,r||n?r:(r=u(e.source,t.source))?r:(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,r?r:u(e.name,t.name)))}t.getArg=n;var f=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/,d=/^data:.+\,.+/;t.urlParse=r,t.urlGenerate=i,t.join=o,t.toSetString=a,t.fromSetString=s,t.relative=l,t.compareByOriginalPositions=c,t.compareByGeneratedPositions=p})},{amdefine:16}],16:[function(e,t){function n(t,n){"use strict";function o(e){var t,n;for(t=0;e[t];t+=1)if(n=e[t],"."===n)e.splice(t,1),t-=1;else if(".."===n){if(1===t&&(".."===e[2]||".."===e[0]))break;t>0&&(e.splice(t-1,2),t-=2)}}function a(e,t){var n;return e&&"."===e.charAt(0)&&t&&(n=t.split("/"),n=n.slice(0,n.length-1),n=n.concat(e.split("/")),o(n),e=n.join("/")),e}function s(e){return function(t){return a(t,e)}}function l(e){function t(t){h[e]=t}return t.fromText=function(){throw Error("amdefine does not implement load.fromText")},t}function u(e,r,o){var a,s,l,u;if(e)s=h[e]={},l={id:e,uri:i,exports:s},a=p(n,s,l,e);else{if(m)throw Error("amdefine with no module ID cannot be called more than once per file.");m=!0,s=t.exports,l=t,a=p(n,s,l,t.id)}r&&(r=r.map(function(e){return a(e)})),u="function"==typeof o?o.apply(l.exports,r):o,void 0!==u&&(l.exports=u,e&&(h[e]=l.exports))}function c(e,t,n){Array.isArray(e)?(n=t,t=e,e=void 0):"string"!=typeof e&&(n=e,e=t=void 0),t&&!Array.isArray(t)&&(n=t,t=void 0),t||(t=["require","exports","module"]),e?d[e]=[e,t,n]:u(e,t,n)}var p,f,d={},h={},m=!1,g=e("path");return p=function(e,t,n,i){function o(o,a){return"string"==typeof o?f(e,t,n,o,i):(o=o.map(function(r){return f(e,t,n,r,i)}),r.nextTick(function(){a.apply(null,o)}),void 0)}return o.toUrl=function(e){return 0===e.indexOf(".")?a(e,g.dirname(n.filename)):e},o},n=n||function(){return t.require.apply(t,arguments)},f=function(e,t,n,r,i){var o,c,m=r.indexOf("!"),g=r;if(-1===m){if(r=a(r,i),"require"===r)return p(e,t,n,i);if("exports"===r)return t;if("module"===r)return n;if(h.hasOwnProperty(r))return h[r];if(d[r])return u.apply(null,d[r]),h[r];if(e)return e(g);throw Error("No module with ID: "+r)}return o=r.substring(0,m),r=r.substring(m+1,r.length),c=f(e,t,n,o,i),r=c.normalize?c.normalize(r,s(i)):a(r,i),h[r]?h[r]:(c.load(r,p(e,t,n,i),l(r),{}),h[r])},c.require=function(e){return h[e]?h[e]:d[e]?(u.apply(null,d[e]),h[e]):void 0},c.amd={},c}var r=e("__browserify_process"),i="/node_modules/source-map/node_modules/amdefine/amdefine.js";t.exports=n},{__browserify_process:18,path:19}],17:[function(e,t){t.exports={name:"escodegen",description:"ECMAScript code generator",homepage:"http://github.com/Constellation/escodegen",main:"escodegen.js",bin:{esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},version:"1.2.0",engines:{node:">=0.4.0"},maintainers:[{name:"Yusuke Suzuki",email:"[email protected]",web:"http://github.com/Constellation"}],repository:{type:"git",url:"http://github.com/Constellation/escodegen.git"},dependencies:{esprima:"~1.0.4",estraverse:"~1.5.0",esutils:"~1.0.0"},optionalDependencies:{"source-map":"~0.1.30"},devDependencies:{"esprima-moz":"*",q:"*",bower:"*",semver:"*",chai:"~1.7.2",gulp:"~3.5.0","gulp-mocha":"~0.4.1","gulp-eslint":"~0.1.2","jshint-stylish":"~0.1.5","gulp-jshint":"~1.4.0","commonjs-everywhere":"~0.9.6"},licenses:[{type:"BSD",url:"http://github.com/Constellation/escodegen/raw/master/LICENSE.BSD"}],scripts:{},readme:"\n### Escodegen [![Build Status](https://secure.travis-ci.org/Constellation/escodegen.png)](http://travis-ci.org/Constellation/escodegen) [![Build Status](https://drone.io/github.com/Constellation/escodegen/status.png)](https://drone.io/github.com/Constellation/escodegen/latest)\n\nEscodegen ([escodegen](http://github.com/Constellation/escodegen)) is\n[ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)\n(also popularly known as [JavaScript](http://en.wikipedia.org/wiki/JavaScript>JavaScript))\ncode generator from [Parser API](https://developer.mozilla.org/en/SpiderMonkey/Parser_API) AST.\nSee [online generator demo](http://constellation.github.com/escodegen/demo/index.html).\n\n\n### Install\n\nEscodegen can be used in a web browser:\n\n <script src=\"escodegen.browser.js\"></script>\n\nescodegen.browser.js is found in tagged-revision. See Tags on GitHub.\n\nOr in a Node.js application via the package manager:\n\n npm install escodegen\n\n### Usage\n\nA simple example: the program\n\n escodegen.generate({\n type: 'BinaryExpression',\n operator: '+',\n left: { type: 'Literal', value: 40 },\n right: { type: 'Literal', value: 2 }\n });\n\nproduces the string `'40 + 2'`\n\nSee the [API page](https://github.com/Constellation/escodegen/wiki/API) for\noptions. To run the tests, execute `npm test` in the root directory.\n\n### Building browser bundle / minified browser bundle\n\nAt first, executing `npm install` to install the all dev dependencies.\nAfter that,\n\n npm run-script build\n\nwill generate `escodegen.browser.js`, it is used on the browser environment.\n\nAnd,\n\n npm run-script build-min\n\nwill generate minified `escodegen.browser.min.js`.\n\n### License\n\n#### Escodegen\n\nCopyright (C) 2012 [Yusuke Suzuki](http://github.com/Constellation)\n (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\nTHIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n#### source-map\n\nSourceNodeMocks has a limited interface of mozilla/source-map SourceNode implementations.\n\nCopyright (c) 2009-2011, Mozilla Foundation and contributors\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the names of the Mozilla Foundation nor the names of project\n contributors may be used to endorse or promote products derived from this\n software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",readmeFilename:"package/README.md"}},{}],18:[function(e,t){var n=t.exports={};n.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){if(e.source===window&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var t=n.shift();t()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.binding=function(){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw Error("process.chdir is not supported")}},{}],19:[function(e,t,n){function r(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;e.length>r;r++)t(e[r],r,e)&&n.push(e[r]);return n}var o=e("__browserify_process"),a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,s=function(e){return a.exec(e).slice(1)};n.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var a=n>=0?arguments[n]:o.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,t="/"===a.charAt(0))}return e=r(i(e.split("/"),function(e){return!!e}),!t).join("/"),(t?"/":"")+e||"."},n.normalize=function(e){var t=n.isAbsolute(e),o="/"===l(e,-1);return e=r(i(e.split("/"),function(e){return!!e}),!t).join("/"),e||t||(e="."),e&&o&&(e+="/"),(t?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(i(e,function(e){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;e.length>t&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),a=Math.min(i.length,o.length),s=a,l=0;a>l;l++)if(i[l]!==o[l]){s=l;break}for(var u=[],l=s;i.length>l;l++)u.push("..");return u=u.concat(o.slice(s)),u.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=s(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=s(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return s(e)[3]};var l="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return 0>t&&(t=e.length+t),e.substr(t,n)}},{__browserify_process:18}]},{},[]);var esprima=require("esprima"),estraverse=require("estraverse"),escodegen=require("escodegen");console.log("esprima",esprima),console.log("estraverse",estraverse),console.log("escodegen",escodegen); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type='text/css'>html, body { margin: 0; padding: 0; border: 0; } | |
body, html { height: 100%; width: 100%; }</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment