16 lines
463 KiB
JavaScript
16 lines
463 KiB
JavaScript
(function(e){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=e()}else if(typeof define==="function"&&define.amd){define([],e)}else{var t;if(typeof window!=="undefined"){t=window}else if(typeof global!=="undefined"){t=global}else if(typeof self!=="undefined"){t=self}else{t=this}t.uniter=e()}})(function(){var e,t,r;return function e(t,r,n){function i(a,o){if(!r[a]){if(!t[a]){var u=typeof require=="function"&&require;if(!o&&u)return u(a,!0);if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};t[a][0].call(l.exports,function(e){var r=t[a][1][e];return i(r?r:e)},l,l.exports,e,t,r,n)}return r[a].exports}var s=typeof require=="function"&&require;for(var a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,r){(function(r){"use strict";var n=e("phpruntime"),i=e("phptoast"),s=e("phptojs"),a=e("./js/ScriptLoader"),o=e("./js/Uniter"),u,c;c=new o(i,s,n);u=new a(r,'script[type="text/x-uniter-php"]',c);u.loadScripts();t.exports=c}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./js/ScriptLoader":4,"./js/Uniter":6,phpruntime:219,phptoast:238,phptojs:243}],2:[function(e,t,r){"use strict";var n=e("microdash"),i={}.hasOwnProperty,s=e("phpcommon"),a="include",o=s.PHPError,u=e("./Promise");function c(e,t,r,n,i){this.environment=n;this.options=i||{};this.phpParser=e;this.phpRuntime=r;this.phpToJS=t}n.extend(c.prototype,{configure:function(e){n.extend(this.options,e)},execute:function(e,t){var r=this,s,c,l=new u,f,p;function h(e,t){r.phpParser.getState().setPath(t||null);e="return "+r.phpToJS.transpile(r.phpParser.parse(e),{bare:true})+";";p=new Function(e)();return r.phpRuntime.compile(p)}t=t||null;c=n.extend({},r.options,{path:t});if(i.call(c,a)){c[a]=function(e){return function(t,r,i,s){var a={reject:r.reject,resolve:function(e){if(n.isString(e)){r.resolve(h(e,t));return}r.resolve(e)}};e(t,a,i,s)}}(c[a])}try{s=h(e,t)}catch(e){if(t===null&&e instanceof o){r.getStderr().write(e.message)}return l.reject(e)}f=s(c,r.environment);f.execute().then(function(e){l.resolve(e.getNative(),e.getType(),e)},function(e){l.reject(e)});return l},expose:function(e,t){this.environment.expose(e,t)},getStderr:function(){return this.environment.getStderr()},getStdin:function(){return this.environment.getStdin()},getStdout:function(){return this.environment.getStdout()}});t.exports=c},{"./Promise":3,microdash:79,phpcommon:146}],3:[function(e,t,r){"use strict";var n=e("microdash"),i=[].slice,s=e("util"),a=e("./SimplePromise"),o=a.prototype;function u(){a.call(this)}s.inherits(u,a);n.extend(u.prototype,{always:function(e){return this.then(e,e)},done:function(e){return this.then(e)},fail:function(e){return this.then(null,e)},resolve:function(){return o.resolve.call(this,i.call(arguments))},then:function(e,t){return o.then.call(this,e?function(t){e.apply(null,t)}:null,t)}});t.exports=u},{"./SimplePromise":5,microdash:79,util:265}],4:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t,r){this.global=e;this.scriptSelector=t;this.uniter=r}n.extend(i.prototype,{loadScripts:function(){var e=this,t,r;if(!e.global.document){return}r=this.global.document.querySelectorAll(this.scriptSelector);if(r.length===0){return}t=e.uniter.createEngine("PHP");t.expose(e.global.document,"document");t.expose(e.global,"window");t.getStdout().on("data",function(t){if(e.global.console){e.global.console.log(t)}});t.getStderr().on("data",function(t){if(e.global.console){e.global.console.error(t)}});[].forEach.call(r,function(r){var n=r.textContent;t.execute("<?php "+n).fail(function(t){if(e.global.console){e.global.console.error(t.toString());throw t}})})}});t.exports=i},{microdash:79}],5:[function(e,t,r){"use strict";var n=e("microdash"),i=0,s=1,a=2;function o(){this.mode=i;this.thens=[];this.valueArgs=null}n.extend(o.prototype,{reject:function(){var e=[].slice.call(arguments),t=this;if(t.mode===i){t.mode=s;t.valueArgs=e;n.each(t.thens,function(t){if(t.onReject){t.onReject.apply(null,e)}})}return t},resolve:function(){var e=[].slice.call(arguments),t=this;if(t.mode===i){t.mode=a;t.valueArgs=e;n.each(t.thens,function(t){if(t.onResolve){t.onResolve.apply(null,e)}})}return t},then:function(e,t){var r=this;if(r.mode===i){r.thens.push({onReject:t,onResolve:e})}else if(r.mode===s){if(t){t.apply(null,r.valueArgs)}}else if(r.mode===a){if(e){e.apply(null,r.valueArgs)}}return r}});t.exports=o},{microdash:79}],6:[function(e,t,r){"use strict";var n=e("microdash"),i=e("./Engine");function s(e,t,r){this.phpRuntime=r;this.phpToAST=e;this.phpToJS=t}n.extend(s.prototype,{createEngine:function(e,t){var r=this;if(e!=="PHP"){throw new Error('Uniter.createEngine() :: Only language "PHP" is supported')}return new i(r.phpToAST.create(),r.phpToJS,r.phpRuntime,r.phpRuntime.createEnvironment(),t)},createParser:function(){return this.phpToAST.create()}});t.exports=s},{"./Engine":2,microdash:79}],7:[function(t,r,n){(function(i){(function(t){if(typeof n==="object"&&typeof r!=="undefined"){r.exports=t()}else if(typeof e==="function"&&e.amd){e([],t)}else{var s;if(typeof window!=="undefined"){s=window}else if(typeof i!=="undefined"){s=i}else if(typeof self!=="undefined"){s=self}else{s=this}s.acorn=t()}})(function(){var e,r,n;return function e(r,n,i){function s(o,u){if(!n[o]){if(!r[o]){var c=typeof t=="function"&&t;if(!u&&c)return c(o,!0);if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[o]={exports:{}};r[o][0].call(f.exports,function(e){var t=r[o][1][e];return s(t?t:e)},f,f.exports,e,r,n,i)}return n[o].exports}var a=typeof t=="function"&&t;for(var o=0;o<i.length;o++)s(i[o]);return s}({1:[function(e,t,r){"use strict";var n=e("./tokentype");var i=e("./state");var s=i.Parser.prototype;s.checkPropClash=function(e,t){if(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))return;var r=e.key;var n=undefined;switch(r.type){case"Identifier":n=r.name;break;case"Literal":n=String(r.value);break;default:return}var i=e.kind;if(this.options.ecmaVersion>=6){if(n==="__proto__"&&i==="init"){if(t.proto)this.raise(r.start,"Redefinition of __proto__ property");t.proto=true}return}n="$"+n;var s=t[n];if(s){var a=i!=="init";if((this.strict||a)&&s[i]||!(a^s.init))this.raise(r.start,"Redefinition of property")}else{s=t[n]={init:false,get:false,set:false}}s[i]=true};s.parseExpression=function(e,t){var r=this.start,i=this.startLoc;var s=this.parseMaybeAssign(e,t);if(this.type===n.types.comma){var a=this.startNodeAt(r,i);a.expressions=[s];while(this.eat(n.types.comma))a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return s};s.parseMaybeAssign=function(e,t,r){if(this.type==n.types._yield&&this.inGenerator)return this.parseYield();var i=false;if(!t){t={shorthandAssign:0,trailingComma:0};i=true}var s=this.start,a=this.startLoc;if(this.type==n.types.parenL||this.type==n.types.name)this.potentialArrowAt=this.start;var o=this.parseMaybeConditional(e,t);if(r)o=r.call(this,o,s,a);if(this.type.isAssign){if(i)this.checkPatternErrors(t,true);var u=this.startNodeAt(s,a);u.operator=this.value;u.left=this.type===n.types.eq?this.toAssignable(o):o;t.shorthandAssign=0;this.checkLVal(o);this.next();u.right=this.parseMaybeAssign(e);return this.finishNode(u,"AssignmentExpression")}else{if(i)this.checkExpressionErrors(t,true)}return o};s.parseMaybeConditional=function(e,t){var r=this.start,i=this.startLoc;var s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(this.eat(n.types.question)){var a=this.startNodeAt(r,i);a.test=s;a.consequent=this.parseMaybeAssign();this.expect(n.types.colon);a.alternate=this.parseMaybeAssign(e);return this.finishNode(a,"ConditionalExpression")}return s};s.parseExprOps=function(e,t){var r=this.start,n=this.startLoc;var i=this.parseMaybeUnary(t);if(this.checkExpressionErrors(t))return i;return this.parseExprOp(i,r,n,-1,e)};s.parseExprOp=function(e,t,r,i,s){var a=this.type.binop;if(a!=null&&(!s||this.type!==n.types._in)){if(a>i){var o=this.startNodeAt(t,r);o.left=e;o.operator=this.value;var u=this.type;this.next();var c=this.start,l=this.startLoc;o.right=this.parseExprOp(this.parseMaybeUnary(),c,l,a,s);this.finishNode(o,u===n.types.logicalOR||u===n.types.logicalAND?"LogicalExpression":"BinaryExpression");return this.parseExprOp(o,t,r,i,s)}}return e};s.parseMaybeUnary=function(e){if(this.type.prefix){var t=this.startNode(),r=this.type===n.types.incDec;t.operator=this.value;t.prefix=true;this.next();t.argument=this.parseMaybeUnary();this.checkExpressionErrors(e,true);if(r)this.checkLVal(t.argument);else if(this.strict&&t.operator==="delete"&&t.argument.type==="Identifier")this.raise(t.start,"Deleting local variable in strict mode");return this.finishNode(t,r?"UpdateExpression":"UnaryExpression")}var i=this.start,s=this.startLoc;var a=this.parseExprSubscripts(e);if(this.checkExpressionErrors(e))return a;while(this.type.postfix&&!this.canInsertSemicolon()){var t=this.startNodeAt(i,s);t.operator=this.value;t.prefix=false;t.argument=a;this.checkLVal(a);this.next();a=this.finishNode(t,"UpdateExpression")}return a};s.parseExprSubscripts=function(e){var t=this.start,r=this.startLoc;var n=this.parseExprAtom(e);var i=n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")";if(this.checkExpressionErrors(e)||i)return n;return this.parseSubscripts(n,t,r)};s.parseSubscripts=function(e,t,r,i){for(;;){if(this.eat(n.types.dot)){var s=this.startNodeAt(t,r);s.object=e;s.property=this.parseIdent(true);s.computed=false;e=this.finishNode(s,"MemberExpression")}else if(this.eat(n.types.bracketL)){var s=this.startNodeAt(t,r);s.object=e;s.property=this.parseExpression();s.computed=true;this.expect(n.types.bracketR);e=this.finishNode(s,"MemberExpression")}else if(!i&&this.eat(n.types.parenL)){var s=this.startNodeAt(t,r);s.callee=e;s.arguments=this.parseExprList(n.types.parenR,false);e=this.finishNode(s,"CallExpression")}else if(this.type===n.types.backQuote){var s=this.startNodeAt(t,r);s.tag=e;s.quasi=this.parseTemplate();e=this.finishNode(s,"TaggedTemplateExpression")}else{return e}}};s.parseExprAtom=function(e){var t=undefined,r=this.potentialArrowAt==this.start;switch(this.type){case n.types._super:if(!this.inFunction)this.raise(this.start,"'super' outside of function or class");case n.types._this:var i=this.type===n.types._this?"ThisExpression":"Super";t=this.startNode();this.next();return this.finishNode(t,i);case n.types._yield:if(this.inGenerator)this.unexpected();case n.types.name:var s=this.start,a=this.startLoc;var o=this.parseIdent(this.type!==n.types.name);if(r&&!this.canInsertSemicolon()&&this.eat(n.types.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[o]);return o;case n.types.regexp:var u=this.value;t=this.parseLiteral(u.value);t.regex={pattern:u.pattern,flags:u.flags};return t;case n.types.num:case n.types.string:return this.parseLiteral(this.value);case n.types._null:case n.types._true:case n.types._false:t=this.startNode();t.value=this.type===n.types._null?null:this.type===n.types._true;t.raw=this.type.keyword;this.next();return this.finishNode(t,"Literal");case n.types.parenL:return this.parseParenAndDistinguishExpression(r);case n.types.bracketL:t=this.startNode();this.next();if(this.options.ecmaVersion>=7&&this.type===n.types._for){return this.parseComprehension(t,false)}t.elements=this.parseExprList(n.types.bracketR,true,true,e);return this.finishNode(t,"ArrayExpression");case n.types.braceL:return this.parseObj(false,e);case n.types._function:t=this.startNode();this.next();return this.parseFunction(t,false);case n.types._class:return this.parseClass(this.startNode(),false);case n.types._new:return this.parseNew();case n.types.backQuote:return this.parseTemplate();default:this.unexpected()}};s.parseLiteral=function(e){var t=this.startNode();t.value=e;t.raw=this.input.slice(this.start,this.end);this.next();return this.finishNode(t,"Literal")};s.parseParenExpression=function(){this.expect(n.types.parenL);var e=this.parseExpression();this.expect(n.types.parenR);return e};s.parseParenAndDistinguishExpression=function(e){var t=this.start,r=this.startLoc,i=undefined;if(this.options.ecmaVersion>=6){this.next();if(this.options.ecmaVersion>=7&&this.type===n.types._for){return this.parseComprehension(this.startNodeAt(t,r),true)}var s=this.start,a=this.startLoc;var o=[],u=true;var c={shorthandAssign:0,trailingComma:0},l=undefined,f=undefined;while(this.type!==n.types.parenR){u?u=false:this.expect(n.types.comma);if(this.type===n.types.ellipsis){l=this.start;o.push(this.parseParenItem(this.parseRest()));break}else{if(this.type===n.types.parenL&&!f){f=this.start}o.push(this.parseMaybeAssign(false,c,this.parseParenItem))}}var p=this.start,h=this.startLoc;this.expect(n.types.parenR);if(e&&!this.canInsertSemicolon()&&this.eat(n.types.arrow)){this.checkPatternErrors(c,true);if(f)this.unexpected(f);return this.parseParenArrowList(t,r,o)}if(!o.length)this.unexpected(this.lastTokStart);if(l)this.unexpected(l);this.checkExpressionErrors(c,true);if(o.length>1){i=this.startNodeAt(s,a);i.expressions=o;this.finishNodeAt(i,"SequenceExpression",p,h)}else{i=o[0]}}else{i=this.parseParenExpression()}if(this.options.preserveParens){var m=this.startNodeAt(t,r);m.expression=i;return this.finishNode(m,"ParenthesizedExpression")}else{return i}};s.parseParenItem=function(e){return e};s.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var a=[];s.parseNew=function(){var e=this.startNode();var t=this.parseIdent(true);if(this.options.ecmaVersion>=6&&this.eat(n.types.dot)){e.meta=t;e.property=this.parseIdent(true);if(e.property.name!=="target")this.raise(e.property.start,"The only valid meta property for new is new.target");if(!this.inFunction)this.raise(e.start,"new.target can only be used in functions");return this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,true);if(this.eat(n.types.parenL))e.arguments=this.parseExprList(n.types.parenR,false);else e.arguments=a;return this.finishNode(e,"NewExpression")};s.parseTemplateElement=function(){var e=this.startNode();e.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value};this.next();e.tail=this.type===n.types.backQuote;return this.finishNode(e,"TemplateElement")};s.parseTemplate=function(){var e=this.startNode();this.next();e.expressions=[];var t=this.parseTemplateElement();e.quasis=[t];while(!t.tail){this.expect(n.types.dollarBraceL);e.expressions.push(this.parseExpression());this.expect(n.types.braceR);e.quasis.push(t=this.parseTemplateElement())}this.next();return this.finishNode(e,"TemplateLiteral")};s.parseObj=function(e,t){var r=this.startNode(),i=true,s={};r.properties=[];this.next();while(!this.eat(n.types.braceR)){if(!i){this.expect(n.types.comma);if(this.afterTrailingComma(n.types.braceR))break}else i=false;var a=this.startNode(),o=undefined,u=undefined,c=undefined;if(this.options.ecmaVersion>=6){a.method=false;a.shorthand=false;if(e||t){u=this.start;c=this.startLoc}if(!e)o=this.eat(n.types.star)}this.parsePropertyName(a);this.parsePropertyValue(a,e,o,u,c,t);this.checkPropClash(a,s);r.properties.push(this.finishNode(a,"Property"))}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};s.parsePropertyValue=function(e,t,r,i,s,a){if(this.eat(n.types.colon)){e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(false,a);e.kind="init"}else if(this.options.ecmaVersion>=6&&this.type===n.types.parenL){if(t)this.unexpected();e.kind="init";e.method=true;e.value=this.parseMethod(r)}else if(this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&(this.type!=n.types.comma&&this.type!=n.types.braceR)){if(r||t)this.unexpected();e.kind=e.key.name;this.parsePropertyName(e);e.value=this.parseMethod(false);var o=e.kind==="get"?0:1;if(e.value.params.length!==o){var u=e.value.start;if(e.kind==="get")this.raise(u,"getter should have no params");else this.raise(u,"setter should have exactly one param")}if(e.kind==="set"&&e.value.params[0].type==="RestElement")this.raise(e.value.params[0].start,"Setter cannot use rest params")}else if(this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"){e.kind="init";if(t){if(this.keywords.test(e.key.name)||(this.strict?this.reservedWordsStrictBind:this.reservedWords).test(e.key.name))this.raise(e.key.start,"Binding "+e.key.name);e.value=this.parseMaybeDefault(i,s,e.key)}else if(this.type===n.types.eq&&a){if(!a.shorthandAssign)a.shorthandAssign=this.start;e.value=this.parseMaybeDefault(i,s,e.key)}else{e.value=e.key}e.shorthand=true}else this.unexpected()};s.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(n.types.bracketL)){e.computed=true;e.key=this.parseMaybeAssign();this.expect(n.types.bracketR);return e.key}else{e.computed=false}}return e.key=this.type===n.types.num||this.type===n.types.string?this.parseExprAtom():this.parseIdent(true)};s.initFunction=function(e){e.id=null;if(this.options.ecmaVersion>=6){e.generator=false;e.expression=false}};s.parseMethod=function(e){var t=this.startNode();this.initFunction(t);this.expect(n.types.parenL);t.params=this.parseBindingList(n.types.parenR,false,false);if(this.options.ecmaVersion>=6)t.generator=e;this.parseFunctionBody(t,false);return this.finishNode(t,"FunctionExpression")};s.parseArrowExpression=function(e,t){this.initFunction(e);e.params=this.toAssignableList(t,true);this.parseFunctionBody(e,true);return this.finishNode(e,"ArrowFunctionExpression")};s.parseFunctionBody=function(e,t){var r=t&&this.type!==n.types.braceL;if(r){e.body=this.parseMaybeAssign();e.expression=true}else{var i=this.inFunction,s=this.inGenerator,a=this.labels;this.inFunction=true;this.inGenerator=e.generator;this.labels=[];e.body=this.parseBlock(true);e.expression=false;this.inFunction=i;this.inGenerator=s;this.labels=a}if(this.strict||!r&&e.body.body.length&&this.isUseStrict(e.body.body[0])){var o=this.strict;this.strict=true;if(e.id)this.checkLVal(e.id,true);this.checkParams(e);this.strict=o}else if(t){this.checkParams(e)}};s.checkParams=function(e){var t={};for(var r=0;r<e.params.length;r++){this.checkLVal(e.params[r],true,t)}};s.parseExprList=function(e,t,r,i){var s=[],a=true;while(!this.eat(e)){if(!a){this.expect(n.types.comma);if(this.type===e&&i&&!i.trailingComma){i.trailingComma=this.lastTokStart}if(t&&this.afterTrailingComma(e))break}else a=false;var o=undefined;if(r&&this.type===n.types.comma)o=null;else if(this.type===n.types.ellipsis)o=this.parseSpread(i);else o=this.parseMaybeAssign(false,i);s.push(o)}return s};s.parseIdent=function(e){var t=this.startNode();if(e&&this.options.allowReserved=="never")e=false;if(this.type===n.types.name){if(!e&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(this.value)&&(this.options.ecmaVersion>=6||this.input.slice(this.start,this.end).indexOf("\\")==-1))this.raise(this.start,"The keyword '"+this.value+"' is reserved");t.name=this.value}else if(e&&this.type.keyword){t.name=this.type.keyword}else{this.unexpected()}this.next();return this.finishNode(t,"Identifier")};s.parseYield=function(){var e=this.startNode();this.next();if(this.type==n.types.semi||this.canInsertSemicolon()||this.type!=n.types.star&&!this.type.startsExpr){e.delegate=false;e.argument=null}else{e.delegate=this.eat(n.types.star);e.argument=this.parseMaybeAssign()}return this.finishNode(e,"YieldExpression")};s.parseComprehension=function(e,t){e.blocks=[];while(this.type===n.types._for){var r=this.startNode();this.next();this.expect(n.types.parenL);r.left=this.parseBindingAtom();this.checkLVal(r.left,true);this.expectContextual("of");r.right=this.parseExpression();this.expect(n.types.parenR);e.blocks.push(this.finishNode(r,"ComprehensionBlock"))}e.filter=this.eat(n.types._if)?this.parseParenExpression():null;e.body=this.parseExpression();this.expect(t?n.types.parenR:n.types.bracketR);e.generator=t;return this.finishNode(e,"ComprehensionExpression")}},{"./state":10,"./tokentype":14}],2:[function(e,t,r){"use strict";r.__esModule=true;r.isIdentifierStart=h;r.isIdentifierChar=m;var n={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"};r.reservedWords=n;var i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";var s={5:i,6:i+" let const class extends export import yield super"};r.keywords=s;var a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";var o="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_";var u=new RegExp("["+a+"]");var c=new RegExp("["+a+o+"]");a=o=null;var l=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,99,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,98,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,955,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,38,17,2,24,133,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,32,4,287,47,21,1,2,0,185,46,82,47,21,0,60,42,502,63,32,0,449,56,1288,920,104,110,2962,1070,13266,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,16481,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,1340,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,16355,541];var f=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,16,9,83,11,168,11,6,9,8,2,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,316,19,13,9,214,6,3,8,112,16,16,9,82,12,9,9,535,9,20855,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,4305,6,792618,239];function p(e,t){var r=65536;for(var n=0;n<t.length;n+=2){r+=t[n];if(r>e)return false;r+=t[n+1];if(r>=e)return true}}function h(e,t){if(e<65)return e===36;if(e<91)return true;if(e<97)return e===95;if(e<123)return true;if(e<=65535)return e>=170&&u.test(String.fromCharCode(e));if(t===false)return false;return p(e,l)}function m(e,t){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<91)return true;if(e<97)return e===95;if(e<123)return true;if(e<=65535)return e>=170&&c.test(String.fromCharCode(e));if(t===false)return false;return p(e,l)||p(e,f)}},{}],3:[function(e,t,r){"use strict";r.__esModule=true;r.parse=h;r.parseExpressionAt=m;r.tokenizer=d;var n=e("./state");e("./parseutil");e("./statement");e("./lval");e("./expression");e("./location");r.Parser=n.Parser;r.plugins=n.plugins;var i=e("./options");r.defaultOptions=i.defaultOptions;var s=e("./locutil");r.Position=s.Position;r.SourceLocation=s.SourceLocation;r.getLineInfo=s.getLineInfo;var a=e("./node");r.Node=a.Node;var o=e("./tokentype");r.TokenType=o.TokenType;r.tokTypes=o.types;var u=e("./tokencontext");r.TokContext=u.TokContext;r.tokContexts=u.types;var c=e("./identifier");r.isIdentifierChar=c.isIdentifierChar;r.isIdentifierStart=c.isIdentifierStart;var l=e("./tokenize");r.Token=l.Token;var f=e("./whitespace");r.isNewLine=f.isNewLine;r.lineBreak=f.lineBreak;r.lineBreakG=f.lineBreakG;var p="2.7.0";r.version=p;function h(e,t){return new n.Parser(t,e).parse()}function m(e,t,r){var i=new n.Parser(r,e,t);i.nextToken();return i.parseExpression()}function d(e,t){return new n.Parser(t,e)}},{"./expression":1,"./identifier":2,"./location":4,"./locutil":5,"./lval":6,"./node":7,"./options":8,"./parseutil":9,"./state":10,"./statement":11,"./tokencontext":12,"./tokenize":13,"./tokentype":14,"./whitespace":16}],4:[function(e,t,r){"use strict";var n=e("./state");var i=e("./locutil");var s=n.Parser.prototype;s.raise=function(e,t){var r=i.getLineInfo(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);n.pos=e;n.loc=r;n.raisedAt=this.pos;throw n};s.curPosition=function(){if(this.options.locations){return new i.Position(this.curLine,this.pos-this.lineStart)}}},{"./locutil":5,"./state":10}],5:[function(e,t,r){"use strict";r.__esModule=true;r.getLineInfo=o;function n(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=e("./whitespace");var s=function(){function e(t,r){n(this,e);this.line=t;this.column=r}e.prototype.offset=function t(r){return new e(this.line,this.column+r)};return e}();r.Position=s;var a=function e(t,r,i){n(this,e);this.start=r;this.end=i;if(t.sourceFile!==null)this.source=t.sourceFile};r.SourceLocation=a;function o(e,t){for(var r=1,n=0;;){i.lineBreakG.lastIndex=n;var a=i.lineBreakG.exec(e);if(a&&a.index<t){++r;n=a.index+a[0].length}else{return new s(r,t-n)}}}},{"./whitespace":16}],6:[function(e,t,r){"use strict";var n=e("./tokentype");var i=e("./state");var s=e("./util");var a=i.Parser.prototype;a.toAssignable=function(e,t){if(this.options.ecmaVersion>=6&&e){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var r=0;r<e.properties.length;r++){var n=e.properties[r];if(n.kind!=="init")this.raise(n.key.start,"Object pattern can't contain getter or setter");this.toAssignable(n.value,t)}break;case"ArrayExpression":e.type="ArrayPattern";this.toAssignableList(e.elements,t);break;case"AssignmentExpression":if(e.operator==="="){e.type="AssignmentPattern";delete e.operator}else{this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");break}case"AssignmentPattern":if(e.right.type==="YieldExpression")this.raise(e.right.start,"Yield expression cannot be a default value");break;case"ParenthesizedExpression":e.expression=this.toAssignable(e.expression,t);break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}}return e};a.toAssignableList=function(e,t){var r=e.length;if(r){var n=e[r-1];if(n&&n.type=="RestElement"){--r}else if(n&&n.type=="SpreadElement"){n.type="RestElement";var i=n.argument;this.toAssignable(i,t);if(i.type!=="Identifier"&&i.type!=="MemberExpression"&&i.type!=="ArrayPattern")this.unexpected(i.start);--r}if(t&&n.type==="RestElement"&&n.argument.type!=="Identifier")this.unexpected(n.argument.start)}for(var s=0;s<r;s++){var a=e[s];if(a)this.toAssignable(a,t)}return e};a.parseSpread=function(e){var t=this.startNode();this.next();t.argument=this.parseMaybeAssign(e);return this.finishNode(t,"SpreadElement")};a.parseRest=function(e){var t=this.startNode();this.next();if(e)t.argument=this.type===n.types.name?this.parseIdent():this.unexpected();else t.argument=this.type===n.types.name||this.type===n.types.bracketL?this.parseBindingAtom():this.unexpected();return this.finishNode(t,"RestElement")};a.parseBindingAtom=function(){if(this.options.ecmaVersion<6)return this.parseIdent();switch(this.type){case n.types.name:return this.parseIdent();case n.types.bracketL:var e=this.startNode();this.next();e.elements=this.parseBindingList(n.types.bracketR,true,true);return this.finishNode(e,"ArrayPattern");case n.types.braceL:return this.parseObj(true);default:this.unexpected()}};a.parseBindingList=function(e,t,r,i){var s=[],a=true;while(!this.eat(e)){if(a)a=false;else this.expect(n.types.comma);if(t&&this.type===n.types.comma){s.push(null)}else if(r&&this.afterTrailingComma(e)){break}else if(this.type===n.types.ellipsis){var o=this.parseRest(i);this.parseBindingListItem(o);s.push(o);this.expect(e);break}else{var u=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(u);s.push(u)}}return s};a.parseBindingListItem=function(e){return e};a.parseMaybeDefault=function(e,t,r){r=r||this.parseBindingAtom();if(this.options.ecmaVersion<6||!this.eat(n.types.eq))return r;var i=this.startNodeAt(e,t);i.left=r;i.right=this.parseMaybeAssign();return this.finishNode(i,"AssignmentPattern")};a.checkLVal=function(e,t,r){switch(e.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(e.name))this.raise(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode");if(r){if(s.has(r,e.name))this.raise(e.start,"Argument name clash");r[e.name]=true}break;case"MemberExpression":if(t)this.raise(e.start,(t?"Binding":"Assigning to")+" member expression");break;case"ObjectPattern":for(var n=0;n<e.properties.length;n++){this.checkLVal(e.properties[n].value,t,r)}break;case"ArrayPattern":for(var n=0;n<e.elements.length;n++){var i=e.elements[n];if(i)this.checkLVal(i,t,r)}break;case"AssignmentPattern":this.checkLVal(e.left,t,r);break;case"RestElement":this.checkLVal(e.argument,t,r);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,r);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}}},{"./state":10,"./tokentype":14,"./util":15}],7:[function(e,t,r){"use strict";r.__esModule=true;function n(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=e("./state");var s=e("./locutil");var a=function e(t,r,i){n(this,e);this.type="";this.start=r;this.end=0;if(t.options.locations)this.loc=new s.SourceLocation(t,i);if(t.options.directSourceFile)this.sourceFile=t.options.directSourceFile;if(t.options.ranges)this.range=[r,0]};r.Node=a;var o=i.Parser.prototype;o.startNode=function(){return new a(this,this.start,this.startLoc)};o.startNodeAt=function(e,t){return new a(this,e,t)};function u(e,t,r,n){e.type=t;e.end=r;if(this.options.locations)e.loc.end=n;if(this.options.ranges)e.range[1]=r;return e}o.finishNode=function(e,t){return u.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};o.finishNodeAt=function(e,t,r,n){return u.call(this,e,t,r,n)}},{"./locutil":5,"./state":10}],8:[function(e,t,r){"use strict";r.__esModule=true;r.getOptions=a;var n=e("./util");var i=e("./locutil");var s={ecmaVersion:5,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:false,allowImportExportEverywhere:false,allowHashBang:false,locations:false,onToken:null,onComment:null,ranges:false,program:null,sourceFile:null,directSourceFile:null,preserveParens:false,plugins:{}};r.defaultOptions=s;function a(e){var t={};for(var r in s){t[r]=e&&n.has(e,r)?e[r]:s[r]}if(t.allowReserved==null)t.allowReserved=t.ecmaVersion<5
|
||
;if(n.isArray(t.onToken)){(function(){var e=t.onToken;t.onToken=function(t){return e.push(t)}})()}if(n.isArray(t.onComment))t.onComment=o(t,t.onComment);return t}function o(e,t){return function(r,n,s,a,o,u){var c={type:r?"Block":"Line",value:n,start:s,end:a};if(e.locations)c.loc=new i.SourceLocation(this,o,u);if(e.ranges)c.range=[s,a];t.push(c)}}},{"./locutil":5,"./util":15}],9:[function(e,t,r){"use strict";var n=e("./tokentype");var i=e("./state");var s=e("./whitespace");var a=i.Parser.prototype;a.isUseStrict=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&e.expression.raw.slice(1,-1)==="use strict"};a.eat=function(e){if(this.type===e){this.next();return true}else{return false}};a.isContextual=function(e){return this.type===n.types.name&&this.value===e};a.eatContextual=function(e){return this.value===e&&this.eat(n.types.name)};a.expectContextual=function(e){if(!this.eatContextual(e))this.unexpected()};a.canInsertSemicolon=function(){return this.type===n.types.eof||this.type===n.types.braceR||s.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))};a.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return true}};a.semicolon=function(){if(!this.eat(n.types.semi)&&!this.insertSemicolon())this.unexpected()};a.afterTrailingComma=function(e){if(this.type==e){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);this.next();return true}};a.expect=function(e){this.eat(e)||this.unexpected()};a.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};a.checkPatternErrors=function(e,t){var r=e&&e.trailingComma;if(!t)return!!r;if(r)this.raise(r,"Trailing comma is not permitted in destructuring patterns")};a.checkExpressionErrors=function(e,t){var r=e&&e.shorthandAssign;if(!t)return!!r;if(r)this.raise(r,"Shorthand property assignments are valid only in destructuring patterns")}},{"./state":10,"./tokentype":14,"./whitespace":16}],10:[function(e,t,r){"use strict";r.__esModule=true;function n(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=e("./identifier");var s=e("./tokentype");var a=e("./whitespace");var o=e("./options");var u={};r.plugins=u;function c(e){return new RegExp("^("+e.replace(/ /g,"|")+")$")}var l=function(){function e(t,r,u){n(this,e);this.options=t=o.getOptions(t);this.sourceFile=t.sourceFile;this.keywords=c(i.keywords[t.ecmaVersion>=6?6:5]);var l=t.allowReserved?"":i.reservedWords[t.ecmaVersion]+(t.sourceType=="module"?" await":"");this.reservedWords=c(l);var f=(l?l+" ":"")+i.reservedWords.strict;this.reservedWordsStrict=c(f);this.reservedWordsStrictBind=c(f+" "+i.reservedWords.strictBind);this.input=String(r);this.containsEsc=false;this.loadPlugins(t.plugins);if(u){this.pos=u;this.lineStart=Math.max(0,this.input.lastIndexOf("\n",u));this.curLine=this.input.slice(0,this.lineStart).split(a.lineBreak).length}else{this.pos=this.lineStart=0;this.curLine=1}this.type=s.types.eof;this.value=null;this.start=this.end=this.pos;this.startLoc=this.endLoc=this.curPosition();this.lastTokEndLoc=this.lastTokStartLoc=null;this.lastTokStart=this.lastTokEnd=this.pos;this.context=this.initialContext();this.exprAllowed=true;this.strict=this.inModule=t.sourceType==="module";this.potentialArrowAt=-1;this.inFunction=this.inGenerator=false;this.labels=[];if(this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2)}e.prototype.isKeyword=function e(t){return this.keywords.test(t)};e.prototype.isReservedWord=function e(t){return this.reservedWords.test(t)};e.prototype.extend=function e(t,r){this[t]=r(this[t])};e.prototype.loadPlugins=function e(t){for(var r in t){var n=u[r];if(!n)throw new Error("Plugin '"+r+"' not found");n(this,t[r])}};e.prototype.parse=function e(){var t=this.options.program||this.startNode();this.nextToken();return this.parseTopLevel(t)};return e}();r.Parser=l},{"./identifier":2,"./options":8,"./tokentype":14,"./whitespace":16}],11:[function(e,t,r){"use strict";var n=e("./tokentype");var i=e("./state");var s=e("./whitespace");var a=i.Parser.prototype;a.parseTopLevel=function(e){var t=true;if(!e.body)e.body=[];while(this.type!==n.types.eof){var r=this.parseStatement(true,true);e.body.push(r);if(t){if(this.isUseStrict(r))this.setStrict(true);t=false}}this.next();if(this.options.ecmaVersion>=6){e.sourceType=this.options.sourceType}return this.finishNode(e,"Program")};var o={kind:"loop"},u={kind:"switch"};a.parseStatement=function(e,t){var r=this.type,i=this.startNode();switch(r){case n.types._break:case n.types._continue:return this.parseBreakContinueStatement(i,r.keyword);case n.types._debugger:return this.parseDebuggerStatement(i);case n.types._do:return this.parseDoStatement(i);case n.types._for:return this.parseForStatement(i);case n.types._function:if(!e&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(i);case n.types._class:if(!e)this.unexpected();return this.parseClass(i,true);case n.types._if:return this.parseIfStatement(i);case n.types._return:return this.parseReturnStatement(i);case n.types._switch:return this.parseSwitchStatement(i);case n.types._throw:return this.parseThrowStatement(i);case n.types._try:return this.parseTryStatement(i);case n.types._let:case n.types._const:if(!e)this.unexpected();case n.types._var:return this.parseVarStatement(i,r);case n.types._while:return this.parseWhileStatement(i);case n.types._with:return this.parseWithStatement(i);case n.types.braceL:return this.parseBlock();case n.types.semi:return this.parseEmptyStatement(i);case n.types._export:case n.types._import:if(!this.options.allowImportExportEverywhere){if(!t)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return r===n.types._import?this.parseImport(i):this.parseExport(i);default:var s=this.value,a=this.parseExpression();if(r===n.types.name&&a.type==="Identifier"&&this.eat(n.types.colon))return this.parseLabeledStatement(i,s,a);else return this.parseExpressionStatement(i,a)}};a.parseBreakContinueStatement=function(e,t){var r=t=="break";this.next();if(this.eat(n.types.semi)||this.insertSemicolon())e.label=null;else if(this.type!==n.types.name)this.unexpected();else{e.label=this.parseIdent();this.semicolon()}for(var i=0;i<this.labels.length;++i){var s=this.labels[i];if(e.label==null||s.name===e.label.name){if(s.kind!=null&&(r||s.kind==="loop"))break;if(e.label&&r)break}}if(i===this.labels.length)this.raise(e.start,"Unsyntactic "+t);return this.finishNode(e,r?"BreakStatement":"ContinueStatement")};a.parseDebuggerStatement=function(e){this.next();this.semicolon();return this.finishNode(e,"DebuggerStatement")};a.parseDoStatement=function(e){this.next();this.labels.push(o);e.body=this.parseStatement(false);this.labels.pop();this.expect(n.types._while);e.test=this.parseParenExpression();if(this.options.ecmaVersion>=6)this.eat(n.types.semi);else this.semicolon();return this.finishNode(e,"DoWhileStatement")};a.parseForStatement=function(e){this.next();this.labels.push(o);this.expect(n.types.parenL);if(this.type===n.types.semi)return this.parseFor(e,null);if(this.type===n.types._var||this.type===n.types._let||this.type===n.types._const){var t=this.startNode(),r=this.type;this.next();this.parseVar(t,true,r);this.finishNode(t,"VariableDeclaration");if((this.type===n.types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1&&!(r!==n.types._var&&t.declarations[0].init))return this.parseForIn(e,t);return this.parseFor(e,t)}var i={shorthandAssign:0,trailingComma:0};var s=this.parseExpression(true,i);if(this.type===n.types._in||this.options.ecmaVersion>=6&&this.isContextual("of")){this.checkPatternErrors(i,true);this.toAssignable(s);this.checkLVal(s);return this.parseForIn(e,s)}else{this.checkExpressionErrors(i,true)}return this.parseFor(e,s)};a.parseFunctionStatement=function(e){this.next();return this.parseFunction(e,true)};a.parseIfStatement=function(e){this.next();e.test=this.parseParenExpression();e.consequent=this.parseStatement(false);e.alternate=this.eat(n.types._else)?this.parseStatement(false):null;return this.finishNode(e,"IfStatement")};a.parseReturnStatement=function(e){if(!this.inFunction&&!this.options.allowReturnOutsideFunction)this.raise(this.start,"'return' outside of function");this.next();if(this.eat(n.types.semi)||this.insertSemicolon())e.argument=null;else{e.argument=this.parseExpression();this.semicolon()}return this.finishNode(e,"ReturnStatement")};a.parseSwitchStatement=function(e){this.next();e.discriminant=this.parseParenExpression();e.cases=[];this.expect(n.types.braceL);this.labels.push(u);for(var t,r=false;this.type!=n.types.braceR;){if(this.type===n.types._case||this.type===n.types._default){var i=this.type===n.types._case;if(t)this.finishNode(t,"SwitchCase");e.cases.push(t=this.startNode());t.consequent=[];this.next();if(i){t.test=this.parseExpression()}else{if(r)this.raise(this.lastTokStart,"Multiple default clauses");r=true;t.test=null}this.expect(n.types.colon)}else{if(!t)this.unexpected();t.consequent.push(this.parseStatement(true))}}if(t)this.finishNode(t,"SwitchCase");this.next();this.labels.pop();return this.finishNode(e,"SwitchStatement")};a.parseThrowStatement=function(e){this.next();if(s.lineBreak.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");e.argument=this.parseExpression();this.semicolon();return this.finishNode(e,"ThrowStatement")};var c=[];a.parseTryStatement=function(e){this.next();e.block=this.parseBlock();e.handler=null;if(this.type===n.types._catch){var t=this.startNode();this.next();this.expect(n.types.parenL);t.param=this.parseBindingAtom();this.checkLVal(t.param,true);this.expect(n.types.parenR);t.body=this.parseBlock();e.handler=this.finishNode(t,"CatchClause")}e.finalizer=this.eat(n.types._finally)?this.parseBlock():null;if(!e.handler&&!e.finalizer)this.raise(e.start,"Missing catch or finally clause");return this.finishNode(e,"TryStatement")};a.parseVarStatement=function(e,t){this.next();this.parseVar(e,false,t);this.semicolon();return this.finishNode(e,"VariableDeclaration")};a.parseWhileStatement=function(e){this.next();e.test=this.parseParenExpression();this.labels.push(o);e.body=this.parseStatement(false);this.labels.pop();return this.finishNode(e,"WhileStatement")};a.parseWithStatement=function(e){if(this.strict)this.raise(this.start,"'with' in strict mode");this.next();e.object=this.parseParenExpression();e.body=this.parseStatement(false);return this.finishNode(e,"WithStatement")};a.parseEmptyStatement=function(e){this.next();return this.finishNode(e,"EmptyStatement")};a.parseLabeledStatement=function(e,t,r){for(var i=0;i<this.labels.length;++i){if(this.labels[i].name===t)this.raise(r.start,"Label '"+t+"' is already declared")}var s=this.type.isLoop?"loop":this.type===n.types._switch?"switch":null;for(var i=this.labels.length-1;i>=0;i--){var a=this.labels[i];if(a.statementStart==e.start){a.statementStart=this.start;a.kind=s}else break}this.labels.push({name:t,kind:s,statementStart:this.start});e.body=this.parseStatement(true);this.labels.pop();e.label=r;return this.finishNode(e,"LabeledStatement")};a.parseExpressionStatement=function(e,t){e.expression=t;this.semicolon();return this.finishNode(e,"ExpressionStatement")};a.parseBlock=function(e){var t=this.startNode(),r=true,i=undefined;t.body=[];this.expect(n.types.braceL);while(!this.eat(n.types.braceR)){var s=this.parseStatement(true);t.body.push(s);if(r&&e&&this.isUseStrict(s)){i=this.strict;this.setStrict(this.strict=true)}r=false}if(i===false)this.setStrict(false);return this.finishNode(t,"BlockStatement")};a.parseFor=function(e,t){e.init=t;this.expect(n.types.semi);e.test=this.type===n.types.semi?null:this.parseExpression();this.expect(n.types.semi);e.update=this.type===n.types.parenR?null:this.parseExpression();this.expect(n.types.parenR);e.body=this.parseStatement(false);this.labels.pop();return this.finishNode(e,"ForStatement")};a.parseForIn=function(e,t){var r=this.type===n.types._in?"ForInStatement":"ForOfStatement";this.next();e.left=t;e.right=this.parseExpression();this.expect(n.types.parenR);e.body=this.parseStatement(false);this.labels.pop();return this.finishNode(e,r)};a.parseVar=function(e,t,r){e.declarations=[];e.kind=r.keyword;for(;;){var i=this.startNode();this.parseVarId(i);if(this.eat(n.types.eq)){i.init=this.parseMaybeAssign(t)}else if(r===n.types._const&&!(this.type===n.types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))){this.unexpected()}else if(i.id.type!="Identifier"&&!(t&&(this.type===n.types._in||this.isContextual("of")))){this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value")}else{i.init=null}e.declarations.push(this.finishNode(i,"VariableDeclarator"));if(!this.eat(n.types.comma))break}return e};a.parseVarId=function(e){e.id=this.parseBindingAtom();this.checkLVal(e.id,true)};a.parseFunction=function(e,t,r){this.initFunction(e);if(this.options.ecmaVersion>=6)e.generator=this.eat(n.types.star);if(t||this.type===n.types.name)e.id=this.parseIdent();this.parseFunctionParams(e);this.parseFunctionBody(e,r);return this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")};a.parseFunctionParams=function(e){this.expect(n.types.parenL);e.params=this.parseBindingList(n.types.parenR,false,false,true)};a.parseClass=function(e,t){this.next();this.parseClassId(e,t);this.parseClassSuper(e);var r=this.startNode();var i=false;r.body=[];this.expect(n.types.braceL);while(!this.eat(n.types.braceR)){if(this.eat(n.types.semi))continue;var s=this.startNode();var a=this.eat(n.types.star);var o=this.type===n.types.name&&this.value==="static";this.parsePropertyName(s);s["static"]=o&&this.type!==n.types.parenL;if(s["static"]){if(a)this.unexpected();a=this.eat(n.types.star);this.parsePropertyName(s)}s.kind="method";var u=false;if(!s.computed){var c=s.key;if(!a&&c.type==="Identifier"&&this.type!==n.types.parenL&&(c.name==="get"||c.name==="set")){u=true;s.kind=c.name;c=this.parsePropertyName(s)}if(!s["static"]&&(c.type==="Identifier"&&c.name==="constructor"||c.type==="Literal"&&c.value==="constructor")){if(i)this.raise(c.start,"Duplicate constructor in the same class");if(u)this.raise(c.start,"Constructor can't have get/set modifier");if(a)this.raise(c.start,"Constructor can't be a generator");s.kind="constructor";i=true}}this.parseClassMethod(r,s,a);if(u){var l=s.kind==="get"?0:1;if(s.value.params.length!==l){var f=s.value.start;if(s.kind==="get")this.raise(f,"getter should have no params");else this.raise(f,"setter should have exactly one param")}if(s.kind==="set"&&s.value.params[0].type==="RestElement")this.raise(s.value.params[0].start,"Setter cannot use rest params")}}e.body=this.finishNode(r,"ClassBody");return this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};a.parseClassMethod=function(e,t,r){t.value=this.parseMethod(r);e.body.push(this.finishNode(t,"MethodDefinition"))};a.parseClassId=function(e,t){e.id=this.type===n.types.name?this.parseIdent():t?this.unexpected():null};a.parseClassSuper=function(e){e.superClass=this.eat(n.types._extends)?this.parseExprSubscripts():null};a.parseExport=function(e){this.next();if(this.eat(n.types.star)){this.expectContextual("from");e.source=this.type===n.types.string?this.parseExprAtom():this.unexpected();this.semicolon();return this.finishNode(e,"ExportAllDeclaration")}if(this.eat(n.types._default)){var t=this.parseMaybeAssign();var r=true;if(t.type=="FunctionExpression"||t.type=="ClassExpression"){r=false;if(t.id){t.type=t.type=="FunctionExpression"?"FunctionDeclaration":"ClassDeclaration"}}e.declaration=t;if(r)this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){e.declaration=this.parseStatement(true);e.specifiers=[];e.source=null}else{e.declaration=null;e.specifiers=this.parseExportSpecifiers();if(this.eatContextual("from")){e.source=this.type===n.types.string?this.parseExprAtom():this.unexpected()}else{for(var i=0;i<e.specifiers.length;i++){if(this.keywords.test(e.specifiers[i].local.name)||this.reservedWords.test(e.specifiers[i].local.name)){this.unexpected(e.specifiers[i].local.start)}}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};a.shouldParseExportStatement=function(){return this.type.keyword};a.parseExportSpecifiers=function(){var e=[],t=true;this.expect(n.types.braceL);while(!this.eat(n.types.braceR)){if(!t){this.expect(n.types.comma);if(this.afterTrailingComma(n.types.braceR))break}else t=false;var r=this.startNode();r.local=this.parseIdent(this.type===n.types._default);r.exported=this.eatContextual("as")?this.parseIdent(true):r.local;e.push(this.finishNode(r,"ExportSpecifier"))}return e};a.parseImport=function(e){this.next();if(this.type===n.types.string){e.specifiers=c;e.source=this.parseExprAtom()}else{e.specifiers=this.parseImportSpecifiers();this.expectContextual("from");e.source=this.type===n.types.string?this.parseExprAtom():this.unexpected()}this.semicolon();return this.finishNode(e,"ImportDeclaration")};a.parseImportSpecifiers=function(){var e=[],t=true;if(this.type===n.types.name){var r=this.startNode();r.local=this.parseIdent();this.checkLVal(r.local,true);e.push(this.finishNode(r,"ImportDefaultSpecifier"));if(!this.eat(n.types.comma))return e}if(this.type===n.types.star){var r=this.startNode();this.next();this.expectContextual("as");r.local=this.parseIdent();this.checkLVal(r.local,true);e.push(this.finishNode(r,"ImportNamespaceSpecifier"));return e}this.expect(n.types.braceL);while(!this.eat(n.types.braceR)){if(!t){this.expect(n.types.comma);if(this.afterTrailingComma(n.types.braceR))break}else t=false;var r=this.startNode();r.imported=this.parseIdent(true);if(this.eatContextual("as")){r.local=this.parseIdent()}else{r.local=r.imported;if(this.isKeyword(r.local.name))this.unexpected(r.local.start);if(this.reservedWordsStrict.test(r.local.name))this.raise(r.local.start,"The keyword '"+r.local.name+"' is reserved")}this.checkLVal(r.local,true);e.push(this.finishNode(r,"ImportSpecifier"))}return e}},{"./state":10,"./tokentype":14,"./whitespace":16}],12:[function(e,t,r){"use strict";r.__esModule=true;function n(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=e("./state");var s=e("./tokentype");var a=e("./whitespace");var o=function e(t,r,i,s){n(this,e);this.token=t;this.isExpr=!!r;this.preserveSpace=!!i;this.override=s};r.TokContext=o;var u={b_stat:new o("{",false),b_expr:new o("{",true),b_tmpl:new o("${",true),p_stat:new o("(",false),p_expr:new o("(",true),q_tmpl:new o("`",true,true,function(e){return e.readTmplToken()}),f_expr:new o("function",true)};r.types=u;var c=i.Parser.prototype;c.initialContext=function(){return[u.b_stat]};c.braceIsBlock=function(e){if(e===s.types.colon){var t=this.curContext();if(t===u.b_stat||t===u.b_expr)return!t.isExpr}if(e===s.types._return)return a.lineBreak.test(this.input.slice(this.lastTokEnd,this.start));if(e===s.types._else||e===s.types.semi||e===s.types.eof||e===s.types.parenR)return true;if(e==s.types.braceL)return this.curContext()===u.b_stat;return!this.exprAllowed};c.updateContext=function(e){var t=undefined,r=this.type;if(r.keyword&&e==s.types.dot)this.exprAllowed=false;else if(t=r.updateContext)t.call(this,e);else this.exprAllowed=r.beforeExpr};s.types.parenR.updateContext=s.types.braceR.updateContext=function(){if(this.context.length==1){this.exprAllowed=true;return}var e=this.context.pop();if(e===u.b_stat&&this.curContext()===u.f_expr){this.context.pop();this.exprAllowed=false}else if(e===u.b_tmpl){this.exprAllowed=true}else{this.exprAllowed=!e.isExpr}};s.types.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?u.b_stat:u.b_expr);this.exprAllowed=true};s.types.dollarBraceL.updateContext=function(){this.context.push(u.b_tmpl);this.exprAllowed=true};s.types.parenL.updateContext=function(e){var t=e===s.types._if||e===s.types._for||e===s.types._with||e===s.types._while;this.context.push(t?u.p_stat:u.p_expr);this.exprAllowed=true};s.types.incDec.updateContext=function(){};s.types._function.updateContext=function(){if(this.curContext()!==u.b_stat)this.context.push(u.f_expr);this.exprAllowed=false};s.types.backQuote.updateContext=function(){if(this.curContext()===u.q_tmpl)this.context.pop();else this.context.push(u.q_tmpl);this.exprAllowed=false}},{"./state":10,"./tokentype":14,"./whitespace":16}],13:[function(e,t,r){"use strict";r.__esModule=true;function n(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=e("./identifier");var s=e("./tokentype");var a=e("./state");var o=e("./locutil");var u=e("./whitespace");var c=function e(t){n(this,e);this.type=t.type;this.value=t.value;this.start=t.start;this.end=t.end;if(t.options.locations)this.loc=new o.SourceLocation(t,t.startLoc,t.endLoc);if(t.options.ranges)this.range=[t.start,t.end]};r.Token=c;var l=a.Parser.prototype;var f=typeof Packages=="object"&&Object.prototype.toString.call(Packages)=="[object JavaPackage]";l.next=function(){if(this.options.onToken)this.options.onToken(new c(this));this.lastTokEnd=this.end;this.lastTokStart=this.start;this.lastTokEndLoc=this.endLoc;this.lastTokStartLoc=this.startLoc;this.nextToken()};l.getToken=function(){this.next();return new c(this)};if(typeof Symbol!=="undefined")l[Symbol.iterator]=function(){var e=this;return{next:function t(){var r=e.getToken();return{done:r.type===s.types.eof,value:r}}}};l.setStrict=function(e){this.strict=e;if(this.type!==s.types.num&&this.type!==s.types.string)return;this.pos=this.start;if(this.options.locations){while(this.pos<this.lineStart){this.lineStart=this.input.lastIndexOf("\n",this.lineStart-2)+1;--this.curLine}}this.nextToken()};l.curContext=function(){return this.context[this.context.length-1]};l.nextToken=function(){var e=this.curContext();if(!e||!e.preserveSpace)this.skipSpace();this.start=this.pos;if(this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(s.types.eof);if(e.override)return e.override(this);else this.readToken(this.fullCharCodeAtPos())};l.readToken=function(e){if(i.isIdentifierStart(e,this.options.ecmaVersion>=6)||e===92)return this.readWord();return this.getTokenFromCode(e)};l.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888};l.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition();var t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1)this.raise(this.pos-2,"Unterminated comment");this.pos=r+2;if(this.options.locations){u.lineBreakG.lastIndex=t;var n=undefined;while((n=u.lineBreakG.exec(this.input))&&n.index<this.pos){++this.curLine;this.lineStart=n.index+n[0].length}}if(this.options.onComment)this.options.onComment(true,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};l.skipLineComment=function(e){var t=this.pos;var r=this.options.onComment&&this.curPosition();var n=this.input.charCodeAt(this.pos+=e);while(this.pos<this.input.length&&n!==10&&n!==13&&n!==8232&&n!==8233){++this.pos;n=this.input.charCodeAt(this.pos)}if(this.options.onComment)this.options.onComment(false,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};l.skipSpace=function(){e:while(this.pos<this.input.length){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10){++this.pos}case 10:case 8232:case 8233:++this.pos;if(this.options.locations){++this.curLine;this.lineStart=this.pos}break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&u.nonASCIIwhitespace.test(String.fromCharCode(e))){++this.pos}else{break e}}}};l.finishToken=function(e,t){this.end=this.pos;if(this.options.locations)this.endLoc=this.curPosition();var r=this.type;this.type=e;this.value=t;this.updateContext(r)};l.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(true);var t=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&e===46&&t===46){this.pos+=3;return this.finishToken(s.types.ellipsis)}else{++this.pos;return this.finishToken(s.types.dot)}};l.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);if(this.exprAllowed){++this.pos;return this.readRegexp()}if(e===61)return this.finishOp(s.types.assign,2);return this.finishOp(s.types.slash,1)};l.readToken_mult_modulo=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===61)return this.finishOp(s.types.assign,2);return this.finishOp(e===42?s.types.star:s.types.modulo,1)};l.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e)return this.finishOp(e===124?s.types.logicalOR:s.types.logicalAND,2);if(t===61)return this.finishOp(s.types.assign,2);return this.finishOp(e===124?s.types.bitwiseOR:s.types.bitwiseAND,1)};l.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);if(e===61)return this.finishOp(s.types.assign,2);return this.finishOp(s.types.bitwiseXOR,1)};l.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(t==45&&this.input.charCodeAt(this.pos+2)==62&&u.lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))){this.skipLineComment(3);this.skipSpace();return this.nextToken()}return this.finishOp(s.types.incDec,2)}if(t===61)return this.finishOp(s.types.assign,2);return this.finishOp(s.types.plusMin,1)};l.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1);var r=1;if(t===e){r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2;if(this.input.charCodeAt(this.pos+r)===61)return this.finishOp(s.types.assign,r+1);return this.finishOp(s.types.bitShift,r)}if(t==33&&e==60&&this.input.charCodeAt(this.pos+2)==45&&this.input.charCodeAt(this.pos+3)==45){if(this.inModule)this.unexpected();this.skipLineComment(4);this.skipSpace();return this.nextToken()}if(t===61)r=this.input.charCodeAt(this.pos+2)===61?3:2;return this.finishOp(s.types.relational,r)};l.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===61)return this.finishOp(s.types.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(e===61&&t===62&&this.options.ecmaVersion>=6){this.pos+=2;return this.finishToken(s.types.arrow)}return this.finishOp(e===61?s.types.eq:s.types.prefix,1)};l.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:++this.pos;return this.finishToken(s.types.parenL);case 41:++this.pos;return this.finishToken(s.types.parenR);case 59:++this.pos;return this.finishToken(s.types.semi);case 44:++this.pos;return this.finishToken(s.types.comma);case 91:++this.pos;return this.finishToken(s.types.bracketL);case 93:++this.pos;return this.finishToken(s.types.bracketR);case 123:++this.pos;return this.finishToken(s.types.braceL);case 125:++this.pos;return this.finishToken(s.types.braceR);case 58:++this.pos;return this.finishToken(s.types.colon);case 63:++this.pos;return this.finishToken(s.types.question);case 96:if(this.options.ecmaVersion<6)break;++this.pos;return this.finishToken(s.types.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(false);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(s.types.prefix,1)}this.raise(this.pos,"Unexpected character '"+m(e)+"'")};l.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);this.pos+=t;return this.finishToken(e,r)};function p(e,t,r,n){try{return new RegExp(e,t)}catch(e){if(r!==undefined){if(e instanceof SyntaxError)n.raise(r,"Error parsing regular expression: "+e.message);throw e}}}var h=!!p("","u");l.readRegexp=function(){var e=this;var t=undefined,r=undefined,n=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(u.lineBreak.test(i))this.raise(n,"Unterminated regular expression");if(!t){if(i==="[")r=true;else if(i==="]"&&r)r=false;else if(i==="/"&&!r)break;t=i==="\\"}else t=false;++this.pos}var a=this.input.slice(n,this.pos);++this.pos;var o=this.readWord1();var c=a;if(o){var l=/^[gim]*$/;if(this.options.ecmaVersion>=6)l=/^[gimuy]*$/;if(!l.test(o))this.raise(n,"Invalid regular expression flag");if(o.indexOf("u")>=0&&!h){c=c.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(t,r,i){r=Number("0x"+r);if(r>1114111)e.raise(n+i+3,"Code point out of bounds");return"x"});c=c.replace(/\\u([a-fA-F0-9]{4})|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x")}}var m=null;if(!f){p(c,undefined,n,this);m=p(a,o)}return this.finishToken(s.types.regexp,{pattern:a,flags:o,value:m})};l.readInt=function(e,t){var r=this.pos,n=0;for(var i=0,s=t==null?Infinity:t;i<s;++i){var a=this.input.charCodeAt(this.pos),o=undefined;if(a>=97)o=a-97+10;else if(a>=65)o=a-65+10;else if(a>=48&&a<=57)o=a-48;else o=Infinity;if(o>=e)break;++this.pos;n=n*e+o}if(this.pos===r||t!=null&&this.pos-r!==t)return null;return n};l.readRadixNumber=function(e){this.pos+=2;var t=this.readInt(e);if(t==null)this.raise(this.start+2,"Expected number in radix "+e);if(i.isIdentifierStart(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(s.types.num,t)};l.readNumber=function(e){var t=this.pos,r=false,n=this.input.charCodeAt(this.pos)===48;if(!e&&this.readInt(10)===null)this.raise(t,"Invalid number");var a=this.input.charCodeAt(this.pos);if(a===46){++this.pos;this.readInt(10);r=true;a=this.input.charCodeAt(this.pos)}if(a===69||a===101){a=this.input.charCodeAt(++this.pos);if(a===43||a===45)++this.pos;if(this.readInt(10)===null)this.raise(t,"Invalid number");r=true}if(i.isIdentifierStart(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var o=this.input.slice(t,this.pos),u=undefined;if(r)u=parseFloat(o);else if(!n||o.length===1)u=parseInt(o,10);else if(/[89]/.test(o)||this.strict)this.raise(t,"Invalid number");else u=parseInt(o,8);return this.finishToken(s.types.num,u)};l.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t=undefined;if(e===123){if(this.options.ecmaVersion<6)this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos);++this.pos;if(t>1114111)this.raise(r,"Code point out of bounds")}else{t=this.readHexChar(4)}return t};function m(e){if(e<=65535)return String.fromCharCode(e);e-=65536;return String.fromCharCode((e>>10)+55296,(e&1023)+56320)}l.readString=function(e){var t="",r=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;if(n===92){t+=this.input.slice(r,this.pos);t+=this.readEscapedChar(false);r=this.pos}else{if(u.isNewLine(n))this.raise(this.start,"Unterminated string constant");++this.pos}}t+=this.input.slice(r,this.pos++);return this.finishToken(s.types.string,t)};l.readTmplToken=function(){var e="",t=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123){
|
||
if(this.pos===this.start&&this.type===s.types.template){if(r===36){this.pos+=2;return this.finishToken(s.types.dollarBraceL)}else{++this.pos;return this.finishToken(s.types.backQuote)}}e+=this.input.slice(t,this.pos);return this.finishToken(s.types.template,e)}if(r===92){e+=this.input.slice(t,this.pos);e+=this.readEscapedChar(true);t=this.pos}else if(u.isNewLine(r)){e+=this.input.slice(t,this.pos);++this.pos;switch(r){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r);break}if(this.options.locations){++this.curLine;this.lineStart=this.pos}t=this.pos}else{++this.pos}}};l.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);++this.pos;switch(t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return m(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations){this.lineStart=this.pos;++this.curLine}return"";default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0];var n=parseInt(r,8);if(n>255){r=r.slice(0,-1);n=parseInt(r,8)}if(r!=="0"&&(this.strict||e)){this.raise(this.pos-2,"Octal literal in strict mode")}this.pos+=r.length-1;return String.fromCharCode(n)}return String.fromCharCode(t)}};l.readHexChar=function(e){var t=this.pos;var r=this.readInt(16,e);if(r===null)this.raise(t,"Bad character escape sequence");return r};l.readWord1=function(){this.containsEsc=false;var e="",t=true,r=this.pos;var n=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var s=this.fullCharCodeAtPos();if(i.isIdentifierChar(s,n)){this.pos+=s<=65535?1:2}else if(s===92){this.containsEsc=true;e+=this.input.slice(r,this.pos);var a=this.pos;if(this.input.charCodeAt(++this.pos)!=117)this.raise(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var o=this.readCodePoint();if(!(t?i.isIdentifierStart:i.isIdentifierChar)(o,n))this.raise(a,"Invalid Unicode escape");e+=m(o);r=this.pos}else{break}t=false}return e+this.input.slice(r,this.pos)};l.readWord=function(){var e=this.readWord1();var t=s.types.name;if((this.options.ecmaVersion>=6||!this.containsEsc)&&this.keywords.test(e))t=s.keywords[e];return this.finishToken(t,e)}},{"./identifier":2,"./locutil":5,"./state":10,"./tokentype":14,"./whitespace":16}],14:[function(e,t,r){"use strict";r.__esModule=true;function n(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=function e(t){var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];n(this,e);this.label=t;this.keyword=r.keyword;this.beforeExpr=!!r.beforeExpr;this.startsExpr=!!r.startsExpr;this.isLoop=!!r.isLoop;this.isAssign=!!r.isAssign;this.prefix=!!r.prefix;this.postfix=!!r.postfix;this.binop=r.binop||null;this.updateContext=null};r.TokenType=i;function s(e,t){return new i(e,{beforeExpr:true,binop:t})}var a={beforeExpr:true},o={startsExpr:true};var u={num:new i("num",o),regexp:new i("regexp",o),string:new i("string",o),name:new i("name",o),eof:new i("eof"),bracketL:new i("[",{beforeExpr:true,startsExpr:true}),bracketR:new i("]"),braceL:new i("{",{beforeExpr:true,startsExpr:true}),braceR:new i("}"),parenL:new i("(",{beforeExpr:true,startsExpr:true}),parenR:new i(")"),comma:new i(",",a),semi:new i(";",a),colon:new i(":",a),dot:new i("."),question:new i("?",a),arrow:new i("=>",a),template:new i("template"),ellipsis:new i("...",a),backQuote:new i("`",o),dollarBraceL:new i("${",{beforeExpr:true,startsExpr:true}),eq:new i("=",{beforeExpr:true,isAssign:true}),assign:new i("_=",{beforeExpr:true,isAssign:true}),incDec:new i("++/--",{prefix:true,postfix:true,startsExpr:true}),prefix:new i("prefix",{beforeExpr:true,prefix:true,startsExpr:true}),logicalOR:s("||",1),logicalAND:s("&&",2),bitwiseOR:s("|",3),bitwiseXOR:s("^",4),bitwiseAND:s("&",5),equality:s("==/!=",6),relational:s("</>",7),bitShift:s("<</>>",8),plusMin:new i("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:s("%",10),star:s("*",10),slash:s("/",10)};r.types=u;var c={};r.keywords=c;function l(e){var t=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];t.keyword=e;c[e]=u["_"+e]=new i(e,t)}l("break");l("case",a);l("catch");l("continue");l("debugger");l("default",a);l("do",{isLoop:true,beforeExpr:true});l("else",a);l("finally");l("for",{isLoop:true});l("function",o);l("if");l("return",a);l("switch");l("throw",a);l("try");l("var");l("let");l("const");l("while",{isLoop:true});l("with");l("new",{beforeExpr:true,startsExpr:true});l("this",o);l("super",o);l("class");l("extends",a);l("export");l("import");l("yield",{beforeExpr:true,startsExpr:true});l("null",o);l("true",o);l("false",o);l("in",{beforeExpr:true,binop:7});l("instanceof",{beforeExpr:true,binop:7});l("typeof",{beforeExpr:true,prefix:true,startsExpr:true});l("void",{beforeExpr:true,prefix:true,startsExpr:true});l("delete",{beforeExpr:true,prefix:true,startsExpr:true})},{}],15:[function(e,t,r){"use strict";r.__esModule=true;r.isArray=n;r.has=i;function n(e){return Object.prototype.toString.call(e)==="[object Array]"}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},{}],16:[function(e,t,r){"use strict";r.__esModule=true;r.isNewLine=s;var n=/\r\n?|\n|\u2028|\u2029/;r.lineBreak=n;var i=new RegExp(n.source,"g");r.lineBreakG=i;function s(e){return e===10||e===13||e===8232||e==8233}var a=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;r.nonASCIIwhitespace=a},{}]},{},[3])(3)})}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],8:[function(e,t,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(e){"use strict";var t=typeof Uint8Array!=="undefined"?Uint8Array:Array;var r="+".charCodeAt(0);var i="/".charCodeAt(0);var s="0".charCodeAt(0);var a="a".charCodeAt(0);var o="A".charCodeAt(0);var u="-".charCodeAt(0);var c="_".charCodeAt(0);function l(e){var t=e.charCodeAt(0);if(t===r||t===u)return 62;if(t===i||t===c)return 63;if(t<s)return-1;if(t<s+10)return t-s+26+26;if(t<o+26)return t-o;if(t<a+26)return t-a+26}function f(e){var r,n,i,s,a,o;if(e.length%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var u=e.length;a="="===e.charAt(u-2)?2:"="===e.charAt(u-1)?1:0;o=new t(e.length*3/4-a);i=a>0?e.length-4:e.length;var c=0;function f(e){o[c++]=e}for(r=0,n=0;r<i;r+=4,n+=3){s=l(e.charAt(r))<<18|l(e.charAt(r+1))<<12|l(e.charAt(r+2))<<6|l(e.charAt(r+3));f((s&16711680)>>16);f((s&65280)>>8);f(s&255)}if(a===2){s=l(e.charAt(r))<<2|l(e.charAt(r+1))>>4;f(s&255)}else if(a===1){s=l(e.charAt(r))<<10|l(e.charAt(r+1))<<4|l(e.charAt(r+2))>>2;f(s>>8&255);f(s&255)}return o}function p(e){var t,r=e.length%3,i="",s,a;function o(e){return n.charAt(e)}function u(e){return o(e>>18&63)+o(e>>12&63)+o(e>>6&63)+o(e&63)}for(t=0,a=e.length-r;t<a;t+=3){s=(e[t]<<16)+(e[t+1]<<8)+e[t+2];i+=u(s)}switch(r){case 1:s=e[e.length-1];i+=o(s>>2);i+=o(s<<4&63);i+="==";break;case 2:s=(e[e.length-2]<<8)+e[e.length-1];i+=o(s>>10);i+=o(s>>4&63);i+=o(s<<2&63);i+="=";break}return i}e.toByteArray=f;e.fromByteArray=p})(typeof r==="undefined"?this.base64js={}:r)},{}],9:[function(e,t,r){(function(t){"use strict";var n=e("base64-js");var i=e("ieee754");var s=e("isarray");r.Buffer=c;r.SlowBuffer=N;r.INSPECT_MAX_BYTES=50;c.poolSize=8192;var a={};c.TYPED_ARRAY_SUPPORT=t.TYPED_ARRAY_SUPPORT!==undefined?t.TYPED_ARRAY_SUPPORT:o();function o(){function e(){}try{var t=new Uint8Array(1);t.foo=function(){return 42};t.constructor=e;return t.foo()===42&&t.constructor===e&&typeof t.subarray==="function"&&t.subarray(1,1).byteLength===0}catch(e){return false}}function u(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e){if(!(this instanceof c)){if(arguments.length>1)return new c(e,arguments[1]);return new c(e)}if(!c.TYPED_ARRAY_SUPPORT){this.length=0;this.parent=undefined}if(typeof e==="number"){return l(this,e)}if(typeof e==="string"){return f(this,e,arguments.length>1?arguments[1]:"utf8")}return p(this,e)}function l(e,t){e=_(e,t<0?0:v(t)|0);if(!c.TYPED_ARRAY_SUPPORT){for(var r=0;r<t;r++){e[r]=0}}return e}function f(e,t,r){if(typeof r!=="string"||r==="")r="utf8";var n=A(t,r)|0;e=_(e,n);e.write(t,r);return e}function p(e,t){if(c.isBuffer(t))return h(e,t);if(s(t))return m(e,t);if(t==null){throw new TypeError("must start with number, buffer, array or string")}if(typeof ArrayBuffer!=="undefined"){if(t.buffer instanceof ArrayBuffer){return d(e,t)}if(t instanceof ArrayBuffer){return E(e,t)}}if(t.length)return g(e,t);return y(e,t)}function h(e,t){var r=v(t.length)|0;e=_(e,r);t.copy(e,0,0,r);return e}function m(e,t){var r=v(t.length)|0;e=_(e,r);for(var n=0;n<r;n+=1){e[n]=t[n]&255}return e}function d(e,t){var r=v(t.length)|0;e=_(e,r);for(var n=0;n<r;n+=1){e[n]=t[n]&255}return e}function E(e,t){if(c.TYPED_ARRAY_SUPPORT){t.byteLength;e=c._augment(new Uint8Array(t))}else{e=d(e,new Uint8Array(t))}return e}function g(e,t){var r=v(t.length)|0;e=_(e,r);for(var n=0;n<r;n+=1){e[n]=t[n]&255}return e}function y(e,t){var r;var n=0;if(t.type==="Buffer"&&s(t.data)){r=t.data;n=v(r.length)|0}e=_(e,n);for(var i=0;i<n;i+=1){e[i]=r[i]&255}return e}if(c.TYPED_ARRAY_SUPPORT){c.prototype.__proto__=Uint8Array.prototype;c.__proto__=Uint8Array}else{c.prototype.length=undefined;c.prototype.parent=undefined}function _(e,t){if(c.TYPED_ARRAY_SUPPORT){e=c._augment(new Uint8Array(t));e.__proto__=c.prototype}else{e.length=t;e._isBuffer=true}var r=t!==0&&t<=c.poolSize>>>1;if(r)e.parent=a;return e}function v(e){if(e>=u()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+u().toString(16)+" bytes")}return e|0}function N(e,t){if(!(this instanceof N))return new N(e,t);var r=new c(e,t);delete r.parent;return r}c.isBuffer=function e(t){return!!(t!=null&&t._isBuffer)};c.compare=function e(t,r){if(!c.isBuffer(t)||!c.isBuffer(r)){throw new TypeError("Arguments must be Buffers")}if(t===r)return 0;var n=t.length;var i=r.length;var s=0;var a=Math.min(n,i);while(s<a){if(t[s]!==r[s])break;++s}if(s!==a){n=t[s];i=r[s]}if(n<i)return-1;if(i<n)return 1;return 0};c.isEncoding=function e(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};c.concat=function e(t,r){if(!s(t))throw new TypeError("list argument must be an Array of Buffers.");if(t.length===0){return new c(0)}var n;if(r===undefined){r=0;for(n=0;n<t.length;n++){r+=t[n].length}}var i=new c(r);var a=0;for(n=0;n<t.length;n++){var o=t[n];o.copy(i,a);a+=o.length}return i};function A(e,t){if(typeof e!=="string")e=""+e;var r=e.length;if(r===0)return 0;var n=false;for(;;){switch(t){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(n)return J(e).length;t=(""+t).toLowerCase();n=true}}}c.byteLength=A;function S(e,t,r){var n=false;t=t|0;r=r===undefined||r===Infinity?this.length:r|0;if(!e)e="utf8";if(t<0)t=0;if(r>this.length)r=this.length;if(r<=t)return"";while(true){switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return R(this,t,r);case"binary":return P(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=true}}}c.prototype.toString=function e(){var t=this.length|0;if(t===0)return"";if(arguments.length===0)return O(this,0,t);return S.apply(this,arguments)};c.prototype.equals=function e(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return true;return c.compare(this,t)===0};c.prototype.inspect=function e(){var t="";var n=r.INSPECT_MAX_BYTES;if(this.length>0){t=this.toString("hex",0,n).match(/.{2}/g).join(" ");if(this.length>n)t+=" ... "}return"<Buffer "+t+">"};c.prototype.compare=function e(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return 0;return c.compare(this,t)};c.prototype.indexOf=function e(t,r){if(r>2147483647)r=2147483647;else if(r<-2147483648)r=-2147483648;r>>=0;if(this.length===0)return-1;if(r>=this.length)return-1;if(r<0)r=Math.max(this.length+r,0);if(typeof t==="string"){if(t.length===0)return-1;return String.prototype.indexOf.call(this,t,r)}if(c.isBuffer(t)){return n(this,t,r)}if(typeof t==="number"){if(c.TYPED_ARRAY_SUPPORT&&Uint8Array.prototype.indexOf==="function"){return Uint8Array.prototype.indexOf.call(this,t,r)}return n(this,[t],r)}function n(e,t,r){var n=-1;for(var i=0;r+i<e.length;i++){if(e[r+i]===t[n===-1?0:i-n]){if(n===-1)n=i;if(i-n+1===t.length)return r+n}else{n=-1}}return-1}throw new TypeError("val must be string, number or Buffer")};c.prototype.get=function e(t){console.log(".get() is deprecated. Access using array indexes instead.");return this.readUInt8(t)};c.prototype.set=function e(t,r){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(t,r)};function T(e,t,r,n){r=Number(r)||0;var i=e.length-r;if(!n){n=i}else{n=Number(n);if(n>i){n=i}}var s=t.length;if(s%2!==0)throw new Error("Invalid hex string");if(n>s/2){n=s/2}for(var a=0;a<n;a++){var o=parseInt(t.substr(a*2,2),16);if(isNaN(o))throw new Error("Invalid hex string");e[r+a]=o}return a}function C(e,t,r,n){return ee(J(t,e.length-r),e,r,n)}function b(e,t,r,n){return ee(K(t),e,r,n)}function D(e,t,r,n){return b(e,t,r,n)}function x(e,t,r,n){return ee(Z(t),e,r,n)}function F(e,t,r,n){return ee(Q(t,e.length-r),e,r,n)}c.prototype.write=function e(t,r,n,i){if(r===undefined){i="utf8";n=this.length;r=0}else if(n===undefined&&typeof r==="string"){i=r;n=this.length;r=0}else if(isFinite(r)){r=r|0;if(isFinite(n)){n=n|0;if(i===undefined)i="utf8"}else{i=n;n=undefined}}else{var s=i;i=r;r=n|0;n=s}var a=this.length-r;if(n===undefined||n>a)n=a;if(t.length>0&&(n<0||r<0)||r>this.length){throw new RangeError("attempt to write outside buffer bounds")}if(!i)i="utf8";var o=false;for(;;){switch(i){case"hex":return T(this,t,r,n);case"utf8":case"utf-8":return C(this,t,r,n);case"ascii":return b(this,t,r,n);case"binary":return D(this,t,r,n);case"base64":return x(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase();o=true}}};c.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(e,t,r){if(t===0&&r===e.length){return n.fromByteArray(e)}else{return n.fromByteArray(e.slice(t,r))}}function O(e,t,r){r=Math.min(e.length,r);var n=[];var i=t;while(i<r){var s=e[i];var a=null;var o=s>239?4:s>223?3:s>191?2:1;if(i+o<=r){var u,c,l,f;switch(o){case 1:if(s<128){a=s}break;case 2:u=e[i+1];if((u&192)===128){f=(s&31)<<6|u&63;if(f>127){a=f}}break;case 3:u=e[i+1];c=e[i+2];if((u&192)===128&&(c&192)===128){f=(s&15)<<12|(u&63)<<6|c&63;if(f>2047&&(f<55296||f>57343)){a=f}}break;case 4:u=e[i+1];c=e[i+2];l=e[i+3];if((u&192)===128&&(c&192)===128&&(l&192)===128){f=(s&15)<<18|(u&63)<<12|(c&63)<<6|l&63;if(f>65535&&f<1114112){a=f}}}}if(a===null){a=65533;o=1}else if(a>65535){a-=65536;n.push(a>>>10&1023|55296);a=56320|a&1023}n.push(a);i+=o}return B(n)}var w=4096;function B(e){var t=e.length;if(t<=w){return String.fromCharCode.apply(String,e)}var r="";var n=0;while(n<t){r+=String.fromCharCode.apply(String,e.slice(n,n+=w))}return r}function R(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;i++){n+=String.fromCharCode(e[i]&127)}return n}function P(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;i++){n+=String.fromCharCode(e[i])}return n}function L(e,t,r){var n=e.length;if(!t||t<0)t=0;if(!r||r<0||r>n)r=n;var i="";for(var s=t;s<r;s++){i+=$(e[s])}return i}function M(e,t,r){var n=e.slice(t,r);var i="";for(var s=0;s<n.length;s+=2){i+=String.fromCharCode(n[s]+n[s+1]*256)}return i}c.prototype.slice=function e(t,r){var n=this.length;t=~~t;r=r===undefined?n:~~r;if(t<0){t+=n;if(t<0)t=0}else if(t>n){t=n}if(r<0){r+=n;if(r<0)r=0}else if(r>n){r=n}if(r<t)r=t;var i;if(c.TYPED_ARRAY_SUPPORT){i=c._augment(this.subarray(t,r))}else{var s=r-t;i=new c(s,undefined);for(var a=0;a<s;a++){i[a]=this[a+t]}}if(i.length)i.parent=this.parent||this;return i};function k(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)k(t,r,this.length);var i=this[t];var s=1;var a=0;while(++a<r&&(s*=256)){i+=this[t+a]*s}return i};c.prototype.readUIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n){k(t,r,this.length)}var i=this[t+--r];var s=1;while(r>0&&(s*=256)){i+=this[t+--r]*s}return i};c.prototype.readUInt8=function e(t,r){if(!r)k(t,1,this.length);return this[t]};c.prototype.readUInt16LE=function e(t,r){if(!r)k(t,2,this.length);return this[t]|this[t+1]<<8};c.prototype.readUInt16BE=function e(t,r){if(!r)k(t,2,this.length);return this[t]<<8|this[t+1]};c.prototype.readUInt32LE=function e(t,r){if(!r)k(t,4,this.length);return(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};c.prototype.readUInt32BE=function e(t,r){if(!r)k(t,4,this.length);return this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};c.prototype.readIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)k(t,r,this.length);var i=this[t];var s=1;var a=0;while(++a<r&&(s*=256)){i+=this[t+a]*s}s*=128;if(i>=s)i-=Math.pow(2,8*r);return i};c.prototype.readIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n)k(t,r,this.length);var i=r;var s=1;var a=this[t+--i];while(i>0&&(s*=256)){a+=this[t+--i]*s}s*=128;if(a>=s)a-=Math.pow(2,8*r);return a};c.prototype.readInt8=function e(t,r){if(!r)k(t,1,this.length);if(!(this[t]&128))return this[t];return(255-this[t]+1)*-1};c.prototype.readInt16LE=function e(t,r){if(!r)k(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function e(t,r){if(!r)k(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function e(t,r){if(!r)k(t,4,this.length);return this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};c.prototype.readInt32BE=function e(t,r){if(!r)k(t,4,this.length);return this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};c.prototype.readFloatLE=function e(t,r){if(!r)k(t,4,this.length);return i.read(this,t,true,23,4)};c.prototype.readFloatBE=function e(t,r){if(!r)k(t,4,this.length);return i.read(this,t,false,23,4)};c.prototype.readDoubleLE=function e(t,r){if(!r)k(t,8,this.length);return i.read(this,t,true,52,8)};c.prototype.readDoubleBE=function e(t,r){if(!r)k(t,8,this.length);return i.read(this,t,false,52,8)};function V(e,t,r,n,i,s){if(!c.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>i||t<s)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range")}c.prototype.writeUIntLE=function e(t,r,n,i){t=+t;r=r|0;n=n|0;if(!i)V(this,t,r,n,Math.pow(2,8*n),0);var s=1;var a=0;this[r]=t&255;while(++a<n&&(s*=256)){this[r+a]=t/s&255}return r+n};c.prototype.writeUIntBE=function e(t,r,n,i){t=+t;r=r|0;n=n|0;if(!i)V(this,t,r,n,Math.pow(2,8*n),0);var s=n-1;var a=1;this[r+s]=t&255;while(--s>=0&&(a*=256)){this[r+s]=t/a&255}return r+n};c.prototype.writeUInt8=function e(t,r,n){t=+t;r=r|0;if(!n)V(this,t,r,1,255,0);if(!c.TYPED_ARRAY_SUPPORT)t=Math.floor(t);this[r]=t&255;return r+1};function j(e,t,r,n){if(t<0)t=65535+t+1;for(var i=0,s=Math.min(e.length-r,2);i<s;i++){e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}}c.prototype.writeUInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)V(this,t,r,2,65535,0);if(c.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{j(this,t,r,true)}return r+2};c.prototype.writeUInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)V(this,t,r,2,65535,0);if(c.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{j(this,t,r,false)}return r+2};function U(e,t,r,n){if(t<0)t=4294967295+t+1;for(var i=0,s=Math.min(e.length-r,4);i<s;i++){e[r+i]=t>>>(n?i:3-i)*8&255}}c.prototype.writeUInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)V(this,t,r,4,4294967295,0);if(c.TYPED_ARRAY_SUPPORT){this[r+3]=t>>>24;this[r+2]=t>>>16;this[r+1]=t>>>8;this[r]=t&255}else{U(this,t,r,true)}return r+4};c.prototype.writeUInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)V(this,t,r,4,4294967295,0);if(c.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{U(this,t,r,false)}return r+4};c.prototype.writeIntLE=function e(t,r,n,i){t=+t;r=r|0;if(!i){var s=Math.pow(2,8*n-1);V(this,t,r,n,s-1,-s)}var a=0;var o=1;var u=t<0?1:0;this[r]=t&255;while(++a<n&&(o*=256)){this[r+a]=(t/o>>0)-u&255}return r+n};c.prototype.writeIntBE=function e(t,r,n,i){t=+t;r=r|0;if(!i){var s=Math.pow(2,8*n-1);V(this,t,r,n,s-1,-s)}var a=n-1;var o=1;var u=t<0?1:0;this[r+a]=t&255;while(--a>=0&&(o*=256)){this[r+a]=(t/o>>0)-u&255}return r+n};c.prototype.writeInt8=function e(t,r,n){t=+t;r=r|0;if(!n)V(this,t,r,1,127,-128);if(!c.TYPED_ARRAY_SUPPORT)t=Math.floor(t);if(t<0)t=255+t+1;this[r]=t&255;return r+1};c.prototype.writeInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)V(this,t,r,2,32767,-32768);if(c.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{j(this,t,r,true)}return r+2};c.prototype.writeInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)V(this,t,r,2,32767,-32768);if(c.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{j(this,t,r,false)}return r+2};c.prototype.writeInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)V(this,t,r,4,2147483647,-2147483648);if(c.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8;this[r+2]=t>>>16;this[r+3]=t>>>24}else{U(this,t,r,true)}return r+4};c.prototype.writeInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)V(this,t,r,4,2147483647,-2147483648);if(t<0)t=4294967295+t+1;if(c.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{U(this,t,r,false)}return r+4};function G(e,t,r,n,i,s){if(t>i||t<s)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range");if(r<0)throw new RangeError("index out of range")}function X(e,t,r,n,s){if(!s){G(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38)}i.write(e,t,r,n,23,4);return r+4}c.prototype.writeFloatLE=function e(t,r,n){return X(this,t,r,true,n)};c.prototype.writeFloatBE=function e(t,r,n){return X(this,t,r,false,n)};function q(e,t,r,n,s){if(!s){G(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308)}i.write(e,t,r,n,52,8);return r+8}c.prototype.writeDoubleLE=function e(t,r,n){return q(this,t,r,true,n)};c.prototype.writeDoubleBE=function e(t,r,n){return q(this,t,r,false,n)};c.prototype.copy=function e(t,r,n,i){if(!n)n=0;if(!i&&i!==0)i=this.length;if(r>=t.length)r=t.length;if(!r)r=0;if(i>0&&i<n)i=n;if(i===n)return 0;if(t.length===0||this.length===0)return 0;if(r<0){throw new RangeError("targetStart out of bounds")}if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");if(i>this.length)i=this.length;if(t.length-r<i-n){i=t.length-r+n}var s=i-n;var a;if(this===t&&n<r&&r<i){for(a=s-1;a>=0;a--){t[a+r]=this[a+n]}}else if(s<1e3||!c.TYPED_ARRAY_SUPPORT){for(a=0;a<s;a++){t[a+r]=this[a+n]}}else{t._set(this.subarray(n,n+s),r)}return s};c.prototype.fill=function e(t,r,n){if(!t)t=0;if(!r)r=0;if(!n)n=this.length;if(n<r)throw new RangeError("end < start");if(n===r)return;if(this.length===0)return;if(r<0||r>=this.length)throw new RangeError("start out of bounds");if(n<0||n>this.length)throw new RangeError("end out of bounds");var i;if(typeof t==="number"){for(i=r;i<n;i++){this[i]=t}}else{var s=J(t.toString());var a=s.length;for(i=r;i<n;i++){this[i]=s[i%a]}}return this};c.prototype.toArrayBuffer=function e(){if(typeof Uint8Array!=="undefined"){if(c.TYPED_ARRAY_SUPPORT){return new c(this).buffer}else{var t=new Uint8Array(this.length);for(var r=0,n=t.length;r<n;r+=1){t[r]=this[r]}return t.buffer}}else{throw new TypeError("Buffer.toArrayBuffer not supported in this browser")}};var H=c.prototype;c._augment=function e(t){t.constructor=c;t._isBuffer=true;t._set=t.set;t.get=H.get;t.set=H.set;t.write=H.write;t.toString=H.toString;t.toLocaleString=H.toString;t.toJSON=H.toJSON;t.equals=H.equals;t.compare=H.compare;t.indexOf=H.indexOf;t.copy=H.copy;t.slice=H.slice;t.readUIntLE=H.readUIntLE;t.readUIntBE=H.readUIntBE;t.readUInt8=H.readUInt8;t.readUInt16LE=H.readUInt16LE;t.readUInt16BE=H.readUInt16BE;t.readUInt32LE=H.readUInt32LE;t.readUInt32BE=H.readUInt32BE;t.readIntLE=H.readIntLE;t.readIntBE=H.readIntBE;t.readInt8=H.readInt8;t.readInt16LE=H.readInt16LE;t.readInt16BE=H.readInt16BE;t.readInt32LE=H.readInt32LE;t.readInt32BE=H.readInt32BE;t.readFloatLE=H.readFloatLE;t.readFloatBE=H.readFloatBE;t.readDoubleLE=H.readDoubleLE;t.readDoubleBE=H.readDoubleBE;t.writeUInt8=H.writeUInt8;t.writeUIntLE=H.writeUIntLE;t.writeUIntBE=H.writeUIntBE;t.writeUInt16LE=H.writeUInt16LE;t.writeUInt16BE=H.writeUInt16BE;t.writeUInt32LE=H.writeUInt32LE;t.writeUInt32BE=H.writeUInt32BE;t.writeIntLE=H.writeIntLE;t.writeIntBE=H.writeIntBE;t.writeInt8=H.writeInt8;t.writeInt16LE=H.writeInt16LE;t.writeInt16BE=H.writeInt16BE;t.writeInt32LE=H.writeInt32LE;t.writeInt32BE=H.writeInt32BE;t.writeFloatLE=H.writeFloatLE;t.writeFloatBE=H.writeFloatBE;t.writeDoubleLE=H.writeDoubleLE;t.writeDoubleBE=H.writeDoubleBE;t.fill=H.fill;t.inspect=H.inspect;t.toArrayBuffer=H.toArrayBuffer;return t};var Y=/[^+\/0-9A-Za-z-_]/g;function W(e){e=z(e).replace(Y,"");if(e.length<2)return"";while(e.length%4!==0){e=e+"="}return e}function z(e){if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}function $(e){if(e<16)return"0"+e.toString(16);return e.toString(16)}function J(e,t){t=t||Infinity;var r;var n=e.length;var i=null;var s=[];for(var a=0;a<n;a++){r=e.charCodeAt(a);if(r>55295&&r<57344){if(!i){if(r>56319){if((t-=3)>-1)s.push(239,191,189);continue}else if(a+1===n){if((t-=3)>-1)s.push(239,191,189);continue}i=r;continue}if(r<56320){if((t-=3)>-1)s.push(239,191,189);i=r;continue}r=(i-55296<<10|r-56320)+65536}else if(i){if((t-=3)>-1)s.push(239,191,189)}i=null;if(r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{throw new Error("Invalid code point")}}return s}function K(e){var t=[];for(var r=0;r<e.length;r++){t.push(e.charCodeAt(r)&255)}return t}function Q(e,t){var r,n,i;var s=[];for(var a=0;a<e.length;a++){if((t-=2)<0)break;r=e.charCodeAt(a);n=r>>8;i=r%256;s.push(i);s.push(n)}return s}function Z(e){return n.toByteArray(W(e))}function ee(e,t,r,n){for(var i=0;i<n;i++){if(i+r>=t.length||i>=e.length)break;t[i+r]=e[i]}return i}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"base64-js":8,ieee754:75,isarray:77}],10:[function(e,t,r){"use strict";var n=e("es5-ext/object/copy"),i=e("es5-ext/object/normalize-options"),s=e("es5-ext/object/valid-callable"),a=e("es5-ext/object/map"),o=e("es5-ext/object/valid-callable"),u=e("es5-ext/object/valid-value"),c=Function.prototype.bind,l=Object.defineProperty,f=Object.prototype.hasOwnProperty,p;p=function(e,t,r){var i=u(t)&&o(t.value),s;s=n(t);delete s.writable;delete s.value;s.get=function(){if(!r.overwriteDefinition&&f.call(this,e))return i;t.value=c.call(i,r.resolveContext?r.resolveContext(this):this);l(this,e,t);return this[e]};return s};t.exports=function(e){var t=i(arguments[1]);if(t.resolveContext!=null)s(t.resolveContext);return a(e,function(e,r){return p(r,e,t)})}},{"es5-ext/object/copy":28,"es5-ext/object/map":37,"es5-ext/object/normalize-options":38,"es5-ext/object/valid-callable":42,"es5-ext/object/valid-value":44}],11:[function(e,t,r){"use strict";var n=e("es5-ext/object/assign"),i=e("es5-ext/object/normalize-options"),s=e("es5-ext/object/is-callable"),a=e("es5-ext/string/#/contains"),o;o=t.exports=function(e,t){var r,s,o,u,c;if(arguments.length<2||typeof e!=="string"){u=t;t=e;e=null}else{u=arguments[2]}if(e==null){r=o=true;s=false}else{r=a.call(e,"c");s=a.call(e,"e");o=a.call(e,"w")}c={value:t,configurable:r,enumerable:s,writable:o};return!u?c:n(i(u),c)};o.gs=function(e,t,r){var o,u,c,l;if(typeof e!=="string"){c=r;r=t;t=e;e=null}else{c=arguments[3]}if(t==null){t=undefined}else if(!s(t)){c=t;t=r=undefined}else if(r==null){r=undefined}else if(!s(r)){c=r;r=undefined}if(e==null){o=true;u=false}else{o=a.call(e,"c");u=a.call(e,"e")}l={get:t,set:r,configurable:o,enumerable:u};return!c?l:n(i(c),l)}},{"es5-ext/object/assign":25,"es5-ext/object/is-callable":31,"es5-ext/object/normalize-options":38,"es5-ext/string/#/contains":45}],12:[function(e,t,r){"use strict";var n=e("../../object/valid-value");t.exports=function(){n(this).length=0;return this}},{"../../object/valid-value":44}],13:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Array.from:e("./shim")},{"./is-implemented":14,"./shim":15}],14:[function(e,t,r){"use strict";t.exports=function(){var e=Array.from,t,r;if(typeof e!=="function")return false;t=["raz","dwa"];r=e(t);return Boolean(r&&r!==t&&r[1]==="dwa")}},{}],15:[function(e,t,r){"use strict";var n=e("es6-symbol").iterator,i=e("../../function/is-arguments"),s=e("../../function/is-function"),a=e("../../number/to-pos-integer"),o=e("../../object/valid-callable"),u=e("../../object/valid-value"),c=e("../../object/is-value"),l=e("../../string/is-string"),f=Array.isArray,p=Function.prototype.call,h={configurable:true,enumerable:true,writable:true,value:null},m=Object.defineProperty;t.exports=function(e){var t=arguments[1],r=arguments[2],d,E,g,y,_,v,N,A,S,T;e=Object(u(e));if(c(t))o(t);if(!this||this===Array||!s(this)){if(!t){if(i(e)){_=e.length;if(_!==1)return Array.apply(null,e);y=new Array(1);y[0]=e[0];return y}if(f(e)){y=new Array(_=e.length);for(E=0;E<_;++E)y[E]=e[E];return y}}y=[]}else{d=this}if(!f(e)){if((S=e[n])!==undefined){N=o(S).call(e);if(d)y=new d;A=N.next();E=0;while(!A.done){T=t?p.call(t,r,A.value,E):A.value;if(d){h.value=T;m(y,E,h)}else{y[E]=T}A=N.next();++E}_=E}else if(l(e)){_=e.length;if(d)y=new d;for(E=0,g=0;E<_;++E){T=e[E];if(E+1<_){v=T.charCodeAt(0);if(v>=55296&&v<=56319)T+=e[++E]}T=t?p.call(t,r,T,g):T;if(d){h.value=T;m(y,g,h)}else{y[g]=T}++g}_=g}}if(_===undefined){_=a(e.length);if(d)y=new d(_);for(E=0;E<_;++E){T=t?p.call(t,r,e[E],E):e[E];if(d){h.value=T;m(y,E,h)}else{y[E]=T}}}if(d){h.value=null;y.length=_}return y}},{"../../function/is-arguments":16,"../../function/is-function":17,"../../number/to-pos-integer":23,"../../object/is-value":33,"../../object/valid-callable":42,"../../object/valid-value":44,"../../string/is-string":48,"es6-symbol":57}],16:[function(e,t,r){"use strict";var n=Object.prototype.toString,i=n.call(function(){return arguments}());t.exports=function(e){return n.call(e)===i}},{}],17:[function(e,t,r){"use strict";var n=Object.prototype.toString,i=n.call(e("./noop"));t.exports=function(e){return typeof e==="function"&&n.call(e)===i}},{"./noop":18}],18:[function(e,t,r){"use strict";t.exports=function(){}},{}],19:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Math.sign:e("./shim")},{"./is-implemented":20,"./shim":21}],20:[function(e,t,r){"use strict";t.exports=function(){var e=Math.sign;if(typeof e!=="function")return false;return e(10)===1&&e(-20)===-1}},{}],21:[function(e,t,r){"use strict";t.exports=function(e){e=Number(e);if(isNaN(e)||e===0)return e;return e>0?1:-1}},{}],22:[function(e,t,r){"use strict";var n=e("../math/sign"),i=Math.abs,s=Math.floor;t.exports=function(e){if(isNaN(e))return 0;e=Number(e);if(e===0||!isFinite(e))return e;return n(e)*s(i(e))}},{"../math/sign":19}],23:[function(e,t,r){"use strict";var n=e("./to-integer"),i=Math.max;t.exports=function(e){return i(0,n(e))}},{"./to-integer":22}],24:[function(e,t,r){"use strict"
|
||
;var n=e("./valid-callable"),i=e("./valid-value"),s=Function.prototype.bind,a=Function.prototype.call,o=Object.keys,u=Object.prototype.propertyIsEnumerable;t.exports=function(e,t){return function(r,c){var l,f=arguments[2],p=arguments[3];r=Object(i(r));n(c);l=o(r);if(p){l.sort(typeof p==="function"?s.call(p,r):undefined)}if(typeof e!=="function")e=l[e];return a.call(e,l,function(e,n){if(!u.call(r,e))return t;return a.call(c,f,r[e],e,r,n)})}}},{"./valid-callable":42,"./valid-value":44}],25:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Object.assign:e("./shim")},{"./is-implemented":26,"./shim":27}],26:[function(e,t,r){"use strict";t.exports=function(){var e=Object.assign,t;if(typeof e!=="function")return false;t={foo:"raz"};e(t,{bar:"dwa"},{trzy:"trzy"});return t.foo+t.bar+t.trzy==="razdwatrzy"}},{}],27:[function(e,t,r){"use strict";var n=e("../keys"),i=e("../valid-value"),s=Math.max;t.exports=function(e,t){var r,a,o=s(arguments.length,2),u;e=Object(i(e));u=function(n){try{e[n]=t[n]}catch(e){if(!r)r=e}};for(a=1;a<o;++a){t=arguments[a];n(t).forEach(u)}if(r!==undefined)throw r;return e}},{"../keys":34,"../valid-value":44}],28:[function(e,t,r){"use strict";var n=e("../array/from"),i=e("./assign"),s=e("./valid-value");t.exports=function(e){var t=Object(s(e)),r=arguments[1],a=Object(arguments[2]);if(t!==e&&!r)return t;var o={};if(r){n(r,function(t){if(a.ensure||t in e)o[t]=e[t]})}else{i(o,e)}return o}},{"../array/from":13,"./assign":25,"./valid-value":44}],29:[function(e,t,r){"use strict";var n=Object.create,i;if(!e("./set-prototype-of/is-implemented")()){i=e("./set-prototype-of/shim")}t.exports=function(){var e,t,r;if(!i)return n;if(i.level!==1)return n;e={};t={};r={configurable:false,enumerable:false,writable:true,value:undefined};Object.getOwnPropertyNames(Object.prototype).forEach(function(e){if(e==="__proto__"){t[e]={configurable:true,enumerable:false,writable:true,value:undefined};return}t[e]=r});Object.defineProperties(e,t);Object.defineProperty(i,"nullPolyfill",{configurable:false,enumerable:false,writable:false,value:e});return function(t,r){return n(t===null?e:t,r)}}()},{"./set-prototype-of/is-implemented":40,"./set-prototype-of/shim":41}],30:[function(e,t,r){"use strict";t.exports=e("./_iterate")("forEach")},{"./_iterate":24}],31:[function(e,t,r){"use strict";t.exports=function(e){return typeof e==="function"}},{}],32:[function(e,t,r){"use strict";var n=e("./is-value");var i={function:true,object:true};t.exports=function(e){return n(e)&&i[typeof e]||false}},{"./is-value":33}],33:[function(e,t,r){"use strict";var n=e("../function/noop")();t.exports=function(e){return e!==n&&e!==null}},{"../function/noop":18}],34:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Object.keys:e("./shim")},{"./is-implemented":35,"./shim":36}],35:[function(e,t,r){"use strict";t.exports=function(){try{Object.keys("primitive");return true}catch(e){return false}}},{}],36:[function(e,t,r){"use strict";var n=e("../is-value");var i=Object.keys;t.exports=function(e){return i(n(e)?Object(e):e)}},{"../is-value":33}],37:[function(e,t,r){"use strict";var n=e("./valid-callable"),i=e("./for-each"),s=Function.prototype.call;t.exports=function(e,t){var r={},a=arguments[2];n(t);i(e,function(e,n,i,o){r[n]=s.call(t,a,e,n,i,o)});return r}},{"./for-each":30,"./valid-callable":42}],38:[function(e,t,r){"use strict";var n=e("./is-value");var i=Array.prototype.forEach,s=Object.create;var a=function(e,t){var r;for(r in e)t[r]=e[r]};t.exports=function(e){var t=s(null);i.call(arguments,function(e){if(!n(e))return;a(Object(e),t)});return t}},{"./is-value":33}],39:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Object.setPrototypeOf:e("./shim")},{"./is-implemented":40,"./shim":41}],40:[function(e,t,r){"use strict";var n=Object.create,i=Object.getPrototypeOf,s={};t.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||n;if(typeof e!=="function")return false;return i(e(t(null),s))===s}},{}],41:[function(e,t,r){"use strict";var n=e("../is-object"),i=e("../valid-value"),s=Object.prototype.isPrototypeOf,a=Object.defineProperty,o={configurable:true,enumerable:false,writable:true,value:undefined},u;u=function(e,t){i(e);if(t===null||n(t))return e;throw new TypeError("Prototype must be null or an object")};t.exports=function(e){var t,r;if(!e)return null;if(e.level===2){if(e.set){r=e.set;t=function(e,t){r.call(u(e,t),t);return e}}else{t=function(e,t){u(e,t).__proto__=t;return e}}}else{t=function e(t,r){var n;u(t,r);n=s.call(e.nullPolyfill,t);if(n)delete e.nullPolyfill.__proto__;if(r===null)r=e.nullPolyfill;t.__proto__=r;if(n)a(e.nullPolyfill,"__proto__",o);return t}}return Object.defineProperty(t,"level",{configurable:false,enumerable:false,writable:false,value:e.level})}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set;r.call(e,t)}catch(e){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}e.__proto__=t;if(Object.getPrototypeOf(e)===t)return{level:2};e={};e.__proto__=t;if(Object.getPrototypeOf(e)===t)return{level:1};return false}());e("../create")},{"../create":29,"../is-object":32,"../valid-value":44}],42:[function(e,t,r){"use strict";t.exports=function(e){if(typeof e!=="function")throw new TypeError(e+" is not a function");return e}},{}],43:[function(e,t,r){"use strict";var n=e("./is-object");t.exports=function(e){if(!n(e))throw new TypeError(e+" is not an Object");return e}},{"./is-object":32}],44:[function(e,t,r){"use strict";var n=e("./is-value");t.exports=function(e){if(!n(e))throw new TypeError("Cannot use null or undefined");return e}},{"./is-value":33}],45:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?String.prototype.contains:e("./shim")},{"./is-implemented":46,"./shim":47}],46:[function(e,t,r){"use strict";var n="razdwatrzy";t.exports=function(){if(typeof n.contains!=="function")return false;return n.contains("dwa")===true&&n.contains("foo")===false}},{}],47:[function(e,t,r){"use strict";var n=String.prototype.indexOf;t.exports=function(e){return n.call(this,e,arguments[1])>-1}},{}],48:[function(e,t,r){"use strict";var n=Object.prototype.toString,i=n.call("");t.exports=function(e){return typeof e==="string"||e&&typeof e==="object"&&(e instanceof String||n.call(e)===i)||false}},{}],49:[function(e,t,r){"use strict";var n=Object.create(null),i=Math.random;t.exports=function(){var e;do{e=i().toString(36).slice(2)}while(n[e]);return e}},{}],50:[function(e,t,r){"use strict";var n=e("es5-ext/object/set-prototype-of"),i=e("es5-ext/string/#/contains"),s=e("d"),a=e("es6-symbol"),o=e("./");var u=Object.defineProperty,c;c=t.exports=function(e,t){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");o.call(this,e);if(!t)t="value";else if(i.call(t,"key+value"))t="key+value";else if(i.call(t,"key"))t="key";else t="value";u(this,"__kind__",s("",t))};if(n)n(c,o);delete c.prototype.constructor;c.prototype=Object.create(o.prototype,{_resolve:s(function(e){if(this.__kind__==="value")return this.__list__[e];if(this.__kind__==="key+value")return[e,this.__list__[e]];return e})});u(c.prototype,a.toStringTag,s("c","Array Iterator"))},{"./":53,d:11,"es5-ext/object/set-prototype-of":39,"es5-ext/string/#/contains":45,"es6-symbol":57}],51:[function(e,t,r){"use strict";var n=e("es5-ext/function/is-arguments"),i=e("es5-ext/object/valid-callable"),s=e("es5-ext/string/is-string"),a=e("./get");var o=Array.isArray,u=Function.prototype.call,c=Array.prototype.some;t.exports=function(e,t){var r,l=arguments[2],f,p,h,m,d,E,g;if(o(e)||n(e))r="array";else if(s(e))r="string";else e=a(e);i(t);p=function(){h=true};if(r==="array"){c.call(e,function(e){u.call(t,l,e,p);return h});return}if(r==="string"){d=e.length;for(m=0;m<d;++m){E=e[m];if(m+1<d){g=E.charCodeAt(0);if(g>=55296&&g<=56319)E+=e[++m]}u.call(t,l,E,p);if(h)break}return}f=e.next();while(!f.done){u.call(t,l,f.value,p);if(h)return;f=e.next()}}},{"./get":52,"es5-ext/function/is-arguments":16,"es5-ext/object/valid-callable":42,"es5-ext/string/is-string":48}],52:[function(e,t,r){"use strict";var n=e("es5-ext/function/is-arguments"),i=e("es5-ext/string/is-string"),s=e("./array"),a=e("./string"),o=e("./valid-iterable"),u=e("es6-symbol").iterator;t.exports=function(e){if(typeof o(e)[u]==="function")return e[u]();if(n(e))return new s(e);if(i(e))return new a(e);return new s(e)}},{"./array":50,"./string":55,"./valid-iterable":56,"es5-ext/function/is-arguments":16,"es5-ext/string/is-string":48,"es6-symbol":57}],53:[function(e,t,r){"use strict";var n=e("es5-ext/array/#/clear"),i=e("es5-ext/object/assign"),s=e("es5-ext/object/valid-callable"),a=e("es5-ext/object/valid-value"),o=e("d"),u=e("d/auto-bind"),c=e("es6-symbol");var l=Object.defineProperty,f=Object.defineProperties,p;t.exports=p=function(e,t){if(!(this instanceof p))throw new TypeError("Constructor requires 'new'");f(this,{__list__:o("w",a(e)),__context__:o("w",t),__nextIndex__:o("w",0)});if(!t)return;s(t.on);t.on("_add",this._onAdd);t.on("_delete",this._onDelete);t.on("_clear",this._onClear)};delete p.prototype.constructor;f(p.prototype,i({_next:o(function(){var e;if(!this.__list__)return undefined;if(this.__redo__){e=this.__redo__.shift();if(e!==undefined)return e}if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind();return undefined}),next:o(function(){return this._createResult(this._next())}),_createResult:o(function(e){if(e===undefined)return{done:true,value:undefined};return{done:false,value:this._resolve(e)}}),_resolve:o(function(e){return this.__list__[e]}),_unBind:o(function(){this.__list__=null;delete this.__redo__;if(!this.__context__)return;this.__context__.off("_add",this._onAdd);this.__context__.off("_delete",this._onDelete);this.__context__.off("_clear",this._onClear);this.__context__=null}),toString:o(function(){return"[object "+(this[c.toStringTag]||"Object")+"]"})},u({_onAdd:o(function(e){if(e>=this.__nextIndex__)return;++this.__nextIndex__;if(!this.__redo__){l(this,"__redo__",o("c",[e]));return}this.__redo__.forEach(function(t,r){if(t>=e)this.__redo__[r]=++t},this);this.__redo__.push(e)}),_onDelete:o(function(e){var t;if(e>=this.__nextIndex__)return;--this.__nextIndex__;if(!this.__redo__)return;t=this.__redo__.indexOf(e);if(t!==-1)this.__redo__.splice(t,1);this.__redo__.forEach(function(t,r){if(t>e)this.__redo__[r]=--t},this)}),_onClear:o(function(){if(this.__redo__)n.call(this.__redo__);this.__nextIndex__=0})})));l(p.prototype,c.iterator,o(function(){return this}))},{d:11,"d/auto-bind":10,"es5-ext/array/#/clear":12,"es5-ext/object/assign":25,"es5-ext/object/valid-callable":42,"es5-ext/object/valid-value":44,"es6-symbol":57}],54:[function(e,t,r){"use strict";var n=e("es5-ext/function/is-arguments"),i=e("es5-ext/object/is-value"),s=e("es5-ext/string/is-string");var a=e("es6-symbol").iterator,o=Array.isArray;t.exports=function(e){if(!i(e))return false;if(o(e))return true;if(s(e))return true;if(n(e))return true;return typeof e[a]==="function"}},{"es5-ext/function/is-arguments":16,"es5-ext/object/is-value":33,"es5-ext/string/is-string":48,"es6-symbol":57}],55:[function(e,t,r){"use strict";var n=e("es5-ext/object/set-prototype-of"),i=e("d"),s=e("es6-symbol"),a=e("./");var o=Object.defineProperty,u;u=t.exports=function(e){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");e=String(e);a.call(this,e);o(this,"__length__",i("",e.length))};if(n)n(u,a);delete u.prototype.constructor;u.prototype=Object.create(a.prototype,{_next:i(function(){if(!this.__list__)return undefined;if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind();return undefined}),_resolve:i(function(e){var t=this.__list__[e],r;if(this.__nextIndex__===this.__length__)return t;r=t.charCodeAt(0);if(r>=55296&&r<=56319)return t+this.__list__[this.__nextIndex__++];return t})});o(u.prototype,s.toStringTag,i("c","String Iterator"))},{"./":53,d:11,"es5-ext/object/set-prototype-of":39,"es6-symbol":57}],56:[function(e,t,r){"use strict";var n=e("./is-iterable");t.exports=function(e){if(!n(e))throw new TypeError(e+" is not iterable");return e}},{"./is-iterable":54}],57:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Symbol:e("./polyfill")},{"./is-implemented":58,"./polyfill":60}],58:[function(e,t,r){"use strict";var n={object:true,symbol:true};t.exports=function(){var e;if(typeof Symbol!=="function")return false;e=Symbol("test symbol");try{String(e)}catch(e){return false}if(!n[typeof Symbol.iterator])return false;if(!n[typeof Symbol.toPrimitive])return false;if(!n[typeof Symbol.toStringTag])return false;return true}},{}],59:[function(e,t,r){"use strict";t.exports=function(e){if(!e)return false;if(typeof e==="symbol")return true;if(!e.constructor)return false;if(e.constructor.name!=="Symbol")return false;return e[e.constructor.toStringTag]==="Symbol"}},{}],60:[function(e,t,r){"use strict";var n=e("d"),i=e("./validate-symbol"),s=Object.create,a=Object.defineProperties,o=Object.defineProperty,u=Object.prototype,c,l,f,p=s(null),h;if(typeof Symbol==="function"){c=Symbol;try{String(c());h=true}catch(e){}}var m=function(){var e=s(null);return function(t){var r=0,i,s;while(e[t+(r||"")])++r;t+=r||"";e[t]=true;i="@@"+t;o(u,i,n.gs(null,function(e){if(s)return;s=true;o(this,i,n(e));s=false}));return i}}();f=function e(t){if(this instanceof f)throw new TypeError("Symbol is not a constructor");return l(t)};t.exports=l=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");if(h)return c(t);r=s(f.prototype);t=t===undefined?"":String(t);return a(r,{__description__:n("",t),__name__:n("",m(t))})};a(l,{for:n(function(e){if(p[e])return p[e];return p[e]=l(String(e))}),keyFor:n(function(e){var t;i(e);for(t in p)if(p[t]===e)return t}),hasInstance:n("",c&&c.hasInstance||l("hasInstance")),isConcatSpreadable:n("",c&&c.isConcatSpreadable||l("isConcatSpreadable")),iterator:n("",c&&c.iterator||l("iterator")),match:n("",c&&c.match||l("match")),replace:n("",c&&c.replace||l("replace")),search:n("",c&&c.search||l("search")),species:n("",c&&c.species||l("species")),split:n("",c&&c.split||l("split")),toPrimitive:n("",c&&c.toPrimitive||l("toPrimitive")),toStringTag:n("",c&&c.toStringTag||l("toStringTag")),unscopables:n("",c&&c.unscopables||l("unscopables"))});a(f.prototype,{constructor:n(l),toString:n("",function(){return this.__name__})});a(l.prototype,{toString:n(function(){return"Symbol ("+i(this).__description__+")"}),valueOf:n(function(){return i(this)})});o(l.prototype,l.toPrimitive,n("",function(){var e=i(this);if(typeof e==="symbol")return e;return e.toString()}));o(l.prototype,l.toStringTag,n("c","Symbol"));o(f.prototype,l.toStringTag,n("c",l.prototype[l.toStringTag]));o(f.prototype,l.toPrimitive,n("c",l.prototype[l.toPrimitive]))},{"./validate-symbol":61,d:11}],61:[function(e,t,r){"use strict";var n=e("./is-symbol");t.exports=function(e){if(!n(e))throw new TypeError(e+" is not a symbol");return e}},{"./is-symbol":59}],62:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?WeakMap:e("./polyfill")},{"./is-implemented":63,"./polyfill":65}],63:[function(e,t,r){"use strict";t.exports=function(){var e,t;if(typeof WeakMap!=="function")return false;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(e){return false}if(String(e)!=="[object WeakMap]")return false;if(typeof e.set!=="function")return false;if(e.set({},1)!==e)return false;if(typeof e.delete!=="function")return false;if(typeof e.has!=="function")return false;if(e.get(t)!=="one")return false;return true}},{}],64:[function(e,t,r){"use strict";t.exports=function(){if(typeof WeakMap!=="function")return false;return Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()},{}],65:[function(e,t,r){"use strict";var n=e("es5-ext/object/set-prototype-of"),i=e("es5-ext/object/valid-object"),s=e("es5-ext/object/valid-value"),a=e("es5-ext/string/random-uniq"),o=e("d"),u=e("es6-iterator/get"),c=e("es6-iterator/for-of"),l=e("es6-symbol").toStringTag,f=e("./is-native-implemented"),p=Array.isArray,h=Object.defineProperty,m=Object.prototype.hasOwnProperty,d=Object.getPrototypeOf,E;t.exports=E=function(){var e=arguments[0],t;if(!(this instanceof E))throw new TypeError("Constructor requires 'new'");if(f&&n&&WeakMap!==E){t=n(new WeakMap,d(this))}else{t=this}if(e!=null){if(!p(e))e=u(e)}h(t,"__weakMapData__",o("c","$weakMap$"+a()));if(!e)return t;c(e,function(e){s(e);t.set(e[0],e[1])});return t};if(f){if(n)n(E,WeakMap);E.prototype=Object.create(WeakMap.prototype,{constructor:o(E)})}Object.defineProperties(E.prototype,{delete:o(function(e){if(m.call(i(e),this.__weakMapData__)){delete e[this.__weakMapData__];return true}return false}),get:o(function(e){if(m.call(i(e),this.__weakMapData__)){return e[this.__weakMapData__]}}),has:o(function(e){return m.call(i(e),this.__weakMapData__)}),set:o(function(e,t){h(i(e),this.__weakMapData__,o("c",t));return this}),toString:o(function(){return"[object WeakMap]"})});h(E.prototype,l,o("c","WeakMap"))},{"./is-native-implemented":64,d:11,"es5-ext/object/set-prototype-of":39,"es5-ext/object/valid-object":43,"es5-ext/object/valid-value":44,"es5-ext/string/random-uniq":49,"es6-iterator/for-of":51,"es6-iterator/get":52,"es6-symbol":57}],66:[function(e,t,r){(function(t){(function(){"use strict";var n,i,s,a,o,u,c,l,f,p,h,m,d,E,g,y,_,v,N,A,S,T,C,b,D,x,F;o=e("estraverse");u=e("esutils");n=o.Syntax;function I(e){return Ae.Expression.hasOwnProperty(e.type)}function O(e){return Ae.Statement.hasOwnProperty(e.type)}i={Sequence:0,Yield:1,Await: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,TaggedTemplate:17,Member:18,Primary:19};s={"||":i.LogicalOR,"&&":i.LogicalAND,"|":i.BitwiseOR,"^":i.BitwiseXOR,"&":i.BitwiseAND,"==":i.Equality,"!=":i.Equality,"===":i.Equality,"!==":i.Equality,is:i.Equality,isnt:i.Equality,"<":i.Relational,">":i.Relational,"<=":i.Relational,">=":i.Relational,in:i.Relational,instanceof:i.Relational,"<<":i.BitwiseSHIFT,">>":i.BitwiseSHIFT,">>>":i.BitwiseSHIFT,"+":i.Additive,"-":i.Additive,"*":i.Multiplicative,"%":i.Multiplicative,"/":i.Multiplicative};var w=1,B=1<<1,R=1<<2,P=1<<3,L=1<<4,M=1<<5;var k=B|R,V=w|B,j=w|B|R,U=w,G=R,X=w|R;var q=w,H=w|M,Y=0,W=w|L,z=w|P;function $(){return{indent:null,base:null,parse:null,comment:false,format:{indent:{style:" ",base:0,adjustMultilineComment:false},newline:"\n",space:" ",json:false,renumber:false,hexadecimal:false,quotes:"single",escapeless:false,compact:false,parentheses:true,semicolons:true,safeConcatenation:false,preserveBlankLines:false},moz:{comprehensionExpressionStartsWithAssignment:false,starlessGenerator:false},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:false,directive:false,raw:true,verbatim:null,sourceCode:null}}function J(e,t){var r="";for(t|=0;t>0;t>>>=1,e+=e){if(t&1){r+=e}}return r}c=Array.isArray;if(!c){c=function e(t){return Object.prototype.toString.call(t)==="[object Array]"}}function K(e){return/[\r\n]/g.test(e)}function Q(e){var t=e.length;return t&&u.code.isLineTerminator(e.charCodeAt(t-1))}function Z(e,t){var r;for(r in t){if(t.hasOwnProperty(r)){e[r]=t[r]}}return e}function ee(e,t){var r,n;function i(e){return typeof e==="object"&&e instanceof Object&&!(e instanceof RegExp)}for(r in t){if(t.hasOwnProperty(r)){n=t[r];if(i(n)){if(i(e[r])){ee(e[r],n)}else{e[r]=ee({},n)}}else{e[r]=n}}}return e}function te(e){var t,r,n,i,s;if(e!==e){throw new Error("Numeric literal whose value is NaN")}if(e<0||e===0&&1/e<0){throw new Error("Numeric literal whose value is negative")}if(e===1/0){return p?"null":h?"1e400":"1e+400"}t=""+e;if(!h||t.length<3){return t}r=t.indexOf(".");if(!p&&t.charCodeAt(0)===48&&r===1){r=0;t=t.slice(1)}n=t;t=t.replace("e+","e");i=0;if((s=n.indexOf("e"))>0){i=+n.slice(s+1);n=n.slice(0,s)}if(r>=0){i-=n.length-r-1;n=+(n.slice(0,r)+n.slice(r+1))+""}s=0;while(n.charCodeAt(n.length+s-1)===48){--s}if(s!==0){i-=s;n=n.slice(0,s)}if(i!==0){n+="e"+i}if((n.length<t.length||m&&e>1e12&&Math.floor(e)===e&&(n="0x"+e.toString(16)).length<t.length)&&+n===e){t=n}return t}function re(e,t){if((e&~1)===8232){return(t?"u":"\\u")+(e===8232?"2028":"2029")}else if(e===10||e===13){return(t?"":"\\")+(e===10?"n":"r")}return String.fromCharCode(e)}function ne(e){var t,r,n,i,s,a,o,u;r=e.toString();if(e.source){t=r.match(/\/([^\/]*)$/);if(!t){return r}n=t[1];r="";o=false;u=false;for(i=0,s=e.source.length;i<s;++i){a=e.source.charCodeAt(i);if(!u){if(o){if(a===93){o=false}}else{if(a===47){r+="\\"}else if(a===91){o=true}}r+=re(a,u);u=a===92}else{r+=re(a,u);u=false}}return"/"+r+"/"+n}return r}function ie(e,t){var r;if(e===8){return"\\b"}if(e===12){return"\\f"}if(e===9){return"\\t"}r=e.toString(16).toUpperCase();if(p||e>255){return"\\u"+"0000".slice(r.length)+r}else if(e===0&&!u.code.isDecimalDigit(t)){return"\\0"}else if(e===11){return"\\x0B"}else{return"\\x"+"00".slice(r.length)+r}}function se(e){if(e===92){return"\\\\"}if(e===10){return"\\n"}if(e===13){return"\\r"}if(e===8232){return"\\u2028"}if(e===8233){return"\\u2029"}throw new Error("Incorrectly classified character")}function ae(e){var t,r,n,i;i=d==="double"?'"':"'";for(t=0,r=e.length;t<r;++t){n=e.charCodeAt(t);if(n===39){i='"';break}else if(n===34){i="'";break}else if(n===92){++t}}return i+e+i}function oe(e){var t="",r,n,i,s=0,a=0,o,c;for(r=0,n=e.length;r<n;++r){i=e.charCodeAt(r);if(i===39){++s}else if(i===34){++a}else if(i===47&&p){t+="\\"}else if(u.code.isLineTerminator(i)||i===92){t+=se(i);continue}else if(!u.code.isIdentifierPartES5(i)&&(p&&i<32||!p&&!E&&(i<32||i>126))){t+=ie(i,e.charCodeAt(r+1));continue}t+=String.fromCharCode(i)}o=!(d==="double"||d==="auto"&&a<s);c=o?"'":'"';if(!(o?s:a)){return c+t+c}e=t;t=c;for(r=0,n=e.length;r<n;++r){i=e.charCodeAt(r);if(i===39&&o||i===34&&!o){t+="\\"}t+=String.fromCharCode(i)}return t+c}function ue(e){var t,r,n,i="";for(t=0,r=e.length;t<r;++t){n=e[t];i+=c(n)?ue(n):n}return i}function ce(e,t){if(!C){if(c(e)){return ue(e)}else{return e}}if(t==null){if(e instanceof a){return e}else{t={}}}if(t.loc==null){return new a(null,null,C,e,t.name||null)}return new a(t.loc.start.line,t.loc.start.column,C===true?t.loc.source||null:C,e,t.name||null)}function le(){return y?y:" "}function fe(e,t){var r,n,i,s;r=ce(e).toString();if(r.length===0){return[t]}n=ce(t).toString();if(n.length===0){return[e]}i=r.charCodeAt(r.length-1);s=n.charCodeAt(0);if((i===43||i===45)&&i===s||u.code.isIdentifierPartES5(i)&&u.code.isIdentifierPartES5(s)||i===47&&s===105){return[e,le(),t]}else if(u.code.isWhiteSpace(i)||u.code.isLineTerminator(i)||u.code.isWhiteSpace(s)||u.code.isLineTerminator(s)){return[e,t]}return[e,y,t]}function pe(e){return[l,e]}function he(e){var t;t=l;l+=f;e(l);l=t}function me(e){var t;for(t=e.length-1;t>=0;--t){if(u.code.isLineTerminator(e.charCodeAt(t))){break}}return e.length-1-t}function de(e,t){var r,n,i,s,a,o,c,f;r=e.split(/\r\n|[\r\n]/);o=Number.MAX_VALUE;for(n=1,i=r.length;n<i;++n){s=r[n];a=0;while(a<s.length&&u.code.isWhiteSpace(s.charCodeAt(a))){++a}if(o>a){o=a}}if(typeof t!=="undefined"){c=l;if(r[1][o]==="*"){t+=" "}l=t}else{if(o&1){--o}c=l}for(n=1,i=r.length;n<i;++n){f=ce(pe(r[n].slice(o)));r[n]=C?f.join(""):f}l=c;return r.join("\n")}function Ee(e,t){if(e.type==="Line"){if(Q(e.value)){return"//"+e.value}else{var r="//"+e.value;if(!D){r+="\n"}return r}}if(S.format.indent.adjustMultilineComment&&/[\n\r]/.test(e.value)){return de("/*"+e.value+"*/",t)}return"/*"+e.value+"*/"}function ge(e,t){var r,i,s,a,o,u,c,p,h,m,d,E,g,y;if(e.leadingComments&&e.leadingComments.length>0){a=t;if(D){s=e.leadingComments[0];t=[];p=s.extendedRange;h=s.range;d=b.substring(p[0],h[0]);y=(d.match(/\n/g)||[]).length;if(y>0){t.push(J("\n",y));t.push(pe(Ee(s)))}else{t.push(d);t.push(Ee(s))}m=h;for(r=1,i=e.leadingComments.length;r<i;r++){s=e.leadingComments[r];h=s.range;E=b.substring(m[1],h[0]);y=(E.match(/\n/g)||[]).length;t.push(J("\n",y));t.push(pe(Ee(s)));m=h}g=b.substring(h[1],p[1]);y=(g.match(/\n/g)||[]).length;t.push(J("\n",y))}else{s=e.leadingComments[0];t=[];if(N&&e.type===n.Program&&e.body.length===0){t.push("\n")}t.push(Ee(s));if(!Q(ce(t).toString())){t.push("\n")}for(r=1,i=e.leadingComments.length;r<i;++r){s=e.leadingComments[r];c=[Ee(s)];if(!Q(ce(c).toString())){c.push("\n")}t.push(pe(c))}}t.push(pe(a))}if(e.trailingComments){if(D){s=e.trailingComments[0];p=s.extendedRange;h=s.range;d=b.substring(p[0],h[0]);y=(d.match(/\n/g)||[]).length;if(y>0){t.push(J("\n",y));t.push(pe(Ee(s)))}else{t.push(d);t.push(Ee(s))}}else{o=!Q(ce(t).toString());u=J(" ",me(ce([l,t,f]).toString()));for(r=0,i=e.trailingComments.length;r<i;++r){s=e.trailingComments[r];if(o){if(r===0){t=[t,f]}else{t=[t,u]}t.push(Ee(s,u))}else{t=[t,pe(Ee(s))]}if(r!==i-1&&!Q(ce(t).toString())){t=[t,"\n"]}}}}return t}function ye(e,t,r){var n,i=0;for(n=e;n<t;n++){if(b[n]==="\n"){i++}}for(n=1;n<i;n++){r.push(g)}}function _e(e,t,r){if(t<r){return["(",e,")"]}return e}function ve(e){var t,r,n;n=e.split(/\r\n|\n/);for(t=1,r=n.length;t<r;t++){n[t]=g+l+n[t]}return n}function Ne(e,t){var r,n,s;r=e[S.verbatim];if(typeof r==="string"){n=_e(ve(r),i.Sequence,t)}else{n=ve(r.content);s=r.precedence!=null?r.precedence:i.Sequence;n=_e(n,s,t)}return ce(n,e)}function Ae(){}Ae.prototype.maybeBlock=function(e,t){var r,i,s=this;i=!S.comment||!e.leadingComments;if(e.type===n.BlockStatement&&i){return[y,this.generateStatement(e,t)]}if(e.type===n.EmptyStatement&&i){return";"}he(function(){r=[g,pe(s.generateStatement(e,t))]});return r};Ae.prototype.maybeBlockSuffix=function(e,t){var r=Q(ce(t).toString());if(e.type===n.BlockStatement&&(!S.comment||!e.leadingComments)&&!r){return[t,y]}if(r){return[t,l]}return[t,g,l]};function Se(e){return ce(e.name,e)}function Te(e,t){return e.async?"async"+(t?le():y):""}function Ce(e){var t=e.generator&&!S.moz.starlessGenerator;return t?"*"+y:""}function be(e){var t=e.value;if(t.async){return Te(t,!e.computed)}else{return Ce(t)?"*":""}}Ae.prototype.generatePattern=function(e,t,r){if(e.type===n.Identifier){return Se(e)}return this.generateExpression(e,t,r)};Ae.prototype.generateFunctionParams=function(e){var t,r,s,a;a=false;if(e.type===n.ArrowFunctionExpression&&!e.rest&&(!e.defaults||e.defaults.length===0)&&e.params.length===1&&e.params[0].type===n.Identifier){s=[Te(e,true),Se(e.params[0])]}else{s=e.type===n.ArrowFunctionExpression?[Te(e,false)]:[];s.push("(");if(e.defaults){a=true}for(t=0,r=e.params.length;t<r;++t){if(a&&e.defaults[t]){s.push(this.generateAssignment(e.params[t],e.defaults[t],"=",i.Assignment,j))}else{s.push(this.generatePattern(e.params[t],i.Assignment,j))}if(t+1<r){s.push(","+y)}}if(e.rest){if(e.params.length){s.push(","+y)}s.push("...");s.push(Se(e.rest))}s.push(")")}return s};Ae.prototype.generateFunctionBody=function(e){var t,r;t=this.generateFunctionParams(e);if(e.type===n.ArrowFunctionExpression){t.push(y);t.push("=>")}if(e.expression){t.push(y);r=this.generateExpression(e.body,i.Assignment,j);if(r.toString().charAt(0)==="{"){r=["(",r,")"]}t.push(r)}else{t.push(this.maybeBlock(e.body,z))}return t};Ae.prototype.generateIterationForStatement=function(e,t,r){var s=["for"+y+"("],a=this;he(function(){if(t.left.type===n.VariableDeclaration){he(function(){s.push(t.left.kind+le());s.push(a.generateStatement(t.left.declarations[0],Y))})}else{s.push(a.generateExpression(t.left,i.Call,j))}s=fe(s,e);s=[fe(s,a.generateExpression(t.right,i.Sequence,j)),")"]});s.push(this.maybeBlock(t.body,r));return s};Ae.prototype.generatePropertyKey=function(e,t,r){var n=[];if(t){n.push("[")}if(r.type==="AssignmentPattern"){n.push(this.AssignmentPattern(r,i.Sequence,j))}else{n.push(this.generateExpression(e,i.Sequence,j))}if(t){n.push("]")}return n};Ae.prototype.generateAssignment=function(e,t,r,n,s){if(i.Assignment<n){s|=w}return _e([this.generateExpression(e,i.Call,s),y+r+y,this.generateExpression(t,i.Assignment,s)],i.Assignment,n)};Ae.prototype.semicolon=function(e){if(!v&&e&M){return""}return";"};Ae.Statement={BlockStatement:function(e,t){var r,n,i=["{",g],s=this;he(function(){if(e.body.length===0&&D){r=e.range;if(r[1]-r[0]>2){n=b.substring(r[0]+1,r[1]-1);if(n[0]==="\n"){i=["{"]}i.push(n)}}var a,o,u,c;c=q;if(t&P){c|=L}for(a=0,o=e.body.length;a<o;++a){if(D){if(a===0){if(e.body[0].leadingComments){r=e.body[0].leadingComments[0].extendedRange;n=b.substring(r[0],r[1]);if(n[0]==="\n"){i=["{"]}}if(!e.body[0].leadingComments){ye(e.range[0],e.body[0].range[0],i)}}if(a>0){if(!e.body[a-1].trailingComments&&!e.body[a].leadingComments){ye(e.body[a-1].range[1],e.body[a].range[0],i)}}}if(a===o-1){c|=M}if(e.body[a].leadingComments&&D){u=s.generateStatement(e.body[a],c)}else{u=pe(s.generateStatement(e.body[a],c))}i.push(u);if(!Q(ce(u).toString())){if(D&&a<o-1){if(!e.body[a+1].leadingComments){i.push(g)}}else{i.push(g)}}if(D){if(a===o-1){if(!e.body[a].trailingComments){ye(e.body[a].range[1],e.range[1],i)}}}}});i.push(pe("}"));return i},BreakStatement:function(e,t){if(e.label){return"break "+e.label.name+this.semicolon(t)}return"break"+this.semicolon(t)},ContinueStatement:function(e,t){if(e.label){return"continue "+e.label.name+this.semicolon(t)}return"continue"+this.semicolon(t)},ClassBody:function(e,t){var r=["{",g],n=this;he(function(t){var s,a;for(s=0,a=e.body.length;s<a;++s){r.push(t);r.push(n.generateExpression(e.body[s],i.Sequence,j));if(s+1<a){r.push(g)}}});if(!Q(ce(r).toString())){r.push(g)}r.push(l);r.push("}");return r},ClassDeclaration:function(e,t){var r,n;r=["class"];if(e.id){r=fe(r,this.generateExpression(e.id,i.Sequence,j))}if(e.superClass){n=fe("extends",this.generateExpression(e.superClass,i.Assignment,j));r=fe(r,n)}r.push(y);r.push(this.generateStatement(e.body,H));return r},DirectiveStatement:function(e,t){if(S.raw&&e.raw){return e.raw+this.semicolon(t)}return ae(e.directive)+this.semicolon(t)},DoWhileStatement:function(e,t){var r=fe("do",this.maybeBlock(e.body,q));r=this.maybeBlockSuffix(e.body,r);return fe(r,["while"+y+"(",this.generateExpression(e.test,i.Sequence,j),")"+this.semicolon(t)])},CatchClause:function(e,t){var r,n=this;he(function(){var t;r=["catch"+y+"(",n.generateExpression(e.param,i.Sequence,j),")"];if(e.guard){t=n.generateExpression(e.guard,i.Sequence,j);r.splice(2,0," if ",t)}});r.push(this.maybeBlock(e.body,q));return r},DebuggerStatement:function(e,t){return"debugger"+this.semicolon(t)},EmptyStatement:function(e,t){return";"},ExportDefaultDeclaration:function(e,t){var r=["export"],n;n=t&M?H:q;r=fe(r,"default");if(O(e.declaration)){r=fe(r,this.generateStatement(e.declaration,n))}else{r=fe(r,this.generateExpression(e.declaration,i.Assignment,j)+this.semicolon(t))}return r},ExportNamedDeclaration:function(e,t){var r=["export"],s,a=this;s=t&M?H:q;if(e.declaration){return fe(r,this.generateStatement(e.declaration,s))}if(e.specifiers){if(e.specifiers.length===0){r=fe(r,"{"+y+"}")}else if(e.specifiers[0].type===n.ExportBatchSpecifier){r=fe(r,this.generateExpression(e.specifiers[0],i.Sequence,j))}else{r=fe(r,"{");he(function(t){var n,s;r.push(g);for(n=0,s=e.specifiers.length;n<s;++n){r.push(t);r.push(a.generateExpression(e.specifiers[n],i.Sequence,j));if(n+1<s){r.push(","+g)}}});if(!Q(ce(r).toString())){r.push(g)}r.push(l+"}")}if(e.source){r=fe(r,["from"+y,this.generateExpression(e.source,i.Sequence,j),this.semicolon(t)])}else{r.push(this.semicolon(t))}}return r},ExportAllDeclaration:function(e,t){return["export"+y,"*"+y,"from"+y,this.generateExpression(e.source,i.Sequence,j),this.semicolon(t)]},ExpressionStatement:function(e,t){var r,s;function a(e){var t;if(e.slice(0,5)!=="class"){return false}t=e.charCodeAt(5);return t===123||u.code.isWhiteSpace(t)||u.code.isLineTerminator(t)}function o(e){var t;if(e.slice(0,8)!=="function"){return false}t=e.charCodeAt(8);return t===40||u.code.isWhiteSpace(t)||t===42||u.code.isLineTerminator(t)}function c(e){var t,r,n;if(e.slice(0,5)!=="async"){return false}if(!u.code.isWhiteSpace(e.charCodeAt(5))){return false}for(r=6,n=e.length;r<n;++r){if(!u.code.isWhiteSpace(e.charCodeAt(r))){break}}if(r===n){return false}
|
||
if(e.slice(r,r+8)!=="function"){return false}t=e.charCodeAt(r+8);return t===40||u.code.isWhiteSpace(t)||t===42||u.code.isLineTerminator(t)}r=[this.generateExpression(e.expression,i.Sequence,j)];s=ce(r).toString();if(s.charCodeAt(0)===123||a(s)||o(s)||c(s)||A&&t&L&&e.expression.type===n.Literal&&typeof e.expression.value==="string"){r=["(",r,")"+this.semicolon(t)]}else{r.push(this.semicolon(t))}return r},ImportDeclaration:function(e,t){var r,s,a=this;if(e.specifiers.length===0){return["import",y,this.generateExpression(e.source,i.Sequence,j),this.semicolon(t)]}r=["import"];s=0;if(e.specifiers[s].type===n.ImportDefaultSpecifier){r=fe(r,[this.generateExpression(e.specifiers[s],i.Sequence,j)]);++s}if(e.specifiers[s]){if(s!==0){r.push(",")}if(e.specifiers[s].type===n.ImportNamespaceSpecifier){r=fe(r,[y,this.generateExpression(e.specifiers[s],i.Sequence,j)])}else{r.push(y+"{");if(e.specifiers.length-s===1){r.push(y);r.push(this.generateExpression(e.specifiers[s],i.Sequence,j));r.push(y+"}"+y)}else{he(function(t){var n,o;r.push(g);for(n=s,o=e.specifiers.length;n<o;++n){r.push(t);r.push(a.generateExpression(e.specifiers[n],i.Sequence,j));if(n+1<o){r.push(","+g)}}});if(!Q(ce(r).toString())){r.push(g)}r.push(l+"}"+y)}}}r=fe(r,["from"+y,this.generateExpression(e.source,i.Sequence,j),this.semicolon(t)]);return r},VariableDeclarator:function(e,t){var r=t&w?j:k;if(e.init){return[this.generateExpression(e.id,i.Assignment,r),y,"=",y,this.generateExpression(e.init,i.Assignment,r)]}return this.generatePattern(e.id,i.Assignment,r)},VariableDeclaration:function(e,t){var r,n,i,s,a,o=this;r=[e.kind];a=t&w?q:Y;function u(){s=e.declarations[0];if(S.comment&&s.leadingComments){r.push("\n");r.push(pe(o.generateStatement(s,a)))}else{r.push(le());r.push(o.generateStatement(s,a))}for(n=1,i=e.declarations.length;n<i;++n){s=e.declarations[n];if(S.comment&&s.leadingComments){r.push(","+g);r.push(pe(o.generateStatement(s,a)))}else{r.push(","+y);r.push(o.generateStatement(s,a))}}}if(e.declarations.length>1){he(u)}else{u()}r.push(this.semicolon(t));return r},ThrowStatement:function(e,t){return[fe("throw",this.generateExpression(e.argument,i.Sequence,j)),this.semicolon(t)]},TryStatement:function(e,t){var r,n,i,s;r=["try",this.maybeBlock(e.block,q)];r=this.maybeBlockSuffix(e.block,r);if(e.handlers){for(n=0,i=e.handlers.length;n<i;++n){r=fe(r,this.generateStatement(e.handlers[n],q));if(e.finalizer||n+1!==i){r=this.maybeBlockSuffix(e.handlers[n].body,r)}}}else{s=e.guardedHandlers||[];for(n=0,i=s.length;n<i;++n){r=fe(r,this.generateStatement(s[n],q));if(e.finalizer||n+1!==i){r=this.maybeBlockSuffix(s[n].body,r)}}if(e.handler){if(c(e.handler)){for(n=0,i=e.handler.length;n<i;++n){r=fe(r,this.generateStatement(e.handler[n],q));if(e.finalizer||n+1!==i){r=this.maybeBlockSuffix(e.handler[n].body,r)}}}else{r=fe(r,this.generateStatement(e.handler,q));if(e.finalizer){r=this.maybeBlockSuffix(e.handler.body,r)}}}}if(e.finalizer){r=fe(r,["finally",this.maybeBlock(e.finalizer,q)])}return r},SwitchStatement:function(e,t){var r,n,s,a,o,u=this;he(function(){r=["switch"+y+"(",u.generateExpression(e.discriminant,i.Sequence,j),")"+y+"{"+g]});if(e.cases){o=q;for(s=0,a=e.cases.length;s<a;++s){if(s===a-1){o|=M}n=pe(this.generateStatement(e.cases[s],o));r.push(n);if(!Q(ce(n).toString())){r.push(g)}}}r.push(pe("}"));return r},SwitchCase:function(e,t){var r,s,a,o,u,c=this;he(function(){if(e.test){r=[fe("case",c.generateExpression(e.test,i.Sequence,j)),":"]}else{r=["default:"]}a=0;o=e.consequent.length;if(o&&e.consequent[0].type===n.BlockStatement){s=c.maybeBlock(e.consequent[0],q);r.push(s);a=1}if(a!==o&&!Q(ce(r).toString())){r.push(g)}u=q;for(;a<o;++a){if(a===o-1&&t&M){u|=M}s=pe(c.generateStatement(e.consequent[a],u));r.push(s);if(a+1!==o&&!Q(ce(s).toString())){r.push(g)}}});return r},IfStatement:function(e,t){var r,s,a,o=this;he(function(){r=["if"+y+"(",o.generateExpression(e.test,i.Sequence,j),")"]});a=t&M;s=q;if(a){s|=M}if(e.alternate){r.push(this.maybeBlock(e.consequent,q));r=this.maybeBlockSuffix(e.consequent,r);if(e.alternate.type===n.IfStatement){r=fe(r,["else ",this.generateStatement(e.alternate,s)])}else{r=fe(r,fe("else",this.maybeBlock(e.alternate,s)))}}else{r.push(this.maybeBlock(e.consequent,s))}return r},ForStatement:function(e,t){var r,s=this;he(function(){r=["for"+y+"("];if(e.init){if(e.init.type===n.VariableDeclaration){r.push(s.generateStatement(e.init,Y))}else{r.push(s.generateExpression(e.init,i.Sequence,k));r.push(";")}}else{r.push(";")}if(e.test){r.push(y);r.push(s.generateExpression(e.test,i.Sequence,j));r.push(";")}else{r.push(";")}if(e.update){r.push(y);r.push(s.generateExpression(e.update,i.Sequence,j));r.push(")")}else{r.push(")")}});r.push(this.maybeBlock(e.body,t&M?H:q));return r},ForInStatement:function(e,t){return this.generateIterationForStatement("in",e,t&M?H:q)},ForOfStatement:function(e,t){return this.generateIterationForStatement("of",e,t&M?H:q)},LabeledStatement:function(e,t){return[e.label.name+":",this.maybeBlock(e.body,t&M?H:q)]},Program:function(e,t){var r,n,i,s,a;s=e.body.length;r=[N&&s>0?"\n":""];a=W;for(i=0;i<s;++i){if(!N&&i===s-1){a|=M}if(D){if(i===0){if(!e.body[0].leadingComments){ye(e.range[0],e.body[i].range[0],r)}}if(i>0){if(!e.body[i-1].trailingComments&&!e.body[i].leadingComments){ye(e.body[i-1].range[1],e.body[i].range[0],r)}}}n=pe(this.generateStatement(e.body[i],a));r.push(n);if(i+1<s&&!Q(ce(n).toString())){if(D){if(!e.body[i+1].leadingComments){r.push(g)}}else{r.push(g)}}if(D){if(i===s-1){if(!e.body[i].trailingComments){ye(e.body[i].range[1],e.range[1],r)}}}}return r},FunctionDeclaration:function(e,t){return[Te(e,true),"function",Ce(e)||le(),e.id?Se(e.id):"",this.generateFunctionBody(e)]},ReturnStatement:function(e,t){if(e.argument){return[fe("return",this.generateExpression(e.argument,i.Sequence,j)),this.semicolon(t)]}return["return"+this.semicolon(t)]},WhileStatement:function(e,t){var r,n=this;he(function(){r=["while"+y+"(",n.generateExpression(e.test,i.Sequence,j),")"]});r.push(this.maybeBlock(e.body,t&M?H:q));return r},WithStatement:function(e,t){var r,n=this;he(function(){r=["with"+y+"(",n.generateExpression(e.object,i.Sequence,j),")"]});r.push(this.maybeBlock(e.body,t&M?H:q));return r}};Z(Ae.prototype,Ae.Statement);Ae.Expression={SequenceExpression:function(e,t,r){var n,s,a;if(i.Sequence<t){r|=w}n=[];for(s=0,a=e.expressions.length;s<a;++s){n.push(this.generateExpression(e.expressions[s],i.Assignment,r));if(s+1<a){n.push(","+y)}}return _e(n,i.Sequence,t)},AssignmentExpression:function(e,t,r){return this.generateAssignment(e.left,e.right,e.operator,t,r)},ArrowFunctionExpression:function(e,t,r){return _e(this.generateFunctionBody(e),i.ArrowFunction,t)},ConditionalExpression:function(e,t,r){if(i.Conditional<t){r|=w}return _e([this.generateExpression(e.test,i.LogicalOR,r),y+"?"+y,this.generateExpression(e.consequent,i.Assignment,r),y+":"+y,this.generateExpression(e.alternate,i.Assignment,r)],i.Conditional,t)},LogicalExpression:function(e,t,r){return this.BinaryExpression(e,t,r)},BinaryExpression:function(e,t,r){var n,i,a,o;i=s[e.operator];if(i<t){r|=w}a=this.generateExpression(e.left,i,r);o=a.toString();if(o.charCodeAt(o.length-1)===47&&u.code.isIdentifierPartES5(e.operator.charCodeAt(0))){n=[a,le(),e.operator]}else{n=fe(a,e.operator)}a=this.generateExpression(e.right,i+1,r);if(e.operator==="/"&&a.toString().charAt(0)==="/"||e.operator.slice(-1)==="<"&&a.toString().slice(0,3)==="!--"){n.push(le());n.push(a)}else{n=fe(n,a)}if(e.operator==="in"&&!(r&w)){return["(",n,")"]}return _e(n,i,t)},CallExpression:function(e,t,r){var n,s,a;n=[this.generateExpression(e.callee,i.Call,V)];n.push("(");for(s=0,a=e["arguments"].length;s<a;++s){n.push(this.generateExpression(e["arguments"][s],i.Assignment,j));if(s+1<a){n.push(","+y)}}n.push(")");if(!(r&B)){return["(",n,")"]}return _e(n,i.Call,t)},NewExpression:function(e,t,r){var n,s,a,o,u;s=e["arguments"].length;u=r&R&&!_&&s===0?X:U;n=fe("new",this.generateExpression(e.callee,i.New,u));if(!(r&R)||_||s>0){n.push("(");for(a=0,o=s;a<o;++a){n.push(this.generateExpression(e["arguments"][a],i.Assignment,j));if(a+1<o){n.push(","+y)}}n.push(")")}return _e(n,i.New,t)},MemberExpression:function(e,t,r){var s,a;s=[this.generateExpression(e.object,i.Call,r&B?V:U)];if(e.computed){s.push("[");s.push(this.generateExpression(e.property,i.Sequence,r&B?j:X));s.push("]")}else{if(e.object.type===n.Literal&&typeof e.object.value==="number"){a=ce(s).toString();if(a.indexOf(".")<0&&!/[eExX]/.test(a)&&u.code.isDecimalDigit(a.charCodeAt(a.length-1))&&!(a.length>=2&&a.charCodeAt(0)===48)){s.push(" ")}}s.push(".");s.push(Se(e.property))}return _e(s,i.Member,t)},MetaProperty:function(e,t,r){var n;n=[];n.push(e.meta);n.push(".");n.push(e.property);return _e(n,i.Member,t)},UnaryExpression:function(e,t,r){var n,s,a,o,c;s=this.generateExpression(e.argument,i.Unary,j);if(y===""){n=fe(e.operator,s)}else{n=[e.operator];if(e.operator.length>2){n=fe(n,s)}else{o=ce(n).toString();c=o.charCodeAt(o.length-1);a=s.toString().charCodeAt(0);if((c===43||c===45)&&c===a||u.code.isIdentifierPartES5(c)&&u.code.isIdentifierPartES5(a)){n.push(le());n.push(s)}else{n.push(s)}}}return _e(n,i.Unary,t)},YieldExpression:function(e,t,r){var n;if(e.delegate){n="yield*"}else{n="yield"}if(e.argument){n=fe(n,this.generateExpression(e.argument,i.Yield,j))}return _e(n,i.Yield,t)},AwaitExpression:function(e,t,r){var n=fe(e.all?"await*":"await",this.generateExpression(e.argument,i.Await,j));return _e(n,i.Await,t)},UpdateExpression:function(e,t,r){if(e.prefix){return _e([e.operator,this.generateExpression(e.argument,i.Unary,j)],i.Unary,t)}return _e([this.generateExpression(e.argument,i.Postfix,j),e.operator],i.Postfix,t)},FunctionExpression:function(e,t,r){var n=[Te(e,true),"function"];if(e.id){n.push(Ce(e)||le());n.push(Se(e.id))}else{n.push(Ce(e)||y)}n.push(this.generateFunctionBody(e));return n},ArrayPattern:function(e,t,r){return this.ArrayExpression(e,t,r,true)},ArrayExpression:function(e,t,r,n){var s,a,o=this;if(!e.elements.length){return"[]"}a=n?false:e.elements.length>1;s=["[",a?g:""];he(function(t){var r,n;for(r=0,n=e.elements.length;r<n;++r){if(!e.elements[r]){if(a){s.push(t)}if(r+1===n){s.push(",")}}else{s.push(a?t:"");s.push(o.generateExpression(e.elements[r],i.Assignment,j))}if(r+1<n){s.push(","+(a?g:y))}}});if(a&&!Q(ce(s).toString())){s.push(g)}s.push(a?l:"");s.push("]");return s},RestElement:function(e,t,r){return"..."+this.generatePattern(e.argument)},ClassExpression:function(e,t,r){var n,s;n=["class"];if(e.id){n=fe(n,this.generateExpression(e.id,i.Sequence,j))}if(e.superClass){s=fe("extends",this.generateExpression(e.superClass,i.Assignment,j));n=fe(n,s)}n.push(y);n.push(this.generateStatement(e.body,H));return n},MethodDefinition:function(e,t,r){var n,i;if(e["static"]){n=["static"+y]}else{n=[]}if(e.kind==="get"||e.kind==="set"){i=[fe(e.kind,this.generatePropertyKey(e.key,e.computed,e.value)),this.generateFunctionBody(e.value)]}else{i=[be(e),this.generatePropertyKey(e.key,e.computed,e.value),this.generateFunctionBody(e.value)]}return fe(n,i)},Property:function(e,t,r){if(e.kind==="get"||e.kind==="set"){return[e.kind,le(),this.generatePropertyKey(e.key,e.computed,e.value),this.generateFunctionBody(e.value)]}if(e.shorthand){return this.generatePropertyKey(e.key,e.computed,e.value)}if(e.method){return[be(e),this.generatePropertyKey(e.key,e.computed,e.value),this.generateFunctionBody(e.value)]}return[this.generatePropertyKey(e.key,e.computed,e.value),":"+y,this.generateExpression(e.value,i.Assignment,j)]},ObjectExpression:function(e,t,r){var n,s,a,o=this;if(!e.properties.length){return"{}"}n=e.properties.length>1;he(function(){a=o.generateExpression(e.properties[0],i.Sequence,j)});if(!n){if(!K(ce(a).toString())){return["{",y,a,y,"}"]}}he(function(t){var r,u;s=["{",g,t,a];if(n){s.push(","+g);for(r=1,u=e.properties.length;r<u;++r){s.push(t);s.push(o.generateExpression(e.properties[r],i.Sequence,j));if(r+1<u){s.push(","+g)}}}});if(!Q(ce(s).toString())){s.push(g)}s.push(l);s.push("}");return s},AssignmentPattern:function(e,t,r){return this.generateAssignment(e.left,e.right,"=",t,r)},ObjectPattern:function(e,t,r){var s,a,o,u,c,f=this;if(!e.properties.length){return"{}"}u=false;if(e.properties.length===1){c=e.properties[0];if(c.value.type!==n.Identifier){u=true}}else{for(a=0,o=e.properties.length;a<o;++a){c=e.properties[a];if(!c.shorthand){u=true;break}}}s=["{",u?g:""];he(function(t){var r,n;for(r=0,n=e.properties.length;r<n;++r){s.push(u?t:"");s.push(f.generateExpression(e.properties[r],i.Sequence,j));if(r+1<n){s.push(","+(u?g:y))}}});if(u&&!Q(ce(s).toString())){s.push(g)}s.push(u?l:"");s.push("}");return s},ThisExpression:function(e,t,r){return"this"},Super:function(e,t,r){return"super"},Identifier:function(e,t,r){return Se(e)},ImportDefaultSpecifier:function(e,t,r){return Se(e.id||e.local)},ImportNamespaceSpecifier:function(e,t,r){var n=["*"];var i=e.id||e.local;if(i){n.push(y+"as"+le()+Se(i))}return n},ImportSpecifier:function(e,t,r){var n=e.imported;var i=[n.name];var s=e.local;if(s&&s.name!==n.name){i.push(le()+"as"+le()+Se(s))}return i},ExportSpecifier:function(e,t,r){var n=e.local;var i=[n.name];var s=e.exported;if(s&&s.name!==n.name){i.push(le()+"as"+le()+Se(s))}return i},Literal:function(e,t,r){var i;if(e.hasOwnProperty("raw")&&T&&S.raw){try{i=T(e.raw).body[0].expression;if(i.type===n.Literal){if(i.value===e.value){return e.raw}}}catch(e){}}if(e.value===null){return"null"}if(typeof e.value==="string"){return oe(e.value)}if(typeof e.value==="number"){return te(e.value)}if(typeof e.value==="boolean"){return e.value?"true":"false"}if(e.regex){return"/"+e.regex.pattern+"/"+e.regex.flags}return ne(e.value)},GeneratorExpression:function(e,t,r){return this.ComprehensionExpression(e,t,r)},ComprehensionExpression:function(e,t,r){var s,a,o,u,c=this;s=e.type===n.GeneratorExpression?["("]:["["];if(S.moz.comprehensionExpressionStartsWithAssignment){u=this.generateExpression(e.body,i.Assignment,j);s.push(u)}if(e.blocks){he(function(){for(a=0,o=e.blocks.length;a<o;++a){u=c.generateExpression(e.blocks[a],i.Sequence,j);if(a>0||S.moz.comprehensionExpressionStartsWithAssignment){s=fe(s,u)}else{s.push(u)}}})}if(e.filter){s=fe(s,"if"+y);u=this.generateExpression(e.filter,i.Sequence,j);s=fe(s,["(",u,")"])}if(!S.moz.comprehensionExpressionStartsWithAssignment){u=this.generateExpression(e.body,i.Assignment,j);s=fe(s,u)}s.push(e.type===n.GeneratorExpression?")":"]");return s},ComprehensionBlock:function(e,t,r){var s;if(e.left.type===n.VariableDeclaration){s=[e.left.kind,le(),this.generateStatement(e.left.declarations[0],Y)]}else{s=this.generateExpression(e.left,i.Call,j)}s=fe(s,e.of?"of":"in");s=fe(s,this.generateExpression(e.right,i.Sequence,j));return["for"+y+"(",s,")"]},SpreadElement:function(e,t,r){return["...",this.generateExpression(e.argument,i.Assignment,j)]},TaggedTemplateExpression:function(e,t,r){var n=V;if(!(r&B)){n=U}var s=[this.generateExpression(e.tag,i.Call,n),this.generateExpression(e.quasi,i.Primary,G)];return _e(s,i.TaggedTemplate,t)},TemplateElement:function(e,t,r){return e.value.raw},TemplateLiteral:function(e,t,r){var n,s,a;n=["`"];for(s=0,a=e.quasis.length;s<a;++s){n.push(this.generateExpression(e.quasis[s],i.Primary,j));if(s+1<a){n.push("${"+y);n.push(this.generateExpression(e.expressions[s],i.Sequence,j));n.push(y+"}")}}n.push("`");return n},ModuleSpecifier:function(e,t,r){return this.Literal(e,t,r)}};Z(Ae.prototype,Ae.Expression);Ae.prototype.generateExpression=function(e,t,r){var i,s;s=e.type||n.Property;if(S.verbatim&&e.hasOwnProperty(S.verbatim)){return Ne(e,t)}i=this[s](e,t,r);if(S.comment){i=ge(e,i)}return ce(i,e)};Ae.prototype.generateStatement=function(e,t){var r,i;r=this[e.type](e,t);if(S.comment){r=ge(e,r)}i=ce(r).toString();if(e.type===n.Program&&!N&&g===""&&i.charAt(i.length-1)==="\n"){r=C?ce(r).replaceRight(/\s+$/,""):i.replace(/\s+$/,"")}return ce(r,e)};function De(e){var t;t=new Ae;if(O(e)){return t.generateStatement(e,q)}if(I(e)){return t.generateExpression(e,i.Sequence,j)}throw new Error("Unknown node type: "+e.type)}function xe(n,i){var s=$(),o,u;if(i!=null){if(typeof i.indent==="string"){s.format.indent.style=i.indent}if(typeof i.base==="number"){s.format.indent.base=i.base}i=ee(s,i);f=i.format.indent.style;if(typeof i.base==="string"){l=i.base}else{l=J(f,i.format.indent.base)}}else{i=s;f=i.format.indent.style;l=J(f,i.format.indent.base)}p=i.format.json;h=i.format.renumber;m=p?false:i.format.hexadecimal;d=p?"double":i.format.quotes;E=i.format.escapeless;g=i.format.newline;y=i.format.space;if(i.format.compact){g=y=f=l=""}_=i.format.parentheses;v=i.format.semicolons;N=i.format.safeConcatenation;A=i.directive;T=p?null:i.parse;C=i.sourceMap;b=i.sourceCode;D=i.format.preserveBlankLines&&b!==null;S=i;if(C){if(!r.browser){a=e("source-map").SourceNode}else{a=t.sourceMap.SourceNode}}o=De(n);if(!C){u={code:o.toString(),map:null};return i.sourceMapWithCode?u:u.code}u=o.toStringWithSourceMap({file:i.file,sourceRoot:i.sourceMapRoot});if(i.sourceContent){u.map.setSourceContent(i.sourceMap,i.sourceContent)}if(i.sourceMapWithCode){return u}return u.map.toString()}x={indent:{style:"",base:0},renumber:true,hexadecimal:true,quotes:"auto",escapeless:true,compact:true,parentheses:false,semicolons:false};F=$().format;r.version=e("./package.json").version;r.generate=xe;r.attachComments=o.attachComments;r.Precedence=ee({},i);r.browser=false;r.FORMAT_MINIFY=x;r.FORMAT_DEFAULTS=F})()}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./package.json":67,estraverse:68,esutils:73,"source-map":258}],67:[function(e,t,r){t.exports={_args:[["escodegen@1.9.0","/Library/WebServer/Documents/localhost/uniter"]],_from:"escodegen@1.9.0",_id:"escodegen@1.9.0",_inBundle:false,_integrity:"sha512-v0MYvNQ32bzwoG2OSFzWAkuahDQHK92JBN0pTAALJ4RIxEZe766QJPDR8Hqy7XNUy5K3fnVL76OqYAdc4TZEIw==",_location:"/escodegen",_phantomChildren:{},_requested:{type:"version",registry:true,raw:"escodegen@1.9.0",name:"escodegen",escapedName:"escodegen",rawSpec:"1.9.0",saveSpec:null,fetchSpec:"1.9.0"},_requiredBy:["/","/pausable"],_resolved:"https://registry.npmjs.org/escodegen/-/escodegen-1.9.0.tgz",_spec:"1.9.0",_where:"/Library/WebServer/Documents/localhost/uniter",bin:{esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},bugs:{url:"https://github.com/estools/escodegen/issues"},dependencies:{esprima:"^3.1.3",estraverse:"^4.2.0",esutils:"^2.0.2",optionator:"^0.8.1","source-map":"~0.5.6"},description:"ECMAScript code generator",devDependencies:{acorn:"^4.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^3.5.0","commonjs-everywhere":"^0.9.7",gulp:"^3.8.10","gulp-eslint":"^3.0.1","gulp-mocha":"^3.0.1",semver:"^5.1.0"},engines:{node:">=0.12.0"},files:["LICENSE.BSD","LICENSE.source-map","README.md","bin","escodegen.js","package.json"],homepage:"http://github.com/estools/escodegen",license:"BSD-2-Clause",main:"escodegen.js",maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",url:"http://github.com/Constellation"}],name:"escodegen",optionalDependencies:{"source-map":"~0.5.6"},repository:{type:"git",url:"git+ssh://git@github.com/estools/escodegen.git"},scripts:{build:"cjsify -a path: tools/entry-point.js > escodegen.browser.js","build-min":"cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",lint:"gulp lint",release:"node tools/release.js",test:"gulp travis","unit-test":"gulp test"},version:"1.9.0"}},{}],68:[function(e,t,r){(function t(r){"use strict";var n,i,s,a,o,u,c,l,f;function p(){}i=Array.isArray;if(!i){i=function e(t){return Object.prototype.toString.call(t)==="[object Array]"}}function h(e){var t={},r,n;for(r in e){if(e.hasOwnProperty(r)){n=e[r];if(typeof n==="object"&&n!==null){t[r]=h(n)}else{t[r]=n}}}return t}function m(e){var t={},r;for(r in e){if(e.hasOwnProperty(r)){t[r]=e[r]}}return t}p(m);function d(e,t){var r,n,i,s;n=e.length;i=0;while(n){r=n>>>1;s=i+r;if(t(e[s])){n=r}else{i=s+1;n-=r+1}}return i}function E(e,t){var r,n,i,s;n=e.length;i=0;while(n){r=n>>>1;s=i+r;if(t(e[s])){i=s+1;n-=r+1}else{n=r}}return i}p(E);o=Object.create||function(){function e(){}return function(t){e.prototype=t;return new e}}();u=Object.keys||function(e){var t=[],r;for(r in e){t.push(r)}return t};function g(e,t){var r=u(t),n,i,s;for(i=0,s=r.length;i<s;i+=1){n=r[i];e[n]=t[n]}return e}n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"};a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};c={};l={};f={};s={Break:c,Skip:l,Remove:f};function y(e,t){this.parent=e;this.key=t}y.prototype.replace=function e(t){this.parent[this.key]=t};y.prototype.remove=function e(){if(i(this.parent)){this.parent.splice(this.key,1);return true}else{this.replace(null);return false}};function _(e,t,r,n){this.node=e;this.path=t;this.wrap=r;this.ref=n}function v(){}v.prototype.path=function e(){var t,r,n,s,a,o;function u(e,t){if(i(t)){for(n=0,s=t.length;n<s;++n){e.push(t[n])}}else{e.push(t)}}if(!this.__current.path){return null}a=[];for(t=2,r=this.__leavelist.length;t<r;++t){o=this.__leavelist[t];u(a,o.path)}u(a,this.__current.path);return a};v.prototype.type=function(){var e=this.current();return e.type||this.__current.wrap};v.prototype.parents=function e(){var t,r,n;n=[];for(t=1,r=this.__leavelist.length;t<r;++t){n.push(this.__leavelist[t].node)}return n};v.prototype.current=function e(){return this.__current.node};v.prototype.__execute=function e(t,r){var n,i;i=undefined;n=this.__current;this.__current=r;this.__state=null;if(t){i=t.call(this,r.node,this.__leavelist[this.__leavelist.length-1].node)}this.__current=n;return i};v.prototype.notify=function e(t){this.__state=t};v.prototype.skip=function(){this.notify(l)};v.prototype["break"]=function(){this.notify(c)};v.prototype.remove=function(){this.notify(f)};v.prototype.__initialize=function(e,t){this.visitor=t;this.root=e;this.__worklist=[];this.__leavelist=[];this.__current=null;this.__state=null;this.__fallback=null;if(t.fallback==="iteration"){this.__fallback=u}else if(typeof t.fallback==="function"){this.__fallback=t.fallback}this.__keys=a;if(t.keys){this.__keys=g(o(this.__keys),t.keys)}};function N(e){if(e==null){return false}return typeof e==="object"&&typeof e.type==="string"}function A(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&"properties"===t}v.prototype.traverse=function e(t,r){var n,s,a,o,u,f,p,h,m,d,E,g;this.__initialize(t,r);g={};n=this.__worklist;s=this.__leavelist;n.push(new _(t,null,null,null));s.push(new _(null,null,null,null));while(n.length){a=n.pop();if(a===g){a=s.pop();f=this.__execute(r.leave,a);if(this.__state===c||f===c){return}continue}if(a.node){f=this.__execute(r.enter,a);if(this.__state===c||f===c){return}n.push(g);s.push(a);if(this.__state===l||f===l){continue}o=a.node;u=o.type||a.wrap;d=this.__keys[u];if(!d){if(this.__fallback){d=this.__fallback(o)}else{throw new Error("Unknown node type "+u+".")}}h=d.length;while((h-=1)>=0){p=d[h];E=o[p];if(!E){continue}if(i(E)){m=E.length;while((m-=1)>=0){if(!E[m]){continue}if(A(u,d[h])){a=new _(E[m],[p,m],"Property",null)}else if(N(E[m])){a=new _(E[m],[p,m],null,null)}else{continue}n.push(a)}}else if(N(E)){n.push(new _(E,p,null,null))}}}}};v.prototype.replace=function e(t,r){var n,s,a,o,u,p,h,m,d,E,g,v,S;function T(e){var t,r,i,s;if(e.ref.remove()){r=e.ref.key;s=e.ref.parent;t=n.length;while(t--){i=n[t];if(i.ref&&i.ref.parent===s){if(i.ref.key<r){break}--i.ref.key}}}}this.__initialize(t,r);g={};n=this.__worklist;s=this.__leavelist;v={root:t};p=new _(t,null,null,new y(v,"root"));n.push(p);s.push(p);while(n.length){p=n.pop();if(p===g){p=s.pop();u=this.__execute(r.leave,p);if(u!==undefined&&u!==c&&u!==l&&u!==f){p.ref.replace(u)}if(this.__state===f||u===f){T(p)}if(this.__state===c||u===c){return v.root}continue}u=this.__execute(r.enter,p);if(u!==undefined&&u!==c&&u!==l&&u!==f){p.ref.replace(u);p.node=u}if(this.__state===f||u===f){T(p);p.node=null}if(this.__state===c||u===c){return v.root}a=p.node;if(!a){continue}n.push(g);s.push(p);if(this.__state===l||u===l){continue}o=a.type||p.wrap;d=this.__keys[o];if(!d){if(this.__fallback){d=this.__fallback(a)}else{throw new Error("Unknown node type "+o+".")}}h=d.length;while((h-=1)>=0){S=d[h];E=a[S];if(!E){continue}if(i(E)){m=E.length;while((m-=1)>=0){if(!E[m]){continue}if(A(o,d[h])){p=new _(E[m],[S,m],"Property",new y(E,m))}else if(N(E[m])){p=new _(E[m],[S,m],null,new y(E,m))}else{continue}n.push(p)}}else if(N(E)){n.push(new _(E,S,null,new y(a,S)))}}}return v.root};function S(e,t){var r=new v;return r.traverse(e,t)}function T(e,t){var r=new v;return r.replace(e,t)}function C(e,t){var r;r=d(t,function t(r){return r.range[0]>e.range[0]});e.extendedRange=[e.range[0],e.range[1]];if(r!==t.length){e.extendedRange[1]=t[r].range[0]}r-=1;if(r>=0){e.extendedRange[0]=t[r].range[1]}return e}function b(e,t,r){var n=[],i,a,o,u;if(!e.range){throw new Error("attachComments needs range information")}if(!r.length){if(t.length){for(o=0,a=t.length;o<a;o+=1){i=h(t[o]);i.extendedRange=[0,e.range[0]];n.push(i)}e.leadingComments=n}return e}for(o=0,a=t.length;o<a;o+=1){n.push(C(h(t[o]),r))}u=0;S(e,{enter:function(e){var t;while(u<n.length){t=n[u];if(t.extendedRange[1]>e.range[0]){break}if(t.extendedRange[1]===e.range[0]){if(!e.leadingComments){e.leadingComments=[]}e.leadingComments.push(t);n.splice(u,1)}else{u+=1}}if(u===n.length){return s.Break}if(n[u].extendedRange[0]>e.range[1]){return s.Skip}}});u=0;S(e,{leave:function(e){var t;while(u<n.length){t=n[u];if(e.range[1]<t.extendedRange[0]){break}if(e.range[1]===t.extendedRange[0]){if(!e.trailingComments){e.trailingComments=[]}e.trailingComments.push(t);n.splice(u,1)}else{u+=1}}if(u===n.length){return s.Break}if(n[u].extendedRange[0]>e.range[1]){return s.Skip}}});return e}r.version=e("./package.json").version;r.Syntax=n;r.traverse=S;r.replace=T;r.attachComments=b;r.VisitorKeys=a;r.VisitorOption=s;r.Controller=v;r.cloneEnvironment=function(){return t({})};return r})(r)},{"./package.json":69}],69:[function(e,t,r){t.exports={_args:[["estraverse@4.2.0","/Library/WebServer/Documents/localhost/uniter"]],_from:"estraverse@4.2.0",_id:"estraverse@4.2.0",_inBundle:false,_integrity:"sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=",_location:"/estraverse",_phantomChildren:{},_requested:{type:"version",registry:true,raw:"estraverse@4.2.0",name:"estraverse",escapedName:"estraverse",rawSpec:"4.2.0",saveSpec:null,fetchSpec:"4.2.0"},_requiredBy:["/","/escodegen","/pausable"],_resolved:"https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz",_spec:"4.2.0",_where:"/Library/WebServer/Documents/localhost/uniter",bugs:{url:"https://github.com/estools/estraverse/issues"},description:"ECMAScript JS AST traversal functions",devDependencies:{"babel-preset-es2015":"^6.3.13","babel-register":"^6.3.13",chai:"^2.1.1",espree:"^1.11.0",gulp:"^3.8.10","gulp-bump":"^0.2.2","gulp-filter":"^2.0.0","gulp-git":"^1.0.1","gulp-tag-version":"^1.2.1",jshint:"^2.5.6",mocha:"^2.1.0"},engines:{node:">=0.10.0"},homepage:"https://github.com/estools/estraverse",license:"BSD-2-Clause",main:"estraverse.js",maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",url:"http://github.com/Constellation"}],name:"estraverse",repository:{type:"git",url:"git+ssh://git@github.com/estools/estraverse.git"},scripts:{lint:"jshint estraverse.js",test:"npm run-script lint && npm run-script unit-test",
|
||
"unit-test":"mocha --compilers js:babel-register"},version:"4.2.0"}},{}],70:[function(e,t,r){(function(){"use strict";function e(e){if(e==null){return false}switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return true}return false}function r(e){if(e==null){return false}switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return true}return false}function n(e){if(e==null){return false}switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return true}return false}function i(e){return n(e)||e!=null&&e.type==="FunctionDeclaration"}function s(e){switch(e.type){case"IfStatement":if(e.alternate!=null){return e.alternate}return e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}function a(e){var t;if(e.type!=="IfStatement"){return false}if(e.alternate==null){return false}t=e.consequent;do{if(t.type==="IfStatement"){if(t.alternate==null){return true}}t=s(t)}while(t);return false}t.exports={isExpression:e,isStatement:n,isIterationStatement:r,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:s}})()},{}],71:[function(e,t,r){(function(){"use strict";var e,r,n,i,s,a;r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/};e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function o(e){return 48<=e&&e<=57}function u(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function c(e){return e>=48&&e<=55}n=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function l(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&n.indexOf(e)>=0}function f(e){return e===10||e===13||e===8232||e===8233}function p(e){if(e<=65535){return String.fromCharCode(e)}var t=String.fromCharCode(Math.floor((e-65536)/1024)+55296);var r=String.fromCharCode((e-65536)%1024+56320);return t+r}i=new Array(128);for(a=0;a<128;++a){i[a]=a>=97&&a<=122||a>=65&&a<=90||a===36||a===95}s=new Array(128);for(a=0;a<128;++a){s[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===36||a===95}function h(e){return e<128?i[e]:r.NonAsciiIdentifierStart.test(p(e))}function m(e){return e<128?s[e]:r.NonAsciiIdentifierPart.test(p(e))}function d(t){return t<128?i[t]:e.NonAsciiIdentifierStart.test(p(t))}function E(t){return t<128?s[t]:e.NonAsciiIdentifierPart.test(p(t))}t.exports={isDecimalDigit:o,isHexDigit:u,isOctalDigit:c,isWhiteSpace:l,isLineTerminator:f,isIdentifierStartES5:h,isIdentifierPartES5:m,isIdentifierStartES6:d,isIdentifierPartES6:E}})()},{}],72:[function(e,t,r){(function(){"use strict";var r=e("./code");function n(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return true;default:return false}}function i(e,t){if(!t&&e==="yield"){return false}return s(e,t)}function s(e,t){if(t&&n(e)){return true}switch(e.length){case 2:return e==="if"||e==="in"||e==="do";case 3:return e==="var"||e==="for"||e==="new"||e==="try";case 4:return e==="this"||e==="else"||e==="case"||e==="void"||e==="with"||e==="enum";case 5:return e==="while"||e==="break"||e==="catch"||e==="throw"||e==="const"||e==="yield"||e==="class"||e==="super";case 6:return e==="return"||e==="typeof"||e==="delete"||e==="switch"||e==="export"||e==="import";case 7:return e==="default"||e==="finally"||e==="extends";case 8:return e==="function"||e==="continue"||e==="debugger";case 10:return e==="instanceof";default:return false}}function a(e,t){return e==="null"||e==="true"||e==="false"||i(e,t)}function o(e,t){return e==="null"||e==="true"||e==="false"||s(e,t)}function u(e){return e==="eval"||e==="arguments"}function c(e){var t,n,i;if(e.length===0){return false}i=e.charCodeAt(0);if(!r.isIdentifierStartES5(i)){return false}for(t=1,n=e.length;t<n;++t){i=e.charCodeAt(t);if(!r.isIdentifierPartES5(i)){return false}}return true}function l(e,t){return(e-55296)*1024+(t-56320)+65536}function f(e){var t,n,i,s,a;if(e.length===0){return false}a=r.isIdentifierStartES6;for(t=0,n=e.length;t<n;++t){i=e.charCodeAt(t);if(55296<=i&&i<=56319){++t;if(t>=n){return false}s=e.charCodeAt(t);if(!(56320<=s&&s<=57343)){return false}i=l(i,s)}if(!a(i)){return false}a=r.isIdentifierPartES6}return true}function p(e,t){return c(e)&&!a(e,t)}function h(e,t){return f(e)&&!o(e,t)}t.exports={isKeywordES5:i,isKeywordES6:s,isReservedWordES5:a,isReservedWordES6:o,isRestrictedWord:u,isIdentifierNameES5:c,isIdentifierNameES6:f,isIdentifierES5:p,isIdentifierES6:h}})()},{"./code":71}],73:[function(e,t,r){(function(){"use strict";r.ast=e("./ast");r.code=e("./code");r.keyword=e("./keyword")})()},{"./ast":70,"./code":71,"./keyword":72}],74:[function(e,t,r){function n(){this._events=this._events||{};this._maxListeners=this._maxListeners||undefined}t.exports=n;n.EventEmitter=n;n.prototype._events=undefined;n.prototype._maxListeners=undefined;n.defaultMaxListeners=10;n.prototype.setMaxListeners=function(e){if(!s(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");this._maxListeners=e;return this};n.prototype.emit=function(e){var t,r,n,s,u,c;if(!this._events)this._events={};if(e==="error"){if(!this._events.error||a(this._events.error)&&!this._events.error.length){t=arguments[1];if(t instanceof Error){throw t}throw TypeError('Uncaught, unspecified "error" event.')}}r=this._events[e];if(o(r))return false;if(i(r)){switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:n=arguments.length;s=new Array(n-1);for(u=1;u<n;u++)s[u-1]=arguments[u];r.apply(this,s)}}else if(a(r)){n=arguments.length;s=new Array(n-1);for(u=1;u<n;u++)s[u-1]=arguments[u];c=r.slice();n=c.length;for(u=0;u<n;u++)c[u].apply(this,s)}return true};n.prototype.addListener=function(e,t){var r;if(!i(t))throw TypeError("listener must be a function");if(!this._events)this._events={};if(this._events.newListener)this.emit("newListener",e,i(t.listener)?t.listener:t);if(!this._events[e])this._events[e]=t;else if(a(this._events[e]))this._events[e].push(t);else this._events[e]=[this._events[e],t];if(a(this._events[e])&&!this._events[e].warned){var r;if(!o(this._maxListeners)){r=this._maxListeners}else{r=n.defaultMaxListeners}if(r&&r>0&&this._events[e].length>r){this._events[e].warned=true;console.error("(node) warning: possible EventEmitter memory "+"leak detected. %d listeners added. "+"Use emitter.setMaxListeners() to increase limit.",this._events[e].length);if(typeof console.trace==="function"){console.trace()}}}return this};n.prototype.on=n.prototype.addListener;n.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var r=false;function n(){this.removeListener(e,n);if(!r){r=true;t.apply(this,arguments)}}n.listener=t;this.on(e,n);return this};n.prototype.removeListener=function(e,t){var r,n,s,o;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;r=this._events[e];s=r.length;n=-1;if(r===t||i(r.listener)&&r.listener===t){delete this._events[e];if(this._events.removeListener)this.emit("removeListener",e,t)}else if(a(r)){for(o=s;o-- >0;){if(r[o]===t||r[o].listener&&r[o].listener===t){n=o;break}}if(n<0)return this;if(r.length===1){r.length=0;delete this._events[e]}else{r.splice(n,1)}if(this._events.removeListener)this.emit("removeListener",e,t)}return this};n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener){if(arguments.length===0)this._events={};else if(this._events[e])delete this._events[e];return this}if(arguments.length===0){for(t in this._events){if(t==="removeListener")continue;this.removeAllListeners(t)}this.removeAllListeners("removeListener");this._events={};return this}r=this._events[e];if(i(r)){this.removeListener(e,r)}else{while(r.length)this.removeListener(e,r[r.length-1])}delete this._events[e];return this};n.prototype.listeners=function(e){var t
|
||
;if(!this._events||!this._events[e])t=[];else if(i(this._events[e]))t=[this._events[e]];else t=this._events[e].slice();return t};n.listenerCount=function(e,t){var r;if(!e._events||!e._events[t])r=0;else if(i(e._events[t]))r=1;else r=e._events[t].length;return r};function i(e){return typeof e==="function"}function s(e){return typeof e==="number"}function a(e){return typeof e==="object"&&e!==null}function o(e){return e===void 0}},{}],75:[function(e,t,r){r.read=function(e,t,r,n,i){var s,a;var o=i*8-n-1;var u=(1<<o)-1;var c=u>>1;var l=-7;var f=r?i-1:0;var p=r?-1:1;var h=e[t+f];f+=p;s=h&(1<<-l)-1;h>>=-l;l+=o;for(;l>0;s=s*256+e[t+f],f+=p,l-=8){}a=s&(1<<-l)-1;s>>=-l;l+=n;for(;l>0;a=a*256+e[t+f],f+=p,l-=8){}if(s===0){s=1-c}else if(s===u){return a?NaN:(h?-1:1)*Infinity}else{a=a+Math.pow(2,n);s=s-c}return(h?-1:1)*a*Math.pow(2,s-n)};r.write=function(e,t,r,n,i,s){var a,o,u;var c=s*8-i-1;var l=(1<<c)-1;var f=l>>1;var p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var h=n?0:s-1;var m=n?1:-1;var d=t<0||t===0&&1/t<0?1:0;t=Math.abs(t);if(isNaN(t)||t===Infinity){o=isNaN(t)?1:0;a=l}else{a=Math.floor(Math.log(t)/Math.LN2);if(t*(u=Math.pow(2,-a))<1){a--;u*=2}if(a+f>=1){t+=p/u}else{t+=p*Math.pow(2,1-f)}if(t*u>=2){a++;u/=2}if(a+f>=l){o=0;a=l}else if(a+f>=1){o=(t*u-1)*Math.pow(2,i);a=a+f}else{o=t*Math.pow(2,f-1)*Math.pow(2,i);a=0}}for(;i>=8;e[r+h]=o&255,h+=m,o/=256,i-=8){}a=a<<i|o;c+=i;for(;c>0;e[r+h]=a&255,h+=m,a/=256,c-=8){}e[r+h-m]|=d*128}},{}],76:[function(e,t,r){(function(e){"use strict";var r=e.MutationObserver||e.WebKitMutationObserver;var n;{if(r){var i=0;var s=new r(l);var a=e.document.createTextNode("");s.observe(a,{characterData:true});n=function(){a.data=i=++i%2}}else if(!e.setImmediate&&typeof e.MessageChannel!=="undefined"){var o=new e.MessageChannel;o.port1.onmessage=l;n=function(){o.port2.postMessage(0)}}else if("document"in e&&"onreadystatechange"in e.document.createElement("script")){n=function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l();t.onreadystatechange=null;t.parentNode.removeChild(t);t=null};e.document.documentElement.appendChild(t)}}else{n=function(){setTimeout(l,0)}}}var u;var c=[];function l(){u=true;var e,t;var r=c.length;while(r){t=c;c=[];e=-1;while(++e<r){t[e]()}r=c.length}u=false}t.exports=f;function f(e){if(c.push(e)===1&&!u){n()}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],77:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)=="[object Array]"}},{}],78:[function(e,t,r){"use strict";var n=e("immediate");function i(){}var s={};var a=["REJECTED"];var o=["FULFILLED"];var u=["PENDING"];t.exports=c;function c(e){if(typeof e!=="function"){throw new TypeError("resolver must be a function")}this.state=u;this.queue=[];this.outcome=void 0;if(e!==i){h(this,e)}}c.prototype["catch"]=function(e){return this.then(null,e)};c.prototype.then=function(e,t){if(typeof e!=="function"&&this.state===o||typeof t!=="function"&&this.state===a){return this}var r=new this.constructor(i);if(this.state!==u){var n=this.state===o?e:t;f(r,n,this.outcome)}else{this.queue.push(new l(r,e,t))}return r};function l(e,t,r){this.promise=e;if(typeof t==="function"){this.onFulfilled=t;this.callFulfilled=this.otherCallFulfilled}if(typeof r==="function"){this.onRejected=r;this.callRejected=this.otherCallRejected}}l.prototype.callFulfilled=function(e){s.resolve(this.promise,e)};l.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)};l.prototype.callRejected=function(e){s.reject(this.promise,e)};l.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)};function f(e,t,r){n(function(){var n;try{n=t(r)}catch(t){return s.reject(e,t)}if(n===e){s.reject(e,new TypeError("Cannot resolve promise with itself"))}else{s.resolve(e,n)}})}s.resolve=function(e,t){var r=m(p,t);if(r.status==="error"){return s.reject(e,r.value)}var n=r.value;if(n){h(e,n)}else{e.state=o;e.outcome=t;var i=-1;var a=e.queue.length;while(++i<a){e.queue[i].callFulfilled(t)}}return e};s.reject=function(e,t){e.state=a;e.outcome=t;var r=-1;var n=e.queue.length;while(++r<n){e.queue[r].callRejected(t)}return e};function p(e){var t=e&&e.then;if(e&&(typeof e==="object"||typeof e==="function")&&typeof t==="function"){return function r(){t.apply(e,arguments)}}}function h(e,t){var r=false;function n(t){if(r){return}r=true;s.reject(e,t)}function i(t){if(r){return}r=true;s.resolve(e,t)}function a(){t(i,n)}var o=m(a);if(o.status==="error"){n(o.value)}}function m(e,t){var r={};try{r.value=e(t);r.status="success"}catch(e){r.status="error";r.value=e}return r}c.resolve=d;function d(e){if(e instanceof this){return e}return s.resolve(new this(i),e)}c.reject=E;function E(e){var t=new this(i);return s.reject(t,e)}c.all=g;function g(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]"){return this.reject(new TypeError("must be an array"))}var r=e.length;var n=false;if(!r){return this.resolve([])}var a=new Array(r);var o=0;var u=-1;var c=new this(i);while(++u<r){l(e[u],u)}return c;function l(e,i){t.resolve(e).then(u,function(e){if(!n){n=true;s.reject(c,e)}});function u(e){a[i]=e;if(++o===r&&!n){n=true;s.resolve(c,a)}}}}c.race=y;function y(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]"){return this.reject(new TypeError("must be an array"))}var r=e.length;var n=false;if(!r){return this.resolve([])}var a=-1;var o=new this(i);while(++a<r){u(e[a])}return o;function u(e){t.resolve(e).then(function(e){if(!n){n=true;s.resolve(o,e)}},function(e){if(!n){n=true;s.reject(o,e)}})}}},{immediate:76}],79:[function(e,t,r){"use strict";var n=e("./src/each"),i=e("./src/escapeRegExp"),s=e("./src/extend"),a=e("./src/filter"),o=e("./src/forOwn"),u=e("./src/isArray"),c=e("./src/isBoolean"),l=e("./src/isFunction"),f=e("./src/isNumber"),p=e("./src/isPlainObject"),h=e("./src/isString"),m=e("./src/map");t.exports={each:n,escapeRegExp:i,extend:s,filter:a,forOwn:o,isArray:u,isBoolean:c,isFunction:l,isNumber:f,isPlainObject:p,isString:h,map:m}},{"./src/each":80,"./src/escapeRegExp":81,"./src/extend":82,"./src/filter":83,"./src/forOwn":84,"./src/isArray":86,"./src/isBoolean":87,"./src/isFunction":88,"./src/isNumber":89,"./src/isPlainObject":90,"./src/isString":91,"./src/map":92}],80:[function(e,t,r){"use strict";var n={}.hasOwnProperty,i=e("./isArray");t.exports=function(e,t,r){var s,a;if(!e){return}if(i(e)||n.call(e,"length")){for(s=0,a=e.length;s<a;s++){if(t.call(r,e[s],s,e)===false){break}}return}for(s in e){if(n.call(e,s)){if(t.call(r,e[s],s,e)===false){break}}}}},{"./isArray":86}],81:[function(e,t,r){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;t.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(n,"\\$&")}},{}],82:[function(e,t,r){"use strict";var n=e("./each"),i=e("./forOwn");t.exports=function(e){var t=[].slice.call(arguments,1);n(t,function(t){i(t,function(t,r){e[r]=t})});return e}},{"./each":80,"./forOwn":84}],83:[function(e,t,r){"use strict";var n=e("./each");t.exports=function(e,t,r){var i=[];n(e,function(n,s){if(t.call(r,n,s,e)){i.push(n)}});return i}},{"./each":80}],84:[function(e,t,r){"use strict";var n={}.hasOwnProperty;t.exports=function(e,t,r){var i;for(i in e){if(n.call(e,i)){if(t.call(r,e[i],i,e)===false){break}}}}},{}],85:[function(e,t,r){"use strict";var n=/\[object ([^\]]+)\]/;t.exports=function(e){return{}.toString.call(e).match(n)[1]}},{}],86:[function(e,t,r){"use strict";var n=e("./getType");t.exports=function(e){return n(e)==="Array"}},{"./getType":85}],87:[function(e,t,r){"use strict";var n=e("./getType");t.exports=function(e){return n(e)==="Boolean"}},{"./getType":85}],88:[function(e,t,r){"use strict";var n=e("./getType");t.exports=function(e){return n(e)==="Function"}},{"./getType":85}],89:[function(e,t,r){"use strict";var n=e("./getType");t.exports=function(e){return n(e)==="Number"}},{"./getType":85}],90:[function(e,t,r){"use strict";var n=e("./getType");t.exports=function(e){return n(e)==="Object"}},{"./getType":85}],91:[function(e,t,r){"use strict";var n=e("./getType");t.exports=function(e){return n(e)==="String"}},{"./getType":85}],92:[function(e,t,r){"use strict";var n=e("./each");t.exports=function(e,t,r){var i=[];n(e,function(n,s){i[s]=t.call(r,n,s,e)});return i}},{"./each":80}],93:[function(e,t,r){"use strict";var n=e("./src/Parser"),i=e("./src/Parsing");t.exports=new i(n)},{"./src/Parser":97,"./src/Parsing":98}],94:[function(e,t,r){"use strict";var n=e("microdash"),i=e("./copy"),s=e("./getColumnNumber"),a=e("./getLineNumber"),o;function u(e,t,r,n,i,s,a,o){this.arg=i;this.args=s;this.captureOffsetAs=s.captureOffsetAs||o;this.matchCache=t;this.name=a;this.parser=e;this.qualifier=n;this.qualifierName=r}n.extend(u.prototype,{getOffsetCaptureName:function(){return this.captureOffsetAs},match:function(e,t,r){var i=this,s=i.matchCache[t],a;if(s!==o){return s}a=i.qualifier(e,t,i.arg,i.args,r);if(a===null){i.matchCache[t]=null;return null}if(r.ignoreWhitespace!==false){i.parser.logFurthestMatch(a,t+a.textOffset)}else{i.parser.logFurthestIgnoreMatch(a,t+a.textOffset)}if(i.name!==null||i.args.allowMerge===false||i.args.captureOffsetAs){s=f(e,a,i,t)}else{if(n.isArray(a.components)){s=l(a,i,e,t)}else{s=a}}i.matchCache[t]=s;return s}});function c(e){var t=true;n.each(e,function(e){if(!n.isString(e)){t=false;return false}});return t}function l(e,t,r,o){var u;if(c(e.components)){u={components:e.components.join(""),textLength:e.textLength}}else{u={components:{},textLength:e.textLength};n.each(e.components,function(e){if(n.isPlainObject(e)){i(u.components,e)}});if(t.captureOffsetAs&&e.components.length>1){u.components[t.captureOffsetAs]={length:e.textLength,line:a(r,o+e.textOffset),column:s(r,o+e.textOffset),offset:o+e.textOffset}}}if(e.name){u.components.name=e.name}u.textOffset=e.textOffset;return u}function f(e,t,r,n){var i={components:{},isEmpty:t.isEmpty||false,textLength:t.textLength,textOffset:t.textOffset};if(t.name){i.components.name=t.name}if(r.name!==null){i.components[r.name]=t.components}if(r.captureOffsetAs){(function(n){i.components[r.captureOffsetAs]={length:t.textLength,line:a(e,n),column:s(e,n),offset:n}})(n+i.textOffset)}return i}t.exports=u},{"./copy":100,"./getColumnNumber":101,"./getLineNumber":102,microdash:79}],95:[function(e,t,r){"use strict";var n=e("microdash"),i=e("util");function s(e){this.message=e}i.inherits(s,Error);n.extend(s.prototype,{type:"Exception",getMessage:function(){return this.message}});t.exports=s},{microdash:79,util:265}],96:[function(e,t,r){"use strict";var n=e("microdash"),i=e("../getLineNumber"),s=e("util"),a=e("./Exception");function o(e,t,r,n,i,s){a.call(this,e);this.furthestIgnoreMatch=i;this.furthestIgnoreMatchOffset=s;this.furthestMatch=r;this.furthestMatchOffset=n;this.text=t}s.inherits(o,a);n.extend(o.prototype,{getFurthestMatchEnd:function(){var e=this;if(e.furthestIgnoreMatchOffset>e.furthestMatchOffset){return e.furthestIgnoreMatchOffset+e.furthestIgnoreMatch.textLength}return e.furthestMatchOffset+e.furthestMatch.textLength},getLineNumber:function(){var e=this;return i(e.text,e.getFurthestMatchEnd())},getText:function(){return this.text},unexpectedEndOfInput:function(){var e=this;return e.getFurthestMatchEnd()===e.text.length}});t.exports=o},{"../getLineNumber":102,"./Exception":95,microdash:79,util:265}],97:[function(e,t,r){"use strict";var n=e("microdash"),i={}.hasOwnProperty,s=e("./Component"),a=e("./Exception/Exception"),o=e("./Exception/Parse"),u=e("./Rule");function c(e,t,r){r=r||{};this.errorHandler=null;this.furthestIgnoreMatch=null;this.furthestIgnoreMatchOffset=-1;this.furthestMatch=null;this.furthestMatchOffset=-1;this.grammarSpec=e;this.matchCaches=[];this.options=r;this.rules=null;this.state=null;this.stderr=t;(function(t){function o(e){if(e.source.charAt(0)!=="^"){e=new RegExp("^(?:"+e.source+")",e.toString().match(/[^\/]*$/)[0])}return e}function c(){var e={};t.matchCaches.push(e);return e}var l={allOf:function(e,t,r,i,s){var a=[],o=0,u=null;n.each(r,function(r){var n=r.match(e,t+(u||0)+o,s);if(n===null){a=null;return false}o+=n.textLength;a.push(n.components);if(u===null){if(!n.isEmpty){u=n.textOffset}}else{o+=n.textOffset}});return a?{components:a,textLength:o,textOffset:u||0}:null},oneOf:function(e,t,r,i,s){var a=null;n.each(r,function(r){var n=r.match(e,t,s);if(n!==null){a=n;return false}});return a},oneOrMoreOf:function(e,t,r,n,i){var s,a=[],o=0,u=null;while((s=r.match(e,t+(u||0)+o,i))!==null){o+=s.textLength;a.push(s.components);if(u===null){u=s.textOffset}else{o+=s.textOffset}}return a.length>0?{components:a,textLength:o,textOffset:u||0}:null},optionally:function(e,t,r,n,i){var s=r.match(e,t,i);if(s){if(n.wrapInArray){return{components:[s.components],textLength:s.textLength,textOffset:s.textOffset}}return s}return{isEmpty:true,components:n.wrapInArray?[]:"",textLength:0,textOffset:0}},rule:function(e,t,r,n,s){var a=i.call(n,"text")?n.text:null,o=r.match(e,t,s);if(o===null){return null}return a===null||e.substr(t+o.textOffset,o.textLength)===a?o:null},what:function(e,r,i,o,u){var c,l,f,p=0;function h(){var n;if(t.ignoreRule&&u.ignoreWhitespace!==false&&o.ignoreWhitespace!==false){while(n=t.ignoreRule.match(e,r+p,{ignoreWhitespace:false})){p+=n.textLength}}}function m(e){if(o.replace){n.each(o.replace,function(t){e=e.replace(t.pattern,t.replacement)})}return e}if(n.isString(i)){h();if(e.substr(r+p,i.length)===i){return{components:i,textLength:i.length,textOffset:p}}}else if(i instanceof RegExp){h();l=e.substr(r+p).match(i);if(l){c=o.captureIndex||0;return{components:m(l[c]),textLength:l[0].length,textOffset:p}}}else if(i instanceof s){f=i.match(e,r,u);if(n.isString(f)){f=m(f)}else if(f&&n.isString(f.components)){f.components=m(f.components)}return f}else if(n.isFunction(i)){h();return i(e,r,p,u)}else{throw new a('Parser "what" qualifier :: Invalid argument "'+i+'"')}return null},zeroOrMoreOf:function(e,t,r,n,i){var s,a=[],o=0,u=null;while(s=r.match(e,t+(u||0)+o,i)){o+=s.textLength;a.push(s.components);if(u===null){u=s.textOffset}else{o+=s.textOffset}}return{components:a,textLength:o,textOffset:u||0}}},f={},p={};p["<BOF>"]=new u(t,"<BOF>",null,null);p["<BOF>"].setComponent(new s(t,c(),"what",l.what,function(e,t,r){return t===0?{components:"",textLength:0,textOffset:r}:null},{},null));p["<EOF>"]=new u(t,"<EOF>",null,null);p["<EOF>"].setComponent(new s(t,c(),"what",l.what,function(e,t,r){return t+r===e.length?{components:"",textLength:0,textOffset:r}:null},{},null));function h(e,r){return new u(t,r,e.captureAs||null,e.ifNoMatch||null,e.processor||null,e.options||null)}n.each(e.rules,function(e,t){var r=h(e,t);f[t]=r;p[t]=r});n.each(r.rules||{},function(e,t){p[t]=h(e,t)});function m(r,u,f,p){function h(r){var m,d={},E=null,g=null;if(n.isArray(r)){g="allOf";m=[];n.each(r,function(e,t){m[t]=h(e)})}else if(n.isString(r)){g="rule";m=f[r];if(!m){throw new a('Parser :: Invalid component - no rule with name "'+r+'" exists')}}else if(r instanceof RegExp){r=o(r);g="what";m=r}else if(n.isPlainObject(r)){n.each(l,function(e,t){var s;if(i.call(r,t)){s=r[t];g=t;if(g==="oneOf"){m=[];n.each(s,function(e,t){m[t]=h(e)})}else if(g==="optionally"){m=h(s)}else{m=s instanceof RegExp?o(s):h(s)}return false}});if(!g){if(Object.keys(r).length!==1){throw new a("Parser :: Invalid component - no valid qualifier referenced by spec: "+JSON.stringify(r))}(function(){var e=Object.keys(r)[0];g="rule";m=f[e];if(!m){throw new a('Parser :: Invalid component - no rule with name "'+e+'" exists')}d.text=r[e]})()}n.each(r,function(e,t){if(t!==g&&t!=="name"){d[t]=e}});if(i.call(r,"name")){E=r.name}}else{throw new a('Parser :: Invalid componentSpec "'+r+'" specified')}if(g==="rule"&&m.name===u&&i.call(p,u)){m=p[u]}if(!l[g]){throw new a('Parser :: Invalid component - qualifier name "'+g+'" is invalid')}return new s(t,c(),g,l[g],m,d,E,t.options.captureAllOffsets?e.offsets||"offset":null)}f[u].setComponent(h(r.components||r))}n.each(e.rules,function(e,t){if(i.call(r.rules||{},t)){m(e,t,f,p);return}m(e,t,p,p)});n.each(r.rules||{},function(e,t){m(e,t,p,f)});t.rules=p;t.ignoreRule=p[e.ignore]||null;t.startRule=p[e.start]})(this)}n.extend(c.prototype,{clearMatchCache:function(){n.each(this.matchCaches,function(e){n.each(e,function(t,r){delete e[r]})})},getErrorHandler:function(){var e=this;if(!e.errorHandler&&e.grammarSpec.ErrorHandler){e.errorHandler=new e.grammarSpec.ErrorHandler(e.stderr,e.getState())}return e.errorHandler},getState:function(){var e=this;if(!e.state&&e.grammarSpec.State){e.state=new e.grammarSpec.State}return e.state},logFurthestIgnoreMatch:function(e,t){var r=this;if(t>=r.furthestIgnoreMatchOffset&&e.textLength>0){r.furthestIgnoreMatch=e;r.furthestIgnoreMatchOffset=t}},logFurthestMatch:function(e,t){var r=this;if(t>=r.furthestMatchOffset&&e.textLength>0){r.furthestMatch=e;r.furthestMatchOffset=t}},parse:function(e,t,r){var n=this,i=n.getErrorHandler(),s=r?n.rules[r]:n.startRule,a;n.clearMatchCache();n.furthestIgnoreMatch=null;n.furthestIgnoreMatchOffset=-1;n.furthestMatch=null;n.furthestMatchOffset=-1;a=s.match(e,0,t);if(i&&(a===null||a.textLength<e.length)){i.handle(new o("Parser.parse() :: Unexpected "+(a?'"'+e.charAt(a.textLength)+'"':"$end"),e,n.furthestMatch,n.furthestMatchOffset,n.furthestIgnoreMatch,n.furthestIgnoreMatchOffset))}return a!==null?a.components:null}});t.exports=c},{"./Component":94,"./Exception/Exception":95,"./Exception/Parse":96,"./Rule":99,microdash:79}],98:[function(e,t,r){"use strict";var n=e("microdash");function i(e){this.Parser=e}n.extend(i.prototype,{create:function(e,t,r){return new this.Parser(e,t,r)}});t.exports=i},{microdash:79}],99:[function(e,t,r){"use strict";var n=e("microdash"),i=e("./copy");function s(e,t,r,n,i,s){this.captureName=r;this.component=null;this.ifNoMatch=n;this.name=t;this.options=s;this.parser=e;this.processor=i}n.extend(s.prototype,{match:function(e,t,r){var s,a,o=this,u;r=r||{};u=o.component.match(e,t,r);if(u===null){return null}if(typeof u.components==="object"){i(u.components,o.options)}if(o.ifNoMatch&&(!(a=u.components[o.ifNoMatch.component])||a.length===0)){u={components:u.components[o.ifNoMatch.capture],textOffset:u.textOffset,textLength:u.textLength}}else{if(!n.isString(u.components)&&!u.components.name){u.components.name=o.captureName||o.name}}if(o.processor){if(o.component.getOffsetCaptureName()){s=u.components[o.component.getOffsetCaptureName()]}u.components=o.processor(u.components,function(e,t,r){var n=o.parser.parse(e,t,r);o.parser.clearMatchCache();return n});if(o.component.getOffsetCaptureName()){u.components[o.component.getOffsetCaptureName()]=s}}return u},setComponent:function(e){this.component=e}});t.exports=s},{"./copy":100,microdash:79}],100:[function(e,t,r){"use strict";var n={}.hasOwnProperty;function i(e,t){var r;for(r in t){if(n.call(t,r)){e[r]=t[r]}}}t.exports=i},{}],101:[function(e,t,r){"use strict";var n=/[\s\S]*^/m;function i(e,t){return e.substr(0,t).replace(n,"").length+1}t.exports=i},{}],102:[function(e,t,r){"use strict";function n(e,t){function r(e,t){return e.split(t).length}return r(e.substr(0,t),"\n")}t.exports=n},{}],103:[function(e,t,r){"use strict";var n=e("./src/Resumable"),i=e("./src/Transpiler");t.exports=new n(new i)},{"./src/Resumable":122,"./src/Transpiler":143}],104:[function(e,t,r){"use strict";var n=e("microdash"),i=e("acorn"),s=e("estraverse"),a="consequent",o=s.Syntax,u=function e(t,r,n){var s=[t];if(n!==null){if(!n){n=r+1}s.push(i.parse("statementIndex = "+n+";").body[0])}return{type:o.SwitchCase,test:{type:o.Literal,value:r},consequent:s}};function c(e){this.functionContext=e;this.switchCases=[];this.transforms=[];this.transformsStack=[]}n.extend(c.prototype,{addAssignment:function(e){var t=this,r=t.functionContext.getNextStatementIndex();return{assign:function(n){if(!n){throw new Error("Expression node must be specified")}t.functionContext.addAssignment(r,e);t.switchCases[r]=u({type:o.ExpressionStatement,expression:{type:o.AssignmentExpression,operator:"=",left:{type:o.Identifier,name:e},right:n}},r)}}},addResumeThrow:function(){var e=this,t=e.functionContext.getCurrentStatementIndex();return{assign:function(r){var n=e.functionContext.getCurrentStatementIndex()-1,i;if(!r){throw new Error("Expression node must be specified")}e.appendToLastStatement({type:o.BreakStatement,label:null});for(i=t;i<n;i++){e.switchCases[i]={type:o.SwitchCase,test:{type:o.Literal,value:i},consequent:[]}}e.switchCases[n]={type:o.SwitchCase,test:{type:o.Literal,value:n},consequent:[{type:o.ThrowStatement,argument:{type:o.NewExpression,callee:{type:o.MemberExpression,object:{type:o.Identifier,name:"Resumable"},property:{type:o.Identifier,name:"ResumeException"},computed:false},arguments:[r]}}]}}}},appendToLastStatement:function(e){var t=this,r=t.switchCases[t.switchCases.length-1];if(!r){return}if(n.isArray(r)){r[r.length-1][a].push(e)}else{r.push(e)}},getSwitchStatement:function(){var e=[];n.each(this.switchCases,function(t){if(t){if(n.isArray(t)){[].push.apply(e,t)}else{e.push(t)}}});return{type:o.SwitchStatement,discriminant:{type:o.Identifier,name:"statementIndex"},cases:e}},prepareStatement:function(){var e=this,t=null,r=e.functionContext.getNextStatementIndex(),s=e.transforms.slice();e.transforms=[];return{append:function(t){var i=e.switchCases[r];if(!i){throw new Error("Cannot append as statement has not been assigned yet!")}if(n.isArray(i)){i[i.length-1][a].push(t)}else{i.push(t)}},assign:function(n,a){var c,l=[];for(c=0;c<s.length;c++){n=s[c](n)}if(!t){t=e.functionContext.getCurrentStatementIndex()}for(c=r;c<t-1;c++){l.push({type:o.SwitchCase,test:{type:o.Literal,value:c},consequent:c===r?[i.parse("statementIndex = "+(r+1)+";").body[0]]:[]})}l.push(u(n,t-1,a));e.switchCases[r]=l},captureEndIndex:function(){t=e.functionContext.getCurrentStatementIndex()},getEndIndex:function(){return t},getIndex:function(){return r},prepend:function(t){var i=e.switchCases[r];if(!i){throw new Error("Cannot prepend as statement has not been assigned yet!")}if(n.isArray(i)){i[i.length-1][a].unshift(t)}else{i.unshift(t)}}}},popTransforms:function(){this.transforms=this.transformsStack.pop()},pushTransforms:function(){var e=this;e.transformsStack.push(e.transforms);e.transforms=[]},transformNextStatement:function(e){this.transforms.unshift(e)}});t.exports=c},{acorn:7,estraverse:68,microdash:79}],105:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="elements",a=i.Syntax;function o(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(o.prototype,{getNodeType:function(){return a.ArrayExpression},transpile:function(e,t,r,n){var i=this;return{type:a.ArrayExpression,elements:i.expressionTranspiler.transpileArray(e[s],e,r,n)}}});t.exports=o},{estraverse:68,microdash:79}],106:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="left",a="operator",o="right",u=i.Syntax;function c(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(c.prototype,{getNodeType:function(){return u.AssignmentExpression},transpile:function(e,t,r,n){var i,c,l=this;i=l.expressionTranspiler.transpile(e[s],e,r,n,{assignment:true});if(e[a]==="="){c=e[o]}else{c={type:u.BinaryExpression,operator:e[a].charAt(0),left:e[s],right:e[o]}}c=l.expressionTranspiler.transpile(c,e,r,n);return{type:u.AssignmentExpression,operator:"=",left:i,right:c}}});t.exports=c},{estraverse:68,microdash:79}],107:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="left",a="operator",o="right",u=i.Syntax;function c(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(c.prototype,{getNodeType:function(){return u.BinaryExpression},transpile:function(e,t,r,n){var i,c,l=this;i=l.expressionTranspiler.transpile(e[s],e,r,n);c=l.expressionTranspiler.transpile(e[o],e,r,n);return{type:u.BinaryExpression,operator:e[a],left:i,right:c}}});t.exports=c},{estraverse:68,microdash:79}],108:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="arguments",a="callee",o="object",u="type",c=i.Syntax;function l(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(l.prototype,{getNodeType:function(){return c.CallExpression},transpile:function(e,t,r,n){var i=e[s],l,f,p,h=this,m;r.clearLastAssignments();f=h.expressionTranspiler.transpile(e[a],e,r,n);l=r.getLastAssignments();i=h.expressionTranspiler.transpileArray(i,e,r,n);if(e[a][u]===c.MemberExpression){i=[l.length>1?{type:c.Identifier,name:l[l.length-2]}:e[a][o]].concat(i);f={type:c.MemberExpression,object:f,property:{type:c.Identifier,name:"call"},computed:false}}p={type:c.CallExpression,callee:f,arguments:i};if(t[u]===c.ExpressionStatement){return p}m=r.getTempName();n.addAssignment(m).assign(p);return{type:c.Identifier,name:m}}});t.exports=l},{estraverse:68,microdash:79}],109:[function(e,t,r){"use strict";var n=e("microdash"),i="type",s={}.hasOwnProperty;function a(){this.transpilers={}}n.extend(a.prototype,{addTranspiler:function(e){this.transpilers[e.getNodeType()]=e},transpile:function(e,t,r,n){var a=this;if(!s.call(a.transpilers,e[i])){return e}return a.transpilers[e[i]].transpile(e,t,r,n)},transpileArray:function(e,t,r,i){var s=[],a=this;n.each(e,function(e){s.push(a.transpile(e,t,r,i))});return s}});t.exports=a},{microdash:79}],110:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s=i.Syntax;function a(e,t,r){this.expressionTranspiler=t;this.functionTranspiler=r;this.statementTranspiler=e}n.extend(a.prototype,{getNodeType:function(){return s.FunctionExpression},transpile:function(e,t,r,n){return this.functionTranspiler.transpile(e,t,r,n)}});t.exports=a},{estraverse:68,microdash:79}],111:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="left",a="name",o="type",u=i.Syntax;function c(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(c.prototype,{getNodeType:function(){return u.Identifier},transpile:function(e,t,r,n){var i=r.hasVariableDefined(e[a])||t[o]===u.AssignmentExpression&&e===t[s];return{type:u.Identifier,name:i?e[a]:r.getTempNameForVariable(e[a],n)}}});t.exports=c},{estraverse:68,microdash:79}],112:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s=e("../BlockContext"),a="left",o="operator",u="right",c=i.Syntax;function l(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(l.prototype,{getNodeType:function(){return c.LogicalExpression},transpile:function(e,t,r,n){var i,l,f,p,h,m,d=this;l=d.expressionTranspiler.transpile(e[a],e,r,n);h=n.prepareStatement();p=new s(r);f=d.expressionTranspiler.transpile(e[u],e,r,p);i=e[o]==="||"?{type:c.UnaryExpression,operator:"!",prefix:true,argument:l}:l;h.assign({type:c.IfStatement,test:{type:c.LogicalExpression,operator:"||",left:{type:c.BinaryExpression,operator:">",left:{type:c.Identifier,name:"statementIndex"},right:{type:c.Literal,value:h.getIndex()+1}},right:i},consequent:{type:c.BlockStatement,body:[p.getSwitchStatement()]}});m=r.getTempName();n.addAssignment(m).assign({type:c.LogicalExpression,operator:e[o],left:l,right:f});return{type:c.Identifier,name:m}}});t.exports=l},{"../BlockContext":104,estraverse:68,microdash:79}],113:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="computed",a="object",o="property",u="type",c=i.Syntax;function l(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(l.prototype,{getNodeType:function(){return c.MemberExpression},transpile:function(e,t,r,n){var i,l=this.expressionTranspiler.transpile(e[a],e,r,n),f=e[s]?this.expressionTranspiler.transpile(e[o],e,r,n):e[o],p;i={type:c.MemberExpression,object:l,property:f,computed:e[s]};if(t[u]===c.AssignmentExpression){return i}p=r.getTempName();n.addAssignment(p).assign(i);return{type:c.Identifier,name:p}}});t.exports=l},{estraverse:68,microdash:79}],114:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="properties",a=i.Syntax;function o(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(o.prototype,{getNodeType:function(){return a.ObjectExpression},transpile:function(e,t,r,n){var i=this;return{type:a.ObjectExpression,properties:i.expressionTranspiler.transpileArray(e[s],e,r,n)}}});t.exports=o},{estraverse:68,microdash:79}],115:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="key",a="kind",o="value",u=i.Syntax;function c(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(c.prototype,{getNodeType:function(){return u.Property},transpile:function(e,t,r,n){var i=this;return{type:u.Property,key:e[s],value:i.expressionTranspiler.transpile(e[o],e,r,n),kind:e[a]}}});t.exports=c},{estraverse:68,microdash:79}],116:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="expressions",a=i.Syntax;function o(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(o.prototype,{getNodeType:function(){return a.SequenceExpression},transpile:function(e,t,r,i){var o=[],u=this;n.each(e[s],function(t){o.push(u.expressionTranspiler.transpile(t,e,r,i))});return{type:a.SequenceExpression,expressions:o}}});t.exports=o},{estraverse:68,microdash:79}],117:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="argument",a="computed",o="name",u="object",c="operator",l="prefix",f="property",p="type",h=i.Syntax;function m(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(m.prototype,{getNodeType:function(){return h.UpdateExpression},transpile:function(e,t,r,n){var i,m=null,d=null,E;if(e[s][p]===h.MemberExpression){m=this.expressionTranspiler.transpile(e[s][u],e,r,n);m={type:h.MemberExpression,object:m,property:e[s][a]?this.expressionTranspiler.transpile(e[s][f],e[s],r,n):e[s][f],computed:e[s][a]};d=r.getTempName();n.addAssignment(d).assign(m);i={type:h.Identifier,name:d}}else{i=this.expressionTranspiler.transpile(e[s],e,r,n)}E=r.getTempName();n.addAssignment(E).assign({type:h.BinaryExpression,left:i,operator:e[c].charAt(0),right:{type:h.Literal,value:1}});n.prepareStatement().assign({type:h.ExpressionStatement,expression:{type:h.AssignmentExpression,left:m?m:e[s],operator:"=",right:{type:h.Identifier,name:E}}});return{type:h.Identifier,name:e[l]?E:r.getLastTempNameForVariable(e[s][o])}}});t.exports=m},{estraverse:68,microdash:79}],118:[function(e,t,r){"use strict";var n=e("microdash"),i=e("acorn"),s=e("estraverse"),a={}.hasOwnProperty,o="declarations",u="id",c="name",l=e("./LabelableContext"),f=s.Syntax;function p(){this.assignmentVariables={};this.catches=[];this.functionDeclarations=[];this.hasFinally=false;this.labelableContext=null;this.labelableContextStack=[];this.lastAssignments=[];this.lastTempNames={};this.nextStatementIndex=0;this.nextTempIndex=0;this.parameters=[];this.variables=[]}n.extend(p.prototype,{addAssignment:function(e,t){var r=this;r.assignmentVariables[e]=t;r.lastAssignments.push(t)},addCatch:function(e){this.catches.push(e)},addFinally:function(){var e=this;if(e.hasFinally){return}e.addVariable("resumableUncaughtError");e.hasFinally=true},addFunctionDeclaration:function(e){this.functionDeclarations.push(e)},addParameter:function(e){this.parameters.push(e)},addVariable:function(e){this.variables.push(e)},clearLastAssignments:function(){this.lastAssignments=[]},getCurrentStatementIndex:function(){return this.nextStatementIndex},getLabel:function(){var e=this,t=e.labelableContext;return t.getPrefixedLabel()},getLabelableContext:function(e){var t=this,r;if(!e){return t.labelableContext}if(t.labelableContext.getLabel()===e){return t.labelableContext}for(r=t.labelableContextStack.length-1;r>=0;r--){if(t.labelableContextStack[r].getLabel()===e){return t.labelableContextStack[r]}}return null},getLabeledStatement:function(e){return this.labelableContext.getLabeledStatement(e)},getLastAssignments:function(){var e=this,t=e.lastAssignments;e.lastAssignments=[];return t},getNextStatementIndex:function(){return this.nextStatementIndex++},getStatements:function(e){
|
||
var t=[],r,s=i.parse("var statementIndex = 0;").body[0],a=this,u=[],c,l=[],p=[],h=i.parse("if (Resumable._resumeState_) { statementIndex = Resumable._resumeState_.statementIndex; }").body[0];n.each(a.variables,function(e){s[o].push({type:f.VariableDeclarator,id:{type:f.Identifier,name:e},init:null})});if(a.catches.length>0){r=[];n.each(a.catches,function(e){r.push({type:f.Property,kind:"init",key:{type:f.Identifier,name:e.catchStatementIndex},value:{type:f.ObjectExpression,properties:[{type:f.Property,kind:"init",key:{type:f.Identifier,name:"from"},value:{type:f.Literal,value:e.tryStartIndex}},{type:f.Property,kind:"init",key:{type:f.Identifier,name:"to"},value:{type:f.Literal,value:e.tryEndIndex}},{type:f.Property,kind:"init",key:{type:f.Identifier,name:"param"},value:{type:f.Literal,value:e.catchParameter}}]}})});p.push({type:f.Property,kind:"init",key:{type:f.Identifier,name:"catches"},value:{type:f.ObjectExpression,properties:r}})}if(a.hasFinally){u.push({type:f.VariableDeclaration,declarations:[{type:f.VariableDeclarator,id:{type:f.Identifier,name:"resumablePause"},init:{type:f.Literal,value:null}}],kind:"var"})}for(c=0;c<a.nextTempIndex;c++){p.push({type:f.Property,kind:"init",key:{type:f.Identifier,name:"temp"+c},value:{type:f.Identifier,name:"temp"+c}});s.declarations.push({type:f.VariableDeclarator,id:{type:f.Identifier,name:"temp"+c},init:null});h.consequent.body.push({type:f.ExpressionStatement,expression:{type:f.AssignmentExpression,operator:"=",left:{type:f.Identifier,name:"temp"+c},right:i.parse("Resumable._resumeState_.temp"+c).body[0].expression}})}h.consequent.body.push(i.parse("Resumable._resumeState_ = null;").body[0]);n.forOwn(a.assignmentVariables,function(e,r){t.push({type:f.Property,kind:"init",key:{type:f.Literal,value:r},value:{type:f.Literal,value:e}})});l.push(s);[].push.apply(l,a.functionDeclarations);l.push({type:f.ReturnStatement,argument:{type:f.CallExpression,arguments:[{type:f.ThisExpression},{type:f.Identifier,name:"arguments"}],callee:{type:f.MemberExpression,object:{type:f.FunctionExpression,id:{type:f.Identifier,name:"resumableScope"},params:[],body:{type:f.BlockStatement,body:u.concat([h,{type:f.TryStatement,block:{type:f.BlockStatement,body:[e]},handler:{type:f.CatchClause,param:{type:f.Identifier,name:"e"},body:{type:f.BlockStatement,body:[{type:f.IfStatement,test:i.parse("e instanceof Resumable.PauseException").body[0].expression,consequent:{type:f.BlockStatement,body:[{type:f.ExpressionStatement,expression:{type:f.CallExpression,callee:{type:f.MemberExpression,object:{type:f.Identifier,name:"e"},property:{type:f.Identifier,name:"add"},computed:false},arguments:[{type:f.ObjectExpression,properties:[{type:f.Property,kind:"init",key:{type:f.Identifier,name:"func"},value:{type:f.Identifier,name:"resumableScope"}},{type:f.Property,kind:"init",key:{type:f.Identifier,name:"statementIndex"},value:{type:f.BinaryExpression,operator:"+",left:{type:f.Identifier,name:"statementIndex"},right:{type:f.Literal,value:1}}},{type:f.Property,kind:"init",key:{type:f.Identifier,name:"assignments"},value:{type:f.ObjectExpression,properties:t}}].concat(p)}]}}]}},{type:f.ThrowStatement,argument:{type:f.Identifier,name:"e"}}]}}}])}},property:{type:f.Identifier,name:"apply"}}}});return l},getTempName:function(){return"temp"+this.nextTempIndex++},getTempNameForVariable:function(e,t){var r=this,n;n=r.getTempName();r.lastTempNames[e]=n;t.addAssignment(n).assign({type:f.Identifier,name:e});return n},getLastTempName:function(){return"temp"+(this.nextTempIndex-1)},getLastTempNameForVariable:function(e){var t=this;if(!a.call(t.lastTempNames,e)){return e}return t.lastTempNames[e]},hasVariableDefined:function(e){var t=false;n.each(this.functionDeclarations,function(r){if(r[u]&&r[u][c]===e){t=true;return false}});n.each(this.variables,function(r){if(r===e){t=true}});return t},popLabelableContext:function(){var e=this;e.labelableContext=e.labelableContextStack.pop()},pushLabelableContext:function(e){var t=this,r=t.labelableContextStack.length,n=new l(e,r);t.labelableContextStack.push(t.labelableContext);t.labelableContext=n;return n}});t.exports=p},{"./LabelableContext":120,acorn:7,estraverse:68,microdash:79}],119:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s=e("./BlockContext"),a=e("./FunctionContext"),o="body",u="id",c="name",l="params",f="type",p=i.Syntax;function h(e){this.statementTranspiler=e}n.extend(h.prototype,{transpile:function(e){var t,r=this,i=new a,h=new s(i),m=[];n.each(e[l],function(e){i.addParameter(e[c])});if(e[o][o].length>0){r.statementTranspiler.transpileArray(e[o][o],e,i,h);m=i.getStatements(h.getSwitchStatement())}t={type:e[f],id:e[u],params:e[l],body:{type:p.BlockStatement,body:m}};return t}});t.exports=h},{"./BlockContext":104,"./FunctionContext":118,estraverse:68,microdash:79}],120:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s=i.Syntax;function a(e,t){this.continueStatements=[];this.index=t;this.label=e;this.labelAssigned=e||null;this.labelUsed=false}n.extend(a.prototype,{addContinue:function(e){this.continueStatements.push(e)},getLabel:function(){return this.label},getPrefixedLabel:function(){var e=this;e.labelUsed=true;return e.labelAssigned!==null?"label_"+e.labelAssigned:"label"+e.index},getLabeledStatement:function(e){var t=this;if(!t.labelUsed||t.labelAssigned!==null){return e}return{type:s.LabeledStatement,label:{type:s.Identifier,name:t.getPrefixedLabel()},body:e}},prefixContinuesWithJumpTo:function(e){var t=this;n.each(t.continueStatements,function(t){t.prepend({type:s.ExpressionStatement,expression:{type:s.AssignmentExpression,operator:"=",left:{type:s.Identifier,name:"statementIndex"},right:{type:s.Literal,value:e}}})})}});t.exports=a},{estraverse:68,microdash:79}],121:[function(e,t,r){"use strict";var n=e("microdash"),i=e("util");function s(e){this.message="PauseException";this.reject=null;this.resolve=null;this.resumer=e;this.states=[]}i.inherits(s,Error);n.extend(s.prototype,{add:function(e){this.states.push(e)},now:function(){throw this},resume:function(e){var t=this;try{t.resumer(t.resolve,t.reject,null,e,t.states)}catch(e){if(e instanceof s){throw e}t.reject(e)}},setPromise:function(e,t){var r=this;r.resolve=e;r.reject=t},throw:function(e){var t=this;try{t.resumer(t.resolve,t.reject,e,null,t.states)}catch(e){if(e instanceof s){throw e}t.reject(e)}}});t.exports=s},{microdash:79,util:265}],122:[function(e,t,r){"use strict";var n=e("microdash"),i=e("escodegen"),s=e("acorn"),a=e("./PauseException"),o=e("lie"),u=e("./ResumeException"),c="from",l="param",f="strict",p="to";function h(e){this.transpiler=e}n.extend(h,{_resumeState_:null,PauseException:a,ResumeException:u});n.extend(h.prototype,{call:function(e,t,r){return new o(function(n,i){var s;try{s=e.apply(r,t)}catch(e){if(e instanceof a){e.setPromise(n,i)}else{i(e)}return}n(s)})},callSync:function(e,t,r){var n;try{n=e.apply(r,t)}catch(e){if(e instanceof a){throw new Error("Resumable.callSync() :: Main thread must not pause")}throw e}return n},createPause:function(){var e=new a(function(e,t,r,i,s){var o=0,u=i,f;if(r){for(;o<s.length;o++){f=s[o];n.each(f.catches,function(n,i){if(f.statementIndex<n[c]||f.statementIndex>n[p]){return}f.statementIndex=i*1;f[n[l]]=r;r=null;h._resumeState_=f;try{u=f.func()}catch(r){if(r instanceof a){r.setPromise(e,t);return false}throw r}return false});if(r===null){break}}if(o===s.length){t(r);return}}function m(){if(o===s.length){e(u);return}f=s[o];o++;if(f.assignments[f.statementIndex-1]){f[f.assignments[f.statementIndex-1]]=u}h._resumeState_=f;try{u=f.func()}catch(e){if(e instanceof a){e.setPromise(function(e){u=e;m()},function(e){t(e)});return}throw e}m()}m()});return e},execute:function(e,t){var r=s.parse(e,{allowReturnOutsideFunction:true}),a,o,u=["Resumable"],c=this,l,p=[h];t=t||{};a=t.expose||{};n.forOwn(a,function(e,t){u.push(t);p.push(e)});r=c.transpiler.transpile(r);l=i.generate(r,{format:{indent:{style:" ",base:0}}});l="return "+l;if(t[f]){l='"use strict"; '+l}o=new Function(u,l);return c.call(o.apply(null,p),[],null)},executeSync:function(e,t,r){var a="return "+t.toString(),o=s.parse(a,{allowReturnOutsideFunction:true}),u,c,l=["Resumable"],p=this,m,d=[h];r=r||{};u=r.expose||{};n.forOwn(u,function(e,t){l.push(t);d.push(e)});o=p.transpiler.transpile(o);m=i.generate(o,{format:{indent:{style:" ",base:0}}});m="return "+m;if(r[f]){m='"use strict"; '+m}c=new Function(l,m);return p.callSync(c.apply(null,d)(),e,null)}});t.exports=h},{"./PauseException":121,"./ResumeException":123,acorn:7,escodegen:66,lie:78,microdash:79}],123:[function(e,t,r){"use strict";var n=e("util");function i(e){this.error=e}n.inherits(i,Error);t.exports=i},{util:265}],124:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s=e("../BlockContext"),a="body",o=i.Syntax;function u(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(u.prototype,{getNodeType:function(){return o.BlockStatement},transpile:function(e,t,r,n){var i=this,u=new s(r),c=n.prepareStatement();i.statementTranspiler.transpileArray(e[a],e,r,u);c.assign({type:o.BlockStatement,body:[u.getSwitchStatement()]})}});t.exports=u},{"../BlockContext":104,estraverse:68,microdash:79}],125:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="label",a="name",o=i.Syntax;function u(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(u.prototype,{getNodeType:function(){return o.BreakStatement},transpile:function(e,t,r,n){var i={type:o.Identifier,name:e[s]?"label_"+e[s][a]:r.getLabel()};n.prepareStatement().assign({type:o.BreakStatement,label:i},null)}});t.exports=u},{estraverse:68,microdash:79}],126:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="label",a="name",o=i.Syntax;function u(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(u.prototype,{getNodeType:function(){return o.ContinueStatement},transpile:function(e,t,r,n){var i,u={type:o.Identifier,name:e[s]?"label_"+e[s][a]:r.getLabel()},c=e[s]!==null?e[s][a]:null,l=r.getLabelableContext(c);i=n.prepareStatement();l.addContinue(i);i.assign({type:o.ContinueStatement,label:u},null)}});t.exports=u},{estraverse:68,microdash:79}],127:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s=i.Syntax;function a(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(a.prototype,{getNodeType:function(){return s.DebuggerStatement},transpile:function(e,t,r,n){n.prepareStatement().assign({type:s.DebuggerStatement})}});t.exports=a},{estraverse:68,microdash:79}],128:[function(e,t,r){"use strict";var n=e("microdash"),i=e("acorn"),s=e("estraverse"),a=e("../BlockContext"),o="body",u="label",c="name",l="test",f="type",p=s.Syntax;function h(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(h.prototype,{getNodeType:function(){return p.DoWhileStatement},transpile:function(e,t,r,n){var s,h=new a(r),m=this,d,E,g=t[f]===p.LabeledStatement?t[u][c]:null;r.pushLabelableContext(g);E=n.prepareStatement();m.statementTranspiler.transpileArray(e[o][o],e,r,h);d=m.expressionTranspiler.transpile(e[l],e,r,h);h.prepareStatement().assign({type:p.IfStatement,test:{type:p.UnaryExpression,operator:"!",prefix:true,argument:d},consequent:{type:p.BlockStatement,body:[{type:p.BreakStatement,label:{type:p.Identifier,name:r.getLabel()}}]}});s={type:p.ForStatement,init:null,test:null,update:null,body:{type:p.BlockStatement,body:[i.parse("statementIndex = "+(E.getIndex()+1)+";").body[0],h.getSwitchStatement()]}};E.assign(r.getLabeledStatement(s));r.popLabelableContext()}});t.exports=h},{"../BlockContext":104,acorn:7,estraverse:68,microdash:79}],129:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s=i.Syntax;function a(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(a.prototype,{getNodeType:function(){return s.EmptyStatement},transpile:function(){}});t.exports=a},{estraverse:68,microdash:79}],130:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="expression",a=i.Syntax;function o(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(o.prototype,{getNodeType:function(){return a.ExpressionStatement},transpile:function(e,t,r,n){var i=this.expressionTranspiler.transpile(e[s],e,r,n);n.prepareStatement().assign({type:a.ExpressionStatement,expression:i})}});t.exports=o},{estraverse:68,microdash:79}],131:[function(e,t,r){"use strict";var n=e("microdash"),i=e("acorn"),s=e("estraverse"),a=e("../BlockContext"),o="body",u="init",c="label",l="name",f="test",p="type",h="update",m=s.Syntax;function d(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(d.prototype,{getNodeType:function(){return m.ForStatement},transpile:function(e,t,r,n){var s,d=new a(r),E=this,g,y,_=t[p]===m.LabeledStatement?t[c][l]:null,v,N;v=r.pushLabelableContext(_);if(e[u]){n.pushTransforms();if(e[u][p]===m.VariableDeclaration){E.statementTranspiler.transpile(e[u],e,r,n)}else{g=E.expressionTranspiler.transpile(e[u],e,r,n);n.prepareStatement().assign({type:m.ExpressionStatement,expression:g})}n.popTransforms()}y=n.prepareStatement();if(e[f]){g=E.expressionTranspiler.transpile(e[f],e,r,d);d.prepareStatement().assign({type:m.IfStatement,test:{type:m.UnaryExpression,operator:"!",prefix:true,argument:g},consequent:{type:m.BlockStatement,body:[{type:m.BreakStatement,label:{type:m.Identifier,name:r.getLabel()}}]}})}E.statementTranspiler.transpileArray(e[o][o],e,r,d);if(e[h]){N=r.getCurrentStatementIndex();g=E.expressionTranspiler.transpile(e[h],e,r,d);d.prepareStatement().assign({type:m.ExpressionStatement,expression:g});v.prefixContinuesWithJumpTo(N)}s={type:m.ForStatement,init:null,test:null,update:null,body:{type:m.BlockStatement,body:[d.getSwitchStatement(),i.parse("statementIndex = "+(y.getIndex()+1)+";").body[0]]}};y.assign(r.getLabeledStatement(s));r.popLabelableContext()}});t.exports=d},{"../BlockContext":104,acorn:7,estraverse:68,microdash:79}],132:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s=i.Syntax;function a(e,t,r){this.expressionTranspiler=t;this.functionTranspiler=r;this.statementTranspiler=e}n.extend(a.prototype,{getNodeType:function(){return s.FunctionDeclaration},transpile:function(e,t,r,n){var i=this.functionTranspiler.transpile(e,t,r,n);r.addFunctionDeclaration(i)}});t.exports=a},{estraverse:68,microdash:79}],133:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="alternate",a="consequent",o="test",u=i.Syntax;function c(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(c.prototype,{getNodeType:function(){return u.IfStatement},transpile:function(e,t,r,n){var i,c,l=this,f=l.expressionTranspiler.transpile(e[o],e,r,n);c=n.prepareStatement();c.assign({type:u.IfStatement,test:{type:u.LogicalExpression,operator:"||",left:{type:u.BinaryExpression,operator:">",left:{type:u.Identifier,name:"statementIndex"},right:{type:u.Literal,value:c.getIndex()+1}},right:f},consequent:l.statementTranspiler.transpileBlock(e[a],e,r)});if(e[s]){i=n.prepareStatement();i.assign({type:u.IfStatement,test:{type:u.LogicalExpression,operator:"||",left:{type:u.BinaryExpression,operator:">",left:{type:u.Identifier,name:"statementIndex"},right:{type:u.Literal,value:i.getIndex()+1}},right:{type:u.UnaryExpression,operator:"!",prefix:true,argument:f}},consequent:l.statementTranspiler.transpileBlock(e[s],e,r)})}}});t.exports=c},{estraverse:68,microdash:79}],134:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="body",a="label",o="name",u=i.Syntax;function c(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(c.prototype,{getNodeType:function(){return u.LabeledStatement},transpile:function(e,t,r,n){var i=e[a],c=this;n.transformNextStatement(function(e){return{type:u.LabeledStatement,label:{type:u.Identifier,name:"label_"+i[o]},body:e}});c.statementTranspiler.transpile(e[s],e,r,n)}});t.exports=c},{estraverse:68,microdash:79}],135:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s=e("../BlockContext"),a=e("../FunctionContext"),o="body",u=i.Syntax;function c(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(c.prototype,{getNodeType:function(){return u.Program},transpile:function(e){var t=this,r=new a,n=new s(r);t.statementTranspiler.transpileArray(e[o],e,r,n);return{type:u.Program,body:[{type:u.ExpressionStatement,expression:{type:u.FunctionExpression,id:null,params:[],body:{type:u.BlockStatement,body:r.getStatements(n.getSwitchStatement())}}}]}}});t.exports=c},{"../BlockContext":104,"../FunctionContext":118,estraverse:68,microdash:79}],136:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="argument",a=i.Syntax;function o(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(o.prototype,{getNodeType:function(){return a.ReturnStatement},transpile:function(e,t,r,n){var i=e[s]?this.expressionTranspiler.transpile(e[s],e,r,n):null;n.prepareStatement().assign({type:a.ReturnStatement,argument:i})}});t.exports=o},{estraverse:68,microdash:79}],137:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s={}.hasOwnProperty,a=e("../BlockContext"),o="body",u="type",c=i.Syntax;function l(e){this.expressionTranspiler=e;this.transpilers={}}n.extend(l.prototype,{addTranspiler:function(e){this.transpilers[e.getNodeType()]=e},transpile:function(e,t,r,n){var i=this;if(!s.call(i.transpilers,e[u])){throw new Error('Unsupported type "'+e[u]+'"')}return i.transpilers[e[u]].transpile(e,t,r,n)},transpileBlock:function(e,t,r){var n=this,i=new a(r);if(e[u]===c.BlockStatement){n.transpileArray(e[o],t,r,i)}else{n.transpile(e,t,r,i)}return{type:c.BlockStatement,body:[i.getSwitchStatement()]}},transpileArray:function(e,t,r,i){var s=this;n.each(e,function(e){s.transpile(e,t,r,i)})}});t.exports=l},{"../BlockContext":104,estraverse:68,microdash:79}],138:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="argument",a=i.Syntax;function o(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(o.prototype,{getNodeType:function(){return a.ThrowStatement},transpile:function(e,t,r,n){var i=this.expressionTranspiler.transpile(e[s],e,r,n);n.prepareStatement().assign({type:a.ThrowStatement,argument:i},null)}});t.exports=o},{estraverse:68,microdash:79}],139:[function(e,t,r){"use strict";var n=e("microdash"),i=e("acorn"),s=e("estraverse"),a=e("../BlockContext"),o="block",u="body",c="handler",l="finalizer",f="name",p="param",h=s.Syntax;function m(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(m.prototype,{getNodeType:function(){return h.TryStatement},transpile:function(e,t,r,n){var s,m=null,d=[],E=e[c],g=E&&E[u][u].length>0,y=e[l],_=new a(r),v,N=this,A,S,T;v=n.prepareStatement();T=r.getCurrentStatementIndex();N.statementTranspiler.transpileArray(e[o][u],e,r,_);A=r.getCurrentStatementIndex();if(g){m=r.getCurrentStatementIndex();(function(){var e=new a(r),t=r.getTempName(),n=_.addResumeThrow();N.statementTranspiler.transpileArray(E[u][u],E,r,e);d.push({type:h.IfStatement,test:i.parse(E[p][f]+" instanceof Resumable.ResumeException").body[0].expression,consequent:{type:h.BlockStatement,body:[{type:h.ExpressionStatement,expression:{type:h.AssignmentExpression,operator:"=",left:E[p],right:{type:h.MemberExpression,object:E[p],property:{type:h.Identifer,name:"error"},computed:false}}}]},alternate:{type:h.BlockStatement,body:[{type:h.ExpressionStatement,expression:{type:h.AssignmentExpression,operator:"=",left:{type:h.Identifier,name:"statementIndex"},right:{type:h.Literal,value:m}}}]}},e.getSwitchStatement());r.addCatch({tryStartIndex:T,tryEndIndex:A-1,catchParameter:t,catchStatementIndex:m});n.assign({type:h.Identifier,name:t})})()}S={type:h.TryStatement,block:{type:h.BlockStatement,body:[_.getSwitchStatement()]}};s=E?E[p]:{type:h.Identifier,name:"resumableError"};S[c]={type:h.CatchClause,param:s,body:{type:h.BlockStatement,body:d}};if(y){r.addFinally();d.splice(1,0,{type:h.ExpressionStatement,expression:{type:h.AssignmentExpression,left:{type:h.Identifier,name:"resumableUncaughtError"},operator:"=",right:s}});if(E){d.push({type:h.ExpressionStatement,expression:{type:h.AssignmentExpression,left:{type:h.Identifier,name:"resumableUncaughtError"},operator:"=",right:{type:h.Identifier,name:"null"}}})}(function(){var e=new a(r),t=r.getCurrentStatementIndex(),n,s;N.statementTranspiler.transpileArray(y[u],y,r,e);s=e.getSwitchStatement();n=[{type:h.IfStatement,test:{type:h.Identifier,name:"resumablePause"},consequent:{type:h.BlockStatement,body:[{type:h.ThrowStatement,argument:{type:h.Identifier,name:"resumablePause"}}]},alternate:null},{type:h.IfStatement,test:i.parse("statementIndex >= "+T+" && statementIndex < "+t).body[0].expression,consequent:{type:h.BlockStatement,body:[{type:h.ExpressionStatement,expression:{type:h.AssignmentExpression,left:{type:h.Identifier,name:"statementIndex"},operator:"=",right:{type:h.Literal,value:t}}}]},alternate:null},s];n.push({type:h.IfStatement,test:{type:h.Identifier,name:"resumableUncaughtError"},consequent:{type:h.BlockStatement,body:[{type:h.ThrowStatement,argument:{type:h.Identifier,name:"resumableUncaughtError"}}]},alternate:null});S[l]={type:h.BlockStatement,body:n}})()}d.unshift({type:h.IfStatement,test:{type:h.BinaryExpression,left:s,operator:"instanceof",right:{type:h.MemberExpression,object:{type:h.Identifier,name:"Resumable"},property:{type:h.Identifier,name:"PauseException"},computed:false}},consequent:{type:h.BlockStatement,body:(y?[{type:h.ExpressionStatement,expression:{type:h.AssignmentExpression,left:{type:h.Identifier,name:"resumablePause"},operator:"=",right:s}}]:[]).concat([{type:h.ThrowStatement,argument:s}])},alternate:null});v.assign(S)}});t.exports=m},{"../BlockContext":104,acorn:7,estraverse:68,microdash:79}],140:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s="declarations",a="id",o="init",u="name",c=i.Syntax;function l(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(l.prototype,{getNodeType:function(){return c.VariableDeclaration},transpile:function(e,t,r,i){var l=this;n.each(e[s],function(t){var n;r.addVariable(t[a][u]);if(t[o]!==null){n=l.expressionTranspiler.transpile(t[o],e,r,i);i.prepareStatement().assign({type:c.ExpressionStatement,expression:{type:c.AssignmentExpression,operator:"=",left:t[a],right:n}})}})}});t.exports=l},{estraverse:68,microdash:79}],141:[function(e,t,r){"use strict";var n=e("microdash"),i=e("acorn"),s=e("estraverse"),a=e("../BlockContext"),o="body",u="label",c="name",l="test",f="type",p=s.Syntax;function h(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(h.prototype,{getNodeType:function(){return p.WhileStatement},transpile:function(e,t,r,n){var s,h=new a(r),m=this,d,E,g=t[f]===p.LabeledStatement?t[u][c]:null;r.pushLabelableContext(g);E=n.prepareStatement();d=m.expressionTranspiler.transpile(e[l],e,r,h);h.prepareStatement().assign({type:p.IfStatement,test:{type:p.UnaryExpression,operator:"!",prefix:true,argument:d},consequent:{type:p.BlockStatement,body:[{type:p.BreakStatement,label:{type:p.Identifier,name:r.getLabel()}}]}});m.statementTranspiler.transpileArray(e[o][o],e,r,h);s={type:p.ForStatement,init:null,test:null,update:null,body:{type:p.BlockStatement,body:[h.getSwitchStatement(),i.parse("statementIndex = "+(E.getIndex()+1)+";").body[0]]}};E.assign(r.getLabeledStatement(s));r.popLabelableContext()}});t.exports=h},{"../BlockContext":104,acorn:7,estraverse:68,microdash:79}],142:[function(e,t,r){"use strict";var n=e("microdash"),i=e("estraverse"),s=e("../BlockContext"),a="body",o="object",u=i.Syntax;function c(e,t){this.expressionTranspiler=t;this.statementTranspiler=e}n.extend(c.prototype,{getNodeType:function(){return u.WithStatement},transpile:function(e,t,r,n){var i=this,c=this.expressionTranspiler.transpile(e[o],e,r,n),l=new s(r),f=n.prepareStatement();i.statementTranspiler.transpileArray(e[a][a],e,r,l);f.assign({type:u.WithStatement,object:c,body:{type:u.BlockStatement,body:[l.getSwitchStatement()]}})}});t.exports=c},{"../BlockContext":104,estraverse:68,microdash:79}],143:[function(e,t,r){"use strict";var n=e("microdash"),i=i,s=e("./ExpressionTranspiler/ArrayExpressionTranspiler"),a=e("./ExpressionTranspiler/AssignmentExpressionTranspiler"),o=e("./ExpressionTranspiler/BinaryExpressionTranspiler"),u=e("./StatementTranspiler/BlockStatementTranspiler"),c=e("./StatementTranspiler/BreakStatementTranspiler"),l=e("./ExpressionTranspiler/CallExpressionTranspiler"),f=e("./StatementTranspiler/ContinueStatementTranspiler"),p=e("./StatementTranspiler/DebuggerStatementTranspiler"),h=e("./StatementTranspiler/DoWhileStatementTranspiler"),m=e("./StatementTranspiler/EmptyStatementTranspiler"),d=e("./StatementTranspiler/ExpressionStatementTranspiler"),E=e("./ExpressionTranspiler/ExpressionTranspiler"),g=e("./StatementTranspiler/ForStatementTranspiler"),y=e("./StatementTranspiler/FunctionDeclarationTranspiler"),_=e("./ExpressionTranspiler/FunctionExpressionTranspiler"),v=e("./FunctionTranspiler"),N=e("./ExpressionTranspiler/IdentifierTranspiler"),A=e("./StatementTranspiler/IfStatementTranspiler"),S=e("./StatementTranspiler/LabeledStatementTranspiler"),T=e("./ExpressionTranspiler/LogicalExpressionTranspiler"),C=e("./ExpressionTranspiler/MemberExpressionTranspiler"),b=e("./ExpressionTranspiler/ObjectExpressionTranspiler"),D=e("./StatementTranspiler/ProgramTranspiler"),x=e("./ExpressionTranspiler/PropertyTranspiler"),F=e("./StatementTranspiler/ReturnStatementTranspiler"),I=e("./ExpressionTranspiler/SequenceExpressionTranspiler"),O=e("./StatementTranspiler/StatementTranspiler"),w=e("./StatementTranspiler/ThrowStatementTranspiler"),B=e("./StatementTranspiler/TryStatementTranspiler"),R=e("./ExpressionTranspiler/UpdateExpressionTranspiler"),P=e("./StatementTranspiler/VariableDeclarationTranspiler"),L=e("./StatementTranspiler/WhileStatementTranspiler"),M=e("./StatementTranspiler/WithStatementTranspiler");function k(){var e=new E,t=new O,r=new v(t);n.each([u,c,f,p,h,m,d,g,A,S,D,F,w,B,P,L,M],function(r){t.addTranspiler(new r(t,e))});t.addTranspiler(new y(t,e,r));n.each([s,a,o,l,N,T,C,b,x,I,R],function(r){e.addTranspiler(new r(t,e))});e.addTranspiler(new _(t,e,r));this.expressionTranspiler=e;this.statementTranspiler=t}n.extend(k.prototype,{transpile:function(e){return this.statementTranspiler.transpile(e,null)}});t.exports=k},{"./ExpressionTranspiler/ArrayExpressionTranspiler":105,"./ExpressionTranspiler/AssignmentExpressionTranspiler":106,"./ExpressionTranspiler/BinaryExpressionTranspiler":107,"./ExpressionTranspiler/CallExpressionTranspiler":108,"./ExpressionTranspiler/ExpressionTranspiler":109,"./ExpressionTranspiler/FunctionExpressionTranspiler":110,"./ExpressionTranspiler/IdentifierTranspiler":111,"./ExpressionTranspiler/LogicalExpressionTranspiler":112,"./ExpressionTranspiler/MemberExpressionTranspiler":113,"./ExpressionTranspiler/ObjectExpressionTranspiler":114,"./ExpressionTranspiler/PropertyTranspiler":115,"./ExpressionTranspiler/SequenceExpressionTranspiler":116,"./ExpressionTranspiler/UpdateExpressionTranspiler":117,"./FunctionTranspiler":119,"./StatementTranspiler/BlockStatementTranspiler":124,"./StatementTranspiler/BreakStatementTranspiler":125,"./StatementTranspiler/ContinueStatementTranspiler":126,"./StatementTranspiler/DebuggerStatementTranspiler":127,"./StatementTranspiler/DoWhileStatementTranspiler":128,"./StatementTranspiler/EmptyStatementTranspiler":129,"./StatementTranspiler/ExpressionStatementTranspiler":130,"./StatementTranspiler/ForStatementTranspiler":131,"./StatementTranspiler/FunctionDeclarationTranspiler":132,"./StatementTranspiler/IfStatementTranspiler":133,"./StatementTranspiler/LabeledStatementTranspiler":134,"./StatementTranspiler/ProgramTranspiler":135,"./StatementTranspiler/ReturnStatementTranspiler":136,"./StatementTranspiler/StatementTranspiler":137,"./StatementTranspiler/ThrowStatementTranspiler":138,"./StatementTranspiler/TryStatementTranspiler":139,"./StatementTranspiler/VariableDeclarationTranspiler":140,"./StatementTranspiler/WhileStatementTranspiler":141,"./StatementTranspiler/WithStatementTranspiler":142,microdash:79}],144:[function(e,t,r){"use strict";var n=e("./src/Wrapper");t.exports=function(e,t,r){return new n(e,t,r)}},{"./src/Wrapper":145}],145:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t,r){this.args=e;this.evaluatedAsync=false;this.evaluatedSync=false;this.asyncReturnValue=null;this.fn=t;this.options=r;this.syncReturnValue=null}n.extend(i.prototype,{async:function(e){var t,r=this;if(r.evaluatedAsync){return r.asyncReturnValue}t=n.map(r.args,function(t){if(t instanceof i){return t.async(e)}return t});r.asyncReturnValue=e.executeSync(t,r.fn,r.options);r.evaluatedAsync=true;return r.asyncReturnValue},sync:function(){var e,t=this;if(t.evaluatedSync){return t.syncReturnValue}e=n.map(t.args,function(e){if(e instanceof i){return e.sync()}return e});t.syncReturnValue=t.fn.apply(null,e);t.evaluatedSync=true;return t.syncReturnValue}});t.exports=i},{microdash:79}],146:[function(e,t,r){"use strict";var n=e("./src/Error/Exception"),i=e("./src/Error/PHPError"),s=e("./src/Error/PHPFatalError"),a=e("./src/Error/PHPParseError");t.exports={Exception:n,PHPError:i,PHPFatalError:s,PHPParseError:a}},{"./src/Error/Exception":147,"./src/Error/PHPError":148,"./src/Error/PHPFatalError":149,"./src/Error/PHPParseError":150}],147:[function(e,t,r){"use strict";var n=e("microdash"),i=e("util");function s(e){this.message=e}i.inherits(s,Error);n.extend(s.prototype,{type:"Exception"});t.exports=s},{microdash:79,util:265}],148:[function(e,t,r){"use strict";var n=e("microdash"),i=e("util"),s=e("./Exception");function a(e,t){s.call(this,"PHP "+e+": "+t)}i.inherits(a,s);n.extend(a,{E_ERROR:"Error",E_FATAL:"Fatal error",E_NOTICE:"Notice",E_PARSE:"Parse error",E_STRICT:"Strict standards",E_WARNING:"Warning"});t.exports=a},{"./Exception":147,microdash:79,util:265}],149:[function(e,t,r){"use strict";var n={1:"Unsupported operand types",2:"Call to undefined function ${name}()",3:"Class '${name}' not found",4:"Call to undefined method ${className}::${methodName}()",5:"'goto' into loop or switch statement is disallowed",6:"${name}() must take exactly 1 argument",7:"Class name must be a valid object or a string",8:"Access to undeclared static property: ${className}::$${propertyName}",9:"Call to undefined method ${className}::${methodName}()",10:"Cannot access ${className}:: when no class scope is active",11:"Undefined constant '${name}'",12:"Uncaught exception '${name}'",13:"Cannot access ${visibility} property ${className}::$${propertyName}",14:"Function name must be a string",15:"Undefined class constant '${name}'",16:"Interfaces may not include member variables",17:"Interface function ${className}::${methodName}() cannot contain body",18:"Cannot use ${source} as ${alias} because the name is already in use",19:"Call to a member function ${name}() on a non-object",20:"instanceof expects an object instance, constant given",21:"Cannot use object of type ${actual} as ${expected}",22:"Using $this when not in object context",23:"'${operator}' operator accepts only positive numbers",24:"Cannot break/continue ${levels} level${suffix}",25:"Only variables can be passed by reference",26:"Attempt to unset static property ${className}::$${propertyName}",27:"Cannot access parent:: when current class scope has no parent"},i=e("microdash"),s=e("template-string"),a=e("util"),o=e("./PHPError");function u(e,t){o.call(this,o.E_FATAL,s(n[e],t))}a.inherits(u,o);i.extend(u,{UNSUPPORTED_OPERAND_TYPES:1,CALL_TO_UNDEFINED_FUNCTION:2,CLASS_NOT_FOUND:3,UNDEFINED_METHOD:4,GOTO_DISALLOWED:5,EXPECT_EXACTLY_1_ARG:6,CLASS_NAME_NOT_VALID:7,UNDECLARED_STATIC_PROPERTY:8,CALL_TO_UNDEFINED_METHOD:9,CANNOT_ACCESS_WHEN_NO_ACTIVE_CLASS:10,UNDEFINED_CONSTANT:11,UNCAUGHT_EXCEPTION:12,CANNOT_ACCESS_PROPERTY:13,FUNCTION_NAME_MUST_BE_STRING:14,UNDEFINED_CLASS_CONSTANT:15,INTERFACE_PROPERTY_NOT_ALLOWED:16,INTERFACE_METHOD_BODY_NOT_ALLOWED:17,NAME_ALREADY_IN_USE:18,NON_OBJECT_METHOD_CALL:19,
|
||
INSTANCEOF_EXPECTS_OBJECT:20,CANNOT_USE_WRONG_TYPE_AS:21,USED_THIS_OUTSIDE_OBJECT_CONTEXT:22,OPERATOR_REQUIRES_POSITIVE_NUMBER:23,CANNOT_BREAK_OR_CONTINUE:24,ONLY_VARIABLES_BY_REFERENCE:25,CANNOT_UNSET_STATIC_PROPERTY:26,NO_PARENT_CLASS:27});t.exports=u},{"./PHPError":148,microdash:79,"template-string":259,util:265}],150:[function(e,t,r){"use strict";var n=e("microdash"),i=e("template-string"),s=e("util"),a=e("./PHPError"),o={1:"syntax error, unexpected ${what} in ${file} on line ${line}"};function u(e,t){a.call(this,a.E_PARSE,i(o[e],t))}s.inherits(u,a);n.extend(u,{SYNTAX_UNEXPECTED:1});t.exports=u},{"./PHPError":148,microdash:79,"template-string":259,util:265}],151:[function(e,t,r){(function(r){"use strict";var n=e("pausable"),i=e("phpcommon"),s=e("./src/Debug/DebugFactory"),a=e("./src/Debug/DebugFormatter"),o=e("./src/Debug/DebugFormatterInstaller"),u=e("./src/Debug/DebugValue"),c=e("./src/Engine"),l=e("./src/Environment"),f=e("./src/OptionSet"),p=e("./src/PHPState").async(n),h=e("./src/Runtime").async(n),m=e("./src/Debug/ValueFormatter"),d=new h(l,c,f,p,i,n),E=new s(a,u,m);new o(r,E).install();t.exports=d}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./src/Debug/DebugFactory":159,"./src/Debug/DebugFormatter":160,"./src/Debug/DebugFormatterInstaller":161,"./src/Debug/DebugValue":162,"./src/Debug/ValueFormatter":164,"./src/Engine":165,"./src/Environment":166,"./src/OptionSet":178,"./src/PHPState":180,"./src/Runtime":191,pausable:103,phpcommon:146}],152:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t,r,n){this.args=r;this.finder=null;this.namespaceScope=t;this.newStaticClass=n;this.scope=e}n.extend(i.prototype,{getFilePath:function(){return this.namespaceScope.getFilePath()},getFunctionArgs:function(){return this.args},getFunctionName:function(){return this.scope.getFunctionName().getNative()},getLastLine:function(){var e=this;if(!e.finder){return null}return e.finder()},getScope:function(){return this.scope},getStaticClass:function(){var e=this,t=e.scope.getThisObject();if(t&&t.getType()!=="null"){return t.getClass()}return e.newStaticClass},instrument:function(e){this.finder=e}});t.exports=i},{microdash:79}],153:[function(e,t,r){"use strict";var n=e("microdash");function i(e){this.Call=e}n.extend(i.prototype,{create:function(e,t,r,n){var i=this;return new i.Call(e,t,r||[],n||null)}});t.exports=i},{microdash:79}],154:[function(e,t,r){"use strict";var n=e("microdash"),i=e("phpcommon"),s=i.PHPError;function a(e){this.calls=[];this.stderr=e}n.extend(a.prototype,{getCallerScope:function(){var e=this,t=e.calls[e.calls.length-2]||null;return t?t.getScope():null},getCurrent:function(){var e=this;return e.calls[e.calls.length-1]||null},getLastFilePath:function(){return this.getCurrent().getFilePath()},getLastLine:function(){return this.getCurrent().getLastLine()},getStaticClass:function(){var e,t=this,r,n,i=null;for(r=t.calls.length-1;r>=0;r--){e=t.calls[r];n=e.getStaticClass();if(n){i=n;break}}return i},getThisObject:function(){var e=this.getCurrent();if(!e){return null}return e.getScope().getThisObject()},getTrace:function(){var e=this,t=[],r=e.calls.length-1;n.each(e.calls,function(n,i){t.unshift({index:r--,file:n.getFilePath(),line:i>0?e.calls[i-1].getLastLine():null,func:n.getFunctionName(),args:n.getFunctionArgs()})});return t},instrumentCurrent:function(e){this.getCurrent().instrument(e)},pop:function(){this.calls.pop()},push:function(e){this.calls.push(e)},raiseError:function(e,t){var r,n=this,i=n.calls,a,o;if(n.getCurrent().getScope().suppressesOwnErrors()){return}for(o=i.length-1;o>=0;--o){r=i[o];if(r.getScope().suppressesErrors()){return}}a=new s(e,t);n.stderr.write(a.message+"\n")}});t.exports=a},{microdash:79,phpcommon:146}],155:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("./Reference/StaticProperty"),e("./Reference/UndeclaredStaticProperty")],function(e,t,r,n){var i="isStatic",s="__call",a="__callStatic",o="value",u="visibility",c={}.hasOwnProperty,l=t.PHPError,f=t.PHPFatalError,p=function(t){var r;function n(e){this.phpObject=e}n.prototype=Object.create(t.InternalClass.prototype);function i(e){n.prototype[e]=function(){var t=[e].concat([].slice.call(arguments));return this.phpObject.callMethod.apply(this.phpObject,t)}}r=t;while(r){e.forOwn(r.InternalClass.prototype,function(e,t){i(t)});r=r.superClass}t.UnwrappedClass=n},h=function(t,r){if(r.autoCoercionEnabled){return e.map(t,function(e){return e.getNative()})}return t},m=function(t,r){var n=null;e.forOwn(t,function(t,i){if(i.toLowerCase()===r.toLowerCase()&&e.isFunction(t)){n=t;return false}});return n};function d(t,n,i,s,a,c,l,f,p,h,m){var d=this,E={};this.autoCoercionEnabled=false;this.callStack=i;this.constants=f;this.constructorName=a;this.functionFactory=n;this.interfaceNames=h||[];this.InternalClass=c;this.name=s;this.namespaceScope=m;this.staticProperties=E;this.superClass=p;this.unwrapper=null;this.valueFactory=t;e.each(l,function(e,t){E[t]=new r(d,t,e[u],e[o](d))})}e.extend(d.prototype,{callMethod:function(e,t,r,n,o,u){var c=this,p=r?r.getObject():null,d,E=c.callStack.getThisObject();function g(e,t,n){var s=m(e,t);if(s!==null){if(!r&&!s[i]){r=E;if(!r){c.callStack.raiseError(l.E_STRICT,"Non-static method "+s.data.classObject.name+"::"+t+"() should not be called statically")}else if(!r.classIs(c.getName())){c.callStack.raiseError(l.E_STRICT,"Non-static method "+s.data.classObject.name+"::"+t+"() should not be called statically, "+"assuming $this from incompatible context")}}if(!u){c.functionFactory.setNewStaticClassIfWrapped(s,o)}return c.valueFactory.coerce(s.apply(c.autoCoercionEnabled&&!s.neverCoerce?r.getObject():r,s.neverCoerce?n:h(n,c)))}if(e===c.InternalClass.prototype&&c.superClass){return c.superClass.callMethod(t,n,r,Object.getPrototypeOf(e),o,u)}e=Object.getPrototypeOf(e);if(!e){return null}return g(e,t,n)}u=!!u;if(!n){n=p}if(!o){o=c}if(p instanceof c.InternalClass){if(n===p){n=Object.getPrototypeOf(n)}}else{n=c.InternalClass.prototype}d=g(n,e,t);if(d!==null){return d}if(!r&&E){d=g(E.getObject(),s,[c.valueFactory.createString(e),c.valueFactory.createArray(t)]);if(d!==null){return d}}d=g(n,r?s:a,[c.valueFactory.createString(e),c.valueFactory.createArray(t)]);if(d!==null){return d}throw new f(f.UNDEFINED_METHOD,{className:c.name,methodName:e})},construct:function(e,t){var r=this;if(!r.constructorName){if(r.superClass){r.superClass.construct(e,t)}return}e.callMethod(r.constructorName,t)},defineUnwrapper:function(e){this.unwrapper=e},disableAutoCoercion:function(){this.autoCoercionEnabled=false},enableAutoCoercion:function(){this.autoCoercionEnabled=true},extends:function(e){var t=this;return t.superClass&&(t.superClass.name===e.name||t.superClass.extends(e))},getConstantByName:function(e){var t=this,r,n;if(e.toLowerCase()==="class"){return t.valueFactory.createString(t.getName())}if(c.call(t.constants,e)){return t.constants[e]()}if(t.superClass){return t.superClass.getConstantByName(e)}for(r=0;r<t.interfaceNames.length;r++){n=t.namespaceScope.getClass(t.interfaceNames[r]);try{return n.getConstantByName(e)}catch(e){}}throw new f(f.UNDEFINED_CLASS_CONSTANT,{name:e})},getInternalClass:function(){return this.InternalClass},getMethodSpec:function(e,t,r,n){var i=this,s=t?t.getObject():null;function a(e,r){var s=m(e,r);if(s!==null){return i.functionFactory.createMethodSpec(n,i,r,s)}if(e===i.InternalClass.prototype&&i.superClass){return i.superClass.getMethodSpec(r,t,Object.getPrototypeOf(e),n)}e=Object.getPrototypeOf(e);if(!e){return null}return a(e,r)}if(!r){r=s}if(!n){n=i}if(s instanceof i.InternalClass){if(r===s){r=Object.getPrototypeOf(r)}}else{r=i.InternalClass.prototype}return a(r,e)},getName:function(){return this.name},getUnprefixedName:function(){return this.name.replace(/^.*\\/,"")},getStaticPropertyByName:function(e){var t=this,r,i;if(!c.call(t.staticProperties,e)){if(t.superClass){return t.superClass.getStaticPropertyByName(e)}return new n(t,e)}i=t.staticProperties[e];if(i.getVisibility()==="private"){r=t.callStack.getCurrent().getScope().getCurrentClass();if(!r||r.name!==t.name){throw new f(f.CANNOT_ACCESS_PROPERTY,{className:t.name,propertyName:e,visibility:"private"})}}else if(i.getVisibility()==="protected"){r=t.callStack.getCurrent().getScope().getCurrentClass();if(!r||t.name!==r.name&&!r.extends(t)){throw new f(f.CANNOT_ACCESS_PROPERTY,{className:t.name,propertyName:e,visibility:"protected"})}}return i},getSuperClass:function(){return this.superClass},hasStaticPropertyByName:function(e){return c.call(this.staticProperties,e)},instantiate:function(e){var t=this,r=Object.create(t.InternalClass.prototype),n=t.valueFactory.createObject(r,t);t.InternalClass.apply(n,h(e,t));t.construct(n,e);return n},is:function(t){var r=this,n=false;if(r.name.toLowerCase()===t.toLowerCase()){return true}e.each(r.interfaceNames,function(e){var i=r.namespaceScope.getClass(e);if(i.is(t)){n=true;return false}});if(n){return true}if(r.superClass){return r.superClass.is(t)}return false},isAutoCoercionEnabled:function(){return this.autoCoercionEnabled},proxyInstanceForJS:function(e){var t=this;return t.valueFactory.createPHPObject(e)},unwrapInstanceForJS:function(e,t){var r=this,n;if(r.unwrapper){return r.unwrapper.call(r.autoCoercionEnabled?t:e)}if(!r.UnwrappedClass){p(r)}n=new r.UnwrappedClass(r.valueFactory.createPHPObject(e));r.valueFactory.mapUnwrappedObjectToValue(n,e);return n}});return d},{strict:true})},{"./Reference/StaticProperty":187,"./Reference/UndeclaredStaticProperty":188,microdash:79,pauser:144,phpcommon:146}],156:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash")],function(e){var t="__autoload";function r(e){this.globalNamespace=null;this.splStack=null;this.valueFactory=e}e.extend(r.prototype,{appendAutoloadCallable:function(e){var t=this,r=t.splStack;if(!r){r=[];t.splStack=r}r.push(e)},autoloadClass:function(r){var n=this,i=n.globalNamespace,s,a=n.splStack;if(a){e.each(a,function(e){e.call([n.valueFactory.createString(r)],i);if(i.hasClass(r)){return false}})}else{s=i.getOwnFunction(t);if(s){s(n.valueFactory.createString(r))}}},removeAutoloadCallable:function(t){var r=false,n=this.splStack;if(!n){return false}e.each(n,function(e,i){if(e.isEqualTo(t).getNative()){r=true;n.splice(i,1);return false}});return r},setGlobalNamespace:function(e){this.globalNamespace=e}});return r},{strict:true})},{microdash:79,pauser:144}],157:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash")],function(e){function t(e,t,r,n,i,s,a){this.closureFactory=e;this.enclosingScope=n;this.namespaceScope=r;this.thisObject=a;this.unwrappedFunction=i;this.valueFactory=t;this.wrappedFunction=s}e.extend(t.prototype,{bind:function(e,t){var r=this;return r.closureFactory.create(r.enclosingScope,r.unwrappedFunction,r.namespaceScope,t||null,e)},invoke:function(e,t){var r=this;return r.valueFactory.coerce(r.wrappedFunction.apply(t||r.thisObject,e))}});return t},{strict:true})},{microdash:79,pauser:144}],158:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash")],function(e){function t(e,t,r,n){this.callStack=r;this.Closure=n;this.functionFactory=e;this.valueFactory=t}e.extend(t.prototype,{create:function(e,t,r,n,i){var s=this,a;if(!n){n=i&&i.getType()!=="null"?i.getClass():null}a=s.functionFactory.create(r,n,t,null,null,s.callStack.getStaticClass()||n||null);return new s.Closure(s,s.valueFactory,r,e,t,a,i)}});return t},{strict:true})},{microdash:79,pauser:144}],159:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t,r){this.DebugFormatter=e;this.DebugValue=t;this.ValueFormatter=r}n.extend(i.prototype,{createDebugFormatter:function(){var e=this,t=new e.ValueFormatter(e);return new e.DebugFormatter(t)},createValue:function(e){return new this.DebugValue(e)}});t.exports=i},{microdash:79}],160:[function(e,t,r){"use strict";var n=e("microdash"),i=e("./DebugValue"),s=e("./DebugVariable");function a(e){this.valueFormatter=e}n.extend(a.prototype,{body:function(e){var t=e.getValue(),r=this.valueFormatter.format(t),i=["table",{},["tr",{},["td",{style:"font-weight: bold;"},"type:"],["td",{},t.getType()]]];function s(e,t,r){i.push(["tr",{},["td",{style:"font-weight: bold;"},e+":"],["td",{style:r},t]])}if(r.attributes.length===0){s("value",r.headingValue,r.headingStyle)}else{n.each(r.attributes,function(e){s(e.name,e.value,e.style)})}return i},hasBody:function(e){return e instanceof s&&e.isDefined()||e instanceof i},header:function(e){var t,r;if(!(e instanceof s)&&!(e instanceof i)){return null}if(!e.isDefined()){return["span",{style:"text-style: italic; color: gray;"},"<undefined>"]}r=e.getValue();t=this.valueFormatter.format(r);return["span",{style:t.headingStyle},t.headingValue]}});t.exports=a},{"./DebugValue":162,"./DebugVariable":163,microdash:79}],161:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t){this.debugFactory=t;this.window=e}n.extend(i.prototype,{install:function(){var e=this,t=e.debugFactory.createDebugFormatter();if(!e.window.devtoolsFormatters){e.window.devtoolsFormatters=[]}e.window.devtoolsFormatters.push(t)}});t.exports=i},{microdash:79}],162:[function(e,t,r){"use strict";var n=e("microdash");function i(e){this.value=e}n.extend(i.prototype,{getValue:function(){return this.value},isDefined:function(){return true}});t.exports=i},{microdash:79}],163:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t){this.scope=e;this.variableName=t}n.extend(i.prototype,{getValue:function(){var e=this;return e.scope.getVariable(e.variableName).getValue()},isDefined:function(){var e=this;return e.scope.getVariable(e.variableName).isDefined()}});t.exports=i},{microdash:79}],164:[function(e,t,r){"use strict";var n=e("microdash"),i=function(e,t){var r=["table",{}];n.each(e.getKeys(),function(n){var i=e.getElementByKey(n),s=n.getNative();if(n.getType()==="string"){s='"'+s+'"'}r.push(["tr",{},["td",{style:"font-weight: bold;"},(i.isReference()?"&":"")+s+":"],["td",{},["object",{object:t.createValue(i.getValue())}]]])});return r};function s(e){this.debugFactory=e}n.extend(s.prototype,{format:function(e){var t=[],r=this,n=null,s="",a=e.getNative(),o;if(e.getType()==="array"){n="Array["+e.getLength()+"]";t.push({name:"length",value:e.getLength(),style:"color: blue;"},{name:"elements",value:i(e,r.debugFactory)})}else if(e.getType()==="null"){n="<null>";s="font-weight: bold;"}else if(e.getType()==="object"){if(e.getClassName()==="JSObject"){t.push({name:"PHP class",value:"JSObject"});if(typeof a==="function"){n="<JS:function "+a.name+"()>";t.push({name:"JS class",value:"(Function)"})}else{o=Object.getPrototypeOf(a);if(o.constructor){n="<JS:"+o.constructor.name+">";t.push({name:"JS class",value:o.constructor.name})}else{n="<JS:Object>";t.push({name:"JS class",value:"(anonymous)"})}}}else{n="<"+e.getClassName()+">";t.push({name:"class",value:e.getClassName()})}}else if(e.getType()==="integer"||e.getType()==="float"||e.getType()==="boolean"){n=a;s="color: blue;"}else if(e.getType()==="string"){n='"'+a+'"';s="color: red;"}return{attributes:t,headingStyle:s,headingValue:n}}});t.exports=s},{microdash:79}],165:[function(e,t,r){"use strict";var n=e("microdash"),i="include",s="path",a={}.hasOwnProperty,o=e("./Debug/DebugVariable"),u=e("./Value/Exit"),c=e("./KeyValuePair"),l=e("./List"),f=e("./NamespaceScope"),p=e("./Value/Object"),h=e("lie");function m(e,t,r,i,s,a){this.environment=e;this.options=n.extend({path:null},i||{});this.pausable=a;this.phpCommon=r;this.topLevelScope=t||null;this.wrapper=s}n.extend(m.prototype,{createPause:function(){var e=this;if(!e.pausable){throw new Error("Pausable is not available")}return e.pausable.createPause()},defineSuperGlobal:function(e,t){var r=this,n=r.environment.getState().getValueFactory(),i=n.coerce(t);r.environment.defineSuperGlobal(e,i)},defineSuperGlobalAccessor:function(e,t,r){this.environment.defineSuperGlobalAccessor(e,t,r)},execute:function(){var e,t,r=this,m=r.environment,d,E,g={},y,_,v=r.options,N=v[s],A=N===null,S=r.pausable,T=r.phpCommon,C=T.Exception,b=T.PHPError,D,x=T.PHPFatalError,F,I,O=r.getStderr(),w=r.getStdin(),B=r.getStdout(),R,P,L=r.wrapper,M=function(e){return S?e.async(S):e.sync()},k=M(u),V=M(f),j=M(p),U,G;function X(e){return new V(d,P,y,e)}function q(e,r){var s=false,a=null,o,u=n.extend({},v,{path:e});function c(e){s=true;if(a){if(e instanceof k){a.throw(e);return}a.resume(e)}else{if(e instanceof k){throw e}o=e}}if(!u[i]){throw new C("include("+e+') :: No "include" transport is available for loading the module.')}function l(t){var i;if(n.isFunction(t)){i=t(u,m,r).execute();if(!S){c(i);return}i.then(c,function(e){a.throw(e)});return}if(n.isString(y)){throw new C("include("+e+") :: Returning a PHP string is not supported")}if(P.isValue(t)){c(t);return}throw new C("include("+e+") :: Module is in a weird format")}function f(){t.raiseError(b.E_WARNING,"include("+e+"): failed to open stream: No such file or directory");t.raiseError(b.E_WARNING,"include(): Failed opening '"+e+"' for inclusion");c(P.createBoolean(false))}u[i](e,{reject:f,resolve:l},N,P);if(s){return o}if(!S){throw new C("include("+e+") :: Async support not enabled")}a=S.createPause();a.now()}function H(e,t){if(a.call(g,e)){return P.createInteger(1)}g[e]=true;return q(e,t)}function Y(){return N===null?"(program)":N}I=m.getState();e=I.getCallFactory();_=I.getModuleFactory();F=I.getReferenceFactory();P=I.getValueFactory();d=I.getGlobalNamespace();t=I.getCallStack();E=I.getGlobalScope();D=I.getPHPExceptionClass();G=r.topLevelScope||E;y=_.create(N);U=X(d);R={createClosure:function(e,t){return P.createObject(t.createClosure(e),d.getClass("Closure"))},createDebugVar:function(e,t){return new o(e,t)},createInstance:function(e,t,r){return t.instantiate(r,e)},createKeyValuePair:function(e,t){return new c(e,t)},createList:function(e){return new l(P,e)},createNamespaceScope:X,exit:function(e){throw P.createExit(e)},getClassName:function(e){return P.createString(e.getName())},getParentClassName:function(e){var t=e.getSuperClass();if(!t){throw new x(x.NO_PARENT_CLASS)}return P.createString(t.getName())},getPath:function(){return P.createString(Y())},getPathDirectory:function(){return P.createString(Y().replace(/\/[^\/]+$/,""))},implyArray:function(e){if(!e.isDefined()||e.getValue().getType()==="null"){e.setValue(P.createArray([]))}return e.getValue()},implyObject:function(e){return e},includeOnce:H,include:q,instrument:function(e){t.instrumentCurrent(e)},referenceFactory:F,requireOnce:q,require:q,throwCannotBreakOrContinue:function(e){throw new x(x.CANNOT_BREAK_OR_CONTINUE,{levels:e,suffix:e===1?"":"s"})},topLevelNamespaceScope:U,topLevelScope:G,valueFactory:P};t.push(e.create(G,U));function W(e,t){if(e instanceof k){return e}if(e instanceof j){(function(e){var r=e.getForThrow();if(!(r instanceof D)){throw new C("Weird value class thrown: "+e.getClassName())}r=new x(x.UNCAUGHT_EXCEPTION,{name:e.getClassName()});if(A){O.write(r.message)}t(r)})(e);return}if(e instanceof b){if(A){O.write(e.message)}t(e);return}t(e)}if(S){return new h(function(e,r){var n="return ("+L.toString()+"(stdin, stdout, stderr, tools, globalNamespace));";S.execute(n,{strict:true,expose:{stdin:w,stdout:B,stderr:O,tools:R,globalNamespace:d}}).then(function(r){t.pop();e(r)},function(n){var i;t.pop();i=W(n,r);if(i){e(i)}})})}try{try{return L(w,B,O,R,d)}finally{t.pop()}}catch(e){return W(e,function(e){throw e})}},expose:function(e,t){this.environment.expose(e,t)},getConstant:function(e){return this.environment.getConstant(e)},getStderr:function(){return this.environment.getStderr()},getStdin:function(){return this.environment.getStdin()},getStdout:function(){return this.environment.getStdout()}});t.exports=m},{"./Debug/DebugVariable":163,"./KeyValuePair":170,"./List":171,"./NamespaceScope":177,"./Value/Exit":200,"./Value/Object":204,lie:78,microdash:79}],166:[function(e,t,r){"use strict";var n=e("microdash");function i(e){this.state=e}n.extend(i.prototype,{defineClass:function(e,t){return this.state.defineClass(e,t)},defineSuperGlobal:function(e,t){this.state.defineSuperGlobal(e,t)},defineSuperGlobalAccessor:function(e,t,r){this.state.defineSuperGlobalAccessor(e,t,r)},expose:function(e,t){this.state.getGlobalScope().expose(e,t)},getConstant:function(e){return this.state.getConstant(e)},getOptions:function(){return this.state.getOptions()},getState:function(){return this.state},getStderr:function(){return this.state.getStderr()},getStdin:function(){return this.state.getStdin()},getStdout:function(){return this.state.getStdout()}});t.exports=i},{microdash:79}],167:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash")],function(e){var t=[].slice;function r(e,t,r,n,i){this.callFactory=r;this.callStack=i;this.MethodSpec=e;this.newStaticClassForNextCall=null;this.scopeFactory=t;this.valueFactory=n}e.extend(r.prototype,{create:function(e,r,n,i,s,a){var o=this,u=function(){var i=t.call(arguments),c=s||this,l,f,p=null,h;if(o.newStaticClassForNextCall!==null){p=o.newStaticClassForNextCall;o.newStaticClassForNextCall=null}else if(a){p=a}if(!o.valueFactory.isValue(c)){c=null}l=o.scopeFactory.create(e,r,u,c);f=o.callFactory.create(l,e,i,p);o.callStack.push(f);try{h=n.apply(l,i)}finally{o.callStack.pop()}return h};u.funcName=i||e.getNamespacePrefix()+"{closure}";u.isPHPCoreWrapped=true;return u},createMethodSpec:function(e,t,r,n){return new this.MethodSpec(e,t,r,n)},setNewStaticClassIfWrapped:function(e,t){if(!e.isPHPCoreWrapped){return}this.newStaticClassForNextCall=t}});return r},{strict:true})},{microdash:79,pauser:144}],168:[function(e,t,r){"use strict";var n=e("microdash");function i(){this.settings={include_path:"."}}n.extend(i.prototype,{get:function(e){return this.settings[e]},set:function(e,t){this.settings[e]=t}});t.exports=i},{microdash:79}],169:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t){this.key=e;this.reference=t}n.extend(i.prototype,{getKey:function(){return this.key},getReference:function(){return this.reference}});t.exports=i},{microdash:79}],170:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t){this.key=e;this.value=t}n.extend(i.prototype,{getKey:function(){return this.key},getValue:function(){return this.value}});t.exports=i},{microdash:79}],171:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t){this.elements=t;this.valueFactory=e}n.extend(i.prototype,{setValue:function(e){var t=this;if(e.getType()==="array"){n.each(t.elements,function(t,r){t.setValue(e.getElementByIndex(r).getValue())})}else{n.each(t.elements,function(e){e.setValue(t.valueFactory.createNull())})}return e}});t.exports=i},{microdash:79}],172:[function(e,t,r){"use strict";var n=e("microdash"),i="isStatic";function s(e,t,r,n){this.classObject=t;this.method=n;this.methodName=r;this.originalClass=e}n.extend(s.prototype,{getMethodName:function(){return this.methodName},isStatic:function(){return!!this.method[i]}});t.exports=s},{microdash:79}],173:[function(e,t,r){"use strict";var n=e("microdash");function i(e){this.filePath=e||null}n.extend(i.prototype,{getFilePath:function(){return this.filePath}});t.exports=i},{microdash:79}],174:[function(e,t,r){"use strict";var n=e("microdash");function i(e){this.Module=e}n.extend(i.prototype,{create:function(e){return new this.Module(e)}});t.exports=i},{microdash:79}],175:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("./Class")],function(e,t,r){var n="isStatic",i="__construct",s={}.hasOwnProperty,a=t.PHPError,o=t.PHPFatalError,u=function(t){return e.map(t,function(e){return e.getNative()})};function c(e,t,r,n,i,s,a){this.callStack=e;this.children={};this.classAutoloader=i;this.classes={};this.constants={};this.functionFactory=n;this.functions={};this.name=a;this.namespaceFactory=r;this.parent=s;this.valueFactory=t}e.extend(c.prototype,{defineClass:function(t,s,o){var c,l,f=null,p={},h={},m=this,d,E,g;if(e.isFunction(s)){g=function(){var e=this;if(s.shadowConstructor){s.shadowConstructor.call(c.isAutoCoercionEnabled()?e.getObject():e)}};g.prototype=Object.create(s.prototype);d=function(){var e=arguments,t=this,r=c.isAutoCoercionEnabled()?u(e):e,n=c.isAutoCoercionEnabled()?t.getObject():t;s.apply(n,r);if(s.prototype[i]){s.prototype[i].apply(n,r)}};d.neverCoerce=true;d.data=p;g.prototype[i]=d;f=i}else{g=function(){var t=this,r=t.getObject();if(s.superClass){s.superClass.getInternalClass().call(t)}e.forOwn(s.properties,function(e,t){r[t]=e()})};delete g.prototype.constructor;if(s.superClass){g.prototype=Object.create(s.superClass.getInternalClass().prototype)}e.each(s.methods,function(e,r){if(r==="__construct"){if(f){m.callStack.raiseError(a.E_STRICT,"Redefining already defined constructor for class "+t)}f=r}if(!f&&r===t){f=r}h[r]=e});E=s.staticProperties;l=s.constants}c=new r(m.valueFactory,m.functionFactory,m.callStack,m.getPrefix()+t,f,g,E,l,s.superClass,s.interfaces,o);e.forOwn(h,function(e,t){var r=m.functionFactory.create(o,c,e.method,t);r[n]=e[n];r.data=p;g.prototype[t]=r});p.classObject=c;m.classes[t.toLowerCase()]=c;return c},defineConstant:function(e,t,r){var n;r=r||{};n=!!r.caseInsensitive;if(n){e=e.toLowerCase()}this.constants[e]={caseInsensitive:n,value:t}},defineFunction:function(e,t,r){var n=this;if(n.name===""){if(/__autoload/i.test(e)&&t.length!==1){throw new o(o.EXPECT_EXACTLY_1_ARG,{name:e.toLowerCase()})}}n.functions[e.toLowerCase()]=n.functionFactory.create(r,null,t,e)},getClass:function(e){var t=e.toLowerCase(),r=this,n=r.parseClassName(e);if(n){return n.namespace.getClass(n.name)}if(!s.call(r.classes,t)){r.classAutoloader.autoloadClass(r.getPrefix()+e);if(!s.call(r.classes,t)){throw new o(o.CLASS_NOT_FOUND,{name:r.getPrefix()+e})}}return r.classes[t]},getConstant:function(e,t){var r=this,n=r.getConstantDefinition(e);if(n){return n.value}if(t){throw new o(o.UNDEFINED_CONSTANT,{name:r.getPrefix()+e})}else{r.callStack.raiseError(a.E_NOTICE,"Use of undefined constant "+e+" - assumed '"+e+"'");return this.valueFactory.createString(e)}},getDescendant:function(t){var r=this,n=r;e.each(t.split("\\"),function(e){if(!s.call(n.children,e.toLowerCase())){n.children[e.toLowerCase()]=r.namespaceFactory.create(n,e)}n=n.children[e.toLowerCase()]});return n},getFunction:function(t){var r,n,i=this,a,u;if(e.isFunction(t)){return t}n=t.match(/^(.*?)\\([^\\]+)$/);if(n){a=n[1];t=n[2];u=i.getDescendant(a);return u.getFunction(t)}if(s.call(i.functions,t.toLowerCase())){return i.functions[t.toLowerCase()]}r=i.getGlobal();if(s.call(r.functions,t.toLowerCase())){return r.functions[t.toLowerCase()]}throw new o(o.CALL_TO_UNDEFINED_FUNCTION,{name:i.getPrefix()+t})},getGlobal:function(){var e=this;return e.name===""?e:e.getParent().getGlobal()},getGlobalNamespace:function(){return this.getGlobal()},getName:function(){var e=this;if(e.name===""){return""}return(e.parent?e.parent.getPrefix():"")+e.name},getOwnFunction:function(e){var t=this;if(s.call(t.functions,e.toLowerCase())){return t.functions[e.toLowerCase()]}return null},getParent:function(){return this.parent},getPrefix:function(){var e=this.getName();if(e!==""){e+="\\"}return e},getConstantDefinition:function(e){var t,r,n=this;if(s.call(n.constants,e)){return n.constants[e]}r=e.toLowerCase();if(s.call(n.constants,r)&&n.constants[r].caseInsensitive){return n.constants[r]}t=n.getGlobal();if(s.call(t.constants,e)){return t.constants[e]}if(s.call(t.constants,r)&&t.constants[r].caseInsensitive){return t.constants[r]}return null},hasClass:function(e){var t=e.toLowerCase(),r=this,n=r.parseClassName(e);if(n){return n.namespace.hasClass(n.name)}return s.call(r.classes,t)},hasConstant:function(e){return this.getConstantDefinition(e)!==null},parseClassName:function(e){var t=e.match(/^(.*?)\\([^\\]+)$/),r=this,n,i;if(t){n=t[1];e=t[2];i=r.getDescendant(n);return{namespace:i,name:e}}return null},resolveClass:function(e){return e}});return c},{strict:true})},{"./Class":155,microdash:79,pauser:144,phpcommon:146}],176:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t,r,n,i){this.callStack=t;this.classAutoloader=i;this.functionFactory=r;this.Namespace=e;this.valueFactory=n}n.extend(i.prototype,{create:function(e,t){var r=this;return new r.Namespace(r.callStack,r.valueFactory,r,r.functionFactory,r.classAutoloader,e||null,t||"")}});t.exports=i},{microdash:79}],177:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon")],function(e,t){var r={}.hasOwnProperty,n=t.PHPFatalError;function i(e,t,r,n){this.globalNamespace=e;this.imports={};this.module=r;this.namespace=n;this.valueFactory=t}e.extend(i.prototype,{getClass:function(e){var t=this.resolveClass(e);return t.namespace.getClass(t.name)},getConstant:function(e){var t,n=this,i=n.namespace,s,a,o=false;if(e.charAt(0)==="\\"){o=true;t=e.match(/^\\(.*?)\\([^\\]+)$/);if(t){s=t[1];e=t[2];i=n.globalNamespace.getDescendant(s)}else{e=e.substr(1)}}else{t=e.match(/^([^\\]+)(.*?)\\([^\\]+)$/);if(t){o=true;a=t[1];s=t[2];e=t[3];if(r.call(n.imports,a.toLowerCase())){i=n.globalNamespace.getDescendant(n.imports[a.toLowerCase()].substr(1)+s)}else{i=n.globalNamespace.getDescendant(i.getPrefix()+a+s)}}}return i.getConstant(e,o)},getFilePath:function(){return this.module.getFilePath()},getFunction:function(e){var t,n=this,i=n.namespace,s,a;if(e.charAt(0)==="\\"){t=e.match(/^\\(.*?)\\([^\\]+)$/);if(t){s=t[1];e=t[2];i=n.globalNamespace.getDescendant(s)}else{e=e.substr(1);i=n.globalNamespace}}else{t=e.match(/^([^\\]+)(.*?)\\([^\\]+)$/);if(t){a=t[1];s=t[2];e=t[3];if(r.call(n.imports,a.toLowerCase())){i=n.globalNamespace.getDescendant(n.imports[a.toLowerCase()].substr(1)+s)}else{i=n.globalNamespace.getDescendant(i.getPrefix()+a+s)}}}return i.getFunction(e)},getGlobalNamespace:function(){return this.globalNamespace},getNamespaceName:function(){var e=this;return e.valueFactory.createString(e.namespace.getName())},getNamespacePrefix:function(){return this.namespace.getPrefix()},resolveClass:function(e){var t,n=this,i=n.namespace,s,a;if(r.call(n.imports,e.toLowerCase())){e=n.imports[e.toLowerCase()];i=n.globalNamespace}if(e.charAt(0)==="\\"){t=e.match(/^\\(.*?)\\([^\\]+)$/);if(t){s=t[1];e=t[2];i=n.globalNamespace.getDescendant(s)}else{e=e.substr(1);i=n.globalNamespace}}else{t=e.match(/^([^\\]+)(.*?)\\([^\\]+)$/);if(t){a=t[1];s=t[2];if(r.call(n.imports,a.toLowerCase())){i=n.globalNamespace.getDescendant(n.imports[a.toLowerCase()].substr(1)+s);e=t[3]}}}return{namespace:i,name:e}},use:function(e,t){var r=this,i=e;if(!t){t=e.replace(/^.*?([^\\]+)$/,"$1")}if(i.charAt(0)!=="\\"){i="\\"+i}if(r.imports[t.toLowerCase()]){throw new n(n.NAME_ALREADY_IN_USE,{alias:t,source:e})}r.imports[t.toLowerCase()]=i}});return i},{strict:true})},{microdash:79,pauser:144,phpcommon:146}],178:[function(e,t,r){"use strict";var n=e("microdash"),i={}.hasOwnProperty;function s(e){this.options=e}n.extend(s.prototype,{getOption:function(e){var t=this;return i.call(t.options,e)?t.options[e]:null},getOptions:function(){return this.options}});t.exports=s},{microdash:79}],179:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("./Value/Object"),e("lie")],function(e,t,r){function n(e,t,r){this.objectValue=r;this.pausable=e;this.valueFactory=t}e.extend(n.prototype,{callMethod:function(n){var i=this,s=[].slice.call(arguments,1);s=e.map(s,function(e){return i.valueFactory.coerce(e)});if(i.pausable){return new r(function(e,r){i.pausable.call(i.objectValue.callMethod,[n,s],i.objectValue).then(function(t){e(t.getNative())},function(e){if(e instanceof t){r(e.coerceToNativeError());return}r(e)})})}try{return i.objectValue.callMethod(n,s).getNative()}catch(e){if(e instanceof t){throw e.coerceToNativeError()}throw e}},getObjectValue:function(){return this.objectValue}});return n},{strict:true})},{"./Value/Object":204,lie:78,microdash:79,pauser:144}],180:[function(e,t,r){"use strict"
|
||
;t.exports=e("pauser")([e("microdash"),e("./builtin/builtins"),e("util"),e("./Reference/AccessorReference"),e("./Call"),e("./CallFactory"),e("./CallStack"),e("./ClassAutoloader"),e("./Closure"),e("./ClosureFactory"),e("./FunctionFactory"),e("./INIState"),e("./MethodSpec"),e("./Module"),e("./ModuleFactory"),e("./Namespace"),e("./NamespaceFactory"),e("./NamespaceScope"),e("./Reference/Null"),e("./ReferenceFactory"),e("./Scope"),e("./ScopeFactory"),e("./SuperGlobalScope"),e("./Value"),e("./ValueFactory"),e("./Variable"),e("./VariableFactory"),e("./Reference/Variable")],function(e,t,r,n,i,s,a,o,u,c,l,f,p,h,m,d,E,g,y,_,v,N,A,S,T,C,b,D){var x="Exception",F=function(r,n){var i=r.globalNamespace;function s(t){var n=t(r.internals);e.each(n,function(e,t){i.defineFunction(t,e)})}function a(e,t){r.defineClass(t,e)}function o(t){var n=t(r.internals);e.each(n,function(e,t){i.defineConstant(t,r.valueFactory.coerce(e))})}e.each(t.functionGroups,s);e.forOwn(t.classes,a);e.each(t.constantGroups,o);e.each(n.functionGroups,s);e.forOwn(n.classes,a);e.each(n.constantGroups,o)};function I(e,t,r,S,x,I){var O=new a(S),w=new s(i),B=new m(h),R=new T(x,O),P=new _(n,y,D,R),L=new o(R),M=new A(O,R),k=new b(C,O,R),V=new N(v,O,M,R,k,P),j=new l(p,V,w,R,O),U=new c(j,R,O,u),G=new E(d,O,j,R,L),X=G.create(),q=B.create(null),H=new g(X,R,q,X),Y,W=M.defineVariable("GLOBALS");V.setClosureFactory(U);Y=V.create(H);V.setGlobalScope(Y);L.setGlobalNamespace(X);R.setGlobalNamespace(X);W.setReference(P.createAccessor(function(){var e=Y.exportVariables(),t=R.coerce(e);t.getElementByKey(R.createString("GLOBALS")).setValue(t);return t},function(e){W.unset();W.setValue(R.coerce(e))}));this.callFactory=w;this.callStack=O;this.globalNamespace=X;this.globalNamespaceScope=H;this.globalScope=Y;this.iniState=new f;this.internals={callStack:O,classAutoloader:L,globalNamespace:X,iniState:this.iniState,optionSet:I,pausable:x,stdout:r,valueFactory:R};this.moduleFactory=B;this.optionSet=I;this.referenceFactory=P;this.callStack=O;this.classAutoloader=L;this.pausable=x;this.stderr=S;this.stdin=t;this.stdout=r;this.superGlobalScope=M;this.valueFactory=R;this.PHPException=null;F(this,e)}e.extend(I.prototype,{defineClass:function(t,r){var n=this,i=null,s=true,a=r(e.extend({},n.internals,{defineUnwrapper:function(e){i=e},disableAutoCoercion:function(){s=false}})),o,u=n.globalNamespace,c=n.globalNamespace.parseClassName(t);if(t===x){if(n.PHPException){throw new Error("PHPState.defineClass(...) :: Exception class is already defined")}n.PHPException=a}if(c){u=c.namespace;t=c.name}o=u.defineClass(t,a,n.globalNamespaceScope);if(i){o.defineUnwrapper(i)}if(s){o.enableAutoCoercion()}return o},defineSuperGlobal:function(e,t){this.superGlobalScope.defineVariable(e).setValue(t)},defineSuperGlobalAccessor:function(e,t,r){var i=this,s=new n(i.valueFactory,t,r);i.superGlobalScope.defineVariable(e).setReference(s)},getCallFactory:function(){return this.callFactory},getCallStack:function(){return this.callStack},getConstant:function(e){var t;try{t=this.globalNamespace.getConstant(e,true)}catch(e){return null}return t.getNative()},getGlobalNamespace:function(){return this.globalNamespace},getGlobalScope:function(){return this.globalScope},getModuleFactory:function(){return this.moduleFactory},getOptions:function(){return this.optionSet.getOptions()},getPHPExceptionClass:function(){return this.PHPException},getReferenceFactory:function(){return this.referenceFactory},getStderr:function(){return this.stderr},getStdin:function(){return this.stdin},getStdout:function(){return this.stdout},getSuperGlobalScope:function(){return this.superGlobalScope},getValueFactory:function(){return this.valueFactory}});return I},{strict:true})},{"./Call":152,"./CallFactory":153,"./CallStack":154,"./ClassAutoloader":156,"./Closure":157,"./ClosureFactory":158,"./FunctionFactory":167,"./INIState":168,"./MethodSpec":172,"./Module":173,"./ModuleFactory":174,"./Namespace":175,"./NamespaceFactory":176,"./NamespaceScope":177,"./Reference/AccessorReference":181,"./Reference/Null":183,"./Reference/Variable":189,"./ReferenceFactory":190,"./Scope":192,"./ScopeFactory":193,"./SuperGlobalScope":195,"./Value":196,"./ValueFactory":206,"./Variable":207,"./VariableFactory":208,"./builtin/builtins":209,microdash:79,pauser:144,util:265}],181:[function(e,t,r){"use strict";var n=e("microdash"),i=e("util"),s=e("./Reference");function a(e,t,r){this.valueFactory=e;this.valueGetter=t;this.valueSetter=r}i.inherits(a,s);n.extend(a.prototype,{getReference:function(){return this},getValue:function(){var e=this;return e.valueFactory.coerce(e.valueGetter())},setValue:function(e){this.valueSetter(e.getNative());return e}});t.exports=a},{"./Reference":186,microdash:79,util:265}],182:[function(e,t,r){"use strict";var n=e("microdash"),i=e("phpcommon"),s=e("util"),a=e("../KeyReferencePair"),o=e("../KeyValuePair"),u=i.PHPError,c=e("./Reference");function l(e,t,r,n,i,s){if(i&&s){throw new Error("Array elements can only have a value or be a reference, not both")}this.arrayValue=r;this.key=n;this.reference=s||null;this.callStack=t;this.value=i||null;this.valueFactory=e}s.inherits(l,c);n.extend(l.prototype,{clone:function(){var e=this;return new l(e.valueFactory,e.callStack,e.arrayValue,e.key,e.value)},getInstancePropertyByName:function(e){return this.getValue().getInstancePropertyByName(e)},getKey:function(){return this.key},getPair:function(e){var t=this;if(!e){e=t.key}if(t.value){return new o(e,t.value)}if(t.reference){return new a(e,t.reference)}throw new Error("Element is not defined")},getReference:function(){return this},getValue:function(){var e=this;if(!e.value&&!e.reference){e.callStack.raiseError(u.E_NOTICE,"Undefined "+e.arrayValue.referToElement(e.key.getNative()));return e.valueFactory.createNull()}return e.value?e.value:e.reference.getValue()},getValueReference:function(){var e=this;return e.reference||e.value||null},isDefined:function(){var e=this;return e.value||e.reference},isEmpty:function(){var e=this;if(e.value){return e.value.isEmpty()}if(e.reference){return e.reference.getValue().isEmpty()}return false},isReference:function(){return!!this.reference},isSet:function(){var e=this;if(e.value){return e.value.isSet()}if(e.reference){return e.reference.getValue().isSet()}return false},setReference:function(e){var t=this;t.reference=e;t.value=null;t.arrayValue.defineElement(t);return e},setValue:function(e){var t=this,r=t.arrayValue.getLength()===0;if(t.key===null){t.key=t.arrayValue.pushElement(t)}if(t.reference){t.reference.setValue(e)}else{t.arrayValue.defineElement(t);t.value=e.getForAssignment()}if(r){t.arrayValue.pointToElement(t)}return e},unset:function(){var e=this;e.value=e.reference=null}});t.exports=l},{"../KeyReferencePair":169,"../KeyValuePair":170,"./Reference":186,microdash:79,phpcommon:146,util:265}],183:[function(e,t,r){"use strict";var n=e("microdash"),i=e("util"),s=e("./Reference");function a(e,t){t=t||{};this.onSet=t.onSet;this.valueFactory=e}i.inherits(a,s);n.extend(a.prototype,{getReference:function(){return this},getValue:function(){return this.valueFactory.createNull()},isEmpty:function(){return true},isSet:function(){return false},setValue:function(){var e=this;if(e.onSet){e.onSet()}}});t.exports=a},{"./Reference":186,microdash:79,util:265}],184:[function(e,t,r){"use strict";var n=e("microdash"),i=e("util"),s=e("./Reference");function a(e,t,r){this.keyValue=r;this.objectValue=t;this.valueFactory=e}i.inherits(a,s);n.extend(a.prototype,{getReference:function(){return this},getValue:function(){var e=this;return e.objectValue.callMethod("offsetGet",[e.keyValue])},isEmpty:function(){var e=this;return!e.objectValue.callMethod("offsetExists",[e.keyValue]).getNative()||e.objectValue.callMethod("offsetGet",[e.keyValue]).isEmpty()},isSet:function(){var e=this;return e.objectValue.callMethod("offsetExists",[e.keyValue]).getNative()},setValue:function(e){var t=this;t.objectValue.callMethod("offsetSet",[t.keyValue,e])},unset:function(){var e=this;e.objectValue.callMethod("offsetUnset",[e.keyValue])}});t.exports=a},{"./Reference":186,microdash:79,util:265}],185:[function(e,t,r){"use strict";var n=e("microdash"),i={}.hasOwnProperty,s=e("phpcommon"),a=e("util"),o="__get",u="__set",c=s.PHPError,l=e("./Reference");function f(e,t,r,n,i){this.objectValue=r;this.key=i;this.nativeObject=n;this.reference=null;this.callStack=t;this.valueFactory=e}a.inherits(f,l);n.extend(f.prototype,{clone:function(){var e=this;return new f(e.valueFactory,e.callStack,e.objectValue,e.nativeObject,e.key)},getInstancePropertyByName:function(e){return this.getValue().getInstancePropertyByName(e)},getKey:function(){return this.key},getReference:function(){return this},getValue:function(){var e=this,t=e.nativeObject,r=e.key.getNative();if(!e.isDefined()){if(e.objectValue.isMethodDefined(o)){return e.objectValue.callMethod(o,[e.key])}e.callStack.raiseError(c.E_NOTICE,"Undefined "+e.objectValue.referToElement(r));return e.valueFactory.createNull()}return e.reference?e.reference.getValue():e.valueFactory.coerce(t[r])},isDefined:function(){var e=true,t,r=this,n=r.nativeObject,s=r.key.getNative();if(r.reference){return true}if(!i.call(n,s)){t=n;do{t=Object.getPrototypeOf(t);if(!t||t===Object.prototype){e=false;break}}while(!i.call(t,s))}return e},isEmpty:function(){var e=this;return!e.isDefined()||e.getValue().isEmpty()},isReference:function(){return!!this.reference},isSet:function(){var e=this,t=e.isDefined(),r=e.nativeObject,n=e.key.getNative();if(!t){return false}return e.valueFactory.coerce(r[n]).getType()!=="null"},setReference:function(e){var t=this;t.reference=e;return e},setValue:function(e){var t=this,r=t.nativeObject,n=t.key.getNative(),i=t.objectValue.getLength()===0,s;function a(){if(t.objectValue.getClassName()==="JSObject"){return e.getNative()}return e.getForAssignment()}function o(){if(i){t.objectValue.pointToProperty(t)}}if(t.reference){t.reference.setValue(e);o();return e}s=a();if(!t.isDefined()){if(t.objectValue.isMethodDefined(u)){t.objectValue.callMethod(u,[t.key,s]);return e}}r[n]=s;o();return e},unset:function(){var e=this,t=e.nativeObject,r=e.key.getNative();e.value=e.reference=null;delete t[r]}});t.exports=f},{"./Reference":186,microdash:79,phpcommon:146,util:265}],186:[function(e,t,r){"use strict";var n=e("microdash");function i(){throw new Error("Reference is abstract, no need to instantiate it")}n.extend(i.prototype,{getReference:function(){return this},getValue:function(){throw new Error("Not implemented")},isEmpty:function(){throw new Error("Not implemented")},isSet:function(){throw new Error("Not implemented")},postDecrement:function(){var e=this,t=e.getValue(),r=t.decrement();e.setValue(r);return t},postIncrement:function(){var e=this,t=e.getValue(),r=t.increment();e.setValue(r);return t},preDecrement:function(){var e=this,t=e.getValue().decrement();e.setValue(t);return t},preIncrement:function(){var e=this,t=e.getValue().increment();e.setValue(t);return t},setValue:function(){throw new Error("Not implemented")}});t.exports=i},{microdash:79}],187:[function(e,t,r){"use strict";var n=e("microdash"),i=e("phpcommon"),s=e("util"),a=i.PHPFatalError,o=e("./Reference");function u(e,t,r,n){this.classObject=e;this.name=t;this.reference=null;this.value=n;this.visibility=r}s.inherits(u,o);n.extend(u.prototype,{getInstancePropertyByName:function(e){return this.getValue().getInstancePropertyByName(e)},getName:function(){return this.name},getReference:function(){return this},getValue:function(){var e=this;return e.value?e.value:e.reference.getValue()},getVisibility:function(){return this.visibility},isEmpty:function(){return this.getValue().isEmpty()},isReference:function(){return!!this.reference},isSet:function(){return this.getValue().isSet()},setReference:function(e){var t=this;t.reference=e;t.value=null},setValue:function(e){var t=this;if(t.reference){t.reference.setValue(e)}else{t.value=e.getForAssignment()}},unset:function(){var e=this;throw new a(a.CANNOT_UNSET_STATIC_PROPERTY,{className:e.classObject.getName(),propertyName:e.name})}});t.exports=u},{"./Reference":186,microdash:79,phpcommon:146,util:265}],188:[function(e,t,r){"use strict";var n=e("microdash"),i=e("phpcommon"),s=e("util"),a=i.PHPFatalError,o=e("./Reference"),u=function(e){throw new a(a.UNDECLARED_STATIC_PROPERTY,{className:e.classObject.name,propertyName:e.name})};function c(e,t){this.classObject=e;this.name=t}s.inherits(c,o);n.extend(c.prototype,{getReference:function(){u(this)},getValue:function(){u(this)},isEmpty:function(){return true},isSet:function(){return false},setValue:function(){u(this)}});t.exports=c},{"./Reference":186,microdash:79,phpcommon:146,util:265}],189:[function(e,t,r){"use strict";var n=e("microdash"),i=e("util"),s=e("./Reference");function a(e){this.variable=e}i.inherits(a,s);n.extend(a.prototype,{getForAssignment:function(){return this.getValue()},getInstancePropertyByName:function(e){return this.getValue().getInstancePropertyByName(e)},getReference:function(){return this},getValue:function(){return this.variable.getValue()},setValue:function(e){this.variable.setValue(e);return e}});t.exports=a},{"./Reference":186,microdash:79,util:265}],190:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash")],function(e){function t(e,t,r,n){this.AccessorReference=e;this.NullReference=t;this.valueFactory=n;this.VariableReference=r}e.extend(t.prototype,{createAccessor:function(e,t){var r=this;return new r.AccessorReference(r.valueFactory,e,t)},createNull:function(){var e=this;return new e.NullReference(e.valueFactory)},createVariable:function(e){return new this.VariableReference(e)}});return t},{strict:true})},{microdash:79,pauser:144}],191:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("./PHPState"),e("./Stream")],function(e,t,r){function n(e,t,r,n,i,s){this.builtins={classes:{},constantGroups:[],functionGroups:[]};this.Engine=t;this.Environment=e;this.OptionSet=r;this.pausable=s;this.phpCommon=i;this.PHPState=n}e.extend(n.prototype,{compile:function(t){var r=this,n=r.pausable,i=r.phpCommon;function s(s,a,o){if(a){s=e.extend({},a.getOptions(),s)}else{a=r.createEnvironment(s)}return new r.Engine(a,o||null,i,s,t,n)}s.using=function(t,r,n){function i(i,a,o){i=e.extend({},t,i);a=a||r;o=o||n;return s(i,a,o)}return i};return s},createEnvironment:function(e){var t=this,n=new r,i=new r,s=new r,a=new t.OptionSet(e||{}),o=new t.PHPState(t.builtins,n,i,s,t.pausable,a);return new t.Environment(o)},install:function(t){var r=this.builtins;[].push.apply(r.functionGroups,t.functionGroups);e.extend(r.classes,t.classes);[].push.apply(r.constantGroups,t.constantGroups)}});return n},{strict:true})},{"./PHPState":180,"./Stream":194,microdash:79,pauser:144}],192:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon")],function(e,t){var r={}.hasOwnProperty,n="isStatic",i=t.PHPFatalError;function s(e,t,r,i,s,a,o,u,c,l,f){var p=a.createVariable("this");this.callStack=e;this.closureFactory=i;this.currentClass=c;this.currentFunction=l;this.errorsSuppressed=false;this.globalScope=t||this;this.namespaceScope=u;this.referenceFactory=o;this.superGlobalScope=r;this.thisObject=l&&l[n]?null:f;this.valueFactory=s;this.variableFactory=a;this.variables={this:p};if(f&&(!l||!l[n])){p.setValue(f)}}e.extend(s.prototype,{createClosure:function(e,t){var r=this,n=null;if(!t){n=r.thisObject}return r.closureFactory.create(r,e,r.namespaceScope,r.currentClass,n)},defineVariable:function(e){var t=this,r=t.variableFactory.createVariable(e);t.variables[e]=r;return r},defineVariables:function(t){var r=this;e.each(t,function(e){r.defineVariable(e)})},exportVariables:function(){var t=this,r=t.superGlobalScope.exportVariables();e.forOwn(t.variables,function(e,t){if(e.isDefined()){r[t]=e.getValue()}});return r},expose:function(e,t){var r=this,n=r.valueFactory;r.defineVariable(t).setValue(n.coerce(e))},getClassName:function(){var e=this;return e.valueFactory.createString(e.currentClass?e.currentClass.getName():"")},getClassNameOrThrow:function(){var e=this;if(!e.currentClass){throw new i(i.CANNOT_ACCESS_WHEN_NO_ACTIVE_CLASS,{className:"self"})}return e.valueFactory.createString(e.currentClass.getName())},getCurrentClass:function(){return this.currentClass},getFunctionName:function(){var e=this,t="";if(e.currentFunction){t=e.currentFunction.funcName;if(!e.currentClass){t=e.namespaceScope.getNamespacePrefix()+t}}return e.valueFactory.createString(t)},getMethodName:function(){var e=this,t="";if(e.currentFunction){t=e.currentFunction.funcName;if(e.currentClass){t=e.currentClass.getName()+"::"+t}else{t=e.namespaceScope.getNamespacePrefix()+t}}return e.valueFactory.createString(t)},getParentClassNameOrThrow:function(){var e=this,t;if(!e.currentClass){throw new i(i.CANNOT_ACCESS_WHEN_NO_ACTIVE_CLASS,{className:"parent"})}t=e.currentClass.getSuperClass();if(!t){throw new i(i.NO_PARENT_CLASS)}return e.valueFactory.createString(t.getName())},getStaticClassNameOrThrow:function(){var e=this,t=e.callStack.getStaticClass();if(!t){throw new i(i.CANNOT_ACCESS_WHEN_NO_ACTIVE_CLASS,{className:"static"})}return e.valueFactory.createString(t.getName())},getThisObject:function(){return this.thisObject},getVariable:function(e){var t=this,n;if(r.call(t.variables,e)){return t.variables[e]}n=t.superGlobalScope.getVariable(e);if(!n){n=t.variableFactory.createVariable(e);t.variables[e]=n;if(t.errorsSuppressed){n.setValue(t.valueFactory.createNull())}}return n},importGlobal:function(e){var t=this;if(t.globalScope===t){return}t.getVariable(e).setReference(t.referenceFactory.createVariable(t.globalScope.getVariable(e)))},importStatic:function(e,t){var n=this,i,s;if(n.currentFunction){if(n.currentFunction.staticVariables){i=n.currentFunction.staticVariables}else{i={};n.currentFunction.staticVariables=i}if(!r.call(i,e)){i[e]=n.variableFactory.createVariable(e);if(t){i[e].setValue(t)}}s=i[e];n.getVariable(e).setReference(n.referenceFactory.createVariable(s))}else{n.getVariable(e).setValue(t)}},suppressErrors:function(){this.errorsSuppressed=true},suppressOwnErrors:function(){this.ownErrorsSuppressed=true},suppressesErrors:function(){return this.errorsSuppressed},suppressesOwnErrors:function(){return this.ownErrorsSuppressed},unsuppressErrors:function(){this.errorsSuppressed=false},unsuppressOwnErrors:function(){this.ownErrorsSuppressed=false}});return s},{strict:true})},{microdash:79,pauser:144,phpcommon:146}],193:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t,r,n,i,s){this.callStack=t;this.closureFactory=null;this.globalScope=null;this.referenceFactory=s;this.Scope=e;this.superGlobalScope=r;this.valueFactory=n;this.variableFactory=i}n.extend(i.prototype,{create:function(e,t,r,n){var i=this;return new i.Scope(i.callStack,i.globalScope,i.superGlobalScope,i.closureFactory,i.valueFactory,i.variableFactory,i.referenceFactory,e||null,t||null,r||null,n||null)},setClosureFactory:function(e){this.closureFactory=e},setGlobalScope:function(e){this.globalScope=e}});t.exports=i},{microdash:79}],194:[function(e,t,r){"use strict";var n=e("microdash"),i=e("util"),s=e("events").EventEmitter;function a(){s.call(this);this.data=""}i.inherits(a,s);n.extend(a.prototype,{read:function(e){var t,r=this;if(!e&&e!==0){t=r.data;r.data=""}else{t=r.data.substr(0,e);r.data=r.data.substr(e)}return t},readAll:function(){var e=this;return e.read(e.data.length)},write:function(e){var t=this;t.data+=e;t.emit("data",e)}});t.exports=a},{events:74,microdash:79,util:265}],195:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("./Variable")],function(e,t){var r={}.hasOwnProperty;function n(e,t){this.callStack=e;this.valueFactory=t;this.variables={}}e.extend(n.prototype,{defineVariable:function(e){var r=this,n=new t(r.callStack,r.valueFactory,e);r.variables[e]=n;return n},exportVariables:function(){var t={};e.forOwn(this.variables,function(e,r){if(r==="GLOBALS"){return}t[r]=e.getValue()});return t},getVariable:function(e){var t=this;return r.call(t.variables,e)?t.variables[e]:null}});return n},{strict:true})},{"./Variable":207,microdash:79,pauser:144}],196:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("./Reference/Null")],function(e,t,r){var n=t.PHPError,i=t.PHPFatalError,s=function(e){var t=e.callStack;return new r(e.factory,{onSet:function(){t.raiseError(n.E_WARNING,"Cannot use a scalar value as an array")}})},a=function(){throw new Error("Unimplemented")};function o(e,t,r,n){this.factory=e;this.callStack=t;this.type=r;this.value=n}e.extend(o.prototype,{addToArray:function(){throw new i(i.UNSUPPORTED_OPERAND_TYPES)},addToFloat:function(e){var t=this;return t.factory.createFloat(t.coerceToFloat().getNative()+e.getNative())},addToNull:function(){return this},addToString:function(e){return e.coerceToNumber().add(this.coerceToNumber())},bitwiseAnd:function(e){var t=this;return t.factory.createInteger((t.coerceToInteger().getNative()&e.coerceToInteger().getNative())>>>0)},bitwiseOr:function(e){var t=this;return t.factory.createInteger((t.coerceToInteger().getNative()|e.coerceToInteger().getNative())>>>0)},callMethod:function(e){throw new i(i.NON_OBJECT_METHOD_CALL,{name:e})},callStaticMethod:function(){throw new i(i.CLASS_NAME_NOT_VALID)},coerceToArray:function(){var e=this;return e.factory.createArray([e])},coerceToFloat:function(){var e=this;return e.factory.createFloat(Number(e.value))},coerceToInteger:function(){var e=this;return e.factory.createInteger(Number(e.value)>>>0)},coerceToNumber:function(){return this.coerceToFloat()},coerceToObject:function(){var e=this,t=e.factory.createStdClassObject();t.getInstancePropertyByName(e.factory.createString("scalar")).setValue(e);return t},coerceToString:a,concat:function(e){var t=this;return t.factory.createString(t.coerceToString().getNative()+e.coerceToString().getNative())},decrement:a,divide:function(){throw new i(i.UNSUPPORTED_OPERAND_TYPES)},divideByArray:function(){throw new i(i.UNSUPPORTED_OPERAND_TYPES)},divideByBoolean:function(e){return this.divideByNonArray(e)},divideByFloat:function(e){return this.divideByNonArray(e)},divideByInteger:function(e){return this.divideByNonArray(e)},divideByNonArray:function(){throw new i(i.UNSUPPORTED_OPERAND_TYPES)},divideByNull:function(e){return this.divideByNonArray(e)},divideByObject:function(e){return this.divideByNonArray(e)},divideByString:function(e){return this.divideByNonArray(e)},getCallableName:a,getConstantByName:function(){throw new i(i.CLASS_NAME_NOT_VALID)},getElementByKey:function(){return s(this)},getForAssignment:function(){return this},getInstancePropertyByName:a,getLength:function(){return this.coerceToString().getLength()},getNative:function(){return this.value},getProxy:function(){return this.getNative()},getPushElement:function(){return s(this)},getReference:function(){throw new i(i.ONLY_VARIABLES_BY_REFERENCE)},getStaticPropertyByName:function(){throw new i(i.CLASS_NAME_NOT_VALID)},getType:function(){return this.type},getValue:function(){return this},increment:a,instantiate:function(){throw new i(i.CLASS_NAME_NOT_VALID)},isAnInstanceOf:a,isTheClassOfArray:function(){throw new i(i.CLASS_NAME_NOT_VALID)},isTheClassOfBoolean:function(){throw new i(i.CLASS_NAME_NOT_VALID)},isTheClassOfFloat:function(){throw new i(i.CLASS_NAME_NOT_VALID)},isTheClassOfInteger:function(){throw new i(i.CLASS_NAME_NOT_VALID)},isTheClassOfNull:function(){throw new i(i.CLASS_NAME_NOT_VALID)},isTheClassOfObject:function(){throw new i(i.CLASS_NAME_NOT_VALID)},isTheClassOfString:function(){throw new i(i.CLASS_NAME_NOT_VALID)},isEmpty:a,isEqualTo:function(e){var t=this;return t.factory.createBoolean(e.value==t.value)},isEqualToArray:function(e){return this.isEqualTo(e)},isEqualToFloat:function(e){return this.isEqualTo(e)},isEqualToInteger:function(e){return this.isEqualTo(e)},isEqualToNull:function(e){return this.isEqualTo(e)},isEqualToObject:function(e){return this.isEqualTo(e)},isGreaterThan:function(e){var t=this,r=t.factory;return r.createBoolean(t.coerceToNumber().getNative()>e.coerceToNumber().getNative())},isGreaterThanOrEqual:function(e){var t=this,r=t.factory;return r.createBoolean(t.coerceToNumber().getNative()>=e.coerceToNumber().getNative())},isIdenticalTo:function(e){var t=this;return t.factory.createBoolean(e.type===t.type&&e.value===t.value)},isIdenticalToArray:function(e){return this.isIdenticalTo(e)},isIdenticalToObject:function(e){return this.isIdenticalTo(e)},isLessThan:function(e){var t=this,r=t.factory;return r.createBoolean(t.coerceToNumber().getNative()<e.coerceToNumber().getNative())},isLessThanOrEqual:function(e){var t=this,r=t.factory;return r.createBoolean(t.coerceToNumber().getNative()<=e.coerceToNumber().getNative())},isNotEqualTo:function(e){var t=this;return t.factory.createBoolean(!t.isEqualTo(e).getNative())},isNotIdenticalTo:function(e){var t=this;return t.factory.createBoolean(!t.isIdenticalTo(e).getNative())},isNumeric:a,isSet:function(){return true},logicalAnd:function(e){var t=this;return t.factory.createBoolean(t.coerceToBoolean().getNative()&&e.coerceToBoolean().getNative())},logicalNot:function(){var e=this;return e.factory.createBoolean(!e.coerceToBoolean().getNative())},modulo:function(e){var t=this,r=t.coerceToInteger().getNative(),i=e.coerceToInteger().getNative();if(i===0){t.callStack.raiseError(n.E_WARNING,"Division by zero");return t.factory.createBoolean(false)}return t.factory.createInteger(r%i)},multiply:function(){throw new i(i.UNSUPPORTED_OPERAND_TYPES)},multiplyByArray:function(){throw new i(i.UNSUPPORTED_OPERAND_TYPES)},multiplyByBoolean:function(e){return this.multiplyByNonArray(e)},multiplyByFloat:function(e){return this.multiplyByNonArray(e)},multiplyByInteger:function(e){return this.multiplyByNonArray(e)},multiplyByNonArray:function(){throw new i(i.UNSUPPORTED_OPERAND_TYPES)},multiplyByNull:function(e){return this.multiplyByNonArray(e)},multiplyByObject:function(e){return this.multiplyByNonArray(e)},multiplyByString:function(e){return this.multiplyByNonArray(e)},subtractFromNull:function(){throw new i(i.UNSUPPORTED_OPERAND_TYPES)}});return o},{strict:true})},{"./Reference/Null":183,microdash:79,pauser:144,phpcommon:146}],197:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("util"),e("../Reference/Element"),e("../KeyReferencePair"),e("../KeyValuePair"),e("../Reference/Null"),e("../Reference/Reference"),e("../Value"),e("../Variable")],function(e,t,r,n,i,s,a,o,u,c){var l={}.hasOwnProperty,f=t.PHPError,p=t.PHPFatalError;function h(t,r,a,l){var f=[],p=[],h=this;e.each(a,function(a,u){var l,m=null,d=null;if(a instanceof s){u=a.getKey();d=a.getValue()}else if(a instanceof i){u=a.getKey();m=a.getReference()}else{if(e.isNumber(u)){u=t.createInteger(p.length)}else{u=t.createFromNative(u)}if(a instanceof o){m=a}else if(a instanceof c){d=a.getValue()}else{d=t.coerce(a)}}if(d){l=new n(t,r,h,u,d)}else{l=new n(t,r,h,u,null,m)}f.push(l);p[u.getNative()]=l});u.call(this,t,r,l||"array",f);this.keysToElements=p;this.pointer=0}r.inherits(h,u);e.extend(h.prototype,{add:function(e){return e.addToArray(this)},addToArray:function(t){var r=this,n=t.clone();e.forOwn(r.keysToElements,function(e,t){if(!l.call(n.keysToElements,t)){n.getElementByKey(e.getKey()).setValue(e.getValue())}});return n},addToBoolean:function(){throw new p(p.UNSUPPORTED_OPERAND_TYPES)},addToFloat:function(){throw new p(p.UNSUPPORTED_OPERAND_TYPES)},addToInteger:function(){throw new p(p.UNSUPPORTED_OPERAND_TYPES)},addToNull:function(){throw new p(p.UNSUPPORTED_OPERAND_TYPES)},addToObject:function(e){return e.addToArray(this)},addToString:function(){throw new p(p.UNSUPPORTED_OPERAND_TYPES)},call:function(e,t){var r,n,i=this.value;if(i.length<2){throw new p(p.FUNCTION_NAME_MUST_BE_STRING)}n=i[0].getValue();r=i[1].getValue();if(n.getType()==="string"){return n.callStaticMethod(r,e,t)}return n.callMethod(r.getNative(),e,t)},clone:function(){var t=this,r=[];e.each(t.value,function(e){if(e.isDefined()){r.push(e.getPair())}});return new h(t.factory,t.callStack,r,t.type)},coerceToArray:function(){return this},coerceToBoolean:function(){var e=this;return e.factory.createBoolean(e.value.length>0)},coerceToInteger:function(){var e=this;return e.factory.createInteger(e.value.length===0?0:1)},coerceToKey:function(){this.callStack.raiseError(f.E_WARNING,"Illegal offset type")},coerceToNumber:function(){return this.coerceToInteger()},coerceToObject:function(){var t=this,r=t.factory.createStdClassObject();e.each(t.value,function(e){r.getInstancePropertyByName(e.getKey()).setValue(e.getValue())});return r},coerceToString:function(){return this.factory.createString("Array")},defineElement:function(e){var t=this;if(t.value.indexOf(e)===-1){t.value.push(e)}},formatAsString:function(){return"Array"},getForAssignment:function(){return this.clone()},getKeys:function(){var t=[];e.each(this.value,function(e){t.push(e.getKey())});return t},getNative:function(){var t=false,r=[],n=this;e.each(n.value,function(e){if(!isFinite(e.getKey().getNative())){t=true}});r=t?{}:[];e.each(n.value,function(e){r[e.getKey().getNative()]=e.getValue().getNative()});return r},getCurrentElement:function(){var e=this;return e.value[e.pointer]||e.factory.createNull()},getElementByKey:function(e){var t,r,i=this;e=e.coerceToKey(i.callStack);if(!e){return new a(i.factory)}r=e.getNative();if(!l.call(i.keysToElements,r)){t=new n(i.factory,i.callStack,i,e,null);i.keysToElements[r]=t}return i.keysToElements[r]},getElementByIndex:function(e){var t=this;return t.value[e]||function(){t.callStack.raiseError(f.E_NOTICE,"Undefined "+t.referToElement(e));return new a(t.factory)}()},getElementPairByKey:function(e,t){return this.getElementByKey(e).getPair(t)},getValueReferences:function(){var t=[];e.each(this.value,function(e){t.push(e.getValueReference())});return t},getKeyByIndex:function(e){var t=this,r=t.value[e];return r?r.key:null},getLength:function(){return this.value.length},getPointer:function(){return this.pointer},getPushElement:function(){var e=this;return new n(e.factory,e.callStack,e,null,null)},getValues:function(){var t=[];e.each(this.value,function(e){t.push(e.getValue())});return t},isAnInstanceOf:function(e){return e.isTheClassOfArray(this)},isEmpty:function(){return this.value.length===0},isEqualTo:function(e){return e.isEqualToArray(this)},isEqualToNull:function(){var e=this;return e.factory.createBoolean(e.value.length===0)},isEqualToArray:function(t){var r=true,n=this,i=n.factory;if(t.value.length!==n.value.length){return i.createBoolean(false)}e.forOwn(t.keysToElements,function(e,t){if(!l.call(n.keysToElements,t)||e.getValue().isNotEqualTo(n.keysToElements[t].getValue()).getNative()){r=false;return false}});return i.createBoolean(r)},isEqualToBoolean:function(e){var t=this;return t.factory.createBoolean(e.getNative()===t.value.length>0)},isEqualToFloat:function(){return this.factory.createBoolean(false)},isEqualToInteger:function(){return this.factory.createBoolean(false)},isEqualToObject:function(){return this.factory.createBoolean(false)},isEqualToString:function(){return this.factory.createBoolean(false)},isIdenticalTo:function(e){return e.isIdenticalToArray(this)},isIdenticalToArray:function(t){var r=true,n=this,i=n.factory;if(t.value.length!==n.value.length){return i.createBoolean(false)}e.each(t.value,function(e,t){if(n.value[t].getKey().isNotIdenticalTo(e.getKey()).getNative()||n.value[t].getValue().isNotIdenticalTo(e.getValue()).getNative()){r=false;return false}});return i.createBoolean(r)},isNumeric:function(){return false},next:function(){this.pointer++},onesComplement:function(){throw new p(p.UNSUPPORTED_OPERAND_TYPES)},pointToElement:function(t){var r=this;e.each(r.value,function(e,n){if(e.getKey().isEqualTo(t.getKey()).getNative()){r.setPointer(n)}})},push:function(e){var t=this,r=t.factory.createInteger(t.getLength());t.getElementByKey(r).setValue(e);return t},pushElement:function(e){var t=this,r=t.getLength();t.keysToElements[r]=e;t.value.push(e);return t.factory.createInteger(r)},referToElement:function(e){return"offset: "+e},
|
||
reset:function(){var e=this;e.pointer=0;return e},setPointer:function(e){this.pointer=e},shift:function(){var t=this,r=t.value,i=[],s={},a=0;if(r.length===0){return t.factory.createNull()}e.each(r.slice(1),function(e){var r=e.getKey(),o=r.getNative();if(isFinite(o)){o=a++;r=t.factory.createInteger(o)}e=new n(t.factory,t.callStack,t,r,e.getValue());s[o]=e;i.push(e)});t.pointer=0;t.keysToElements=s;t.value=i;return r[0].getValue()},shiftLeftBy:function(e){return this.coerceToInteger().shiftLeftBy(e)},shiftRightBy:function(e){return this.coerceToInteger().shiftRightBy(e)},sort:function(e){this.value.sort(e)}});return h},{strict:true})},{"../KeyReferencePair":169,"../KeyValuePair":170,"../Reference/Element":182,"../Reference/Null":183,"../Reference/Reference":186,"../Value":196,"../Variable":207,microdash:79,pauser:144,phpcommon:146,util:265}],198:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("util"),e("./String")],function(e,t,r){function n(e,t,n){r.call(this,e,t,n)}t.inherits(n,r);e.extend(n.prototype,{call:function(e,t){return t.getFunction(this.value).apply(null,e)},callStaticMethod:function(e,t,r,n){var i=this,s=r.getClass(i.value);return s.callMethod(e.getNative(),t,null,null,null,n)},getCallableName:function(e){var t=this,r=e.resolveClass(t.value);return r.namespace.getPrefix()+r.name},getConstantByName:function(e,t){var r=this,n=t.getClass(r.value);return n.getConstantByName(e)},getStaticPropertyByName:function(e,t){var r=this,n=t.getClass(r.value);return n.getStaticPropertyByName(e.getNative())},instantiate:function(e,t){var r=this,n=t.getClass(r.value);return n.instantiate(e)},isTheClassOfObject:function(e,t){var r=this,n=r.getCallableName(t);return r.factory.createBoolean(e.classIs(n))}});return n},{strict:true})},{"./String":205,microdash:79,pauser:144,util:265}],199:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("util"),e("../Value")],function(e,t,r,n){var i=t.PHPError,s=t.PHPFatalError;function a(e,t,r){n.call(this,e,t,"boolean",!!r)}r.inherits(a,n);e.extend(a.prototype,{add:function(e){return e.addToBoolean(this)},addToBoolean:function(e){var t=this;return t.factory.createInteger(t.value+e.value)},addToInteger:function(e){return e.addToBoolean(this)},addToNull:function(){return this.coerceToInteger()},addToObject:function(e){return e.addToBoolean(this)},coerceToBoolean:function(){return this},coerceToInteger:function(){var e=this;return e.factory.createInteger(e.value?1:0)},coerceToKey:function(){return this.coerceToInteger()},coerceToNumber:function(){return this.coerceToInteger()},coerceToString:function(){var e=this;return e.factory.createString(e.value?"1":"")},divide:function(e){return e.divideByBoolean(this)},divideByNonArray:function(e){var t,r=this,n=r.getNative(),s;if(n===false){r.callStack.raiseError(i.E_WARNING,"Division by zero");return r.factory.createBoolean(false)}t=e.coerceToNumber();s=t.getNative()/n;return t.getType()==="float"?r.factory.createFloat(s):r.factory.createInteger(s)},formatAsString:function(){return this.value?"true":"false"},getElement:function(){return this.factory.createNull()},isAnInstanceOf:function(e){return e.isTheClassOfBoolean(this)},isEmpty:function(){return this.value===false},isEqualTo:function(e){var t=this,r=t.factory;return r.createBoolean(e.coerceToBoolean().value===t.value)},isEqualToObject:function(){return this},isEqualToString:function(e){var t=this;return e.factory.createBoolean(e.coerceToBoolean().getNative()===t.getNative())},isNumeric:function(){return false},multiply:function(e){return e.multiplyByBoolean(this)},multiplyByNonArray:function(e){var t=e.coerceToNumber(),r=this,n=r.getNative(),i=t.getNative()*n;return t.getType()==="float"?r.factory.createFloat(i):r.factory.createInteger(i)},onesComplement:function(){throw new s(s.UNSUPPORTED_OPERAND_TYPES)},shiftLeftBy:function(e){return this.coerceToInteger().shiftLeftBy(e)},shiftRightBy:function(e){return this.coerceToInteger().shiftRightBy(e)}});return a},{strict:true})},{"../Value":196,microdash:79,pauser:144,phpcommon:146,util:265}],200:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("util"),e("../Value")],function(e,t,r){function n(e,t,n){r.call(this,e,t,"exit",null);this.statusValue=n}t.inherits(n,r);e.extend(n.prototype,{getStatus:function(){var e=this;return e.statusValue?e.statusValue.getNative():0}});return n},{strict:true})},{"../Value":196,microdash:79,pauser:144,util:265}],201:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("util"),e("../Value")],function(e,t,r,n){var i=t.PHPError;function s(e,t,r){n.call(this,e,t,"float",r)}r.inherits(s,n);e.extend(s.prototype,{add:function(e){return e.addToFloat(this)},addToBoolean:function(e){var t=this;return t.factory.createFloat(t.value+Number(e.value))},addToInteger:function(e){var t=this;return t.factory.createFloat(t.value+e.value)},addToObject:function(e){return e.addToFloat(this)},addToNull:function(){return this.coerceToNumber()},coerceToBoolean:function(){var e=this;return e.factory.createBoolean(!!e.value)},coerceToFloat:function(){return this},coerceToInteger:function(){var e=this;return e.factory.createInteger(e.value>>0)},coerceToKey:function(){return this.coerceToInteger()},coerceToNumber:function(){return this},coerceToString:function(){var e=this;return e.factory.createString(e.value+"")},divide:function(e){return e.divideByFloat(this)},divideByNonArray:function(e){var t,r=this,n=r.getNative();if(n===0){r.callStack.raiseError(i.E_WARNING,"Division by zero");return r.factory.createBoolean(false)}t=e.coerceToNumber();return r.factory.createFloat(t.getNative()/n)},formatAsString:function(){return this.value+""},getElement:function(){return this.factory.createNull()},isAnInstanceOf:function(e){return e.isTheClassOfFloat(this)},isEmpty:function(){return this.value===0},isEqualTo:function(e){return e.isEqualToFloat(this)},isEqualToFloat:function(e){var t=this;return t.factory.createBoolean(e.value===t.value)},isEqualToInteger:function(e){var t=this;return t.factory.createBoolean(e.coerceToFloat().value===t.value)},isEqualToNull:function(){var e=this;return e.factory.createBoolean(e.value===0)},isEqualToObject:function(e){return e.isEqualToFloat(this)},isEqualToString:function(e){var t=this;return t.factory.createBoolean(t.value===e.coerceToFloat().value)},isNumeric:function(){return true},multiply:function(e){return e.multiplyByFloat(this)},multiplyByNonArray:function(e){var t=e.coerceToNumber(),r=this,n=r.value;return r.factory.createFloat(t.getNative()*n)},onesComplement:function(){return this.factory.createInteger(~this.value)},shiftLeftBy:function(e){return this.coerceToInteger().shiftLeftBy(e)},shiftRightBy:function(e){return this.coerceToInteger().shiftRightBy(e)},subtract:function(e){var t=this,r=t.factory;e=e.coerceToNumber();return r.createFloat(t.getNative()-e.getNative())},toNegative:function(){var e=this;return e.factory.createFloat(-e.value)},toPositive:function(){var e=this;return e.factory.createInteger(+e.value)}});return s},{strict:true})},{"../Value":196,microdash:79,pauser:144,phpcommon:146,util:265}],202:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("util"),e("../Value")],function(e,t,r,n){var i=t.PHPError;function s(e,t,r){n.call(this,e,t,"integer",r)}r.inherits(s,n);e.extend(s.prototype,{add:function(e){return e.addToInteger(this)},addToBoolean:function(e){var t=this;return t.factory.createInteger(t.value+e.value)},addToInteger:function(e){var t=this;return t.factory.createInteger(t.value+e.value)},coerceToBoolean:function(){var e=this;return e.factory.createBoolean(!!e.value)},coerceToFloat:function(){var e=this;return e.factory.createFloat(e.value)},coerceToInteger:function(){return this},coerceToKey:function(){return this},coerceToNumber:function(){return this},coerceToString:function(){var e=this;return e.factory.createString(e.value.toString())},decrement:function(){var e=this;return e.factory.createInteger(e.value-1)},divide:function(e){return e.divideByInteger(this)},divideByFloat:function(e){var t,r=this,n=r.getNative();if(n===0){r.callStack.raiseError(i.E_WARNING,"Division by zero");return r.factory.createBoolean(false)}t=e.coerceToNumber();return r.factory.createFloat(t.getNative()/n)},divideByNonArray:function(e){var t,r=this,n=r.getNative(),s;if(n===0){r.callStack.raiseError(i.E_WARNING,"Division by zero");return r.factory.createBoolean(false)}t=e.coerceToNumber();s=t.getNative()/n;return Math.round(s)===s?r.factory.createInteger(s):r.factory.createFloat(s)},formatAsString:function(){return this.value+""},getElement:function(){return this.factory.createNull()},increment:function(){var e=this;return e.factory.createInteger(e.value+1)},isAnInstanceOf:function(e){return e.isTheClassOfInteger(this)},isEmpty:function(){return this.value===0},isEqualTo:function(e){return e.isEqualToInteger(this)},isEqualToInteger:function(e){var t=this;return t.factory.createBoolean(e.value===t.value)},isEqualToNull:function(){var e=this;return e.factory.createBoolean(e.value===0)},isEqualToObject:function(e){return e.isEqualToInteger(this)},isEqualToString:function(e){var t=this;return t.factory.createBoolean(t.getNative()===parseFloat(e.getNative()))},isNumeric:function(){return true},multiply:function(e){return e.multiplyByInteger(this)},multiplyByFloat:function(e){var t=e.coerceToNumber(),r=this,n=r.value;return r.factory.createFloat(t.getNative()*n)},multiplyByNonArray:function(e){var t=e.coerceToNumber(),r=this,n=r.value,i=t.getNative()*n;return Math.round(i)===i?r.factory.createInteger(i):r.factory.createFloat(i)},onesComplement:function(){return this.factory.createInteger(~this.value)},shiftLeftBy:function(e){var t=this,r=t.factory;return r.createInteger(t.getNative()<<e.coerceToInteger().getNative())},shiftRightBy:function(e){var t=this,r=t.factory;return r.createInteger(t.getNative()>>e.coerceToInteger().getNative())},subtract:function(e){var t=this,r=t.factory;e=e.coerceToNumber();if(e.getType()==="float"){return r.createFloat(t.coerceToFloat().getNative()-e.coerceToFloat().getNative())}return r.createInteger(t.getNative()-e.getNative())},subtractFromNull:function(){var e=this;return e.factory.createInteger(-e.getNative())},toNegative:function(){var e=this;return e.factory.createInteger(-e.value)},toPositive:function(){var e=this;return e.factory.createInteger(+e.value)}});return s},{strict:true})},{"../Value":196,microdash:79,pauser:144,phpcommon:146,util:265}],203:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("util"),e("../Value")],function(e,t,r,n){var i=t.PHPError;function s(e,t){n.call(this,e,t,"null",null)}r.inherits(s,n);e.extend(s.prototype,{add:function(e){return e.addToNull()},addToBoolean:function(e){return e.coerceToInteger()},coerceToArray:function(){return this.factory.createArray()},coerceToBoolean:function(){return this.factory.createBoolean(false)},coerceToKey:function(){return this.factory.createString("")},coerceToString:function(){return this.factory.createString("")},divide:function(e){return e.divideByNull(this)},divideByNonArray:function(){var e=this;e.callStack.raiseError(i.E_WARNING,"Division by zero");return e.factory.createBoolean(false)},formatAsString:function(){return"NULL"},getInstancePropertyByName:function(){var e=this;e.callStack.raiseError(i.E_NOTICE,"Trying to get property of non-object");return e.factory.createNull()},isAnInstanceOf:function(e){return e.isTheClassOfNull(this)},isEmpty:function(){return true},isEqualTo:function(e){return e.isEqualToNull(this)},isEqualToFloat:function(e){return e.isEqualToNull()},isEqualToNull:function(){return this.factory.createBoolean(true)},isEqualToObject:function(e){return e.isEqualToNull()},isEqualToString:function(e){return e.isEqualToNull()},isNumeric:function(){return false},isSet:function(){return false},multiply:function(e){return e.multiplyByNull(this)},multiplyByFloat:function(){return this.factory.createFloat(0)},multiplyByNonArray:function(e){var t=this;return e.coerceToNumber().getType()==="float"?t.factory.createFloat(0):t.factory.createInteger(0)},subtract:function(e){return e.subtractFromNull()}});return s},{strict:true})},{"../Value":196,microdash:79,pauser:144,phpcommon:146,util:265}],204:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("util"),e("../Closure"),e("../KeyValuePair"),e("../Reference/Null"),e("../Reference/ObjectElement"),e("../Reference/Property"),e("../Value")],function(e,t,r,n,i,s,a,o,u){var c={}.hasOwnProperty,l=function(t,r){var n=false,i=r.toLowerCase(),s,a=null;e.forOwn(t,function(e,t){if(t.toLowerCase()===i){n=true;a=e;return false}});if(!n){s=Object.getPrototypeOf(t);if(!s){return null}return l(s,r)}return{object:t,value:a}},f=t.PHPError,p=t.PHPFatalError;function h(e,t,r,n,i){u.call(this,e,t,"object",r);this.classObject=n;this.id=i;this.internalProperties={};this.pointer=0;this.properties={}}r.inherits(h,u);e.extend(h.prototype,{add:function(e){return e.addToObject(this)},addToArray:function(){var e=this;e.callStack.raiseError(f.E_NOTICE,"Object of class "+e.classObject.getName()+" could not be converted to int");throw new p(p.UNSUPPORTED_OPERAND_TYPES)},addToBoolean:function(e){var t=this;t.callStack.raiseError(f.E_NOTICE,"Object of class "+t.classObject.getName()+" could not be converted to int");return t.factory.createInteger((e.value?1:0)+1)},addToFloat:function(e){var t=this;t.callStack.raiseError(f.E_NOTICE,"Object of class "+t.classObject.getName()+" could not be converted to int");return t.factory.createFloat(e.value+1)},bindClosure:function(e,t){var r=this;if(!(r.value instanceof n)){throw new Error("bindClosure() :: Value is not a Closure")}return r.value.bind(e,t)},call:function(e){return this.callMethod("__invoke",e)},callMethod:function(e,t){var r=this;return r.classObject.callMethod(e,t,r)},callStaticMethod:function(e,t,r,n){return this.classObject.callMethod(e.getNative(),t,null,null,null,n)},classIs:function(e){return this.classObject.is(e)},clone:function(){throw new Error("Unimplemented")},coerceToArray:function(){var t=[],r=this,n=r.factory;e.forOwn(r.value,function(e,r){t.push(new i(n.coerce(r),n.coerce(e)))});return r.factory.createArray(t)},coerceToBoolean:function(){return this.factory.createBoolean(true)},coerceToInteger:function(){var e=this;e.callStack.raiseError(f.E_NOTICE,"Object of class "+e.classObject.getName()+" could not be converted to int");return e.factory.createInteger(1)},coerceToNativeError:function(){var e=this;if(!e.classObject.is("Exception")){throw new Error("Cannot coerce non-Exception instance to a native JS error")}return new Error("PHP "+e.getClassName()+": "+e.callMethod("getMessage",[]).getNative())},coerceToNumber:function(){return this.coerceToInteger()},coerceToKey:function(){this.callStack.raiseError(f.E_WARNING,"Illegal offset type")},coerceToObject:function(){return this},coerceToString:function(){return this.callMethod("__toString")},divide:function(e){return e.divideByObject(this)},divideByNonArray:function(e){this.coerceToInteger();return e.coerceToNumber()},formatAsString:function(){return"Object("+this.getClassName()+")"},getCallableName:function(){var e=this;if(e.classObject.is("Closure")){return e.value.funcName}return e.getClassName()+"::__invoke()"},getClass:function(){return this.classObject},getClassName:function(){return this.classObject.getName()},getConstantByName:function(e){return this.classObject.getConstantByName(e)},getElementByIndex:function(e){var t=this,r=t.getInstancePropertyNames();if(!c.call(r,e)){t.callStack.raiseError(f.E_NOTICE,"Undefined "+t.referToElement(e));return new s(t.factory)}return t.getInstancePropertyByName(r[e])},getElementByKey:function(e){var t=this;e=e.coerceToKey(t.callStack);if(!e){return new s(t.factory)}if(t.classObject.is("ArrayAccess")){return new a(t.factory,t,e)}throw new p(p.CANNOT_USE_WRONG_TYPE_AS,{actual:t.classObject.getName(),expected:"array"})},getForAssignment:function(){return this},getForThrow:function(){return this.value},getID:function(){return this.id},getProperty:function(e){var t=this,r=t.factory.createString(e);return t.getInstancePropertyByName(r).getValue()},getInstancePropertyByName:function(e){var t=e.coerceToKey(),r=t.getNative(),n=this;if(n.classObject.hasStaticPropertyByName(r)){n.callStack.raiseError(f.E_STRICT,"Accessing static property "+n.classObject.getName()+"::$"+r+" as non static")}if(!c.call(n.properties,r)){n.properties[r]=new o(n.factory,n.callStack,n,n.value,t)}return n.properties[r]},getInstancePropertyNames:function(){var t={},r=[],n=this;e.forOwn(n.value,function(e,r){t[r]=true});e.forOwn(n.properties,function(e,r){if(e.isDefined()){t[r]=true}});e.forOwn(t,function(e,t){r.push(n.factory.coerce(t))});return r},getInternalProperty:function(e){var t=this;if(!c.call(t.internalProperties,e)){throw new Error('Object of class "'+t.getClassName()+'" has no internal property "'+e+'"')}return t.internalProperties[e]},getKeyByIndex:function(e){var t=this,r=t.getInstancePropertyNames();return r[e]||null},getLength:function(){return this.getInstancePropertyNames().length},getNative:function(){var t,r=this;if(r.classObject.getName()==="JSObject"){return r.value}if(r.classObject.getName()==="stdClass"){t={};e.forOwn(r.value,function(e,r){t[r]=e.getNative()});return t}return r.classObject.unwrapInstanceForJS(r,r.value)},getObject:function(){return this.value},getPointer:function(){return this.pointer},getProxy:function(){var e=this;return e.classObject.proxyInstanceForJS(e)},getStaticPropertyByName:function(e){return this.classObject.getStaticPropertyByName(e.getNative())},instantiate:function(t){var r,n=this,i,s;if(n.getClassName()!=="JSObject"){return n.classObject.instantiate(t)}if(!e.isFunction(n.value)){throw new Error("Cannot create a new instance of a non-function JSObject")}i=Object.create(n.value.prototype);r=n.value.apply(i,e.map(t,function(e){return e.getNative()}));if(r){i=r}s=n.factory.coerceObject(i);return s},invokeClosure:function(e){return this.value.invoke(e)},isAnInstanceOf:function(e,t){return e.isTheClassOfObject(this,t)},isEmpty:function(){return false},isEqualTo:function(e){return e.isEqualToObject(this)},isEqualToArray:function(){return this.factory.createBoolean(false)},isEqualToFloat:function(e){return this.factory.createBoolean(e.getNative()===1)},isEqualToInteger:function(e){return this.factory.createBoolean(e.getNative()===1)},isEqualToNull:function(){return this.factory.createBoolean(false)},isEqualToObject:function(t){var r=true,n=this,i=n.factory;if(t.getLength()!==n.getLength()||t.getClassName()!==n.getClassName()){return i.createBoolean(false)}e.forOwn(t.value,function(e,t){if(!c.call(n.value,t)||i.coerce(e).isNotEqualTo(n.value[t].getValue()).getNative()){r=false;return false}});return i.createBoolean(r)},isEqualToString:function(){return this.factory.createBoolean(false)},isIdenticalTo:function(e){return e.isIdenticalToObject(this)},isIdenticalToArray:function(){return this.factory.createBoolean(false)},isIdenticalToObject:function(e){var t=this,r=t.factory;return r.createBoolean(e.value===t.value)},isMethodDefined:function(e){return this.classObject.getMethodSpec(e)!==null},isNumeric:function(){return false},isTheClassOfArray:function(){return this.factory.createBoolean(false)},isTheClassOfBoolean:function(){return this.factory.createBoolean(false)},isTheClassOfFloat:function(){return this.factory.createBoolean(false)},isTheClassOfInteger:function(){return this.factory.createBoolean(false)},isTheClassOfNull:function(){return this.factory.createBoolean(false)},isTheClassOfObject:function(e){var t=this;return t.factory.createBoolean(t.classObject===e.classObject||e.classObject.extends(t.classObject))},isTheClassOfString:function(){return this.factory.createBoolean(false)},multiply:function(e){return e.multiplyByObject(this)},multiplyByNonArray:function(e){this.coerceToInteger();return e.coerceToNumber()},pointToProperty:function(t){var r=0,n=t.getKey().getNative(),i=this;e.forOwn(i.value,function(e,t){if(t===n){i.setPointer(r)}r++})},referToElement:function(e){return"property: "+this.getClassName()+"::$"+e},reset:function(){var e=this;e.pointer=0;return e},setInternalProperty:function(e,t){this.internalProperties[e]=t},setPointer:function(e){this.pointer=e},setProperty:function(e,t){var r=this,n=r.factory.createString(e);r.getInstancePropertyByName(n).setValue(t)}});return h},{strict:true})},{"../Closure":157,"../KeyValuePair":170,"../Reference/Null":183,"../Reference/ObjectElement":184,"../Reference/Property":185,"../Value":196,microdash:79,pauser:144,phpcommon:146,util:265}],205:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("util"),e("../Reference/Null"),e("../Value")],function(e,t,r,n,i){var s=t.PHPError;function a(e,t,r){i.call(this,e,t,"string",r)}r.inherits(a,i);e.extend(a.prototype,{add:function(e){return e.addToString(this)},addToBoolean:function(e){return this.coerceToNumber().add(e)},call:function(e,t){return t.getGlobalNamespace().getFunction(this.value).apply(null,e)},callStaticMethod:function(e,t,r,n){var i=this,s=r.getGlobalNamespace().getClass(i.value);return s.callMethod(e.getNative(),t,null,null,null,n)},coerceToBoolean:function(){return this.factory.createBoolean(this.value!==""&&this.value!=="0")},coerceToFloat:function(){var e=this;return e.factory.createFloat(/^(\d|-[\d.])/.test(e.value)?parseFloat(e.value):0)},coerceToInteger:function(){var e=this;return e.factory.createInteger(/^(\d|-[\d.])/.test(e.value)?parseInt(e.value,10):0)},coerceToKey:function(){return this},coerceToNumber:function(){var e=this,t=/^-?\d*(\.|[eE][-+]?)\d/.test(e.value);if(t){return e.coerceToFloat()}else{return e.coerceToInteger()}},coerceToString:function(){return this},divide:function(e){return e.divideByString(this)},divideByFloat:function(e){var t,r=this,n=r.coerceToNumber().getNative();if(n===0){r.callStack.raiseError(s.E_WARNING,"Division by zero");return r.factory.createBoolean(false)}t=e.coerceToNumber();return r.factory.createFloat(t.getNative()/n)},divideByNonArray:function(e){var t,r=this,n=r.coerceToNumber(),i;if(n.getNative()===0){r.callStack.raiseError(s.E_WARNING,"Division by zero");return r.factory.createBoolean(false)}t=e.coerceToNumber();i=t.getNative()/n.getNative();return Math.round(i)!==i||n.getType()==="float"?r.factory.createFloat(i):r.factory.createInteger(i)},formatAsString:function(){return"'"+this.value+"'"},getCallableName:function(){return this.value.replace(/^\\/,"")},getConstantByName:function(e,t){var r=this,n=t.getGlobalNamespace().getClass(r.value);return n.getConstantByName(e)},getElementByKey:function(e){var t,r=this;e=e.coerceToKey(r.callStack);if(!e){return new n(r.factory)}t=e.getNative();return r.factory.createString(r.value.charAt(t))},getLength:function(){return this.value.length},getStaticPropertyByName:function(e,t){var r=this,n=t.getGlobalNamespace().getClass(r.value);return n.getStaticPropertyByName(e.getNative())},instantiate:function(e,t){var r=this,n=t.getGlobalNamespace().getClass(r.value);return n.instantiate(e)},isAnInstanceOf:function(e){return e.isTheClassOfString(this)},isEmpty:function(){var e=this;return e.value===""||e.value==="0"},isEqualTo:function(e){return e.isEqualToString(this)},isEqualToNull:function(){var e=this;return e.factory.createBoolean(e.getNative()==="")},isEqualToObject:function(){return this.factory.createBoolean(false)},isEqualToString:function(e){var t=this;return t.factory.createBoolean(t.value===e.value)},isNumeric:function(){return/(\d+(\.)?)?\d+([Ee][+-]\d+)?/.test(this.value)},isTheClassOfArray:function(){return this.factory.createBoolean(false)},isTheClassOfBoolean:function(){return this.factory.createBoolean(false)},isTheClassOfFloat:function(){return this.factory.createBoolean(false)},isTheClassOfInteger:function(){return this.factory.createBoolean(false)},isTheClassOfNull:function(){return this.factory.createBoolean(false)},isTheClassOfObject:function(e){var t=this;return t.factory.createBoolean(e.classIs(t.value))},isTheClassOfString:function(){return this.factory.createBoolean(false)},multiply:function(e){return e.multiplyByString(this)},multiplyByFloat:function(e){var t=e.coerceToNumber(),r=this,n=r.coerceToNumber().getNative();return r.factory.createFloat(t.getNative()*n)},multiplyByNonArray:function(e){var t=e.coerceToNumber(),r=this,n=r.coerceToNumber(),i=t.getNative()*n.getNative();return t.getType()==="float"||n.getType()==="float"?r.factory.createFloat(i):r.factory.createInteger(i)},onesComplement:function(){return this.factory.createString("?")}});return a},{strict:true})},{"../Reference/Null":183,"../Value":196,microdash:79,pauser:144,phpcommon:146,util:265}],206:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("./Value/Array"),e("./Value/BarewordString"),e("./Value/Boolean"),e("./Value/Exit"),e("./Value/Float"),e("./Value/Integer"),e("./KeyValuePair"),e("./Value/Null"),e("./Value/Object"),e("./PHPObject"),e("./Value/String"),e("./Value"),e("es6-weak-map")],function(e,t,r,n,i,s,a,o,u,c,l,f,p,h,m){function d(e,t){this.nextObjectID=1;this.callStack=t;this.globalNamespace=null;this.pausable=e;this.unwrappedObjectToValueMap=new m}e.extend(d.prototype,{coerce:function(e){if(e instanceof h){return e}return this.createFromNative(e)},coerceObject:function(e){var t=this;if(e instanceof h){return e}if(e===null||typeof e==="undefined"){return t.createNull()}if(typeof e!=="object"){throw new Error("Only objects, null or undefined may be coerced to an object")}return t.createObject(e,t.globalNamespace.getClass("JSObject"))},createArray:function(e){var t=this;return new r(t,t.callStack,e)},createBarewordString:function(e){var t=this;return new n(t,t.callStack,e)},createBoolean:function(e){var t=this;return new i(t,t.callStack,e)},createExit:function(e){var t=this;return new s(t,t.callStack,e)},createFloat:function(e){var t=this;return new a(t,t.callStack,e)},createFromNative:function(t){var r=this;if(t===null||typeof t==="undefined"){return r.createNull()}if(e.isString(t)){return r.createString(t)}if(e.isNumber(t)){return r.createInteger(t)}if(e.isBoolean(t)){return r.createBoolean(t)}if(e.isArray(t)){return r.createFromNativeArray(t)}return r.createFromNativeObject(t)},createFromNativeObject:function(t){var r=this,n=false,i=[];if(t instanceof f){return t.getObjectValue()}if(r.unwrappedObjectToValueMap.has(t)){return r.unwrappedObjectToValueMap.get(t)}if(Object.getPrototypeOf(t)===Object.prototype){e.forOwn(t,function(t){if(e.isFunction(t)){n=true;return false}});if(!n){e.forOwn(t,function(e,t){i.push(new u(r.coerce(t),r.coerce(e)))});return r.createArray(i)}}return r.createObject(t,r.globalNamespace.getClass("JSObject"))},createFromNativeArray:function(t){var r=this,n=[];e.each(t,function(e,t){n[t]=e});e.forOwn(t,function(e,i){if(!isFinite(i)||i>=t.length){n.push(new u(r.coerce(i),r.coerce(e)))}});return r.createArray(n)},createInteger:function(e){var t=this;return new o(t,t.callStack,e)},createNull:function(){var e=this;return new c(e,e.callStack)},createObject:function(e,t){var r=this;return new l(r,r.callStack,e,t,r.nextObjectID++)},createPHPObject:function(e){var t=this;return new f(t.pausable,t,e)},createStdClassObject:function(){var e=this;return e.globalNamespace.getClass("stdClass").instantiate()},createString:function(e){var t=this;return new p(t,t.callStack,e)},isValue:function(e){return e instanceof h},mapUnwrappedObjectToValue:function(e,t){this.unwrappedObjectToValueMap.set(e,t)},setGlobalNamespace:function(e){this.globalNamespace=e}});return d},{strict:true})},{"./KeyValuePair":170,"./PHPObject":179,"./Value":196,"./Value/Array":197,"./Value/BarewordString":198,"./Value/Boolean":199,"./Value/Exit":200,"./Value/Float":201,"./Value/Integer":202,"./Value/Null":203,"./Value/Object":204,"./Value/String":205,"es6-weak-map":62,microdash:79,pauser:144,phpcommon:146}],207:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash"),e("phpcommon"),e("./Reference/Variable")],function(e,t,r){var n=t.PHPError,i=t.PHPFatalError;function s(e,t,r){this.name=r;this.reference=null;this.callStack=e;this.value=null;this.valueFactory=t}e.extend(s.prototype,{concatWith:function(e){var t=this;t.setValue(t.getValue().concat(e))},decrementBy:function(e){var t=this;t.setValue(t.getValue().subtract(e))},getInstancePropertyByName:function(e){var t=this;if(t.name==="this"&&(t.value===null||t.value.getType()==="null")){throw new i(i.USED_THIS_OUTSIDE_OBJECT_CONTEXT)}return t.getValue().getInstancePropertyByName(e)},getName:function(){return this.name},getValue:function(){var e=this;if(e.value){return e.value}if(e.reference){return e.reference.getValue()}e.callStack.raiseError(n.E_NOTICE,"Undefined variable: "+e.name);return e.valueFactory.createNull()},getNative:function(){return this.getValue().getNative()},getReference:function(){return new r(this)},incrementBy:function(e){var t=this;t.setValue(t.getValue().add(e))},isDefined:function(){var e=this;return e.value||e.reference},isEmpty:function(){var e=this;return!e.isDefined()||e.getValue().isEmpty()},isSet:function(){var e=this;return e.isDefined()&&e.getValue().isSet()},postDecrement:function(){var e=this,t=e.value.decrement(),r=e.value;if(t){e.value=t}return r},preDecrement:function(){var e=this,t=e.value.decrement();if(t){e.value=t}return e.value},postIncrement:function(){var e=this,t=e.value.increment(),r=e.value;if(t){e.value=t}return r},preIncrement:function(){var e=this,t=e.value.increment();if(t){e.value=t}return e.value},setValue:function(e){var t=this;if(t.reference){t.reference.setValue(e)}else{t.value=e.getForAssignment()}return e},setReference:function(e){var t=this;t.reference=e;t.value=null;return t},toArray:function(){return this.value.toArray()},toBoolean:function(){return this.value.toBoolean()},toFloat:function(){return this.value.toFloat()},toInteger:function(){return this.value.toInteger()},unset:function(){var e=this;e.value=e.reference=null}});return s},{strict:true})},{"./Reference/Variable":189,microdash:79,pauser:144,phpcommon:146}],208:[function(e,t,r){"use strict";t.exports=e("pauser")([e("microdash")],function(e){function t(e,t,r){this.callStack=t;this.valueFactory=r;this.Variable=e}e.extend(t.prototype,{createVariable:function(e){var t=this;return new t.Variable(t.callStack,t.valueFactory,e)}});return t},{strict:true})},{microdash:79,pauser:144}],209:[function(e,t,r){"use strict";t.exports=e("pauser")([e("./constants/reserved"),e("./functions/spl"),e("./classes/stdClass"),e("./interfaces/ArrayAccess"),e("./classes/Closure"),e("./classes/Exception"),e("./classes/JSObject")],function(e,t,r,n,i,s,a){return{classes:{stdClass:r,ArrayAccess:n,Closure:i,Exception:s,JSObject:a},constantGroups:[e],functionGroups:[t]}},{strict:true})},{"./classes/Closure":210,"./classes/Exception":211,"./classes/JSObject":212,"./classes/stdClass":213,"./constants/reserved":214,"./functions/spl":215,"./interfaces/ArrayAccess":216,pauser:144}],210:[function(e,t,r){"use strict";var n=e("microdash"),i=e("phpcommon").PHPError,s=e("lie");t.exports=function(e){var t=e.callStack,r=function(e){e.isStatic=true;return e},a=e.globalNamespace,o=e.valueFactory;function u(){}n.extend(u.prototype,{bind:r(function(e,r,n){var s,u,c,l,f;if(!e){t.raiseError(i.E_WARNING,"Closure::bind() expects at least 2 parameters, 0 given");return o.createNull()}if(!r){t.raiseError(i.E_WARNING,"Closure::bind() expects at least 2 parameters, 1 given");return o.createNull()}s=e.getValue();if(s.getType()!=="object"||!s.classIs("Closure")){t.raiseError(i.E_WARNING,"Closure::bind() expects parameter 1 to be Closure, "+s.getType()+" given");return o.createNull()}c=r.getValue();if(c.getType()!=="object"&&c.getType()!=="null"){t.raiseError(i.E_WARNING,"Closure::bind() expects parameter 2 to be object, "+c.getType()+" given");return o.createNull()}u=n?n.getValue():null;if(u){if(u.getType()==="object"){f=u.getClassName()
|
||
}else{f=u.coerceToString().getNative()}}else{f=null}if(f&&f!=="static"){l=a.getClass(f)}else if(c.getType()!=="null"){l=c.getClass()}else{l=null}return o.createObject(s.bindClosure(c,l),a.getClass("Closure"))}),bindTo:function(e,r){var n=this,s,u,c,l;if(!e){t.raiseError(i.E_WARNING,"Closure::bindTo() expects at least 1 parameter, 0 given");return o.createNull()}u=e.getValue();if(u.getType()!=="object"&&u.getType()!=="null"){t.raiseError(i.E_WARNING,"Closure::bindTo() expects parameter 1 to be object, "+u.getType()+" given");return o.createNull()}s=r?r.getValue():null;if(s){if(s.getType()==="object"){l=s.getClassName()}else{l=s.coerceToString().getNative()}}else{l=null}if(l&&l!=="static"){c=a.getClass(l)}else if(u.getType()!=="null"){c=u.getClass()}else{c=null}return o.createObject(n.bindClosure(u,c),a.getClass("Closure"))},__invoke:function(){return this.invokeClosure([].slice.call(arguments))}});e.disableAutoCoercion();e.defineUnwrapper(function(){var t=this;return function(){var r=o.coerceObject(this),i=[];n.each(arguments,function(e){i.push(o.coerce(e))});if(e.pausable){return new s(function(n,s){e.pausable.call(t.getObject().invoke,[i,r],t.getObject()).then(function(e){n(e.getNative())},function(e){if(o.isValue(e)&&e.getType()==="object"){s(e.coerceToNativeError());return}s(e)})})}try{return t.getObject().invoke(i,r).getNative()}catch(e){if(o.isValue(e)&&e.getType()==="object"){throw e.coerceToNativeError()}throw e}}});return u}},{lie:78,microdash:79,phpcommon:146}],211:[function(e,t,r){"use strict";var n=e("microdash"),i=e("phpcommon"),s=e("util"),a=i.PHPError;t.exports=function(e){var t=e.callStack,r=e.valueFactory;function i(e){this.setInternalProperty("messageValue",e||r.createString(""))}i.shadowConstructor=function(){this.setInternalProperty("file",t.getLastFilePath());this.setInternalProperty("line",t.getLastLine());this.setInternalProperty("messageValue",r.createString(""));this.setInternalProperty("trace",t.getTrace())};s.inherits(i,a);n.extend(i.prototype,{getFile:function(){return r.createString(this.getInternalProperty("file"))},getLine:function(){return r.createInteger(this.getInternalProperty("line"))},getMessage:function(){return this.getInternalProperty("messageValue")},getTraceAsString:function(){var e=this.getInternalProperty("trace"),t=[];e.pop();n.each(e,function(e){var r=n.map(e.args,function(e){return e.formatAsString()});t.push("#"+e.index+" "+e.file+"("+e.line+"): "+e.func+"("+r.join(", ")+")")});t.push("#"+e.length+" {main}");return r.createString(t.join("\n"))}});e.disableAutoCoercion();return i}},{microdash:79,phpcommon:146,util:265}],212:[function(e,t,r){"use strict";var n=e("microdash"),i=e("phpcommon").PHPFatalError,s=e("lie");t.exports=function(e){var t=e.pausable,r=function(e){var r;if(!(e instanceof s)){return}if(!t){throw new Error("Cannot wait for promise returned from JS-land to resolve - async mode is not available")}r=t.createPause();e.then(function(e){r.resume(e)},function(e){r.throw(e)});r.now()};function a(){}n.extend(a.prototype,{__call:function(e,t){var s=this,a;if(!n.isFunction(s[e])){throw new i(i.UNDEFINED_METHOD,{className:"JSObject",methodName:e})}a=s[e].apply(s,t);r(a);return a},__invoke:function(){var e=this,t;if(!n.isFunction(e)){throw new Error("Attempted to invoke a non-function JS object")}t=e.apply(null,arguments);r(t);return t}});return a}},{lie:78,microdash:79,phpcommon:146}],213:[function(e,t,r){"use strict";t.exports=function(e){function t(){}e.disableAutoCoercion();return t}},{}],214:[function(e,t,r){"use strict";t.exports=function(){return{PHP_EOL:"\n"}}},{}],215:[function(e,t,r){"use strict";t.exports=e("pauser")([e("../../Variable")],function(e){return function(t){var r=t.classAutoloader,n=t.valueFactory;return{spl_autoload_register:function(t){var n=t instanceof e,i=n?t.getValue():t;r.appendAutoloadCallable(i)},spl_autoload_unregister:function(t){var i=t instanceof e,s=i?t.getValue():t;return n.createBoolean(r.removeAutoloadCallable(s))}}}},{strict:true})},{"../../Variable":207,pauser:144}],216:[function(e,t,r){"use strict";t.exports=function(){function e(){}return e}},{}],217:[function(e,t,r){"use strict";var n=e("./src/builtin/builtins"),i=e("phpcore/async");i.install(n);t.exports=i},{"./src/builtin/builtins":220,"phpcore/async":151}],218:[function(e,t,r){"use strict";t.exports={sapi:"cli",operatingSystem:{name:"Uniter",hostName:"localhost",releaseName:"1.0.0",versionInfo:"(Generic)",machineType:"JavaScript"},phpVersion:{major:5,minor:4,release:0},zendVersion:{major:2,minor:5,release:0}}},{}],219:[function(e,t,r){"use strict";t.exports=e("./async")},{"./async":217}],220:[function(e,t,r){"use strict";var n=e("./constants/array"),i=e("./functions/array"),s=e("./functions/math/baseConversion"),a=e("./functions/class"),o=e("./functions/misc/constant"),u=e("./interfaces/Countable"),c=e("./constants/filesystem"),l=e("./functions/filesystem"),f=e("./functions/functionHandling"),p=e("./classes/InvalidArgumentException"),h=e("./constants/pcre"),m=e("./constants/php"),d=e("./functions/string"),E=e("./functions/dateAndTime/time"),g=e("./functions/time"),y=e("./functions/variableHandling");t.exports={classes:{Countable:u,InvalidArgumentException:p},constantGroups:[n,c,h,m],functionGroups:[i,s,a,o,l,f,d,E,g,y]}},{"./classes/InvalidArgumentException":221,"./constants/array":222,"./constants/filesystem":223,"./constants/pcre":224,"./constants/php":225,"./functions/array":226,"./functions/class":227,"./functions/dateAndTime/time":228,"./functions/filesystem":229,"./functions/functionHandling":230,"./functions/math/baseConversion":232,"./functions/misc/constant":233,"./functions/string":234,"./functions/time":235,"./functions/variableHandling":236,"./interfaces/Countable":237}],221:[function(e,t,r){"use strict";t.exports=function(e){var t=e.globalNamespace;function r(){}r.superClass=t.getClass("Exception");return r}},{}],222:[function(e,t,r){"use strict";t.exports=function(){return{COUNT_NORMAL:0,COUNT_RECURSIVE:1}}},{}],223:[function(e,t,r){"use strict";t.exports=function(){return{DIRECTORY_SEPARATOR:"/",PATH_SEPARATOR:":"}}},{}],224:[function(e,t,r){"use strict";t.exports=function(){return{PREG_OFFSET_CAPTURE:256}}},{}],225:[function(e,t,r){"use strict";var n=e("../../../constants");t.exports=function(){return{PHP_OS:"Uniter",PHP_SAPI:n.sapi,PHP_VERSION:n.phpVersion.major+"."+n.phpVersion.minor+"."+n.phpVersion.release,PHP_VERSION_ID:n.phpVersion.major*1e4+n.phpVersion.minor*100+n.phpVersion.release}}},{"../../../constants":218}],226:[function(e,t,r){"use strict";var n=e("microdash"),i={}.hasOwnProperty,s=e("phpcommon"),a=0,o="implode",u=0,c=s.PHPError;t.exports=function(e){var t=e.callStack,r,s=e.valueFactory;r={array_key_exists:function(e,t){var r,n;n=e.getValue();r=t.getValue();return s.createBoolean(r.getElementByKey(n).isDefined())},array_merge:function(){var e={},r,a=[],o=0,u=false;if(arguments.length===0){t.raiseError(c.E_WARNING,"array_merge() expects at least 1 parameter, 0 given");return s.createNull()}n.each(arguments,function(r,l){var f=r.getValue();if(f.getType()!=="array"){t.raiseError(c.E_WARNING,"array_merge(): Argument #"+(l+1)+" is not an array");u=true;return false}n.each(f.getKeys(),function(t){var r,n;if(t.isNumeric()){n=o++;r=s.createInteger(n);a.push(n)}else{n=t.getNative();r=t;if(!i.call(e,n)){a.push(n)}}e[n]=f.getElementPairByKey(t,r)})});if(u){return s.createNull()}r=n.map(a,function(t){return e[t]});return s.createArray(r)},array_push:function(e){var t=e.getValue(),r,n,i;for(r=1;r<arguments.length;r++){n=arguments[r];i=n.getValue();t.push(i)}return s.createInteger(t.getLength())},count:function(e,t){var r=e.getValue(),n=t?t.getNative():0,i=r.getType();if(i==="object"&&r.classIs("Countable")){return r.callMethod("count")}if(n!==a){throw new Error("Unsupported mode for count(...) :: "+n)}return s.createInteger(i==="array"||i==="object"?r.getLength():1)},current:function(e){var t=e.getValue();if(t.getPointer()>=t.getLength()){return s.createBoolean(false)}return t.getCurrentElement().getValue()},implode:function(e,t){var r=e.getValue(),i=t.getValue(),a,o;if(r.getType()==="array"){a=r;r=i;i=a}o=i.getValues();n.each(o,function(e,t){o[t]=e.coerceToString().getNative()});return s.createString(o.join(r.getNative()))},join:function(e,t){return r[o](e,t)},krsort:function(e,r){var n,i;if(!e){t.raiseError(c.E_WARNING,"krsort() expects at least 1 parameter, 0 given");return s.createBoolean(false)}n=e.getValue();i=r?r.getValue().getNative():u;if(n.getType()!=="array"){t.raiseError(c.E_WARNING,"krsort() expects parameter 1 to be array, "+n.getType()+" given");return s.createBoolean(false)}if(i!==u){throw new Error("krsort() :: Only SORT_REGULAR ("+u+") is supported, "+i+" given")}n.sort(function(e,t){var r=e.getKey().getNative(),n=t.getKey().getNative();return String(n).localeCompare(r)});return s.createBoolean(true)},next:function(e){var r=e.getValue();if(r.getType()!=="array"){t.raiseError(c.E_WARNING,"next() expects parameter 1 to be array, "+r.getType()+" given");return s.createNull()}r.setPointer(r.getPointer()+1);if(r.getPointer()>=r.getLength()){return s.createBoolean(false)}return r.getCurrentElement().getValue()}};return r}},{microdash:79,phpcommon:146}],227:[function(e,t,r){"use strict";t.exports=function(e){var t=e.classAutoloader,r=e.globalNamespace,n=e.valueFactory;return{class_exists:function(e,i){var s=e.getNative(),a=i?i.getNative():true;if(!r.hasClass(s)&&a){t.autoloadClass(s)}return n.createBoolean(r.hasClass(s))}}}},{}],228:[function(e,t,r){"use strict";var n=e("phpcommon").PHPError;t.exports=function(e){var t=e.callStack,r=e.optionSet,i=e.valueFactory;function s(){var e=r.getOption("performance");if(!e){throw new Error("performance :: No `performance` option is configured")}return e}return{microtime:function(e){var r,a=e?e.getValue():null,o;if(a&&/^(array|object)$/.test(a.getType())){t.raiseError(n.E_WARNING,"microtime() expects parameter 1 to be boolean, "+a.getType()+" given");return i.createNull()}r=a?a.coerceToBoolean().getNative():false;o=s().getTimeInMicroseconds()/1e6;if(r){return i.createFloat(o)}return i.createString((o%1).toFixed(6)+" "+Math.floor(o))}}}},{phpcommon:146}],229:[function(e,t,r){"use strict";var n="include_path",i=e("phpcommon").PHPError;t.exports=function(e){var t=e.callStack,r=e.iniState,s=e.optionSet,a=e.valueFactory;function o(){var e=s.getOption("fileSystem");if(!e){throw new Error("filesystem :: No `fileSystem` option is configured")}return e}return{dirname:function(e){var t=e.getValue(),r=t.getNative();if(r&&r.indexOf("/")===-1){r="."}else{r=r.replace(/\/[^\/]+$/,"")}t=a.createString(r);return t},file_exists:function(e){var r,n;if(!e){t.raiseError(i.E_WARNING,"file_exists() expects exactly 1 parameter, 0 given");return a.createNull()}r=o();n=e.getValue().getNative();return a.createBoolean(r.isFile(n)||r.isDirectory(n))},get_include_path:function(){return a.createString(r.get(n))},is_file:function(e){var r,n;if(!e){t.raiseError(i.E_WARNING,"is_file() expects exactly 1 parameter, 0 given");return a.createNull()}r=o();n=e.getValue().getNative();return a.createBoolean(r.isFile(n))},set_include_path:function(e){var t=r.get(n);r.set(n,e.getValue().getNative());return a.createString(t)}}}},{phpcommon:146}],230:[function(e,t,r){"use strict";var n=e("microdash"),i=e("./functionHandling/CallbackValue"),s=e("phpcommon").PHPError;t.exports=function(e){var t=e.callStack,r=e.globalNamespace,a=e.valueFactory;return{call_user_func:function(e,o){var u=e.getValue(),c=null,l={},f=n.map([].slice.call(arguments,1),function(e,t){return new i(function(){c=t;throw l},function(){return e.getValue()})});try{return u.call(f,r)}catch(e){if(e!==l){throw e}t.raiseError(s.E_WARNING,"Parameter "+(c+1)+" to "+u.getCallableName(r)+"() expected to be a reference, value given");return a.createNull()}},call_user_func_array:function(e,t){var n=e.getValue(),i=t.getValue(),s=i.getValueReferences();return n.call(s,r)},function_exists:function(e){var t=e.getValue().getNative().replace(/^\\/,"");try{r.getFunction(t)}catch(e){return a.createBoolean(false)}return a.createBoolean(true)}}}},{"./functionHandling/CallbackValue":231,microdash:79,phpcommon:146}],231:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t){this.referenceCallback=e;this.valueCallback=t}n.extend(i.prototype,{getReference:function(){return this.referenceCallback()},getValue:function(){return this.valueCallback()}});t.exports=i},{microdash:79}],232:[function(e,t,r){"use strict";var n=e("phpcommon").PHPError;t.exports=function(e){var t=e.callStack,r=e.valueFactory;return{dechex:function(e){var i,s;if(arguments.length===0){t.raiseError(n.E_WARNING,"dechex() expects exactly 1 parameter, 0 given");return r.createNull()}i=e?e.getValue().getNative():null;s=i>>>0;return r.createString(s.toString(16))}}}},{phpcommon:146}],233:[function(e,t,r){"use strict";var n=e("phpcommon").PHPError;t.exports=function(e){var t=e.callStack,r=e.globalNamespace,i=e.valueFactory;return{define:function(e,s,a){var o,u,c,l;if(arguments.length===0){t.raiseError(n.E_WARNING,"define() expects at least 2 parameters, 0 given");return i.createNull()}u=e.getValue().getNative();a=a?a.getValue().getNative():false;s=s.getValue();u=u.replace(/^\//,"");o=u.match(/^(.*?)\\([^\\]+)$/);if(o){l=o[1];u=o[2];c=r.getDescendant(l)}else{c=r}c.defineConstant(u,s,{caseInsensitive:a})},defined:function(e){var s,a,o,u;if(arguments.length===0){t.raiseError(n.E_WARNING,"defined() expects exactly 1 parameter, 0 given");return i.createNull()}a=e.getValue().getNative();a=a.replace(/^\//,"");s=a.match(/^(.*?)\\([^\\]+)$/);if(s){u=s[1];a=s[2];o=r.getDescendant(u)}else{o=r}return i.createBoolean(o.hasConstant(a))}}}},{phpcommon:146}],234:[function(e,t,r){"use strict";var n=e("microdash"),i=e("phpcommon"),s=i.PHPError;t.exports=function(e){var t=e.callStack,r=e.valueFactory;return{strlen:function(e){var n=e.getValue();if(n.getType()==="array"||n.getType()==="object"){t.raiseError(s.E_WARNING,"strlen() expects parameter 1 to be string, "+n.getType()+" given");return r.createNull()}return r.createInteger(n.getLength())},str_replace:function(e,i,a,o){function u(e){var t=e.getValue();return t.getNative()}var c=0,l,f,p,h=o?function e(t,r,n){return n.replace(t,function(){c++;return r})}:function e(t,r,n){return n.replace(t,r)};if(arguments.length<3){t.raiseError(s.E_WARNING,"str_replace() expects at least 3 parameters, "+arguments.length+" given");return r.createNull()}l=u(e);f=u(i);p=u(a);function m(e){return new RegExp(n.escapeRegExp(e),"g")}if(n.isArray(l)){if(n.isArray(f)){n.each(l,function(e,t){p=h(m(e),t<f.length?f[t]:"",p)})}else{n.each(l,function(e){p=h(m(e),f,p)})}}else{p=h(m(l),f,p)}if(o){o.setValue(r.createInteger(c))}return r.createString(p)},strpos:function(e,t,n){var i=e.getNative(),s=t.getNative(),a=n?n.getNative():0,o;if(a<0){a=i.length+a}o=i.substr(a).indexOf(s);if(o===-1){return r.createBoolean(false)}return r.createInteger(a+o)},strrpos:function(e,t,n){var i=e.getValue().getNative(),s=t.getValue().getNative(),a=n?n.getValue().getNative():0,o;if(a<0){a=i.length+a}o=i.substr(a).lastIndexOf(s);if(o===-1){return r.createBoolean(false)}return r.createInteger(a+o)},strtr:function(e){var t,i,s,a,o,u,c=e.getValue().getNative();if(arguments.length===2){a=arguments[1].getValue();o=a.getKeys();u=a.getValues();n.each(o,function(e,t){var r=e.coerceToString().getNative(),i=u[t].coerceToString().getNative();c=c.replace(new RegExp(n.escapeRegExp(r),"g"),i)})}else{t=arguments[1].getValue().getNative();i=arguments[2].getValue().getNative();for(s=0;s<t.length&&s<i.length;s++){c=c.replace(new RegExp(n.escapeRegExp(t.charAt(s)),"g"),i.charAt(s))}}return r.createString(c)},substr:function(e,t,n){var i=e.getValue().getNative(),s=t.getValue().getNative(),a=n?n.getValue().getNative():i.length,o;if(s<0){s=i.length+s}if(a<0){a=i.length-s+a}o=i.substr(s,a);return r.createString(o)}}}},{microdash:79,phpcommon:146}],235:[function(e,t,r){"use strict";var n=e("phpcommon"),i=n.PHPError;t.exports=function(e){var t=e.callStack,r=e.pausable;return{usleep:function(e){var n=e.getValue(),s;if(n.getType()!=="integer"&&n.getType()!=="float"){t.raiseError(i.E_WARNING,"usleep() expects parameter 1 to be integer or float, "+n.getType()+" given");return}s=r.createPause();setTimeout(function(){s.resume()},n.getNative()/1e3);s.now()}}}},{phpcommon:146}],236:[function(e,t,r){"use strict";var n=e("microdash"),i={}.hasOwnProperty,s=e("phpcommon"),a=2e4,o=5,u=2048,c=s.PHPError;t.exports=function(e){var t=e.callStack,r=e.stdout,s=e.valueFactory;function l(e,r){return function(n){if(!n){t.raiseError(c.E_WARNING,e+"() expects exactly 1 parameter, 0 given");return s.createBoolean(false)}return s.createBoolean(n.getValue().getType()===r)}}return{is_array:l("is_array","array"),is_bool:l("is_bool","boolean"),is_float:l("is_float","float"),var_dump:function(e){var s=[],l=0,f,p={};if(!e){t.raiseError(c.E_WARNING,"var_dump() expects at least 1 parameter, 0 given");return}f=e.getValue();function h(e,t,r){var c=new Array(t).join(" "),f,m,d,E=new Array(t+1).join(" "),g=c;l++;if(t>o||l>a){g+="*RECURSION*";return g+"\n"}if(e.getType()==="array"){if(s.indexOf(e.getValue())>-1){g+="*RECURSION*";return g+"\n"}if(r){s.push(e.getValue());g+="&"}g+="array("+e.getLength()+") {\n";n.each(e.getKeys(),function(r){var n=e.getElementByKey(r),i;i=h(n.getValue(),t+1,n.isReference());g+=E+"["+JSON.stringify(r.getNative())+"]=>\n"+i});g+=c+"}"}else if(e.getType()==="object"){if(i.call(p,e.getID())){g+="*RECURSION*";return g+"\n"}if(r){g+="&"}f=e.getInstancePropertyNames();g+="object("+e.getClassName()+")#"+e.getID()+" ("+f.length+") {\n";p[e.getID()]=true;n.each(f,function(r){var n=e.getInstancePropertyByName(r);g+=E+"["+JSON.stringify(r.getNative())+"]=>\n"+h(n.getValue(),t+1,n.isReference())});g+=c+"}"}else{if(r){g+="&"}switch(e.getType()){case"boolean":g+="bool("+(e.getNative()?"true":"false")+")";break;case"float":g+="float("+e.getNative()+")";break;case"integer":g+="int("+e.getNative()+")";break;case"null":g+="NULL";break;case"string":d=e.getNative();m=d.length;if(m>u){d=d.substr(0,u)+"..."}g+="string("+m+') "'+d+'"';break}}return g+"\n"}r.write(h(f,1))}}}},{microdash:79,phpcommon:146}],237:[function(e,t,r){"use strict";t.exports=function(){function e(){}return e}},{}],238:[function(e,t,r){"use strict";var n=e("parsing"),i=e("./src/grammar"),s=e("./src/PHPToAST");t.exports=new s(n,i)},{"./src/PHPToAST":240,"./src/grammar":242,parsing:93}],239:[function(e,t,r){"use strict";var n=e("microdash"),i=e("phpcommon").PHPParseError;function s(e,t){this.state=t;this.stderr=e}n.extend(s.prototype,{handle:function(e){var t=this,r=e.getText(),n,s;if(e.unexpectedEndOfInput()){s="$end"}else{s="'"+r.substr(e.getFurthestMatchEnd(),1)+"'"}n=new i(i.SYNTAX_UNEXPECTED,{file:t.state.getPath(),line:e.getLineNumber(),what:s});if(t.state.isMainProgram()&&t.stderr){t.stderr.write(n.message)}throw n}});t.exports=s},{microdash:79,phpcommon:146}],240:[function(e,t,r){"use strict";var n=e("microdash");function i(e,t){this.parsing=e;this.phpGrammarSpec=t}n.extend(i.prototype,{create:function(e,t){var r=this,i=n.extend({},t||{});return r.parsing.create(r.phpGrammarSpec,e,i)}});t.exports=i},{microdash:79}],241:[function(e,t,r){"use strict";var n=e("microdash");function i(){this.path=null}n.extend(i.prototype,{getPath:function(){var e=this.path;return e===null?"(program)":e},isMainProgram:function(){return this.path===null},setPath:function(e){this.path=e}});t.exports=i},{microdash:79}],242:[function(e,t,r){"use strict";var n=e("microdash"),i=[{pattern:/.*/g,replacement:function(e){return e.toLowerCase()}}],s=[{pattern:/.*/g,replacement:function(e){return e.toUpperCase()}}],a=[{pattern:/\\([\$efnrtv\\"])/g,replacement:function(e,t){return{e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v","\\":"\\",$:"$",'"':'"'}[t]}}],o=[{pattern:/\\([\\'])/g,replacement:"$1"}],u=function(e,t,r){var n,i,s=e;for(n=0,i=t.length;n<i;n++){s=r(s,t[n])}return s},c=function(e,t){return u(e,t,function(e,t){var r={name:"N_EXPRESSION",left:e,right:[{operator:t.operator,operand:t.operand}]};if(e.offset){r.offset={length:t.offset.offset-e.offset.offset+t.offset.length,line:e.offset.line,column:e.offset.column,offset:e.offset.offset}}return r})},l=function(e,t){var r={name:"N_TERNARY",condition:e},i=[];function s(t){r.alternate=t;if(e.offset){r.offset={length:t.offset.offset-r.condition.offset.offset+t.offset.length,line:r.condition.offset.line,column:r.condition.offset.column,offset:r.condition.offset.offset}}}n.each(t,function(e){var t;if(e.consequent){if(r.consequent&&r.alternate){t={name:"N_TERNARY",condition:r,consequent:e.consequent};r=t;i.push(r)}else if(r.consequent&&!r.alternate){t={name:"N_TERNARY",condition:r.consequent,consequent:e.consequent};r.consequent=t;i.push(r);r=t}else{r.consequent=e.consequent;i.push(r)}}else if(e.alternate){s(e.alternate);r=i.pop()}else if(e.shorthand){r.consequent=null;s(e.shorthand)}});return r},f=e("./ErrorHandler"),p=e("./State");t.exports={ErrorHandler:f,State:p,ignore:"N_IGNORE",offsets:"offset",rules:{T_ABSTRACT:/abstract\b/i,T_AND_EQUAL:/&=/i,T_ARRAY:/array\b/i,T_ARRAY_CAST:/\(\s*array\s*\)/i,T_AS:/as\b/i,T_BAD_CHARACTER:/(?![\u0009\u000A\u000D])[\u0000-\u001F]/,T_BINARY_CAST:/\(\s*binary\s*\)/i,T_BOOLEAN_AND:/&&/i,T_BOOLEAN_OR:/\|\|/,T_BOOL_CAST:/\(\s*bool(ean)?\s*\)/i,T_BREAK:/break\b/i,T_CALLABLE:/callable\b/i,T_CASE:/case\b/i,T_CATCH:/catch\b/i,T_CLASS:/class\b/i,T_CLASS_C:/__CLASS__/i,T_CLONE:/clone/i,T_CLOSE_TAG:/[?%]>\n?/,T_COMMENT:/(?:\/\/|#)(.*?)[\r\n]+|\/\*(?!\*)([\s\S]*?)\*\//,T_CONCAT_EQUAL:/\.=/,T_CONST:/const\b/i,T_CONSTANT_ENCAPSED_STRING:{oneOf:[{what:/'((?:[^\\']|\\[\s\S])*)'/,captureIndex:1,replace:o},{what:/"((?:(?!\$\{?[\$a-z0-9_]+)(?:[^\\"]|\\[\s\S]))*)"/,captureIndex:1,replace:a}]},T_CONTINUE:/continue\b/i,T_CURLY_OPEN:/\{(?=\$)/,T_DEC:/--/i,T_DECLARE:/declare\b/i,T_DEFAULT:/default\b/i,T_DIR:/__DIR__\b/i,T_DIV_EQUAL:/\/=/,T_DNUMBER:/\d+\.\d+|\d\.\d+e\d+|\d+e[+-]?\d+/i,T_DOC_COMMENT:/\/\*\*([\s\S]*?)\*\//,T_DO:/do\b/i,T_DOLLAR_OPEN_CURLY_BRACES:/\$\{/,T_DOUBLE_ARROW:/=>/,T_DOUBLE_CAST:/\(\s*(real|double|float)\s*\)/i,T_DOUBLE_COLON:/::/i,T_ECHO:/echo\b/i,T_ELSE:/else\b/i,T_ELSEIF:/elseif\b/i,T_EMPTY:/empty\b/i,T_ENCAPSED_AND_WHITESPACE:/(?:[^"\${]|\\["\${])+/,T_ENDDECLARE:/enddeclare\b/i,T_ENDFOR:/endfor\b/i,T_ENDFOREACH:/endforeach\b/i,T_ENDIF:/endif\b/i,T_ENDSWITCH:/endswitch\b/i,T_ENDWHILE:/endwhile\b/i,T_END_HEREDOC:/(?!)/,T_EVAL:/eval\b/i,T_EXIT:/(?:exit|die)\b/i,T_EXTENDS:/extends\b/i,T_FILE:/__FILE__\b/i,T_FINAL:/final\b/i,T_FINALLY:/finally\b/i,T_FOR:/for\b/i,T_FOREACH:/foreach\b/i,T_FUNCTION:/function\b/i,T_FUNC_C:/__FUNCTION__\b/i,T_GLOBAL:/global\b/i,T_GOTO:/goto\b/i,T_HALT_COMPILER:/__halt_compiler(?=\(\)|\s|;)/,T_IF:/if\b/i,T_IMPLEMENTS:/implements\b/i,T_INC:/\+\+/,T_INCLUDE:/include\b/i,T_INCLUDE_ONCE:/include_once\b/i,T_INLINE_HTML:/(?:[^<]|<[^?%]|<\?(?!php)[\s\S]{3})+/,T_INSTANCEOF:/instanceof\b/i,T_INSTEADOF:/insteadof\b/i,T_INT_CAST:/\(\s*int(eger)?\s*\)/i,T_INTERFACE:/interface\b/i,T_ISSET:/isset\b/i,T_IS_EQUAL:/==(?!=)/i,T_IS_GREATER_OR_EQUAL:/>=/,T_IS_IDENTICAL:/===/i,T_IS_NOT_EQUAL:/!=|<>/,T_IS_NOT_IDENTICAL:/!==/,T_IS_SMALLER_OR_EQUAL:/<=/,T_LINE:/__LINE__\b/i,T_LIST:/list\b/i,T_LNUMBER:/0x[0-9a-f]+|\d+/i,T_LOGICAL_AND:/and\b/i,T_LOGICAL_OR:/or\b/i,T_LOGICAL_XOR:/xor\b/i,T_METHOD_C:/__METHOD__\b/i,T_MINUS_EQUAL:/-=/i,T_ML_COMMENT:/(?!)/,T_MOD_EQUAL:/%=/i,T_MUL_EQUAL:/\*=/,T_NAMESPACE:/namespace\b/i,T_NS_C:/__NAMESPACE__\b/i,T_NS_SEPARATOR:/\\/,T_NEW:/new\b/i,T_NUM_STRING:/\d+/,T_OBJECT_CAST:/\(\s*object\s*\)/i,T_OBJECT_OPERATOR:/->/,T_OLD_FUNCTION:/old_function\b/i,T_OPEN_TAG:/(?:<\?(php)?|<%)\s?(?!=)/,T_OPEN_TAG_WITH_ECHO:/<[?%]=/,T_OR_EQUAL:/\|=/,T_PAAMAYIM_NEKUDOTAYIM:/::/i,T_PLUS_EQUAL:/\+=/,T_PRINT:/print\b/i,T_PRIVATE:/private\b/i,T_PUBLIC:/public\b/i,T_PROTECTED:/protected\b/i,T_REQUIRE:/require\b/i,T_REQUIRE_ONCE:/require_once\b/i,T_RETURN:/return\b/i,T_SL:/<</,T_SL_EQUAL:/<<=/,T_SR:/>>/,T_SR_EQUAL:/>>=/,T_START_HEREDOC:/<<<(["']?)([\$a-z0-9_]+)\1\n?/,T_STATIC:/static\b/i,T_STRING:/(?![\$0-9])[\$a-z0-9_]+/i,T_STRING_CAST:/\(\s*string\s*\)/i,T_STRING_VARNAME:/(?![\$0-9])[\$a-z0-9_]+/,T_SWITCH:/switch\b/i,T_THROW:/throw\b/i,T_TRAIT:/trait\b/i,T_TRAIT_C:/__TRAIT__\b/i,T_TRY:/try\b/i,T_UNSET:/unset\b/i,T_UNSET_CAST:/\(\s*unset\s*\)/i,T_USE:/use\b/i,T_VAR:/var\b/i,T_VARIABLE:{what:/\$([a-z0-9_]+)/i,captureIndex:1},T_WHILE:/while\b/i,T_WHITESPACE:/[\r\n\t ]+/,T_XOR_EQUAL:/\^=/i,T_YIELD:/yield\b/i,N_ABSTRACT_METHOD_DEFINITION:{components:[{optionally:{name:"visibility",rule:"N_VISIBILITY"}},{optionally:{name:"modifier",rule:"T_FINAL"}},{optionally:{name:"visibility",rule:"N_VISIBILITY"}},"T_ABSTRACT",{optionally:{name:"visibility",rule:"N_VISIBILITY"}},{optionally:{name:"modifier",rule:"T_FINAL"}},{optionally:{name:"visibility",rule:"N_VISIBILITY"}},"T_FUNCTION",{name:"func",what:"N_STRING"},/\(/,{name:"args",zeroOrMoreOf:["N_ARGUMENT",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/,"N_END_STATEMENT"],processor:function(e){if(!e.visibility){e.visibility="public"}return e}},N_ABSTRACT_STATIC_METHOD_DEFINITION:{components:[{optionally:{name:"visibility",rule:"N_VISIBILITY"}},{optionally:{name:"modifier",rule:"T_FINAL"}},{optionally:{name:"visibility",rule:"N_VISIBILITY"}},"T_ABSTRACT",{optionally:{name:"visibility",rule:"N_VISIBILITY"}},{optionally:{name:"modifier",rule:"T_FINAL"}},{optionally:{name:"visibility",rule:"N_VISIBILITY"}},"T_STATIC",{optionally:{name:"visibility",rule:"N_VISIBILITY"}},{optionally:{name:"modifier",rule:"T_FINAL"}},{optionally:{name:"visibility",rule:"N_VISIBILITY"}},"T_FUNCTION",{name:"method",what:"N_STRING"},/\(/,{name:"args",zeroOrMoreOf:["N_ARGUMENT",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/,"N_END_STATEMENT"],processor:function(e){if(!e.visibility){e.visibility="public"}return e}},N_ARGUMENT:{components:{oneOf:[[{name:"variable",rule:"N_ARGUMENT_VARIABLE"},/=/,{name:"value",oneOf:["N_CLASS_CONSTANT","N_TERM"]}],[{name:"variable",rule:"N_ARGUMENT_VARIABLE"}],[{name:"type",oneOf:["N_NAMESPACE","T_STRING"]},{name:"variable",rule:"N_ARGUMENT_VARIABLE"},/=/,{name:"value",oneOf:["N_CLASS_CONSTANT","N_TERM"]}],[{name:"type",oneOf:["N_NAMESPACE","T_STRING"]},{name:"variable",rule:"N_ARGUMENT_VARIABLE"}]]}},N_ARGUMENT_VARIABLE:{components:{oneOf:["N_REFERENCE_VARIABLE","N_VARIABLE"]}},N_REFERENCE_VARIABLE:{components:[/&/,"N_VARIABLE"],processor:function(e){return{name:"N_REFERENCE",operand:e}}},N_ARRAY_INDEX:{components:"N_EXPRESSION_LEVEL_2_A"},N_ARRAY_LITERAL:{components:{oneOf:["N_LONG_ARRAY_LITERAL","N_SHORT_ARRAY_LITERAL"]}},N_LONG_ARRAY_LITERAL:{captureAs:"N_ARRAY_LITERAL",components:["T_ARRAY",/\(/,{name:"elements",zeroOrMoreOf:[{oneOf:["N_KEY_VALUE_PAIR","N_EXPRESSION"]},{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/]},N_SHORT_ARRAY_LITERAL:{captureAs:"N_ARRAY_LITERAL",components:[/\[/,{name:"elements",zeroOrMoreOf:[{oneOf:["N_KEY_VALUE_PAIR","N_EXPRESSION"]},{what:/(,|(?=\]))()/,captureIndex:2}]},/\]/]},N_BINARY_LITERAL:{components:[/b/,{name:"string",what:"N_STRING_LITERAL"}],processor:function(e){e.name="N_BINARY_LITERAL";e.string=e.string.string;return e}},N_BOOLEAN:{components:{name:"bool",what:/true|false/i}},N_BREAK_STATEMENT:{components:["T_BREAK",{name:"levels",oneOf:["N_INTEGER","N_JUMP_ONE_LEVEL"]},"N_END_STATEMENT"]},N_CASE:{components:["T_CASE",{name:"expression",what:"N_EXPRESSION"},/:/,{name:"body",zeroOrMoreOf:"N_STATEMENT"}]},N_CLASS_STATEMENT:{components:[{optionally:{name:"type",oneOf:["T_ABSTRACT","T_FINAL"]}},"T_CLASS",{name:"className",rule:"T_STRING"},{optionally:["T_EXTENDS",{name:"extend",oneOf:["N_NAMESPACE","T_STRING"]}]},{optionally:["T_IMPLEMENTS",{name:"implement",zeroOrMoreOf:[{oneOf:["N_NAMESPACE","T_STRING"]},{what:/(,|(?=\{))()/,captureIndex:2}]}]},/\{/,{name:"members",zeroOrMoreOf:{oneOf:["N_INSTANCE_PROPERTY_DEFINITION","N_STATIC_PROPERTY_DEFINITION","N_METHOD_DEFINITION","N_STATIC_METHOD_DEFINITION","N_ABSTRACT_METHOD_DEFINITION","N_ABSTRACT_STATIC_METHOD_DEFINITION","N_CONSTANT_DEFINITION"]}},/\}/],processor:function(e){if(e.type){e.type=e.type.toLowerCase()}return e}},N_CLOSURE:{components:["T_FUNCTION",/\(/,{name:"args",zeroOrMoreOf:["N_ARGUMENT",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/,{oneOf:[["T_USE",/\(/,{name:"bindings",zeroOrMoreOf:["N_ARGUMENT_VARIABLE",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/],{name:"bindings",zeroOrMoreOf:{what:/(?!)/}}]},{name:"body",what:"N_STATEMENT"}]},N_COMMA_EXPRESSION:{components:{optionally:[{name:"expressions",zeroOrMoreOf:["N_EXPRESSION",{what:/(,|(?=[;\)]))()/,captureIndex:2}]},/(?=[;\)])/]}},N_COMPOUND_STATEMENT:{components:[/\{/,{name:"statements",zeroOrMoreOf:"N_STATEMENT"},/\}/]},N_CONSTANT_DEFINITION:{components:["T_CONST",{name:"constant",what:"T_STRING"},/=/,{name:"value",oneOf:["N_CLASS_CONSTANT","N_TERM"]},"N_END_STATEMENT"]},N_CONTINUE_STATEMENT:{components:["T_CONTINUE",{name:"levels",oneOf:["N_INTEGER","N_JUMP_ONE_LEVEL"]},"N_END_STATEMENT"]},N_DEFAULT_CASE:{components:["T_DEFAULT",/:/,{name:"body",zeroOrMoreOf:"N_STATEMENT"}]},N_ECHO_STATEMENT:{components:["T_ECHO",{name:"expressions",oneOrMoreOf:["N_EXPRESSION",{what:/,|(?=;|[?%]>\n?)/}]},"N_END_STATEMENT"]},N_EMPTY_STATEMENT:{components:/;/},N_END_STATEMENT:{components:{oneOf:[/;/,/(?=[?%]>\n?)/]}},N_EXIT:{components:{oneOf:["N_EXIT_WITH_STATUS","N_EXIT_WITH_MESSAGE","N_EXIT_BARE"]}},N_EXIT_WITH_STATUS:{captureAs:"N_EXIT",components:["T_EXIT",/\(/,{name:"status",rule:"N_INTEGER"},/\)/]},N_EXIT_WITH_MESSAGE:{captureAs:"N_EXIT",components:["T_EXIT",/\(/,{name:"message",rule:"N_EXPRESSION"},/\)/]},N_EXIT_BARE:{captureAs:"N_EXIT",components:["T_EXIT",{optionally:[/\(/,/\)/]}],processor:function(){return{name:"N_EXIT"}}},N_EXPRESSION:{components:{oneOf:["N_EXPRESSION_LEVEL_21"]}},N_EXPRESSION_LEVEL_0:{components:[{oneOf:["N_TERM",[/\(/,"N_EXPRESSION",/\)/]]}]},N_NEW_EXPRESSION_SELF:{captureAs:"N_SELF",components:[{allowMerge:false,what:/self\b/}]},N_NEW_EXPRESSION_STATIC:{captureAs:"N_STATIC",components:[{allowMerge:false,what:/static\b/}]},N_NEW_EXPRESSION_DYNAMIC_CLASS:{components:[{name:"expression",oneOf:["N_NEW_EXPRESSION_SELF","N_NEW_EXPRESSION_STATIC","N_EXPRESSION_LEVEL_0","N_NAMESPACED_REFERENCE"]},{name:"member",zeroOrMoreOf:{oneOf:[{name:"array_index",oneOf:["N_EMPTY_ARRAY_INDEX",{name:"indices",oneOrMoreOf:[/\[/,{name:"index",what:"N_EXPRESSION"},/\]/]}]},{name:"object_property",what:{name:"properties",oneOrMoreOf:["T_OBJECT_OPERATOR",{name:"property",what:"N_INSTANCE_MEMBER"}]}},{name:"static_property",what:["T_DOUBLE_COLON",{name:"property",what:"N_STATIC_MEMBER"}]}]}}],processor:function(e){var t;if(!e||!e.expression){return e}t=e.expression;n.each(e.member,function(e){if(e.array_index){t={name:"N_ARRAY_INDEX",array:t,indices:e.array_index.indices}}else if(e.object_property){t={name:"N_OBJECT_PROPERTY",object:t,properties:e.object_property.properties}}else if(e.static_property){t={name:"N_STATIC_PROPERTY",className:t,property:e.static_property.property}}if(e.offset){t.offset=e.offset}});return t}},N_EXPRESSION_LEVEL_1_A:{captureAs:"N_NEW_EXPRESSION",components:{oneOf:[["T_NEW",{name:"className",rule:"N_NEW_EXPRESSION_DYNAMIC_CLASS"},{optionally:[/\(/,{name:"args",zeroOrMoreOf:["N_EXPRESSION",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/]}],{name:"next",what:"N_EXPRESSION_LEVEL_0"}]},ifNoMatch:{component:"className",capture:"next"},processor:function(e){if(e.className&&!e.args){e.args=[]}return e}},N_DO_WHILE_STATEMENT:{components:["T_DO",{name:"body",what:"N_STATEMENT"},"T_WHILE",/\(/,{name:"condition",what:"N_EXPRESSION"},/\)/,"N_END_STATEMENT"]},N_EXPRESSION_LEVEL_1_B:{captureAs:"N_UNARY_EXPRESSION",components:[{name:"operator",optionally:"T_CLONE"},{name:"operand",what:"N_EXPRESSION_LEVEL_1_A"}],ifNoMatch:{component:"operator",capture:"operand"},options:{prefix:true}},N_EXPRESSION_LEVEL_2_A:{captureAs:"N_CLASS_CONSTANT",components:{oneOf:[[{name:"className",oneOf:["N_NAMESPACED_REFERENCE","N_EXPRESSION_LEVEL_1_B"]},"T_DOUBLE_COLON",{name:"constant",what:["T_STRING",/(?!\()/]}],{name:"next",what:"N_EXPRESSION_LEVEL_1_B"}]},ifNoMatch:{
|
||
component:"constant",capture:"next"}},N_CLASS_CONSTANT:"N_EXPRESSION_LEVEL_2_A",N_EMPTY_ARRAY_INDEX:{captureAs:"N_ARRAY_INDEX",components:{name:"indices",what:[/\[/,/\]/]},options:{indices:true}},N_EXPRESSION_LEVEL_2_B:{components:[{name:"expression",oneOf:["N_EXPRESSION_LEVEL_2_A","N_NAMESPACED_REFERENCE"]},{name:"member",zeroOrMoreOf:{oneOf:[{name:"array_index",oneOf:["N_EMPTY_ARRAY_INDEX",{name:"indices",oneOrMoreOf:[/\[/,{name:"index",what:"N_EXPRESSION"},/\]/]}]},{name:"method_call",what:{name:"calls",oneOrMoreOf:["T_OBJECT_OPERATOR",{name:"func",what:"N_INSTANCE_MEMBER"},/\(/,{name:"args",zeroOrMoreOf:["N_EXPRESSION",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/]}},{name:"object_property",what:{name:"properties",oneOrMoreOf:["T_OBJECT_OPERATOR",{name:"property",what:"N_INSTANCE_MEMBER"},/(?!\()/]}},{name:"static_method_call",what:["T_DOUBLE_COLON",{name:"method",oneOf:["N_STRING","N_VARIABLE","N_VARIABLE_EXPRESSION"]},/\(/,{name:"args",zeroOrMoreOf:["N_EXPRESSION",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/]},{name:"static_property",what:["T_DOUBLE_COLON",{name:"property",what:"N_STATIC_MEMBER"}]},{name:"callable",what:[/\(/,{name:"args",zeroOrMoreOf:["N_EXPRESSION",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/]}]}}],processor:function(e){var t;if(!e||!e.expression){return e}t=e.expression;n.each(e.member,function(e){if(e.array_index){t={name:"N_ARRAY_INDEX",array:t,indices:e.array_index.indices}}else if(e.method_call){t={name:"N_METHOD_CALL",object:t,calls:e.method_call.calls}}else if(e.object_property){t={name:"N_OBJECT_PROPERTY",object:t,properties:e.object_property.properties}}else if(e.static_method_call){t={name:"N_STATIC_METHOD_CALL",className:t,method:e.static_method_call.method,args:e.static_method_call.args}}else if(e.static_property){t={name:"N_STATIC_PROPERTY",className:t,property:e.static_property.property}}else if(e.callable){t={name:"N_FUNCTION_CALL",func:t,args:e.callable.args}}if(e.offset){t.offset=e.offset}});return t}},N_EXPRESSION_LEVEL_2_C:{components:{oneOf:["N_REFERENCE","N_EXPRESSION_LEVEL_2_B"]}},N_REFERENCE:{components:[/&/,{name:"operand",what:"N_EXPRESSION_LEVEL_2_B"}]},N_EXPRESSION_LEVEL_3_A:{oneOf:["N_UNARY_PREFIX_EXPRESSION","N_UNARY_SUFFIX_EXPRESSION","N_EXPRESSION_LEVEL_2_C"]},N_EXPRESSION_LEVEL_3_B:{oneOf:["N_ARRAY_CAST","N_BINARY_CAST","N_BOOLEAN_CAST","N_DOUBLE_CAST","N_INTEGER_CAST","N_OBJECT_CAST","N_STRING_CAST","N_UNSET_CAST","N_SUPPRESSED_EXPRESSION","N_EXPRESSION_LEVEL_3_A"]},N_ARRAY_CAST:{components:["T_ARRAY_CAST",{name:"value",rule:"N_EXPRESSION_LEVEL_3_B"}]},N_BINARY_CAST:{components:["T_BINARY_CAST",{name:"value",rule:"N_EXPRESSION_LEVEL_3_B"}]},N_BOOLEAN_CAST:{components:["T_BOOL_CAST",{name:"value",rule:"N_EXPRESSION_LEVEL_3_B"}]},N_DOUBLE_CAST:{components:["T_DOUBLE_CAST",{name:"value",rule:"N_EXPRESSION_LEVEL_3_B"}]},N_INTEGER_CAST:{components:["T_INT_CAST",{name:"value",rule:"N_EXPRESSION_LEVEL_3_B"}]},N_OBJECT_CAST:{components:["T_OBJECT_CAST",{name:"value",rule:"N_EXPRESSION_LEVEL_3_B"}]},N_STRING_CAST:{components:["T_STRING_CAST",{name:"value",rule:"N_EXPRESSION_LEVEL_3_B"}]},N_UNSET_CAST:{components:["T_UNSET_CAST",{name:"value",rule:"N_EXPRESSION_LEVEL_3_B"}]},N_SUPPRESSED_EXPRESSION:{components:[/@/,{name:"expression",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_3_B"]}]},N_UNARY_PREFIX_EXPRESSION:{captureAs:"N_UNARY_EXPRESSION",components:[{name:"operator",oneOf:["T_INC","T_DEC",/~/]},{name:"operand",what:"N_EXPRESSION_LEVEL_2_C"}],ifNoMatch:{component:"operator",capture:"operand"},options:{prefix:true}},N_UNARY_SUFFIX_EXPRESSION:{captureAs:"N_UNARY_EXPRESSION",components:[{name:"operand",what:"N_EXPRESSION_LEVEL_2_C"},{name:"operator",oneOf:["T_INC","T_DEC"]}],ifNoMatch:{component:"operator",capture:"operand"},options:{prefix:false}},N_EMPTY:{components:["T_EMPTY",/\(/,{name:"variable",rule:"N_EXPRESSION"},/\)/]},N_EXPRESSION_LEVEL_4:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_3_B"},{name:"right",zeroOrMoreOf:[{name:"operator",what:"T_INSTANCEOF"},{name:"operand",what:"N_EXPRESSION_LEVEL_3_B"}]}],processor:function(e){if(e.right.length===0){return e.left}return u(e.left,e.right,function(e,t){return{name:"N_INSTANCE_OF",object:e,class:t.operand}})}},N_EXPRESSION_LEVEL_5:{captureAs:"N_UNARY_EXPRESSION",components:[{name:"operator",optionally:/!/},{name:"operand",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_4"]}],ifNoMatch:{component:"operator",capture:"operand"},options:{prefix:true}},N_EXPRESSION_LEVEL_6:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_5"},{name:"right",zeroOrMoreOf:[{name:"operator",oneOf:[/\*/,/\//,/%/]},{name:"operand",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_5"]}]}],processor:function(e){if(e.right.length===0){return e.left}return c(e.left,e.right)}},N_EXPRESSION_LEVEL_7_A:{captureAs:"N_UNARY_EXPRESSION",components:[{name:"operator",optionally:/([+-])(?!\1)/},{name:"operand",what:"N_EXPRESSION_LEVEL_6"}],ifNoMatch:{component:"operator",capture:"operand"},options:{prefix:true}},N_EXPRESSION_LEVEL_7_B:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_7_A"},{name:"right",zeroOrMoreOf:[{name:"operator",oneOf:[/\+/,/-/,/\./]},{name:"operand",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_7_A"]}]}],processor:function(e){if(!e.right){return e.left}return c(e.left,e.right)}},N_EXPRESSION_LEVEL_8:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_7_B"},{name:"right",zeroOrMoreOf:[{name:"operator",oneOf:["T_SL","T_SR"]},{name:"operand",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_7_B"]}]}],ifNoMatch:{component:"right",capture:"left"}},N_EXPRESSION_LEVEL_9:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_8"},{name:"right",zeroOrMoreOf:[{name:"operator",oneOf:["T_IS_SMALLER_OR_EQUAL",/</,"T_IS_GREATER_OR_EQUAL",/>/]},{name:"operand",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_8"]}]}],ifNoMatch:{component:"right",capture:"left"}},N_EXPRESSION_LEVEL_10:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_9"},{name:"right",zeroOrMoreOf:[{name:"operator",oneOf:["T_IS_IDENTICAL","T_IS_EQUAL","T_IS_NOT_IDENTICAL","T_IS_NOT_EQUAL"]},{name:"operand",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_9"]}]}],ifNoMatch:{component:"right",capture:"left"}},N_EXPRESSION_LEVEL_11:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_10"},{name:"right",zeroOrMoreOf:[{name:"operator",what:/&&/},{name:"operand",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_10"]}]}],processor:function(e){if(!e.right){return e.left}return c(e.left,e.right)}},N_EXPRESSION_LEVEL_12:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_11"},{name:"right",zeroOrMoreOf:[{name:"operator",what:/\^/},{name:"operand",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_11"]}]}],ifNoMatch:{component:"right",capture:"left"}},N_EXPRESSION_LEVEL_13:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_12"},{name:"right",zeroOrMoreOf:[{name:"operator",what:/\|/},{name:"operand",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_12"]}]}],ifNoMatch:{component:"right",capture:"left"}},N_EXPRESSION_LEVEL_14:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_13"},{name:"right",zeroOrMoreOf:[{name:"operator",what:/&/},{name:"operand",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_13"]}]}],ifNoMatch:{component:"right",capture:"left"}},N_EXPRESSION_LEVEL_15:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_14"},{name:"right",zeroOrMoreOf:[{name:"operator",what:/\|\|/},{name:"operand",oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_14"]}]}],processor:function(e){if(!e.right){return e.left}return c(e.left,e.right)}},N_EXPRESSION_LEVEL_16:{captureAs:"N_TERNARY",components:[{name:"condition",what:"N_EXPRESSION_LEVEL_15"},{optionally:[{name:"firstOperand",oneOf:[[/\?/,{name:"consequent",rule:"N_EXPRESSION_LEVEL_15"}],[/\?\s*\:/,{name:"shorthand",rule:"N_EXPRESSION_LEVEL_15"}]]},{name:"restOfOperands",zeroOrMoreOf:{oneOf:[[/\?/,{name:"consequent",rule:"N_EXPRESSION_LEVEL_15"}],[/:/,{name:"alternate",rule:"N_EXPRESSION_LEVEL_15"}],[/\?\s*\:/,{name:"shorthand",rule:"N_EXPRESSION_LEVEL_15"}]]}}]}],processor:function(e){if(!e.firstOperand){return e.condition}return l(e.condition,[e.firstOperand].concat(e.restOfOperands))}},N_ASSIGNMENT_EXPRESSION:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_LEFT_HAND_SIDE_EXPRESSION"},{name:"right",oneOrMoreOf:[{name:"operator",what:/(?:[-+*\/.%&|^]|<<|>>)?=/},{name:"operand",what:"N_EXPRESSION"}]}]},N_EXPRESSION_LEVEL_17_A:{captureAs:"N_EXPRESSION",components:{oneOf:["N_ASSIGNMENT_EXPRESSION","N_EXPRESSION_LEVEL_16"]}},N_EXPRESSION_LEVEL_17_B:{captureAs:"N_PRINT_EXPRESSION",components:{oneOf:[["T_PRINT",{name:"operand",what:"N_EXPRESSION_LEVEL_17_A"}],{name:"next",what:"N_EXPRESSION_LEVEL_17_A"}]},ifNoMatch:{component:"operand",capture:"next"}},N_EXPRESSION_LEVEL_18:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_17_B"},{name:"right",zeroOrMoreOf:[{name:"operator",what:"T_LOGICAL_AND",replace:i},{name:"operand",what:"N_EXPRESSION_LEVEL_17_B"}]}],ifNoMatch:{component:"right",capture:"left"}},N_EXPRESSION_LEVEL_19:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_18"},{name:"right",zeroOrMoreOf:[{name:"operator",what:"T_LOGICAL_XOR",replace:i},{name:"operand",what:"N_EXPRESSION_LEVEL_18"}]}],ifNoMatch:{component:"right",capture:"left"}},N_EXPRESSION_LEVEL_20:{captureAs:"N_EXPRESSION",components:[{name:"left",what:"N_EXPRESSION_LEVEL_19"},{name:"right",zeroOrMoreOf:[{name:"operator",what:"T_LOGICAL_OR",replace:i},{name:"operand",what:"N_EXPRESSION_LEVEL_19"}]}],ifNoMatch:{component:"right",capture:"left"}},N_EXPRESSION_LEVEL_21:{components:"N_EXPRESSION_LEVEL_20"},N_LEFT_HAND_SIDE_EXPRESSION:"N_EXPRESSION_LEVEL_2_B",N_EXPRESSION_STATEMENT:{components:[{name:"expression",what:"N_EXPRESSION"},"N_END_STATEMENT"]},N_FLOAT:{components:{name:"number",what:"T_DNUMBER"}},N_FOR_STATEMENT:{components:["T_FOR",/\(/,{name:"initializer",what:"N_COMMA_EXPRESSION"},/;/,{name:"condition",what:"N_COMMA_EXPRESSION"},/;/,{name:"update",what:"N_COMMA_EXPRESSION"},/\)/,{name:"body",what:"N_STATEMENT"}]},N_FOREACH_STATEMENT:{components:["T_FOREACH",/\(/,{name:"array",rule:"N_EXPRESSION"},"T_AS",{optionally:[{name:"key",oneOf:["N_ARRAY_INDEX","N_ARGUMENT_VARIABLE"]},"T_DOUBLE_ARROW"]},{name:"value",oneOf:["N_ARRAY_INDEX","N_ARGUMENT_VARIABLE"]},/\)/,{name:"body",what:"N_STATEMENT"}]},N_FUNCTION_STATEMENT:{components:["T_FUNCTION",{name:"func",what:"N_STRING"},/\(/,{name:"args",zeroOrMoreOf:["N_ARGUMENT",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/,{name:"body",what:"N_STATEMENT"}]},N_GLOBAL_STATEMENT:{components:["T_GLOBAL",{name:"variables",oneOrMoreOf:["N_VARIABLE",/,|(?=;|[?%]>\n?)/]},"N_END_STATEMENT"]},N_GOTO_STATEMENT:{components:["T_GOTO",{name:"label",what:"T_STRING"},"N_END_STATEMENT"]},N_HEREDOC:{components:[{name:"string",what:/<<<("?)([a-z0-9_]+)\1\r?\n([\s\S]*?)\r?\n\2(?=;?(?:\r?\n|$))/i,captureIndex:3}],processor:function(e,t){var r,n;if(e.string===""){n=[{name:"N_STRING_LITERAL",string:""}]}else{r=t(e.string,{},"N_HEREDOC_INNER");if(r===null){return e}n=r.parts}return{name:"N_HEREDOC",parts:n}}},N_HEREDOC_INNER:{components:[{name:"parts",oneOrMoreOf:{oneOf:["N_STRING_VARIABLE","N_STRING_VARIABLE_EXPRESSION","N_HEREDOC_TEXT"]}}]},N_HEREDOC_TEXT:{captureAs:"N_STRING_LITERAL",components:{name:"string",what:/(?:[^\\$]|\\[\s\S]|\$(?=\$))+/,ignoreWhitespace:false,replace:a}},N_IF_STATEMENT:{components:["T_IF",/\(/,{name:"condition",what:"N_EXPRESSION"},/\)/,{name:"consequentStatement",what:"N_STATEMENT"},{optionally:[/else(\b|(?=if\b))/,{name:"alternateStatement",what:"N_STATEMENT"}]}]},N_IGNORE:{components:{oneOrMoreOf:{oneOf:["T_WHITESPACE","T_COMMENT","T_DOC_COMMENT"]}}},N_INCLUDE_EXPRESSION:{components:["T_INCLUDE",{name:"path",what:"N_EXPRESSION"}]},N_INCLUDE_ONCE_EXPRESSION:{components:["T_INCLUDE_ONCE",{name:"path",what:"N_EXPRESSION"}]},N_INLINE_HTML_STATEMENT:[{oneOf:["T_CLOSE_TAG","<BOF>"]},{name:"html",what:"T_INLINE_HTML"},{oneOf:["T_OPEN_TAG","<EOF>"]}],N_INSTANCE_MEMBER:{components:{oneOf:["N_STRING","N_VARIABLE",[/\{/,"N_EXPRESSION",/\}/]]}},N_INSTANCE_PROPERTY_DEFINITION:{components:[{name:"visibility",oneOf:["T_PUBLIC","T_PRIVATE","T_PROTECTED"]},{name:"variable",what:"N_VARIABLE"},{optionally:[/=/,{name:"value",oneOf:["N_CLASS_CONSTANT","N_TERM"]}]},"N_END_STATEMENT"]},N_INTEGER:{components:{name:"number",what:"T_LNUMBER"},processor:function(e){if(/^0x/i.test(e.number)){e.number=parseInt(e.number,16)+""}else if(/^0/i.test(e.number)){e.number=parseInt(e.number,8)+""}return e}},N_INTERFACE_METHOD_DEFINITION:{components:[{name:"visibility",oneOf:["T_PUBLIC","T_PRIVATE","T_PROTECTED"]},"T_FUNCTION",{name:"func",what:"N_STRING"},/\(/,{name:"args",zeroOrMoreOf:["N_ARGUMENT",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/,"N_END_STATEMENT"]},N_INTERFACE_STATEMENT:{components:["T_INTERFACE",{name:"interfaceName",rule:"T_STRING"},{optionally:["T_EXTENDS",{optionally:{name:"extend",oneOrMoreOf:[{oneOf:["N_NAMESPACE","T_STRING"]},{what:/(,|(?=\{))()/,captureIndex:2}]}}]},/\{/,{name:"members",zeroOrMoreOf:{oneOf:["N_INTERFACE_METHOD_DEFINITION","N_STATIC_INTERFACE_METHOD_DEFINITION","N_CONSTANT_DEFINITION","N_INSTANCE_PROPERTY_DEFINITION","N_STATIC_PROPERTY_DEFINITION","N_METHOD_DEFINITION","N_STATIC_METHOD_DEFINITION","N_ABSTRACT_METHOD_DEFINITION","N_ABSTRACT_STATIC_METHOD_DEFINITION"]}},/\}/]},N_ISSET:{components:["T_ISSET",/\(/,{name:"variables",zeroOrMoreOf:["N_EXPRESSION",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/]},N_JUMP_ONE_LEVEL:{captureAs:"N_INTEGER",components:{name:"number",what:/()/},options:{number:"1"}},N_KEY_VALUE_PAIR:{components:[{name:"key",what:"N_EXPRESSION"},"T_DOUBLE_ARROW",{name:"value",what:"N_EXPRESSION"}]},N_LABEL_STATEMENT:{components:[{name:"label",what:[/(?!default\b)/i,"T_STRING"]},/:/]},N_LIST:{components:["T_LIST",/\(/,{name:"elements",zeroOrMoreOf:{oneOf:[[{oneOf:["N_VARIABLE","N_ARRAY_INDEX"]},{what:/(,|(?=\)))()/,captureIndex:2}],"N_VOID"]}},/\)/]},N_MAGIC_CONSTANT:{components:{oneOf:["N_MAGIC_CLASS_CONSTANT","N_MAGIC_DIR_CONSTANT","N_MAGIC_FILE_CONSTANT","N_MAGIC_FUNCTION_CONSTANT","N_MAGIC_LINE_CONSTANT","N_MAGIC_METHOD_CONSTANT","N_MAGIC_NAMESPACE_CONSTANT"]}},N_MAGIC_CLASS_CONSTANT:{components:{what:"T_CLASS_C",replace:s,allowMerge:false}},N_MAGIC_DIR_CONSTANT:{components:{what:"T_DIR",replace:s,allowMerge:false}},N_MAGIC_FILE_CONSTANT:{components:{what:"T_FILE",replace:s,allowMerge:false}},N_MAGIC_FUNCTION_CONSTANT:{components:{what:"T_FUNC_C",replace:s,allowMerge:false}},N_MAGIC_LINE_CONSTANT:{components:{what:"T_LINE",replace:s,captureOffsetAs:"offset"}},N_MAGIC_METHOD_CONSTANT:{components:{what:"T_METHOD_C",replace:s,allowMerge:false}},N_MAGIC_NAMESPACE_CONSTANT:{components:{what:"T_NS_C",replace:s,allowMerge:false}},N_METHOD_DEFINITION:{components:[{optionally:{name:"visibility",rule:"N_VISIBILITY"}},{optionally:{name:"modifier",rule:"T_FINAL"}},{optionally:{name:"visibility",rule:"N_VISIBILITY"}},"T_FUNCTION",{name:"func",what:"N_STRING"},/\(/,{name:"args",zeroOrMoreOf:["N_ARGUMENT",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/,{name:"body",what:"N_STATEMENT"}],processor:function(e){if(!e.visibility){e.visibility="public"}return e}},N_NAMESPACE:{components:[/(?!(?:new|use)\b)/i,{optionally:"T_STRING"},{oneOrMoreOf:["T_NS_SEPARATOR","T_STRING"]}]},N_NAMESPACE_STATEMENT:{oneOf:["N_SEMICOLON_NAMESPACE_STATEMENT","N_BRACED_NAMESPACE_STATEMENT"]},N_SEMICOLON_NAMESPACE_STATEMENT:{captureAs:"N_NAMESPACE_STATEMENT",components:["T_NAMESPACE",{name:"namespace",oneOf:["N_NAMESPACE","T_STRING"]},/;/,{name:"statements",zeroOrMoreOf:"N_NAMESPACE_SCOPED_STATEMENT"}]},N_BRACED_NAMESPACE_STATEMENT:{captureAs:"N_NAMESPACE_STATEMENT",components:["T_NAMESPACE",{name:"namespace",oneOf:["N_NAMESPACE","T_STRING",/()/]},/\{/,{name:"statements",zeroOrMoreOf:"N_NAMESPACE_SCOPED_STATEMENT"},/\}/]},N_NAMESPACED_REFERENCE:{captureAs:"N_STRING",components:{name:"string",what:"N_NAMESPACE"}},N_NOWDOC:{components:[{name:"string",what:/<<<'([a-z0-9_]+)'\r?\n([\s\S]*?)\r?\n\1(?=;?(?:\r?\n|$))/i,captureIndex:2}]},N_NULL:{allowMerge:false,what:/null\b/i},N_PARENT:{allowMerge:false,what:/parent\b(?=\s*::)/i},N_PROGRAM:{components:[{optionally:"T_OPEN_TAG"},{name:"statements",zeroOrMoreOf:"N_STATEMENT"},{oneOf:["T_CLOSE_TAG",{what:"<EOF>"}]}]},N_RETURN_STATEMENT:{components:["T_RETURN",{name:"expression",optionally:"N_EXPRESSION"},"N_END_STATEMENT"]},N_STATEMENT:{components:{oneOf:["N_NAMESPACE_SCOPED_STATEMENT","N_NAMESPACE_STATEMENT"]}},N_NAMESPACE_SCOPED_STATEMENT:{components:{oneOf:["N_COMPOUND_STATEMENT","N_RETURN_STATEMENT","N_INLINE_HTML_STATEMENT","N_EMPTY_STATEMENT","N_ECHO_STATEMENT","N_BREAK_STATEMENT","N_CONTINUE_STATEMENT","N_UNSET_STATEMENT","N_EXPRESSION_STATEMENT","N_FUNCTION_STATEMENT","N_IF_STATEMENT","N_FOREACH_STATEMENT","N_FOR_STATEMENT","N_WHILE_STATEMENT","N_DO_WHILE_STATEMENT","N_CLASS_STATEMENT","N_INTERFACE_STATEMENT","N_SWITCH_STATEMENT","N_GLOBAL_STATEMENT","N_STATIC_STATEMENT","N_LABEL_STATEMENT","N_GOTO_STATEMENT","N_USE_STATEMENT","N_THROW_STATEMENT","N_TRY_STATEMENT"]}},N_REQUIRE_EXPRESSION:{components:["T_REQUIRE",{name:"path",what:"N_EXPRESSION"}]},N_REQUIRE_ONCE_EXPRESSION:{components:["T_REQUIRE_ONCE",{name:"path",what:"N_EXPRESSION"}]},N_SELF:{allowMerge:false,what:/self\b(?=\s*::)/i},N_STATIC:{allowMerge:false,what:/static\b(?=\s*::)/i},N_STATIC_STATEMENT:{components:["T_STATIC",{name:"variables",oneOrMoreOf:[{name:"variable",rule:"N_VARIABLE"},{optionally:[/=/,{name:"initialiser",rule:"N_EXPRESSION"}]},/,|(?=;|[?%]>\n?)/]},"N_END_STATEMENT"]},N_STATIC_INTERFACE_METHOD_DEFINITION:{components:[{oneOf:[[{name:"visibility",rule:"N_VISIBILITY"},"T_STATIC"],["T_STATIC",{name:"visibility",rule:"N_VISIBILITY"}],"T_STATIC"]},"T_FUNCTION",{name:"method",what:"N_STRING"},/\(/,{name:"args",zeroOrMoreOf:["N_ARGUMENT",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/,"N_END_STATEMENT"]},N_STATIC_MEMBER:{components:{oneOf:["N_STATIC_VARIABLE","N_STATIC_VARIABLE_EXPRESSION"]}},N_STATIC_METHOD_DEFINITION:{components:[{optionally:{name:"visibility",rule:"N_VISIBILITY"}},{optionally:{name:"modifier",rule:"T_FINAL"}},{optionally:{name:"visibility",rule:"N_VISIBILITY"}},"T_STATIC",{optionally:{name:"visibility",rule:"N_VISIBILITY"}},{optionally:{name:"modifier",rule:"T_FINAL"}},{optionally:{name:"visibility",rule:"N_VISIBILITY"}},"T_FUNCTION",{name:"method",what:"N_STRING"},/\(/,{name:"args",zeroOrMoreOf:["N_ARGUMENT",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/,{name:"body",what:"N_STATEMENT"}],processor:function(e){if(!e.visibility){e.visibility="public"}return e}},N_STATIC_VARIABLE:{captureAs:"N_STRING",components:{name:"string",rule:"T_VARIABLE"}},N_STATIC_VARIABLE_EXPRESSION:{oneOf:[[/\$/,"N_VARIABLE"],[/\$\{/,"N_EXPRESSION",/\}/]]},N_STATIC_PROPERTY_DEFINITION:{components:[{oneOf:[[{name:"visibility",rule:"N_VISIBILITY"},"T_STATIC"],["T_STATIC",{name:"visibility",rule:"N_VISIBILITY"}],"T_STATIC"]},{name:"variable",what:"N_VARIABLE"},{optionally:[/=/,{name:"value",oneOf:["N_CLASS_CONSTANT","N_TERM"]}]},"N_END_STATEMENT"]},N_STRING:{components:{name:"string",what:"T_STRING"}},N_STRING_EXPRESSION:{components:[/"/,{name:"parts",oneOrMoreOf:{oneOf:["N_STRING_VARIABLE","N_STRING_VARIABLE_EXPRESSION","N_STRING_TEXT"]}},/"/]},N_STRING_LITERAL:{components:{oneOf:[{name:"string",what:"T_CONSTANT_ENCAPSED_STRING"},"N_STRING_EXPRESSION"]}},N_STRING_TEXT:{captureAs:"N_STRING_LITERAL",components:{name:"string",what:/(?:[^\\"\$]|\\[\s\S]|\$(?=\$))+/,ignoreWhitespace:false,replace:a}},N_STRING_VARIABLE:{captureAs:"N_VARIABLE",components:[{oneOf:[{name:"variable",what:"T_VARIABLE"},{name:"variable",what:/\$\{([a-z0-9_]+)\}/i,captureIndex:1}]}]},N_STRING_VARIABLE_EXPRESSION:{captureAs:"N_VARIABLE_EXPRESSION",components:[{oneOf:[{name:"expression",what:[/\$\{(?=\$)/,"N_VARIABLE",/\}/]}]}]},N_SWITCH_STATEMENT:{components:["T_SWITCH",/\(/,{name:"expression",what:"N_EXPRESSION"},/\)/,/\{/,{name:"cases",zeroOrMoreOf:{oneOf:["N_CASE","N_DEFAULT_CASE"]}},/\}/]},N_TERM:{components:{oneOf:["N_VARIABLE","N_FLOAT","N_INTEGER","N_BOOLEAN","N_STRING_LITERAL","N_BINARY_LITERAL","N_ARRAY_LITERAL","N_LIST","N_ISSET","N_EMPTY","N_EXIT","N_CLOSURE","N_MAGIC_CONSTANT","N_REQUIRE_EXPRESSION","N_REQUIRE_ONCE_EXPRESSION","N_INCLUDE_EXPRESSION","N_INCLUDE_ONCE_EXPRESSION","N_SELF","N_PARENT","N_STATIC","N_NULL","N_NAMESPACED_REFERENCE","N_STRING","N_HEREDOC","N_NOWDOC"]}},N_THROW_STATEMENT:{components:["T_THROW",{name:"expression",rule:"N_EXPRESSION"},"N_END_STATEMENT"]},N_TRY_STATEMENT:{components:["T_TRY",{name:"body",what:"N_STATEMENT"},{name:"catches",zeroOrMoreOf:["T_CATCH",/\(/,{name:"type",oneOf:["N_NAMESPACED_REFERENCE","N_STRING"]},{name:"variable",rule:"N_VARIABLE"},/\)/,{name:"body",what:"N_STATEMENT"}]},{optionally:{name:"finalizer",what:["T_FINALLY","N_STATEMENT"]}}],processor:function(e){if(!e.finalizer){e.finalizer=null}return e}},N_UNSET_STATEMENT:{components:["T_UNSET",/\(/,{name:"variables",zeroOrMoreOf:["N_EXPRESSION",{what:/(,|(?=\)))()/,captureIndex:2}]},/\)/,"N_END_STATEMENT"]},N_USE_STATEMENT:{components:["T_USE",{name:"uses",oneOrMoreOf:[{name:"source",oneOf:["N_NAMESPACE","T_STRING"]},{optionally:["T_AS",{name:"alias",what:"T_STRING"}]}]},"N_END_STATEMENT"]},N_VARIABLE:{components:[{oneOf:[{name:"variable",what:"T_VARIABLE"},{name:"variable",what:/\$\{([a-z0-9_]+)\}/i,captureIndex:1}]}]},N_VARIABLE_EXPRESSION:{components:{name:"expression",rule:"N_STATIC_VARIABLE_EXPRESSION"}},N_VISIBILITY:{oneOf:["T_PUBLIC","T_PRIVATE","T_PROTECTED"]},N_VOID:{components:{name:"value",what:/,()/,captureIndex:1}},N_WHILE_STATEMENT:{components:["T_WHILE",/\(/,{name:"condition",what:"N_EXPRESSION"},/\)/,/\{/,{name:"statements",zeroOrMoreOf:"N_STATEMENT"},/\}/]}},start:"N_PROGRAM"}},{"./ErrorHandler":239,"./State":241,microdash:79}],243:[function(e,t,r){"use strict";var n=e("transpiler"),i=e("./src/transpilerSpec");t.exports=n.create(i)},{"./src/transpilerSpec":245,transpiler:260}],244:[function(e,t,r){"use strict";var n=e("microdash"),i=e("util"),s=e("events").EventEmitter;function a(){s.call(this);this.foundLabels={};this.labels={};this.pendingLabels={}}i.inherits(a,s);n.extend(a.prototype,{addPending:function(e){var t=this;t.labels[e]=true;t.pendingLabels[e]=true;t.emit("pending label",e)},found:function(e){var t=this;t.foundLabels[e]=true;t.labels[e]=true;delete t.pendingLabels[e];t.emit("found label",e)},getLabels:function(){return Object.keys(this.labels)},hasBeenFound:function(e){var t=this;return t.foundLabels[e]===true},hasPending:function(){return Object.keys(this.pendingLabels).length>0},isPending:function(e){return this.pendingLabels[e]===true},off:function(e,t){this.removeListener(e,t)}});t.exports=a},{events:74,microdash:79,util:265}],245:[function(e,t,r){"use strict";var n=e("microdash"),i="bare",s="path",a="prefix",o="runtimePath",u="sourceContent",c="sourceMap",l="suffix",f="sync",p={"+":"add","-":"subtract","*":"multiply","/":"divide",".":"concat","%":"modulo","&":"bitwiseAnd","|":"bitwiseOr","^":"bitwiseXor","<<":"shiftLeftBy",">>":"shiftRightBy","+=":"incrementBy","-=":"decrementBy","*=":"multiplyBy","/=":"divideBy",".=":"concatWith","%=":"moduloWith","&=":"bitwiseAndWith","|=":"bitwiseOrWith","^=":"bitwiseXorWith","<<=":"shiftLeftBy",">>=":"shiftRightBy","==":"isEqualTo","!=":"isNotEqualTo","<>":"isNotEqualTo","===":"isIdenticalTo","!==":"isNotIdenticalTo","<":"isLessThan","<=":"isLessThanOrEqual",">":"isGreaterThan",">=":"isGreaterThanOrEqual","=":{false:"setValue",true:"setReference"}},h={}.hasOwnProperty,m=e("source-map"),d=e("source-map-to-comment"),E={prefix:{"+":"toPositive","-":"toNegative","++":"preIncrement","--":"preDecrement","~":"onesComplement","!":"logicalNot"},suffix:{"++":"postIncrement","--":"postDecrement"}},g=e("./LabelRepository"),y=e("phpcommon").PHPFatalError,_=m.SourceNode;function v(e){var t=[],r=[];n.each(e,function(e){if(/^N_(CLASS|FUNCTION|USE)_STATEMENT$/.test(e.name)){t.push(e)}else{r.push(e)}});return t.concat(r)}function N(e,t,r,i,s,a){var o=[],u=[],c=[],l={blockContexts:[],labelRepository:new g,variableMap:{this:true}},f=a.createInternalSourceNode(s(i,l),i);if(a.buildingSourceMap){n.forOwn(l.variableMap,function(e,t){c.push("var $"+t+' = tools.createDebugVar(scope, "'+t+'");')})}n.each(r,function(e){var t=e.name==="N_REFERENCE",r=t?"Reference":"Value",n=t?e.operand.variable:e.variable;c.push('scope.getVariable("'+n+'").set'+r+'(parentScope.getVariable("'+n+'").get'+r+"());");if(a.buildingSourceMap){c.push("var ",a.createInternalSourceNode(["$"+n],t?e.operand:e,"$"+n),' = tools.createDebugVar(scope, "'+n+'");')}});n.each(t,function(e,t){var r=e.variable.name==="N_REFERENCE",n=r?e.variable.operand:e.variable,i=["$"],c=n.variable;i.push(c);if(r){if(e.value){u.push("if (",i.slice(),") {"+'scope.getVariable("'+c+'").setReference(',i.slice(),".getReference());"+"} else {"+'scope.getVariable("'+c+'").setValue(',s(e.value,l),");"+"}")}else{u.push('scope.getVariable("'+c+'").setReference(',i.slice(),".getReference());")}}else{if(e.value){i.push(" ? ",i.slice(),".getValue() : ",s(e.value,l))}else{i.push(".getValue()")}u.push('scope.getVariable("'+c+'").setValue(',i.slice(),");")}o[t]="$"+c;if(a.buildingSourceMap){u.push("var $"+c+' = tools.createDebugVar(scope, "'+c+'");')}});f=[u,c].concat(f);f=["function ",e?a.createInternalSourceNode(["_"+e.string],e,e.name):"","("+o.join(", ")+") {","var scope = this;",a.lineNumbers?"var line;tools.instrument(function () {return line;});":"",f,"}"];if(r&&r.length>0){f=["(function (parentScope) { return "].concat(f,"; }(scope))")}return f}function A(e,t,r){var i=[],s=r.labelRepository,a=[];n.each(e,function(e){var n={},i={},o;function u(e){i[e]=true}function c(e){n[e]=true}s.on("pending label",u);s.on("found label",c);o=t(e,r);s.off("pending label",u);s.off("found label",c);a.push({codeChunks:o,gotos:i,labels:n,prefix:"",suffix:""})});n.each(a,function(e,t){if(t>0){n.each(Object.keys(e.labels),function(t){a[0].prefix="if (!"+"goingToLabel_"+t+") {"+a[0].prefix;e.prefix="}"+e.prefix})}});n.each(a,function(e,t){n.each(Object.keys(e.gotos),function(r){if(!h.call(e.labels,r)){n.each(a,function(n,i){if(n!==e){if(h.call(n.labels,r)){if(i>t){e.prefix=r+": {"+e.prefix;n.prefix="}"+n.prefix}else{n.prefix+="continue_"+r+": do {";e.suffix+="} while (goingToLabel_"+r+");"}}}})}})});n.each(a,function(e){i.push(e.prefix,e.codeChunks,e.suffix)});return i}t.exports={nodes:{N_ABSTRACT_METHOD_DEFINITION:function(e){return{name:e.func.string,body:"{isStatic: false, abstract: true}"}},N_ABSTRACT_STATIC_METHOD_DEFINITION:function(e){return{name:e.method.string,body:"{isStatic: false, abstract: true}"}},N_ARRAY_CAST:function(e,t,r){return r.createExpressionSourceNode(t(e.value,{getValue:true}).concat(".coerceToArray()"),e)},N_ARRAY_INDEX:function(e,t,r){var i=[],s=[],a="";if(e.indices!==true){n.each(e.indices,function(n,a){if(r.assignment&&a<e.indices.length-1){i.unshift("tools.implyArray(")}if(a>0){s.push(r.assignment?")).getElementByKey(":").getValue().getElementByKey(")}s.push(t(n.index,{assignment:false,getValue:true}))})}if(r.assignment){i.push("tools.implyArray(");[].push.apply(i,t(e.array,{getValue:false}));i.push(")")}else{if(r.getValue!==false){a=".getValue()"}[].push.apply(i,t(e.array,{getValue:true}))}if(s.length>0){if(r.assignment){return r.createExpressionSourceNode(i.concat(".getElementByKey(",s,")"+a),e)}return r.createExpressionSourceNode(i.concat(".getElementByKey(",s,")"+a),e)}return r.createExpressionSourceNode(i.concat(".getPushElement()"+a),e)},N_ARRAY_LITERAL:function(e,t,r){var i=[];n.each(e.elements,function(e,r){if(r>0){i.push(", ")}i.push(t(e,{getValue:true}))});return r.createExpressionSourceNode(["tools.valueFactory.createArray(["].concat(i,"])"),e)},N_BINARY_CAST:function(e,t,r){return r.createExpressionSourceNode(t(e.value,{getValue:true}).concat(".coerceToString()"),e)},N_BINARY_LITERAL:function(e,t,r){return r.createExpressionSourceNode(["tools.valueFactory.createString("].concat(JSON.stringify(e.string),")"),e)},N_BOOLEAN:function(e,t,r){return r.createExpressionSourceNode(["tools.valueFactory.createBoolean("].concat(e.bool.toLowerCase(),")"),e)},N_BOOLEAN_CAST:function(e,t,r){return r.createExpressionSourceNode(t(e.value,{getValue:true}).concat(".coerceToBoolean()"),e)},N_BREAK_STATEMENT:function(e,t,r){var n=e.levels.number,i=r.blockContexts.length-(n-1);if(e.levels.number<=0){throw new y(y.OPERATOR_REQUIRES_POSITIVE_NUMBER,{operator:"break"})}if(i<1){return r.createStatementSourceNode(["tools.throwCannotBreakOrContinue("+n+");"],e)}return r.createStatementSourceNode(["break block_"+i+";"],e)},N_CASE:function(e,t,r){var i=[];n.each(e.body,function(e){i.push(t(e))});return r.createStatementSourceNode(["if (switchMatched_"+r.blockContexts.length+" || switchExpression_"+r.blockContexts.length+".isEqualTo("].concat(t(e.expression),").getNative()) {switchMatched_"+r.blockContexts.length+" = true; ",i,"}"),e)},N_CLASS_CONSTANT:function(e,t,r){return r.createExpressionSourceNode(t(e.className,{getValue:true,allowBareword:true}).concat(".getConstantByName("+JSON.stringify(e.constant)+", namespaceScope)"),e)},N_CLASS_STATEMENT:function(e,t,r){var i,s=[],a=[],o=[],u=[],c=e.extend?"namespaceScope.getClass("+JSON.stringify(e.extend)+")":"null",l=JSON.stringify(e.implement||[]);n.each(e.members,function(e){var r=t(e);if(e.name==="N_INSTANCE_PROPERTY_DEFINITION"){if(o.length>0){o.push(", ")}o.push('"'+r.name+'": ',r.value)}else if(e.name==="N_STATIC_PROPERTY_DEFINITION"){if(u.length>0){u.push(", ")}u.push('"'+r.name+'": {visibility: '+r.visibility+", value: ",r.value,"}")}else if(e.name==="N_METHOD_DEFINITION"||e.name==="N_STATIC_METHOD_DEFINITION"){if(a.length>0){a.push(", ")}a.push('"'+r.name+'": ',r.body)}else if(e.name==="N_CONSTANT_DEFINITION"){if(s.length>0){s.push(", ")}s.push('"'+r.name+'": ',r.value)}});i=["{superClass: "+c+", interfaces: "+l+", staticProperties: {"].concat(u,"}, properties: {",o,"}, methods: {",a,"}, constants: {",s,"}}");return r.createStatementSourceNode(["(function () {var currentClass = namespace.defineClass("+JSON.stringify(e.className)+", "].concat(i,", namespaceScope);}());"),e)},N_CLOSURE:function(e,t,r){var n=N(null,e.args,e.bindings,e.body,t,r);return r.createExpressionSourceNode(["tools.createClosure("].concat(n,", scope)"),e)},N_COMMA_EXPRESSION:function(e,t,r){var i=[];n.each(e.expressions,function(e,r){if(r>0){i.push(", ")}i.push(t(e))});return r.createExpressionSourceNode(i,e)},N_COMPOUND_STATEMENT:function(e,t,r){return r.createInternalSourceNode(A(e.statements,t,r),e)},N_CONSTANT_DEFINITION:function(e,t,r){return{name:e.constant,value:r.createInternalSourceNode(["function () { return "].concat(t(e.value,{isConstantOrProperty:true}),"; }"),e)}},N_CONTINUE_STATEMENT:function(e,t,r){var n=e.levels.number,i,s=r.blockContexts.length-(n-1);if(e.levels.number<=0){throw new y(y.OPERATOR_REQUIRES_POSITIVE_NUMBER,{operator:"continue"})}if(s<1){return r.createStatementSourceNode(["tools.throwCannotBreakOrContinue("+n+");"],e)}i=r.blockContexts[s-1]==="switch"?"break":"continue";return r.createStatementSourceNode([i+" block_"+s+";"],e)},N_DEFAULT_CASE:function(e,t,r){var i=[];n.each(e.body,function(e){i.push(t(e))});return r.createInternalSourceNode(["if (!switchMatched_"+r.blockContexts.length+") {switchMatched_"+r.blockContexts.length+" = true; "].concat(i,"}"),e)},N_DO_WHILE_STATEMENT:function(e,t,r){var n=r.blockContexts.concat(["do-while"]),i={blockContexts:n},s=t(e.body,i);return r.createStatementSourceNode(["block_"+n.length+": do {"].concat(s,"} while (",t(e.condition,i),".coerceToBoolean().getNative());"),e)},N_DOUBLE_CAST:function(e,t,r){return r.createExpressionSourceNode(t(e.value,{getValue:true}).concat(".coerceToFloat()"),e)},N_ECHO_STATEMENT:function(e,t,r){var i=[];n.each(e.expressions,function(e){
|
||
i.push("stdout.write(",t(e),".coerceToString().getNative());")});return r.createStatementSourceNode(i,e)},N_EMPTY:function(e,t,r){return r.createExpressionSourceNode(["(function (scope) {scope.suppressOwnErrors();"+"var result = tools.valueFactory.createBoolean("].concat(t(e.variable,{getValue:false}),".isEmpty());"+"scope.unsuppressOwnErrors(); return result;}(scope))"),e)},N_EXIT:function(e,t,r){if(h.call(e,"status")){return r.createExpressionSourceNode(["tools.exit("].concat(t(e.status),")"),e)}if(h.call(e,"message")){return r.createExpressionSourceNode(["(stdout.write("].concat(t(e.message),".getNative()), tools.exit())"),e)}return r.createStatementSourceNode(["tools.exit()"],e)},N_EXPRESSION:function(e,t,r){var i=/^(?:[-+*\/.%&|^]|<<|>>)?=$/.test(e.right[0].operator),s=[],a=t(e.left,{assignment:i,getValue:!i});n.each(e.right,function(o,u){var c,l=o.operand.name==="N_REFERENCE",f,h=l?o.operand.operand:o.operand,m,d=l?".getReference()":"";c=(!i||u===e.right.length-1)&&!l;m=t(h,{getValue:c});if(o.operator==="&&"||o.operator==="and"){a=["tools.valueFactory.createBoolean("].concat(a,".coerceToBoolean().getNative() && (",m,d+".coerceToBoolean().getNative()");s.push("))")}else if(o.operator==="||"||o.operator==="or"){a=["tools.valueFactory.createBoolean("].concat(a,".coerceToBoolean().getNative() || (",m,d+".coerceToBoolean().getNative()");s.push("))")}else if(o.operator==="xor"){a=["tools.valueFactory.createBoolean("].concat(a,".coerceToBoolean().getNative() !== (",m,d+".coerceToBoolean().getNative()");s.push("))")}else{f=p[o.operator];if(!f){throw new Error('Unsupported binary operator "'+o.operator+'"')}if(n.isPlainObject(f)){f=f[l]}a.push("."+f+"(",m,d);s.push(")")}if(l&&r.getValue){s.push(".getValue()")}});return r.createExpressionSourceNode(a.concat(s),e)},N_EXPRESSION_STATEMENT:function(e,t,r){return r.createStatementSourceNode(t(e.expression).concat(";"),e)},N_FLOAT:function(e,t,r){return r.createExpressionSourceNode(["tools.valueFactory.createFloat("+e.number+")"],e)},N_FOR_STATEMENT:function(e,t,r){var n=r.blockContexts.concat(["for"]),i={blockContexts:n},s=t(e.body,i),a=t(e.condition,i),o=t(e.initializer,i),u=t(e.update,i);if(a.length>0){a.push(".coerceToBoolean().getNative()")}return r.createStatementSourceNode(["block_"+n.length+": for ("].concat(o,";",a||[],";",u,") {",s,"}"),e)},N_FOREACH_STATEMENT:function(e,t,r){var n=t(e.array),i,s=[],a=e.key?t(e.key,{getValue:false}):null,o,u,c=r.blockContexts.concat(["foreach"]),l={blockContexts:c},f=e.value.name==="N_REFERENCE",p=f?e.value.operand:e.value,h=t(p,{getValue:false});i="array_"+c.length;s.push("var "+i+" = ",n,".reset();");o="length_"+c.length;s.push("var "+o+" = "+i+".getLength();");u="pointer_"+c.length;s.push("var "+u+" = 0;");s.push("block_"+c.length+": ");s.push("while ("+u+" < "+o+") {");if(a){s.push(a,".setValue("+i+".getKeyByIndex("+u+"));")}s.push(h,".set"+(f?"Reference":"Value")+"("+i+".getElementByIndex("+u+")"+(f?".getReference()":".getValue()")+");");s.push(u+"++;");s=s.concat(t(e.body,l));s.push("}");return r.createStatementSourceNode(s,e)},N_FUNCTION_STATEMENT:function(e,t,r){var n;n=N(e.func,e.args,null,e.body,t,r);return r.createStatementSourceNode(["namespace.defineFunction("+JSON.stringify(e.func.string)+", "].concat(n,", namespaceScope);"),e)},N_FUNCTION_CALL:function(e,t,r){var i=[];n.each(e.args,function(e,r){if(r>0){i.push(", ")}i.push(t(e,{getValue:false}))});return r.createExpressionSourceNode(["("].concat(t(e.func,{getValue:true,allowBareword:true}),".call([",i,"], namespaceScope) || tools.valueFactory.createNull())"),e)},N_GLOBAL_STATEMENT:function(e,t,r){var i="";n.each(e.variables,function(e){i+="scope.importGlobal("+JSON.stringify(e.variable)+");"});return r.createStatementSourceNode([i],e)},N_GOTO_STATEMENT:function(e,t,r){var n="",i=e.label;r.labelRepository.addPending(i);n+="goingToLabel_"+i+" = true;";if(r.labelRepository.hasBeenFound(i)){n+=" continue continue_"+i+";"}else{n+=" break "+i+";"}return r.createStatementSourceNode([n],e)},N_HEREDOC:function(e,t,r){var i=[];n.each(e.parts,function(e,r){if(r>0){i.push(" + ")}i.push(t(e),".coerceToString().getNative()")});return r.createExpressionSourceNode(["tools.valueFactory.createString("].concat(i,")"),e)},N_IF_STATEMENT:function(e,t,r){var i,s,a=t(e.condition).concat(".coerceToBoolean().getNative()"),o,u={},c=r.labelRepository;function l(e){delete u[e]}function f(e){u[e]=true}c.on("pending label",l);c.on("found label",f);o=t(e.consequentStatement);c.off("pending label",l);c.off("found label",f);n.each(Object.keys(u),function(e){a=["goingToLabel_"+e+" || ("].concat(a,")")});o=["{"].concat(o,"}");i=e.alternateStatement?[" else {"].concat(t(e.alternateStatement),"}"):[];s=["if ("].concat(a,") ",o,i);return r.createStatementSourceNode(s,e)},N_INCLUDE_EXPRESSION:function(e,t,r){return r.createExpressionSourceNode(["tools.include("].concat(t(e.path),".getNative(), scope)"),e)},N_INCLUDE_ONCE_EXPRESSION:function(e,t,r){return r.createExpressionSourceNode(["tools.includeOnce("].concat(t(e.path),".getNative(), scope)"),e)},N_INLINE_HTML_STATEMENT:function(e,t,r){return r.createStatementSourceNode(["stdout.write("+JSON.stringify(e.html)+");"],e)},N_INSTANCE_OF:function(e,t,r){return r.createExpressionSourceNode(t(e.object,{getValue:true}).concat([".isAnInstanceOf(",t(e["class"],{allowBareword:true}),", namespaceScope)"]),e)},N_INSTANCE_PROPERTY_DEFINITION:function(e,t,r){return{name:e.variable.variable,value:r.createInternalSourceNode(["function () { return "].concat(e.value?t(e.value,{isConstantOrProperty:true}):["null"],"; }"),e)}},N_INTEGER:function(e,t,r){return r.createExpressionSourceNode(["tools.valueFactory.createInteger("+e.number+")"],e)},N_INTEGER_CAST:function(e,t,r){return r.createExpressionSourceNode(t(e.value,{getValue:true}).concat(".coerceToInteger()"),e)},N_INTERFACE_METHOD_DEFINITION:function(e){return{name:e.func.string,body:"{isStatic: false, abstract: true}"}},N_INTERFACE_STATEMENT:function(e,t,r){var i,s=[],a=[],o=JSON.stringify(e.extend||[]);n.each(e.members,function(n){var i=t(n);if(n.name==="N_INSTANCE_PROPERTY_DEFINITION"||n.name==="N_STATIC_PROPERTY_DEFINITION"){throw new y(y.INTERFACE_PROPERTY_NOT_ALLOWED)}else if(n.name==="N_METHOD_DEFINITION"||n.name==="N_STATIC_METHOD_DEFINITION"){throw new y(y.INTERFACE_METHOD_BODY_NOT_ALLOWED,{className:e.interfaceName,methodName:n.func?n.func.string:n.method.string})}else if(n.name==="N_INTERFACE_METHOD_DEFINITION"||n.name==="N_STATIC_INTERFACE_METHOD_DEFINITION"){if(a.length>0){a.push(", ")}a.push(r.createInternalSourceNode(['"'+i.name+'": '].concat(i.body),n))}else if(n.name==="N_CONSTANT_DEFINITION"){if(s.length>0){s.push(", ")}s.push(r.createInternalSourceNode(['"'+i.name+'": '].concat(i.value),n))}});i=["{superClass: null"+", interfaces: "+o+", staticProperties: {"+"}, properties: {"+"}, methods: {"].concat(a,"}, constants: {",s,"}}");return r.createStatementSourceNode(["(function () {var currentClass = namespace.defineClass("+JSON.stringify(e.interfaceName)+", "].concat(i,", namespaceScope);}());"),e)},N_STATIC_INTERFACE_METHOD_DEFINITION:function(e){return{name:e.method.string,body:"{isStatic: true, abstract: true}"}},N_ISSET:function(e,t,r){var i=[];n.each(e.variables,function(e,r){if(r>0){i.push(" && ")}i.push(t(e,{getValue:false}),".isSet()")});return r.createExpressionSourceNode(["(function (scope) {scope.suppressOwnErrors();"+"var result = tools.valueFactory.createBoolean("].concat(i,");"+"scope.unsuppressOwnErrors(); return result;}(scope))"),e)},N_KEY_VALUE_PAIR:function(e,t,r){return r.createExpressionSourceNode(["tools.createKeyValuePair("].concat(t(e.key),", ",t(e.value),")"),e)},N_LABEL_STATEMENT:function(e,t,r){var n=e.label;r.labelRepository.found(n);return[""]},N_LIST:function(e,t,r){var i=[];n.each(e.elements,function(e,r){if(r>0){i.push(",")}i.push(t(e,{getValue:false}))});return r.createExpressionSourceNode(["tools.createList(["].concat(i,"])"),e)},N_MAGIC_CLASS_CONSTANT:function(e,t,r){return r.createExpressionSourceNode(["scope.getClassName()"],e)},N_MAGIC_DIR_CONSTANT:function(e,t,r){return r.createExpressionSourceNode(["tools.getPathDirectory()"],e)},N_MAGIC_FILE_CONSTANT:function(e,t,r){return r.createExpressionSourceNode(["tools.getPath()"],e)},N_MAGIC_FUNCTION_CONSTANT:function(e,t,r){return r.createExpressionSourceNode(["scope.getFunctionName()"],e)},N_MAGIC_LINE_CONSTANT:function(e,t,r){return r.createExpressionSourceNode(["tools.valueFactory.createInteger("+e.offset.line+")"],e)},N_MAGIC_METHOD_CONSTANT:function(e,t,r){return r.createExpressionSourceNode(["scope.getMethodName()"],e)},N_MAGIC_NAMESPACE_CONSTANT:function(e,t,r){return r.createExpressionSourceNode(["namespaceScope.getNamespaceName()"],e)},N_METHOD_CALL:function(e,t,r){var i=[];n.each(e.calls,function(e){var r=[];n.each(e.args,function(e,n){if(n>0){r.push(", ")}r.push(t(e,{getValue:false}))});i.push(".callMethod(");[].push.apply(i,t(e.func,{allowBareword:true}));i.push(".getNative(), [");[].push.apply(i,r);i.push("])")});return r.createExpressionSourceNode(t(e.object,{getValue:true}).concat(i),e)},N_METHOD_DEFINITION:function(e,t,r){return{name:e.func.string,body:r.createInternalSourceNode(["{isStatic: false, method: "].concat(N(e.func,e.args,null,e.body,t,r),"}"),e)}},N_NAMESPACE_STATEMENT:function(e,t,r){var i=[];n.each(v(e.statements),function(e){[].push.apply(i,t(e))});if(e.namespace===""){return r.createStatementSourceNode(i,e)}if(r.buildingSourceMap){n.forOwn(r.variableMap,function(e,t){i.unshift("var $"+t+' = tools.createDebugVar(scope, "'+t+'");')})}return r.createStatementSourceNode(["if (namespaceResult = (function (globalNamespace) {var namespace = globalNamespace.getDescendant("+JSON.stringify(e.namespace)+"), namespaceScope = tools.createNamespaceScope(namespace);",i,"}(namespace))) { return namespaceResult; }"],e)},N_NEW_EXPRESSION:function(e,t,r){var i=[];n.each(e.args,function(e,r){if(r>0){i.push(", ")}i.push(t(e))});return r.createExpressionSourceNode(["tools.createInstance(namespaceScope, "].concat(t(e.className,{allowBareword:true}),", [",i,"])"),e)},N_NOWDOC:function(e,t,r){return r.createExpressionSourceNode(["tools.valueFactory.createString(",JSON.stringify(e.string),")"],e)},N_NULL:function(e,t,r){return r.createExpressionSourceNode(["tools.valueFactory.createNull()"],e)},N_OBJECT_CAST:function(e,t,r){return r.createExpressionSourceNode(t(e.value,{getValue:true}).concat(".coerceToObject()"),e)},N_OBJECT_PROPERTY:function(e,t,r){var i,s=[],a="";if(r.assignment){i=["tools.implyObject(",t(e.object,{getValue:false}),")"]}else{if(r.getValue!==false){a=".getValue()"}i=t(e.object,{getValue:false})}n.each(e.properties,function(r,n){var i=t(r.property,{assignment:false,getValue:false,allowBareword:true});s.push(".getInstancePropertyByName(",i,")");if(n<e.properties.length-1){s.push(".getValue()")}});return r.createExpressionSourceNode([i,s,a],e)},N_PARENT:function(e,t,r){if(r.isConstantOrProperty){return r.createExpressionSourceNode(["tools.getParentClassName(currentClass)"],e)}return r.createExpressionSourceNode(["scope.getParentClassNameOrThrow()"],e)},N_PRINT_EXPRESSION:function(e,t,r){return r.createExpressionSourceNode(["(stdout.write(",t(e.operand,{getValue:true}),".coerceToString().getNative()), tools.valueFactory.createInteger(1))"],e)},N_PROGRAM:function(e,t,r){var p,h=[],m,E,y,N,S=r?r[s]:null,T={blockContexts:[],buildingSourceMap:null,createExpressionSourceNode:null,createInternalSourceNode:null,createStatementSourceNode:null,labelRepository:new g,lineNumbers:null,variableMap:{}},C,b,D,x;r=n.extend({runtimePath:"phpruntime"},r);b=r[o];p=r[i]===true;x=r[c]?r[c]===true?{}:r[c]:null;T.buildingSourceMap=!!x;T.lineNumbers=!!r.lineNumbers;if(e.offset){y=function(e,t,r){return new _(e.offset.line,e.offset.column-1,S,t,r)};if(T.lineNumbers){h.push("var line;tools.instrument(function () {return line;});");T.createExpressionSourceNode=function(e,t,r){if(e.length===0){return[]}return[y(t,["(line = "+t.offset.line+", ",e,")"],r)]};T.createInternalSourceNode=function(e,t,r){if(e.length===0){return[]}return[y(t,e,r)]};T.createStatementSourceNode=function(e,t,r){if(e.length===0){return[]}return[y(t,["line = "+t.offset.line+";",e],r)]}}else{N=function(e,t,r){if(e.length===0){return[]}return[y(t,e,r)]};T.createExpressionSourceNode=N;T.createInternalSourceNode=N;T.createStatementSourceNode=N}}else{if(T.buildingSourceMap){throw new Error("Source map enabled, but AST contains no node offsets")}if(T.lineNumbers){throw new Error("Line number tracking enabled, but AST contains no node offsets")}N=function(e){return e};T.createExpressionSourceNode=N;T.createInternalSourceNode=N;T.createStatementSourceNode=N}if(r[f]){b+="/sync"}h.push(A(v(e.statements),t,T));if(T.buildingSourceMap){n.forOwn(T.variableMap,function(e,t){h.unshift("var $"+t+' = tools.createDebugVar(scope, "'+t+'");')})}C=T.labelRepository.getLabels();if(C.length>0){h.unshift("var goingToLabel_"+C.join(" = false, goingToLabel_")+" = false;")}h.unshift("var namespaceScope = tools.topLevelNamespaceScope, namespaceResult, scope = tools.topLevelScope, currentClass = null;");h.push("return tools.valueFactory.createNull();");h=["function (stdin, stdout, stderr, tools, namespace) {"].concat(h,"}");if(!p){h=["require('"+b+"').compile("].concat(h,")")}if(r[a]){h.unshift(r[a])}if(r[l]){h.push(r[l])}D=new _(null,null,S,h);if(T.buildingSourceMap){if(x[u]){D.setSourceContent(S,x[u])}E=D.toStringWithSourceMap();m=E.code+"\n\n"+d(E.map.toJSON())+"\n"}else{m=D.toString()}if(!p){m+=";"}return m},N_REFERENCE:function(e,t,r){return r.createExpressionSourceNode(t(e.operand,{getValue:false}).concat(".getReference()"),e)},N_REQUIRE_EXPRESSION:function(e,t,r){return r.createExpressionSourceNode(["tools.require("].concat(t(e.path),".getNative(), scope)"),e)},N_REQUIRE_ONCE_EXPRESSION:function(e,t,r){return r.createExpressionSourceNode(["tools.requireOnce("].concat(t(e.path),".getNative(), scope)"),e)},N_RETURN_STATEMENT:function(e,t,r){var n=t(e.expression);return r.createInternalSourceNode(["return "].concat(n?n:"tools.valueFactory.createNull()",";"),e)},N_SELF:function(e,t,r){if(r.isConstantOrProperty){return r.createExpressionSourceNode(["currentClass"],e)}return r.createExpressionSourceNode(["scope.getClassNameOrThrow()"],e)},N_STATIC:function(e,t,r){return r.createExpressionSourceNode(["scope.getStaticClassNameOrThrow()"],e)},N_STATIC_METHOD_CALL:function(e,t,r){var i=[],s=e.className.name==="N_SELF"||e.className.name==="N_PARENT"||e.className.name==="N_STATIC";n.each(e.args,function(e,r){if(r>0){i.push(", ")}i.push(t(e,{getValue:false}))});return r.createExpressionSourceNode([t(e.className,{allowBareword:true}),".callStaticMethod(",t(e.method,{allowBareword:true}),", [",i,"], namespaceScope, "+!!s+")"],e)},N_STATIC_METHOD_DEFINITION:function(e,t,r){return{name:e.method.string,body:r.createInternalSourceNode(["{isStatic: true, method: "].concat(N(e.method,e.args,null,e.body,t,r),"}"),e)}},N_STATIC_PROPERTY:function(e,t,r){var n=t(e.className,{getValue:true,allowBareword:true}),i=[".getStaticPropertyByName("].concat(t(e.property,{assignment:false,getValue:true,allowBareword:true}),", namespaceScope)"),s="";if(!r.assignment&&r.getValue!==false){s=".getValue()"}return r.createExpressionSourceNode(n.concat(i,s),e)},N_STATIC_PROPERTY_DEFINITION:function(e,t,r){return{name:e.variable.variable,visibility:JSON.stringify(e.visibility),value:r.createInternalSourceNode(["function (currentClass) { return "].concat(e.value?t(e.value,{isConstantOrProperty:true}):["tools.valueFactory.createNull()"],"; }"),e)}},N_STATIC_STATEMENT:function(e,t,r){var i="";n.each(e.variables,function(e){i+="scope.importStatic("+JSON.stringify(e.variable.variable);if(e.initialiser){i+=", "+t(e.initialiser)}i+=");"});return r.createStatementSourceNode([i],e)},N_STRING:function(e,t,r){if(r.allowBareword){return r.createExpressionSourceNode(["tools.valueFactory.createBarewordString("+JSON.stringify(e.string)+")"],e)}return r.createExpressionSourceNode(["namespaceScope.getConstant("+JSON.stringify(e.string)+")"],e)},N_STRING_CAST:function(e,t,r){return r.createExpressionSourceNode(t(e.value,{getValue:true}).concat(".coerceToString()"),e)},N_STRING_EXPRESSION:function(e,t,r){var i=[];n.each(e.parts,function(e,r){if(r>0){i.push(" + ")}i.push(t(e),".coerceToString().getNative()")});return r.createExpressionSourceNode(["tools.valueFactory.createString("].concat(i,")"),e)},N_STRING_LITERAL:function(e,t,r){return r.createExpressionSourceNode(["tools.valueFactory.createString("+JSON.stringify(e.string)+")"],e)},N_SUPPRESSED_EXPRESSION:function(e,t,r){return r.createExpressionSourceNode(["(function (scope) {scope.suppressErrors();"+"var result = "].concat(t(e.expression),";"+"scope.unsuppressErrors(); return result;}(scope))"),e)},N_SWITCH_STATEMENT:function(e,t,r){var i=[],s=t(e.expression),a=r.blockContexts.concat(["switch"]),o={blockContexts:a};i.push("var switchExpression_"+a.length+" = ",s,","+" switchMatched_"+a.length+" = false;");n.each(e.cases,function(e){i.push(t(e,o))});return r.createStatementSourceNode(["block_"+a.length+": {",i,"}"],e)},N_TERNARY:function(e,t,r){var n=t(e.condition,{getValue:true}),i,s;if(e.consequent){i=t(e.consequent)}else{n=["(tools.ternaryCondition = ",n,")"];i="tools.ternaryCondition"}s=["(",n,".coerceToBoolean().getNative() ? ",i," : ",t(e.alternate),")"];return r.createExpressionSourceNode(s,e)},N_THROW_STATEMENT:function(e,t,r){return r.createStatementSourceNode(["throw ",t(e.expression),";"],e)},N_TRY_STATEMENT:function(e,t,r){var i=[],s=[];n.each(e.catches,function(e,r){var n=["if (",t(e.type,{allowBareword:true}),".isTheClassOfObject(e, namespaceScope).getNative()) {",t(e.variable,{getValue:false}),".setValue(e);",t(e.body),"}"];if(r>0){n.unshift(" else ")}i.push(n)});[].push.apply(s,i);if(e.catches.length>0){s.unshift("if (!tools.valueFactory.isValue(e)) {throw e;}");s.push(" else { throw e; }")}else{s.push("throw e;")}s.unshift("try {",t(e.body),"} catch (e) {");s.push("}");if(e.finalizer){s.push(" finally {",t(e.finalizer),"}")}return r.createStatementSourceNode(s,e)},N_UNARY_EXPRESSION:function(e,t,r){var n=e.operator,i=t(e.operand,{getValue:n!=="++"&&n!=="--"});return r.createExpressionSourceNode([i,"."+E[e.prefix?"prefix":"suffix"][n]+"()"],e)},N_UNSET_CAST:function(e,t,r){return r.createExpressionSourceNode(["(",t(e.value,{getValue:true}),", tools.valueFactory.createNull())"],e)},N_UNSET_STATEMENT:function(e,t,r){var i=[];n.each(e.variables,function(e,r){if(r>0){i.push("; ")}i.push(t(e,{getValue:false}),".unset()")});i.push(";");return r.createStatementSourceNode(i,e)},N_USE_STATEMENT:function(e,t,r){var i="";n.each(e.uses,function(e){if(e.alias){i+="namespaceScope.use("+JSON.stringify(e.source)+", "+JSON.stringify(e.alias)+");"}else{i+="namespaceScope.use("+JSON.stringify(e.source)+");"}});return r.createStatementSourceNode([i],e)},N_VARIABLE:function(e,t,r){r.variableMap[e.variable]=true;return r.createExpressionSourceNode(['scope.getVariable("'+e.variable+'")'+(r.getValue!==false?".getValue()":"")],e,"$"+e.variable)},N_VARIABLE_EXPRESSION:function(e,t,r){return r.createExpressionSourceNode(["scope.getVariable(",t(e.expression),".getNative())"+(r.getValue!==false?".getValue()":"")],e)},N_VOID:function(e,t,r){return r.createExpressionSourceNode(["tools.referenceFactory.createNull()"],e)},N_WHILE_STATEMENT:function(e,t,r){var i=r.blockContexts.concat(["while"]),s={blockContexts:i},a=[];r.labelRepository.on("found label",function(){throw new y(y.GOTO_DISALLOWED)});n.each(e.statements,function(e){a.push(t(e,s))});return r.createStatementSourceNode(["block_"+i.length+": while (",t(e.condition,s),".coerceToBoolean().getNative()) {",a,"}"],e)}}}},{"./LabelRepository":244,microdash:79,phpcommon:146,"source-map":258,"source-map-to-comment":247}],246:[function(e,t,r){var n=t.exports={};var i=[];var s=false;function a(){if(s){return}s=true;var e;var t=i.length;while(t){e=i;i=[];var r=-1;while(++r<t){e[r]()}t=i.length}s=false}n.nextTick=function(e){i.push(e);if(!s){setTimeout(a,0)}};n.title="browser";n.browser=true;n.env={};n.argv=[];n.version="";n.versions={};function o(){}n.on=o;n.addListener=o;n.once=o;n.off=o;n.removeListener=o;n.removeAllListeners=o;n.emit=o;n.binding=function(e){throw new Error("process.binding is not supported")};n.cwd=function(){return"/"};n.chdir=function(e){throw new Error("process.chdir is not supported")};n.umask=function(){return 0}},{}],247:[function(e,t,r){(function(e){"use strict";t.exports=function(t,r){r=r||{};var n=new e(JSON.stringify(t)).toString("base64");var i="sourceMappingURL=data:application/json;base64,"+n;if(r.type==="css"){return"/*# "+i+" */"}return"//# "+i}}).call(this,e("buffer").Buffer)},{buffer:9}],248:[function(e,t,r){var n=e("./util");var i=Object.prototype.hasOwnProperty;var s=typeof Map!=="undefined";function a(){this._array=[];this._set=s?new Map:Object.create(null)}a.fromArray=function e(t,r){var n=new a;for(var i=0,s=t.length;i<s;i++){n.add(t[i],r)}return n};a.prototype.size=function e(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length};a.prototype.add=function e(t,r){var a=s?t:n.toSetString(t);var o=s?this.has(t):i.call(this._set,a);var u=this._array.length;if(!o||r){this._array.push(t)}if(!o){if(s){this._set.set(t,u)}else{this._set[a]=u}}};a.prototype.has=function e(t){if(s){return this._set.has(t)}else{var r=n.toSetString(t);return i.call(this._set,r)}};a.prototype.indexOf=function e(t){if(s){var r=this._set.get(t);if(r>=0){return r}}else{var a=n.toSetString(t);if(i.call(this._set,a)){return this._set[a]}}throw new Error('"'+t+'" is not in the set.')};a.prototype.at=function e(t){if(t>=0&&t<this._array.length){return this._array[t]}throw new Error("No element indexed by "+t)};a.prototype.toArray=function e(){return this._array.slice()};r.ArraySet=a},{"./util":257}],249:[function(e,t,r){var n=e("./base64");var i=5;var s=1<<i;var a=s-1;var o=s;function u(e){return e<0?(-e<<1)+1:(e<<1)+0}function c(e){var t=(e&1)===1;var r=e>>1;return t?-r:r}r.encode=function e(t){var r="";var s;var c=u(t);do{s=c&a;c>>>=i;if(c>0){s|=o}r+=n.encode(s)}while(c>0);return r};r.decode=function e(t,r,s){var u=t.length;var l=0;var f=0;var p,h;do{if(r>=u){throw new Error("Expected more digits in base 64 VLQ value.")}h=n.decode(t.charCodeAt(r++));if(h===-1){throw new Error("Invalid base64 digit: "+t.charAt(r-1))}p=!!(h&o);h&=a;l=l+(h<<f);f+=i}while(p);s.value=c(l);s.rest=r}},{"./base64":250}],250:[function(e,t,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");r.encode=function(e){if(0<=e&&e<n.length){return n[e]}throw new TypeError("Must be between 0 and 63: "+e)};r.decode=function(e){var t=65;var r=90;var n=97;var i=122;var s=48;var a=57;var o=43;var u=47;var c=26;var l=52;if(t<=e&&e<=r){return e-t}if(n<=e&&e<=i){return e-n+c}if(s<=e&&e<=a){return e-s+l}if(e==o){return 62}if(e==u){return 63}return-1}},{}],251:[function(e,t,r){r.GREATEST_LOWER_BOUND=1;r.LEAST_UPPER_BOUND=2;function n(e,t,i,s,a,o){var u=Math.floor((t-e)/2)+e;var c=a(i,s[u],true);if(c===0){return u}else if(c>0){if(t-u>1){return n(u,t,i,s,a,o)}if(o==r.LEAST_UPPER_BOUND){return t<s.length?t:-1}else{return u}}else{if(u-e>1){return n(e,u,i,s,a,o)}if(o==r.LEAST_UPPER_BOUND){return u}else{return e<0?-1:e}}}r.search=function e(t,i,s,a){if(i.length===0){return-1}var o=n(-1,i.length,t,i,s,a||r.GREATEST_LOWER_BOUND);if(o<0){return-1}while(o-1>=0){if(s(i[o],i[o-1],true)!==0){break}--o}return o}},{}],252:[function(e,t,r){var n=e("./util");function i(e,t){var r=e.generatedLine;var i=t.generatedLine;var s=e.generatedColumn;var a=t.generatedColumn;return i>r||i==r&&a>=s||n.compareByGeneratedPositionsInflated(e,t)<=0}function s(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}s.prototype.unsortedForEach=function e(t,r){this._array.forEach(t,r)};s.prototype.add=function e(t){if(i(this._last,t)){this._last=t;this._array.push(t)}else{this._sorted=false;this._array.push(t)}};s.prototype.toArray=function e(){if(!this._sorted){this._array.sort(n.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};r.MappingList=s},{"./util":257}],253:[function(e,t,r){function n(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}function i(e,t){return Math.round(e+Math.random()*(t-e))}function s(e,t,r,a){if(r<a){var o=i(r,a);var u=r-1;n(e,o,a);var c=e[a];for(var l=r;l<a;l++){if(t(e[l],c)<=0){u+=1;n(e,u,l)}}n(e,u+1,l);var f=u+1;s(e,t,r,f-1);s(e,t,f+1,a)}}r.quickSort=function(e,t){s(e,t,0,e.length-1)}},{}],254:[function(e,t,r){var n=e("./util");var i=e("./binary-search");var s=e("./array-set").ArraySet;var a=e("./base64-vlq");var o=e("./quick-sort").quickSort;function u(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}return t.sections!=null?new f(t):new c(t)}u.fromSourceMap=function(e){return c.fromSourceMap(e)};u.prototype._version=3;u.prototype.__generatedMappings=null;Object.defineProperty(u.prototype,"_generatedMappings",{get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});u.prototype.__originalMappings=null;Object.defineProperty(u.prototype,"_originalMappings",{get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});u.prototype._charIsMappingSeparator=function e(t,r){var n=t.charAt(r);return n===";"||n===","};u.prototype._parseMappings=function e(t,r){throw new Error("Subclasses must implement _parseMappings")};u.GENERATED_ORDER=1;u.ORIGINAL_ORDER=2;u.GREATEST_LOWER_BOUND=1;u.LEAST_UPPER_BOUND=2;u.prototype.eachMapping=function e(t,r,i){var s=r||null;var a=i||u.GENERATED_ORDER;var o;switch(a){case u.GENERATED_ORDER:o=this._generatedMappings;break;case u.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;o.map(function(e){var t=e.source===null?null:this._sources.at(e.source);if(t!=null&&c!=null){t=n.join(c,t)}return{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(t,s)};u.prototype.allGeneratedPositionsFor=function e(t){var r=n.getArg(t,"line");var s={source:n.getArg(t,"source"),originalLine:r,originalColumn:n.getArg(t,"column",0)};if(this.sourceRoot!=null){s.source=n.relative(this.sourceRoot,s.source)}if(!this._sources.has(s.source)){return[]}s.source=this._sources.indexOf(s.source);var a=[];var o=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(o>=0){var u=this._originalMappings[o];if(t.column===undefined){var c=u.originalLine;while(u&&u.originalLine===c){a.push({line:n.getArg(u,"generatedLine",null),column:n.getArg(u,"generatedColumn",null),lastColumn:n.getArg(u,"lastGeneratedColumn",null)});u=this._originalMappings[++o]}}else{var l=u.originalColumn;while(u&&u.originalLine===r&&u.originalColumn==l){a.push({line:n.getArg(u,"generatedLine",null),column:n.getArg(u,"generatedColumn",null),lastColumn:n.getArg(u,"lastGeneratedColumn",null)});u=this._originalMappings[++o]}}}return a};r.SourceMapConsumer=u;function c(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}var r=n.getArg(t,"version");var i=n.getArg(t,"sources");var a=n.getArg(t,"names",[]);var o=n.getArg(t,"sourceRoot",null);var u=n.getArg(t,"sourcesContent",null);var c=n.getArg(t,"mappings");var l=n.getArg(t,"file",null);if(r!=this._version){throw new Error("Unsupported version: "+r)}i=i.map(String).map(n.normalize).map(function(e){return o&&n.isAbsolute(o)&&n.isAbsolute(e)?n.relative(o,e):e});this._names=s.fromArray(a.map(String),true);this._sources=s.fromArray(i,true);this.sourceRoot=o;this.sourcesContent=u;this._mappings=c;this.file=l}c.prototype=Object.create(u.prototype);c.prototype.consumer=u;c.fromSourceMap=function e(t){var r=Object.create(c.prototype);var i=r._names=s.fromArray(t._names.toArray(),true);var a=r._sources=s.fromArray(t._sources.toArray(),true);r.sourceRoot=t._sourceRoot;r.sourcesContent=t._generateSourcesContent(r._sources.toArray(),r.sourceRoot);r.file=t._file;var u=t._mappings.toArray().slice();var f=r.__generatedMappings=[];var p=r.__originalMappings=[];for(var h=0,m=u.length;h<m;h++){var d=u[h];var E=new l;E.generatedLine=d.generatedLine;E.generatedColumn=d.generatedColumn;if(d.source){E.source=a.indexOf(d.source);E.originalLine=d.originalLine;E.originalColumn=d.originalColumn;if(d.name){E.name=i.indexOf(d.name)}p.push(E)}f.push(E)}o(r.__originalMappings,n.compareByOriginalPositions);return r};c.prototype._version=3;Object.defineProperty(c.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return this.sourceRoot!=null?n.join(this.sourceRoot,e):e},this)}});function l(){this.generatedLine=0;this.generatedColumn=0;this.source=null;this.originalLine=null;this.originalColumn=null;this.name=null}c.prototype._parseMappings=function e(t,r){var i=1;var s=0;var u=0;var c=0;var f=0;var p=0;var h=t.length;var m=0;var d={};var E={};var g=[];var y=[];var _,v,N,A,S;while(m<h){if(t.charAt(m)===";"){i++;m++;s=0}else if(t.charAt(m)===","){m++}else{_=new l;_.generatedLine=i;for(A=m;A<h;A++){if(this._charIsMappingSeparator(t,A)){break}}v=t.slice(m,A);N=d[v];if(N){m+=v.length}else{N=[];while(m<A){a.decode(t,m,E);S=E.value;m=E.rest;N.push(S)}if(N.length===2){throw new Error("Found a source, but no line and column")}if(N.length===3){throw new Error("Found a source and line, but no column")}d[v]=N}_.generatedColumn=s+N[0];s=_.generatedColumn;if(N.length>1){_.source=f+N[1];f+=N[1];_.originalLine=u+N[2];u=_.originalLine;_.originalLine+=1;_.originalColumn=c+N[3];c=_.originalColumn;if(N.length>4){_.name=p+N[4];p+=N[4]}}y.push(_);if(typeof _.originalLine==="number"){g.push(_)}}}o(y,n.compareByGeneratedPositionsDeflated);this.__generatedMappings=y;o(g,n.compareByOriginalPositions);this.__originalMappings=g};c.prototype._findMapping=function e(t,r,n,s,a,o){if(t[n]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+t[n])}if(t[s]<0){throw new TypeError("Column must be greater than or equal to 0, got "+t[s])}return i.search(t,r,a,o)};c.prototype.computeColumnSpans=function e(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=Infinity}};c.prototype.originalPositionFor=function e(t){var r={generatedLine:n.getArg(t,"line"),generatedColumn:n.getArg(t,"column")};var i=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",n.compareByGeneratedPositionsDeflated,n.getArg(t,"bias",u.GREATEST_LOWER_BOUND));if(i>=0){var s=this._generatedMappings[i];if(s.generatedLine===r.generatedLine){var a=n.getArg(s,"source",null);if(a!==null){a=this._sources.at(a);if(this.sourceRoot!=null){a=n.join(this.sourceRoot,a)}}var o=n.getArg(s,"name",null);if(o!==null){o=this._names.at(o)}return{source:a,line:n.getArg(s,"originalLine",null),column:n.getArg(s,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};c.prototype.hasContentsOfAllSources=function e(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null})};c.prototype.sourceContentFor=function e(t,r){if(!this.sourcesContent){return null}if(this.sourceRoot!=null){t=n.relative(this.sourceRoot,t)}if(this._sources.has(t)){return this.sourcesContent[this._sources.indexOf(t)]}var i;if(this.sourceRoot!=null&&(i=n.urlParse(this.sourceRoot))){var s=t.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(s)){return this.sourcesContent[this._sources.indexOf(s)]}if((!i.path||i.path=="/")&&this._sources.has("/"+t)){return this.sourcesContent[this._sources.indexOf("/"+t)]}}if(r){return null}else{
|
||
throw new Error('"'+t+'" is not in the SourceMap.')}};c.prototype.generatedPositionFor=function e(t){var r=n.getArg(t,"source");if(this.sourceRoot!=null){r=n.relative(this.sourceRoot,r)}if(!this._sources.has(r)){return{line:null,column:null,lastColumn:null}}r=this._sources.indexOf(r);var i={source:r,originalLine:n.getArg(t,"line"),originalColumn:n.getArg(t,"column")};var s=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(t,"bias",u.GREATEST_LOWER_BOUND));if(s>=0){var a=this._originalMappings[s];if(a.source===i.source){return{line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};r.BasicSourceMapConsumer=c;function f(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}var r=n.getArg(t,"version");var i=n.getArg(t,"sections");if(r!=this._version){throw new Error("Unsupported version: "+r)}this._sources=new s;this._names=new s;var a={line:-1,column:0};this._sections=i.map(function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var t=n.getArg(e,"offset");var r=n.getArg(t,"line");var i=n.getArg(t,"column");if(r<a.line||r===a.line&&i<a.column){throw new Error("Section offsets must be ordered and non-overlapping.")}a=t;return{generatedOffset:{generatedLine:r+1,generatedColumn:i+1},consumer:new u(n.getArg(e,"map"))}})}f.prototype=Object.create(u.prototype);f.prototype.constructor=u;f.prototype._version=3;Object.defineProperty(f.prototype,"sources",{get:function(){var e=[];for(var t=0;t<this._sections.length;t++){for(var r=0;r<this._sections[t].consumer.sources.length;r++){e.push(this._sections[t].consumer.sources[r])}}return e}});f.prototype.originalPositionFor=function e(t){var r={generatedLine:n.getArg(t,"line"),generatedColumn:n.getArg(t,"column")};var s=i.search(r,this._sections,function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;if(r){return r}return e.generatedColumn-t.generatedOffset.generatedColumn});var a=this._sections[s];if(!a){return{source:null,line:null,column:null,name:null}}return a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:t.bias})};f.prototype.hasContentsOfAllSources=function e(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};f.prototype.sourceContentFor=function e(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n];var s=i.consumer.sourceContentFor(t,true);if(s){return s}}if(r){return null}else{throw new Error('"'+t+'" is not in the SourceMap.')}};f.prototype.generatedPositionFor=function e(t){for(var r=0;r<this._sections.length;r++){var i=this._sections[r];if(i.consumer.sources.indexOf(n.getArg(t,"source"))===-1){continue}var s=i.consumer.generatedPositionFor(t);if(s){var a={line:s.line+(i.generatedOffset.generatedLine-1),column:s.column+(i.generatedOffset.generatedLine===s.line?i.generatedOffset.generatedColumn-1:0)};return a}}return{line:null,column:null}};f.prototype._parseMappings=function e(t,r){this.__generatedMappings=[];this.__originalMappings=[];for(var i=0;i<this._sections.length;i++){var s=this._sections[i];var a=s.consumer._generatedMappings;for(var u=0;u<a.length;u++){var c=a[u];var l=s.consumer._sources.at(c.source);if(s.consumer.sourceRoot!==null){l=n.join(s.consumer.sourceRoot,l)}this._sources.add(l);l=this._sources.indexOf(l);var f=s.consumer._names.at(c.name);this._names.add(f);f=this._names.indexOf(f);var p={source:l,generatedLine:c.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(s.generatedOffset.generatedLine===c.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:f};this.__generatedMappings.push(p);if(typeof p.originalLine==="number"){this.__originalMappings.push(p)}}}o(this.__generatedMappings,n.compareByGeneratedPositionsDeflated);o(this.__originalMappings,n.compareByOriginalPositions)};r.IndexedSourceMapConsumer=f},{"./array-set":248,"./base64-vlq":249,"./binary-search":251,"./quick-sort":253,"./util":257}],255:[function(e,t,r){var n=e("./base64-vlq");var i=e("./util");var s=e("./array-set").ArraySet;var a=e("./mapping-list").MappingList;function o(e){if(!e){e={}}this._file=i.getArg(e,"file",null);this._sourceRoot=i.getArg(e,"sourceRoot",null);this._skipValidation=i.getArg(e,"skipValidation",false);this._sources=new s;this._names=new s;this._mappings=new a;this._sourcesContents=null}o.prototype._version=3;o.fromSourceMap=function e(t){var r=t.sourceRoot;var n=new o({file:t.file,sourceRoot:r});t.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){t.source=e.source;if(r!=null){t.source=i.relative(r,t.source)}t.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){t.name=e.name}}n.addMapping(t)});t.sources.forEach(function(e){var r=t.sourceContentFor(e);if(r!=null){n.setSourceContent(e,r)}});return n};o.prototype.addMapping=function e(t){var r=i.getArg(t,"generated");var n=i.getArg(t,"original",null);var s=i.getArg(t,"source",null);var a=i.getArg(t,"name",null);if(!this._skipValidation){this._validateMapping(r,n,s,a)}if(s!=null){s=String(s);if(!this._sources.has(s)){this._sources.add(s)}}if(a!=null){a=String(a);if(!this._names.has(a)){this._names.add(a)}}this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:s,name:a})};o.prototype.setSourceContent=function e(t,r){var n=t;if(this._sourceRoot!=null){n=i.relative(this._sourceRoot,n)}if(r!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[i.toSetString(n)]=r}else if(this._sourcesContents){delete this._sourcesContents[i.toSetString(n)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};o.prototype.applySourceMap=function e(t,r,n){var a=r;if(r==null){if(t.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}a=t.file}var o=this._sourceRoot;if(o!=null){a=i.relative(o,a)}var u=new s;var c=new s;this._mappings.unsortedForEach(function(e){if(e.source===a&&e.originalLine!=null){var r=t.originalPositionFor({line:e.originalLine,column:e.originalColumn});if(r.source!=null){e.source=r.source;if(n!=null){e.source=i.join(n,e.source)}if(o!=null){e.source=i.relative(o,e.source)}e.originalLine=r.line;e.originalColumn=r.column;if(r.name!=null){e.name=r.name}}}var s=e.source;if(s!=null&&!u.has(s)){u.add(s)}var l=e.name;if(l!=null&&!c.has(l)){c.add(l)}},this);this._sources=u;this._names=c;t.sources.forEach(function(e){var r=t.sourceContentFor(e);if(r!=null){if(n!=null){e=i.join(n,e)}if(o!=null){e=i.relative(o,e)}this.setSourceContent(e,r)}},this)};o.prototype._validateMapping=function e(t,r,n,i){if(r&&typeof r.line!=="number"&&typeof r.column!=="number"){throw new Error("original.line and original.column are not numbers -- you probably meant to omit "+"the original mapping entirely and only map the generated position. If so, pass "+"null for the original mapping instead of an object with empty or null values.")}if(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i){return}else if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}};o.prototype._serializeMappings=function e(){var t=0;var r=1;var s=0;var a=0;var o=0;var u=0;var c="";var l;var f;var p;var h;var m=this._mappings.toArray();for(var d=0,E=m.length;d<E;d++){f=m[d];l="";if(f.generatedLine!==r){t=0;while(f.generatedLine!==r){l+=";";r++}}else{if(d>0){if(!i.compareByGeneratedPositionsInflated(f,m[d-1])){continue}l+=","}}l+=n.encode(f.generatedColumn-t);t=f.generatedColumn;if(f.source!=null){h=this._sources.indexOf(f.source);l+=n.encode(h-u);u=h;l+=n.encode(f.originalLine-1-a);a=f.originalLine-1;l+=n.encode(f.originalColumn-s);s=f.originalColumn;if(f.name!=null){p=this._names.indexOf(f.name);l+=n.encode(p-o);o=p}}c+=l}return c};o.prototype._generateSourcesContent=function e(t,r){return t.map(function(e){if(!this._sourcesContents){return null}if(r!=null){e=i.relative(r,e)}var t=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)};o.prototype.toJSON=function e(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){t.file=this._file}if(this._sourceRoot!=null){t.sourceRoot=this._sourceRoot}if(this._sourcesContents){t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)}return t};o.prototype.toString=function e(){return JSON.stringify(this.toJSON())};r.SourceMapGenerator=o},{"./array-set":248,"./base64-vlq":249,"./mapping-list":252,"./util":257}],256:[function(e,t,r){var n=e("./source-map-generator").SourceMapGenerator;var i=e("./util");var s=/(\r?\n)/;var a=10;var o="$$$isSourceNode$$$";function u(e,t,r,n,i){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=t==null?null:t;this.source=r==null?null:r;this.name=i==null?null:i;this[o]=true;if(n!=null)this.add(n)}u.fromStringWithSourceMap=function e(t,r,n){var a=new u;var o=t.split(s);var c=0;var l=function(){var e=r();var t=r()||"";return e+t;function r(){return c<o.length?o[c++]:undefined}};var f=1,p=0;var h=null;r.eachMapping(function(e){if(h!==null){if(f<e.generatedLine){m(h,l());f++;p=0}else{var t=o[c];var r=t.substr(0,e.generatedColumn-p);o[c]=t.substr(e.generatedColumn-p);p=e.generatedColumn;m(h,r);h=e;return}}while(f<e.generatedLine){a.add(l());f++}if(p<e.generatedColumn){var t=o[c];a.add(t.substr(0,e.generatedColumn));o[c]=t.substr(e.generatedColumn);p=e.generatedColumn}h=e},this);if(c<o.length){if(h){m(h,l())}a.add(o.splice(c).join(""))}r.sources.forEach(function(e){var t=r.sourceContentFor(e);if(t!=null){if(n!=null){e=i.join(n,e)}a.setSourceContent(e,t)}});return a;function m(e,t){if(e===null||e.source===undefined){a.add(t)}else{var r=n?i.join(n,e.source):e.source;a.add(new u(e.originalLine,e.originalColumn,r,t,e.name))}}};u.prototype.add=function e(t){if(Array.isArray(t)){t.forEach(function(e){this.add(e)},this)}else if(t[o]||typeof t==="string"){if(t){this.children.push(t)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t)}return this};u.prototype.prepend=function e(t){if(Array.isArray(t)){for(var r=t.length-1;r>=0;r--){this.prepend(t[r])}}else if(t[o]||typeof t==="string"){this.children.unshift(t)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t)}return this};u.prototype.walk=function e(t){var r;for(var n=0,i=this.children.length;n<i;n++){r=this.children[n];if(r[o]){r.walk(t)}else{if(r!==""){t(r,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};u.prototype.join=function e(t){var r;var n;var i=this.children.length;if(i>0){r=[];for(n=0;n<i-1;n++){r.push(this.children[n]);r.push(t)}r.push(this.children[n]);this.children=r}return this};u.prototype.replaceRight=function e(t,r){var n=this.children[this.children.length-1];if(n[o]){n.replaceRight(t,r)}else if(typeof n==="string"){this.children[this.children.length-1]=n.replace(t,r)}else{this.children.push("".replace(t,r))}return this};u.prototype.setSourceContent=function e(t,r){this.sourceContents[i.toSetString(t)]=r};u.prototype.walkSourceContents=function e(t){for(var r=0,n=this.children.length;r<n;r++){if(this.children[r][o]){this.children[r].walkSourceContents(t)}}var s=Object.keys(this.sourceContents);for(var r=0,n=s.length;r<n;r++){t(i.fromSetString(s[r]),this.sourceContents[s[r]])}};u.prototype.toString=function e(){var t="";this.walk(function(e){t+=e});return t};u.prototype.toStringWithSourceMap=function e(t){var r={code:"",line:1,column:0};var i=new n(t);var s=false;var o=null;var u=null;var c=null;var l=null;this.walk(function(e,t){r.code+=e;if(t.source!==null&&t.line!==null&&t.column!==null){if(o!==t.source||u!==t.line||c!==t.column||l!==t.name){i.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name})}o=t.source;u=t.line;c=t.column;l=t.name;s=true}else if(s){i.addMapping({generated:{line:r.line,column:r.column}});o=null;s=false}for(var n=0,f=e.length;n<f;n++){if(e.charCodeAt(n)===a){r.line++;r.column=0;if(n+1===f){o=null;s=false}else if(s){i.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name})}}else{r.column++}}});this.walkSourceContents(function(e,t){i.setSourceContent(e,t)});return{code:r.code,map:i}};r.SourceNode=u},{"./source-map-generator":255,"./util":257}],257:[function(e,t,r){function n(e,t,r){if(t in e){return e[t]}else if(arguments.length===3){return r}else{throw new Error('"'+t+'" is a required argument.')}}r.getArg=n;var i=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/;var s=/^data:.+\,.+$/;function a(e){var t=e.match(i);if(!t){return null}return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}r.urlParse=a;function o(e){var t="";if(e.scheme){t+=e.scheme+":"}t+="//";if(e.auth){t+=e.auth+"@"}if(e.host){t+=e.host}if(e.port){t+=":"+e.port}if(e.path){t+=e.path}return t}r.urlGenerate=o;function u(e){var t=e;var n=a(e);if(n){if(!n.path){return e}t=n.path}var i=r.isAbsolute(t);var s=t.split(/\/+/);for(var u,c=0,l=s.length-1;l>=0;l--){u=s[l];if(u==="."){s.splice(l,1)}else if(u===".."){c++}else if(c>0){if(u===""){s.splice(l+1,c);c=0}else{s.splice(l,2);c--}}}t=s.join("/");if(t===""){t=i?"/":"."}if(n){n.path=t;return o(n)}return t}r.normalize=u;function c(e,t){if(e===""){e="."}if(t===""){t="."}var r=a(t);var n=a(e);if(n){e=n.path||"/"}if(r&&!r.scheme){if(n){r.scheme=n.scheme}return o(r)}if(r||t.match(s)){return t}if(n&&!n.host&&!n.path){n.host=t;return o(n)}var i=t.charAt(0)==="/"?t:u(e.replace(/\/+$/,"")+"/"+t);if(n){n.path=i;return o(n)}return i}r.join=c;r.isAbsolute=function(e){return e.charAt(0)==="/"||!!e.match(i)};function l(e,t){if(e===""){e="."}e=e.replace(/\/$/,"");var r=0;while(t.indexOf(e+"/")!==0){var n=e.lastIndexOf("/");if(n<0){return t}e=e.slice(0,n);if(e.match(/^([^\/]+:\/)?\/*$/)){return t}++r}return Array(r+1).join("../")+t.substr(e.length+1)}r.relative=l;var f=function(){var e=Object.create(null);return!("__proto__"in e)}();function p(e){return e}function h(e){if(d(e)){return"$"+e}return e}r.toSetString=f?p:h;function m(e){if(d(e)){return e.slice(1)}return e}r.fromSetString=f?p:m;function d(e){if(!e){return false}var t=e.length;if(t<9){return false}if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95){return false}for(var r=t-10;r>=0;r--){if(e.charCodeAt(r)!==36){return false}}return true}function E(e,t,r){var n=e.source-t.source;if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0||r){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0){return n}n=e.generatedLine-t.generatedLine;if(n!==0){return n}return e.name-t.name}r.compareByOriginalPositions=E;function g(e,t,r){var n=e.generatedLine-t.generatedLine;if(n!==0){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0||r){return n}n=e.source-t.source;if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0){return n}return e.name-t.name}r.compareByGeneratedPositionsDeflated=g;function y(e,t){if(e===t){return 0}if(e>t){return 1}return-1}function _(e,t){var r=e.generatedLine-t.generatedLine;if(r!==0){return r}r=e.generatedColumn-t.generatedColumn;if(r!==0){return r}r=y(e.source,t.source);if(r!==0){return r}r=e.originalLine-t.originalLine;if(r!==0){return r}r=e.originalColumn-t.originalColumn;if(r!==0){return r}return y(e.name,t.name)}r.compareByGeneratedPositionsInflated=_},{}],258:[function(e,t,r){r.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator;r.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer;r.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":254,"./lib/source-map-generator":255,"./lib/source-node":256}],259:[function(e,t,r){"use strict";var n={}.hasOwnProperty;function i(e,t){if(!t){return e}return e.replace(/\$\{([^}]+)}/g,function(e,r){if(n.call(t,r)){return t[r]}return e})}t.exports=i},{}],260:[function(e,t,r){"use strict";var n=e("./src/Library"),i=e("./src/Transpiler");t.exports=new n(i)},{"./src/Library":261,"./src/Transpiler":262}],261:[function(e,t,r){"use strict";var n=e("microdash");function i(e){this.Transpiler=e}n.extend(i.prototype,{create:function(e){return new this.Transpiler(e)}});t.exports=i},{microdash:79}],262:[function(e,t,r){"use strict";var n=e("microdash"),i={}.hasOwnProperty;function s(e){this.spec=e}n.extend(s.prototype,{transpile:function(e,t,r){var s=this,a,o,u=s.spec;if(!r){r={}}if(!r.nodes){r.nodes={}}if(!i.call(e,"name")){throw new Error("Transpiler.transpile() :: Invalid AST node provided")}if(arguments.length===1){t=null}o=e.name;if(!i.call(u.nodes,o)&&!i.call(r.nodes,o)){throw new Error('Transpiler.transpile() :: Spec does not define how to handle node "'+o+'"')}a=r.nodes[o]||u.nodes[o];function c(e){return function(i,a){if(arguments.length===1){a=t}else if(a&&typeof a==="object"){a=n.extend({},t,a)}if(n.isString(i)){return i}else{return s.transpile(i,a,e?r:null)}}}return a.call(s,e,c(true),t,c(false))}});t.exports=s},{microdash:79}],263:[function(e,t,r){if(typeof Object.create==="function"){t.exports=function e(t,r){t.super_=r;t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}else{t.exports=function e(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype;t.prototype=new n;t.prototype.constructor=t}}},{}],264:[function(e,t,r){t.exports=function e(t){return t&&typeof t==="object"&&typeof t.copy==="function"&&typeof t.fill==="function"&&typeof t.readUInt8==="function"}},{}],265:[function(e,t,r){(function(t,n){var i=/%[sdj%]/g;r.format=function(e){if(!A(e)){var t=[];for(var r=0;r<arguments.length;r++){t.push(o(arguments[r]))}return t.join(" ")}var r=1;var n=arguments;var s=n.length;var a=String(e).replace(i,function(e){if(e==="%%")return"%";if(r>=s)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}});for(var u=n[r];r<s;u=n[++r]){if(_(u)||!b(u)){a+=" "+u}else{a+=" "+o(u)}}return a};r.deprecate=function(e,i){if(T(n.process)){return function(){return r.deprecate(e,i).apply(this,arguments)}}if(t.noDeprecation===true){return e}var s=false;function a(){if(!s){if(t.throwDeprecation){throw new Error(i)}else if(t.traceDeprecation){console.trace(i)}else{console.error(i)}s=true}return e.apply(this,arguments)}return a};var s={};var a;r.debuglog=function(e){if(T(a))a=t.env.NODE_DEBUG||"";e=e.toUpperCase();if(!s[e]){if(new RegExp("\\b"+e+"\\b","i").test(a)){var n=t.pid;s[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else{s[e]=function(){}}}return s[e]};function o(e,t){var n={seen:[],stylize:c};if(arguments.length>=3)n.depth=arguments[2];if(arguments.length>=4)n.colors=arguments[3];if(y(t)){n.showHidden=t}else if(t){r._extend(n,t)}if(T(n.showHidden))n.showHidden=false;if(T(n.depth))n.depth=2;if(T(n.colors))n.colors=false;if(T(n.customInspect))n.customInspect=true;if(n.colors)n.stylize=u;return f(n,e,n.depth)}r.inspect=o;o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(e,t){var r=o.styles[t];if(r){return"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m"}else{return e}}function c(e,t){return e}function l(e){var t={};e.forEach(function(e,r){t[e]=true});return t}function f(e,t,n){if(e.customInspect&&t&&F(t.inspect)&&t.inspect!==r.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(n,e);if(!A(i)){i=f(e,i,n)}return i}var s=p(e,t);if(s){return s}var a=Object.keys(t);var o=l(a);if(e.showHidden){a=Object.getOwnPropertyNames(t)}if(x(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0)){return h(t)}if(a.length===0){if(F(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(C(t)){return e.stylize(RegExp.prototype.toString.call(t),"regexp")}if(D(t)){return e.stylize(Date.prototype.toString.call(t),"date")}if(x(t)){return h(t)}}var c="",y=false,_=["{","}"];if(g(t)){y=true;_=["[","]"]}if(F(t)){var v=t.name?": "+t.name:"";c=" [Function"+v+"]"}if(C(t)){c=" "+RegExp.prototype.toString.call(t)}if(D(t)){c=" "+Date.prototype.toUTCString.call(t)}if(x(t)){c=" "+h(t)}if(a.length===0&&(!y||t.length==0)){return _[0]+c+_[1]}if(n<0){if(C(t)){return e.stylize(RegExp.prototype.toString.call(t),"regexp")}else{return e.stylize("[Object]","special")}}e.seen.push(t);var N;if(y){N=m(e,t,n,o,a)}else{N=a.map(function(r){return d(e,t,n,o,r,y)})}e.seen.pop();return E(N,c,_)}function p(e,t){if(T(t))return e.stylize("undefined","undefined");if(A(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(N(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(_(t))return e.stylize("null","null")}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,i){var s=[];for(var a=0,o=t.length;a<o;++a){if(P(t,String(a))){s.push(d(e,t,r,n,String(a),true))}else{s.push("")}}i.forEach(function(i){if(!i.match(/^\d+$/)){s.push(d(e,t,r,n,i,true))}});return s}function d(e,t,r,n,i,s){var a,o,u;u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]};if(u.get){if(u.set){o=e.stylize("[Getter/Setter]","special")}else{o=e.stylize("[Getter]","special")}}else{if(u.set){o=e.stylize("[Setter]","special")}}if(!P(n,i)){a="["+i+"]"}if(!o){if(e.seen.indexOf(u.value)<0){if(_(r)){o=f(e,u.value,null)}else{o=f(e,u.value,r-1)}if(o.indexOf("\n")>-1){if(s){o=o.split("\n").map(function(e){return" "+e}).join("\n").substr(2)}else{o="\n"+o.split("\n").map(function(e){return" "+e}).join("\n")}}}else{o=e.stylize("[Circular]","special")}}if(T(a)){if(s&&i.match(/^\d+$/)){return o}a=JSON.stringify(""+i);if(a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){a=a.substr(1,a.length-2);a=e.stylize(a,"name")}else{a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");a=e.stylize(a,"string")}}return a+": "+o}function E(e,t,r){var n=0;var i=e.reduce(function(e,t){n++;if(t.indexOf("\n")>=0)n++;return e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(i>60){return r[0]+(t===""?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]}return r[0]+t+" "+e.join(", ")+" "+r[1]}function g(e){return Array.isArray(e)}r.isArray=g;function y(e){return typeof e==="boolean"}r.isBoolean=y;function _(e){return e===null}r.isNull=_;function v(e){return e==null}r.isNullOrUndefined=v;function N(e){return typeof e==="number"}r.isNumber=N;function A(e){return typeof e==="string"}r.isString=A;function S(e){return typeof e==="symbol"}r.isSymbol=S;function T(e){return e===void 0}r.isUndefined=T;function C(e){return b(e)&&O(e)==="[object RegExp]"}r.isRegExp=C;function b(e){return typeof e==="object"&&e!==null}r.isObject=b;function D(e){return b(e)&&O(e)==="[object Date]"}r.isDate=D;function x(e){return b(e)&&(O(e)==="[object Error]"||e instanceof Error)}r.isError=x;function F(e){return typeof e==="function"}r.isFunction=F;function I(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}r.isPrimitive=I;r.isBuffer=e("./support/isBuffer");function O(e){return Object.prototype.toString.call(e)}function w(e){return e<10?"0"+e.toString(10):e.toString(10)}var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var e=new Date;var t=[w(e.getHours()),w(e.getMinutes()),w(e.getSeconds())].join(":");return[e.getDate(),B[e.getMonth()],t].join(" ")}r.log=function(){console.log("%s - %s",R(),r.format.apply(r,arguments))};r.inherits=e("inherits");r._extend=function(e,t){if(!t||!b(t))return e;var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e};function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}).call(this,e("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./support/isBuffer":264,_process:246,inherits:263}]},{},[1])(1)});
|