imba-source 0.12.1 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/imba/source/version.rb +1 -1
- data/vendor/imba/lib/browser/imba.js +2631 -1347
- data/vendor/imba/lib/browser/imba.min.js +19 -13
- data/vendor/imba/lib/browser/imbac.js +1726 -2805
- data/vendor/imba/lib/browser/imbac.min.js +80 -1331
- data/vendor/imba/lib/browser/imbac.worker.js +15814 -0
- data/vendor/imba/lib/browser/imbac.worker.min.js +2033 -0
- metadata +4 -2
@@ -0,0 +1,2033 @@
|
|
1
|
+
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ImbaWorker = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
2
|
+
!function(){var e=require("./errors"),r=require("./lexer"),a=require("./rewriter"),n=require("./parser").parser,o=require("./nodes"),s=new r.Lexer;a.Rewriter;n.lexer=s.jisonBridge(),n.yy=o;var t={};return t.tokenize=function(e,r){void 0===r&&(r={});try{return r._source=e,s.reset(),s.tokenize(e,r)}catch(a){throw a}},t.parse=function(e,r){void 0===r&&(r={});var a=e instanceof Array?e:t.tokenize(e,r);try{return r._source=e,r._tokens=a,n.parse(a)}catch(o){throw r.filename&&(o._filename=r.filename),o}},t.compile=function(r,a){void 0===a&&(a={});try{var n=t.parse(r,a),o=n.compile(a);return{code:o.toString(),sourcemap:o.sourcemap}}catch(s){return s instanceof e.ImbaParseError||(s=s.lexer?new e.ImbaParseError(s,{tokens:s.lexer.tokens,pos:s.lexer.pos}):{message:s.message}),s instanceof e.ImbaParseError&&(s=s.toJSON()),{error:s}}},t.analyze=function(r,a){void 0===a&&(a={});var n;try{var o=this.parse(r,a);n=o.analyze({loglevel:0})}catch(s){s instanceof e.ImbaParseError||(s=s.lexer?new e.ImbaParseError(s,{tokens:s.lexer.tokens,pos:s.lexer.pos}):{message:s.message}),s instanceof e.ImbaParseError&&(s=s.toJSON()),n={warnings:[s]}}return n},onmessage=function(e){var r=e.data,a=r.id;if(t[r[0]]instanceof Function){var n=t[r[0]],o=n.apply(t,r.slice(1));return postMessage({id:a,data:o})}}}();
|
3
|
+
},{"./errors":2,"./lexer":4,"./nodes":5,"./parser":6,"./rewriter":7}],2:[function(require,module,exports){
|
4
|
+
!function(){function t(t,o){for(var r in o)o.hasOwnProperty(r)&&(t[r]=o[r]);t.prototype=Object.create(o.prototype),t.__super__=t.prototype.__super__=o.prototype,t.prototype.initialize=t.prototype.constructor=t}function o(t,o){this.error=t,this.message=t.message,this.filename=t.filename,this.line=t.line,this._options=o||{}}return t(o,Error),exports.ImbaParseError=o,o.wrap=function(t){return new o(t)},o.prototype.set=function(t){this._options||(this._options={});for(var o=0,r=Object.keys(t),e=r.length;e>o;o++)this._options[r[o]]=t[r[o]];return this},o.prototype.start=function(){for(var t=this._options,o=t.pos-1,r=t.tokens&&t.tokens[o];r&&-1==r._loc;)r=t.tokens[--o];return r},o.prototype.desc=function(){var t=this._options,o=this.message;return t.token&&-1==t.token._loc?"Syntax Error":o},o.prototype.loc=function(){var t;return(t=this.start())&&t.region&&t.region()},o.prototype.toJSON=function(){this._options,this.start();return{warn:!0,message:this.desc(),loc:this.loc()}},o}();
|
5
|
+
},{}],3:[function(require,module,exports){
|
6
|
+
!function(){function n(n){var e=n.match(/\n/);return e?"{"+n+"\n}":"{\n"+n+"\n}"}function e(n){for(var e,r,t=/\n+([^\n\S]*)/g,o=null;e=t.exec(n);){var u=e[1];(null==o||0<(r=u.length)&&r<o.length)&&(o=u)}return o&&(n=n.replace(RegExp("\\n"+o,"g"),"\n")),n}function r(n){var e=[];return n.forEach(function(n){return n instanceof Array?e.push.apply(e,r(n)):e.push(n)}),e}function t(n){return n.replace(/(^|[\-\_\s])(\w)/g,function(n,e,r){return r.toUpperCase()})}function o(n){return n=String(n),n.replace(/([\-\_\s])(\w)/g,function(n,e,r){return r.toUpperCase()})}function u(n){var n=n.replace(/([\-\s])(\w)/g,"_");return n.replace(/()([A-Z])/g,"_$1",function(n,e,r){return r.toUpperCase()})}function a(n){return o("set-"+n)}function p(n){return'"'+n+'"'}function s(n){return"'"+n+"'"}function c(n){n=String(n);var e=n.charAt(n.length-1);return"="==e&&(n="set"+n[0].toUpperCase()+n.slice(1,-1)),n.indexOf("-")>=0&&(n=n.replace(/([\-\s])(\w)/g,function(n,e,r){return r.toUpperCase()})),n}function i(n){return String(n).replace(/^/g," ").replace(/\n/g,"\n ").replace(/\n\t$/g,"\n")}function l(n,e){return void 0===e&&(e=!0),e&&(n="\n"+i(n)+"\n"),"{"+n+"}"}function f(n){return"("+String(n)+")"}function g(n){for(var e,r=(n.split(/\n/g),[]),t=0,o=0,u=0;e=n[t];)r[t]=[u,o],"\n"==e?(u++,o=0):o++,t++;return r}function x(n,e){return this}return exports.brace=n,exports.normalizeIndentation=e,exports.flatten=r,exports.pascalCase=t,exports.camelCase=o,exports.snakeCase=u,exports.setterSym=a,exports.quote=p,exports.singlequote=s,exports.symbolize=c,exports.indent=i,exports.bracketize=l,exports.parenthesize=f,exports.locationToLineColMap=g,exports.markLineColForTokens=x,x}();
|
7
|
+
},{}],4:[function(require,module,exports){
|
8
|
+
!function(){function t(t,e){return e&&e.indexOf?e.indexOf(t):[].indexOf.call(t,e)}function e(t){return t?t.toArray?t.toArray():t:[]}function n(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=Object.create(e.prototype),t.__super__=t.prototype.__super__=e.prototype,t.prototype.initialize=t.prototype.constructor=t}function s(t,e,n){return this.message=t,this.file=e,this.line=n,this}function i(t,e){return void 0===e&&(e=0),t[t.length-e-1]}function r(t,e){return t.split(e).length-1}function h(t,e){for(var n="";e>0;)e%2==1&&(n+=t),t+=t,e>>=1;return n}function o(){this.reset()}var a,u=require("./token"),l=u.Token,c=require("./rewriter"),p=c.Rewriter,_=c.INVERSES,f=require("./errors"),T=["true","false","null","this","delete","typeof","in","instanceof","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","return"],E=["undefined","then","unless","until","loop","of","by","when","def","tag","do","elif","begin","var","let","self","await","import"],k=["extend","static","local","export","global","prop"],d={and:"&&",or:"||",is:"==",isnt:"!=",not:"!",yes:"true",no:"false",isa:"instanceof","case":"switch",nil:"null"},g=Object.keys(d);E=E.concat(g),module.exports.ALL_KEYWORDS=a=["true","false","null","this","delete","typeof","in","instanceof","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","return","undefined","then","unless","until","loop","of","by","when","def","tag","do","elif","begin","var","let","self","await","import","and","or","is","isnt","not","yes","no","isa","case","nil"];var R=["case","default","function","void","with","const","enum","native"],A=(T.concat(R),/^((([\x23]?[\$A-Za-z_\x7f-\uffff][$\-\w\x7f-\uffff]*)([\=]?))|(<=>|\|(?![\|=])))/),N=/^((\$|@@|@|\#)[\wA-Za-z_\-\x7f-\uffff][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*|[$A-Za-z_][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*)([^\n\S]*:(?![\*\=:$\w\x7f-\uffff]))?/,S=/^((\$|@@|@|)[$A-Za-z_\x7f-\uffff\-][$\w\x7f-\uffff\-]*)([^\n\S\s]*:(?![\*\=:$\w\x7f-\uffff]))/,O=/^(\<|%)(?=[A-Za-z\#\.\{\@\>])/,I=/^(\w[\w\d]*:)?(\w[\w\d]*)(-[\w\d]+)*/,v=/^#((\w[\w\d]*)(-[\w\d]+)*)/,x=/^([\.\:]?[\w\_]+([\-\:][\w]+)*)(\s)*\=/,y=/^([%\$]{1,2})([\(\w\#\.\[])/,D=/^(\#|\.|:|::)?([\w]+(\-[\w]+)*)/,L=/^ (\+|\>|\~)*\s*(?=[\w\.\#\:\{\*\[])/,G=/^\[([\w\_\-]+)(\$=|\~=|\^=|\*=|\|=|=|\!=)/,w=/^\:((([\*\@$\w\x7f-\uffff]+)+([\-\\/\\\:][\w\x7f-\uffff]+)*)|==|\<=\>|\[\]|\[\]\=|\*|[\\/,\\])/,b=/^0x[\da-f]+|^0b[01]+|^\d*\.?\d+(?:e[+-]?\d+)?/i,C=/^("""|''')([\s\S]*?)(?:\n[^\n\S]*)?\1/,M=/^(?:[-=]=>|===|->|!==|[-+*\/%<>&|^!?=]=|=<|>>>=?|([-+:])\1|([&|<>])\2=?|\?\.|\?\:|\.{2,3}|\*(?=[a-zA-Z\_]))/,F=/^[^\n\S]+/,m=/^###([^#][\s\S]*?)(?:###[^\n\S]*|(?:###)?$)/,U=/^(\s*)(#[ \t\!](.*)|#[ \t]?(?=\n|$))+/,P=/^[-=]=>/,$=/^(?:\n[^\n\S]*)+/,H=/^'[^\\']*(?:\\.[^\\']*)*'/,V=/^`[^\\`]*(?:\\.[^\\`]*)*`/,B=/^(\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)([imgy]{0,4})(?!\w)/,Y=/^\/{3}([\s\S]+?)\/{3}([imgy]{0,4})(?!\w)/,z=/\s+(?:#.*)?/g,q=/\n/g,X=/\n+([^\n\S]*)/g,K=/\*\//,W=/^\s*(?:,|\??\.(?![.\d])|::)/,Z=/^[A-Z]/,j=/^\$\d$/,J=["-=","+=","/=","*=","%=","||=","&&=","?=","<<=",">>=",">>>=","&=","^=","|=","=<"],Q=["!","~","NEW","TYPEOF","DELETE"],tt=["&&","||","&","|","^"],et=["<<",">>",">>>"],nt=["===","!==","==","!=","<",">","<=",">=","===","!=="],st=["<=>","<<",".."],it=["*","/","%","∪","∩","√"],rt=["IN","OF","INSTANCEOF","ISA"],ht=["NUMBER","REGEX","BOOL","TRUE","FALSE","++","--","]"],ot=["NUMBER","REGEX","BOOL","TRUE","FALSE","++","--","]",")","}","THIS","SELF","IDENTIFIER","STRING"],at=["\\",".","?.","?:","UNARY","MATH","+","-","SHIFT","RELATION","COMPARE","LOGIC","COMPOUND_ASSIGN","THROW","EXTENDS"],ut=["IDENTIFIER","STRING","REGEX",")","]","THIS","SUPER","TAG_END","IVAR","GVAR","SELF","CONST","NEW","ARGVAR","SYMBOL","RETURN"],lt=["IDENTIFIER","STRING","REGEX",")","]","THIS","SUPER","TAG_END","IVAR","GVAR","SELF","CONST","NEW","ARGVAR","SYMBOL","RETURN","NUMBER","BOOL","TAG_SELECTOR","IDREF","ARGUMENTS","}","TAG_TYPE"],ct=["INDENT","OUTDENT","TERMINATOR"];n(s,SyntaxError),exports.LexerError=s;var pt=u.typ,_t=u.val,ft=u.setTyp,Tt=u.setVal;return exports.Lexer=o,o.prototype.reset=function(){return this._code=null,this._chunk=null,this._opts=null,this._indent=0,this._indebt=0,this._outdebt=0,this._indents=[],this._ends=[],this._contexts=[],this._scopes=[],this._nextScope=null,this._tokens=[],this._seenFor=!1,this._loc=0,this._locOffset=0,this._end=null,this._char=null,this._bridge=null,this._last=null,this._lastTyp="",this._lastVal=null,this},o.prototype.jisonBridge=function(t){return this._bridge={lex:u.lex,setInput:function(t){return this.tokens=t,this.pos=0},upcomingInput:function(){return""}}},o.prototype.tokenize=function(t,e){if(void 0===e&&(e={}),0==t.length)return[];if(!e.inline){if(F.test(t)&&(t="\n"+t,t.match(/^\s*$/g)))return[];t=t.replace(/\r/g,"").replace(/[\t ]+$/g,"")}return this._last=null,this._lastTyp=null,this._lastVal=null,this._code=t,this._opts=e,this._locOffset=e.loc||0,e._tokens=this._tokens,e.profile&&console.time("tokenize:lexer"),this.parse(t),e.inline||this.closeIndentation(),!e.silent&&this._ends.length&&this.error("missing "+this._ends.pop()),e.profile&&console.timeEnd("tokenize:lexer"),0==e.rewrite||e.norewrite?this._tokens:(new p).rewrite(this._tokens,e)},o.prototype.parse=function(t){for(var e=0,n=0;this._chunk=t.slice(e);)this._loc=this._locOffset+e,n="TAG"==this._end&&this.tagDefContextToken()||this._inTag&&this.tagContextToken()||this.basicContext(),e+=n},o.prototype.basicContext=function(){return this.selectorToken()||this.symbolToken()||this.methodNameToken()||this.identifierToken()||this.whitespaceToken()||this.lineToken()||this.commentToken()||this.heredocToken()||this.tagToken()||this.stringToken()||this.numberToken()||this.regexToken()||this.jsToken()||this.literalToken()||0},o.prototype.moveCaret=function(t){return this._loc+=t},o.prototype.context=function(){return this._ends[this._ends.length-1]},o.prototype.inContext=function(t){var e=this._contexts[this._contexts.length-1];return e&&e[t]},o.prototype.pushEnd=function(t){return this._ends.push(t),this._contexts.push(null),this._end=t,this.refreshScope(),this},o.prototype.popEnd=function(t){return this._ends.pop(),this._contexts.pop(),this._end=this._ends[this._ends.length-1],this.refreshScope(),this},o.prototype.refreshScope=function(){var t=this._ends[this._ends.length-1],e=this._ends[this._ends.length-2];return this._inTag="TAG_END"==t||"TAG_END"==e&&"OUTDENT"==t},o.prototype.queueScope=function(t){return this._scopes[this._indents.length]=t,this},o.prototype.popScope=function(t){return this._scopes.pop(),this},o.prototype.getScope=function(){return this._scopes[this._indents.length-1]},o.prototype.scope=function(t,e){this._ends.push(this._end=t);return this._contexts.push(e||null),t},o.prototype.closeSelector=function(){return"%"==this._end?(this.token("SELECTOR_END","%",0),this.pair("%")):void 0},o.prototype.openDef=function(){return this.pushEnd("DEF")},o.prototype.closeDef=function(){if("DEF"==this.context()){var t=i(this._tokens);if("DEF_FRAGMENT"==pt(t));else if("TERMINATOR"==pt(t)){var e=this._tokens.pop();this.token("DEF_BODY","DEF_BODY",0),this._tokens.push(e)}else this.token("DEF_BODY","DEF_BODY",0);this.pair("DEF")}},o.prototype.tagContextToken=function(){var t;if("#"==this._chunk[0])return this.token("#","#",1),1;if(t=x.exec(this._chunk)){"TAG_NAME"!=this._lastTyp&&("TERMINATOR"==this._lastTyp||this.token(",",","));var e=t[0].length;return this.token("TAG_ATTR",t[1],e-1),this._loc+=e-1,this.token("=","=",1),e}return 0},o.prototype.tagDefContextToken=function(){var t;if(t=I.exec(this._chunk))return this.token("TAG_TYPE",t[0],t[0].length),t[0].length;if(t=v.exec(this._chunk)){var e=t[0];return this.token("TAG_ID",e,e.length),e.length}return 0},o.prototype.tagToken=function(){var t,n;if(!(t=O.exec(this._chunk)))return 0;var n=e(t),s=n[0],i=n[1],r=n[2];if("<"==i){if(this.token("TAG_START","<",1),this.pushEnd(_.TAG_START),(t=I.exec(this._chunk.substr(1,40)))&&"self"!=t[0])return this.token("TAG_TYPE",t[0],t[0].length,1),s.length+t[0].length;if(r){if("{"==r.substr(0,1))return i.length;this.token("TAG_NAME",s.substr(1),0)}}return s.length},o.prototype.selectorToken=function(){var n,s;if("%"==this._end){var i=this._chunk.charAt(0),r=this.inContext("open");if(r&&(" "==i||"\n"==i||","==i||"+"==i||"~"==i||")"==i||"]"==i))return this.token("SELECTOR_END","%",0),this.pair("%"),0;if(s=L.exec(this._chunk))return this.token("SELECTOR_COMBINATOR",s[1]||" ",s[0].length),s[0].length;if(s=D.exec(this._chunk)){var h=s[1],o=s[2];switch(h){case".":a="SELECTOR_CLASS";break;case"#":a="SELECTOR_ID";break;case":":a="SELECTOR_PSEUDO_CLASS";break;case"::":a="SELECTOR_PSEUDO_CLASS";break;default:var a="SELECTOR_TAG"}return this.token(a,s[2],s[0].length),s[0].length}if("["==i){if(this.token("[","[",1),this.pushEnd("]"),s=G.exec(this._chunk)){var u=s[0].indexOf(s[1]),l=s[0].indexOf(s[2]);return this.token("IDENTIFIER",s[1],s[1].length,u),this.token("SELECTOR_ATTR_OP",s[2],s[2].length,l),s[0].length}return 1}if("|"==i){var c=this._tokens[this._tokens.length-1];return ft(c,"SELECTOR_NS"),1}if(","==i)return this.token("SELECTOR_GROUP",",",1),1;if("*"==i)return this.token("UNIVERSAL_SELECTOR","*",1),1;if(")"==i)return this.pair("%"),this.token("SELECTOR_END",")",1),1;if(t(i,[")","}","]",""])>=0)return this.pair("%"),0}if(!(s=y.exec(this._chunk)))return 0;var n=e(s),o=(n[0],n[1]),p=n[2];return"("==p?(this.token("SELECTOR_START",o,o.length+1),this.pushEnd("%"),o.length+1):"%"==o?"%"==this.context()?1:(this.token("SELECTOR_START",o,o.length),this.scope("%",{open:!0}),o.length):0},o.prototype.methodNameToken=function(){if(" "==this._chunk.charAt(0))return 0;var t;if(")"==this._end){var e=this._ends[this._ends.length-2];if("%"==e&&(t=x.exec(this._chunk)))return this.token("TAG_ATTR_SET",t[1]),t[0].length}if(!(t=A.exec(this._chunk)))return 0;var n=t[0].length,s=t[0],i=this._lastTyp,r="IDENTIFIER",h=s.charAt(0),o=!1,a=t[4];return"."==i||"DEF"==i||"!"==a||"?"==a||t[5]?"self"==s||"this"==s||"super"==s?0:("new"==s&&(r="NEW"),"..."==s&&[",","(","CALL_START","BLOCK_PARAM_START","PARAM_START"].indexOf(i)>=0?0:"|"==s?"("==i||"CALL_START"==i?(this.token("DO","DO",0),this.pushEnd("|"),this.token("BLOCK_PARAM_START",s,1),n):"DO"==i||"{"==i?(this.pushEnd("|"),this.token("BLOCK_PARAM_START",s,1),n):"|"==this._ends[this._ends.length-1]?(this.token("BLOCK_PARAM_END","|",1),this.pair("|"),n):0:["&","^","<<","<<<",">>"].indexOf(s)>=0||"|"==s&&"|"!=this.context()?0:(st.indexOf(s)>=0&&(o=!0),"@"==h?r="IVAR":"$"==h||("#"==h?r="TAGID":(Z.test(h)||"require"==s||"global"==s||"exports"==s)&&(r="CONST")),t[5]&&["IDENTIFIER","CONST","GVAR","CVAR","IVAR","SELF","THIS","]","}",")","NUMBER","STRING","IDREF"].indexOf(i)>=0&&this.token(".",".",0),this.token(r,s,n),o&&(this._last.spaced=!0),n)):0},o.prototype.inTag=function(){var t=this._ends.length;if(t>0){var e=this._ends[t-1],n=t>1?this._ends[t-2]:e;return"TAG_END"==e||"TAG_END"==n&&"OUTDENT"==e}return!1},o.prototype.isKeyword=function(t){if("attr"==t||"prop"==t){var e=this.getScope(),n="CLASS"==e||"TAG"==e;if(n)return!0}return a.indexOf(t)>=0},o.prototype.identifierToken=function(){var n,s,r,h=this._ends[this._ends.length-1],o=this._ends[this._ends.length-2],a=!1,u="TAG_END"==h||"TAG_END"==o&&"OUTDENT"==h;if(u&&(s=x.exec(this._chunk))){"TAG_NAME"!=this._lastTyp&&("TERMINATOR"==this._lastTyp||this.token(",",","));var l=s[0].length;return this.token("TAG_ATTR",s[1],l-1),this._loc+=l-1,this.token("=","=",1),l}if(s=S.exec(this._chunk)){var c=s[1];return r="IDENTIFIER",this.token(r,c,c.length),this.moveCaret(c.length),this.token(":",":",s[3].length),this.moveCaret(-c.length),s[0].length}if(!(s=N.exec(this._chunk)))return 0;var n=e(s),p=n[0],c=n[1],r=n[2],_=(n[3],n[4],n[5]),f=c.length;if("own"==c&&"FOR"==this.lastTokenType())return this.token("OWN",c,c.length),c.length;var T,E=i(this._tokens),R=this._lastTyp;T=_||"."==R||"?."==R,_&&"?"==R&&(T=!1),"tag"==c&&0==this._chunk.indexOf("tag(")&&(T=!0);var A=!1;if("$"==r&&j.test(c))"$0"==c?r="ARGUMENTS":(r="ARGVAR",c=c.substr(1));else if("@"==r)r="IVAR";else if("#"==r)r="IDENTIFIER",this.token("#","#"),c=c.substr(1);else if("@@"==r)r="CVAR";else if("$"!=r||_)if(Z.test(c)||"require"==c||"global"==c||"exports"==c)r="CONST";else{if("elif"==c)return this.token("ELSE","elif",c.length),this.token("IF","if"),c.length;r="IDENTIFIER"}else r="IDENTIFIER";if(!T&&(A=this.isKeyword(c))&&(r=c.toUpperCase(),a=!0,"YES"==r?r="TRUE":"NO"==r?r="FALSE":"NIL"==r?r="NULL":"VAR"==r?"export"==this._lastVal&&ft(E,"EXPORT"):"IF"==r||"ELSE"==r||"TRUE"==r||"FALSE"==r||"NULL"==r||("TAG"==r?this.pushEnd("TAG"):"DEF"==r?this.openDef():"DO"==r?"DEF"==this.context()&&this.closeDef():"WHEN"==r&&ct.indexOf(this.lastTokenType())>=0?r="LEADING_WHEN":"FOR"==r?this._seenFor=!0:"UNLESS"==r?r="IF":Q.indexOf(r)>=0?r="UNARY":rt.indexOf(r)>=0&&("INSTANCEOF"!=r&&"ISA"!=r&&this._seenFor?(r="FOR"+r,this._seenFor=!1):(r="RELATION","!"==String(this.value())&&(this._tokens.pop(),c="!"+c))))),"super"==c&&(r="SUPER"),!T)switch(A&&g.indexOf(c)>=0&&(c=d[c]),c){case"!":r="UNARY";break;case"==":case"!=":case"===":case"!==":r="COMPARE";break;case"&&":case"||":r="LOGIC";break;case"break":case"continue":case"debugger":case"arguments":r=c.toUpperCase()}var O=p.length;if("CLASS"==r||"DEF"==r||"TAG"==r){this.queueScope(r);for(var I=this._tokens.length;I;){E=this._tokens[--I];var v=""+_t(E);if(!(t(v,k)>=0))break;ft(E,v.toUpperCase())}}else"IF"==r?this.queueScope(r):"IMPORT"==r?this.pushEnd("IMPORT"):"from"==c&&"IMPORT"==h?(r="FROM",this.pair("IMPORT")):"as"==c&&"IMPORT"==h&&(r="AS",this.pair("IMPORT"));return"IDENTIFIER"==r&&"CATCH"==R&&(r="CATCH_VAR"),_?(this.token(r,c,f),this.moveCaret(f),this.token(":",":",_.length),this.moveCaret(-f)):this.token(r,c,f),O},o.prototype.numberToken=function(){var t,e,n,s;if(!(e=b.exec(this._chunk)))return 0;n=e[0],s=n.length,(t=/0b([01]+)/.exec(n))&&(n=""+parseInt(t[1],2));var r=i(this._tokens);return"."==e[0][0]&&r&&!r.spaced&&["IDENTIFIER",")","}","]","NUMBER"].indexOf(pt(r))>=0&&(this.token(".","."),n=n.substr(1)),this.token("NUMBER",n,s),s},o.prototype.symbolToken=function(){var e,n,s;if(!(e=w.exec(this._chunk)))return 0;if(n=e[0].substr(1),s=i(this._tokens),s&&!s.spaced&&-1==t(pt(s),["(","{","[",".","CALL_START","INDEX_START",",","=","INDENT","TERMINATOR"])){this.token(".:",":",1);var r=n.split(/[\:\\\/]/)[0];return this.token("IDENTIFIER",r,r.length,1),r.length+1}return this.token("SYMBOL",n,e[0].length),e[0].length},o.prototype.escapeStr=function(t,e,n){if(t=t.replace(q,e?"\\n":""),n){var s=RegExp("\\\\["+n+"]","g");t=t.replace(s,n),t=t.replace(RegExp(""+n,"g"),"\\$&")}return t},o.prototype.stringToken=function(){var t,e;switch(this._chunk.charAt(0)){case"'":if(!(t=H.exec(this._chunk)))return 0;e=t[0],this.token("STRING",this.escapeStr(e),e.length);break;case'"':if(!(e=this.balancedString(this._chunk,'"')))return 0;if(e.indexOf("{")>=0){var n=e.length;this.token("STRING_START",e.charAt(0),1),this.interpolateString(e.slice(1,-1)),this.token("STRING_END",e.charAt(n-1),1,e.length-1)}else n=e.length,this.token("STRING",this.escapeStr(e),n);break;default:return 0}return this.moveHead(e),e.length},o.prototype.heredocToken=function(){var t,e,n,s;if(!(t=C.exec(this._chunk)))return 0;if(e=t[0],n=e.charAt(0),s=this.sanitizeHeredoc(t[2],{quote:n,indent:null}),'"'==n&&s.indexOf("{")>=0){var i=t[1];this.token("STRING_START",i,i.length),this.interpolateString(s,{heredoc:!0,offset:i.length,quote:n}),this.token("STRING_END",i,i.length,e.length-i.length)}else this.token("STRING",this.makeString(s,n,!0),0);return this.moveHead(e),e.length},o.prototype.commentToken=function(){var t,e,n,s,r,h="HERECOMMENT";if(t=U.exec(this._chunk)){e=t[0].length,s=t[1],n=t[2],r=i(this._tokens);var o=r&&pt(r),a="//"+n.substr(1);return this._last&&this._last.spaced&&(a=" "+a),o&&"INDENT"!=o&&"TERMINATOR"!=o||!o?this.token("TERMINATOR",a,e):"TERMINATOR"==o?Tt(r,_t(r)+a):"INDENT"==o?this.addLinebreaks(1,a):this.token(h,n.substr(2),e),e}if(!(t=m.exec(this._chunk)))return 0;n=t[0];var u=t[1];return u?(this.token("HERECOMMENT",this.sanitizeHeredoc(u,{herecomment:!0,indent:Array(this._indent+1).join(" ")}),n.length),this.token("TERMINATOR","\n")):(this.token("HERECOMMENT",n,n.length),this.token("TERMINATOR","\n")),this.moveHead(n),n.length},o.prototype.jsToken=function(){var t,e;return"`"==this._chunk.charAt(0)&&(t=V.exec(this._chunk))?(this.token("JS",(e=t[0]).slice(1,-1)),e.length):0},o.prototype.regexToken=function(){var n,s,r,h;if("/"!=this._chunk.charAt(0))return 0;if(s=Y.exec(this._chunk))return r=this.heregexToken(s),this.moveHead(s[0]),r;if(h=i(this._tokens),h&&t(pt(h),h.spaced?ht:ot)>=0)return 0;if(!(s=B.exec(this._chunk)))return 0;var n=e(s),o=n[0],a=n[1],u=n[2];return"//"==a&&(a="/(?:)/"),this.token("REGEX",""+a+u,o.length),o.length},o.prototype.heregexToken=function(t){var n,n=e(t),s=n[0],i=n[1],r=n[2];if(0>i.indexOf("#{")){var h=i.replace(z,"").replace(/\//g,"\\/");return h.match(/^\*/)&&this.error("regular expressions cannot begin with `*`"),this.token("REGEX","/"+(h||"(?:)")+"/"+r,s.length),s.length}this.token("CONST","RegExp"),this._tokens.push(u.token("CALL_START","(",0));for(var o,a=[],l=0,c=e(this.interpolateString(i,{regex:!0})),p=c.length;p>l;l++){o=c[l];var _=pt(o),f=_t(o);if("TOKENS"==_)a.push.apply(a,f);else{if(f||console.log("what??"),!(f=f.replace(z,"")))continue;f=f.replace(/\\/g,"\\\\"),a.push(u.token("STRING",this.makeString(f,'"',!0),0))}a.push(u.token("+","+",0))}return a.pop(),a[0]&&"STRING"==pt(a[0])||this._tokens.push(u.token("STRING",'""'),u.token("+","+")),this._tokens.push.apply(this._tokens,a),r&&(this._tokens.push(u.token(",",",",0)),this._tokens.push(u.token("STRING",'"'+r+'"',0))),this.token(")",")",0),s.length},o.prototype.lineToken=function(){var t;if(!(t=$.exec(this._chunk)))return 0;var e=t[0],n=this.moveHead(e);this._seenFor=!1;var s=(i(this._tokens,1),e.length-1-e.lastIndexOf("\n")),r=this.unfinished();if(/^\n#\s/.test(this._chunk))return this.addLinebreaks(1),0;if(s-this._indebt==this._indent)return r?this.suppressNewlines():this.newlineToken(n),e.length;if(s>this._indent){if(r)return this._indebt=s-this._indent,this.suppressNewlines(),e.length;if(this.inTag())return e.length;var h=s-this._indent+this._outdebt;this.closeDef();var o=i(this._tokens);o&&"TERMINATOR"==pt(o)?(ft(o,"INDENT"),o._meta||(o._meta={pre:_t(o),post:""})):this.token("INDENT",""+h,0),this._indents.push(h),this.pushEnd("OUTDENT"),this._outdebt=this._indebt=0,this.addLinebreaks(n)}else this._indebt=0,this.outdentToken(this._indent-s,r,n),this.addLinebreaks(n-1);return this._indent=s,e.length},o.prototype.outdentToken=function(t,e,n){for(var s=0;t>0;){var i=this._indents.length-1;void 0==this._indents[i]?t=0:this._indents[i]==this._outdebt?(t-=this._outdebt,this._outdebt=0):this._indents[i]<this._outdebt?(this._outdebt-=this._indents[i],t-=this._indents[i]):(s=this._indents.pop()-this._outdebt,t-=s,this._outdebt=0,e||this.addLinebreaks(1),this.pair("OUTDENT"),this.token("OUTDENT",""+s,0))}for(s&&(this._outdebt-=t);";"==this.lastTokenValue();)this._tokens.pop();"TERMINATOR"==this.lastTokenType()||e||this.token("TERMINATOR","\n",0),this._scopes.length=this._indents.length;var r=this.context();return("%"==r||"TAG"==r)&&this.pair(r),this.closeDef(),this},o.prototype.whitespaceToken=function(){var t,e,n;return(t=F.exec(this._chunk))||(e="\n"==this._chunk.charAt(0))?(n=i(this._tokens),n?t?(n.spaced=!0,t[0].length):(n.newLine=!0,0):void 0):0},o.prototype.addNewline=function(){return this.token("TERMINATOR","\n")},o.prototype.moveHead=function(t){var e=r(t,"\n");return e},o.prototype.addLinebreaks=function(t,e){var n;if(!e&&0==t)return this;var s=this._last;if(e||(n=1==t?"\n":2==t?"\n\n":3==t?"\n\n\n":h("\n",t)),s){var i=s._type,r=_t(s);if("INDENT"==i){var o=s._meta||(s._meta={pre:"",post:""});return o.post+=e||n,this}if("TERMINATOR"==i)return Tt(s,r+(e||n)),this}this.token("TERMINATOR",n,0)},o.prototype.newlineToken=function(t){for(;";"==this.lastTokenValue();)console.log("pop token",this._tokens[this._tokens.length-1]),this._tokens.pop();this.addLinebreaks(t);var e=this.context();return("TAG"==e||"IMPORT"==e)&&this.pair(e),this.closeDef(),this},o.prototype.suppressNewlines=function(){return"\\"==this.value()&&this._tokens.pop(),this},o.prototype.literalToken=function(){var e,n;(e=M.exec(this._chunk))?(n=e[0],P.test(n)&&this.tagParameters()):n=this._chunk.charAt(0);var s=this._ends[this._ends.length-1],r=this._ends[this._ends.length-2],h="TAG_END"==s||"OUTDENT"==s&&"TAG_END"==r,o=n,a=i(this._tokens),u=a&&pt(a),l=a&&_t(a);n.length;if("="==n&&a&&("||"==l||"&&"==l))return ft(a,"COMPOUND_ASSIGN"),Tt(a,l+"="),n.length;switch(";"==n?(this._seenFor=!1,o="TERMINATOR"):"("==n&&h&&"="!=u&&a.spaced?this.token(",",","):"->"==n&&h?(o="TAG_END",this.pair("TAG_END")):"/>"==n&&h?(o="TAG_END",this.pair("TAG_END")):">"==n&&h?(o="TAG_END",this.pair("TAG_END")):">"==n&&"DEF"==this.context()?o="DEF_FRAGMENT":"TERMINATOR"==n&&"DEF"==s?this.closeDef():"&"==n&&"DEF"==this.context()?o="BLOCK_ARG":"*"==n&&this._chunk.charAt(1).match(/[A-Za-z\_\@\[]/)&&(a.spaced||[",","(","[","{","|","\n"," "].indexOf(l)>=0)?o="SPLAT":"√"==n?o="SQRT":"ƒ"==n?o="FUNC":t(n,it)>=0?o="MATH":t(n,nt)>=0?o="COMPARE":t(n,J)>=0?o="COMPOUND_ASSIGN":t(n,Q)>=0?o="UNARY":t(n,et)>=0?o="SHIFT":t(n,tt)>=0?o="LOGIC":a&&!a.spaced&&("("==n&&"%"==s?o="TAG_ATTRS_START":"("==n&&t(u,ut)>=0?o="CALL_START":"["==n&&t(u,lt)>=0&&(o="INDEX_START","?"==u&&ft(a,"INDEX_SOAK"))),n){case"(":case"{":case"[":this.pushEnd(_[n]);break;case")":case"}":case"]":this.pair(n)}return this.token(o,n,n.length),n.length},o.prototype.sanitizeHeredoc=function(t,e){var n,s=e.indent,i=e.herecomment;if(i){if(K.test(t)&&this.error("block comment cannot contain '*/' starting"),t.indexOf("\n")<=0)return t}else for(var r;n=X.exec(t);){var h=n[1];(null==s||0<(r=h.length)&&r<s.length)&&(s=h)}return s&&(t=t.replace(RegExp("\\n"+s,"g"),"\n")),i||(t=t.replace(/^\n/,"")),t},o.prototype.tagParameters=function(){var t;if(")"!=this.lastTokenType())return this;var e=[],n=this._tokens,s=n.length;for(ft(n[--s],"PARAM_END");t=n[--s];){var i=pt(t);switch(i){case")":e.push(t);break;case"(":case"CALL_START":if(!e.length)return"("==i?(ft(t,"PARAM_START"),this):this;e.pop()}}return this},o.prototype.closeIndentation=function(){return this.closeDef(),this.closeSelector(),this.outdentToken(this._indent,!1,0)},o.prototype.balancedString=function(t,e){for(var n,s,i,r=[e],h=0;h<t.length-1;){switch(h++,s=t.charAt(h)){case"\\":h++;continue;case e:if(r.pop(),!r.length){var o=t.slice(0,h+1);return o}e=r[r.length-1];continue}"}"!=e||'"'!=s&&"'"!=s?"}"==e&&"/"==s&&(n=Y.exec(t.slice(h))||B.exec(t.slice(h)))?h+=n[0].length-1:"}"==e&&"{"==s?r.push(e="}"):'"'==e&&"{"==s&&r.push(e="}"):r.push(e=s),i=s}return this._opts.silent?void 0:this.error("missing "+r.pop()+", starting")},o.prototype.interpolateString=function(t,e){void 0===e&&(e={});for(var n,s,i=e.heredoc,r=e.quote,h=e.regex,a=(e.prefix,this._loc,[]),u=0,c=-1,p=e.offset||1,_=(t.length,!1);n=t.charAt(c+=1);)if("\\"!=n){if("{"==t.charAt(c)&&(s=this.balancedString(t.slice(c),"}"))){if(_=!0,c>u){var f=new l("NEOSTRING",this.escapeStr(t.slice(u,c),i,r),this._loc+u+p,c-u);a.push(f)}a.push(new l("{{","{",this._loc+c+p,1));var T=s.slice(1,-1);if(T=T.replace(/^[^\n\S]+/,""),T.length){var E=this._loc+c+(s.length-T.length)-1,k=(new o).tokenize(T,{inline:!0,rewrite:!1,loc:E+p});k[0]&&"TERMINATOR"==pt(k[0])&&k.shift(),k.length&&a.push.apply(a,k)}c+=s.length-1,a.push(new l("}}","}",this._loc+c+p,1)),u=c+1}}else c+=1;if(c>=u&&u<t.length&&a.push(new l("NEOSTRING",this.escapeStr(t.slice(u),i,r),this._loc+u+p,t.length-u)),h)return a;if(!a.length)return this.token("NEOSTRING",'""');for(var d=0,g=a.length;g>d;d++)this._tokens.push(a[d]);return a},o.prototype.balancedSelector=function(t,e){for(var n,s,i=[e],r=t.length,h=1;r>h;h++){switch(s=t.charAt(h)){case"\\":h++;continue;case e:if(i.pop(),!i.length)return t.slice(0,h+1);e=i[i.length-1];continue}"}"==e&&s==[")"]?i.push(e=s):"}"==e&&"{"==s?i.push(e="}"):")"==e&&"{"==s&&i.push(e="}"),n=s}return this.error("missing "+i.pop()+", starting")},o.prototype.pair=function(t){var e=i(this._ends);if(t!=e){"OUTDENT"!=e&&this.error("unmatched "+t);var n=i(this._indents);return this._indent-=n,this.outdentToken(n,!0,0),this.pair(t)}return this.popEnd()},o.prototype.token=function(t,e,n,s){this._lastTyp=t,this._lastVal=e;var i=this._last=new l(t,e,this._loc+(s||0),n||0);this._tokens.push(i)},o.prototype.lastTokenType=function(){var t=this._tokens[this._tokens.length-1];return t?pt(t):"NONE"},o.prototype.lastTokenValue=function(){var t=this._tokens[this._tokens.length-1];return t?t._value:""},o.prototype.tokid=function(t,e){var n;return(n=i(this._tokens,t))?(e&&ft(n,e),pt(n)):null},o.prototype.value=function(t,e){var n;return(n=i(this._tokens,t))?(e&&Tt(n,e),_t(n)):null},o.prototype.unfinished=function(){return W.test(this._chunk)?!0:at.indexOf(this._lastTyp)>=0},o.prototype.escapeLines=function(t,e){return t.replace(q,e?"\\n":"")},o.prototype.makeString=function(t,e,n){return t?(t=t.replace(/\\([\s\S])/g,function(t,n){return"\n"==n||n==e?n:t}),t=t.replace(RegExp(""+e,"g"),"\\$&"),e+this.escapeLines(t,n)+e):e+e},o.prototype.error=function(t,e){("number"==typeof this._line||this._line instanceof Number)&&(t=""+t+" on line "+this._line),e&&(t+=" ["+this._loc+":"+(this._loc+e)+"]");var n=new SyntaxError(t);throw n.line=this._line,n=new f.ImbaParseError(n,{tokens:this._tokens,pos:this._tokens.length}),n.region=[this._loc,this._loc+(e||0)],n},o}();
|
9
|
+
},{"./errors":2,"./rewriter":7,"./token":9}],5:[function(require,module,exports){
|
10
|
+
!function(){function t(t,e){return e&&e.indexOf?e.indexOf(t):[].indexOf.call(t,e)}function e(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=Object.create(e.prototype),t.__super__=t.prototype.__super__=e.prototype,t.prototype.initialize=t.prototype.constructor=t}function n(t){return t?t.toArray?t.toArray():t:[]}function r(t,e){var n;if(e.lexer){e.lexer.yytext;throw n=new Hn.ImbaParseError({message:t},{pos:e.lexer.pos,tokens:e.lexer.tokens,token:e.lexer.yytext,meta:e})}var r=new Error(t);throw r.lexer=e.lexer,r.options=e,r}function i(t){return"string"==typeof t?t:t.c()}function s(t){return t&&Qn.sourceMapInline&&t.sourceMapMarker?t.sourceMapMarker():""}function o(t){return new dt(t)}function p(t){return t instanceof Array?T.wrap(t):t}function u(t){return Kn.symbolize(String(t))}function a(t){return t.map(function(t){return"string"==typeof t?t:t.c()})}function h(t,e){return t instanceof Array?t.map(function(t){return t&&t.dump?t.dump(e):t}):t&&t.dump?t.dump():void 0}function c(t){return t instanceof E?t.compact():t.filter(function(t){return void 0!=t&&null!=t})}function l(t,e){for(var r,i=0,s=n(e),o=s.length;o>i;i++)r=s[i],r instanceof Array?l(t,r):t.push(r)}function f(t,e){void 0===e&&(e=!1);for(var r,i=[],s=0,o=n(t),p=o.length;p>s;s++)r=o[s],r instanceof Array?l(i,r):i.push(r);return i}function _(t,e){this._open=t,this._close=e}function y(){this._entities=[]}function v(){this.reset()}function d(){this.setup()}function m(t){this.setup(),this._value=this.load(t)}function g(){return m.apply(this,arguments)}function x(){return m.apply(this,arguments)}function b(){return x.apply(this,arguments)}function w(t){this._value=t}function S(t){this._traversed=!1,this._value=t||"\n"}function j(){return m.apply(this,arguments)}function E(t){this.setup(),this._nodes=this.load(t||[]),this._indentation=null}function A(){return E.apply(this,arguments)}function O(){return A.apply(this,arguments)}function T(t){this.setup(),this._nodes=t||[],this._head=null,this._indentation=null}function P(){return E.apply(this,arguments)}function C(t,e,n){this.setup(),this._open=e,this._close=n,this._value=this.load(t)}function I(){return E.apply(this,arguments)}function $(t){return this._traversed=!1,this._value=t instanceof A&&1==t.count()?t.last():t,this}function N(){return $.apply(this,arguments)}function R(){return N.apply(this,arguments)}function V(){return g.apply(this,arguments)}function z(t,e){this.setLiteral(t),this.setExpression(e)}function L(){return z.apply(this,arguments)}function D(){return z.apply(this,arguments)}function F(){return g.apply(this,arguments)}function B(t,e,n){this._traversed=!1,this._name=t,this._defaults=e,this._typ=n,this._variable=null}function M(){return B.apply(this,arguments)}function G(){return B.apply(this,arguments)}function U(){return B.apply(this,arguments)}function q(){return B.apply(this,arguments)}function J(){return B.apply(this,arguments)}function K(){return E.apply(this,arguments)}function H(){return B.apply(this,arguments)}function W(){return E.apply(this,arguments)}function Y(){return E.apply(this,arguments)}function Z(){return E.apply(this,arguments)}function X(){return B.apply(this,arguments)}function Q(t,e){Q.__super__.constructor.apply(this,arguments),this._splat=e}function tt(t,e,n){this._traversed=!1,this._type=this.type(),this._left=e,this._right=n}function et(){return d.apply(this,arguments)}function nt(t,e){this._traversed=!1,this._body=p(t),this._scope=new tn(this,null),this._options={}}function rt(t,e,n){this._traversed=!1,this._name=t,this._superclass=e,this._scope=new en(this),this._body=p(n)}function it(t,e,n){this._traversed=!1,this._name=t,this._superclass=e,this._scope=new nn(this),this._body=p(n||[])}function st(t,e,n,r,i){var s=this.scopetype();this._traversed=!1,this._body=p(e),this._scope||(this._scope=i&&i.scope||new s(this)),this._scope.setParams(this._params=new Y(t)),this._name=n||"",this._target=r,this._options=i,this._type="function",this._variable=null}function ot(){return st.apply(this,arguments)}function pt(){return st.apply(this,arguments)}function ut(){return st.apply(this,arguments)}function at(){return ut.apply(this,arguments)}function ht(t,e,n){this._token=n,this._traversed=!1,this._name=t,this._options=e||new jt(new O)}function ct(t){this._traversed=!1,this._expression=!0,this._cache=null,this._raw=null,this._value=t}function lt(t){this._value=t,this._raw="true"==String(t)?!0:!1}function ft(){return ct.apply(this,arguments)}function _t(){return ct.apply(this,arguments)}function yt(){return lt.apply(this,arguments)}function vt(){return lt.apply(this,arguments)}function dt(t){this._traversed=!1,this._value=t}function mt(t){this._traversed=!1,this._expression=!0,this._cache=null,this._value=t}function gt(){return m.apply(this,arguments)}function xt(t,e){void 0===e&&(e={}),this._nodes=t,this._options=e}function bt(){return E.apply(this,arguments)}function wt(){return ct.apply(this,arguments)}function kt(){return ct.apply(this,arguments)}function St(){return ct.apply(this,arguments)}function jt(){return ct.apply(this,arguments)}function Et(t,e){this._traversed=!1,this._key=t,this._value=e,this._dynamic=t instanceof Ct}function At(){return d.apply(this,arguments)}function Ot(t){this._scope=t}function Tt(){return Ot.apply(this,arguments)}function Pt(){return Ot.apply(this,arguments)}function Ct(t,e,n){return this._expression=!1,this._traversed=!1,this._parens=!1,this._cache=null,this._invert=!1,this._opToken=t,this._op=t&&t._value||t,this._left=e,this._right=n,this}function It(){return Ct.apply(this,arguments)}function $t(){return Ct.apply(this,arguments)}function Nt(){return Ct.apply(this,arguments)}function Rt(){return Ct.apply(this,arguments)}function Vt(){return Ct.apply(this,arguments)}function zt(){return Ct.apply(this,arguments)}function Lt(){return Ct.apply(this,arguments)}function Dt(t,e,n){return this._expression=!1,this._traversed=!1,this._parens=!1,this._cache=null,this._invert=!1,this._op=t&&t._value||t,this._left=e,this._right=n,this}function Ft(){return Dt.apply(this,arguments)}function Bt(){return m.apply(this,arguments)}function Mt(){return Dt.apply(this,arguments)}function Gt(t,e,n){return this._traversed=!1,this._invert=!1,this._parens=!1,this._expression=!1,this._cache=null,this._op=t,this._left=e,this._right=n,this}function Ut(){return Dt.apply(this,arguments)}function qt(){return Dt.apply(this,arguments)}function Jt(){return Dt.apply(this,arguments)}function Kt(){return Dt.apply(this,arguments)}function Ht(t){this._traversed=!1,this._parens=!1,this._value=t,this._identifier=t,this._token=t._value,this._variable=null}function Wt(t,e){Wt.__super__.constructor.call(this,t),this._export=!1,this._type=e&&String(e),this._variable=null,this._declared=!0}function Yt(t,e,n){if(e instanceof Wt&&e.value()instanceof St){var r=e.value().nodes().map(function(t){var n;return t instanceof Oe?t.value()instanceof Wt||(t.setValue(n=new Wt(t.value(),e.type())),n):t instanceof Wt||(t=new Wt(t,e.type())),t});return new ee(t,new bt(r),n)}return e instanceof St?new ee(t,new bt(e.nodes()),n):(this._expression=!1,this._traversed=!1,this._parens=!1,this._cache=null,this._invert=!1,this._opToken=t,this._op=t&&t._value||t,this._left=e,this._right=n,this)}function Zt(){return Yt.apply(this,arguments)}function Xt(){return Yt.apply(this,arguments)}function Qt(){return Yt.apply(this,arguments)}function te(){return Yt.apply(this,arguments)}function ee(t,e,n){this._traversed=!1,this._op=t,this._left=e,this._right=n,this._temporary=[]}function ne(t){this._value=this.load(t),this._symbol=null,this._setter=null,(""+t).indexOf("?")>=0&&(this._safechain=!0)}function re(t){this._value=t instanceof ne?t.value():t}function ie(t){this._value=t instanceof ne?t.value():t}function se(){return ne.apply(this,arguments)}function oe(t){this._value=this.load(t)}function pe(){return m.apply(this,arguments)}function ue(t,e,n){if(this._traversed=!1,this._expression=!1,this._parens=!1,this._cache=null,this._receiver=null,this._opexists=n,t instanceof Ht){var r=t.value().symbol();if("extern"==r)return t.value().value()._type="EXTERN",new le(e);if("tag"==r)return new Ie(e&&e.index?e.index(0):e[0]);if("export"==r)return new Ye(e)}this._callee=t,this._args=e||new A([]),e instanceof Array&&(this._args=new A(e))}function ae(){return ue.apply(this,arguments)}function he(){return ue.apply(this,arguments)}function ce(){return ue.apply(this,arguments)}function le(){return E.apply(this,arguments)}function fe(){return d.apply(this,arguments)}function _e(){return fe.apply(this,arguments)}function ye(t,e,n){void 0===n&&(n={}),this.setup(),this._test=t,this._body=e,this._alt=null,this._type=n.type,"unless"==this._type&&this.invert(),this._scope=new ln(this)}function ve(t){void 0===t&&(t={}),this._traversed=!1,this._options=t,this._body=null}function de(t,e){this._traversed=!1,this._test=t,this._options=e||{},this._scope=new hn(this),this.option("invert")&&(this._test=t.invert())}function me(t){void 0===t&&(t={}),this._traversed=!1,this._options=t,this._scope=new cn(this),this._catcher=null}function ge(){return me.apply(this,arguments)}function xe(){return me.apply(this,arguments)}function be(t){this._nodes=p(t).nodes()}function we(t,e,n){this._traversed=!1,this._source=t,this._cases=e,this._fallback=n}function ke(t,e){this._traversed=!1,this._test=t,this._body=p(e)}function Se(t,e,n){this._traversed=!1,this._body=p(t),this._catch=e,this._finally=n}function je(t,e){this._traversed=!1,this._body=p(t||[]),this._scope=new an(this),this._varname=e}function Ee(t){this._traversed=!1,this._body=p(t||[])}function Ae(){return Ct.apply(this,arguments)}function Oe(){return m.apply(this,arguments)}function Te(){this.p("TagDesc!!!",arguments)}function Pe(t){void 0===t&&(t={}),this._traversed=!1,this._parts=[],t.classes||(t.classes=[]),t.attributes||(t.attributes=[]),t.classes||(t.classes=[]),this._options=t,this._reference=null,this._object=null,this._tree=null}function Ce(t,e,n){void 0===n&&(n={}),this._owner=t,this._nodes=this.load(e),this._options=n,this._conditions=[],this._blocks=[this],this._counter=0}function Ie(){return m.apply(this,arguments)}function $e(){return E.apply(this,arguments)}function Ne(t,e){this._traversed=!1,this._key=t,this._value=e}function Re(t){this._traversed=!1,this._value=t}function Ve(t,e){this._nodes=t||[],this._options=e}function ze(){return m.apply(this,arguments)}function Le(){return ze.apply(this,arguments)}function De(){return ze.apply(this,arguments)}function Fe(){return ze.apply(this,arguments)}function Be(){return ze.apply(this,arguments)}function Me(){return ze.apply(this,arguments)}function Ge(){return ze.apply(this,arguments)}function Ue(){return ze.apply(this,arguments)}function qe(){return ze.apply(this,arguments)}function Je(t,e,n){this._left=t,this._op=e,this._right=this._value=n}function Ke(){return m.apply(this,arguments)}function He(t,e,n,r,i){He.__super__.constructor.call(this,t,e,n,r,i)}function We(t,e,n){this._traversed=!1,this._imports=t,this._source=e,this._ns=n}function Ye(){return m.apply(this,arguments)}function Ze(t){this._args=t}function Xe(t){return this._root=t,this._map={},this}function Qe(t,e){this._nr=Sn.incr("scopes"),this._head=[],this._node=t,this._parent=e,this._vars=new Z([]),this._meta={},this._annotations=[],this._closure=this,this._virtual=!1,this._counter=0,this._varmap={},this._varpool=[]}function tn(){tn.__super__.constructor.apply(this,arguments),this.register("global",this,{type:"global"}),this.register("module",this,{type:"global"}),this.register("window",this,{type:"global"}),this.register("document",this,{type:"global"}),this.register("exports",this,{type:"global"}),this.register("console",this,{type:"global"}),this.register("process",this,{type:"global"}),this.register("parseInt",this,{type:"global"}),this.register("parseFloat",this,{type:"global"}),this.register("setTimeout",this,{type:"global"}),this.register("setInterval",this,{type:"global"}),this.register("clearTimeout",this,{type:"global"}),this.register("clearInterval",this,{type:"global"}),this.register("__dirname",this,{type:"global"}),this._warnings=[],this._scopes=[],this._helpers=[],this._entities=new Xe(this),this._head=[this._vars]}function en(){return Qe.apply(this,arguments)}function nn(){return en.apply(this,arguments)}function rn(){return Qe.apply(this,arguments)}function sn(){return Qe.apply(this,arguments)}function on(){return Qe.apply(this,arguments)}function pn(){return Qe.apply(this,arguments)}function un(){return Qe.apply(this,arguments)}function an(){return un.apply(this,arguments)}function hn(){return un.apply(this,arguments)}function cn(){return un.apply(this,arguments)}function ln(){return un.apply(this,arguments)}function fn(){return un.apply(this,arguments)}function _n(t,e,n,r){this._ref=Sn._counter++,this._c=null,this._scope=t,this._name=e,this._alias=null,this._initialized=!0,this._declarator=n,this._autodeclare=!1,this._declared=r&&r.declared||!1,this._resolved=!1,this._options=r||{},this._type=r&&r.type||"var",this._export=!1,this._references=[],this._assignments=[]}function yn(){return _n.apply(this,arguments)}function vn(t,e){this._scope=t,this._value=e,this._reference=null}function dn(){return vn.apply(this,arguments)}function mn(){return d.apply(this,arguments)}var gn,xn,bn,wn,kn,Sn,jn,En,An,On,Tn,Pn,Cn,In,$n,Nn,Rn,Vn,zn,Ln,Dn,Fn,Bn,Mn,Gn,Un,qn,Jn,Kn=require("./helpers"),Hn=require("./errors"),Wn=null,Yn=require("./token"),Zn=Yn.Token,Xn=require("./sourcemap").SourceMap;module.exports.AST=gn={},module.exports.OP=xn=function(t,e,n){var r=String(t);switch(r){case".":return("string"==typeof n||n instanceof String)&&(n=new ne(n)),new Dt(t,e,n);case"=":return e instanceof bt?new ee(t,e,n):new Yt(t,e,n);case"?=":case"||=":case"&&=":return new Xt(t,e,n);case"+=":case"-=":case"*=":case"/=":case"^=":case"%=":return new Qt(t,e,n);case"?.":return n instanceof Ht&&(n=n.value()),new Gt(t,e,n);case"instanceof":return new Rt(t,e,n);case"in":return new Lt(t,e,n);case"typeof":return new Vt(t,e,n);case"delete":return new zt(t,e,n);case"--":case"++":case"!":case"√":return new Nt(t,e,n);case">":case"<":case">=":case"<=":case"==":case"===":case"!=":case"!==":return new It(t,e,n);case"∩":case"∪":return new $t(t,e,n);case"..":case"...":return new Ae(t,e,n);default:return new Ct(t,e,n)}},module.exports.OP_COMPOUND=bn=function(t,e,n,r){return"?."==t?(console.log("?. soak operator"),null):"?="==t||"||="==t||"&&="==t?new Xt(e,n,r):new Qt(e,n,r)};var Qn={},tr=null;module.exports.NODES=wn=[];var er=function(t,e,n){var r=new ye(t,e);return n&&r.addElse(n),r},nr=function(t,e){return new st(t,e)},rr=function(t,e){return void 0===e&&(e=[]),new ue(t,e)},ir=function(t,e){return new de(t).addBody(e)};module.exports.SPLAT=kn=function(t){return t instanceof Yt?(t.setLeft(new Oe(t.left())),t):new Oe(t)};var sr=/;(\s*\/\/.*)?[\n\s\t]*$/,or=/^(default|char)$/;exports.parseError=r,gn.parse=function(t,e){void 0===e&&(e={});t.match(/\t+/)[0];return Imba.parse(t,e)},gn.inline=function(t,e){return void 0===e&&(e={}),this.parse(t,e).body()},gn.node=function(t,e){return"call"==t?("return"==e[0].c()&&(e[0]="tata"),new ue(e[0],e[1],e[2])):void 0},gn.escapeComments=function(t){return t?t:""},exports.Indentation=_,_.prototype.open=function(t){return this._open},_.prototype.setOpen=function(t){return this._open=t,this},_.prototype.close=function(t){return this._close},_.prototype.setClose=function(t){return this._close=t,this},_.prototype.isGenerated=function(){return this._open&&this._open.generated},_.prototype.aloc=function(){return this._open&&this._open._loc||0},_.prototype.bloc=function(){return this._close&&this._close._loc||0},_.prototype.wrap=function(t){var e=this._open&&this._open._meta,n=e&&e.pre||"",r=e&&e.post||"",i=(gn.escapeComments,this._close);return t=r.replace(/^\n/,"")+t,t=t.replace(/^/g," ").replace(/\n/g,"\n ").replace(/\n\t$/g,"\n"),t=n+"\n"+t,i instanceof w&&(t+=i.c()),"\n"!=t[t.length-1]&&(t+="\n"),t};var pr=new _({},{});y.prototype.add=function(t){return this._entities.unshift(t),this},y.prototype.pluck=function(t){for(var e,r=null,i=0,s=n(this._entities),o=s.length;o>i;i++)if(e=s[i],e==t||e instanceof t)return r=e,this._entities.splice(i,1),r;return null},exports.Stack=v,v.prototype.loglevel=function(t){return this._loglevel},v.prototype.setLoglevel=function(t){return this._loglevel=t,this},v.prototype.nodes=function(t){return this._nodes},v.prototype.setNodes=function(t){return this._nodes=t,this},v.prototype.scopes=function(t){return this._scopes},v.prototype.setScopes=function(t){return this._scopes=t,this},v.prototype.reset=function(){return this._nodes=[],this._scoping=[],this._scopes=[],this._stash=new y(this),this._loglevel=3,this._counter=0,this._counters={},this},v.prototype.incr=function(t){var e;return this._counters[e=t]||(this._counters[e]=0),this._counters[t]+=1},v.prototype.stash=function(){return this._stash},v.prototype.option=function(t){return this._options&&this._options[t]},v.prototype.addScope=function(t){return this._scopes.push(t),this},v.prototype.traverse=function(t){return this},v.prototype.push=function(t){return this._nodes.push(t),this},v.prototype.pop=function(t){return this._nodes.pop(),this},v.prototype.parent=function(){return this._nodes[this._nodes.length-2]},v.prototype.current=function(){return this._nodes[this._nodes.length-1]},v.prototype.up=function(t){if(t||(t=function(t){return!(t instanceof Ht)}),t.prototype instanceof d){var e=t;t=function(t){return t instanceof e}}for(var n=this._nodes.length-2;n>=0;){var r=this._nodes[n];if(t(r))return r;n-=1}return null},v.prototype.relative=function(t,e){void 0===e&&(e=0);var n=this._nodes.indexOf(t);return n>=0?this._nodes[n+e]:null},v.prototype.scope=function(t){void 0===t&&(t=0);for(var e=this._nodes.length-1-t;e>=0;){var n=this._nodes[e];if(n._scope)return n._scope;e-=1}return null},v.prototype.scopes=function(){for(var t=[],e=this._nodes.length-1;e>=0;){var n=this._nodes[e];n._scope&&t.push(n._scope),e-=1}return t},v.prototype.method=function(){return this.up(ut)},v.prototype.block=function(){return this.up(T)},v.prototype.isExpression=function(){for(var t=this._nodes.length-1;t>=0;){var e=this._nodes[t];if(e instanceof et||e instanceof ve)return!1;if(e.isExpression())return!0;t-=1}return!1},v.prototype.toString=function(){return"Stack("+this._nodes.join(" -> ")+")"},v.prototype.scoping=function(){return this._nodes.filter(function(t){return t._scope}).map(function(t){return t._scope})},module.exports.STACK=Sn=new v,GLOBSTACK=Sn,exports.Node=d,d.prototype.o=function(t){return this._o},d.prototype.setO=function(t){return this._o=t,this},d.prototype.options=function(t){return this._options},d.prototype.setOptions=function(t){return this._options=t,this},d.prototype.traversed=function(t){return this._traversed},d.prototype.setTraversed=function(t){return this._traversed=t,this},d.prototype.safechain=function(){return!1},d.prototype.p=function(){return Sn.loglevel()>0&&console.log.apply(console,arguments),this},d.prototype.typeName=function(){return this.constructor.name},d.prototype.namepath=function(){return this.typeName()},d.prototype.setup=function(){return this._expression=!1,this._traversed=!1,this._parens=!1,this._cache=null,this._value=null,this},d.prototype.set=function(t){this._options||(this._options={});for(var e=0,n=Object.keys(t),r=n.length;r>e;e++)this._options[n[e]]=t[n[e]];return this},d.prototype.option=function(t,e){return void 0!=e?(this._options||(this._options={}),this._options[t]=e,this):this._options&&this._options[t]},d.prototype.configure=function(t){return this.set(t)},d.prototype.region=function(){return[0,0]},d.prototype.loc=function(){return[0,0]},d.prototype.token=function(){return null},d.prototype.compile=function(){return this},d.prototype.visit=function(){return this},d.prototype.stack=function(){return Sn},d.prototype.isString=function(){return!1},d.prototype.isPrimitive=function(t){return!1},d.prototype.isReserved=function(){return!1},d.prototype.traverse=function(){return this._traversed?this:(this._traversed=!0,Sn.push(this),this.visit(Sn),Sn.pop(this),this)},d.prototype.inspect=function(){return{type:this.constructor.toString()}},d.prototype.js=function(t){return"NODE"},d.prototype.toString=function(){return""+this.constructor.name},d.prototype.consume=function(t){return t instanceof Zt?new Zt(t.op(),t.left(),this):t instanceof Yt?xn(t.op(),t.left(),this):t instanceof Ct?xn(t.op(),t.left(),this):t instanceof $?new $(this):this},d.prototype.toExpression=function(){return this._expression=!0,this},d.prototype.forceExpression=function(){return this._expression=!0,this},d.prototype.isExpressable=function(){return!0},d.prototype.isExpression=function(){return this._expression||!1},d.prototype.hasSideEffects=function(){return!0},d.prototype.isUsed=function(){return!0},d.prototype.shouldParenthesize=function(){return!1},d.prototype.block=function(){return T.wrap([this])},d.prototype.node=function(){return this},d.prototype.scope__=function(){return Sn.scope()},d.prototype.up=function(){return Sn.parent()},d.prototype.util=function(){return Ze},d.prototype.receiver=function(){return this},d.prototype.addExpression=function(t){var e=new I([this]);return e.addExpression(t)},d.prototype.indented=function(t,e){return t instanceof _?(this._indentation=t,this):(e instanceof Array&&(this.add(e[0]),e=e[1]),this._indentation||(this._indentation=t&&e?new _(t,e):pr),this)},d.prototype.prebreak=function(t){return void 0===t&&(t="\n"),this},d.prototype.invert=function(){return xn("!",this)},d.prototype.cache=function(t){return void 0===t&&(t={}),this._cache=t,t["var"]=this.scope__().temporary(this,t),t.lookups=0,this},d.prototype.cachevar=function(){return this._cache&&this._cache["var"]},d.prototype.decache=function(){return this._cache&&(this.cachevar().free(),this._cache=null),this},d.prototype.predeclare=function(){return this._cache&&this.scope__().vars().swap(this._cache["var"],this),this},d.prototype.alias=function(){return null},d.prototype.warn=function(t,e){return void 0===e&&(e={}),e.message=t,e.loc||(e.loc=this.loc()),this.scope__().root().warn(e),this},d.prototype.c=function(t){var e,n=Sn,r=this._cache;if(r&&r.cached)return this.c_cached(r);n.push(this),t&&t.expression&&this.forceExpression(),Wn&&console.log(Wn.hasFastObjectElements(this)),t&&t.indent&&(this._indentation||(this._indentation=pr));var i=this.js(n,t),s=this.shouldParenthesize();if((e=this._indentation)&&(i=e.wrap(i,t)),s&&(i="("+i+")"),t&&t.braces&&(i=e?"{"+i+"}":"{ "+i+" }"),n.pop(this),r=this._cache){r.manual||(i=""+r["var"].c()+" = "+i);var o=n.current();(o instanceof Dt||o instanceof Ct)&&(i="("+i+")"),r.cached=!0}return i},d.prototype.c_cached=function(t){return t.lookups++,t.uses==t.lookups&&t["var"].free(),t["var"].c()},e(m,d),exports.ValueNode=m,m.prototype.value=function(t){return this._value},m.prototype.setValue=function(t){return this._value=t,this},m.prototype.load=function(t){return t},m.prototype.js=function(t){return"string"==typeof this._value?this._value:this._value.c()},m.prototype.visit=function(){return this._value instanceof d&&this._value.traverse(),this},m.prototype.region=function(){return[this._value._loc,this._value._loc+this._value._len]},e(g,m),exports.Statement=g,g.prototype.isExpressable=function(){return!1},e(x,m),exports.Meta=x,x.prototype.isPrimitive=function(t){return!0},e(b,x),exports.Comment=b,b.prototype.visit=function(){var t,e;if(t=this.up()){var n=t.indexOf(this)+1;t.index(n)instanceof w&&(n+=1),(e=t.index(n))&&(e._desc=this)}return this},b.prototype.toDoc=function(){return Kn.normalizeIndentation(""+this._value._value)},b.prototype.toJSON=function(){return Kn.normalizeIndentation(""+this._value._value)},b.prototype.c=function(t){var e=this._value._value;return t&&t.expression||e.match(/\n/)||"HERECOMMENT"==this._value.type()?"/*"+e+"*/":"// "+e},e(w,x),exports.Terminator=w,w.prototype.traverse=function(){return this},w.prototype.c=function(){return this._value.c()},e(S,w),exports.Newline=S,S.prototype.c=function(){return i(this._value)},e(j,m),exports.Index=j,j.prototype.js=function(t){return this._value.c()},e(E,d),exports.ListNode=E,E.prototype.nodes=function(t){return this._nodes},E.prototype.setNodes=function(t){return this._nodes=t,this},E.prototype.list=function(){return this._nodes},E.prototype.compact=function(){return this._nodes=c(this._nodes),this},E.prototype.load=function(t){return t},E.prototype.concat=function(t){return this._nodes=this.nodes().concat(t instanceof Array?t:t.nodes()),this},E.prototype.swap=function(t,e){var n=this.indexOf(t);return n>=0&&(this.nodes()[n]=e),this},E.prototype.push=function(t){return this._nodes.push(t),this},E.prototype.pop=function(){var t=this._nodes.pop();return t},E.prototype.add=function(t){return this._nodes.push(t),this},E.prototype.unshift=function(t,e){return e&&this._nodes.unshift(Tn),this._nodes.unshift(t),this},E.prototype.slice=function(t,e){return new this.constructor(this._nodes.slice(t,e))},E.prototype["break"]=function(t,e){return void 0===e&&(e=!1),"string"==typeof t&&(t=new w(t)),e?this.unshift(t):this.push(t),this},E.prototype.some=function(t){for(var e=0,r=n(this._nodes),i=r.length;i>e;e++)if(t(r[e]))return!0;return!1},E.prototype.every=function(t){for(var e=0,r=n(this._nodes),i=r.length;i>e;e++)if(!t(r[e]))return!1;return!0},E.prototype.filter=function(t){return this._nodes.filter(t)},E.prototype.pluck=function(t){var e=this.filter(t)[0];return e&&this.remove(e),e},E.prototype.indexOf=function(t){return this._nodes.indexOf(t)},E.prototype.index=function(t){return this._nodes[t]},E.prototype.remove=function(t){var e=this._nodes.indexOf(t);return e>=0&&this._nodes.splice(e,1),this},E.prototype.removeAt=function(t){var e=this._nodes[t];return t>=0&&this._nodes.splice(t,1),e},E.prototype.replace=function(t,e){var n=this._nodes.indexOf(t);return n>=0&&(e instanceof Array?this._nodes.splice.apply(this._nodes,[].concat([n,1],[].slice.call(e))):this._nodes[n]=e),this},E.prototype.first=function(){return this._nodes[0]},E.prototype.last=function(){for(var t=this._nodes.length;t;){t-=1;var e=this._nodes[t];if(!(e instanceof x))return e}return null},E.prototype.map=function(t){return this._nodes.map(t)},E.prototype.forEach=function(t){return this._nodes.forEach(t)},E.prototype.remap=function(t){return this._nodes=this.map(t),this},E.prototype.count=function(){return this._nodes.length},E.prototype.realCount=function(){for(var t,e=0,r=0,i=n(this._nodes),s=i.length;s>r;r++)t=i[r],!t||t instanceof x||e++;return e},E.prototype.visit=function(){for(var t,e=0,r=n(this._nodes),i=r.length;i>e;e++)t=r[e],t&&t.traverse();return this},E.prototype.isExpressable=function(){for(var t,e=0,r=n(this.nodes()),i=r.length;i>e;e++)if(t=r[e],t&&!t.isExpressable())return!1;return!0},E.prototype.toArray=function(){return this._nodes},E.prototype.delimiter=function(){return this._delimiter||","},E.prototype.js=function(t,e){e&&e.constructor===Object||(e={});for(var r,i=void 0!==e.nodes?e.nodes:this._nodes,s=",",o=";"!=s,p=this.last(),u=(i.length,""),a=0,h=n(i),c=h.length;c>a;a++){r=h[a];var l="string"==typeof r?r:r?r.c({expression:o}):"";u+=l,!l||o&&r==p||r instanceof x||(u+=s)}return u},E.prototype.indented=function(t,e){return t instanceof _?(this._indentation=t,this):(this._indentation||(this._indentation=t&&e?new _(t,e):pr),this)},e(A,E),exports.ArgList=A,e(O,A),exports.AssignList=O,O.prototype.concat=function(t){return 0==this._nodes.length&&t instanceof O?t:(O.__super__.concat.call(this,t),this)},e(T,E),exports.Block=T,T.prototype.head=function(t){return this._head},T.prototype.setHead=function(t){return this._head=t,this},T.wrap=function(t){if(!(t instanceof Array))throw new SyntaxError("what");return 1==t.length&&t[0]instanceof T?t[0]:new T(t)},T.prototype.visit=function(){this._scope&&this._scope.visit();for(var t,e=0,r=n(this._nodes),i=r.length;i>e;e++)t=r[e],t&&t.traverse();return this},T.prototype.block=function(){return this},T.prototype.loc=function(){var t,e;if(t=this.option("ends")){var n=t[0].loc(),r=t[1].loc();return n||this.p("no loc for "+t[0]),r||this.p("no loc for "+t[1]),[n[0],r[1]]}return(e=this._indentation)?[e.aloc(),e.bloc()]:[0,0]},T.prototype.unwrap=function(){for(var t,e=[],r=0,i=n(this.nodes()),s=i.length;s>r;r++)t=i[r],t instanceof T?e.push.apply(e,t.unwrap()):e.push(t);return e},T.prototype.push=function(t){return this._nodes.push(t),this},T.prototype.add=function(t){return this._nodes.push(t),this},T.prototype.compile=function(t){void 0===t&&(t={});var e=new nt(this,t);return e.compile(t)},T.prototype.analyze=function(t){return void 0===t&&(t={}),this},T.prototype.cpart=function(t){var e="string"==typeof t?t:t?t.c():"";if(null==e||void 0==e||""==e)return"";if(e instanceof Array){for(var n="",r=e.length,i=0;r>i;)n+=this.cpart(e[i++]);return n}var s=sr.test(e);return s||t instanceof x||(e+=";"),e},T.prototype.js=function(t,e){var r=this._nodes,i=(r.length,this.isExpression()||t.isExpression()||this.option("express")&&this.isExpressable());if(0==r.length)return"";if(i)return T.__super__.js.call(this,t,{nodes:r});for(var s="",o=0,p=n(r),u=p.length;u>o;o++)s+=this.cpart(p[o]);if(this._head&&this._head.length>0){for(var a="",o=0,p=n(this._head),u=p.length;u>o;o++){var h=this.cpart(p[o]);h&&(a+=h+"\n")}s=a+s}return s},T.prototype.defers=function(t,e){var n=this._nodes.indexOf(t);n>=0&&(this._nodes[n]=e);var r=this._nodes.splice(n+1);return r},T.prototype.expressions=function(){for(var t,e=[],r=0,i=n(this.nodes()),s=i.length;s>r;r++)t=i[r],t instanceof w||e.push(t);return e},T.prototype.consume=function(t){var e;if(t instanceof Ce){this._nodes=this._nodes.map(function(e){return e.consume(t)});var n=this.expressions();if(!t._loop&&n.length>1){var r=t.blocks().push(this),i=new St(new A(this._nodes));i.indented(this._indentation),this._indentation=null,t.reactive()?this._nodes=[Ze.callImba("static",[i,new dt(r)])]:this._nodes=[i]}return this}if(e=this.last()){var s=e.consume(t);s!=e&&(s instanceof T&&(s=s.nodes()),this.replace(e,s))}return this},T.prototype.isExpressable=function(){return this._nodes.every(function(t){return t.isExpressable()})?!0:!1},T.prototype.isExpression=function(){return this.option("express")||this._expression},e(P,E),exports.VarBlock=P,P.prototype.load=function(t){var e=t[0];return e instanceof Yt?this._type=e.left()._type:e instanceof Wt&&(this._type=e._type),t},P.prototype.addExpression=function(t){if(t instanceof Yt)t.left()instanceof Ht&&t.setLeft(new Wt(t.left().value(),this._type)),this.push(t);else{if(t instanceof Yt)return this.addExpression(t.left()),new ee("=",new bt(this.nodes()),t.right());if(t instanceof Ht)this.push(new Wt(t.value(),this._type));else{if(!(t instanceof Oe&&t.node()instanceof Ht))throw this.p("VarBlock.addExpression "+this+" <- "+t),"VarBlock does not allow non-variable expressions";t.setValue(new Wt(t.node().value(),this._type)),this.push(t)}}return this},P.prototype.isExpressable=function(){return!1},P.prototype.js=function(t){var e=c(f(a(this.nodes())));e=e.filter(function(t){return null!=t&&void 0!=t&&t!=Ln});var n=e.join(",");return t.isExpression()||(n="var "+n),n},P.prototype.consume=function(t){return this},e(C,m),exports.Parens=C,C.prototype.load=function(t){return this._noparen=!1,t instanceof T&&1==t.count()?t.first():t},C.prototype.isString=function(){return this._open&&'("'==String(this._open)||this.value().isString()},C.prototype.js=function(t){var e=this.up(),n=this._value,r=null;return n instanceof st&&(this._noparen=!0),e instanceof T?(t.isExpression()||(this._noparen=!0),r=n instanceof Array?a(n):n.c({expression:t.isExpression()})):r=n instanceof Array?a(n):n.c({expression:!0}),r},C.prototype.set=function(t){return console.log("Parens set "+JSON.stringify(t)),C.__super__.set.call(this,t)},C.prototype.shouldParenthesize=function(){return this._noparen?!1:!0},C.prototype.prebreak=function(t){return C.__super__.prebreak.call(this,t),console.log("PREBREAK"),this._value&&this._value.prebreak(t),this;
|
11
|
+
},C.prototype.isExpressable=function(){return this._value.isExpressable()},C.prototype.consume=function(t){return this._value.consume(t)},e(I,E),exports.ExpressionBlock=I,I.prototype.c=function(){return this.map(function(t){return t.c()}).join(",")},I.prototype.consume=function(t){return this.value().consume(t)},I.prototype.addExpression=function(t){return t.node()instanceof Yt?(this.push(t.left()),new ee("=",new bt(this.nodes()),t.right())):(this.push(t),this)},e($,g),exports.Return=$,$.prototype.value=function(t){return this._value},$.prototype.setValue=function(t){return this._value=t,this},$.prototype.visit=function(){return this._value&&this._value.traverse?this._value.traverse():void 0},$.prototype.js=function(t){var e=this._value;return e instanceof A?"return ["+e.c({expression:!0})+"]":e?"return "+e.c({expression:!0}):"return"},$.prototype.c=function(){return!this.value()||this.value().isExpressable()?$.__super__.c.apply(this,arguments):this.value().consume(this).c()},$.prototype.consume=function(t){return this},e(N,$),exports.ImplicitReturn=N,e(R,N),exports.GreedyReturn=R,e(V,g),exports.Throw=V,V.prototype.js=function(t){return"throw "+this.value().c()},V.prototype.consume=function(t){return this},e(z,g),exports.LoopFlowStatement=z,z.prototype.literal=function(t){return this._literal},z.prototype.setLiteral=function(t){return this._literal=t,this},z.prototype.expression=function(t){return this._expression},z.prototype.setExpression=function(t){return this._expression=t,this},z.prototype.visit=function(){return this.expression()?this.expression().traverse():void 0},z.prototype.consume=function(t){return this},z.prototype.c=function(){if(!this.expression())return z.__super__.c.apply(this,arguments);var t=Sn.up(ve),e=this.expression();if(t.catcher()){e=e.consume(t.catcher());var n=new this.constructor(this.literal());return new T([e,n]).c()}return e?(n=new this.constructor(this.literal()),new T([e,n]).c()):z.__super__.c.apply(this,arguments)},e(L,z),exports.BreakStatement=L,L.prototype.js=function(t){return"break"},e(D,z),exports.ContinueStatement=D,D.prototype.js=function(t){return"continue"},e(F,g),exports.DebuggerStatement=F,e(B,d),exports.Param=B,B.prototype.name=function(t){return this._name},B.prototype.setName=function(t){return this._name=t,this},B.prototype.index=function(t){return this._index},B.prototype.setIndex=function(t){return this._index=t,this},B.prototype.defaults=function(t){return this._defaults},B.prototype.setDefaults=function(t){return this._defaults=t,this},B.prototype.splat=function(t){return this._splat},B.prototype.setSplat=function(t){return this._splat=t,this},B.prototype.variable=function(t){return this._variable},B.prototype.setVariable=function(t){return this._variable=t,this},B.prototype.varname=function(){return this._variable?this._variable.c():this.name()},B.prototype.js=function(t){return this._variable?this._variable.c():this.defaults()?"if("+this.name().c()+" == null) "+this.name().c()+" = "+this.defaults().c():void 0},B.prototype.visit=function(){var t,e;return this._defaults&&this._defaults.traverse(),(t=this.variable())||(this.setVariable(e=this.scope__().register(this.name(),this)),e),this._name instanceof ne&&(this._name._value&&(this._name._value._type="PARAMVAR"),this._name.references(this._variable)),this},B.prototype.assignment=function(){return xn("=",this.variable().accessor(),this.defaults())},B.prototype.isExpressable=function(){return!this.defaults()||this.defaults().isExpressable()},B.prototype.dump=function(){return{loc:this.loc()}},B.prototype.loc=function(){return this._name&&this._name.region()},B.prototype.toJSON=function(){return{type:this.typeName(),name:this.name(),defaults:this.defaults()}},e(M,B),exports.SplatParam=M,M.prototype.loc=function(){var t=this.name().region();return[t[0]-1,t[1]]},e(G,B),exports.BlockParam=G,G.prototype.c=function(){return"blockparam"},G.prototype.loc=function(){var t=this.name().region();return[t[0]-1,t[1]]},e(U,B),exports.OptionalParam=U,e(q,B),exports.NamedParam=q,e(J,B),exports.RequiredParam=J,e(K,E),exports.NamedParams=K,K.prototype.index=function(t){return this._index},K.prototype.setIndex=function(t){return this._index=t,this},K.prototype.variable=function(t){return this._variable},K.prototype.setVariable=function(t){return this._variable=t,this},K.prototype.load=function(t){var e=function(t){return new q(t.key(),t.value())};return t instanceof jt?t.value().map(e):t},K.prototype.visit=function(){var t=this.scope__();return this._variable||(this._variable=t.temporary(this,{pool:"keypars"})),this._variable.predeclared(),K.__super__.visit.apply(this,arguments),this},K.prototype.varname=function(){return this.variable().c()},K.prototype.name=function(){return this.varname()},K.prototype.js=function(t){return"namedpar"},K.prototype.toJSON=function(){return{type:this.typeName(),nodes:this.filter(function(t){return t instanceof q})}},e(H,B),exports.IndexedParam=H,H.prototype.parent=function(t){return this._parent},H.prototype.setParent=function(t){return this._parent=t,this},H.prototype.subindex=function(t){return this._subindex},H.prototype.setSubindex=function(t){return this._subindex=t,this},H.prototype.visit=function(){var t,e;return(t=this.variable())||(this.setVariable(e=this.scope__().register(this.name(),this)),e),this.variable().proxy(this.parent().variable(),this.subindex()),this},e(W,E),exports.ArrayParams=W,W.prototype.index=function(t){return this._index},W.prototype.setIndex=function(t){return this._index=t,this},W.prototype.variable=function(t){return this._variable},W.prototype.setVariable=function(t){return this._variable=t,this},W.prototype.visit=function(){var t=this.scope__();return this._variable||(this._variable=t.temporary(this,{pool:"keypars"})),this._variable.predeclared(),W.__super__.visit.apply(this,arguments)},W.prototype.name=function(){return this.variable().c()},W.prototype.load=function(t){var e=this;return t instanceof St?t.splat()?void 0:t.value().map(function(t,n){var r=t;return t instanceof Ht&&(r=t.value().value()),e.parse(r,t,n)}):null},W.prototype.parse=function(t,e,n){var r=new H(t,null);return r.setParent(this),r.setSubindex(n),r},W.prototype.head=function(t){return this},e(Y,E),exports.ParamList=Y,Y.prototype.splat=function(t){return this._splat},Y.prototype.setSplat=function(t){return this._splat=t,this},Y.prototype.block=function(t){return this._block},Y.prototype.setBlock=function(t){return this._block=t,this},Y.prototype.at=function(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=null),e)for(;this.count()<=t;)this.add(new B(this.count()==t&&n||"_"+this.count()));return this.list()[t]},Y.prototype.metadata=function(){return this.filter(function(t){return!(t instanceof x)})},Y.prototype.toJSON=function(){return this.metadata()},Y.prototype.visit=function(){this._splat=this.filter(function(t){return t instanceof M})[0];var t=this.filter(function(t){return t instanceof G});return t.length>1?t[1].warn("a method can only have one &block parameter"):t[0]&&t[0]!=this.last()&&t[0].warn("&block must be the last parameter of a method"),Y.__super__.visit.apply(this,arguments)},Y.prototype.js=function(t){if(0==this.count())return Ln;if(t.parent()instanceof T)return this.head(t);if(t.parent()instanceof et){var e=this.nodes();return this._splat&&(e=this.filter(function(t){return t instanceof J||t instanceof U})),c(e.map(function(t){return i(t.varname())})).join(",")}throw"not implemented paramlist js"},Y.prototype.head=function(t){var e=[],r=[],i=null,s=null,o=null,p=[],u=[],a=0;if(this.nodes().forEach(function(t,n){return t.setIndex(a),t instanceof K?(u.push("named"),o=t):t instanceof U?(u.push("opt"),r.push(t)):t instanceof G?(u.push("blk"),i=t):t instanceof M?(u.push("splat"),s=t,a-=1):t instanceof W?(p.push(t),u.push("ary")):(u.push("reg"),e.push(t)),a++}),o)var h=o.variable();var c=[],l=function(t){return"typeof "+t+" == 'function'"},f=function(t){return""+t+".constructor === Object"},_=function(t){return""+t+".constructor !== Object"};if(!o&&!s&&!i&&r.length>0&&u.join(" ").match(/opt$/))for(var y,v=0,d=r.length;d>v;v++)y=r[v],c.push("if("+y.name().c()+" === undefined) "+y.name().c()+" = "+y.defaults().c());else if(!o||s||i||0!=r.length)if(!i||1!=r.length||s||o){if(i&&o&&0==r.length&&!s)P=i.name().c(),c.push("if("+P+"==undefined && "+l(h.c())+") "+P+" = "+h.c()+","+h.c()+" = {}"),c.push("else if(!"+h.c()+"||"+_(h.c())+") "+h.c()+" = {}");else if(r.length>0||s){var m=this.scope__().temporary(this,{pool:"arguments"}).predeclared().c(),g=this.scope__().temporary(this,{pool:"counter"}).predeclared().c(),x=""+m+"["+g+"-1]",b=""+m+"[--"+g+"]";c.push("var "+m+" = arguments, "+g+" = "+m+".length"),i&&(P=i.name().c(),s?c.push("var "+P+" = "+l(x)+" ? "+b+" : null"):e.length>0?c.push("var "+P+" = "+g+" > "+e.length+" && "+l(x)+" ? "+b+" : null"):c.push("var "+P+" = "+l(x)+" ? "+b+" : null")),o&&c.push("var "+h.c()+" = "+x+"&&"+f(x)+" ? "+b+" : {}");for(var w,k=0,d=r.length;d>k;k++)w=r[k],c.push("if("+g+" < "+(w.index()+1)+") "+w.name().c()+" = "+w.defaults().c());if(s){var S=s.name().c(),j=s.index();0==j?(c.push("var "+S+" = new Array("+g+">"+j+" ? "+g+" : 0)"),c.push("while("+g+">"+j+") "+S+"["+g+"-1] = "+b)):(c.push("var "+S+" = new Array("+g+">"+j+" ? "+g+"-"+j+" : 0)"),c.push("while("+g+">"+j+") "+S+"[--"+g+" - "+j+"] = "+m+"["+g+"]"))}}else if(r.length>0)for(var E,A=0,d=r.length;d>A;A++)E=r[A],c.push("if("+E.name().c()+" === undefined) "+E.name().c()+" = "+E.defaults().c())}else{var O=r[0],T=O.name().c(),P=i.name().c();c.push("if("+P+"==undefined && "+l(T)+") "+P+" = "+T+","+T+" = "+O.defaults().c()),c.push("if("+T+"==undefined) "+T+" = "+O.defaults().c())}else c.push("if(!"+h.c()+"||"+_(h.c())+") "+h.c()+" = {}");if(o)for(var C,I=0,$=n(o.nodes()),d=$.length;d>I;I++)C=$[I],O=xn(".",h,C.c()).c(),c.push("var "+C.c()+" = "+O+" !== undefined ? "+O+" : "+C.defaults().c());if(p.length)for(var N=0,d=p.length;d>N;N++)p[N].head(t,c,this);return c.length>0?c.join(";\n")+";":Ln},e(Z,E),exports.VariableDeclaration=Z,Z.prototype.kind=function(t){return this._kind},Z.prototype.setKind=function(t){return this._kind=t,this},Z.prototype.add=function(t,e,n){void 0===n&&(n=-1);var r=new X(t,e);return t instanceof _n&&(r.setVariable(t),t),0==n?this.unshift(r):this.push(r),r},Z.prototype.load=function(t){return t.map(function(t){return new X(t.name(),t.defaults(),t.splat())})},Z.prototype.isExpressable=function(){return this.nodes().every(function(t){return t.isExpressable()})},Z.prototype.js=function(t){if(0==this.count())return Ln;if(1==this.count()&&!this.isExpressable()){this.first().variable().autodeclare();var e=this.first().assignment();return e.c()}var n=c(a(this.nodes())).join(", ");return n?"var "+n:""},e(X,B),exports.VariableDeclarator=X,X.prototype.visit=function(){var t,e;return(t=this.variable())||(this.setVariable(e=this.scope__().register(this.name(),null)),e),this.defaults()&&this.defaults().traverse(),this.variable().setDeclarator(this),this.variable().addReference(this.name()),this},X.prototype.js=function(t){if(this.variable()._proxy)return null;var e=this.defaults();return null!=e&&void 0!=e?(e instanceof d&&(e=e.c({expression:!0})),""+this.variable().c()+" = "+e):""+this.variable().c()},X.prototype.accessor=function(){return this},e(Q,m),exports.VarName=Q,Q.prototype.variable=function(t){return this._variable},Q.prototype.setVariable=function(t){return this._variable=t,this},Q.prototype.splat=function(t){return this._splat},Q.prototype.setSplat=function(t){return this._splat=t,this},Q.prototype.visit=function(){var t,e;return(t=this.variable())||(this.setVariable(e=this.scope__().register(this.value().c(),null)),e),this.variable().setDeclarator(this),this.variable().addReference(this.value()),this},Q.prototype.js=function(t){return this.variable().c()},Q.prototype.c=function(){return this.variable().c()},e(tt,d),exports.VarList=tt,tt.prototype.type=function(t){return this._type},tt.prototype.setType=function(t){return this._type=t,this},tt.prototype.left=function(t){return this._left},tt.prototype.setLeft=function(t){return this._left=t,this},tt.prototype.right=function(t){return this._right},tt.prototype.setRight=function(t){return this._right=t,this},tt.prototype.visit=function(){for(var t,e=0,r=n(this.left()),i=r.length;i>e;e++)r[e].traverse(),(t=this.right()[e])&&t.traverse();return this},tt.prototype.js=function(t){var e=[],r=this.left().length,i=this.right().length,s=null;if(r>1&&1==i){this.p("multiassign!");var p=this.right()[0];p.cache();for(var u,a=0,h=n(this.left()),c=h.length;c>a;a++){if(u=h[a],u.splat())throw"not supported?";s=xn(".",p,o(a)),e.push(xn("=",u,s))}}else for(var l,f=0,h=n(this.left()),c=h.length;c>f;f++)l=h[f],p=this.right()[f],e.push(p?xn("=",l.variable().accessor(),p):l);return"var "+e.c()},e(et,d),exports.Code=et,et.prototype.head=function(t){return this._head},et.prototype.setHead=function(t){return this._head=t,this},et.prototype.body=function(t){return this._body},et.prototype.setBody=function(t){return this._body=t,this},et.prototype.scope=function(t){return this._scope},et.prototype.setScope=function(t){return this._scope=t,this},et.prototype.params=function(t){return this._params},et.prototype.setParams=function(t){return this._params=t,this},et.prototype.scopetype=function(){return Qe},et.prototype.visit=function(){return this._scope&&this._scope.visit(),this},e(nt,et),exports.Root=nt,nt.prototype.visit=function(){return tr=Sn.ROOT=this._scope,this.scope().visit(),this.body().traverse()},nt.prototype.compile=function(t){Sn.reset(),Qn=Sn._options=this._options=t||{},this.traverse();var e=this.c(),n={js:e,ast:this,warnings:this.scope().warnings(),options:t,toString:function(){return this.js}};return t.sourceMapInline&&new Xn(n).generate(),n},nt.prototype.js=function(t){var e;this._options.bare?e=this.scope().c():(this.body().consume(new N),e=this.scope().c({indent:!0}),e=e.replace(/^\n?/,"\n"),e=e.replace(/\n?$/,"\n\n"),e="(function(){"+e+"})()");var n=[];return e=e.replace(/^[ \t]*\/\/(\!.+)$/gm,function(t,e){return e=e.replace(/\bimba\b/g,"node"),n.push("#"+e+"\n"),""}),e=n.join("")+e},nt.prototype.analyze=function(t){t&&t.constructor===Object||(t={});var e=void 0!==t.loglevel?t.loglevel:0,n=void 0!==t.entities?t.entities:!1,r=void 0!==t.scopes?t.scopes:!0;return Sn.setLoglevel(e),Sn._analyzing=!0,tr=Sn.ROOT=this._scope,Qn={analysis:{entities:n,scopes:r}},this.traverse(),Sn._analyzing=!1,this.scope().dump()},nt.prototype.inspect=function(){return!0},e(rt,et),exports.ClassDeclaration=rt,rt.prototype.name=function(t){return this._name},rt.prototype.setName=function(t){return this._name=t,this},rt.prototype.superclass=function(t){return this._superclass},rt.prototype.setSuperclass=function(t){return this._superclass=t,this},rt.prototype.initor=function(t){return this._initor},rt.prototype.setInitor=function(t){return this._initor=t,this},rt.prototype.consume=function(t){return t instanceof $?(this.option("return",!0),this):rt.__super__.consume.apply(this,arguments)},rt.prototype.namepath=function(){return this._namepath||(this._namepath=""+this.name().c())},rt.prototype.metadata=function(){var t;return{type:"class",namepath:this.namepath(),inherits:(t=this.superclass())&&t.namepath&&t.namepath(),path:this.name().c().toString(),desc:this._desc,loc:this.loc()}},rt.prototype.toJSON=function(){return this.metadata()},rt.prototype.visit=function(){return tr.entities().add(this.namepath(),this),this.scope().visit(),this.body().traverse(),this},rt.prototype.js=function(t){if(this.scope().virtualize(),this.scope().context().setValue(this.name()),this.option("extension"))return this.body().c();var e=[],t=this._options||{},r=this.name()instanceof Dt?this.name().right():this.name(),i=this.name()!=r,o=null,p=this.superclass(),u=-1,a=(this.body().filter(function(t){return t instanceof w}),s(this.option("keyword")));this.body().map(function(t,e){return t instanceof ut&&"constructor"==t.type()?u=e:void 0}),u>=0&&(o=this.body().removeAt(u)),"string"!=typeof r&&(r=r.c());var h="string"==typeof this.name()?this.name():this.name().c();o?(o.setName(r),o=o.c()+";"):o=p?""+a+"function "+r+"(){ return "+p.c()+".apply(this,arguments) };\n\n":""+a+"function "+r+"(){ };\n\n",i&&(o=""+h+" = "+o),e.push(o),u>=0&&this.body().index(u)instanceof w&&e.push(this.body().removeAt(u)),p&&e.push(new Ze.Subclass([this.name(),p])),t.global&&!i&&e.push("global."+r+" = "+h+"; // global class \n"),t["export"]&&!i&&e.push("exports."+r+" = "+h+"; // export class \n"),this.option("return")&&this.body().push("return "+h+";");for(var c=0,l=n(e.reverse()),f=l.length;f>c;c++)this.body().unshift(l[c]);this.body()._indentation=null;var _=this.body().index(this.body().count()-1);_ instanceof w&&1==_.c().length&&this.body().pop();var y=this.body().c();return y},e(it,et),exports.TagDeclaration=it,it.prototype.name=function(t){return this._name},it.prototype.setName=function(t){return this._name=t,this},it.prototype.superclass=function(t){return this._superclass},it.prototype.setSuperclass=function(t){return this._superclass=t,this},it.prototype.initor=function(t){return this._initor},it.prototype.setInitor=function(t){return this._initor=t,this},it.prototype.namepath=function(){return"<"+this.name()+">"},it.prototype.toJSON=function(){return{type:"tag",namepath:this.namepath(),inherits:this.superclass()?"<"+this.superclass().name()+">":null,loc:this.loc(),desc:this._desc}},it.prototype.visit=function(){tr.entities().register(this);for(var t,e=0,r=n(Sn.scopes()),i=r.length;i>e;e++)if(t=r[e],e>0&&t instanceof nn){t.node().option("hasLocalTags",!0),this.option("parent",t.node());break}return this.scope().visit(),this.body().traverse()},it.prototype.id=function(){return this.name().id()},it.prototype.tagspace=function(){var t=this.scope().closure().tagContextPath();return this.name().ns()?""+t+"."+this.name().ns().toUpperCase():t},it.prototype.js=function(t){this.scope().context().setValue(this._ctx=this.scope().declare("tag",null,{system:!0}));var e=(this.name().ns(),s(this.option("keyword"))),n=[Kn.singlequote(this.name().name())],r=this.body().c();this.superclass()&&n.push(Kn.singlequote(this.superclass().name())),this.body().count()&&(this.option("hasLocalTags")?n.push("function("+this._ctx.c()+","+this.scope().closure().tagContextPath()+"){"+r+"}"):n.push("function("+this._ctx.c()+"){"+r+"}"));var i=this.option("extension")?"extendTag":"defineTag";return""+e+this.tagspace()+"."+i+"("+n.join(", ")+")"},e(st,et),exports.Func=st,st.prototype.name=function(t){return this._name},st.prototype.setName=function(t){return this._name=t,this},st.prototype.params=function(t){return this._params},st.prototype.setParams=function(t){return this._params=t,this},st.prototype.target=function(t){return this._target},st.prototype.setTarget=function(t){return this._target=t,this},st.prototype.options=function(t){return this._options},st.prototype.setOptions=function(t){return this._options=t,this},st.prototype.type=function(t){return this._type},st.prototype.setType=function(t){return this._type=t,this},st.prototype.context=function(t){return this._context},st.prototype.setContext=function(t){return this._context=t,this},st.prototype.scopetype=function(){return sn},st.prototype.visit=function(){return this.scope().visit(),this._context=this.scope().parent(),this._params.traverse(),this._body.traverse()},st.prototype.js=function(t){this.option("noreturn")||this.body().consume(new N);var e=this.body()._indentation;e&&e.isGenerated()&&(this.body()._indentation=null);var n=this.scope().c({indent:!e||!e.isGenerated(),braces:!0}),r="string"==typeof this._name?this._name:this._name.c();r=r?" "+r.replace(/\./g,"_"):"";var i="function"+r+"("+this.params().c()+") "+n;return this.option("eval")&&(i="("+i+")()"),i},st.prototype.shouldParenthesize=function(t){return void 0===t&&(t=this.up()),t instanceof ue&&t.callee()==this},e(ot,st),exports.Lambda=ot,ot.prototype.scopetype=function(){return pn},e(pt,st),exports.TagFragmentFunc=pt,e(ut,st),exports.MethodDeclaration=ut,ut.prototype.variable=function(t){return this._variable},ut.prototype.setVariable=function(t){return this._variable=t,this},ut.prototype.scopetype=function(){return on},ut.prototype.consume=function(t){return t instanceof $?(this.option("return",!0),this):ut.__super__.consume.apply(this,arguments)},ut.prototype.metadata=function(){return{type:"method",name:""+this.name(),namepath:this.namepath(),params:this._params.metadata(),desc:this._desc,scopenr:this.scope()._nr,loc:this.loc()}},ut.prototype.loc=function(){var t;return(t=this.option("def"))?[t._loc,this.body().loc()[1]]:[0,0]},ut.prototype.toJSON=function(){return this.metadata()},ut.prototype.namepath=function(){if(this._namepath)return this._namepath;var t=String(this.name()),e=this.option("static")?".":"#";return this.target()?this._namepath=this._target.namepath()+e+t:this._namepath="&"+t},ut.prototype.visit=function(){if(this.scope().visit(),"initialize"==String(this.name())&&this.setType("constructor"),this.option("greedy")){this.warn("deprecated");var t=new Ce;this._body=this.body().consume(t)}return this._context=this.scope().parent().closure(),this._params.traverse(),this.target()instanceof Ot&&(this._target=this._context.context(),this.set({"static":!0})),this.context()instanceof en&&(this.context().annotate(this),this._target||(this._target=this.context().context())),this._target||(this._variable=this.context().register(this.name(),this,{type:"meth"})),tr.entities().add(this.namepath(),this),this._body.traverse(),this},ut.prototype.supername=function(){return"constructor"==this.type()?this.type():this.name()},ut.prototype.js=function(t){"constructor"==this.type()||this.option("noreturn")||(this.option("greedy")?this.body().consume(new R):this.body().consume(new N));var e=this.scope().c({indent:!0,braces:!0}),n="string"==typeof this._name?this._name:this._name.c();n=n.replace(/\./g,"_");var r="("+this.params().c()+")"+e,i=this.target();!this.option("global")&&!this.option("export");i instanceof vn&&(i=null);var o=this.context(),p="",a=s(this.option("def")),h=u(this.name()),c=h;return p=o instanceof en&&!i?"constructor"==this.type()?""+a+"function "+h+r:this.option("static")?""+a+o.context().c()+"."+h+" = function "+r:""+a+o.context().c()+".prototype."+h+" = function "+r:o instanceof tn&&!i?""+a+"function "+c+r:i&&this.option("static")?""+a+i.c()+"."+h+" = function "+r:i?""+a+i.c()+".prototype."+h+" = function "+r:""+a+"function "+c+r,this.option("global")&&(p=""+h+" = "+p),this.option("export")?(p=""+p+"; exports."+h+" = "+h+";",this.option("return")&&(p=""+p+"; return "+h+";")):this.option("return")&&(p="return "+p),p},e(at,ut),exports.TagFragmentDeclaration=at,e(ht,d),exports.PropertyDeclaration=ht;var ur="\n${headers}\n${path}.${getter} = function(v){ return ${get}; }\n${path}.${setter} = function(v){ ${set}; return this; }\n${init}",ar="\n${headers}\n${path}.${getter} = function(v){ return ${get}; }\n${path}.${setter} = function(v){\n var a = this.${getter}();\n if(v != a) { v = ${set}; }\n if(v != a) { ${ondirty} }\n return this;\n}\n${init}";return ht.prototype.name=function(t){return this._name},ht.prototype.setName=function(t){return this._name=t,this},ht.prototype.options=function(t){return this._options},ht.prototype.setOptions=function(t){return this._options=t,this},ht.prototype.visit=function(){return this._options.traverse(),this},ht.prototype.c=function(){var t=this.options(),e=this.name().js(),n=Sn.scope(),r=t.keys().length,i=t.hash(),s=(this._token&&"attr"==String(this._token)||t.key("attr"),{key:e,getter:e,setter:u("set-"+e),scope:""+n.context().c(),path:"${scope}.prototype",set:"this._"+e+" = v",get:"this._"+e,init:"",headers:"",ondirty:""});if(i.inline&&i.inline instanceof lt&&!i.inline.truthy())return t.remove("inline"),("Imba."+this._token+"("+s.scope+",'"+this.name().value()+"',"+t.c()+")").replace(",{})",")");var o=ur;if(t.add("name",new wt(e)),i.watch){i.watch instanceof lt&&!i.watch.truthy()||(o=ar);var p=""+e+"DidSet";i.watch instanceof wt?p=i.watch:i.watch instanceof lt&&t.key("watch").setValue(new wt(""+e+"DidSet"));var a=xn(".",new Pt,p);s.ondirty=xn("&&",a,rr(a,["v","a","this.__"+e])).c()}if(i.observe&&(i.observe instanceof lt&&t.key("observe").setValue(new wt(""+e+"DidEmit")),o=ar,s.ondirty="Imba.observeProperty(this,'"+e+"',"+t.key("observe").value().c()+",v,a);"+(s.ondirty||"")),this._token&&"attr"==String(this._token)||t.key("dom")||t.key("attr")){var h=t.key("dom")instanceof mt?t.key("dom"):this.name().value();s.set="this.setAttribute('"+h+"',v)",s.get="this.getAttribute('"+h+"')"}else t.key("delegate")&&(s.set="this.__"+e+".delegate.set(this,'"+e+"',v,this.__"+e+")",s.get="this.__"+e+".delegate.get(this,'"+e+"',this.__"+e+")");i["default"]&&(t.key("dom")?s.init=""+s.scope+".dom().setAttribute('"+e+"',"+i["default"].c()+");":s.init=""+s.scope+".prototype._"+e+" = "+i["default"].c()+";"),t.key("chainable")&&(s.get="v !== undefined ? (this."+s.setter+"(v),this) : "+s.get),s.options=t.c(),r&&(s.headers=""+s.path+".__"+s.getter+" = "+s.options+";");var c=/\$\{(\w+)\}/gm,l=o.replace(c,function(t,e){return s[e]});return l=l.replace(c,function(t,e){return s[e]}),l=l.replace(/\n\s*$/,"")},e(ct,m),exports.Literal=ct,ct.prototype.toString=function(){return""+this.value()},ct.prototype.hasSideEffects=function(){return!1},e(lt,ct),exports.Bool=lt,lt.prototype.cache=function(){return this},lt.prototype.isPrimitive=function(){return!0},lt.prototype.truthy=function(){return"true"==String(this.value())},lt.prototype.js=function(t){return String(this._value)},lt.prototype.c=function(){return Sn._counter+=1,String(this._value)},lt.prototype.toJSON=function(){return{type:"Bool",value:this._value}},e(ft,ct),exports.Undefined=ft,ft.prototype.isPrimitive=function(){return!0},ft.prototype.c=function(){return s(this._value)+"undefined"},e(_t,ct),exports.Nil=_t,_t.prototype.isPrimitive=function(){return!0},_t.prototype.c=function(){return s(this._value)+"null"},e(yt,lt),exports.True=yt,yt.prototype.raw=function(){return!0},yt.prototype.c=function(){return s(this._value)+"true"},e(vt,lt),exports.False=vt,vt.prototype.raw=function(){return!1},vt.prototype.c=function(){return s(this._value)+"false"},e(dt,ct),exports.Num=dt,dt.prototype.toString=function(){return String(this._value)},dt.prototype.isPrimitive=function(t){return!0},dt.prototype.shouldParenthesize=function(t){return void 0===t&&(t=this.up()),t instanceof Dt&&t.left()==this},dt.prototype.js=function(t){var e=String(this._value);return e},dt.prototype.c=function(t){if(this._cache)return dt.__super__.c.call(this,t);var e=String(this._value),n=Sn.current(),r=n instanceof Dt&&n.left()==this;return r?"("+s(this._value)+e+")":s(this._value)+e},dt.prototype.cache=function(t){return t&&(t.cache||t.pool)?dt.__super__.cache.call(this,t):this},dt.prototype.raw=function(){return JSON.parse(String(this.value()))},dt.prototype.toJSON=function(){return{type:this.typeName(),value:this.raw()}},e(mt,ct),exports.Str=mt,mt.prototype.isString=function(){return!0},mt.prototype.isPrimitive=function(t){return!0},mt.prototype.raw=function(){return this._raw||(this._raw=String(this.value()).slice(1,-1))},mt.prototype.isValidIdentifier=function(){return this.raw().match(/^[a-zA-Z\$\_]+[\d\w\$\_]*$/)?!0:!1},mt.prototype.js=function(t){return String(this._value)},mt.prototype.c=function(t){return this._cache?mt.__super__.c.call(this,t):String(this._value)},e(gt,m),exports.Interpolation=gt,e(xt,d),exports.InterpolatedString=xt,xt.prototype.add=function(t){return t&&this._nodes.push(t),this},xt.prototype.visit=function(){for(var t=0,e=n(this._nodes),r=e.length;r>t;t++)e[t].traverse();return this},xt.prototype.escapeString=function(t){return t=t.replace(/\n/g,"\\\n")},xt.prototype.js=function(t){var e=this,n=[],r="(";return e._nodes.map(function(t,r){return t instanceof Zn&&"NEOSTRING"==t._type?n.push('"'+e.escapeString(t._value)+'"'):t?(0==r&&n.push('""'),t._parens=!0,n.push(t.c({expression:!0}))):void 0}),r+=n.join(" + "),r+=")"},e(bt,E),exports.Tuple=bt,bt.prototype.c=function(){return new St(this.nodes()).c()},bt.prototype.hasSplat=function(){return this.filter(function(t){return t instanceof Oe})[0]},bt.prototype.consume=function(t){if(1==this.count())return this.first().consume(t);throw"multituple cannot consume"},e(wt,ct),exports.Symbol=wt,wt.prototype.isValidIdentifier=function(){return this.raw().match(/^[a-zA-Z\$\_]+[\d\w\$\_]*$/)?!0:!1},wt.prototype.isPrimitive=function(t){return!0},wt.prototype.raw=function(){return this._raw||(this._raw=u(this.value()))},wt.prototype.js=function(t){return"'"+u(this.value())+"'"},e(kt,ct),exports.RegExp=kt,kt.prototype.isPrimitive=function(){return!0},e(St,ct),exports.Arr=St,St.prototype.load=function(t){return t instanceof Array?new A(t):t},St.prototype.push=function(t){return this.value().push(t),this},St.prototype.count=function(){return this.value().length},St.prototype.nodes=function(){var t=this.value();return t instanceof Array?t:t.nodes()},St.prototype.splat=function(){return this.value().some(function(t){return t instanceof Oe})},St.prototype.visit=function(){return this._value&&this._value.traverse&&this._value.traverse(),this},St.prototype.isPrimitive=function(t){return!this.value().some(function(t){return!t.isPrimitive(!0)})},St.prototype.js=function(t){var e=this._value;if(!e)return"[]";var r=this.splat(),i=e instanceof Array?e:e.nodes();if(r){for(var s,o=[],p=null,u=0,h=n(i),c=h.length;c>u;u++)s=h[u],s instanceof Oe?(o.push(s),p=null):(p||o.push(p=new St([])),p.push(s));return"[].concat("+a(o).join(", ")+")"}var l=e instanceof Array?a(e):e.c();return"["+l+"]"},St.prototype.hasSideEffects=function(){return this.value().some(function(t){return t.hasSideEffects()})},St.prototype.toString=function(){return"Arr"},St.prototype.indented=function(t,e){return this._value.indented(t,e),this},St.wrap=function(t){return new St(t)},e(jt,ct),exports.Obj=jt,jt.prototype.load=function(t){return t instanceof Array?new O(t):t},jt.prototype.visit=function(){return this._value&&this._value.traverse(),this},jt.prototype.js=function(t){var e=this.value().filter(function(t){return t instanceof Et&&(t.key()instanceof Ct||t.key()instanceof xt)});if(e.length>0){var n=this.value().indexOf(e[0]),r=this.scope__().temporary(this),i=this.value().slice(0,n),s=new jt(i),o=[xn("=",r,s)];return this.value().slice(n).forEach(function(t){return o.push(xn("=",xn(".",r,t.key()),t.value()))}),o.push(r),new C(o).c()}return"{"+this.value().c()+"}"},jt.prototype.add=function(t,e){("string"==typeof t||t instanceof String)&&(t=new ne(t));var n=new Et(t,e);return this.value().push(n),n},jt.prototype.remove=function(t){for(var e,r=0,i=n(this.value()),s=i.length;s>r;r++)e=i[r],e.key().symbol()==t&&this.value().remove(e);return this},jt.prototype.keys=function(){return Object.keys(this.hash())},jt.prototype.hash=function(){for(var t,e={},r=0,i=n(this.value()),s=i.length;s>r;r++)t=i[r],t instanceof Et&&(e[t.key().symbol()]=t.value());return e},jt.prototype.key=function(t){for(var e,r=0,i=n(this.value()),s=i.length;s>r;r++)if(e=i[r],e instanceof Et&&e.key().symbol()==t)return e;return null},jt.prototype.indented=function(t,e){return this._value.indented(t,e),this},jt.prototype.hasSideEffects=function(){return this.value().some(function(t){return t.hasSideEffects()})},jt.wrap=function(t){for(var e,n=[],r=0,i=Object.keys(t),s=i.length;s>r;r++)e=t[i[r]],e instanceof Array?e=St.wrap(e):e.constructor==Object&&(e=jt.wrap(e)),n.push(new Et(i[r],e));return new jt(n)},jt.prototype.toString=function(){return"Obj"},e(Et,d),exports.ObjAttr=Et,Et.prototype.key=function(t){return this._key},Et.prototype.setKey=function(t){return this._key=t,this},Et.prototype.value=function(t){return this._value},Et.prototype.setValue=function(t){return this._value=t,this},Et.prototype.options=function(t){return this._options},Et.prototype.setOptions=function(t){return this._options=t,this},Et.prototype.visit=function(){return this.key().traverse(),this.value().traverse();
|
12
|
+
},Et.prototype.js=function(t){var e=this.key().isReserved()?"'"+this.key().c()+"'":this.key().c();return""+e+": "+this.value().c()},Et.prototype.hasSideEffects=function(){return!0},e(At,d),exports.ArgsReference=At,At.prototype.c=function(){return"arguments"},e(Ot,ct),exports.Self=Ot,Ot.prototype.scope=function(t){return this._scope},Ot.prototype.setScope=function(t){return this._scope=t,this},Ot.prototype.cache=function(){return this},Ot.prototype.reference=function(){return this},Ot.prototype.c=function(){var t=this.scope__();return t?t.context().c():"this"},e(Tt,Ot),exports.ImplicitSelf=Tt,e(Pt,Ot),exports.This=Pt,Pt.prototype.cache=function(){return this},Pt.prototype.reference=function(){return this},Pt.prototype.c=function(){return"this"},e(Ct,d),exports.Op=Ct,Ct.prototype.op=function(t){return this._op},Ct.prototype.setOp=function(t){return this._op=t,this},Ct.prototype.left=function(t){return this._left},Ct.prototype.setLeft=function(t){return this._left=t,this},Ct.prototype.right=function(t){return this._right},Ct.prototype.setRight=function(t){return this._right=t,this},Ct.prototype.visit=function(){return this._right&&this._right.traverse(),this._left&&this._left.traverse(),this},Ct.prototype.isExpressable=function(){return!this.right()||this.right().isExpressable()},Ct.prototype.js=function(t){var e=null,n=this._op,r=this._left,i=this._right;return r instanceof d&&(r=r.c()),i instanceof d&&(i=i.c()),r&&i?e=""+r+" "+s(this._opToken)+n+" "+i:r&&(e=""+s(this._opToken)+n+r),e},Ct.prototype.shouldParenthesize=function(){return this._parens},Ct.prototype.precedence=function(){return 10},Ct.prototype.consume=function(t){if(t instanceof Ce)return this._left&&this._left.consume(t),this._right&&this._right.consume(t),this;if(this.isExpressable())return Ct.__super__.consume.apply(this,arguments);var e=(this.scope__().declare("tmp",null,{system:!0}),xn(this.op(),this.left(),null)),n=this.right().consume(e);return t&&n.consume(t),n},e(It,Ct),exports.ComparisonOp=It,It.prototype.invert=function(){var t=this._op,e=["==","!=","===","!==",">","<=","<",">="],n=e.indexOf(t);return n+=n%2?-1:1,this.setOp(e[n]),this._invert=!this._invert,this},It.prototype.c=function(){return this.left()instanceof It?(this.left().right().cache(),xn("&&",this.left(),xn(this.op(),this.left().right(),this.right())).c()):It.__super__.c.apply(this,arguments)},It.prototype.js=function(t){var e=this._op,n=this._left,r=this._right;return n instanceof d&&(n=n.c()),r instanceof d&&(r=r.c()),""+n+" "+s(this._opToken)+e+" "+r},e($t,Ct),exports.MathOp=$t,$t.prototype.c=function(){return"∪"==this.op()?this.util().union(this.left(),this.right()).c():"∩"==this.op()?this.util().intersect(this.left(),this.right()).c():void 0},e(Nt,Ct),exports.UnaryOp=Nt,Nt.prototype.invert=function(){return"!"==this.op()?this.left():Nt.__super__.invert.apply(this,arguments)},Nt.prototype.js=function(t){var e=this._left,n=this._right;if("!"==this.op()){var r=e.c(),i=e.shouldParenthesize(this);return r.match(/^\!?([\w\.]+)$/)||e instanceof C||i||e instanceof Dt||e instanceof ue||(r="("+r+")"),""+this.op()+r}return"√"==this.op()?"Math.sqrt("+e.c()+")":this.left()?""+e.c()+this.op():""+this.op()+n.c()},Nt.prototype.normalize=function(){if("!"==this.op()||"√"==this.op())return this;var t=(this.left()||this.right()).node();if(!(t instanceof Gt))return this;t instanceof Dt&&t.left()&&t.left().cache();var e=new dt(1),n=xn("=",t,xn(this.op()[0],t,e));return this.left()&&(n=xn("-"==this.op()[0]?"+":"-",n,e)),n},Nt.prototype.consume=function(t){var e=this.normalize();return e==this?Nt.__super__.consume.apply(this,arguments):e.consume(t)},Nt.prototype.c=function(){var t=this.normalize();return t==this?Nt.__super__.c.apply(this,arguments):t.c()},e(Rt,Ct),exports.InstanceOf=Rt,Rt.prototype.js=function(e){if(this.right()instanceof se){var n=i(this.right().value()),r=this.left().node();if(t(n,["String","Number","Boolean"])>=0)return r instanceof Ft||r.cache(),"(typeof "+r.c()+"=='"+n.toLowerCase()+"'||"+r.c()+" instanceof "+n+")"}var s=""+this.left().c()+" "+this.op()+" "+this.right().c();return e.parent()instanceof Ct&&(s=Kn.parenthesize(s)),s},e(Vt,Ct),exports.TypeOf=Vt,Vt.prototype.js=function(t){return"typeof "+this.left().c()},e(zt,Ct),exports.Delete=zt,zt.prototype.js=function(t){var e=this.left(),n=this.scope__().temporary(this,{pool:"val"}),t=xn("=",n,e);return"("+t.c()+",delete "+e.c()+", "+n.c()+")"},zt.prototype.shouldParenthesize=function(){return!0},e(Lt,Ct),exports.In=Lt,Lt.prototype.invert=function(){return this._invert=!this._invert,this},Lt.prototype.js=function(t){var e=this._invert?"== -1":">= 0",n=Ze.indexOf(this.left(),this.right());return""+n.c()+" "+e},module.exports.K_IVAR=jn=1,module.exports.K_SYM=En=2,module.exports.K_STR=An=3,module.exports.K_PROP=On=4,e(Dt,Ct),exports.Access=Dt,Dt.prototype.clone=function(t,e){var n=this.constructor;return new n(this.op(),t,e)},Dt.prototype.js=function(t){var e,n=null,r=this.right(),i=this.left()||this.scope__().context(),o="",p="";if(r instanceof dt)return i.c()+"["+r.c()+"]";r instanceof j&&(r.value()instanceof mt||r.value()instanceof wt)&&(r=r.value()),r instanceof mt&&r.isValidIdentifier()?n=r.raw():r instanceof wt&&r.isValidIdentifier()?n=r.raw():r instanceof ne&&r.isValidIdentifier()&&(p=s(r._value),n=r.c()),this.safechain()&&i&&(i.cache({force:!0}),o=i.c()+" && ");var u=n?i?""+i.c()+"."+p+n:n:(e=r instanceof d?r.c({expression:!0}):r,""+i.c()+"["+e+"]");return o+u},Dt.prototype.visit=function(){this.left()&&this.left().traverse(),this.right()&&this.right().traverse()},Dt.prototype.isExpressable=function(){return!0},Dt.prototype.alias=function(){return this.right()instanceof ne?this.right().alias():Dt.__super__.alias.call(this)},Dt.prototype.safechain=function(){return"?."==String(this._op)||"?:"==String(this._op)},Dt.prototype.cache=function(t){return this.right()instanceof ie&&!this.left()?this:Dt.__super__.cache.call(this,t)},e(Ft,Dt),exports.LocalVarAccess=Ft,Ft.prototype.safechain=function(t){return this._safechain},Ft.prototype.setSafechain=function(t){return this._safechain=t,this},Ft.prototype.js=function(t){return this.right()instanceof _n&&"meth"==this.right().type()&&!(this.up()instanceof ue)?""+this.right().c()+"()":this.right().c()},Ft.prototype.variable=function(){return this.right()},Ft.prototype.cache=function(t){return void 0===t&&(t={}),t.force&&Ft.__super__.cache.call(this,t),this},Ft.prototype.alias=function(){return this.variable()._alias||Ft.__super__.alias.call(this)},e(Bt,m),exports.GlobalVarAccess=Bt,Bt.prototype.js=function(t){return this.value().c()},e(Mt,Dt),exports.ObjectAccess=Mt,e(Gt,Dt),exports.PropertyAccess=Gt,Gt.prototype.visit=function(){return this._right&&this._right.traverse(),this._left&&this._left.traverse(),this},Gt.prototype.js=function(t){var e;if(e=this.receiver()){var n=rr(xn(".",this.left(),this.right()),[]);return n.setReceiver(e),n.c()}var r=this.up();if(!(r instanceof ue))return n=rr(new Dt(this.op(),this.left(),this.right()),[]),n.c();var i=""+Gt.__super__.js.call(this,t);return r instanceof ue||r instanceof Ze.IsFunction||(i+="()"),i},Gt.prototype.receiver=function(){return this.left()instanceof Kt||this.left()instanceof mn?Cn:null},e(Ut,Dt),exports.IvarAccess=Ut,Ut.prototype.cache=function(){return this},e(qt,Dt),exports.ConstAccess=qt,e(Jt,Dt),exports.IndexAccess=Jt,Jt.prototype.cache=function(t){return void 0===t&&(t={}),t.force?Jt.__super__.cache.apply(this,arguments):(this.right().cache(),this)},e(Kt,Dt),exports.SuperAccess=Kt,Kt.prototype.js=function(t){var e=t.method(),n=t.parent(),r=(t.parent()instanceof Dt,""+this.left().c()+".__super__");return n instanceof Dt||(r+="."+e.supername().c(),n instanceof ue||(r+=".apply("+e.scope().context().c()+",arguments)")),r},Kt.prototype.receiver=function(){return Cn},e(Ht,m),exports.VarOrAccess=Ht,Ht.prototype.visit=function(){var t=this.scope__(),e=t.lookup(this.value());return e&&e.declarator()&&(e._initialized||t.closure()!=e.scope().closure())?(this._variable=e,e.addReference(this),this._value=e,this._token._variable=e,this):this.value().symbol().indexOf("$")>=0?(this._value=new Bt(this.value()),this):(this._value=new Gt(".",t.context(),this.value()),this._token._meta={type:"ACCESS"},this)},Ht.prototype.c=function(){return s(this._token)+(this._variable?Ht.__super__.c.call(this):this.value().c())},Ht.prototype.js=function(t){var e;if(e=this._variable){var n=e.c();return"meth"!=e._type||t.up()instanceof ue||(n+="()"),n}return"NONO"},Ht.prototype.node=function(){return this._variable?this:this.value()},Ht.prototype.symbol=function(){return this._identifier.symbol()},Ht.prototype.cache=function(t){return void 0===t&&(t={}),this._variable?t.force&&Ht.__super__.cache.call(this,t):this.value().cache(t)},Ht.prototype.decache=function(){return this._variable?Ht.__super__.decache.call(this):this.value().decache(),this},Ht.prototype.dom=function(){return this.value().dom()},Ht.prototype.safechain=function(){return this._identifier.safechain()},Ht.prototype.dump=function(){return{loc:this.loc()}},Ht.prototype.loc=function(){var t=this._identifier.region();return t||[0,0]},Ht.prototype.region=function(){return this._identifier.region()},Ht.prototype.toString=function(){return"VarOrAccess("+this.value()+")"},Ht.prototype.toJSON=function(){return{type:this.typeName(),value:this._identifier.toString()}},e(Wt,m),exports.VarReference=Wt,Wt.prototype.variable=function(t){return this._variable},Wt.prototype.setVariable=function(t){return this._variable=t,this},Wt.prototype.declared=function(t){return this._declared},Wt.prototype.setDeclared=function(t){return this._declared=t,this},Wt.prototype.type=function(t){return this._type},Wt.prototype.setType=function(t){return this._type=t,this},Wt.prototype.loc=function(){return this._value.region()},Wt.prototype.set=function(t){return t["export"]&&(this._export=!0),this},Wt.prototype.js=function(t){var e=this._variable,n=e.c();return e&&!e._declared&&(t.up(P)?e._declared=!0:t.isExpression()||this._export?e.autodeclare():(n="var "+s(this._value)+n,e._declared=!0)),this._export&&(n="module.exports."+e.c()+" = "+e.c()),n},Wt.prototype.declare=function(){return this},Wt.prototype.consume=function(t){return this._variable&&this._variable.autodeclare(),this},Wt.prototype.visit=function(){var t=this.value().c(),e=this._variable||(this._variable=this.scope__().register(t,this,{type:this._type}));return e.declarator()||e.setDeclarator(this),this._value&&e.addReference(this._value),this._value._value._variable=e,this},Wt.prototype.refnr=function(){return this.variable().references().indexOf(this.value())},Wt.prototype.addExpression=function(t){return new P([this]).addExpression(t)},e(Yt,Ct),exports.Assign=Yt,Yt.prototype.isExpressable=function(){return!this.right()||this.right().isExpressable()},Yt.prototype.isUsed=function(){return this.up()instanceof T?!1:!0},Yt.prototype.visit=function(){var t=this._left,e=this._right;t&&t.traverse();var n=t instanceof Wt&&t.variable();return!n&&this._desc&&tr.entities().add(t.namepath(),{namepath:t.namepath(),type:e.typeName(),desc:this._desc}),n&&n.declarator()==t?(n._initialized=!1,e&&e.traverse(),n._initialized=!0):e&&e.traverse(),(t instanceof Wt||t._variable)&&t._variable.assigned(e,this),this},Yt.prototype.c=function(t){return this.right().isExpressable()?Yt.__super__.c.call(this,t):this.right().consume(this).c(t)},Yt.prototype.js=function(t){if(!this.right().isExpressable())return this.p("Assign#js right is not expressable "),this.right().consume(this).c();var e=this.left().node();this.right();if(e instanceof Ot){var n=this.scope__().context();e=n.reference()}if(e instanceof Gt){var r=rr(xn(".",e.left(),e.right().setter()),[this.right()]);return r.setReceiver(e.receiver()),this.isUsed()&&(this.right().cachevar()||this.right().cache({pool:"val",uses:1}),r=new C(p([r,this.right()]))),r.c({expression:!0})}var i=""+e.c()+" "+s(this._opToken)+this.op()+" "+this.right().c({expression:!0});return i},Yt.prototype.shouldParenthesize=function(t){return void 0===t&&(t=this.up()),this._parens||t instanceof Ct&&"="!=t.op()},Yt.prototype.consume=function(t){if(this.isExpressable())return this.forceExpression(),Yt.__super__.consume.call(this,t);var e=this.right().consume(this);return e.consume(t)},Yt.prototype.addExpression=function(t){var e=I;this._left&&this._left instanceof Wt&&(e=P);var n=new e([this]);return n.addExpression(t)},e(Zt,Yt),exports.PushAssign=Zt,Zt.prototype.js=function(t){return""+this.left().c()+".push("+this.right().c()+")"},Zt.prototype.consume=function(t){return this},e(Xt,Yt),exports.ConditionalAssign=Xt,Xt.prototype.consume=function(t){return this.normalize().consume(t)},Xt.prototype.normalize=function(){var t=this.left().node(),e=t;t instanceof Dt&&(t.left()&&t.left().cache(),e=t.clone(t.left(),t.right()),t instanceof Gt&&t.cache(),t instanceof Jt&&t.right().cache());var n=this.right().isExpressable(),r=null;return n&&"||="==this.op()?r=xn("||",t,xn("=",e,this.right())):n&&"&&="==this.op()?r=xn("&&",t,xn("=",e,this.right())):(r=er(this.condition(),xn("=",e,this.right()),t),r.setScope(null)),r.isExpressable()&&r.toExpression(),r},Xt.prototype.c=function(){return this.normalize().c()},Xt.prototype.condition=function(){return"?="==this.op()?xn("==",this.left(),Dn):"||="==this.op()?xn("!",this.left()):"&&="==this.op()?this.left():"!?="==this.op()?xn("!=",this.left(),Dn):this.left()},Xt.prototype.js=function(t){var e=er(this.condition(),xn("=",this.left(),this.right()),this.left());return e.setScope(null),e.isExpressable()&&e.toExpression(),e.c()},e(Qt,Yt),exports.CompoundAssign=Qt,Qt.prototype.consume=function(t){if(this.isExpressable())return Qt.__super__.consume.apply(this,arguments);var e=this.normalize();return e!=this?e.consume(t):(e=this.right().consume(this),e.consume(t))},Qt.prototype.normalize=function(){var t=this.left().node();if(!(t instanceof Gt))return this;t instanceof Dt&&t.left()&&t.left().cache();var e=xn("=",this.left(),xn(this.op()[0],this.left(),this.right()));return e.isExpressable()&&e.toExpression(),e},Qt.prototype.c=function(){var t=this.normalize();if(t==this)return Qt.__super__.c.apply(this,arguments);var e=Sn.current();return e instanceof T&&e.replace(this,t),t.c()},e(te,Yt),exports.AsyncAssign=te,e(ee,Yt),exports.TupleAssign=ee,ee.prototype.op=function(t){return this._op},ee.prototype.setOp=function(t){return this._op=t,this},ee.prototype.left=function(t){return this._left},ee.prototype.setLeft=function(t){return this._left=t,this},ee.prototype.right=function(t){return this._right},ee.prototype.setRight=function(t){return this._right=t,this},ee.prototype.type=function(t){return this._type},ee.prototype.setType=function(t){return this._type=t,this},ee.prototype.isExpressable=function(){return this.right().isExpressable()},ee.prototype.addExpression=function(t){return this.right()instanceof bt?this.right().push(t):this.setRight(new bt([this.right(),t])),this},ee.prototype.visit=function(){return this.left().first().node()instanceof Wt&&(this.setType("var"),this._vars=this.left().nodes().filter(function(t){return t instanceof Wt})),this.right().traverse(),this.left().traverse(),this},ee.prototype.js=function(t){var e=this;if(!e.right().isExpressable())return e.right().consume(e).c();var r=new T([]),i=e.left(),s=e.right(),p=e.type(),u=0,a=i.count(),h=a,c=i.filter(function(t){return t instanceof Oe})[0];s instanceof St&&!s.splat()&&(s=new bt(s.nodes()));var l=s instanceof bt?s.count():null;if(c||s!=zn)if(l){var f=i.map(function(t,e){var n=null;if(t==c){n=new A([]);for(var r=l-(a-e);r>=u;)n.push(s.index(u++));n=new St(n)}else n=s.index(u++);return[t.node(),n]}),_=!0;f.map(function(t,n){var i=t[0],s=t[1];return _&&(i instanceof Wt&&0==i.refnr()?_=!0:(_=!1,f.slice(n).map(function(t){return t[1].hasSideEffects()?(e._temporary.push(t[1]),r.push(t[1].cache({force:!0,pool:"swap",declared:"var"==p}))):void 0}))),r.last()==s?(s.decache(),r.replace(s,xn("=",i,s))):r.push(xn("=",i,s))})}else{var y=new P,v=e.util().iterable(s,!0);if(r.push(y),y.push(v),c){var d=e.util().len(v,!0),m=e.util().counter(0,!0);y.push(d),y.push(m)}var g="var"==p?P:T,x=new g([]);r.push(x),i.map(function(t,n){if(t==c){var i=t.node(),s=h-n-1;if("var"!=p){var u=e.util().array(xn("-",d,o(n+s)),!0);y.push(u),i=u.cachevar()}else x||r.push(x=new g),u=e.util().array(xn("-",d,o(n+s))),x.push(xn("=",i,u));var a=s?xn("-",d,s):d,l=xn("=",xn(".",i,xn("-",m,o(n))),xn(".",v,xn("++",m)));return r.push(ir(xn("<",m,a),l)),"var"!=p?(r.push(x=new T),x.push(xn("=",t.node(),i))):x=null}return c?(x||r.push(x=new g),x.push(xn("=",t,xn(".",v,xn("++",m))))):(x||r.push(x=new g),x.push(xn("=",t,xn(".",v,o(n)))))})}else{var b=e.scope__().params();i.map(function(t,e){return r.push(xn("=",t.node(),b.at(e,!0).visit().variable()))})}if(t.isExpression()&&e._vars)for(var w=0,k=n(e._vars),S=k.length;S>w;w++)k[w].variable().autodeclare();else if(e._vars)for(var w=0,k=n(e._vars),S=k.length;S>w;w++)k[w].variable().predeclared();if(r.isExpressable()){var j=r.c({expression:!0});return p&&!t.isExpression()&&(j=""+p+" "+j),j}return j=r.c()},ee.prototype.c=function(t){var e=ee.__super__.c.call(this,t);return this._temporary&&this._temporary.length&&this._temporary.map(function(t){return t.decache()}),e},e(ne,d),exports.Identifier=ne,ne.prototype.safechain=function(t){return this._safechain},ne.prototype.setSafechain=function(t){return this._safechain=t,this},ne.prototype.value=function(t){return this._value},ne.prototype.setValue=function(t){return this._value=t,this},ne.prototype.references=function(t){return this._value&&(this._value._variable=t),this},ne.prototype.sourceMapMarker=function(){return this._value.sourceMapMarker()},ne.prototype.load=function(t){return t instanceof ne?t.value():t},ne.prototype.traverse=function(){return this},ne.prototype.visit=function(){return this._value instanceof d&&this._value.traverse(),this},ne.prototype.region=function(){return[this._value._loc,this._value._loc+this._value._len]},ne.prototype.isValidIdentifier=function(){return!0},ne.prototype.isReserved=function(){return this._value.reserved||or.test(String(this._value))},ne.prototype.symbol=function(){return this._symbol||(this._symbol=u(this.value()))},ne.prototype.setter=function(){var t;return this._setter||(this._setter=(t=new Zn("IDENTIFIER",u("set-"+this._value),this._value._loc||-1),new ne(t)))},ne.prototype.toString=function(){return String(this._value)},ne.prototype.toJSON=function(){return this.toString()},ne.prototype.alias=function(){return u(this._value)},ne.prototype.js=function(t){return this.symbol()},ne.prototype.c=function(){return""+this.symbol()},ne.prototype.dump=function(){return{loc:this.region()}},ne.prototype.namepath=function(){return this.toString()},e(re,ne),exports.TagId=re,re.prototype.c=function(){return"id$('"+this.value().c()+"')"},e(ie,ne),exports.Ivar=ie,ie.prototype.name=function(){return Kn.camelCase(this._value).replace(/^@/,"")},ie.prototype.alias=function(){return"_"+this.name()},ie.prototype.js=function(t){return"_"+this.name()},ie.prototype.c=function(){return"_"+Kn.camelCase(this._value).slice(1)},e(se,ne),exports.Const=se,se.prototype.symbol=function(){return this._symbol||(this._symbol=u(this.value()))},se.prototype.js=function(t){return this.symbol()},se.prototype.c=function(){return s(this._value)+this.symbol()},e(oe,ne),exports.TagTypeIdentifier=oe,oe.prototype.name=function(t){return this._name},oe.prototype.setName=function(t){return this._name=t,this},oe.prototype.ns=function(t){return this._ns},oe.prototype.setNs=function(t){return this._ns=t,this},oe.prototype.load=function(t){this._str=""+t;var e=this._str.split(":");return this._raw=t,this._name=e.pop(),this._ns=e.shift(),this._str},oe.prototype.js=function(t){return"Imba.TAGS."+this._str.replace(":","$")},oe.prototype.c=function(){return this.js()},oe.prototype.func=function(){var t=this._name.replace(/-/g,"_").replace(/\#/,"");return this._ns&&(t+="$"+this._ns.toLowerCase()),t},oe.prototype.spawner=function(){return this._ns?""+this._ns.toUpperCase()+".$"+this._name.replace(/-/g,"_"):"$"+this._name.replace(/-/g,"_")},oe.prototype.id=function(){var t=this._str.match(/\#([\w\-\d\_]+)\b/);return t?t[1]:null},oe.prototype.flag=function(){return"_"+this.name().replace(/--/g,"_").toLowerCase()},oe.prototype.sel=function(){return"."+this.flag()},oe.prototype.string=function(){return this.value()},e(pe,m),exports.Argvar=pe,pe.prototype.c=function(){var t=parseInt(String(this.value()));if(0==t)return"arguments";var e=this.scope__(),n=e.params().at(t-1,!0);return""+i(n.name())},e(ue,d),exports.Call=ue,ue.prototype.callee=function(t){return this._callee},ue.prototype.setCallee=function(t){return this._callee=t,this},ue.prototype.receiver=function(t){return this._receiver},ue.prototype.setReceiver=function(t){return this._receiver=t,this},ue.prototype.args=function(t){return this._args},ue.prototype.setArgs=function(t){return this._args=t,this},ue.prototype.block=function(t){return this._block},ue.prototype.setBlock=function(t){return this._block=t,this},ue.prototype.visit=function(){return this.args().traverse(),this.callee().traverse(),this._block&&this._block.traverse()},ue.prototype.addBlock=function(t){var e=this._args.filter(function(t,e){return"&"==t})[0];return e?this.args().replace(e,t):this.args().push(t),this},ue.prototype.receiver=function(){return this._receiver||(this._receiver=this.callee()instanceof Dt&&this.callee().left()||Dn)},ue.prototype.safechain=function(){return this.callee().safechain()},ue.prototype.js=function(t){var e=this.args(),n=e.some(function(t){return t instanceof Oe}),r=null,i=null,s=null,o=null,p=this._callee=this._callee.node();if(p instanceof Dt&&(i=p.left(),s=p.right()),(p instanceof mn||p instanceof Kt)&&(this._receiver=this.scope__().context()),p instanceof Gt&&(this._receiver=p.receiver(),p=this._callee=new Dt(p.op(),p.left(),p.right())),p.safechain()){var u=new Ze.IsFunction([p]);o=[""+u.c()+" && ",""],p=xn(".",p.left(),p.right())}if(n){var a=this.receiver(),h=1==e.count()?new m(e.first().value()):new St(e.list());a.cache(),r=""+p.c({expression:!0})+".apply("+a.c()+","+h.c({expression:!0})+")"}else this._receiver?(this._receiver instanceof vn||this._receiver.cache(),e.unshift(this.receiver()),r=""+p.c({expression:!0})+".call("+e.c({expression:!0})+")"):r=""+p.c({expression:!0})+"("+e.c({expression:!0})+")";return o&&(this._cache&&(this._cache.manual=!0,r="("+this.cachevar().c()+"="+r+")"),r=[o[0],r,o[1]].join("")),r},e(ae,ue),exports.ImplicitCall=ae,ae.prototype.js=function(t){return""+this.callee().c()+"()"},e(he,ue),exports.New=he,he.prototype.js=function(t){for(var e=this.callee();e instanceof Dt;){var n=e.left();if(n instanceof Gt||n instanceof Ht){this.callee()._parens=!0;break}e=n}var r="new "+this.callee().c();return t.parent()instanceof ue||(r+="()"),r},e(ce,ue),exports.SuperCall=ce,ce.prototype.js=function(t){var e=t.method();return this.setReceiver(Cn),this.setCallee(""+e.target().c()+".super$.prototype."+e.name().c()),ce.__super__.js.apply(this,arguments)},e(le,E),exports.ExternDeclaration=le,le.prototype.visit=function(){this.setNodes(this.map(function(t){return t.node()}));for(var t,e=this.scope__(),r=0,i=n(this.nodes()),s=i.length;s>r;r++){t=i[r];var o=e.register(t.symbol(),t,{type:"global"});o.addReference(t)}return this},le.prototype.c=function(){return"// externs"},e(fe,d),exports.ControlFlow=fe,e(_e,fe),exports.ControlFlowStatement=_e,_e.prototype.isExpressable=function(){return!1},e(ye,fe),exports.If=ye,ye.prototype.test=function(t){return this._test},ye.prototype.setTest=function(t){return this._test=t,this},ye.prototype.body=function(t){return this._body},ye.prototype.setBody=function(t){return this._body=t,this},ye.prototype.alt=function(t){return this._alt},ye.prototype.setAlt=function(t){return this._alt=t,this},ye.prototype.scope=function(t){return this._scope},ye.prototype.setScope=function(t){return this._scope=t,this},ye.ternary=function(t,e,n){var r=new ye(t,new T([e]),{type:"?"});return r.addElse(new T([n])),r},ye.prototype.addElse=function(t){return this.alt()&&this.alt()instanceof ye?this.alt().addElse(t):this.setAlt(t),this},ye.prototype.invert=function(){return this._test instanceof It?this._test=this._test.invert():this._test=new Nt("!",this._test,null)},ye.prototype.visit=function(){var t=this.alt();return this._scope&&this._scope.visit(),this.test()&&this.test().traverse(),this.body()&&this.body().traverse(),t&&(Sn.pop(this),t._scope||(t._scope=new fn(t)),t.traverse(),Sn.push(this)),"?"==this._type&&this.isExpressable()&&this.toExpression(),this},ye.prototype.js=function(t){var e=this.body(),n={braces:!0,indent:!0},r=this.test().c({expression:!0});if(t.isExpression()){var i=e.c();return i="("+i+")",this.alt()?""+r+" ? "+i+" : ("+this.alt().c()+")":this._tagtree?"("+r+") ? "+i+" : void(0)":"("+r+") && "+i}i=null,e instanceof T&&1==e.count()&&!(e.first()instanceof z)&&(e=e.first()),i=e.c({braces:!0});var o=""+s(this._type)+"if ("+r+") "+i;return this.alt()&&(o+=" else "+this.alt().c(this.alt()instanceof ye?{}:n)),o},ye.prototype.sourceMapMarker=function(){return this},ye.prototype.consume=function(t){if(t instanceof Ce)return this._body=this._body.consume(t),this._alt&&(this._alt=this._alt.consume(t)),this._tagtree=t,this;var e=t instanceof $;return this._expression||(!e||"?"==this._type)&&this.isExpressable()?(this.toExpression(),ye.__super__.consume.call(this,t)):(this._body=this._body.consume(t),this._alt&&(this._alt=this._alt.consume(t)),this)},ye.prototype.isExpressable=function(){var t=this.body().isExpressable()&&(!this.alt()||this.alt().isExpressable());return t},e(ve,g),exports.Loop=ve,ve.prototype.scope=function(t){return this._scope},ve.prototype.setScope=function(t){return this._scope=t,this},ve.prototype.options=function(t){return this._options},ve.prototype.setOptions=function(t){return this._options=t,this},ve.prototype.body=function(t){return this._body},ve.prototype.setBody=function(t){return this._body=t,this},ve.prototype.catcher=function(t){return this._catcher},ve.prototype.setCatcher=function(t){return this._catcher=t,this},ve.prototype.set=function(t){this._options||(this._options={});for(var e,r=Object.keys(t),i=0,s=n(r),o=s.length;o>i;i++)e=s[i],this._options[e]=t[e];return this},ve.prototype.addBody=function(t){return this.setBody(p(t)),this},ve.prototype.c=function(t){var e=this.stack();e.current();if(this.stack().isExpression()||this.isExpression()){var n=rr(nr([],[this]),[]);return n.c(t)}return this.stack().current()instanceof T||e.up()instanceof T&&e.current()._consumer==this?ve.__super__.c.call(this,t):(n=rr(nr([],[this]),[]),n.c(t))},e(de,ve),exports.While=de,de.prototype.test=function(t){return this._test},de.prototype.setTest=function(t){return this._test=t,this},de.prototype.visit=function(){return this.scope().visit(),this.test()&&this.test().traverse(),this.body()?this.body().traverse():void 0},de.prototype.consume=function(t){if(this.isExpressable())return de.__super__.consume.apply(this,arguments);if(t instanceof Ce)return this.scope().context().reference(),rr(nr([],[this]),[]);var e=this.scope().declare("res",new St([]),{system:!0});this._catcher=new Zt("push",e,null),this.body().consume(this._catcher);var n=new T([this,e.accessor()]);return n.consume(t)},de.prototype.js=function(t){var e="while ("+this.test().c({expression:!0})+")"+this.body().c({braces:!0,indent:!0});return this.scope().vars().count()>0?[this.scope().vars().c(),e]:e},e(me,ve),exports.For=me,me.prototype.visit=function(){if(this.scope().visit(),this.options().source.traverse(),this.declare(),this.options().guard){var t=er(this.options().guard.invert(),T.wrap([new D("continue")]));this.body().unshift(t,Tn)}return this.body().traverse()},me.prototype.isBare=function(t){return t&&t._variable&&t._variable._isArray},me.prototype.declare=function(){var t=this.options(),e=this.scope(),n=t.source,r=t.vars={},i=t.index,s=this.isBare(n);if(n instanceof Ae)r.len=e.declare("len",n.right()),r.index=e.register(t.name,e,{type:"let",declared:!0}),e.vars().push(r.index.assignment(n.left())),r.value=r.index;else{var o=r.index=i?e.declare(i,0,{type:"let"}):this.util().counter(0,!0,e).predeclare();r.source=s?n:this.util().iterable(n,!0).predeclare(),r.len=this.util().len(r.source,!0).predeclare(),r.value=e.declare(t.name,null,{type:"let"}),r.value.addReference(t.name),i&&o.addReference(i)}return this},me.prototype.consume=function(t){var e;if(this.isExpressable())return me.__super__.consume.apply(this,arguments);if(t instanceof Ce){this.scope().context().reference();var n=t.root().reference();t._loop=this,this.body().consume(t),t._loop=null;var r=new ot([new B(n)],[this]);return r.scope().wrap(this.scope()),rr(r,[n])}if(this._resvar){var i=new T([this,Tn,this._resvar.accessor()]);return i.consume(t),i}var s=null,o=!1,p=null;return t instanceof Yt&&(e=t.left())&&(p=e._variable,e._variable&&(o=!0)),o&&p?(p.resolve(),this.scope().vars().unshift(xn("=",p,new St([]))),s=this._resvar=p,t._consumer=this,t=null):s=this._resvar=this.scope().declare("res",new St([]),{system:!0}),this._catcher=new Zt("push",s,null),this.body().consume(this._catcher),t?i=new T([this,Tn,s.accessor().consume(t)]):this},me.prototype.js=function(t){var e,n=this.options().vars,r=n.index,i=n.value,o=xn("<",r,n.len),p=this.options().source,u=this.options().step?xn("=",r,xn("+",r,this.options().step)):xn("++",r);p instanceof Ae?p.inclusive()&&(o.setOp(e="<="),e):i.refcount()<3&&0==i.assignments().length?i.proxy(n.source,r):this.body().unshift(xn("=",i,xn(".",n.source,r)),Tn);var a=""+s(this.options().keyword)+"for ("+this.scope().vars().c()+"; "+o.c()+"; "+u.c()+") ";return a+this.body().c({braces:!0,indent:!0})},me.prototype.head=function(){var t=this.options().vars;return xn("=",t.value,xn(".",t.source,t.index))},e(ge,me),exports.ForIn=ge,e(xe,me),exports.ForOf=xe,xe.prototype.declare=function(){var t=this.options(),e=t.vars={},n=e.source=t.source._variable||this.scope().declare("o",t.source,{system:!0,type:"let"});if(t.index)var r=e.value=this.scope().declare(t.index,null,{let:!0});if(t.own)var i=(e.index=this.scope().declare("i",0,{system:!0,type:"let"}),e.keys=this.scope().declare("keys",Ze.keys(n.accessor()),{system:!0,type:"let"})),s=(e.len=this.scope().declare("l",Ze.len(i.accessor()),{system:!0,type:"let"}),e.key=this.scope().register(t.name,t.name,{type:"let"}));else s=e.key=this.scope().register(t.name,t.name,{type:"let"});return r&&t.index&&r.addReference(t.index),s&&t.name&&s.addReference(t.name),this},xe.prototype.js=function(t){var e=this.options().vars,t=e.source,n=e.key,r=e.value,i=e.index;if(r&&(r.refcount()<3?r.proxy(t,n):this.body().unshift(xn("=",r,xn(".",t,n)))),this.options().own){n.refcount()<3?n.proxy(e.keys,i):this.body().unshift(xn("=",n,xn(".",e.keys,i)));var o=""+s(this.options().keyword)+"for ("+this.scope().vars().c()+"; "+xn("<",i,e.len).c()+"; "+xn("++",i).c()+")";return o+this.body().c({indent:!0,braces:!0})}var p=this.body().c({braces:!0,indent:!0});return this.scope().vars().c()+(";\n"+s(this.options().keyword)+"for (var "+n.c()+" in "+t.c()+")")+p},xe.prototype.head=function(){var t=this.options().vars;return[xn("=",t.key,xn(".",t.keys,t.index)),t.value&&xn("=",t.value,xn(".",t.source,t.key))]},e(be,T),exports.Begin=be,be.prototype.shouldParenthesize=function(){return this.isExpression()},e(we,_e),exports.Switch=we,we.prototype.source=function(t){return this._source},we.prototype.setSource=function(t){return this._source=t,this},we.prototype.cases=function(t){return this._cases},we.prototype.setCases=function(t){return this._cases=t,this},we.prototype.fallback=function(t){return this._fallback},we.prototype.setFallback=function(t){return this._fallback=t,this},we.prototype.visit=function(){for(var t=0,e=n(this.cases()),r=e.length;r>t;t++)e[t].traverse();this.fallback()&&this.fallback().visit(),this.source()&&this.source().visit()},we.prototype.consume=function(t){return this._cases=this._cases.map(function(e){return e.consume(t);
|
13
|
+
}),this._fallback&&(this._fallback=this._fallback.consume(t)),this},we.prototype.c=function(t){if(this.stack().isExpression()||this.isExpression()){var e=rr(nr([],[this]),[]);return e.c(t)}return we.__super__.c.call(this,t)},we.prototype.js=function(t){for(var e,r=[],i=0,s=n(this.cases()),o=s.length;o>i;i++)e=s[i],e.autobreak(),r.push(e);return this.fallback()&&r.push("default:\n"+this.fallback().c({indent:!0})),"switch ("+this.source().c()+") "+Kn.bracketize(a(r).join("\n"),!0)},e(ke,_e),exports.SwitchCase=ke,ke.prototype.test=function(t){return this._test},ke.prototype.setTest=function(t){return this._test=t,this},ke.prototype.body=function(t){return this._body},ke.prototype.setBody=function(t){return this._body=t,this},ke.prototype.visit=function(){return this.body().traverse()},ke.prototype.consume=function(t){return this.body().consume(t),this},ke.prototype.autobreak=function(){return this.body().last()instanceof L||this.body().push(new L),this},ke.prototype.js=function(t){this._test instanceof Array||(this._test=[this._test]);var e=this._test.map(function(t){return"case "+t.c()+":"});return e.join("\n")+this.body().c({indent:!0})},e(Se,_e),exports.Try=Se,Se.prototype.body=function(t){return this._body},Se.prototype.setBody=function(t){return this._body=t,this},Se.prototype.consume=function(t){return this._body=this._body.consume(t),this._catch&&(this._catch=this._catch.consume(t)),this._finally&&(this._finally=this._finally.consume(t)),this},Se.prototype.visit=function(){return this._body.traverse(),this._catch&&this._catch.traverse(),this._finally?this._finally.traverse():void 0},Se.prototype.js=function(t){var e="try "+this.body().c({braces:!0,indent:!0});return this._catch&&(e+=" "+this._catch.c()),this._finally&&(e+=" "+this._finally.c()),this._catch||this._finally||(e+=" catch (e) { }"),e+=";"},e(je,_e),exports.Catch=je,je.prototype.body=function(t){return this._body},je.prototype.setBody=function(t){return this._body=t,this},je.prototype.consume=function(t){return this._body=this._body.consume(t),this},je.prototype.visit=function(){return this._scope.visit(),this._variable=this._scope.register(this._varname,this,{pool:"catchvar"}),this._body.traverse()},je.prototype.js=function(t){return"catch ("+this._variable.c()+") "+this._body.c({braces:!0,indent:!0})},e(Ee,_e),exports.Finally=Ee,Ee.prototype.visit=function(){return this._body.traverse()},Ee.prototype.consume=function(t){return this},Ee.prototype.js=function(t){return"finally "+this._body.c({braces:!0,indent:!0})},e(Ae,Ct),exports.Range=Ae,Ae.prototype.inclusive=function(){return".."==this.op()},Ae.prototype.c=function(){return"range"},e(Oe,m),exports.Splat=Oe,Oe.prototype.js=function(t){var e=this.stack().parent();return e instanceof A||e instanceof St?"[].slice.call("+this.value().c()+")":(this.p("what is the parent? "+e),"SPLAT")},Oe.prototype.node=function(){return this.value()},TAG_TYPES={},TAG_ATTRS={},TAG_TYPES.HTML="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr".split(" "),TAG_TYPES.SVG="circle defs ellipse g line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),TAG_ATTRS.HTML="accept accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay cellPadding cellSpacing charSet checked className cols colSpan content contentEditable contextMenu controls coords crossOrigin data dateTime defer dir disabled download draggable encType form formNoValidate frameBorder height hidden href hrefLang htmlFor httpEquiv icon id label lang list loop max maxLength mediaGroup method min multiple muted name noValidate pattern placeholder poster preload radioGroup readOnly rel required role rows rowSpan sandbox scope scrollLeft scrolling scrollTop seamless selected shape size span spellCheck src srcDoc srcSet start step style tabIndex target title type useMap value width wmode",TAG_ATTRS.SVG="cx cy d dx dy fill fillOpacity fontFamily fontSize fx fy gradientTransform gradientUnits markerEnd markerMid markerStart offset opacity patternContentUnits patternUnits points preserveAspectRatio r rx ry spreadMethod stopColor stopOpacity stroke strokeDasharray strokeLinecap strokeOpacity strokeWidth textAnchor transform version viewBox x1 x2 x y1 y2 y",e(Te,d),exports.TagDesc=Te,Te.prototype.classes=function(){return this.p("TagDescClasses",arguments),this},e(Pe,d),exports.Tag=Pe,Pe.prototype.parts=function(t){return this._parts},Pe.prototype.setParts=function(t){return this._parts=t,this},Pe.prototype.object=function(t){return this._object},Pe.prototype.setObject=function(t){return this._object=t,this},Pe.prototype.reactive=function(t){return this._reactive},Pe.prototype.setReactive=function(t){return this._reactive=t,this},Pe.prototype.parent=function(t){return this._parent},Pe.prototype.setParent=function(t){return this._parent=t,this},Pe.prototype.tree=function(t){return this._tree},Pe.prototype.setTree=function(t){return this._tree=t,this},Pe.prototype.set=function(t){for(var e,r=0,i=Object.keys(t),s=i.length;s>r;r++)if(k=i[r],e=t[k],"attributes"!=k)this._options[k]=e;else for(var o=0,p=n(e),u=p.length;u>o;o++)this.addAttribute(p[o]);return this},Pe.prototype.addClass=function(t){return t instanceof Re||(t=new Re(t)),this._options.classes.push(t),this._parts.push(t),this},Pe.prototype.addIndex=function(t){return this._parts.push(t),this._object=t,this},Pe.prototype.addSymbol=function(t){return 0==this._parts.length&&(this._parts.push(t),this._options.ns=t),this},Pe.prototype.addAttribute=function(t){return this._parts.push(t),this._options.attributes.push(t),this},Pe.prototype.enclosing=function(){return this._options.close&&this._options.close.value()},Pe.prototype.type=function(){return this._options.type||"div"},Pe.prototype.consume=function(t){this._options;return t instanceof Ce?(this.setParent(t.root()),t._loop?(this.setReactive(t.reactive()||this.option("key")),this.option("loop",t._loop),this.option("ivar")&&this.warn("Tag inside loop can not have a static reference "+this.option("ivar"),{type:"error",token:this.option("ivar").value()})):this.setReactive(t.reactive()||!!this.option("ivar")),this):Pe.__super__.consume.apply(this,arguments)},Pe.prototype.visit=function(){var t=this._options;(t.ivar||t.key)&&this.setReactive(!0);var e=this.enclosing();("->"==e||"=>"==e)&&(this._tree=new Ce(this,t.body,{root:this,reactive:this.reactive()}),t.body=new pt([],T.wrap([this._tree]))),t.key&&t.key.traverse(),t.body&&t.body.traverse(),t.id&&t.id.traverse();for(var r=0,i=n(this._parts),s=i.length;s>r;r++)i[r].traverse();return this},Pe.prototype.reference=function(){return this._reference||(this._reference=this.scope__().closure().temporary(this,{pool:"tag"}).resolve())},Pe.prototype.js=function(t){for(var e,r,t=this._options,i={},o=(this.enclosing(),[]),p=[],u=this.scope__(),a="end",h=t.body,c=this.type()instanceof Ot,l=c?"setChildren":"setContent",f=!0,_=0,y=n(t.attributes),v=y.length;v>_;_++)r=y[_],i[r.key()]=r.value();var m=function(t){return Kn.singlequote(t)},g=(t.id instanceof d?t.id.c():t.id&&m(t.id.c()),this._tree||null),x=this.parent(),b=c?(a="synced",this.setReactive(!0),this._reference=u.context(),u.context().c()):""+s(t.open)+u.tagContextPath()+"."+this.type().spawner()+"()";t.id&&p.push(".setId("+m(t.id)+")"),t.ivar&&(this.setReactive(!0),p.push(".setRef("+m(t.ivar.name())+","+u.context().c()+")")),t.body instanceof st?l="setTemplate":t.body&&(t.body instanceof A&&1==t.body.count()&&t.body.first().isString()?l="setText":(g=new Ce(this,t.body,{root:this,reactive:this.reactive()}),h=g,this.setTree(g))),g&&g.resolve();for(var w,_=0,y=n(this._parts),v=y.length;v>_;_++){w=y[_];var k,S=!1;if(w instanceof Ne){var j=String(w.key()),E=w.value();S=E.isPrimitive(),"."==j[0]?(S=!1,k=".flag("+m(j.substr(1))+","+E.c()+")"):k=":"==j[0]?".setHandler("+m(j.substr(1))+","+E.c()+","+u.context().c()+")":"data-"==j.substr(0,5)?".dataset('"+j.slice(5)+"',"+E.c()+")":"."+s(w.key())+Kn.setterSym(j)+"("+E.c()+")"}else w instanceof Re&&(k=w.c(),S=!0);k&&(f&&S?p.push(k):o.push(k))}if(this.object()&&o.push(".setObject("+this.object().c()+")"),this.reactive()&&g&&this.reference(),this.reactive()&&x&&x.tree()&&(t.treeRef=x.tree().nextCacheKey(this)),e=h&&h.c({expression:!0})){var O=0;g&&(g["static"]()?O=2:(this.reactive()||g.reactive())&&(O=!g.single()||g.single()instanceof ye?1:3)),"setChildren"==l||"setContent"==l?o.push("."+l+"("+e+","+O+")"):o.push("."+l+"("+e+")")}if(o.push("."+a+"()"),p.length&&(b+=p.join("")),(t.ivar||t.key||this.reactive())&&!(this.type()instanceof Ot)){var T,P,C=x&&x.tree();if(t.key)T=x&&x.reference(),P=xn("+",new mt("'_'"),t.key);else if(t.ivar)T=u.context(),P=t.ivar;else if(T=x&&x.reference(),P=t.treeRef||C&&C.nextCacheKey(),t.loop){var I=t.loop.option("vars").index;P=xn("+","'"+P+"'",I)}var $=xn(".",T,P).c();b=this._reference?"("+this.reference().c()+" = "+$+"="+$+" || "+b+")":"("+$+" = "+$+" || "+b+")"}return b+o.join("")},e(Ce,E),exports.TagTree=Ce,Ce.prototype.counter=function(t){return this._counter},Ce.prototype.setCounter=function(t){return this._counter=t,this},Ce.prototype.conditions=function(t){return this._conditions},Ce.prototype.setConditions=function(t){return this._conditions=t,this},Ce.prototype.blocks=function(t){return this._blocks},Ce.prototype.setBlocks=function(t){return this._blocks=t,this},Ce.prototype.cacher=function(t){return this._cacher},Ce.prototype.setCacher=function(t){return this._cacher=t,this},Ce.prototype.parent=function(){return this._parent||(this._parent=this._owner.parent())},Ce.prototype.nextCacheKey=function(){for(var t=(this._owner,++this._counter),e="A".charCodeAt(0),n="";;)if(t-=1,n=String.fromCharCode(e+t%26)+n,t=Math.floor(t/26),0>=t)break;return n=(this._owner.type()instanceof Ot?"$":"$$")+n.toLowerCase()},Ce.prototype.load=function(t){return t instanceof E?(this._indentation||(this._indentation=t._indentation),t.nodes()):c(t instanceof Array?t:[t])},Ce.prototype.root=function(){return this.option("root")},Ce.prototype.reactive=function(){return this.option("reactive")},Ce.prototype.resolve=function(){var t=this;return this.remap(function(e){return e.consume(t)}),t},Ce.prototype["static"]=function(){return null==this._static?this._static=this.every(function(t){return t instanceof Pe||t instanceof mt||t instanceof x}):this._static},Ce.prototype.single=function(){return null==this._single?this._single=1==this.realCount()?this.last():!1:this._single},Ce.prototype.hasTags=function(){return this.some(function(t){return t instanceof Pe})},Ce.prototype.c=function(t){var e=this.single();e&&Sn.current()instanceof $&&(this._indentation=null);var n=Ce.__super__.c.call(this,t);return!e||e instanceof ye?"["+n+"]":n},e(Ie,m),exports.TagWrapper=Ie,Ie.prototype.visit=function(){return this.value()instanceof Array?this.value().map(function(t){return t.traverse()}):this.value().traverse(),this},Ie.prototype.c=function(){return"tag$wrap("+this.value().c({expression:!0})+")"},e($e,E),exports.TagAttributes=$e,$e.prototype.get=function(t){for(var e,r=0,i=n(this.nodes()),s=i.length,o=[];s>r;r++)if(e=i[r],e.key()==t)return e;return o},e(Ne,d),exports.TagAttr=Ne,Ne.prototype.key=function(t){return this._key},Ne.prototype.setKey=function(t){return this._key=t,this},Ne.prototype.value=function(t){return this._value},Ne.prototype.setValue=function(t){return this._value=t,this},Ne.prototype.visit=function(){return this.value()&&this.value().traverse(),this},Ne.prototype.populate=function(t){return t.add(this.key(),this.value()),this},Ne.prototype.c=function(){return"attribute"},e(Re,d),exports.TagFlag=Re,Re.prototype.value=function(t){return this._value},Re.prototype.setValue=function(t){return this._value=t,this},Re.prototype.toggler=function(t){return this._toggler},Re.prototype.setToggler=function(t){return this._toggler=t,this},Re.prototype.visit=function(){return"string"==typeof this._value||this._value instanceof String||this._value.traverse(),this},Re.prototype.c=function(){return this.value()instanceof d?".flag("+this.value().c()+")":".flag("+Kn.singlequote(this.value())+")"},e(Ve,E),exports.Selector=Ve,Ve.prototype.add=function(t,e){return this.push(t),this},Ve.prototype.group=function(){return this._nodes.push(new Le(",")),this},Ve.prototype.query=function(){for(var t="",e=0,r=n(this.nodes()),i=r.length;i>e;e++){var s=r[e].c();("string"==typeof s||s instanceof String)&&(t=""+t+s)}return"'"+t+"'"},Ve.prototype.js=function(t){var e=this.option("type"),n=i(this.query());return"%"==e?"q$("+n+","+t.scope().context().c({explicit:!0})+")":"%%"==e?"q$$("+n+","+t.scope().context().c({explicit:!0})+")":"q"+e+"("+n+")"},e(ze,m),exports.SelectorPart=ze,ze.prototype.c=function(){return i(this._value)},e(Le,ze),exports.SelectorGroup=Le,Le.prototype.c=function(){return","},e(De,ze),exports.SelectorType=De,De.prototype.c=function(){var e=this.value().name();return t(e,TAG_TYPES.HTML)>=0?e:this.value().sel()},e(Fe,ze),exports.SelectorUniversal=Fe,e(Be,ze),exports.SelectorNamespace=Be,e(Me,ze),exports.SelectorClass=Me,Me.prototype.c=function(){return this._value instanceof d?".'+"+this._value.c()+"+'":"."+i(this._value)},e(Ge,ze),exports.SelectorId=Ge,Ge.prototype.c=function(){return this._value instanceof d?"#'+"+this._value.c()+"+'":"#"+i(this._value)},e(Ue,ze),exports.SelectorCombinator=Ue,Ue.prototype.c=function(){return""+i(this._value)},e(qe,ze),exports.SelectorPseudoClass=qe,e(Je,ze),exports.SelectorAttribute=Je,Je.prototype.c=function(){return this._right instanceof mt?"["+this._left.c()+this._op+this._right.c()+"]":this._right?"["+this._left.c()+this._op+"\"'+"+i(this._right)+"+'\"]":"["+this._left.c()+"]"},e(Ke,m),exports.Await=Ke,Ke.prototype.func=function(t){return this._func},Ke.prototype.setFunc=function(t){return this._func=t,this},Ke.prototype.js=function(t){return rr(xn(".",new Ze.Promisify([this.value()]),"then"),[this.func()]).c()},Ke.prototype.visit=function(t){var e=this;e.value().traverse();var n=t.up(T),r=t.relative(n,1),i=t.relative(e,-1);if(e.setFunc(new He([],[])),e.func().body().setNodes(n.defers(r,e)),i instanceof Yt){i.left().traverse();var s=i.left().node();s instanceof Wt?e.func().params().at(0,!0,s.variable().name()):s instanceof bt?"var"!=i.type()||s.hasSplat()?(i.setRight(zn),e.func().body().unshift(i)):s.map(function(t,n){return e.func().params().at(n,!0,t.value())}):(i.setRight(e.func().params().at(0,!0)),e.func().body().unshift(i))}return e.func().traverse(),e},e(He,st),exports.AsyncFunc=He,He.prototype.scopetype=function(){return pn},e(We,g),exports.ImportStatement=We,We.prototype.ns=function(t){return this._ns},We.prototype.setNs=function(t){return this._ns=t,this},We.prototype.imports=function(t){return this._imports},We.prototype.setImports=function(t){return this._imports=t,this},We.prototype.source=function(t){return this._source},We.prototype.setSource=function(t){return this._source=t,this},We.prototype.visit=function(){if(this._ns)this._nsvar||(this._nsvar=this.scope__().register(this._ns,this));else{var t=this.source().c(),e=t.match(/(\w+)(\.js|imba)?[\"\']$/);this._alias=e?e[1]+"$":"mod$"}if(this._imports){var r=this._declarations=new Z([]);if(1==this._imports.length)return this._alias=this._imports[0],r.add(this._alias,xn(".",rr(new ne("require"),[this.source()]),this._alias)),r.traverse(),this;if(this._moduledecl=r.add(this._alias,rr(new ne("require"),[this.source()])),this._moduledecl.traverse(),this._imports.length>1)for(var i,s=0,o=n(this._imports),p=o.length;p>s;s++)i=o[s],this._declarations.add(i,xn(".",this._moduledecl.variable(),i));r.traverse()}return this},We.prototype.js=function(t){var e;if(this._declarations)return this._declarations.c();var r=rr(new ne("require"),[this.source()]);if(this._ns)return"var "+this._nsvar.c()+" = "+r.c();if(this._imports){var i=this.source().c(),s=[];new P([]);(e=i.match(/(\w+)(\.js|imba)?[\"\']$/))&&s.push(e[1]);for(var o,p=[r.cache({names:s}).c()],u=0,a=n(this._imports),h=a.length;h>u;u++){o=a[u];var t=xn("=",o,xn(".",r,o));p.push("var "+t.c())}return p}return r.c()},We.prototype.consume=function(t){return this},e(Ye,m),exports.ExportStatement=Ye,Ye.prototype.js=function(t){var e=this._value.map(function(t){return"module.exports."+t.c()+" = "+t.c()});return e.length>1&&this.up()instanceof $?"["+e.join(",")+"]":e.join(";\n")+";"},e(Ze,d),exports.Util=Ze,Ze.prototype.args=function(t){return this._args},Ze.prototype.setArgs=function(t){return this._args=t,this},Ze.extend=function(t,e){return new Ze.Extend([t,e])},Ze.callImba=function(t,e){return rr(xn(".",new se("Imba"),new ne(t)),e)},Ze.repeat=function(t,e){for(var n="";e>0;)e%2==1&&(n+=t),t+=t,e>>=1;return n},Ze.keys=function(t){var e=new se("Object"),n=new ne("keys");return rr(xn(".",e,n),[t])},Ze.len=function(t,e){var n=new ne("length"),r=xn(".",t,n);return e&&r.cache({force:!0,pool:"len"}),r},Ze.indexOf=function(t,e){var n=new Ze.IndexOf([t,e]);return n},Ze.slice=function(t,e,n){var r=new ne("slice");return console.log("slice "+e+" "+n),rr(xn(".",t,r),c([e,n]))},Ze.iterable=function(t,e){var n=new Ze.Iterable([t]);return e&&n.cache({force:!0,pool:"iter"}),n},Ze.union=function(t,e){return new Ze.Union([t,e])},Ze.intersect=function(t,e){return new Ze.Intersect([t,e])},Ze.counter=function(t,e){var n=new dt(t);return e&&n.cache({force:!0,pool:"counter"}),n},Ze.array=function(t,e){var n=new Ze.Array([t]);return e&&n.cache({force:!0,pool:"list"}),n},Ze.defineTag=function(t,e,n){return rr(qn,[t,e,n])},Ze.defineClass=function(t,e,n){return rr(Un,[t||n,this.sup()])},Ze.prototype.isStandalone=function(){return Qn.standalone!==!1},Ze.prototype.js=function(t){return"helper"},Ze.Union=function(){return Ze.apply(this,arguments)},e(Ze.Union,Ze),Ze.Union.prototype.helper=function(){return"function union$(a,b){\n if(a && a.__union) return a.__union(b);\n\n var u = a.slice(0);\n for(var i=0,l=b.length;i<l;i++) if(u.indexOf(b[i]) == -1) u.push(b[i]);\n return u;\n};\n"},Ze.Union.prototype.js=function(t){return this.scope__().root().helper(this,this.helper()),"union$("+this.args().map(function(t){return t.c()}).join(",")+")"},Ze.Intersect=function(){return Ze.apply(this,arguments)},e(Ze.Intersect,Ze),Ze.Intersect.prototype.helper=function(){return"function intersect$(a,b){\n if(a && a.__intersect) return a.__intersect(b);\n var res = [];\n for(var i=0, l=a.length; i<l; i++) {\n var v = a[i];\n if(b.indexOf(v) != -1) res.push(v);\n }\n return res;\n};\n"},Ze.Intersect.prototype.js=function(t){return this.scope__().root().helper(this,this.helper()),"intersect$("+this.args().map(function(t){return t.c()}).join(",")+")"},Ze.Extend=function(){return Ze.apply(this,arguments)},e(Ze.Extend,Ze),Ze.Extend.prototype.js=function(t){return"extend$("+c(a(this.args())).join(",")+")"},Ze.IndexOf=function(){return Ze.apply(this,arguments)},e(Ze.IndexOf,Ze),Ze.IndexOf.prototype.helper=function(){return"function idx$(a,b){\n return (b && b.indexOf) ? b.indexOf(a) : [].indexOf.call(a,b);\n};\n"},Ze.IndexOf.prototype.js=function(t){return this.isStandalone()?(this.scope__().root().helper(this,this.helper()),"idx$("+this.args().map(function(t){return t.c()}).join(",")+")"):"Imba.indexOf("+this.args().map(function(t){return t.c()}).join(",")+")"},Ze.Subclass=function(){return Ze.apply(this,arguments)},e(Ze.Subclass,Ze),Ze.Subclass.prototype.helper=function(){return"// helper for subclassing\nfunction subclass$(obj,sup) {\n for (var k in sup) {\n if (sup.hasOwnProperty(k)) obj[k] = sup[k];\n };\n // obj.__super__ = sup;\n obj.prototype = Object.create(sup.prototype);\n obj.__super__ = obj.prototype.__super__ = sup.prototype;\n obj.prototype.initialize = obj.prototype.constructor = obj;\n};\n"},Ze.Subclass.prototype.js=function(t){return this.isStandalone()?(this.scope__().root().helper(this,this.helper()),"subclass$("+this.args().map(function(t){return t.c()}).join(",")+");\n"):"Imba.subclass("+this.args().map(function(t){return t.c()}).join(",")+");\n"},Ze.Promisify=function(){return Ze.apply(this,arguments)},e(Ze.Promisify,Ze),Ze.Promisify.prototype.helper=function(){return"function promise$(a){ return a instanceof Array ? Promise.all(a) : (a && a.then ? a : Promise.resolve(a)); }"},Ze.Promisify.prototype.js=function(t){return this.isStandalone()?(this.scope__().root().helper(this,this.helper()),"promise$("+this.args().map(function(t){return t.c()}).join(",")+")"):"Imba.await("+this.args().map(function(t){return t.c()}).join(",")+")"},Ze.Class=function(){return Ze.apply(this,arguments)},e(Ze.Class,Ze),Ze.Class.prototype.js=function(t){return"class$("+this.args().map(function(t){return t.c()}).join(",")+")"},Ze.Iterable=function(){return Ze.apply(this,arguments)},e(Ze.Iterable,Ze),Ze.Iterable.prototype.helper=function(){return"function iter$(a){ return a ? (a.toArray ? a.toArray() : a) : []; };"},Ze.Iterable.prototype.js=function(t){return this.args()[0]instanceof St?this.args()[0].c():this.isStandalone()?(this.scope__().root().helper(this,this.helper()),"iter$("+this.args()[0].c()+")"):"Imba.iterable("+this.args()[0].c()+")"},Ze.IsFunction=function(){return Ze.apply(this,arguments)},e(Ze.IsFunction,Ze),Ze.IsFunction.prototype.js=function(t){return""+this.args()[0].c()},Ze.Array=function(){return Ze.apply(this,arguments)},e(Ze.Array,Ze),Ze.Array.prototype.js=function(t){return"new Array("+this.args().map(function(t){return t.c()})+")"},Xe.prototype.add=function(t,e){return this._map[t]=e,this},Xe.prototype.register=function(t){var e,n=t.namepath();return this._map[e=n]||(this._map[e]=t),this},Xe.prototype.plain=function(){return JSON.parse(JSON.stringify(this._map))},Xe.prototype.toJSON=function(){return this._map},exports.Scope=Qe,Qe.prototype.level=function(t){return this._level},Qe.prototype.setLevel=function(t){return this._level=t,this},Qe.prototype.context=function(t){return this._context},Qe.prototype.setContext=function(t){return this._context=t,this},Qe.prototype.node=function(t){return this._node},Qe.prototype.setNode=function(t){return this._node=t,this},Qe.prototype.parent=function(t){return this._parent},Qe.prototype.setParent=function(t){return this._parent=t,this},Qe.prototype.varmap=function(t){return this._varmap},Qe.prototype.setVarmap=function(t){return this._varmap=t,this},Qe.prototype.varpool=function(t){return this._varpool},Qe.prototype.setVarpool=function(t){return this._varpool=t,this},Qe.prototype.params=function(t){return this._params},Qe.prototype.setParams=function(t){return this._params=t,this},Qe.prototype.head=function(t){return this._head},Qe.prototype.setHead=function(t){return this._head=t,this},Qe.prototype.vars=function(t){return this._vars},Qe.prototype.setVars=function(t){return this._vars=t,this},Qe.prototype.counter=function(t){return this._counter},Qe.prototype.setCounter=function(t){return this._counter=t,this},Qe.prototype.p=function(){return Sn.loglevel()>0&&console.log.apply(console,arguments),this},Qe.prototype.stack=function(){return Sn},Qe.prototype.meta=function(t,e){return void 0!=e?(this._meta[t]=e,this):this._meta[t]},Qe.prototype.namepath=function(){return"?"},Qe.prototype.tagContextPath=function(){return this._tagContextPath||(this._tagContextPath="tag$")},Qe.prototype.context=function(){return this._context||(this._context=new vn(this))},Qe.prototype.traverse=function(){return this},Qe.prototype.visit=function(){return this._parent?this:(this._parent=Sn.scope(1),this._level=Sn.scopes().length-1,Sn.addScope(this),this.root().scopes().push(this),this)},Qe.prototype.wrap=function(t){return this._parent=t._parent,t._parent=this,this},Qe.prototype.virtualize=function(){return this},Qe.prototype.root=function(){for(var t=this;t;){if(t instanceof tn)return t;t=t.parent()}return null},Qe.prototype.register=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n={}),t=Kn.symbolize(t);var r=this._varmap.hasOwnProperty(t)&&this._varmap[t];if(r)return r;var i=new _n(this,t,e,n);return n.system||(this._varmap[t]=i),i},Qe.prototype.annotate=function(t){return this._annotations.push(t),this},Qe.prototype.declare=function(t,e,n){var r;void 0===e&&(e=null),void 0===n&&(n={});var i=this.register(t,null,n),s=this._vars.add(i,e);return(r=i.declarator())||(i.setDeclarator(s),s),i},Qe.prototype.temporary=function(t,e,r){if(void 0===e&&(e={}),void 0===r&&(r=null),e.pool)for(var i,s=0,o=n(this._varpool),p=o.length;p>s;s++)if(i=o[s],i.pool()==e.pool&&null==i.declarator())return i.reuse(t);var u=new yn(this,r,t,e);return this._varpool.push(u),this._vars.push(u),u},Qe.prototype.lookup=function(t){var e=null;return t=Kn.symbolize(t),e=this._varmap.hasOwnProperty(t)?this._varmap[t]:this.parent()&&this.parent().lookup(t)},Qe.prototype.autodeclare=function(t){return this.vars().push(t)},Qe.prototype.free=function(t){return t.free(),this},Qe.prototype.isClosed=function(){return!1},Qe.prototype.closure=function(){return this._closure},Qe.prototype.finalize=function(){return this},Qe.prototype.klass=function(){for(var t=this;t;)if(t=t.parent(),t instanceof en)return t;return null},Qe.prototype.head=function(){return[this._vars,this._params]},Qe.prototype.c=function(t){var e;return void 0===t&&(t={}),t.expression=!1,this.node().body().setHead(this.head()),e=this.node().body().c(t)},Qe.prototype.region=function(){return this.node().body().region()},Qe.prototype.loc=function(){return this.node().loc()},Qe.prototype.dump=function(){var t=this,e=Object.keys(this._varmap).map(function(e){var n=t._varmap[e];return n.references().length?h(n):null}),n={nr:t._nr,type:t.constructor.name,level:t.level()||0,vars:c(e),loc:t.loc()};return n},Qe.prototype.toJSON=function(){return this.dump()},Qe.prototype.toString=function(){return""+this.constructor.name},e(tn,Qe),exports.RootScope=tn,tn.prototype.warnings=function(t){return this._warnings},tn.prototype.setWarnings=function(t){return this._warnings=t,this},tn.prototype.scopes=function(t){return this._scopes},tn.prototype.setScopes=function(t){return this._scopes=t,this},tn.prototype.entities=function(t){return this._entities},tn.prototype.setEntities=function(t){return this._entities=t,this},tn.prototype.context=function(){return this._context||(this._context=new dn(this))},tn.prototype.tagContextPath=function(){return this._tagContextPath||(this._tagContextPath="tag$")},tn.prototype.lookup=function(t){return t=Kn.symbolize(t),this._varmap.hasOwnProperty(t)?this._varmap[t]:void 0},tn.prototype.visit=function(){return Sn.addScope(this),this},tn.prototype.helper=function(t,e){return-1==this._helpers.indexOf(e)&&(this._helpers.push(e),this._head.unshift(e)),this},tn.prototype.head=function(){return this._head},tn.prototype.warn=function(t){return t.node=null,this._warnings.push(t),this},tn.prototype.dump=function(){var t={warnings:h(this._warnings)};if(Qn.analysis.scopes){var e=this._scopes.map(function(t){return t.dump()});e.unshift(tn.__super__.dump.call(this)),t.scopes=e}return Qn.analysis.entities&&(t.entities=this._entities),t},e(en,Qe),exports.ClassScope=en,en.prototype.namepath=function(){return this._node.namepath()},en.prototype.virtualize=function(){for(var t=this.parent(),e=this._varmap,n=0,r=Object.keys(e),i=r.length;i>n;n++)e[r[n]].resolve(t,!0);return this},en.prototype.isClosed=function(){return!0},e(nn,en),exports.TagScope=nn,e(rn,Qe),exports.ClosureScope=rn,e(sn,Qe),exports.FunctionScope=sn,e(on,Qe),exports.MethodScope=on,on.prototype.isClosed=function(){return!0},e(pn,Qe),exports.LambdaScope=pn,pn.prototype.context=function(){return this._context||(this._context=this.parent().context().reference(this))},e(un,Qe),exports.FlowScope=un,un.prototype.params=function(){return this._parent?this._parent.params():void 0},un.prototype.register=function(t,e,n){var r;return void 0===e&&(e=null),void 0===n&&(n={}),"let"!=n.type&&this.closure()!=this?((r=this.lookup(t))&&"let"==r.type()&&(this.p(""+t+" already exists as a block-variable "+e),e&&e.warn("Variable already exists in block")),this.closure().register(t,e,n)):un.__super__.register.call(this,t,e,n)},un.prototype.autodeclare=function(t){return this.parent().autodeclare(t)},un.prototype.closure=function(){return this._parent.closure()},un.prototype.context=function(){return this.parent().context()},e(an,un),exports.CatchScope=an,e(hn,un),exports.WhileScope=hn,hn.prototype.autodeclare=function(t){return this.vars().push(t)},e(cn,un),exports.ForScope=cn,cn.prototype.autodeclare=function(t){return this.vars().push(t)},e(ln,un),exports.IfScope=ln,ln.prototype.temporary=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n=null),this.parent().temporary(t,e,n)},e(fn,un),exports.BlockScope=fn,fn.prototype.temporary=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n=null),this.parent().temporary(t,e,n)},fn.prototype.region=function(){return this.node().region()},e(_n,d),exports.Variable=_n,_n.prototype.scope=function(t){return this._scope},_n.prototype.setScope=function(t){return this._scope=t,this},_n.prototype.name=function(t){return this._name},_n.prototype.setName=function(t){return this._name=t,this},_n.prototype.alias=function(t){return this._alias},_n.prototype.setAlias=function(t){return this._alias=t,this},_n.prototype.type=function(t){return this._type},_n.prototype.setType=function(t){return this._type=t,this},_n.prototype.options=function(t){return this._options},_n.prototype.setOptions=function(t){return this._options=t,this},_n.prototype.initialized=function(t){return this._initialized},_n.prototype.setInitialized=function(t){return this._initialized=t,this},_n.prototype.declared=function(t){return this._declared},_n.prototype.setDeclared=function(t){return this._declared=t,this},_n.prototype.declarator=function(t){return this._declarator},_n.prototype.setDeclarator=function(t){return this._declarator=t,this},_n.prototype.autodeclare=function(t){return this._autodeclare},_n.prototype.setAutodeclare=function(t){return this._autodeclare=t,this},_n.prototype.references=function(t){return this._references},_n.prototype.setReferences=function(t){return this._references=t,this},_n.prototype["export"]=function(t){return this._export},_n.prototype.setExport=function(t){return this._export=t,this},_n.prototype.pool=function(){return null},_n.prototype.closure=function(){return this._scope.closure()},_n.prototype.assignments=function(){return this._assignments},_n.prototype.assigned=function(t,e){return this._assignments.push(t),t instanceof St?this._isArray=!0:this._isArray=!1,this},_n.prototype.resolve=function(t,e){if(void 0===t&&(t=this.scope()),void 0===e&&(e=!1),this._resolved&&!e)return this;this._resolved=!0;var n=this._scope.closure(),r=t.lookup(this._name);if(this._scope!=n&&"let"==this._type&&(r=n.lookup(this._name),t=n),r==this)return t.varmap()[this._name]=this,this;if(r)if(r.scope()==t||!this.options().let&&"let"!=this._type||(t.varmap()[this._name]=this),this._options.proxy);else for(var i=0,s=this._name;t.lookup(this._name);)this._name=""+s+(i+=1);return t.varmap()[this._name]=this,n.varmap()[this._name]=this,this},_n.prototype.reference=function(){return this},_n.prototype.node=function(){return this},_n.prototype.traverse=function(){return this},_n.prototype.free=function(t){return this._declarator=null,this},_n.prototype.reuse=function(t){return this._declarator=t,this},_n.prototype.proxy=function(t,e){return this._proxy=[t,e],this},_n.prototype.refcount=function(){return this._references.length},_n.prototype.c=function(){if(this._c)return this._c;if(this._proxy)this._c=this._proxy[0].c()+"["+this._proxy[1].c()+"]";else{this._resolved||this.resolve();var t=this.alias()||this.name();
|
14
|
+
this._c="string"==typeof t?t:t.c(),Bn.test(this._c)&&(this._c=""+this.c()+"$")}return this._c},_n.prototype.consume=function(t){return this},_n.prototype.accessor=function(t){var e=new Ft(".",null,this);return e},_n.prototype.assignment=function(t){return new Yt("=",this,t)},_n.prototype.addReference=function(t){return t instanceof ne&&t.references(this),t.region&&t.region()&&this._references.push(t),this},_n.prototype.autodeclare=function(){return this._declared?this:(this._autodeclare=!0,this.scope().autodeclare(this),this._declared=!0,this)},_n.prototype.predeclared=function(){return this._declared=!0,this},_n.prototype.toString=function(){return String(this.name())},_n.prototype.dump=function(t){var e=this.name();return e[0].match(/[A-Z]/)?null:{type:this.type(),name:e,refs:h(this._references,t)}},e(yn,_n),exports.SystemVariable=yn,yn.prototype.pool=function(){return this._options.pool},yn.prototype.predeclared=function(){return this.scope().vars().remove(this),this},yn.prototype.resolve=function(){var t,e;if(this._resolved||this._name)return this;this._resolved=!0;var n=this._options.pool,r=[].concat(this._options.names),i=null,s=null,o=this.scope();if("tag"==n)for(var p=0;!this._name;)i="t"+p++,o.lookup(i)||(this._name=i);else"iter"==n?r=["ary__","ary_","coll","array","items","ary"]:"val"==n?r=["v_"]:"arguments"==n?r=["$_","$0"]:"keypars"==n?r=["opts","options","pars"]:"counter"==n?r=["i__","i_","k","j","i"]:"len"==n?r=["len__","len_","len"]:"list"==n&&(r=["tmplist_","tmplist","tmp"]);for(;!this._name&&(i=r.pop());)o.lookup(i)||(this._name=i);for(!this._name&&this._declarator&&(s=this.declarator().node())&&(t=s.alias())&&r.push(t+"_");!this._name&&(i=r.pop());)o.lookup(i)||(this._name=i);return this._name||(this._name="$"+(o.setCounter(e=o.counter()+1),e)),o.varmap()[this._name]=this,this},yn.prototype.name=function(){return this.resolve(),this._name},e(vn,d),exports.ScopeContext=vn,vn.prototype.scope=function(t){return this._scope},vn.prototype.setScope=function(t){return this._scope=t,this},vn.prototype.value=function(t){return this._value},vn.prototype.setValue=function(t){return this._value=t,this},vn.prototype.namepath=function(){return this._scope.namepath()},vn.prototype.reference=function(){return this._reference||(this._reference=this.scope().declare("self",new Pt))},vn.prototype.c=function(){var t=this._value||this._reference;return t?t.c():"this"},vn.prototype.cache=function(){return this},e(dn,vn),exports.RootScopeContext=dn,dn.prototype.c=function(t){var e=this._value||this._reference;return e&&e!=this?e.c():"this"},e(mn,d),exports.Super=mn,mn.prototype.c=function(){var t=Sn.method(),e=null,n=Sn.current();return e=""+t.target().c()+".__super__",n instanceof Dt||(e+="."+i(t.supername()),n instanceof ue||(e+=".apply("+t.scope().context().c()+",arguments)")),e},module.exports.BR=Tn=new S("\n"),module.exports.BR2=Pn=new S("\n\n"),module.exports.SELF=Cn=new Ot,module.exports.SUPER=In=new mn,module.exports.TRUE=$n=new yt("true"),module.exports.FALSE=Nn=new vt("false"),module.exports.UNDEFINED=Rn=new ft,module.exports.NIL=Vn=new _t,module.exports.ARGUMENTS=zn=new At("arguments"),module.exports.EMPTY=Ln="",module.exports.NULL=Dn="null",module.exports.RESERVED=Fn=["default","native","enum","with"],module.exports.RESERVED_REGEX=Bn=/^(default|native|enum|with|new|char)$/,module.exports.UNION=Mn=new se("union$"),module.exports.INTERSECT=Gn=new se("intersect$"),module.exports.CLASSDEF=Un=new se("imba$class"),module.exports.TAGDEF=qn=new se("Imba.TAGS.define"),module.exports.NEWTAG=Jn=new ne("tag$")}();
|
15
|
+
},{"./errors":2,"./helpers":3,"./sourcemap":8,"./token":9}],6:[function(require,module,exports){
|
16
|
+
(function (process){
|
17
|
+
var parser=function(){function e(){this.yy={}}var a=function(e,a,r,s){for(r=r||{},s=e.length;s--;r[e[s]]=a);return r},r=[1,4],s=[1,6],c=[1,32],n=[1,33],t=[1,34],o=[1,35],b=[1,75],k=[1,115],l=[1,128],$=[1,121],i=[1,122],T=[1,123],w=[1,120],d=[1,124],E=[1,131],A=[1,114],S=[1,132],R=[1,80],O=[1,81],u=[1,82],p=[1,83],I=[1,84],L=[1,85],N=[1,86],y=[1,73],g=[1,118],C=[1,95],_=[1,91],D=[1,88],h=[1,71],P=[1,65],f=[1,66],m=[1,111],F=[1,90],B=[1,87],M=[1,28],G=[1,29],U=[1,96],v=[1,94],x=[1,112],V=[1,113],W=[1,126],H=[1,67],Y=[1,68],j=[1,119],X=[1,11],K=[1,127],q=[1,78],J=[1,37],Q=[1,43],z=[1,110],Z=[1,69],ee=[1,89],ae=[1,125],re=[1,59],se=[1,74],ce=[1,105],ne=[1,106],te=[1,107],oe=[1,129],be=[1,130],ke=[1,63],le=[1,104],$e=[1,51],ie=[1,52],Te=[1,53],we=[1,54],de=[1,55],Ee=[1,56],Ae=[1,134],Se=[1,6,11,137],Re=[1,136],Oe=[1,6,11,14,137],ue=[1,144],pe=[1,145],Ie=[1,147],Le=[1,148],Ne=[1,141],ye=[1,140],ge=[1,142],Ce=[1,143],_e=[1,146],De=[1,151],he=[1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],Pe=[2,263],fe=[1,158],me=[1,164],Fe=[1,162],Be=[1,160],Me=[1,161],Ge=[1,165],Ue=[1,163],ve=[1,6,10,11,14,22,90,97,137],xe=[1,6,11,14,137,212,214,219,220,238],Ve=[1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],We=[2,231],He=[1,178],Ye=[1,176],je=[1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],Xe=[2,227],Ke=[6,14,53,54,88,91,106,111,113,116],qe=[1,212],Je=[1,217],Qe=[1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,244,245,246,247,248,249],ze=[1,227],Ze=[1,224],ea=[1,229],aa=[6,10,14,90],ra=[2,244],sa=[1,257],ca=[1,247],na=[1,276],ta=[1,277],oa=[51,89],ba=[85,86,87,88,91,92,93,94,95,96,100,102],ka=[1,289],la=[1,6,10,11,14,21,22,53,54,71,88,89,90,91,97,106,111,112,113,116,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,244,245,246,247,248,249],$a=[1,295],ia=[51,89,96,225],Ta=[1,6,10,11,14,21,22,67,69,70,71,88,89,90,97,106,111,112,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],wa=[1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,126,135,137,144,147,171,180,181,183,196,200,201,207,208,212,213,214,219,220,229,232,234,237,238,239,242,243,246,247,248],da=[51,53,54,58],Ea=[1,326],Aa=[1,327],Sa=[1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,212,213,214,219,220,229,238],Ra=[1,340],Oa=[1,344],ua=[1,6,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],pa=[6,14,106],Ia=[1,354],La=[1,6,10,11,14,21,22,71,89,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],Na=[14,28],ya=[1,6,11,14,28,137,212,214,219,220,238],ga=[2,284],Ca=[1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,227,228,229,238,239,242,243,244,245,246,247,248,249],_a=[2,184],Da=[1,369],ha=[6,10,11,14,22,97],Pa=[14,147],fa=[2,186],ma=[1,379],Fa=[1,380],Ba=[1,381],Ma=[1,385],Ga=[6,10,11,14,90],Ua=[6,10,11,14,90,135],va=[1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,220,229,238],xa=[1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,213,220,229,238],Va=[227,228],Wa=[14,227,228],Ha=[1,6,11,14,22,71,90,97,106,112,135,137,147,171,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],Ya=[88,91],ja=[1,406],Xa=[1,407],Ka=[21,88,91,164,165],qa=[1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,242,243,247,248],Ja=[1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,213,229],Qa=[19,20,23,24,26,32,51,53,54,56,58,60,62,64,66,73,74,75,76,77,78,79,80,83,89,91,96,103,112,122,123,124,130,136,143,144,151,152,154,156,157,158,175,184,185,188,193,194,197,198,204,210,212,214,216,219,220,230,236,240,241,242,243,244,245],za=[1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,232,237,238,239,242,243,246,247,248],Za=[11,232,234],er=[1,453],ar=[2,185],rr=[6,10,11],sr=[1,461],cr=[14,22,147],nr=[1,469],tr=[1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,212,214,219,220,229,238],or=[51,58,89],br=[14,22],kr=[1,492],lr=[10,14],$r=[1,542],ir=[6,10],Tr={trace:function(){},yy:{},symbols_:{error:2,Root:3,Body:4,Block:5,TERMINATOR:6,BODYSTART:7,Line:8,Terminator:9,INDENT:10,OUTDENT:11,Splat:12,Expression:13,",":14,Comment:15,Statement:16,Return:17,Throw:18,STATEMENT:19,BREAK:20,CALL_START:21,CALL_END:22,CONTINUE:23,DEBUGGER:24,ImportStatement:25,IMPORT:26,ImportArgList:27,FROM:28,ImportFrom:29,AS:30,ImportArg:31,STRING:32,VarIdentifier:33,Await:34,Value:35,Code:36,Operation:37,Assign:38,If:39,Ternary:40,Try:41,While:42,For:43,Switch:44,Class:45,Module:46,TagDeclaration:47,Tag:48,Property:49,Identifier:50,IDENTIFIER:51,Ivar:52,IVAR:53,CVAR:54,Gvar:55,GVAR:56,Const:57,CONST:58,Argvar:59,ARGVAR:60,Symbol:61,SYMBOL:62,AlphaNumeric:63,NUMBER:64,InterpolatedString:65,STRING_START:66,NEOSTRING:67,Interpolation:68,STRING_END:69,"{{":70,"}}":71,Literal:72,JS:73,REGEX:74,BOOL:75,TRUE:76,FALSE:77,NULL:78,UNDEFINED:79,RETURN:80,Arguments:81,TagSelector:82,SELECTOR_START:83,TagSelectorType:84,SELECTOR_NS:85,SELECTOR_ID:86,SELECTOR_CLASS:87,".":88,"{":89,"}":90,"#":91,SELECTOR_COMBINATOR:92,SELECTOR_PSEUDO_CLASS:93,SELECTOR_GROUP:94,UNIVERSAL_SELECTOR:95,"[":96,"]":97,SELECTOR_ATTR_OP:98,TagSelectorAttrValue:99,SELECTOR_TAG:100,Selector:101,SELECTOR_END:102,TAG_START:103,TagOptions:104,TagAttributes:105,TAG_END:106,TagBody:107,TagTypeName:108,Self:109,TAG_TYPE:110,INDEX_START:111,INDEX_END:112,"@":113,TagAttr:114,OptComma:115,TAG_ATTR:116,"=":117,TagAttrValue:118,ArgList:119,TagTypeDef:120,TagDeclarationBlock:121,EXTEND:122,LOCAL:123,TAG:124,TagType:125,COMPARE:126,TagDeclKeywords:127,TAG_ID:128,TagId:129,IDREF:130,Assignable:131,Outdent:132,AssignObj:133,ObjAssignable:134,":":135,"(":136,")":137,HERECOMMENT:138,COMMENT:139,Method:140,Do:141,Begin:142,BEGIN:143,DO:144,BLOCK_PARAM_START:145,ParamList:146,BLOCK_PARAM_END:147,PropType:148,PropertyIdentifier:149,Object:150,PROP:151,ATTR:152,TupleAssign:153,VAR:154,MethodDeclaration:155,GLOBAL:156,EXPORT:157,DEF:158,MethodScope:159,MethodScopeType:160,MethodIdentifier:161,MethodBody:162,MethodReceiver:163,DEF_BODY:164,DEF_EMPTY:165,This:166,Param:167,Array:168,ParamVar:169,SPLAT:170,LOGIC:171,BLOCK_ARG:172,VarReference:173,VarAssignable:174,LET:175,SimpleAssignable:176,NEW:177,Super:178,SoakableOp:179,"?:":180,".:":181,IndexValue:182,"?.":183,SUPER:184,AWAIT:185,Parenthetical:186,Range:187,ARGUMENTS:188,Invocation:189,Slice:190,AssignList:191,ClassStart:192,CLASS:193,MODULE:194,OptFuncExist:195,FUNC_EXIST:196,THIS:197,SELF:198,RangeDots:199,"..":200,"...":201,Arg:202,SimpleArgs:203,TRY:204,Catch:205,Finally:206,FINALLY:207,CATCH:208,CATCH_VAR:209,THROW:210,WhileSource:211,WHILE:212,WHEN:213,UNTIL:214,Loop:215,LOOP:216,ForBody:217,ForKeyword:218,FOR:219,POST_FOR:220,ForBlock:221,ForStart:222,ForSource:223,ForVariables:224,OWN:225,ForValue:226,FORIN:227,FOROF:228,BY:229,SWITCH:230,Whens:231,ELSE:232,When:233,LEADING_WHEN:234,IfBlock:235,IF:236,ELIF:237,POST_IF:238,"?":239,UNARY:240,SQRT:241,"-":242,"+":243,"--":244,"++":245,MATH:246,SHIFT:247,RELATION:248,COMPOUND_ASSIGN:249,$accept:0,$end:1},terminals_:{2:"error",6:"TERMINATOR",7:"BODYSTART",10:"INDENT",11:"OUTDENT",14:",",19:"STATEMENT",20:"BREAK",21:"CALL_START",22:"CALL_END",23:"CONTINUE",24:"DEBUGGER",26:"IMPORT",28:"FROM",30:"AS",32:"STRING",51:"IDENTIFIER",53:"IVAR",54:"CVAR",56:"GVAR",58:"CONST",60:"ARGVAR",62:"SYMBOL",64:"NUMBER",66:"STRING_START",67:"NEOSTRING",69:"STRING_END",70:"{{",71:"}}",73:"JS",74:"REGEX",75:"BOOL",76:"TRUE",77:"FALSE",78:"NULL",79:"UNDEFINED",80:"RETURN",83:"SELECTOR_START",85:"SELECTOR_NS",86:"SELECTOR_ID",87:"SELECTOR_CLASS",88:".",89:"{",90:"}",91:"#",92:"SELECTOR_COMBINATOR",93:"SELECTOR_PSEUDO_CLASS",94:"SELECTOR_GROUP",95:"UNIVERSAL_SELECTOR",96:"[",97:"]",98:"SELECTOR_ATTR_OP",100:"SELECTOR_TAG",102:"SELECTOR_END",103:"TAG_START",106:"TAG_END",110:"TAG_TYPE",111:"INDEX_START",112:"INDEX_END",113:"@",116:"TAG_ATTR",117:"=",122:"EXTEND",123:"LOCAL",124:"TAG",126:"COMPARE",128:"TAG_ID",130:"IDREF",135:":",136:"(",137:")",138:"HERECOMMENT",139:"COMMENT",143:"BEGIN",144:"DO",145:"BLOCK_PARAM_START",147:"BLOCK_PARAM_END",151:"PROP",152:"ATTR",154:"VAR",156:"GLOBAL",157:"EXPORT",158:"DEF",164:"DEF_BODY",165:"DEF_EMPTY",170:"SPLAT",171:"LOGIC",172:"BLOCK_ARG",175:"LET",177:"NEW",180:"?:",181:".:",183:"?.",184:"SUPER",185:"AWAIT",188:"ARGUMENTS",193:"CLASS",194:"MODULE",196:"FUNC_EXIST",197:"THIS",198:"SELF",200:"..",201:"...",204:"TRY",207:"FINALLY",208:"CATCH",209:"CATCH_VAR",210:"THROW",212:"WHILE",213:"WHEN",214:"UNTIL",216:"LOOP",219:"FOR",220:"POST_FOR",225:"OWN",227:"FORIN",228:"FOROF",229:"BY",230:"SWITCH",232:"ELSE",234:"LEADING_WHEN",236:"IF",237:"ELIF",238:"POST_IF",239:"?",240:"UNARY",241:"SQRT",242:"-",243:"+",244:"--",245:"++",246:"MATH",247:"SHIFT",248:"RELATION",249:"COMPOUND_ASSIGN"},productions_:[0,[3,0],[3,1],[3,2],[4,1],[4,1],[4,3],[4,2],[9,1],[5,2],[5,3],[5,4],[8,1],[8,1],[8,3],[8,3],[8,1],[8,1],[16,1],[16,1],[16,1],[16,1],[16,4],[16,1],[16,4],[16,1],[16,1],[25,4],[25,4],[25,2],[29,1],[27,1],[27,3],[31,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[50,1],[52,1],[52,1],[55,1],[57,1],[59,1],[61,1],[63,1],[63,1],[63,1],[63,1],[65,1],[65,2],[65,2],[65,2],[68,2],[68,3],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[17,2],[17,2],[17,1],[82,1],[82,2],[82,2],[82,2],[82,2],[82,5],[82,5],[82,2],[82,2],[82,2],[82,2],[82,4],[82,6],[84,1],[101,2],[99,1],[99,1],[99,3],[48,4],[48,5],[48,5],[108,1],[108,1],[108,1],[108,0],[104,1],[104,3],[104,4],[104,3],[104,5],[104,5],[104,3],[104,2],[104,5],[105,0],[105,1],[105,3],[105,4],[114,1],[114,3],[118,1],[107,3],[107,3],[120,1],[120,3],[47,1],[47,2],[47,2],[121,2],[121,3],[121,4],[121,5],[127,0],[127,1],[125,1],[125,1],[129,1],[129,2],[38,3],[38,5],[133,1],[133,3],[133,5],[133,1],[134,1],[134,1],[134,1],[134,1],[134,1],[134,3],[15,1],[15,1],[36,1],[36,1],[36,1],[142,2],[141,2],[141,5],[141,6],[49,3],[49,5],[49,2],[148,1],[148,1],[149,1],[149,3],[153,4],[140,1],[140,2],[140,2],[155,8],[155,5],[155,6],[155,3],[160,1],[160,1],[161,1],[161,1],[161,3],[162,2],[162,2],[162,1],[159,1],[159,1],[159,1],[159,1],[115,0],[115,1],[146,0],[146,1],[146,3],[167,1],[167,1],[167,1],[167,2],[167,2],[167,2],[167,3],[169,1],[12,2],[173,3],[173,2],[173,2],[173,3],[173,2],[33,1],[33,1],[174,1],[174,1],[174,1],[176,1],[176,1],[176,1],[176,1],[176,1],[176,1],[176,1],[176,3],[176,3],[176,3],[176,3],[176,3],[176,3],[176,3],[176,3],[176,4],[179,1],[179,1],[178,1],[131,1],[131,1],[131,1],[34,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[182,1],[182,1],[150,4],[191,0],[191,1],[191,3],[191,4],[191,6],[45,1],[45,2],[45,2],[45,2],[45,2],[45,3],[192,2],[192,3],[192,4],[192,5],[46,2],[46,3],[189,3],[189,2],[195,0],[195,1],[81,2],[81,4],[166,1],[109,1],[168,2],[168,4],[199,1],[199,1],[187,5],[190,3],[190,2],[190,2],[119,1],[119,3],[119,4],[119,4],[119,6],[132,2],[132,1],[202,1],[202,1],[202,1],[202,1],[203,1],[203,3],[41,2],[41,3],[41,3],[41,4],[206,2],[205,3],[18,2],[186,3],[186,5],[211,2],[211,4],[211,2],[211,4],[42,2],[42,2],[42,2],[42,1],[215,2],[215,2],[43,2],[43,2],[43,2],[218,1],[218,1],[221,2],[217,2],[217,2],[222,2],[222,3],[226,1],[226,1],[226,1],[224,1],[224,3],[223,2],[223,2],[223,4],[223,4],[223,4],[223,6],[223,6],[44,5],[44,7],[44,4],[44,6],[231,1],[231,2],[233,3],[233,4],[235,3],[235,5],[235,4],[235,3],[39,1],[39,3],[39,3],[40,5],[37,2],[37,2],[37,2],[37,2],[37,2],[37,2],[37,2],[37,2],[37,3],[37,3],[37,3],[37,3],[37,3],[37,3],[37,3],[37,3],[37,5]],performAction:function(e,a,r,s,c){var n=c.length-1;switch(s){case 1:return e.$=new r.Root([]);case 2:return e.$=new r.Root(c[n]);case 3:return e.$=c[n-1];case 4:e.$=new r.Block([]);break;case 5:e.$=new r.Block([c[n]]);break;case 6:e.$=c[n-2]["break"](c[n-1]).add(c[n]);break;case 7:e.$=c[n-1]["break"](c[n]);break;case 8:e.$=new r.Terminator(c[n]);break;case 9:e.$=new r.Block([]).indented(c[n-1],c[n]);break;case 10:case 119:e.$=c[n-1].indented(c[n-2],c[n]);break;case 11:e.$=c[n-1].prebreak(c[n-2]).indented(c[n-3],c[n]);break;case 12:case 13:case 16:case 17:case 18:case 19:case 26:case 30:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 59:case 60:case 67:case 93:case 94:case 99:case 118:case 123:case 130:case 141:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 152:case 160:case 161:case 162:case 165:case 174:case 175:case 177:case 180:case 181:case 182:case 183:case 184:case 185:case 196:case 203:case 204:case 205:case 206:case 207:case 208:case 210:case 211:case 212:case 213:case 227:case 228:case 229:case 231:case 232:case 233:case 234:case 235:case 237:case 238:case 239:case 240:case 249:case 283:case 284:case 285:case 286:case 287:case 288:case 306:case 312:case 313:case 319:case 335:case 343:e.$=c[n];break;case 14:case 15:e.$=c[n-2].addExpression(c[n]);break;case 20:case 68:e.$=new r.Literal(c[n]);break;case 21:e.$=new r.BreakStatement(c[n]);break;case 22:e.$=new r.BreakStatement(c[n-3],c[n-1]);break;case 23:e.$=new r.ContinueStatement(c[n]);break;case 24:e.$=new r.ContinueStatement(c[n-3],c[n-1]);break;case 25:e.$=new r.DebuggerStatement(c[n]);break;case 27:e.$=new r.ImportStatement(c[n-2],c[n]);break;case 28:e.$=new r.ImportStatement(null,c[n-2],c[n]);break;case 29:e.$=new r.ImportStatement(null,c[n]);break;case 31:case 113:case 187:case 322:e.$=[c[n]];break;case 32:case 114:case 188:e.$=c[n-2].concat(c[n]);break;case 50:e.$=new r.Identifier(c[n]);break;case 51:case 52:e.$=new r.Ivar(c[n]);break;case 53:e.$=new r.Gvar(c[n]);break;case 54:e.$=new r.Const(c[n]);break;case 55:e.$=new r.Argvar(c[n]);break;case 56:e.$=new r.Symbol(c[n]);break;case 57:e.$=new r.Num(c[n]);break;case 58:e.$=new r.Str(c[n]);break;case 61:e.$=new r.InterpolatedString([],{open:c[n]});break;case 62:e.$=c[n-1].add(c[n]);break;case 63:e.$=c[n]?c[n-1].add(c[n]):c[n-1];break;case 64:e.$=c[n-1].option("close",c[n]);break;case 65:e.$=null;break;case 66:case 92:case 95:case 120:case 147:case 163:case 176:case 282:e.$=c[n-1];break;case 69:e.$=new r.RegExp(c[n]);break;case 70:e.$=new r.Bool(c[n]);break;case 71:e.$=r.TRUE;break;case 72:e.$=r.FALSE;break;case 73:e.$=r.NIL;break;case 74:e.$=r.UNDEFINED;break;case 75:case 76:e.$=new r.Return(c[n]);break;case 77:e.$=new r.Return;break;case 78:e.$=new r.Selector([],{type:c[n]});break;case 79:e.$=c[n-1].add(new r.SelectorType(c[n]),"tag");break;case 80:e.$=c[n-1].add(new r.SelectorNamespace(c[n]),"ns");break;case 81:e.$=c[n-1].add(new r.SelectorId(c[n]),"id");break;case 82:e.$=c[n-1].add(new r.SelectorClass(c[n]),"class");break;case 83:e.$=c[n-4].add(new r.SelectorClass(c[n-1]),"class");break;case 84:e.$=c[n-4].add(new r.SelectorId(c[n-1]),"id");break;case 85:e.$=c[n-1].add(new r.SelectorCombinator(c[n]),"sep");break;case 86:e.$=c[n-1].add(new r.SelectorPseudoClass(c[n]),"pseudoclass");break;case 87:e.$=c[n-1].group();break;case 88:e.$=c[n-1].add(new r.SelectorUniversal(c[n]),"universal");break;case 89:e.$=c[n-3].add(new r.SelectorAttribute(c[n-1]),"attr");break;case 90:e.$=c[n-5].add(new r.SelectorAttribute(c[n-3],c[n-2],c[n-1]),"attr");break;case 91:case 100:case 101:case 132:case 133:e.$=new r.TagTypeIdentifier(c[n]);break;case 96:e.$=c[n-2].set({attributes:c[n-1],open:c[n-3],close:c[n]});break;case 97:e.$=c[n-3].set({attributes:c[n-2],body:c[n],open:c[n-4],close:c[n-1]});break;case 98:e.$=new r.TagWrapper(c[n-2],c[n-4],c[n]);break;case 102:e.$=new r.TagTypeIdentifier("div");break;case 103:e.$=new r.Tag({type:c[n]});break;case 104:e.$=c[n-2].addSymbol(c[n]);break;case 105:e.$=c[n-3].addIndex(c[n-1]);break;case 106:e.$=c[n-2].addClass(c[n]);break;case 107:e.$=c[n-4].addClass(c[n-1]);break;case 108:e.$=c[n-4].set({key:c[n-1]});break;case 109:e.$=c[n-2].set({id:c[n]});break;case 110:e.$=c[n-1].set({ivar:c[n]});break;case 111:e.$=c[n-4].set({id:c[n-1]});break;case 112:case 179:case 186:e.$=[];break;case 115:e.$=c[n-3].concat(c[n]);break;case 116:e.$=new r.TagAttr(c[n],c[n]);break;case 117:e.$=new r.TagAttr(c[n-2],c[n],c[n-1]);break;case 121:e.$=new r.TagDesc(c[n]);break;case 122:e.$=c[n-2].classes(c[n]);break;case 124:e.$=c[n].set({extension:!0});break;case 125:e.$=c[n].set({local:!0});break;case 126:e.$=new r.TagDeclaration(c[n]).set({keyword:c[n-1]});break;case 127:e.$=new r.TagDeclaration(c[n-1],null,c[n]).set({keyword:c[n-2]});break;case 128:e.$=new r.TagDeclaration(c[n-2],c[n]).set({keyword:c[n-3]});break;case 129:e.$=new r.TagDeclaration(c[n-3],c[n-1],c[n]).set({keyword:c[n-4]});break;case 131:e.$=["yy.extend"];break;case 134:case 135:e.$=new r.TagId(c[n]);break;case 136:e.$=new r.Assign(c[n-1],c[n-2],c[n]);break;case 137:e.$=new r.Assign(c[n-3],c[n-4],c[n-1].indented(c[n-2],c[n]));break;case 138:e.$=new r.ObjAttr(c[n]);break;case 139:e.$=new r.ObjAttr(c[n-2],c[n],"object");break;case 140:e.$=new r.ObjAttr(c[n-4],c[n-1].indented(c[n-2],c[n]),"object");break;case 148:e.$=new r.Comment(c[n],!0);break;case 149:e.$=new r.Comment(c[n],!1);break;case 153:e.$=new r.Begin(c[n]);break;case 154:e.$=new r.Lambda([],c[n],null,null,{bound:!0});break;case 155:e.$=new r.Lambda(c[n-2],c[n],null,null,{bound:!0});break;case 156:e.$=new r.Lambda(c[n-3],c[n-1],null,null,{bound:!0});break;case 157:e.$=new r.PropertyDeclaration(c[n-1],c[n],c[n-2]);break;case 158:e.$=new r.PropertyDeclaration(c[n-3],c[n-1],c[n-4]);break;case 159:e.$=new r.PropertyDeclaration(c[n],null,c[n-1]);break;case 164:e.$=c[n-3];break;case 166:case 252:e.$=c[n].set({global:c[n-1]});break;case 167:case 202:case 253:e.$=c[n].set({"export":c[n-1]});break;case 168:e.$=new r.MethodDeclaration(c[n-2],c[n],c[n-4],c[n-6],c[n-5]).set({def:c[n-7]});break;case 169:e.$=new r.MethodDeclaration([],c[n],c[n-1],c[n-3],c[n-2]).set({def:c[n-4]});break;case 170:e.$=new r.MethodDeclaration(c[n-2],c[n],c[n-4],null).set({def:c[n-5]});break;case 171:e.$=new r.MethodDeclaration([],c[n],c[n-1],null).set({def:c[n-2]});break;case 172:e.$={"static":!0};break;case 173:e.$={};break;case 178:e.$=c[n].body();break;case 189:e.$=new r.NamedParams(c[n]);break;case 190:e.$=new r.ArrayParams(c[n]);break;case 191:e.$=new r.RequiredParam(c[n]);break;case 192:e.$=new r.SplatParam(c[n],null,c[n-1]);break;case 193:case 194:e.$=new r.BlockParam(c[n],null,c[n-1]);break;case 195:e.$=new r.OptionalParam(c[n-2],c[n],c[n-1]);break;case 197:e.$=r.SPLAT(c[n]);break;case 198:case 201:e.$=r.SPLAT(new r.VarReference(c[n],c[n-2]),c[n-1]);break;case 199:case 200:e.$=new r.VarReference(c[n],c[n-1]);break;case 209:e.$=new r.IvarAccess(".",null,c[n]);break;case 214:e.$=new r.VarOrAccess(c[n]);break;case 215:e.$=new r.New(c[n-2]);break;case 216:e.$=new r.SuperAccess(".",c[n-2],c[n]);break;case 217:e.$=new r.PropertyAccess(c[n-1],c[n-2],c[n]);break;case 218:case 219:case 220:case 222:e.$=new r.Access(c[n-1],c[n-2],c[n]);break;case 221:e.$=new r.Access(".",c[n-2],new r.Identifier(c[n].value()));break;case 223:e.$=new r.IndexAccess(".",c[n-3],c[n-1]);break;case 226:e.$=r.SUPER;break;case 230:e.$=new r.Await(c[n]).set({keyword:c[n-1]});break;case 236:e.$=r.ARGUMENTS;break;case 241:e.$=new r.Index(c[n]);break;case 242:e.$=new r.Slice(c[n]);break;case 243:e.$=new r.Obj(c[n-2],c[n-3].generated);break;case 244:e.$=new r.AssignList([]);break;case 245:e.$=new r.AssignList([c[n]]);break;case 246:case 278:e.$=c[n-2].add(c[n]);break;case 247:case 279:e.$=c[n-3].add(c[n-1]).add(c[n]);break;case 248:e.$=c[n-5].concat(c[n-2].indented(c[n-3],c[n]));break;case 250:e.$=c[n].set({extension:c[n-1]});break;case 251:e.$=c[n].set({local:c[n-1]});break;case 254:e.$=c[n].set({"export":c[n-2],local:c[n-1]});break;case 255:e.$=new r.ClassDeclaration(c[n],null,[]).set({keyword:c[n-1]});break;case 256:e.$=new r.ClassDeclaration(c[n-1],null,c[n]).set({keyword:c[n-2]});break;case 257:e.$=new r.ClassDeclaration(c[n-2],c[n],[]).set({keyword:c[n-3]});break;case 258:e.$=new r.ClassDeclaration(c[n-3],c[n-1],c[n]).set({keyword:c[n-4]});break;case 259:e.$=new r.Module(c[n]);break;case 260:e.$=new r.Module(c[n-1],null,c[n]);break;case 261:e.$=new r.Call(c[n-2],c[n],c[n-1]);break;case 262:e.$=c[n-1].addBlock(c[n]);break;case 263:e.$=!1;break;case 264:e.$=!0;break;case 265:e.$=new r.ArgList([]);break;case 266:e.$=c[n-2];break;case 267:e.$=new r.This(c[n]);break;case 268:e.$=new r.Self(c[n]);break;case 269:e.$=new r.Arr(new r.ArgList([]));break;case 270:e.$=new r.Arr(c[n-2]);break;case 271:e.$="..";break;case 272:e.$="...";break;case 273:e.$=r.OP(c[n-2],c[n-3],c[n-1]);break;case 274:e.$=new r.Range(c[n-2],c[n],c[n-1]);break;case 275:e.$=new r.Range(c[n-1],null,c[n]);break;case 276:e.$=new r.Range(null,c[n],c[n-1]);break;case 277:e.$=new r.ArgList([c[n]]);break;case 280:e.$=c[n-2].indented(c[n-3],c[n]);break;case 281:e.$=c[n-5].concat(c[n-2]);break;case 289:e.$=[].concat(c[n-2],c[n]);break;case 290:e.$=new r.Try(c[n]);break;case 291:e.$=new r.Try(c[n-1],c[n]);break;case 292:e.$=new r.Try(c[n-1],null,c[n]);break;case 293:e.$=new r.Try(c[n-2],c[n-1],c[n]);break;case 294:e.$=new r.Finally(c[n]);break;case 295:e.$=new r.Catch(c[n],c[n-1]);break;case 296:e.$=new r.Throw(c[n]);break;case 297:e.$=new r.Parens(c[n-1],c[n-2],c[n]);break;case 298:e.$=new r.Parens(c[n-2],c[n-4],c[n]);break;case 299:e.$=new r.While(c[n]);break;case 300:e.$=new r.While(c[n-2],{guard:c[n]});break;case 301:e.$=new r.While(c[n],{invert:!0});break;case 302:e.$=new r.While(c[n-2],{invert:!0,guard:c[n]});break;case 303:case 311:case 314:e.$=c[n-1].addBody(c[n]);break;case 304:case 305:e.$=c[n].addBody(r.Block.wrap([c[n-1]]));break;case 307:e.$=new r.While(new r.Literal("true")).addBody(c[n]);break;case 308:e.$=new r.While(new r.Literal("true")).addBody(r.Block.wrap([c[n]]));break;case 309:case 310:e.$=c[n].addBody([c[n-1]]);break;case 315:e.$={source:new r.ValueNode(c[n])};break;case 316:e.$=c[n].configure({own:c[n-1].own,name:c[n-1][0],index:c[n-1][1],keyword:c[n-1].keyword});break;case 317:e.$=(c[n].keyword=c[n-1])&&c[n];break;case 318:e.$=(c[n].own=!0)&&(c[n].keyword=c[n-2])&&c[n];break;case 320:case 321:e.$=new r.ValueNode(c[n]);break;case 323:e.$=[c[n-2],c[n]];break;case 324:e.$=new r.ForIn({source:c[n]});break;case 325:e.$=new r.ForOf({source:c[n],object:!0});break;case 326:e.$=new r.ForIn({source:c[n-2],guard:c[n]});break;case 327:e.$=new r.ForOf({source:c[n-2],guard:c[n],object:!0});break;case 328:e.$=new r.ForIn({source:c[n-2],step:c[n]});break;case 329:e.$=new r.ForIn({source:c[n-4],guard:c[n-2],step:c[n]});break;case 330:e.$=new r.ForIn({source:c[n-4],step:c[n-2],guard:c[n]});break;case 331:e.$=new r.Switch(c[n-3],c[n-1]);break;case 332:e.$=new r.Switch(c[n-5],c[n-3],c[n-1]);break;case 333:e.$=new r.Switch(null,c[n-1]);break;case 334:e.$=new r.Switch(null,c[n-3],c[n-1]);break;case 336:e.$=c[n-1].concat(c[n]);break;case 337:e.$=[new r.SwitchCase(c[n-1],c[n])];break;case 338:e.$=[new r.SwitchCase(c[n-2],c[n-1])];break;case 339:e.$=new r.If(c[n-1],c[n],{type:c[n-2]});break;case 340:e.$=c[n-4].addElse(new r.If(c[n-1],c[n],{type:c[n-2]}));break;case 341:e.$=c[n-3].addElse(new r.If(c[n-1],c[n],{type:c[n-2]}));break;case 342:e.$=c[n-2].addElse(c[n]);break;case 344:e.$=new r.If(c[n],new r.Block([c[n-2]]),{type:c[n-1],statement:!0});break;case 345:e.$=new r.If(c[n],new r.Block([c[n-2]]),{type:c[n-1]});break;case 346:e.$=r.If.ternary(c[n-4],c[n-2],c[n]);break;case 347:case 348:e.$=r.OP(c[n-1],c[n]);break;case 349:e.$=new r.Op("-",c[n]);break;case 350:e.$=new r.Op("+",c[n]);break;case 351:e.$=new r.UnaryOp("--",null,c[n]);break;case 352:e.$=new r.UnaryOp("++",null,c[n]);break;case 353:e.$=new r.UnaryOp("--",c[n-1],null,!0);break;case 354:e.$=new r.UnaryOp("++",c[n-1],null,!0);break;case 355:case 356:e.$=new r.Op(c[n-1],c[n-2],c[n]);break;case 357:case 358:case 359:case 360:e.$=r.OP(c[n-1],c[n-2],c[n]);break;case 361:e.$=function(){return"!"==c[n-1].charAt(0)?r.OP(c[n-1].slice(1),c[n-2],c[n]).invert():r.OP(c[n-1],c[n-2],c[n])}();break;case 362:e.$=r.OP_COMPOUND(c[n-1]._value,c[n-1],c[n-2],c[n]);break;case 363:e.$=r.OP_COMPOUND(c[n-3]._value,c[n-4],c[n-1].indented(c[n-2],c[n]))}},table:[{1:[2,1],3:1,4:2,5:3,7:r,8:5,10:s,12:7,13:8,15:9,16:10,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{1:[3]},{1:[2,2],6:Ae,9:133},{6:[1,135]},a(Se,[2,4]),a(Se,[2,5],{14:Re}),{4:138,6:[1,139],7:r,8:5,11:[1,137],12:7,13:8,15:9,16:10,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Oe,[2,12]),a(Oe,[2,13],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Oe,[2,16]),a(Oe,[2,17],{218:108,222:109,211:152,217:153,212:ce,214:ne,219:oe,220:be,238:De}),{13:154,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,34]),a(he,[2,35],{195:156,141:157,179:159,21:Pe,88:fe,89:me,111:Fe,144:v,180:Be,181:Me,183:Ge,196:Ue}),a(he,[2,36]),a(he,[2,37]),a(he,[2,38]),a(he,[2,39]),a(he,[2,40]),a(he,[2,41]),a(he,[2,42]),a(he,[2,43]),a(he,[2,44]),a(he,[2,45]),a(he,[2,46]),a(he,[2,47]),a(he,[2,48]),a(he,[2,49]),a(ve,[2,148]),a(ve,[2,149]),a(xe,[2,18]),a(xe,[2,19]),a(xe,[2,20]),a(xe,[2,21],{21:[1,166]}),a(xe,[2,23],{21:[1,167]}),a(xe,[2,25]),a(xe,[2,26]),{13:168,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ve,We,{117:[1,169]}),a(Ve,[2,232]),a(Ve,[2,233]),a(Ve,[2,234]),a(Ve,[2,235]),a(Ve,[2,236]),a(Ve,[2,237]),a(Ve,[2,238]),a(Ve,[2,239]),a(Ve,[2,240]),a(he,[2,150]),a(he,[2,151]),a(he,[2,152]),{13:170,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:171,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:172,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:173,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{32:k,35:175,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,82:92,83:g,89:He,91:_,96:D,101:46,109:101,129:45,130:F,131:177,136:B,150:77,154:W,157:Ye,166:44,168:76,173:102,175:K,176:174,178:39,184:q,186:41,187:42,188:Q,189:47,197:ee,198:ae},{32:k,35:175,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,82:92,83:g,89:He,91:_,96:D,101:46,109:101,
|
18
|
+
129:45,130:F,131:177,136:B,150:77,154:W,157:Ye,166:44,168:76,173:102,175:K,176:179,178:39,184:q,186:41,187:42,188:Q,189:47,197:ee,198:ae},a(je,Xe,{244:[1,180],245:[1,181],249:[1,182]}),a(he,[2,343],{232:[1,183],237:[1,184]}),{5:185,10:s},{5:186,10:s},a(he,[2,306]),{5:187,10:s},{10:[1,189],13:188,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,249]),{121:191,124:m,192:190,193:z},{121:193,124:m,192:192,193:z},{155:195,158:j,192:194,193:z},{123:[1,197],154:W,155:198,157:Ye,158:j,173:199,175:K,192:196,193:z},{32:k,35:175,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,82:92,83:g,89:He,91:_,96:D,101:46,109:101,129:45,130:F,131:177,136:B,150:77,154:W,157:Ye,166:44,168:76,173:102,175:K,176:200,178:39,184:q,186:41,187:42,188:Q,189:47,197:ee,198:ae},a(he,[2,123]),a(Ke,[2,102],{104:201,108:203,109:204,51:[1,205],89:[1,202],110:[1,206],198:ae}),{50:208,51:l,89:[1,209],149:207},a(xe,[2,77],{34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,17:30,18:31,25:36,131:38,178:39,72:40,186:41,187:42,166:44,129:45,101:46,189:47,140:48,141:49,142:50,176:57,235:58,211:60,215:61,217:62,192:64,121:70,148:72,168:76,150:77,63:79,82:92,155:93,57:97,52:98,55:99,59:100,109:101,173:102,50:103,218:108,222:109,61:116,65:117,16:155,13:210,81:211,19:c,20:n,21:qe,23:t,24:o,26:b,32:k,51:l,53:$,54:i,56:T,58:w,60:d,62:E,64:A,66:S,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,83:g,89:C,91:_,96:D,103:h,122:P,123:f,124:m,130:F,136:B,143:U,144:v,151:x,152:V,154:W,156:H,157:Y,158:j,175:K,184:q,185:J,188:Q,193:z,194:Z,197:ee,198:ae,204:re,210:se,216:te,230:ke,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee}),{13:213,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{27:214,29:215,31:216,32:Je,33:218,50:220,51:l,57:219,58:w},a(je,[2,228]),a(je,[2,229]),a(Qe,[2,226]),a(Ve,[2,67]),a(Ve,[2,68]),a(Ve,[2,69]),a(Ve,[2,70]),a(Ve,[2,71]),a(Ve,[2,72]),a(Ve,[2,73]),a(Ve,[2,74]),{4:221,7:r,8:5,10:[1,222],12:7,13:8,15:9,16:10,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{10:ze,12:228,13:223,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,97:Ze,101:46,103:h,109:101,119:225,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a([1,6,10,11,14,21,22,71,88,89,90,91,97,106,111,112,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],[2,267]),a(Ve,[2,134]),{50:231,51:l},{84:233,85:[1,234],86:[1,235],87:[1,236],88:[1,237],91:[1,238],92:[1,239],93:[1,240],94:[1,241],95:[1,242],96:[1,243],100:[1,244],102:[1,232]},a(he,[2,165]),{5:245,10:s,145:[1,246]},a(aa,ra,{61:116,65:117,191:248,133:249,134:250,15:251,50:252,57:253,63:254,52:255,55:256,32:k,51:l,53:$,54:i,56:T,58:w,62:E,64:A,66:S,136:sa,138:M,139:G,145:ca}),{5:258,10:s},a(Qe,[2,208]),a(Qe,[2,209]),a(Qe,[2,210]),a(Qe,[2,211]),a(Qe,[2,212]),a(Qe,[2,213]),a(Qe,[2,214]),{13:259,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:260,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:261,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{5:262,10:s,13:263,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{50:268,51:l,89:He,96:D,150:270,168:269,187:264,224:265,225:[1,266],226:267},{223:271,227:[1,272],228:[1,273]},{32:k,35:175,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,82:92,83:g,89:He,91:_,96:D,101:46,109:101,129:45,130:F,131:177,136:B,150:77,154:W,157:Ye,166:44,168:76,173:102,175:K,176:274,178:39,184:q,186:41,187:42,188:Q,189:47,197:ee,198:ae},{110:na,125:275,128:ta},a(oa,[2,160]),a(oa,[2,161]),a(Ve,[2,57]),a(Ve,[2,58]),a(Ve,[2,59]),a(Ve,[2,60],{68:279,67:[1,278],69:[1,280],70:[1,281]}),a(ba,[2,78]),{50:287,51:l,55:286,56:T,57:288,58:w,89:ka,109:285,159:282,161:283,166:284,197:ee,198:ae},a([1,6,10,11,14,21,22,28,71,88,89,90,91,97,106,111,112,117,126,135,137,144,147,164,165,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,244,245,246,247,248,249],[2,54]),a(la,[2,51]),a(la,[2,52]),a([1,6,10,11,14,21,22,71,88,89,90,91,97,106,111,112,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,244,245,246,247,248,249],[2,53]),a(Qe,[2,55]),a(la,[2,268]),{50:293,51:l,57:292,58:w,96:$a,168:294,170:[1,290],174:291},{50:293,51:l,57:292,58:w,96:$a,168:294,170:[1,297],174:296},a([1,6,10,11,14,21,22,28,71,88,89,90,91,97,98,106,111,112,117,126,135,137,144,147,164,165,171,180,181,183,196,200,201,212,213,214,219,220,227,228,229,238,239,242,243,244,245,246,247,248,249],[2,50]),a(ia,[2,312]),a(ia,[2,313]),a(Qe,[2,56]),a(Ta,[2,61]),a(Se,[2,7],{12:7,13:8,15:9,16:10,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,17:30,18:31,25:36,131:38,178:39,72:40,186:41,187:42,166:44,129:45,101:46,189:47,140:48,141:49,142:50,176:57,235:58,211:60,215:61,217:62,192:64,121:70,148:72,168:76,150:77,63:79,82:92,155:93,57:97,52:98,55:99,59:100,109:101,173:102,50:103,218:108,222:109,61:116,65:117,8:298,19:c,20:n,23:t,24:o,26:b,32:k,51:l,53:$,54:i,56:T,58:w,60:d,62:E,64:A,66:S,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,83:g,89:C,91:_,96:D,103:h,122:P,123:f,124:m,130:F,136:B,138:M,139:G,143:U,144:v,151:x,152:V,154:W,156:H,157:Y,158:j,170:X,175:K,184:q,185:J,188:Q,193:z,194:Z,197:ee,198:ae,204:re,210:se,212:ce,214:ne,216:te,219:oe,220:be,230:ke,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee}),a([1,6,11,19,20,23,24,26,32,51,53,54,56,58,60,62,64,66,73,74,75,76,77,78,79,80,83,89,91,96,103,122,123,124,130,136,137,138,139,143,144,151,152,154,156,157,158,170,171,175,184,185,188,193,194,197,198,204,210,212,214,216,219,220,230,236,240,241,242,243,244,245],[2,8]),{1:[2,3]},{12:300,13:299,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(wa,[2,9]),{6:Ae,9:133,11:[1,301]},{4:302,7:r,8:5,12:7,13:8,15:9,16:10,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:303,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:304,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:305,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:306,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:307,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:308,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:309,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:310,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:311,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,305]),a(he,[2,310]),{13:312,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,304]),a(he,[2,309]),a([1,6,10,11,14,22,97,137],[2,197],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{211:152,212:ce,214:ne,217:153,218:108,219:oe,220:be,222:109,238:De},{21:qe,81:313},a(Ve,[2,262]),a(da,[2,224],{178:315,61:316,62:E,177:[1,314],184:q}),{50:317,51:l,52:318,53:$,54:i,57:319,58:w},{50:320,51:l},{50:321,51:l},{13:323,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,182:322,184:q,185:J,186:41,187:42,188:Q,189:47,190:324,192:64,193:z,194:Z,197:ee,198:ae,199:325,200:Ea,201:Aa,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{21:[2,264]},{145:ca},a(da,[2,225]),{13:328,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:329,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Sa,[2,230],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{10:[1,331],13:330,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,347],{218:108,222:109,211:149,217:150}),a(he,[2,348],{218:108,222:109,211:149,217:150}),a(he,[2,349],{218:108,222:109,211:149,217:150}),a(he,[2,350],{218:108,222:109,211:149,217:150}),a(he,[2,351],{21:Xe,88:Xe,89:Xe,111:Xe,144:Xe,180:Xe,181:Xe,183:Xe,196:Xe}),{21:Pe,88:fe,89:me,111:Fe,141:157,144:v,179:159,180:Be,181:Me,183:Ge,195:156,196:Ue},{154:W,157:Ye,173:199,175:K},a([21,88,89,111,144,180,181,183,196],We),a(aa,ra,{61:116,65:117,191:248,133:249,134:250,15:251,50:252,57:253,63:254,52:255,55:256,32:k,51:l,53:$,54:i,56:T,58:w,62:E,64:A,66:S,136:sa,138:M,139:G}),a(he,[2,352],{21:Xe,88:Xe,89:Xe,111:Xe,144:Xe,180:Xe,181:Xe,183:Xe,196:Xe}),a(he,[2,353]),a(he,[2,354]),{10:[1,333],13:332,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{5:335,10:s,236:[1,334]},{13:336,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,290],{205:337,206:338,207:Ra,208:[1,339]}),a(he,[2,303]),a(he,[2,311]),{10:[1,341],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{231:342,233:343,234:Oa},a(he,[2,250]),a(he,[2,124]),a(he,[2,251]),a(he,[2,125]),a(he,[2,252]),a(he,[2,166]),a(he,[2,253]),{192:345,193:z},a(he,[2,167]),a(Qe,[2,202]),a(ua,[2,259],{5:346,10:s,21:Xe,88:Xe,89:Xe,111:Xe,144:Xe,180:Xe,181:Xe,183:Xe,196:Xe}),a(pa,[2,112],{105:347,52:352,114:353,53:$,54:i,88:[1,348],91:[1,351],111:[1,349],113:[1,350],116:Ia}),{13:355,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ke,[2,103]),a(Ke,[2,99]),a(Ke,[2,100]),a(Ke,[2,101]),a(he,[2,159],{150:356,21:[1,357],89:He}),a(La,[2,162]),{13:358,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(xe,[2,75],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(xe,[2,76]),{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,22:[1,359],23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,119:360,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(xe,[2,296],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{14:[1,363],28:[1,362]},a(xe,[2,29],{30:[1,364]}),a(Na,[2,31]),a([1,6,11,14,30,137,212,214,219,220,238],[2,30]),a(ya,[2,33]),a(ya,[2,203]),a(ya,[2,204]),{6:Ae,9:133,137:[1,365]},{4:366,7:r,8:5,12:7,13:8,15:9,16:10,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a([6,10,14,97],ga,{218:108,222:109,211:149,217:150,199:367,126:ue,171:pe,200:Ea,201:Aa,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Ca,[2,269]),a([6,10,97],_a,{115:368,14:Da}),a(ha,[2,277]),{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,119:370,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(ha,[2,285]),a(ha,[2,286]),a(ha,[2,287]),a(Ve,[2,135]),a(Ve,[2,92]),a(ba,[2,79]),a(ba,[2,80]),a(ba,[2,81]),a(ba,[2,82]),{89:[1,371]},{89:[1,372]},a(ba,[2,85]),a(ba,[2,86]),a(ba,[2,87]),a(ba,[2,88]),{50:373,51:l},a(ba,[2,91]),a(Ve,[2,154]),a(Pa,fa,{146:374,167:375,150:376,168:377,169:378,50:382,51:l,89:He,96:$a,170:ma,171:Fa,172:Ba}),a(Pa,fa,{167:375,150:376,168:377,169:378,50:382,146:383,51:l,89:He,96:$a,170:ma,171:Fa,172:Ba}),a([6,10,90],_a,{115:384,14:Ma}),a(Ga,[2,245]),a(Ga,[2,138],{135:[1,386]}),a(Ga,[2,141]),a(Ua,[2,142]),a(Ua,[2,143]),a(Ua,[2,144]),a(Ua,[2,145]),a(Ua,[2,146]),{
|
19
|
+
13:387,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,153]),{5:388,10:s,126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(va,[2,299],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,213:[1,389],214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(va,[2,301],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,213:[1,390],214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(he,[2,307]),a(xa,[2,308],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(he,[2,315]),a(Va,[2,317]),{50:268,51:l,89:He,96:$a,150:270,168:269,224:391,226:267},a(Va,[2,322],{14:[1,392]}),a(Wa,[2,319]),a(Wa,[2,320]),a(Wa,[2,321]),a(he,[2,316]),{13:393,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:394,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ha,[2,255],{5:395,10:s,21:Xe,88:Xe,89:Xe,111:Xe,144:Xe,180:Xe,181:Xe,183:Xe,196:Xe,126:[1,396]}),a(Ha,[2,126],{5:397,10:s,126:[1,398]}),a(he,[2,132]),a(he,[2,133]),a(Ta,[2,62]),a(Ta,[2,63]),a(Ta,[2,64]),{13:400,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,71:[1,399],72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{88:[1,402],91:[1,403],160:401},a(Ya,[2,180],{162:405,21:[1,404],164:ja,165:Xa}),a(Ya,[2,181]),a(Ya,[2,182]),a(Ya,[2,183]),a(Ka,[2,174]),a(Ka,[2,175]),{13:408,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{50:293,51:l,57:292,58:w,96:$a,168:294,174:409},a(Qe,[2,199]),a(Qe,[2,205]),a(Qe,[2,206]),a(Qe,[2,207]),{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,97:Ze,101:46,103:h,109:101,119:225,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Qe,[2,200]),{50:293,51:l,57:292,58:w,96:$a,168:294,174:410},a(Se,[2,6],{14:Re}),a(Oe,[2,14],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Oe,[2,15]),a(wa,[2,10]),{6:Ae,9:133,11:[1,411]},a(qa,[2,355],{218:108,222:109,211:149,217:150,246:ge}),a(qa,[2,356],{218:108,222:109,211:149,217:150,246:ge}),a(he,[2,357],{218:108,222:109,211:149,217:150}),a([1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,247,248],[2,358],{218:108,222:109,211:149,217:150,242:Ne,243:ye,246:ge}),a([1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239],[2,359],{218:108,222:109,211:149,217:150,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a([1,6,10,11,14,22,71,90,97,106,112,135,137,147,171,200,201,212,213,214,219,220,229,238,239],[2,360],{218:108,222:109,211:149,217:150,126:ue,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a([1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,248],[2,361],{218:108,222:109,211:149,217:150,242:Ne,243:ye,246:ge,247:Ce}),a(Ja,[2,345],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{126:ue,135:[1,412],171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Ja,[2,344],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Ve,[2,261]),a(Qe,[2,215]),a(Qe,[2,216]),a(Qe,[2,221]),a(Qe,[2,217]),a(Qe,[2,220]),a(Qe,[2,222]),a(Qe,[2,218]),a(Qe,[2,219]),{112:[1,413]},{112:[2,241],126:ue,171:pe,199:414,200:Ea,201:Aa,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{112:[2,242]},{13:415,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Qa,[2,271]),a(Qa,[2,272]),{22:[1,416],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{22:[1,417],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Sa,[2,136],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{13:418,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Sa,[2,362],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{13:419,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:420,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(za,[2,342]),{5:421,10:s,126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(he,[2,291],{206:422,207:Ra}),a(he,[2,292]),{209:[1,423]},{5:424,10:s},{231:425,233:343,234:Oa},{11:[1,426],232:[1,427],233:428,234:Oa},a(Za,[2,335]),{13:430,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,203:429,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,254]),a(he,[2,260]),{6:_a,14:[1,432],106:[1,431],115:433},{51:[1,435],62:[1,434],89:[1,436]},{13:437,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{89:[1,438]},{51:[1,439],89:[1,440]},a(Ke,[2,110]),a(pa,[2,113]),a(pa,[2,116],{117:[1,441]}),{90:[1,442],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(he,[2,157]),{89:He,150:443},{90:[1,444],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Ve,[2,265]),a([6,10,22],_a,{115:445,14:Da}),a(ha,ga,{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{29:446,32:Je},{31:447,33:218,50:220,51:l,57:219,58:w},{31:448,33:218,50:220,51:l,57:219,58:w},a(Ve,[2,297]),{6:Ae,9:133,11:[1,449]},{13:450,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{6:Ae,9:452,10:er,97:[1,451]},a([6,10,11,22,97],ar,{34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,17:30,18:31,25:36,131:38,178:39,72:40,186:41,187:42,166:44,129:45,101:46,189:47,140:48,141:49,142:50,176:57,235:58,211:60,215:61,217:62,192:64,121:70,148:72,168:76,150:77,63:79,82:92,155:93,57:97,52:98,55:99,59:100,109:101,173:102,50:103,218:108,222:109,61:116,65:117,16:155,12:228,15:230,13:361,202:454,19:c,20:n,23:t,24:o,26:b,32:k,51:l,53:$,54:i,56:T,58:w,60:d,62:E,64:A,66:S,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,83:g,89:C,91:_,96:D,103:h,122:P,123:f,124:m,130:F,136:B,138:M,139:G,143:U,144:v,151:x,152:V,154:W,156:H,157:Y,158:j,170:X,171:ea,175:K,184:q,185:J,188:Q,193:z,194:Z,197:ee,198:ae,204:re,210:se,212:ce,214:ne,216:te,219:oe,220:be,230:ke,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee}),a(rr,_a,{115:455,14:Da}),{13:456,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:457,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{97:[1,458],98:[1,459]},{14:sr,147:[1,460]},a(cr,[2,187]),a(cr,[2,189]),a(cr,[2,190]),a(cr,[2,191],{117:[1,462]}),{50:382,51:l,169:463},{50:382,51:l,169:464},{50:382,51:l,169:465},a([14,22,117,147],[2,196]),{14:sr,147:[1,466]},{6:Ae,9:468,10:nr,90:[1,467]},a([6,10,11,90],ar,{61:116,65:117,134:250,15:251,50:252,57:253,63:254,52:255,55:256,133:470,32:k,51:l,53:$,54:i,56:T,58:w,62:E,64:A,66:S,136:sa,138:M,139:G}),{10:[1,472],13:471,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{126:ue,137:[1,473],171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(za,[2,339]),{13:474,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:475,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Va,[2,318]),{50:268,51:l,89:He,96:$a,150:270,168:269,226:476},a([1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,212,214,219,220,238],[2,324],{218:108,222:109,211:149,217:150,126:ue,171:pe,213:[1,477],229:[1,478],239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(tr,[2,325],{218:108,222:109,211:149,217:150,126:ue,171:pe,213:[1,479],239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(he,[2,256]),{13:480,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,127]),{110:na,125:481,128:ta},a(Ta,[2,65]),{71:[1,482],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{50:287,51:l,57:288,58:w,89:ka,161:483},a(or,[2,172]),a(or,[2,173]),a(br,fa,{167:375,150:376,168:377,169:378,50:382,146:484,51:l,89:He,96:$a,170:ma,171:Fa,172:Ba}),a(he,[2,171]),{5:485,10:s,89:me,141:486,144:v},a(he,[2,179]),{90:[1,487],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Qe,[2,198]),a(Qe,[2,201]),a(wa,[2,11]),{13:488,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Qe,[2,223]),{13:489,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,112:[2,275],121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{112:[2,276],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(xe,[2,22]),a(xe,[2,24]),{6:Ae,9:491,11:kr,126:ue,132:490,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{6:Ae,9:491,11:kr,126:ue,132:493,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{5:494,10:s,126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(za,[2,341]),a(he,[2,293]),{5:495,10:s},a(he,[2,294]),{11:[1,496],232:[1,497],233:428,234:Oa},a(he,[2,333]),{5:498,10:s},a(Za,[2,336]),{5:499,10:s,14:[1,500]},a(lr,[2,288],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(ua,[2,96],{107:501,10:[1,502],21:[1,503]}),{6:ar,114:504,116:Ia},{6:[1,505]},a(Ke,[2,104]),a(Ke,[2,106]),{13:506,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{112:[1,507],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{13:508,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ke,[2,109]),{13:509,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:511,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,118:510,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{106:[1,512]},{22:[1,513]},a(La,[2,163]),{6:Ae,9:452,10:er,22:[1,514]},a(xe,[2,27]),a(Na,[2,32]),a(xe,[2,28]),{137:[1,515]},{97:[1,516],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Ca,[2,270]),{12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:517,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,119:518,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(ha,[2,278]),{6:Ae,9:520,10:er,11:kr,132:519},{90:[1,521],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{90:[1,522],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(ba,[2,89]),{32:k,51:[1,524],61:116,62:E,63:525,64:A,65:117,66:S,89:[1,526],99:523},{5:527,10:s},{50:382,51:l,89:He,96:$a,150:376,167:528,168:377,169:378,170:ma,171:Fa,172:Ba},{13:529,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(cr,[2,192]),a(cr,[2,193]),a(cr,[2,194]),{5:530,10:s},a([1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,227,228,229,238,239,242,243,246,247,248],[2,243]),{15:251,32:k,50:252,51:l,52:255,53:$,54:i,55:256,56:T,57:253,58:w,61:116,62:E,63:254,64:A,65:117,66:S,133:531,134:250,136:sa,138:M,139:G},a([6,10,11,14],ra,{61:116,65:117,133:249,134:250,15:251,50:252,57:253,63:254,52:255,55:256,191:532,32:k,51:l,53:$,54:i,56:T,58:w,62:E,64:A,66:S,136:sa,138:M,139:G}),a(Ga,[2,246]),a(Ga,[2,139],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{13:533,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ua,[2,147]),a(xa,[2,300],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(xa,[2,302],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,
|
20
|
+
214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Va,[2,323]),{13:534,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:535,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:536,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a([1,6,11,14,22,71,90,97,106,112,135,137,147,200,201,213,220,229,238],[2,257],{218:108,222:109,211:149,217:150,5:537,10:s,126:ue,171:pe,212:ce,214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(ua,[2,128],{5:538,10:s}),a(Ta,[2,66]),{21:[1,539],162:540,164:ja,165:Xa},{14:sr,22:[1,541]},a(he,[2,177]),a(he,[2,178]),a(Ka,[2,176]),a([1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,212,213,214,219,220,229,238,239],[2,346],{218:108,222:109,211:149,217:150,126:ue,171:pe,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{112:[2,274],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(he,[2,137]),{11:$r},a(he,[2,283]),a(he,[2,363]),a(za,[2,340]),a([1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,207,212,213,214,219,220,229,238,239,242,243,246,247,248],[2,295]),a(he,[2,331]),{5:543,10:s},{11:[1,544]},a(Za,[2,337],{6:[1,545]}),{13:546,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,97]),{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,119:547,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,119:548,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(pa,[2,114]),{114:549,116:Ia},{90:[1,550],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Ke,[2,105]),{90:[1,551],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{90:[1,552],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(pa,[2,117]),a(pa,[2,118],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(he,[2,98]),a(he,[2,158]),a(Ve,[2,266]),a(Ve,[2,298]),a(Ve,[2,273]),a(ha,[2,279]),a(rr,_a,{115:553,14:Da}),a(ha,[2,280]),{11:$r,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:517,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(ba,[2,83]),a(ba,[2,84]),{97:[1,554]},{97:[2,93]},{97:[2,94]},{13:555,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ve,[2,155]),a(cr,[2,188]),a(cr,[2,195],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{90:[1,556]},a(Ga,[2,247]),a(rr,_a,{115:557,14:Ma}),{6:Ae,9:491,11:kr,126:ue,132:558,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a([1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,212,213,214,219,220,238],[2,326],{218:108,222:109,211:149,217:150,126:ue,171:pe,229:[1,559],239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(tr,[2,328],{218:108,222:109,211:149,217:150,126:ue,171:pe,213:[1,560],239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Sa,[2,327],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(he,[2,258]),a(he,[2,129]),a(br,fa,{167:375,150:376,168:377,169:378,50:382,146:561,51:l,89:He,96:$a,170:ma,171:Fa,172:Ba}),a(he,[2,169]),{162:562,164:ja,165:Xa},a(he,[2,282]),{6:Ae,9:491,11:kr,132:563},a(he,[2,334]),a(Za,[2,338]),a(lr,[2,289],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(ir,_a,{115:565,11:[1,564],14:Da}),a(ir,_a,{115:565,14:Da,22:[1,566]}),a(pa,[2,115]),a(Ke,[2,107]),a(Ke,[2,108]),a(Ke,[2,111]),{6:Ae,9:520,10:er,11:kr,132:567},a(ba,[2,90]),{90:[1,568],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Ve,[2,156]),{6:Ae,9:570,10:nr,11:kr,132:569},a(Ga,[2,140]),{13:571,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:572,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{14:sr,22:[1,573]},a(he,[2,170]),a(he,[2,332]),a(he,[2,119]),{6:Ae,9:452,10:er},a(he,[2,120]),a(ha,[2,281]),{97:[2,95]},a(Ga,[2,248]),{11:$r,15:251,32:k,50:252,51:l,52:255,53:$,54:i,55:256,56:T,57:253,58:w,61:116,62:E,63:254,64:A,65:117,66:S,133:531,134:250,136:sa,138:M,139:G},a(Sa,[2,329],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Sa,[2,330],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{162:574,164:ja,165:Xa},a(he,[2,168])],defaultActions:{135:[2,3],163:[2,264],324:[2,242],524:[2,93],525:[2,94],568:[2,95]},parseError:function(e,a){if(!a.recoverable)throw new Error(e);this.trace(e)},parse:function(e){function a(e){c.length=c.length-2*e,n.length=n.length-e}function r(){function e(e){for(var a=c.length-1,r=0;;){if(k.toString()in t[e])return r;if(0===e||2>a)return!1;a-=2,e=c[a],++r}}var r,n="";if(b)w!==l&&(r=e(d));else{r=e(d),O=[];var i=$.yytext,A=s.terminals_[T]||T,S=i?i._loc:-1,R=-1!=S?"["+i._loc+":"+i._len+"]":"[0:0]";n=$.showPosition?"Parse error at "+R+":\n"+$.showPosition()+"\nExpecting "+O.join(", ")+", got '"+(s.terminals_[T]||T)+"'":"Parse error at "+R+": Unexpected "+(T==l?"end of input":"'"+A+"'"),s.parseError(n,{lexer:$,text:$.match,token:A,line:$.yylineno,expected:O,recoverable:r!==!1})}if(3==b){if(T===l||w===l)throw new Error(n||"Parsing halted while starting to recover from another error.");o=$.yytext}if(r===!1)throw new Error(n||"Parsing halted. No suitable error recovery rule available.");a(r),w=T==k?null:T,T=k,d=c[c.length-1],E=t[d]&&t[d][k],b=3}var s=this,c=[0],n=[null],t=this.table,o="",b=0,k=2,l=1,$=Object.create(this.lexer),i=this.yy;$.setInput(e,i),"function"==typeof i.parseError?this.parseError=i.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var T,w,d,E,A,S,R,O,u={},p=this.symbols_,I=this.productions_;;)switch(d=c[c.length-1],(null===T||"undefined"==typeof T)&&(T=p[$.lex()]||l),E=t[d]&&t[d][T],"undefined"!=typeof E&&E.length&&E[0]||r(),E[0]){case 1:c.push(T),c.push(E[1]),n.push($.yytext),T=null,w?(T=w,w=null):(o=$.yytext,b>0&&b--);break;case 2:if(S=I[E[1]][1],u.$=n[n.length-S],A=this.performAction(u,o,i,E[1],n),"undefined"!=typeof A)return A;for(;S>0;)c.pop(),c.pop(),n.pop(),S--;c.push(I[E[1]][0]),R=t[c[c.length-2]][c[c.length-1]],c.push(R),n.push(u.$);break;case 3:return!0}return!0}};return e.prototype=Tr,Tr.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=parser,exports.Parser=parser.Parser,exports.parse=function(){return parser.parse.apply(parser,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var a=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(a)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1)));
|
21
|
+
}).call(this,require('_process'))
|
22
|
+
},{"_process":16,"fs":10,"path":15}],7:[function(require,module,exports){
|
23
|
+
!function(){function e(e,t){return t&&t.indexOf?t.indexOf(e):[].indexOf.call(e,t)}function t(e){return e?e.toArray?e.toArray():e:[]}function n(){}var r,T,o=require("./token");o.Token;exports.Rewriter=n,n.prototype.tokens=function(){return this._tokens},n.prototype.rewrite=function(e,t){var n;void 0===t&&(t={}),this._tokens=e,this._options=t,t.profile&&console.time("tokenize:rewrite");for(var r=0;n=e[r];){var T=e[r+1];"DEF_BODY"==n._type&&T&&"TERMINATOR"==T._type&&(n._type="DEF_EMPTY"),r++}return this.step("ensureFirstLine"),this.step("removeLeadingNewlines"),this.step("removeMidExpressionNewlines"),this.step("tagDefArguments"),this.step("closeOpenCalls"),this.step("closeOpenIndexes"),this.step("closeOpenTags"),this.step("closeOpenTagAttrLists"),this.step("addImplicitIndentation"),this.step("tagPostfixConditionals"),this.step("addImplicitBraces"),this.step("addImplicitParentheses"),t.profile&&console.timeEnd("tokenize:rewrite"),this._tokens},n.prototype.step=function(e){this._options.profile&&(console.log("---- starting "+e+" ---- "),console.time(e)),this[e](),this._options.profile&&(console.timeEnd(e),console.log("\n\n"))},n.prototype.scanTokens=function(e){for(var t,n=this._tokens,r=0;t=n[r];)r+=e.call(this,t,r,n);return!0},n.prototype.detectEnd=function(e,t,n){for(var r,T,i=this._tokens,s=0,p=[];r=i[e];){if(0==s&&t.call(this,r,e,p))return n.call(this,r,e);if(!r||0>s)return n.call(this,r,e-1);T=o.typ(r),c.indexOf(T)>=0?(0==s&&p.push(e),s+=1):a.indexOf(T)>=0&&(s-=1),e+=1}return e-1},n.prototype.ensureFirstLine=function(){var e=this._tokens[0];"TERMINATOR"==o.typ(e)&&(this._tokens=[o.token("BODYSTART","BODYSTART")].concat(this._tokens))},n.prototype.removeLeadingNewlines=function(){for(var e=0,n=0,r=t(this._tokens),T=r.length;T>n;n++)if("TERMINATOR"!=o.typ(r[n])){e=n;break}e&&this._tokens.splice(0,e)},n.prototype.removeMidExpressionNewlines=function(){var e=this;return e.scanTokens(function(t,n,r){var T=e.tokenType(n+1);return"TERMINATOR"==o.typ(t)&&u.indexOf(T)>=0?"OUTDENT"==T?1:(r.splice(n,1),0):1})},n.prototype.tagDefArguments=function(){return!0},n.prototype.closeOpenCalls=function(){var e=this,t=function(t,n){var r=o.typ(t);return")"==r||"CALL_END"==r||"OUTDENT"==r&&")"==e.tokenType(n-1)},n=function(t,n){var r=o.typ(t),T=e._tokens["OUTDENT"==r?n-1:n];return o.setTyp(T,"CALL_END")};return e.scanTokens(function(r,T){return"CALL_START"==o.typ(r)&&e.detectEnd(T+1,t,n),1})},n.prototype.closeOpenIndexes=function(){var t=this,n=function(t,n){return e(o.typ(t),["]","INDEX_END"])>=0},r=function(e,t){return o.setTyp(e,"INDEX_END")};return t.scanTokens(function(e,T){return"INDEX_START"==o.typ(e)&&t.detectEnd(T+1,n,r),1})},n.prototype.closeOpenTagAttrLists=function(){var t=this,n=function(t,n){return e(o.typ(t),[")","TAG_ATTRS_END"])>=0},r=function(e,t){return o.setTyp(e,"TAG_ATTRS_END")};return t.scanTokens(function(e,T){return"TAG_ATTRS_START"==o.typ(e)&&t.detectEnd(T+1,n,r),1})},n.prototype.closeOpenTags=function(){var t=this,n=function(t,n){return e(o.typ(t),[">","TAG_END"])>=0},r=function(e,t){return o.setTyp(e,"TAG_END")};return t.scanTokens(function(e,T){return"TAG_START"==o.typ(e)&&t.detectEnd(T+1,n,r),1})},n.prototype.addImplicitCommas=function(){},n.prototype.addImplicitBlockCalls=function(){for(var e,t=1,n=this._tokens;e=n[t];){var r=e._type,T=e._value;"DO"!=r||"INDEX_END"!=T&&"IDENTIFIER"!=T&&"NEW"!=T||(n.splice(t+1,0,o.token("CALL_END",")")),n.splice(t+1,0,o.token("CALL_START","(")),t++),t++}},n.prototype.addImplicitBraces=function(){var e=this,t=[],n=null,r=["IF","TERNARY","FOR"],T=function(t,n){return e._tokens.splice(n,0,o.LBRACKET)},i=function(t,n){return e._tokens.splice(n,0,o.RBRACKET)},s=function(e,t){return[e,t]};return e.scanTokens(function(p,E,N){var A,R=o.typ(p),u=o.val(p),f=t[t.length-1]||[];if(r.indexOf(R)>=0)return t.push(s(R,E)),1;if("?"==u)return t.push(s("TERNARY",E)),1;if(c.indexOf(R)>=0)return"INDENT"==R&&r.indexOf(f[0])>=0&&t.pop(),"INDENT"==R&&"{"==e.tokenType(E-1)?t.push(s("{",E)):t.push(s(R,E)),1;if(a.indexOf(R)>=0)return"TERNARY"==f[0]&&t.pop(),n=t.pop(),n||console.log("NO STACK!!"),n[2]=E,"{"==n[0]&&n.generated?(i(p,E),1):1;if("TERNARY"==f[0]&&("TERMINATOR"==R||"OUTDENT"==R))return t.pop(),1;if(r.indexOf(f[0])>=0&&"INDENT"==R)return console.log("popping noBraceContext"),t.pop(),1;if(","==R)return"{"==f[0]&&f.generated?(N.splice(E,0,o.RBRACKET),t.pop(),2):1;if(":"==R&&"{"!=f[0]&&"TERNARY"!=f[0]&&-1==r.indexOf(f[0])){for(A=n&&n[2]==E-1?n[1]-1:E-2;"HERECOMMENT"==e.tokenType(A-1);)A-=2;var _=N[A-1];if(_&&"}"==o.typ(_)&&_.generated){N.splice(A-1,1);var O=s("{");return O.generated=!0,t.push(O),0}return _&&","==o.typ(_)&&"}"==e.tokenType(A-2)?(N.splice(A-2,1),O=s("{"),O.generated=!0,t.push(O),0):(O=s("{"),O.generated=!0,t.push(O),T(p,A+1),2)}if("DO"==R){var I=o.typ(N[E-1]);if(["NUMBER","STRING","REGEX","SYMBOL","]","}",")","STRING_END"].indexOf(I)>=0){var D=o.token(",",",");if(D.generated=!0,N.splice(E,0,D),f.generated)return i(p,E),t.pop(),2}}return"TERMINATOR"!=R&&"OUTDENT"!=R&&"DEF_BODY"!=R||!f.generated?1:(i(p,E),t.pop(),2)})},n.prototype.addImplicitParentheses=function(){for(var e,t=this,n=["CLASS","IF","UNLESS","TAG","WHILE","FOR","UNTIL","CATCH","FINALLY","MODULE","LEADING_WHEN"],r=function(e,n){return t._tokens.splice(n,0,o.token("CALL_END",")"))},T=t._tokens,i=!1,s=!1,p=!1,E=0;e=T[E];){var N=e._type,A=T[E-1],R=(T[E],T[E+1]),c=A&&A._type,a=R&&R._type;")"!=c&&"]"!=c||"INDENT"!=N||(i=!0),n.indexOf(c)>=0&&(p=!0,i=!0,"FOR"==c&&(s=!0));var u=!1,l=!1;if(!i&&"INDENT"==N&&R){var d=c&&f.indexOf(c)>=0,S=a&&_.indexOf(a)>=0;u=(R.generated&&"{"==a||S)&&d,l=S&&d}var L=!1,y=!1;if(("TERMINATOR"==N||"OUTDENT"==N||"INDENT"==N)&&(p=!1,i=!1),"?"==N&&A&&!A.spaced&&(e.call=!0),e.fromThen)E+=1;else if(u||l||A&&A.spaced&&(A.call||f.indexOf(c)>=0)&&(_.indexOf(N)>=0||!e.spaced&&!e.newLine&&O.indexOf(N)>=0)){T.splice(E,0,o.token("CALL_START","("));var h=function(e,n){var r=o.typ(e);if(!L&&e.fromThen)return!0;var i="IF"==r||"UNLESS"==r||"ELSE"==r;(i||"CATCH"==r)&&(L=!0),(i||"SWITCH"==r||"TRY"==r)&&(y=!0);var E=t.tokenType(n-1);if(("."==r||"?."==r||"::"==r)&&"OUTDENT"==E)return!0;if(p&&("INDENT"==r||"TERMINATOR"==r))return!0;if(("WHEN"==r||"BY"==r)&&!s)return!1;var N=T[n+1],A=N&&o.typ(N);return!e.generated&&","!=E&&(D.indexOf(r)>=0||"INDENT"==r&&!y||"DOS"==r&&"="!=E)&&("INDENT"!=r||"CLASS"!=t.tokenType(n-2)&&-1==I.indexOf(E)&&!(N&&(N.generated&&"{"==A||_.indexOf(A)>=0)))};t.detectEnd(E+1,h,r),"?"==o.typ(A)&&o.setTyp(A,"FUNC_EXIST"),E+=2,p=!1,i=!1,s=!1}else E+=1}},n.prototype.addImplicitIndentation=function(){for(var t,n=this,r=0,T=n._tokens;t=T[r];){var i=o.typ(t),s=n.tokenType(r+1);if("TERMINATOR"!=i||"THEN"!=s)if("CATCH"==i&&e(n.tokenType(r+2),["OUTDENT","TERMINATOR","FINALLY"])>=0)T.splice.apply(T,[].concat([r+2,0],[].slice.call(n.indentation(t)))),r+=4;else{if(l.indexOf(i)>=0&&"INDENT"!=s&&"BLOCK_PARAM_START"!=s&&("ELSE"!=i||"IF"!=s)&&"ELIF"!=i){var p=i,E=o.token("INDENT","2"),N=o.OUTDENT;"THEN"==p&&(E.fromThen=!0),E.generated=!0,T.splice(r+1,0,E);var A=function(e,t){var n=o.typ(e);return";"!=o.val(e)&&d.indexOf(n)>=0&&!("ELSE"==n&&"IF"!=p&&"THEN"!=p)},R=function(e,t){var r=","==n.tokenType(t-1)?t-1:t;return T.splice(r,0,N)};n.detectEnd(r+2,A,R),"THEN"==i&&T.splice(r,1)}r++}else T.splice(r,1)}},n.prototype.tagPostfixConditionals=function(){var t=this,n=function(t,n){return e(o.typ(t),["TERMINATOR","INDENT"])>=0};return t.scanTokens(function(e,r){var T=o.typ(e);if("IF"!=T&&"FOR"!=T)return 1;var i=e;return t.detectEnd(r+1,n,function(e,t){return"INDENT"!=o.typ(e)?o.setTyp(i,"POST_"+o.typ(i)):void 0}),1})},n.prototype.indentation=function(e){return[o.token("INDENT","2"),o.token("OUTDENT","2")]},n.prototype.type=function(e){var t=this._tokens[e];return t&&o.typ(t)},n.prototype.tokenType=function(e){var t=this._tokens[e];return t&&o.typ(t)};var i=[["(",")"],["[","]"],["{","}"],["{{","}}"],["INDENT","OUTDENT"],["CALL_START","CALL_END"],["PARAM_START","PARAM_END"],["INDEX_START","INDEX_END"],["TAG_START","TAG_END"],["TAG_PARAM_START","TAG_PARAM_END"],["TAG_ATTRS_START","TAG_ATTRS_END"],["BLOCK_PARAM_START","BLOCK_PARAM_END"]];module.exports.INVERSES=r={};for(var s,p=0,E=t(i),N=E.length;N>p;p++){s=E[p];var A=s[0],R=s[1];r[R]=A,r[A]=R}var c=["(","[","{","INDENT","CALL_START","PARAM_START","INDEX_START","TAG_PARAM_START","BLOCK_PARAM_START","STRING_START","{{","TAG_START"],a=[")","]","}","OUTDENT","CALL_END","PARAM_END","INDEX_END","TAG_PARAM_END","BLOCK_PARAM_END","STRING_END","}}","TAG_END"],u=["CATCH","WHEN","ELSE","FINALLY"].concat(a),f=["IDENTIFIER","SUPER","@","THIS","SELF","EVENT","TRIGGER","TAG_END","IVAR","GVAR","CONST","ARGVAR","NEW","BREAK","CONTINUE","RETURN"],_=["SELECTOR","IDENTIFIER","NUMBER","STRING","SYMBOL","JS","REGEX","NEW","PARAM_START","CLASS","IF","UNLESS","TRY","SWITCH","THIS","BOOL","TRUE","FALSE","NULL","UNDEFINED","UNARY","SUPER","IVAR","GVAR","CONST","ARGVAR","SELF","@","[","(","{","--","++","SELECTOR","TAG_START","TAGID","#","SELECTOR_START","IDREF","SPLAT","DO","BLOCK_ARG","FOR","STRING_START","CONTINUE","BREAK"],O=["+","-"],I=["{","[",",","BLOCK_PARAM_END","DO"],D=["POST_IF","POST_UNLESS","POST_FOR","WHILE","UNTIL","WHEN","BY","LOOP","TERMINATOR","DEF_BODY","DEF_FRAGMENT"],l=["ELSE","TRY","FINALLY","THEN","BLOCK_PARAM_END","DO","BEGIN","CATCH_VAR"],d=["TERMINATOR","CATCH","FINALLY","ELSE","OUTDENT","LEADING_WHEN"];return T=["TERMINATOR","INDENT","OUTDENT"]}();
|
24
|
+
},{"./token":9}],8:[function(require,module,exports){
|
25
|
+
(function (Buffer){
|
26
|
+
!function(){function t(t){return t?t.toArray?t.toArray():t:[]}function e(t){this._source=t,this._maps=[],this._map="",this._js=""}var o=require("path"),r=require("./helpers");return exports.SourceMap=e,e.prototype.source=function(){return this._source},e.prototype.options=function(){return this._source},e.prototype.filename=function(){return this.options().options.filename},e.prototype.sourceCode=function(){return this.options().options._source},e.prototype.targetPath=function(){return this.options().options.targetPath},e.prototype.sourcePath=function(){return this.options().options.sourcePath},e.prototype.sourceName=function(){return o.basename(this.sourcePath())},e.prototype.targetName=function(){return o.basename(this.targetPath())},e.prototype.sourceFiles=function(){return[this.sourceName()]},e.prototype.parse=function(){var e=this,o=/\%\$(\d*)\$\%/,s=/^(.*?)\%\$(\d*)\$\%/,n=this.options().js.split(/\n/g),i=r.locationToLineColMap(this.sourceCode());this._maps=[];for(var a,p=0,u=t(n),c=u.length;c>p;p++){a=u[p];var h=0;for(this._maps[p]=[];a.match(o);)a=a.replace(s,function(t,o,r){var s=i[parseInt(r)];h=o.length;var n=[[s[0],s[1]],[p,h]];return e._maps[p].push(n),o});n[p]=a}return e.source().js=n.join("\n"),e},e.prototype.generate=function(){this.parse();for(var e=0,r=0,s=0,n="",i=0,a=t(this._maps),p=a.length;p>i;i++){e=0;for(var u,c=0,h=t(a[i]),f=h.length;f>c;c++){u=h[c],0!=c&&(n+=",");var _=u[0],l=u[1];n+=this.encodeVlq(l[1]-e),e=l[1],n+=this.encodeVlq(0),n+=this.encodeVlq(_[0]-r),r=_[0],n+=this.encodeVlq(_[1]-s),s=_[1]}n+=";"}var m=o.relative(o.dirname(this.targetPath()),this.sourcePath()),y={version:3,file:this.sourceName().replace(/\.imba/,".js")||"",sourceRoot:this.options().sourceRoot||"",sources:[m],sourcesContent:[this.sourceCode()],names:[],mappings:n};this.options().sourcemap=y;var g=new Buffer(JSON.stringify(y)).toString("base64");return this.source().js+="\n//# sourceMappingURL=data:application/json;base64,"+g,this},VLQ_SHIFT=5,VLQ_CONTINUATION_BIT=1<<VLQ_SHIFT,VLQ_VALUE_MASK=VLQ_CONTINUATION_BIT-1,BASE64_CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e.prototype.encodeVlq=function(t){for(var e,o="",r=0>t?1:0,s=(Math.abs(t)<<1)+r;s||!o;)e=s&VLQ_VALUE_MASK,s>>=VLQ_SHIFT,s&&(e|=VLQ_CONTINUATION_BIT),o+=this.encodeBase64(e);return o},e.prototype.encodeBase64=function(t){return BASE64_CHARS[t]},e}();
|
27
|
+
}).call(this,require("buffer").Buffer)
|
28
|
+
},{"./helpers":3,"buffer":11,"path":15}],9:[function(require,module,exports){
|
29
|
+
!function(){function t(t,e,n,r){return this._type=t,this._value=e,this._loc=null!=n?n:-1,this._len=r||0,this._meta=null,this.generated=!1,this.newLine=!1,this.spaced=!1,this}function e(){var t,e=this.tokens[this.pos++];return e?(t=e._type,this.yytext=e):t="",t}function n(e,n){return new t(e,n,-1,0)}function r(t){return t._type}function o(t){return t._value}function u(t){return t._line}function i(t){return t._loc}function s(t,e){return t._type=e}function p(t,e){return t._value=e}function l(t,e){return t._line=e}function c(t,e){return t._loc=e}var a,h,_,f,x,y,v;module.exports.TOK=a={};var T=(a.TERMINATOR=1,a.IDENTIFIER=2);T=a.IVAR=2;a.CONST=3,a.VAR=4,a.IF=5,a.ELSE=6,a.DEF=7;return exports.Token=t,t.prototype.type=function(){return this._type},t.prototype.value=function(){return this._value},t.prototype.traverse=function(){},t.prototype.c=function(){return""+this._value},t.prototype.toString=function(){return this._value},t.prototype.charAt=function(t){return this._value.charAt(t)},t.prototype.slice=function(t){return this._value.slice(t)},t.prototype.region=function(){return[this._loc,this._loc+(this._len||this._value.length)]},t.prototype.sourceMapMarker=function(){return-1==this._loc?":":"%$"+this._loc+"$%"},exports.lex=e,exports.token=n,exports.typ=r,exports.val=o,exports.line=u,exports.loc=i,exports.setTyp=s,exports.setVal=p,exports.setLine=l,exports.setLoc=c,module.exports.LBRACKET=h=new t("{","{",0,0,0),module.exports.RBRACKET=_=new t("}","}",0,0,0),module.exports.LPAREN=f=new t("(","(",0,0,0),module.exports.RPAREN=x=new t(")",")",0,0,0),h.generated=!0,_.generated=!0,f.generated=!0,x.generated=!0,module.exports.INDENT=y=new t("INDENT","2",0,0,0),module.exports.OUTDENT=v=new t("OUTDENT","2",0,0,0)}();
|
30
|
+
},{}],10:[function(require,module,exports){
|
31
|
+
|
32
|
+
},{}],11:[function(require,module,exports){
|
33
|
+
/*!
|
34
|
+
* The buffer module from node.js, for the browser.
|
35
|
+
*
|
36
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
37
|
+
* @license MIT
|
38
|
+
*/
|
39
|
+
|
40
|
+
var base64 = require('base64-js')
|
41
|
+
var ieee754 = require('ieee754')
|
42
|
+
var isArray = require('is-array')
|
43
|
+
|
44
|
+
exports.Buffer = Buffer
|
45
|
+
exports.SlowBuffer = SlowBuffer
|
46
|
+
exports.INSPECT_MAX_BYTES = 50
|
47
|
+
Buffer.poolSize = 8192 // not used by this implementation
|
48
|
+
|
49
|
+
var rootParent = {}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* If `Buffer.TYPED_ARRAY_SUPPORT`:
|
53
|
+
* === true Use Uint8Array implementation (fastest)
|
54
|
+
* === false Use Object implementation (most compatible, even IE6)
|
55
|
+
*
|
56
|
+
* Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
|
57
|
+
* Opera 11.6+, iOS 4.2+.
|
58
|
+
*
|
59
|
+
* Due to various browser bugs, sometimes the Object implementation will be used even
|
60
|
+
* when the browser supports typed arrays.
|
61
|
+
*
|
62
|
+
* Note:
|
63
|
+
*
|
64
|
+
* - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
|
65
|
+
* See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
|
66
|
+
*
|
67
|
+
* - Safari 5-7 lacks support for changing the `Object.prototype.constructor` property
|
68
|
+
* on objects.
|
69
|
+
*
|
70
|
+
* - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
|
71
|
+
*
|
72
|
+
* - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
|
73
|
+
* incorrect length in some situations.
|
74
|
+
|
75
|
+
* We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
|
76
|
+
* get the Object implementation, which is slower but behaves correctly.
|
77
|
+
*/
|
78
|
+
Buffer.TYPED_ARRAY_SUPPORT = (function () {
|
79
|
+
function Bar () {}
|
80
|
+
try {
|
81
|
+
var arr = new Uint8Array(1)
|
82
|
+
arr.foo = function () { return 42 }
|
83
|
+
arr.constructor = Bar
|
84
|
+
return arr.foo() === 42 && // typed array instances can be augmented
|
85
|
+
arr.constructor === Bar && // constructor can be set
|
86
|
+
typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
|
87
|
+
arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
|
88
|
+
} catch (e) {
|
89
|
+
return false
|
90
|
+
}
|
91
|
+
})()
|
92
|
+
|
93
|
+
function kMaxLength () {
|
94
|
+
return Buffer.TYPED_ARRAY_SUPPORT
|
95
|
+
? 0x7fffffff
|
96
|
+
: 0x3fffffff
|
97
|
+
}
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Class: Buffer
|
101
|
+
* =============
|
102
|
+
*
|
103
|
+
* The Buffer constructor returns instances of `Uint8Array` that are augmented
|
104
|
+
* with function properties for all the node `Buffer` API functions. We use
|
105
|
+
* `Uint8Array` so that square bracket notation works as expected -- it returns
|
106
|
+
* a single octet.
|
107
|
+
*
|
108
|
+
* By augmenting the instances, we can avoid modifying the `Uint8Array`
|
109
|
+
* prototype.
|
110
|
+
*/
|
111
|
+
function Buffer (arg) {
|
112
|
+
if (!(this instanceof Buffer)) {
|
113
|
+
// Avoid going through an ArgumentsAdaptorTrampoline in the common case.
|
114
|
+
if (arguments.length > 1) return new Buffer(arg, arguments[1])
|
115
|
+
return new Buffer(arg)
|
116
|
+
}
|
117
|
+
|
118
|
+
this.length = 0
|
119
|
+
this.parent = undefined
|
120
|
+
|
121
|
+
// Common case.
|
122
|
+
if (typeof arg === 'number') {
|
123
|
+
return fromNumber(this, arg)
|
124
|
+
}
|
125
|
+
|
126
|
+
// Slightly less common case.
|
127
|
+
if (typeof arg === 'string') {
|
128
|
+
return fromString(this, arg, arguments.length > 1 ? arguments[1] : 'utf8')
|
129
|
+
}
|
130
|
+
|
131
|
+
// Unusual.
|
132
|
+
return fromObject(this, arg)
|
133
|
+
}
|
134
|
+
|
135
|
+
function fromNumber (that, length) {
|
136
|
+
that = allocate(that, length < 0 ? 0 : checked(length) | 0)
|
137
|
+
if (!Buffer.TYPED_ARRAY_SUPPORT) {
|
138
|
+
for (var i = 0; i < length; i++) {
|
139
|
+
that[i] = 0
|
140
|
+
}
|
141
|
+
}
|
142
|
+
return that
|
143
|
+
}
|
144
|
+
|
145
|
+
function fromString (that, string, encoding) {
|
146
|
+
if (typeof encoding !== 'string' || encoding === '') encoding = 'utf8'
|
147
|
+
|
148
|
+
// Assumption: byteLength() return value is always < kMaxLength.
|
149
|
+
var length = byteLength(string, encoding) | 0
|
150
|
+
that = allocate(that, length)
|
151
|
+
|
152
|
+
that.write(string, encoding)
|
153
|
+
return that
|
154
|
+
}
|
155
|
+
|
156
|
+
function fromObject (that, object) {
|
157
|
+
if (Buffer.isBuffer(object)) return fromBuffer(that, object)
|
158
|
+
|
159
|
+
if (isArray(object)) return fromArray(that, object)
|
160
|
+
|
161
|
+
if (object == null) {
|
162
|
+
throw new TypeError('must start with number, buffer, array or string')
|
163
|
+
}
|
164
|
+
|
165
|
+
if (typeof ArrayBuffer !== 'undefined') {
|
166
|
+
if (object.buffer instanceof ArrayBuffer) {
|
167
|
+
return fromTypedArray(that, object)
|
168
|
+
}
|
169
|
+
if (object instanceof ArrayBuffer) {
|
170
|
+
return fromArrayBuffer(that, object)
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
if (object.length) return fromArrayLike(that, object)
|
175
|
+
|
176
|
+
return fromJsonObject(that, object)
|
177
|
+
}
|
178
|
+
|
179
|
+
function fromBuffer (that, buffer) {
|
180
|
+
var length = checked(buffer.length) | 0
|
181
|
+
that = allocate(that, length)
|
182
|
+
buffer.copy(that, 0, 0, length)
|
183
|
+
return that
|
184
|
+
}
|
185
|
+
|
186
|
+
function fromArray (that, array) {
|
187
|
+
var length = checked(array.length) | 0
|
188
|
+
that = allocate(that, length)
|
189
|
+
for (var i = 0; i < length; i += 1) {
|
190
|
+
that[i] = array[i] & 255
|
191
|
+
}
|
192
|
+
return that
|
193
|
+
}
|
194
|
+
|
195
|
+
// Duplicate of fromArray() to keep fromArray() monomorphic.
|
196
|
+
function fromTypedArray (that, array) {
|
197
|
+
var length = checked(array.length) | 0
|
198
|
+
that = allocate(that, length)
|
199
|
+
// Truncating the elements is probably not what people expect from typed
|
200
|
+
// arrays with BYTES_PER_ELEMENT > 1 but it's compatible with the behavior
|
201
|
+
// of the old Buffer constructor.
|
202
|
+
for (var i = 0; i < length; i += 1) {
|
203
|
+
that[i] = array[i] & 255
|
204
|
+
}
|
205
|
+
return that
|
206
|
+
}
|
207
|
+
|
208
|
+
function fromArrayBuffer (that, array) {
|
209
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
210
|
+
// Return an augmented `Uint8Array` instance, for best performance
|
211
|
+
array.byteLength
|
212
|
+
that = Buffer._augment(new Uint8Array(array))
|
213
|
+
} else {
|
214
|
+
// Fallback: Return an object instance of the Buffer class
|
215
|
+
that = fromTypedArray(that, new Uint8Array(array))
|
216
|
+
}
|
217
|
+
return that
|
218
|
+
}
|
219
|
+
|
220
|
+
function fromArrayLike (that, array) {
|
221
|
+
var length = checked(array.length) | 0
|
222
|
+
that = allocate(that, length)
|
223
|
+
for (var i = 0; i < length; i += 1) {
|
224
|
+
that[i] = array[i] & 255
|
225
|
+
}
|
226
|
+
return that
|
227
|
+
}
|
228
|
+
|
229
|
+
// Deserialize { type: 'Buffer', data: [1,2,3,...] } into a Buffer object.
|
230
|
+
// Returns a zero-length buffer for inputs that don't conform to the spec.
|
231
|
+
function fromJsonObject (that, object) {
|
232
|
+
var array
|
233
|
+
var length = 0
|
234
|
+
|
235
|
+
if (object.type === 'Buffer' && isArray(object.data)) {
|
236
|
+
array = object.data
|
237
|
+
length = checked(array.length) | 0
|
238
|
+
}
|
239
|
+
that = allocate(that, length)
|
240
|
+
|
241
|
+
for (var i = 0; i < length; i += 1) {
|
242
|
+
that[i] = array[i] & 255
|
243
|
+
}
|
244
|
+
return that
|
245
|
+
}
|
246
|
+
|
247
|
+
function allocate (that, length) {
|
248
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
249
|
+
// Return an augmented `Uint8Array` instance, for best performance
|
250
|
+
that = Buffer._augment(new Uint8Array(length))
|
251
|
+
} else {
|
252
|
+
// Fallback: Return an object instance of the Buffer class
|
253
|
+
that.length = length
|
254
|
+
that._isBuffer = true
|
255
|
+
}
|
256
|
+
|
257
|
+
var fromPool = length !== 0 && length <= Buffer.poolSize >>> 1
|
258
|
+
if (fromPool) that.parent = rootParent
|
259
|
+
|
260
|
+
return that
|
261
|
+
}
|
262
|
+
|
263
|
+
function checked (length) {
|
264
|
+
// Note: cannot use `length < kMaxLength` here because that fails when
|
265
|
+
// length is NaN (which is otherwise coerced to zero.)
|
266
|
+
if (length >= kMaxLength()) {
|
267
|
+
throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
|
268
|
+
'size: 0x' + kMaxLength().toString(16) + ' bytes')
|
269
|
+
}
|
270
|
+
return length | 0
|
271
|
+
}
|
272
|
+
|
273
|
+
function SlowBuffer (subject, encoding) {
|
274
|
+
if (!(this instanceof SlowBuffer)) return new SlowBuffer(subject, encoding)
|
275
|
+
|
276
|
+
var buf = new Buffer(subject, encoding)
|
277
|
+
delete buf.parent
|
278
|
+
return buf
|
279
|
+
}
|
280
|
+
|
281
|
+
Buffer.isBuffer = function isBuffer (b) {
|
282
|
+
return !!(b != null && b._isBuffer)
|
283
|
+
}
|
284
|
+
|
285
|
+
Buffer.compare = function compare (a, b) {
|
286
|
+
if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
|
287
|
+
throw new TypeError('Arguments must be Buffers')
|
288
|
+
}
|
289
|
+
|
290
|
+
if (a === b) return 0
|
291
|
+
|
292
|
+
var x = a.length
|
293
|
+
var y = b.length
|
294
|
+
|
295
|
+
var i = 0
|
296
|
+
var len = Math.min(x, y)
|
297
|
+
while (i < len) {
|
298
|
+
if (a[i] !== b[i]) break
|
299
|
+
|
300
|
+
++i
|
301
|
+
}
|
302
|
+
|
303
|
+
if (i !== len) {
|
304
|
+
x = a[i]
|
305
|
+
y = b[i]
|
306
|
+
}
|
307
|
+
|
308
|
+
if (x < y) return -1
|
309
|
+
if (y < x) return 1
|
310
|
+
return 0
|
311
|
+
}
|
312
|
+
|
313
|
+
Buffer.isEncoding = function isEncoding (encoding) {
|
314
|
+
switch (String(encoding).toLowerCase()) {
|
315
|
+
case 'hex':
|
316
|
+
case 'utf8':
|
317
|
+
case 'utf-8':
|
318
|
+
case 'ascii':
|
319
|
+
case 'binary':
|
320
|
+
case 'base64':
|
321
|
+
case 'raw':
|
322
|
+
case 'ucs2':
|
323
|
+
case 'ucs-2':
|
324
|
+
case 'utf16le':
|
325
|
+
case 'utf-16le':
|
326
|
+
return true
|
327
|
+
default:
|
328
|
+
return false
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
Buffer.concat = function concat (list, length) {
|
333
|
+
if (!isArray(list)) throw new TypeError('list argument must be an Array of Buffers.')
|
334
|
+
|
335
|
+
if (list.length === 0) {
|
336
|
+
return new Buffer(0)
|
337
|
+
}
|
338
|
+
|
339
|
+
var i
|
340
|
+
if (length === undefined) {
|
341
|
+
length = 0
|
342
|
+
for (i = 0; i < list.length; i++) {
|
343
|
+
length += list[i].length
|
344
|
+
}
|
345
|
+
}
|
346
|
+
|
347
|
+
var buf = new Buffer(length)
|
348
|
+
var pos = 0
|
349
|
+
for (i = 0; i < list.length; i++) {
|
350
|
+
var item = list[i]
|
351
|
+
item.copy(buf, pos)
|
352
|
+
pos += item.length
|
353
|
+
}
|
354
|
+
return buf
|
355
|
+
}
|
356
|
+
|
357
|
+
function byteLength (string, encoding) {
|
358
|
+
if (typeof string !== 'string') string = '' + string
|
359
|
+
|
360
|
+
var len = string.length
|
361
|
+
if (len === 0) return 0
|
362
|
+
|
363
|
+
// Use a for loop to avoid recursion
|
364
|
+
var loweredCase = false
|
365
|
+
for (;;) {
|
366
|
+
switch (encoding) {
|
367
|
+
case 'ascii':
|
368
|
+
case 'binary':
|
369
|
+
// Deprecated
|
370
|
+
case 'raw':
|
371
|
+
case 'raws':
|
372
|
+
return len
|
373
|
+
case 'utf8':
|
374
|
+
case 'utf-8':
|
375
|
+
return utf8ToBytes(string).length
|
376
|
+
case 'ucs2':
|
377
|
+
case 'ucs-2':
|
378
|
+
case 'utf16le':
|
379
|
+
case 'utf-16le':
|
380
|
+
return len * 2
|
381
|
+
case 'hex':
|
382
|
+
return len >>> 1
|
383
|
+
case 'base64':
|
384
|
+
return base64ToBytes(string).length
|
385
|
+
default:
|
386
|
+
if (loweredCase) return utf8ToBytes(string).length // assume utf8
|
387
|
+
encoding = ('' + encoding).toLowerCase()
|
388
|
+
loweredCase = true
|
389
|
+
}
|
390
|
+
}
|
391
|
+
}
|
392
|
+
Buffer.byteLength = byteLength
|
393
|
+
|
394
|
+
// pre-set for values that may exist in the future
|
395
|
+
Buffer.prototype.length = undefined
|
396
|
+
Buffer.prototype.parent = undefined
|
397
|
+
|
398
|
+
function slowToString (encoding, start, end) {
|
399
|
+
var loweredCase = false
|
400
|
+
|
401
|
+
start = start | 0
|
402
|
+
end = end === undefined || end === Infinity ? this.length : end | 0
|
403
|
+
|
404
|
+
if (!encoding) encoding = 'utf8'
|
405
|
+
if (start < 0) start = 0
|
406
|
+
if (end > this.length) end = this.length
|
407
|
+
if (end <= start) return ''
|
408
|
+
|
409
|
+
while (true) {
|
410
|
+
switch (encoding) {
|
411
|
+
case 'hex':
|
412
|
+
return hexSlice(this, start, end)
|
413
|
+
|
414
|
+
case 'utf8':
|
415
|
+
case 'utf-8':
|
416
|
+
return utf8Slice(this, start, end)
|
417
|
+
|
418
|
+
case 'ascii':
|
419
|
+
return asciiSlice(this, start, end)
|
420
|
+
|
421
|
+
case 'binary':
|
422
|
+
return binarySlice(this, start, end)
|
423
|
+
|
424
|
+
case 'base64':
|
425
|
+
return base64Slice(this, start, end)
|
426
|
+
|
427
|
+
case 'ucs2':
|
428
|
+
case 'ucs-2':
|
429
|
+
case 'utf16le':
|
430
|
+
case 'utf-16le':
|
431
|
+
return utf16leSlice(this, start, end)
|
432
|
+
|
433
|
+
default:
|
434
|
+
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
|
435
|
+
encoding = (encoding + '').toLowerCase()
|
436
|
+
loweredCase = true
|
437
|
+
}
|
438
|
+
}
|
439
|
+
}
|
440
|
+
|
441
|
+
Buffer.prototype.toString = function toString () {
|
442
|
+
var length = this.length | 0
|
443
|
+
if (length === 0) return ''
|
444
|
+
if (arguments.length === 0) return utf8Slice(this, 0, length)
|
445
|
+
return slowToString.apply(this, arguments)
|
446
|
+
}
|
447
|
+
|
448
|
+
Buffer.prototype.equals = function equals (b) {
|
449
|
+
if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
|
450
|
+
if (this === b) return true
|
451
|
+
return Buffer.compare(this, b) === 0
|
452
|
+
}
|
453
|
+
|
454
|
+
Buffer.prototype.inspect = function inspect () {
|
455
|
+
var str = ''
|
456
|
+
var max = exports.INSPECT_MAX_BYTES
|
457
|
+
if (this.length > 0) {
|
458
|
+
str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
|
459
|
+
if (this.length > max) str += ' ... '
|
460
|
+
}
|
461
|
+
return '<Buffer ' + str + '>'
|
462
|
+
}
|
463
|
+
|
464
|
+
Buffer.prototype.compare = function compare (b) {
|
465
|
+
if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
|
466
|
+
if (this === b) return 0
|
467
|
+
return Buffer.compare(this, b)
|
468
|
+
}
|
469
|
+
|
470
|
+
Buffer.prototype.indexOf = function indexOf (val, byteOffset) {
|
471
|
+
if (byteOffset > 0x7fffffff) byteOffset = 0x7fffffff
|
472
|
+
else if (byteOffset < -0x80000000) byteOffset = -0x80000000
|
473
|
+
byteOffset >>= 0
|
474
|
+
|
475
|
+
if (this.length === 0) return -1
|
476
|
+
if (byteOffset >= this.length) return -1
|
477
|
+
|
478
|
+
// Negative offsets start from the end of the buffer
|
479
|
+
if (byteOffset < 0) byteOffset = Math.max(this.length + byteOffset, 0)
|
480
|
+
|
481
|
+
if (typeof val === 'string') {
|
482
|
+
if (val.length === 0) return -1 // special case: looking for empty string always fails
|
483
|
+
return String.prototype.indexOf.call(this, val, byteOffset)
|
484
|
+
}
|
485
|
+
if (Buffer.isBuffer(val)) {
|
486
|
+
return arrayIndexOf(this, val, byteOffset)
|
487
|
+
}
|
488
|
+
if (typeof val === 'number') {
|
489
|
+
if (Buffer.TYPED_ARRAY_SUPPORT && Uint8Array.prototype.indexOf === 'function') {
|
490
|
+
return Uint8Array.prototype.indexOf.call(this, val, byteOffset)
|
491
|
+
}
|
492
|
+
return arrayIndexOf(this, [ val ], byteOffset)
|
493
|
+
}
|
494
|
+
|
495
|
+
function arrayIndexOf (arr, val, byteOffset) {
|
496
|
+
var foundIndex = -1
|
497
|
+
for (var i = 0; byteOffset + i < arr.length; i++) {
|
498
|
+
if (arr[byteOffset + i] === val[foundIndex === -1 ? 0 : i - foundIndex]) {
|
499
|
+
if (foundIndex === -1) foundIndex = i
|
500
|
+
if (i - foundIndex + 1 === val.length) return byteOffset + foundIndex
|
501
|
+
} else {
|
502
|
+
foundIndex = -1
|
503
|
+
}
|
504
|
+
}
|
505
|
+
return -1
|
506
|
+
}
|
507
|
+
|
508
|
+
throw new TypeError('val must be string, number or Buffer')
|
509
|
+
}
|
510
|
+
|
511
|
+
// `get` is deprecated
|
512
|
+
Buffer.prototype.get = function get (offset) {
|
513
|
+
console.log('.get() is deprecated. Access using array indexes instead.')
|
514
|
+
return this.readUInt8(offset)
|
515
|
+
}
|
516
|
+
|
517
|
+
// `set` is deprecated
|
518
|
+
Buffer.prototype.set = function set (v, offset) {
|
519
|
+
console.log('.set() is deprecated. Access using array indexes instead.')
|
520
|
+
return this.writeUInt8(v, offset)
|
521
|
+
}
|
522
|
+
|
523
|
+
function hexWrite (buf, string, offset, length) {
|
524
|
+
offset = Number(offset) || 0
|
525
|
+
var remaining = buf.length - offset
|
526
|
+
if (!length) {
|
527
|
+
length = remaining
|
528
|
+
} else {
|
529
|
+
length = Number(length)
|
530
|
+
if (length > remaining) {
|
531
|
+
length = remaining
|
532
|
+
}
|
533
|
+
}
|
534
|
+
|
535
|
+
// must be an even number of digits
|
536
|
+
var strLen = string.length
|
537
|
+
if (strLen % 2 !== 0) throw new Error('Invalid hex string')
|
538
|
+
|
539
|
+
if (length > strLen / 2) {
|
540
|
+
length = strLen / 2
|
541
|
+
}
|
542
|
+
for (var i = 0; i < length; i++) {
|
543
|
+
var parsed = parseInt(string.substr(i * 2, 2), 16)
|
544
|
+
if (isNaN(parsed)) throw new Error('Invalid hex string')
|
545
|
+
buf[offset + i] = parsed
|
546
|
+
}
|
547
|
+
return i
|
548
|
+
}
|
549
|
+
|
550
|
+
function utf8Write (buf, string, offset, length) {
|
551
|
+
return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
|
552
|
+
}
|
553
|
+
|
554
|
+
function asciiWrite (buf, string, offset, length) {
|
555
|
+
return blitBuffer(asciiToBytes(string), buf, offset, length)
|
556
|
+
}
|
557
|
+
|
558
|
+
function binaryWrite (buf, string, offset, length) {
|
559
|
+
return asciiWrite(buf, string, offset, length)
|
560
|
+
}
|
561
|
+
|
562
|
+
function base64Write (buf, string, offset, length) {
|
563
|
+
return blitBuffer(base64ToBytes(string), buf, offset, length)
|
564
|
+
}
|
565
|
+
|
566
|
+
function ucs2Write (buf, string, offset, length) {
|
567
|
+
return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
|
568
|
+
}
|
569
|
+
|
570
|
+
Buffer.prototype.write = function write (string, offset, length, encoding) {
|
571
|
+
// Buffer#write(string)
|
572
|
+
if (offset === undefined) {
|
573
|
+
encoding = 'utf8'
|
574
|
+
length = this.length
|
575
|
+
offset = 0
|
576
|
+
// Buffer#write(string, encoding)
|
577
|
+
} else if (length === undefined && typeof offset === 'string') {
|
578
|
+
encoding = offset
|
579
|
+
length = this.length
|
580
|
+
offset = 0
|
581
|
+
// Buffer#write(string, offset[, length][, encoding])
|
582
|
+
} else if (isFinite(offset)) {
|
583
|
+
offset = offset | 0
|
584
|
+
if (isFinite(length)) {
|
585
|
+
length = length | 0
|
586
|
+
if (encoding === undefined) encoding = 'utf8'
|
587
|
+
} else {
|
588
|
+
encoding = length
|
589
|
+
length = undefined
|
590
|
+
}
|
591
|
+
// legacy write(string, encoding, offset, length) - remove in v0.13
|
592
|
+
} else {
|
593
|
+
var swap = encoding
|
594
|
+
encoding = offset
|
595
|
+
offset = length | 0
|
596
|
+
length = swap
|
597
|
+
}
|
598
|
+
|
599
|
+
var remaining = this.length - offset
|
600
|
+
if (length === undefined || length > remaining) length = remaining
|
601
|
+
|
602
|
+
if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
|
603
|
+
throw new RangeError('attempt to write outside buffer bounds')
|
604
|
+
}
|
605
|
+
|
606
|
+
if (!encoding) encoding = 'utf8'
|
607
|
+
|
608
|
+
var loweredCase = false
|
609
|
+
for (;;) {
|
610
|
+
switch (encoding) {
|
611
|
+
case 'hex':
|
612
|
+
return hexWrite(this, string, offset, length)
|
613
|
+
|
614
|
+
case 'utf8':
|
615
|
+
case 'utf-8':
|
616
|
+
return utf8Write(this, string, offset, length)
|
617
|
+
|
618
|
+
case 'ascii':
|
619
|
+
return asciiWrite(this, string, offset, length)
|
620
|
+
|
621
|
+
case 'binary':
|
622
|
+
return binaryWrite(this, string, offset, length)
|
623
|
+
|
624
|
+
case 'base64':
|
625
|
+
// Warning: maxLength not taken into account in base64Write
|
626
|
+
return base64Write(this, string, offset, length)
|
627
|
+
|
628
|
+
case 'ucs2':
|
629
|
+
case 'ucs-2':
|
630
|
+
case 'utf16le':
|
631
|
+
case 'utf-16le':
|
632
|
+
return ucs2Write(this, string, offset, length)
|
633
|
+
|
634
|
+
default:
|
635
|
+
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
|
636
|
+
encoding = ('' + encoding).toLowerCase()
|
637
|
+
loweredCase = true
|
638
|
+
}
|
639
|
+
}
|
640
|
+
}
|
641
|
+
|
642
|
+
Buffer.prototype.toJSON = function toJSON () {
|
643
|
+
return {
|
644
|
+
type: 'Buffer',
|
645
|
+
data: Array.prototype.slice.call(this._arr || this, 0)
|
646
|
+
}
|
647
|
+
}
|
648
|
+
|
649
|
+
function base64Slice (buf, start, end) {
|
650
|
+
if (start === 0 && end === buf.length) {
|
651
|
+
return base64.fromByteArray(buf)
|
652
|
+
} else {
|
653
|
+
return base64.fromByteArray(buf.slice(start, end))
|
654
|
+
}
|
655
|
+
}
|
656
|
+
|
657
|
+
function utf8Slice (buf, start, end) {
|
658
|
+
var res = ''
|
659
|
+
var tmp = ''
|
660
|
+
end = Math.min(buf.length, end)
|
661
|
+
|
662
|
+
for (var i = start; i < end; i++) {
|
663
|
+
if (buf[i] <= 0x7F) {
|
664
|
+
res += decodeUtf8Char(tmp) + String.fromCharCode(buf[i])
|
665
|
+
tmp = ''
|
666
|
+
} else {
|
667
|
+
tmp += '%' + buf[i].toString(16)
|
668
|
+
}
|
669
|
+
}
|
670
|
+
|
671
|
+
return res + decodeUtf8Char(tmp)
|
672
|
+
}
|
673
|
+
|
674
|
+
function asciiSlice (buf, start, end) {
|
675
|
+
var ret = ''
|
676
|
+
end = Math.min(buf.length, end)
|
677
|
+
|
678
|
+
for (var i = start; i < end; i++) {
|
679
|
+
ret += String.fromCharCode(buf[i] & 0x7F)
|
680
|
+
}
|
681
|
+
return ret
|
682
|
+
}
|
683
|
+
|
684
|
+
function binarySlice (buf, start, end) {
|
685
|
+
var ret = ''
|
686
|
+
end = Math.min(buf.length, end)
|
687
|
+
|
688
|
+
for (var i = start; i < end; i++) {
|
689
|
+
ret += String.fromCharCode(buf[i])
|
690
|
+
}
|
691
|
+
return ret
|
692
|
+
}
|
693
|
+
|
694
|
+
function hexSlice (buf, start, end) {
|
695
|
+
var len = buf.length
|
696
|
+
|
697
|
+
if (!start || start < 0) start = 0
|
698
|
+
if (!end || end < 0 || end > len) end = len
|
699
|
+
|
700
|
+
var out = ''
|
701
|
+
for (var i = start; i < end; i++) {
|
702
|
+
out += toHex(buf[i])
|
703
|
+
}
|
704
|
+
return out
|
705
|
+
}
|
706
|
+
|
707
|
+
function utf16leSlice (buf, start, end) {
|
708
|
+
var bytes = buf.slice(start, end)
|
709
|
+
var res = ''
|
710
|
+
for (var i = 0; i < bytes.length; i += 2) {
|
711
|
+
res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
|
712
|
+
}
|
713
|
+
return res
|
714
|
+
}
|
715
|
+
|
716
|
+
Buffer.prototype.slice = function slice (start, end) {
|
717
|
+
var len = this.length
|
718
|
+
start = ~~start
|
719
|
+
end = end === undefined ? len : ~~end
|
720
|
+
|
721
|
+
if (start < 0) {
|
722
|
+
start += len
|
723
|
+
if (start < 0) start = 0
|
724
|
+
} else if (start > len) {
|
725
|
+
start = len
|
726
|
+
}
|
727
|
+
|
728
|
+
if (end < 0) {
|
729
|
+
end += len
|
730
|
+
if (end < 0) end = 0
|
731
|
+
} else if (end > len) {
|
732
|
+
end = len
|
733
|
+
}
|
734
|
+
|
735
|
+
if (end < start) end = start
|
736
|
+
|
737
|
+
var newBuf
|
738
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
739
|
+
newBuf = Buffer._augment(this.subarray(start, end))
|
740
|
+
} else {
|
741
|
+
var sliceLen = end - start
|
742
|
+
newBuf = new Buffer(sliceLen, undefined)
|
743
|
+
for (var i = 0; i < sliceLen; i++) {
|
744
|
+
newBuf[i] = this[i + start]
|
745
|
+
}
|
746
|
+
}
|
747
|
+
|
748
|
+
if (newBuf.length) newBuf.parent = this.parent || this
|
749
|
+
|
750
|
+
return newBuf
|
751
|
+
}
|
752
|
+
|
753
|
+
/*
|
754
|
+
* Need to make sure that buffer isn't trying to write out of bounds.
|
755
|
+
*/
|
756
|
+
function checkOffset (offset, ext, length) {
|
757
|
+
if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
|
758
|
+
if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
|
759
|
+
}
|
760
|
+
|
761
|
+
Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
|
762
|
+
offset = offset | 0
|
763
|
+
byteLength = byteLength | 0
|
764
|
+
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
765
|
+
|
766
|
+
var val = this[offset]
|
767
|
+
var mul = 1
|
768
|
+
var i = 0
|
769
|
+
while (++i < byteLength && (mul *= 0x100)) {
|
770
|
+
val += this[offset + i] * mul
|
771
|
+
}
|
772
|
+
|
773
|
+
return val
|
774
|
+
}
|
775
|
+
|
776
|
+
Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
|
777
|
+
offset = offset | 0
|
778
|
+
byteLength = byteLength | 0
|
779
|
+
if (!noAssert) {
|
780
|
+
checkOffset(offset, byteLength, this.length)
|
781
|
+
}
|
782
|
+
|
783
|
+
var val = this[offset + --byteLength]
|
784
|
+
var mul = 1
|
785
|
+
while (byteLength > 0 && (mul *= 0x100)) {
|
786
|
+
val += this[offset + --byteLength] * mul
|
787
|
+
}
|
788
|
+
|
789
|
+
return val
|
790
|
+
}
|
791
|
+
|
792
|
+
Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
|
793
|
+
if (!noAssert) checkOffset(offset, 1, this.length)
|
794
|
+
return this[offset]
|
795
|
+
}
|
796
|
+
|
797
|
+
Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
|
798
|
+
if (!noAssert) checkOffset(offset, 2, this.length)
|
799
|
+
return this[offset] | (this[offset + 1] << 8)
|
800
|
+
}
|
801
|
+
|
802
|
+
Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
|
803
|
+
if (!noAssert) checkOffset(offset, 2, this.length)
|
804
|
+
return (this[offset] << 8) | this[offset + 1]
|
805
|
+
}
|
806
|
+
|
807
|
+
Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
|
808
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
809
|
+
|
810
|
+
return ((this[offset]) |
|
811
|
+
(this[offset + 1] << 8) |
|
812
|
+
(this[offset + 2] << 16)) +
|
813
|
+
(this[offset + 3] * 0x1000000)
|
814
|
+
}
|
815
|
+
|
816
|
+
Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
|
817
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
818
|
+
|
819
|
+
return (this[offset] * 0x1000000) +
|
820
|
+
((this[offset + 1] << 16) |
|
821
|
+
(this[offset + 2] << 8) |
|
822
|
+
this[offset + 3])
|
823
|
+
}
|
824
|
+
|
825
|
+
Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
|
826
|
+
offset = offset | 0
|
827
|
+
byteLength = byteLength | 0
|
828
|
+
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
829
|
+
|
830
|
+
var val = this[offset]
|
831
|
+
var mul = 1
|
832
|
+
var i = 0
|
833
|
+
while (++i < byteLength && (mul *= 0x100)) {
|
834
|
+
val += this[offset + i] * mul
|
835
|
+
}
|
836
|
+
mul *= 0x80
|
837
|
+
|
838
|
+
if (val >= mul) val -= Math.pow(2, 8 * byteLength)
|
839
|
+
|
840
|
+
return val
|
841
|
+
}
|
842
|
+
|
843
|
+
Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
|
844
|
+
offset = offset | 0
|
845
|
+
byteLength = byteLength | 0
|
846
|
+
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
847
|
+
|
848
|
+
var i = byteLength
|
849
|
+
var mul = 1
|
850
|
+
var val = this[offset + --i]
|
851
|
+
while (i > 0 && (mul *= 0x100)) {
|
852
|
+
val += this[offset + --i] * mul
|
853
|
+
}
|
854
|
+
mul *= 0x80
|
855
|
+
|
856
|
+
if (val >= mul) val -= Math.pow(2, 8 * byteLength)
|
857
|
+
|
858
|
+
return val
|
859
|
+
}
|
860
|
+
|
861
|
+
Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
|
862
|
+
if (!noAssert) checkOffset(offset, 1, this.length)
|
863
|
+
if (!(this[offset] & 0x80)) return (this[offset])
|
864
|
+
return ((0xff - this[offset] + 1) * -1)
|
865
|
+
}
|
866
|
+
|
867
|
+
Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
|
868
|
+
if (!noAssert) checkOffset(offset, 2, this.length)
|
869
|
+
var val = this[offset] | (this[offset + 1] << 8)
|
870
|
+
return (val & 0x8000) ? val | 0xFFFF0000 : val
|
871
|
+
}
|
872
|
+
|
873
|
+
Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
|
874
|
+
if (!noAssert) checkOffset(offset, 2, this.length)
|
875
|
+
var val = this[offset + 1] | (this[offset] << 8)
|
876
|
+
return (val & 0x8000) ? val | 0xFFFF0000 : val
|
877
|
+
}
|
878
|
+
|
879
|
+
Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
|
880
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
881
|
+
|
882
|
+
return (this[offset]) |
|
883
|
+
(this[offset + 1] << 8) |
|
884
|
+
(this[offset + 2] << 16) |
|
885
|
+
(this[offset + 3] << 24)
|
886
|
+
}
|
887
|
+
|
888
|
+
Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
|
889
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
890
|
+
|
891
|
+
return (this[offset] << 24) |
|
892
|
+
(this[offset + 1] << 16) |
|
893
|
+
(this[offset + 2] << 8) |
|
894
|
+
(this[offset + 3])
|
895
|
+
}
|
896
|
+
|
897
|
+
Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
|
898
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
899
|
+
return ieee754.read(this, offset, true, 23, 4)
|
900
|
+
}
|
901
|
+
|
902
|
+
Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
|
903
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
904
|
+
return ieee754.read(this, offset, false, 23, 4)
|
905
|
+
}
|
906
|
+
|
907
|
+
Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
|
908
|
+
if (!noAssert) checkOffset(offset, 8, this.length)
|
909
|
+
return ieee754.read(this, offset, true, 52, 8)
|
910
|
+
}
|
911
|
+
|
912
|
+
Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
|
913
|
+
if (!noAssert) checkOffset(offset, 8, this.length)
|
914
|
+
return ieee754.read(this, offset, false, 52, 8)
|
915
|
+
}
|
916
|
+
|
917
|
+
function checkInt (buf, value, offset, ext, max, min) {
|
918
|
+
if (!Buffer.isBuffer(buf)) throw new TypeError('buffer must be a Buffer instance')
|
919
|
+
if (value > max || value < min) throw new RangeError('value is out of bounds')
|
920
|
+
if (offset + ext > buf.length) throw new RangeError('index out of range')
|
921
|
+
}
|
922
|
+
|
923
|
+
Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
|
924
|
+
value = +value
|
925
|
+
offset = offset | 0
|
926
|
+
byteLength = byteLength | 0
|
927
|
+
if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)
|
928
|
+
|
929
|
+
var mul = 1
|
930
|
+
var i = 0
|
931
|
+
this[offset] = value & 0xFF
|
932
|
+
while (++i < byteLength && (mul *= 0x100)) {
|
933
|
+
this[offset + i] = (value / mul) & 0xFF
|
934
|
+
}
|
935
|
+
|
936
|
+
return offset + byteLength
|
937
|
+
}
|
938
|
+
|
939
|
+
Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
|
940
|
+
value = +value
|
941
|
+
offset = offset | 0
|
942
|
+
byteLength = byteLength | 0
|
943
|
+
if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)
|
944
|
+
|
945
|
+
var i = byteLength - 1
|
946
|
+
var mul = 1
|
947
|
+
this[offset + i] = value & 0xFF
|
948
|
+
while (--i >= 0 && (mul *= 0x100)) {
|
949
|
+
this[offset + i] = (value / mul) & 0xFF
|
950
|
+
}
|
951
|
+
|
952
|
+
return offset + byteLength
|
953
|
+
}
|
954
|
+
|
955
|
+
Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
|
956
|
+
value = +value
|
957
|
+
offset = offset | 0
|
958
|
+
if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
|
959
|
+
if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
|
960
|
+
this[offset] = value
|
961
|
+
return offset + 1
|
962
|
+
}
|
963
|
+
|
964
|
+
function objectWriteUInt16 (buf, value, offset, littleEndian) {
|
965
|
+
if (value < 0) value = 0xffff + value + 1
|
966
|
+
for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; i++) {
|
967
|
+
buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
|
968
|
+
(littleEndian ? i : 1 - i) * 8
|
969
|
+
}
|
970
|
+
}
|
971
|
+
|
972
|
+
Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
|
973
|
+
value = +value
|
974
|
+
offset = offset | 0
|
975
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
|
976
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
977
|
+
this[offset] = value
|
978
|
+
this[offset + 1] = (value >>> 8)
|
979
|
+
} else {
|
980
|
+
objectWriteUInt16(this, value, offset, true)
|
981
|
+
}
|
982
|
+
return offset + 2
|
983
|
+
}
|
984
|
+
|
985
|
+
Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
|
986
|
+
value = +value
|
987
|
+
offset = offset | 0
|
988
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
|
989
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
990
|
+
this[offset] = (value >>> 8)
|
991
|
+
this[offset + 1] = value
|
992
|
+
} else {
|
993
|
+
objectWriteUInt16(this, value, offset, false)
|
994
|
+
}
|
995
|
+
return offset + 2
|
996
|
+
}
|
997
|
+
|
998
|
+
function objectWriteUInt32 (buf, value, offset, littleEndian) {
|
999
|
+
if (value < 0) value = 0xffffffff + value + 1
|
1000
|
+
for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; i++) {
|
1001
|
+
buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
|
1002
|
+
}
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
|
1006
|
+
value = +value
|
1007
|
+
offset = offset | 0
|
1008
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
|
1009
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
1010
|
+
this[offset + 3] = (value >>> 24)
|
1011
|
+
this[offset + 2] = (value >>> 16)
|
1012
|
+
this[offset + 1] = (value >>> 8)
|
1013
|
+
this[offset] = value
|
1014
|
+
} else {
|
1015
|
+
objectWriteUInt32(this, value, offset, true)
|
1016
|
+
}
|
1017
|
+
return offset + 4
|
1018
|
+
}
|
1019
|
+
|
1020
|
+
Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
|
1021
|
+
value = +value
|
1022
|
+
offset = offset | 0
|
1023
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
|
1024
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
1025
|
+
this[offset] = (value >>> 24)
|
1026
|
+
this[offset + 1] = (value >>> 16)
|
1027
|
+
this[offset + 2] = (value >>> 8)
|
1028
|
+
this[offset + 3] = value
|
1029
|
+
} else {
|
1030
|
+
objectWriteUInt32(this, value, offset, false)
|
1031
|
+
}
|
1032
|
+
return offset + 4
|
1033
|
+
}
|
1034
|
+
|
1035
|
+
Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
|
1036
|
+
value = +value
|
1037
|
+
offset = offset | 0
|
1038
|
+
if (!noAssert) {
|
1039
|
+
var limit = Math.pow(2, 8 * byteLength - 1)
|
1040
|
+
|
1041
|
+
checkInt(this, value, offset, byteLength, limit - 1, -limit)
|
1042
|
+
}
|
1043
|
+
|
1044
|
+
var i = 0
|
1045
|
+
var mul = 1
|
1046
|
+
var sub = value < 0 ? 1 : 0
|
1047
|
+
this[offset] = value & 0xFF
|
1048
|
+
while (++i < byteLength && (mul *= 0x100)) {
|
1049
|
+
this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
|
1050
|
+
}
|
1051
|
+
|
1052
|
+
return offset + byteLength
|
1053
|
+
}
|
1054
|
+
|
1055
|
+
Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
|
1056
|
+
value = +value
|
1057
|
+
offset = offset | 0
|
1058
|
+
if (!noAssert) {
|
1059
|
+
var limit = Math.pow(2, 8 * byteLength - 1)
|
1060
|
+
|
1061
|
+
checkInt(this, value, offset, byteLength, limit - 1, -limit)
|
1062
|
+
}
|
1063
|
+
|
1064
|
+
var i = byteLength - 1
|
1065
|
+
var mul = 1
|
1066
|
+
var sub = value < 0 ? 1 : 0
|
1067
|
+
this[offset + i] = value & 0xFF
|
1068
|
+
while (--i >= 0 && (mul *= 0x100)) {
|
1069
|
+
this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
return offset + byteLength
|
1073
|
+
}
|
1074
|
+
|
1075
|
+
Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
|
1076
|
+
value = +value
|
1077
|
+
offset = offset | 0
|
1078
|
+
if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
|
1079
|
+
if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
|
1080
|
+
if (value < 0) value = 0xff + value + 1
|
1081
|
+
this[offset] = value
|
1082
|
+
return offset + 1
|
1083
|
+
}
|
1084
|
+
|
1085
|
+
Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
|
1086
|
+
value = +value
|
1087
|
+
offset = offset | 0
|
1088
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
|
1089
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
1090
|
+
this[offset] = value
|
1091
|
+
this[offset + 1] = (value >>> 8)
|
1092
|
+
} else {
|
1093
|
+
objectWriteUInt16(this, value, offset, true)
|
1094
|
+
}
|
1095
|
+
return offset + 2
|
1096
|
+
}
|
1097
|
+
|
1098
|
+
Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
|
1099
|
+
value = +value
|
1100
|
+
offset = offset | 0
|
1101
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
|
1102
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
1103
|
+
this[offset] = (value >>> 8)
|
1104
|
+
this[offset + 1] = value
|
1105
|
+
} else {
|
1106
|
+
objectWriteUInt16(this, value, offset, false)
|
1107
|
+
}
|
1108
|
+
return offset + 2
|
1109
|
+
}
|
1110
|
+
|
1111
|
+
Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
|
1112
|
+
value = +value
|
1113
|
+
offset = offset | 0
|
1114
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
|
1115
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
1116
|
+
this[offset] = value
|
1117
|
+
this[offset + 1] = (value >>> 8)
|
1118
|
+
this[offset + 2] = (value >>> 16)
|
1119
|
+
this[offset + 3] = (value >>> 24)
|
1120
|
+
} else {
|
1121
|
+
objectWriteUInt32(this, value, offset, true)
|
1122
|
+
}
|
1123
|
+
return offset + 4
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
|
1127
|
+
value = +value
|
1128
|
+
offset = offset | 0
|
1129
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
|
1130
|
+
if (value < 0) value = 0xffffffff + value + 1
|
1131
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
1132
|
+
this[offset] = (value >>> 24)
|
1133
|
+
this[offset + 1] = (value >>> 16)
|
1134
|
+
this[offset + 2] = (value >>> 8)
|
1135
|
+
this[offset + 3] = value
|
1136
|
+
} else {
|
1137
|
+
objectWriteUInt32(this, value, offset, false)
|
1138
|
+
}
|
1139
|
+
return offset + 4
|
1140
|
+
}
|
1141
|
+
|
1142
|
+
function checkIEEE754 (buf, value, offset, ext, max, min) {
|
1143
|
+
if (value > max || value < min) throw new RangeError('value is out of bounds')
|
1144
|
+
if (offset + ext > buf.length) throw new RangeError('index out of range')
|
1145
|
+
if (offset < 0) throw new RangeError('index out of range')
|
1146
|
+
}
|
1147
|
+
|
1148
|
+
function writeFloat (buf, value, offset, littleEndian, noAssert) {
|
1149
|
+
if (!noAssert) {
|
1150
|
+
checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
|
1151
|
+
}
|
1152
|
+
ieee754.write(buf, value, offset, littleEndian, 23, 4)
|
1153
|
+
return offset + 4
|
1154
|
+
}
|
1155
|
+
|
1156
|
+
Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
|
1157
|
+
return writeFloat(this, value, offset, true, noAssert)
|
1158
|
+
}
|
1159
|
+
|
1160
|
+
Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
|
1161
|
+
return writeFloat(this, value, offset, false, noAssert)
|
1162
|
+
}
|
1163
|
+
|
1164
|
+
function writeDouble (buf, value, offset, littleEndian, noAssert) {
|
1165
|
+
if (!noAssert) {
|
1166
|
+
checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
|
1167
|
+
}
|
1168
|
+
ieee754.write(buf, value, offset, littleEndian, 52, 8)
|
1169
|
+
return offset + 8
|
1170
|
+
}
|
1171
|
+
|
1172
|
+
Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
|
1173
|
+
return writeDouble(this, value, offset, true, noAssert)
|
1174
|
+
}
|
1175
|
+
|
1176
|
+
Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
|
1177
|
+
return writeDouble(this, value, offset, false, noAssert)
|
1178
|
+
}
|
1179
|
+
|
1180
|
+
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
|
1181
|
+
Buffer.prototype.copy = function copy (target, targetStart, start, end) {
|
1182
|
+
if (!start) start = 0
|
1183
|
+
if (!end && end !== 0) end = this.length
|
1184
|
+
if (targetStart >= target.length) targetStart = target.length
|
1185
|
+
if (!targetStart) targetStart = 0
|
1186
|
+
if (end > 0 && end < start) end = start
|
1187
|
+
|
1188
|
+
// Copy 0 bytes; we're done
|
1189
|
+
if (end === start) return 0
|
1190
|
+
if (target.length === 0 || this.length === 0) return 0
|
1191
|
+
|
1192
|
+
// Fatal error conditions
|
1193
|
+
if (targetStart < 0) {
|
1194
|
+
throw new RangeError('targetStart out of bounds')
|
1195
|
+
}
|
1196
|
+
if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
|
1197
|
+
if (end < 0) throw new RangeError('sourceEnd out of bounds')
|
1198
|
+
|
1199
|
+
// Are we oob?
|
1200
|
+
if (end > this.length) end = this.length
|
1201
|
+
if (target.length - targetStart < end - start) {
|
1202
|
+
end = target.length - targetStart + start
|
1203
|
+
}
|
1204
|
+
|
1205
|
+
var len = end - start
|
1206
|
+
var i
|
1207
|
+
|
1208
|
+
if (this === target && start < targetStart && targetStart < end) {
|
1209
|
+
// descending copy from end
|
1210
|
+
for (i = len - 1; i >= 0; i--) {
|
1211
|
+
target[i + targetStart] = this[i + start]
|
1212
|
+
}
|
1213
|
+
} else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
|
1214
|
+
// ascending copy from start
|
1215
|
+
for (i = 0; i < len; i++) {
|
1216
|
+
target[i + targetStart] = this[i + start]
|
1217
|
+
}
|
1218
|
+
} else {
|
1219
|
+
target._set(this.subarray(start, start + len), targetStart)
|
1220
|
+
}
|
1221
|
+
|
1222
|
+
return len
|
1223
|
+
}
|
1224
|
+
|
1225
|
+
// fill(value, start=0, end=buffer.length)
|
1226
|
+
Buffer.prototype.fill = function fill (value, start, end) {
|
1227
|
+
if (!value) value = 0
|
1228
|
+
if (!start) start = 0
|
1229
|
+
if (!end) end = this.length
|
1230
|
+
|
1231
|
+
if (end < start) throw new RangeError('end < start')
|
1232
|
+
|
1233
|
+
// Fill 0 bytes; we're done
|
1234
|
+
if (end === start) return
|
1235
|
+
if (this.length === 0) return
|
1236
|
+
|
1237
|
+
if (start < 0 || start >= this.length) throw new RangeError('start out of bounds')
|
1238
|
+
if (end < 0 || end > this.length) throw new RangeError('end out of bounds')
|
1239
|
+
|
1240
|
+
var i
|
1241
|
+
if (typeof value === 'number') {
|
1242
|
+
for (i = start; i < end; i++) {
|
1243
|
+
this[i] = value
|
1244
|
+
}
|
1245
|
+
} else {
|
1246
|
+
var bytes = utf8ToBytes(value.toString())
|
1247
|
+
var len = bytes.length
|
1248
|
+
for (i = start; i < end; i++) {
|
1249
|
+
this[i] = bytes[i % len]
|
1250
|
+
}
|
1251
|
+
}
|
1252
|
+
|
1253
|
+
return this
|
1254
|
+
}
|
1255
|
+
|
1256
|
+
/**
|
1257
|
+
* Creates a new `ArrayBuffer` with the *copied* memory of the buffer instance.
|
1258
|
+
* Added in Node 0.12. Only available in browsers that support ArrayBuffer.
|
1259
|
+
*/
|
1260
|
+
Buffer.prototype.toArrayBuffer = function toArrayBuffer () {
|
1261
|
+
if (typeof Uint8Array !== 'undefined') {
|
1262
|
+
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
1263
|
+
return (new Buffer(this)).buffer
|
1264
|
+
} else {
|
1265
|
+
var buf = new Uint8Array(this.length)
|
1266
|
+
for (var i = 0, len = buf.length; i < len; i += 1) {
|
1267
|
+
buf[i] = this[i]
|
1268
|
+
}
|
1269
|
+
return buf.buffer
|
1270
|
+
}
|
1271
|
+
} else {
|
1272
|
+
throw new TypeError('Buffer.toArrayBuffer not supported in this browser')
|
1273
|
+
}
|
1274
|
+
}
|
1275
|
+
|
1276
|
+
// HELPER FUNCTIONS
|
1277
|
+
// ================
|
1278
|
+
|
1279
|
+
var BP = Buffer.prototype
|
1280
|
+
|
1281
|
+
/**
|
1282
|
+
* Augment a Uint8Array *instance* (not the Uint8Array class!) with Buffer methods
|
1283
|
+
*/
|
1284
|
+
Buffer._augment = function _augment (arr) {
|
1285
|
+
arr.constructor = Buffer
|
1286
|
+
arr._isBuffer = true
|
1287
|
+
|
1288
|
+
// save reference to original Uint8Array set method before overwriting
|
1289
|
+
arr._set = arr.set
|
1290
|
+
|
1291
|
+
// deprecated
|
1292
|
+
arr.get = BP.get
|
1293
|
+
arr.set = BP.set
|
1294
|
+
|
1295
|
+
arr.write = BP.write
|
1296
|
+
arr.toString = BP.toString
|
1297
|
+
arr.toLocaleString = BP.toString
|
1298
|
+
arr.toJSON = BP.toJSON
|
1299
|
+
arr.equals = BP.equals
|
1300
|
+
arr.compare = BP.compare
|
1301
|
+
arr.indexOf = BP.indexOf
|
1302
|
+
arr.copy = BP.copy
|
1303
|
+
arr.slice = BP.slice
|
1304
|
+
arr.readUIntLE = BP.readUIntLE
|
1305
|
+
arr.readUIntBE = BP.readUIntBE
|
1306
|
+
arr.readUInt8 = BP.readUInt8
|
1307
|
+
arr.readUInt16LE = BP.readUInt16LE
|
1308
|
+
arr.readUInt16BE = BP.readUInt16BE
|
1309
|
+
arr.readUInt32LE = BP.readUInt32LE
|
1310
|
+
arr.readUInt32BE = BP.readUInt32BE
|
1311
|
+
arr.readIntLE = BP.readIntLE
|
1312
|
+
arr.readIntBE = BP.readIntBE
|
1313
|
+
arr.readInt8 = BP.readInt8
|
1314
|
+
arr.readInt16LE = BP.readInt16LE
|
1315
|
+
arr.readInt16BE = BP.readInt16BE
|
1316
|
+
arr.readInt32LE = BP.readInt32LE
|
1317
|
+
arr.readInt32BE = BP.readInt32BE
|
1318
|
+
arr.readFloatLE = BP.readFloatLE
|
1319
|
+
arr.readFloatBE = BP.readFloatBE
|
1320
|
+
arr.readDoubleLE = BP.readDoubleLE
|
1321
|
+
arr.readDoubleBE = BP.readDoubleBE
|
1322
|
+
arr.writeUInt8 = BP.writeUInt8
|
1323
|
+
arr.writeUIntLE = BP.writeUIntLE
|
1324
|
+
arr.writeUIntBE = BP.writeUIntBE
|
1325
|
+
arr.writeUInt16LE = BP.writeUInt16LE
|
1326
|
+
arr.writeUInt16BE = BP.writeUInt16BE
|
1327
|
+
arr.writeUInt32LE = BP.writeUInt32LE
|
1328
|
+
arr.writeUInt32BE = BP.writeUInt32BE
|
1329
|
+
arr.writeIntLE = BP.writeIntLE
|
1330
|
+
arr.writeIntBE = BP.writeIntBE
|
1331
|
+
arr.writeInt8 = BP.writeInt8
|
1332
|
+
arr.writeInt16LE = BP.writeInt16LE
|
1333
|
+
arr.writeInt16BE = BP.writeInt16BE
|
1334
|
+
arr.writeInt32LE = BP.writeInt32LE
|
1335
|
+
arr.writeInt32BE = BP.writeInt32BE
|
1336
|
+
arr.writeFloatLE = BP.writeFloatLE
|
1337
|
+
arr.writeFloatBE = BP.writeFloatBE
|
1338
|
+
arr.writeDoubleLE = BP.writeDoubleLE
|
1339
|
+
arr.writeDoubleBE = BP.writeDoubleBE
|
1340
|
+
arr.fill = BP.fill
|
1341
|
+
arr.inspect = BP.inspect
|
1342
|
+
arr.toArrayBuffer = BP.toArrayBuffer
|
1343
|
+
|
1344
|
+
return arr
|
1345
|
+
}
|
1346
|
+
|
1347
|
+
var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
|
1348
|
+
|
1349
|
+
function base64clean (str) {
|
1350
|
+
// Node strips out invalid characters like \n and \t from the string, base64-js does not
|
1351
|
+
str = stringtrim(str).replace(INVALID_BASE64_RE, '')
|
1352
|
+
// Node converts strings with length < 2 to ''
|
1353
|
+
if (str.length < 2) return ''
|
1354
|
+
// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
|
1355
|
+
while (str.length % 4 !== 0) {
|
1356
|
+
str = str + '='
|
1357
|
+
}
|
1358
|
+
return str
|
1359
|
+
}
|
1360
|
+
|
1361
|
+
function stringtrim (str) {
|
1362
|
+
if (str.trim) return str.trim()
|
1363
|
+
return str.replace(/^\s+|\s+$/g, '')
|
1364
|
+
}
|
1365
|
+
|
1366
|
+
function toHex (n) {
|
1367
|
+
if (n < 16) return '0' + n.toString(16)
|
1368
|
+
return n.toString(16)
|
1369
|
+
}
|
1370
|
+
|
1371
|
+
function utf8ToBytes (string, units) {
|
1372
|
+
units = units || Infinity
|
1373
|
+
var codePoint
|
1374
|
+
var length = string.length
|
1375
|
+
var leadSurrogate = null
|
1376
|
+
var bytes = []
|
1377
|
+
var i = 0
|
1378
|
+
|
1379
|
+
for (; i < length; i++) {
|
1380
|
+
codePoint = string.charCodeAt(i)
|
1381
|
+
|
1382
|
+
// is surrogate component
|
1383
|
+
if (codePoint > 0xD7FF && codePoint < 0xE000) {
|
1384
|
+
// last char was a lead
|
1385
|
+
if (leadSurrogate) {
|
1386
|
+
// 2 leads in a row
|
1387
|
+
if (codePoint < 0xDC00) {
|
1388
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
1389
|
+
leadSurrogate = codePoint
|
1390
|
+
continue
|
1391
|
+
} else {
|
1392
|
+
// valid surrogate pair
|
1393
|
+
codePoint = leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00 | 0x10000
|
1394
|
+
leadSurrogate = null
|
1395
|
+
}
|
1396
|
+
} else {
|
1397
|
+
// no lead yet
|
1398
|
+
|
1399
|
+
if (codePoint > 0xDBFF) {
|
1400
|
+
// unexpected trail
|
1401
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
1402
|
+
continue
|
1403
|
+
} else if (i + 1 === length) {
|
1404
|
+
// unpaired lead
|
1405
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
1406
|
+
continue
|
1407
|
+
} else {
|
1408
|
+
// valid lead
|
1409
|
+
leadSurrogate = codePoint
|
1410
|
+
continue
|
1411
|
+
}
|
1412
|
+
}
|
1413
|
+
} else if (leadSurrogate) {
|
1414
|
+
// valid bmp char, but last char was a lead
|
1415
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
1416
|
+
leadSurrogate = null
|
1417
|
+
}
|
1418
|
+
|
1419
|
+
// encode utf8
|
1420
|
+
if (codePoint < 0x80) {
|
1421
|
+
if ((units -= 1) < 0) break
|
1422
|
+
bytes.push(codePoint)
|
1423
|
+
} else if (codePoint < 0x800) {
|
1424
|
+
if ((units -= 2) < 0) break
|
1425
|
+
bytes.push(
|
1426
|
+
codePoint >> 0x6 | 0xC0,
|
1427
|
+
codePoint & 0x3F | 0x80
|
1428
|
+
)
|
1429
|
+
} else if (codePoint < 0x10000) {
|
1430
|
+
if ((units -= 3) < 0) break
|
1431
|
+
bytes.push(
|
1432
|
+
codePoint >> 0xC | 0xE0,
|
1433
|
+
codePoint >> 0x6 & 0x3F | 0x80,
|
1434
|
+
codePoint & 0x3F | 0x80
|
1435
|
+
)
|
1436
|
+
} else if (codePoint < 0x200000) {
|
1437
|
+
if ((units -= 4) < 0) break
|
1438
|
+
bytes.push(
|
1439
|
+
codePoint >> 0x12 | 0xF0,
|
1440
|
+
codePoint >> 0xC & 0x3F | 0x80,
|
1441
|
+
codePoint >> 0x6 & 0x3F | 0x80,
|
1442
|
+
codePoint & 0x3F | 0x80
|
1443
|
+
)
|
1444
|
+
} else {
|
1445
|
+
throw new Error('Invalid code point')
|
1446
|
+
}
|
1447
|
+
}
|
1448
|
+
|
1449
|
+
return bytes
|
1450
|
+
}
|
1451
|
+
|
1452
|
+
function asciiToBytes (str) {
|
1453
|
+
var byteArray = []
|
1454
|
+
for (var i = 0; i < str.length; i++) {
|
1455
|
+
// Node's code seems to be doing this and not & 0x7F..
|
1456
|
+
byteArray.push(str.charCodeAt(i) & 0xFF)
|
1457
|
+
}
|
1458
|
+
return byteArray
|
1459
|
+
}
|
1460
|
+
|
1461
|
+
function utf16leToBytes (str, units) {
|
1462
|
+
var c, hi, lo
|
1463
|
+
var byteArray = []
|
1464
|
+
for (var i = 0; i < str.length; i++) {
|
1465
|
+
if ((units -= 2) < 0) break
|
1466
|
+
|
1467
|
+
c = str.charCodeAt(i)
|
1468
|
+
hi = c >> 8
|
1469
|
+
lo = c % 256
|
1470
|
+
byteArray.push(lo)
|
1471
|
+
byteArray.push(hi)
|
1472
|
+
}
|
1473
|
+
|
1474
|
+
return byteArray
|
1475
|
+
}
|
1476
|
+
|
1477
|
+
function base64ToBytes (str) {
|
1478
|
+
return base64.toByteArray(base64clean(str))
|
1479
|
+
}
|
1480
|
+
|
1481
|
+
function blitBuffer (src, dst, offset, length) {
|
1482
|
+
for (var i = 0; i < length; i++) {
|
1483
|
+
if ((i + offset >= dst.length) || (i >= src.length)) break
|
1484
|
+
dst[i + offset] = src[i]
|
1485
|
+
}
|
1486
|
+
return i
|
1487
|
+
}
|
1488
|
+
|
1489
|
+
function decodeUtf8Char (str) {
|
1490
|
+
try {
|
1491
|
+
return decodeURIComponent(str)
|
1492
|
+
} catch (err) {
|
1493
|
+
return String.fromCharCode(0xFFFD) // UTF 8 invalid char
|
1494
|
+
}
|
1495
|
+
}
|
1496
|
+
|
1497
|
+
},{"base64-js":12,"ieee754":13,"is-array":14}],12:[function(require,module,exports){
|
1498
|
+
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
1499
|
+
|
1500
|
+
;(function (exports) {
|
1501
|
+
'use strict';
|
1502
|
+
|
1503
|
+
var Arr = (typeof Uint8Array !== 'undefined')
|
1504
|
+
? Uint8Array
|
1505
|
+
: Array
|
1506
|
+
|
1507
|
+
var PLUS = '+'.charCodeAt(0)
|
1508
|
+
var SLASH = '/'.charCodeAt(0)
|
1509
|
+
var NUMBER = '0'.charCodeAt(0)
|
1510
|
+
var LOWER = 'a'.charCodeAt(0)
|
1511
|
+
var UPPER = 'A'.charCodeAt(0)
|
1512
|
+
var PLUS_URL_SAFE = '-'.charCodeAt(0)
|
1513
|
+
var SLASH_URL_SAFE = '_'.charCodeAt(0)
|
1514
|
+
|
1515
|
+
function decode (elt) {
|
1516
|
+
var code = elt.charCodeAt(0)
|
1517
|
+
if (code === PLUS ||
|
1518
|
+
code === PLUS_URL_SAFE)
|
1519
|
+
return 62 // '+'
|
1520
|
+
if (code === SLASH ||
|
1521
|
+
code === SLASH_URL_SAFE)
|
1522
|
+
return 63 // '/'
|
1523
|
+
if (code < NUMBER)
|
1524
|
+
return -1 //no match
|
1525
|
+
if (code < NUMBER + 10)
|
1526
|
+
return code - NUMBER + 26 + 26
|
1527
|
+
if (code < UPPER + 26)
|
1528
|
+
return code - UPPER
|
1529
|
+
if (code < LOWER + 26)
|
1530
|
+
return code - LOWER + 26
|
1531
|
+
}
|
1532
|
+
|
1533
|
+
function b64ToByteArray (b64) {
|
1534
|
+
var i, j, l, tmp, placeHolders, arr
|
1535
|
+
|
1536
|
+
if (b64.length % 4 > 0) {
|
1537
|
+
throw new Error('Invalid string. Length must be a multiple of 4')
|
1538
|
+
}
|
1539
|
+
|
1540
|
+
// the number of equal signs (place holders)
|
1541
|
+
// if there are two placeholders, than the two characters before it
|
1542
|
+
// represent one byte
|
1543
|
+
// if there is only one, then the three characters before it represent 2 bytes
|
1544
|
+
// this is just a cheap hack to not do indexOf twice
|
1545
|
+
var len = b64.length
|
1546
|
+
placeHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0
|
1547
|
+
|
1548
|
+
// base64 is 4/3 + up to two characters of the original data
|
1549
|
+
arr = new Arr(b64.length * 3 / 4 - placeHolders)
|
1550
|
+
|
1551
|
+
// if there are placeholders, only get up to the last complete 4 chars
|
1552
|
+
l = placeHolders > 0 ? b64.length - 4 : b64.length
|
1553
|
+
|
1554
|
+
var L = 0
|
1555
|
+
|
1556
|
+
function push (v) {
|
1557
|
+
arr[L++] = v
|
1558
|
+
}
|
1559
|
+
|
1560
|
+
for (i = 0, j = 0; i < l; i += 4, j += 3) {
|
1561
|
+
tmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))
|
1562
|
+
push((tmp & 0xFF0000) >> 16)
|
1563
|
+
push((tmp & 0xFF00) >> 8)
|
1564
|
+
push(tmp & 0xFF)
|
1565
|
+
}
|
1566
|
+
|
1567
|
+
if (placeHolders === 2) {
|
1568
|
+
tmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)
|
1569
|
+
push(tmp & 0xFF)
|
1570
|
+
} else if (placeHolders === 1) {
|
1571
|
+
tmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)
|
1572
|
+
push((tmp >> 8) & 0xFF)
|
1573
|
+
push(tmp & 0xFF)
|
1574
|
+
}
|
1575
|
+
|
1576
|
+
return arr
|
1577
|
+
}
|
1578
|
+
|
1579
|
+
function uint8ToBase64 (uint8) {
|
1580
|
+
var i,
|
1581
|
+
extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
|
1582
|
+
output = "",
|
1583
|
+
temp, length
|
1584
|
+
|
1585
|
+
function encode (num) {
|
1586
|
+
return lookup.charAt(num)
|
1587
|
+
}
|
1588
|
+
|
1589
|
+
function tripletToBase64 (num) {
|
1590
|
+
return encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)
|
1591
|
+
}
|
1592
|
+
|
1593
|
+
// go through the array every three bytes, we'll deal with trailing stuff later
|
1594
|
+
for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {
|
1595
|
+
temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])
|
1596
|
+
output += tripletToBase64(temp)
|
1597
|
+
}
|
1598
|
+
|
1599
|
+
// pad the end with zeros, but make sure to not forget the extra bytes
|
1600
|
+
switch (extraBytes) {
|
1601
|
+
case 1:
|
1602
|
+
temp = uint8[uint8.length - 1]
|
1603
|
+
output += encode(temp >> 2)
|
1604
|
+
output += encode((temp << 4) & 0x3F)
|
1605
|
+
output += '=='
|
1606
|
+
break
|
1607
|
+
case 2:
|
1608
|
+
temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])
|
1609
|
+
output += encode(temp >> 10)
|
1610
|
+
output += encode((temp >> 4) & 0x3F)
|
1611
|
+
output += encode((temp << 2) & 0x3F)
|
1612
|
+
output += '='
|
1613
|
+
break
|
1614
|
+
}
|
1615
|
+
|
1616
|
+
return output
|
1617
|
+
}
|
1618
|
+
|
1619
|
+
exports.toByteArray = b64ToByteArray
|
1620
|
+
exports.fromByteArray = uint8ToBase64
|
1621
|
+
}(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
|
1622
|
+
|
1623
|
+
},{}],13:[function(require,module,exports){
|
1624
|
+
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
1625
|
+
var e, m
|
1626
|
+
var eLen = nBytes * 8 - mLen - 1
|
1627
|
+
var eMax = (1 << eLen) - 1
|
1628
|
+
var eBias = eMax >> 1
|
1629
|
+
var nBits = -7
|
1630
|
+
var i = isLE ? (nBytes - 1) : 0
|
1631
|
+
var d = isLE ? -1 : 1
|
1632
|
+
var s = buffer[offset + i]
|
1633
|
+
|
1634
|
+
i += d
|
1635
|
+
|
1636
|
+
e = s & ((1 << (-nBits)) - 1)
|
1637
|
+
s >>= (-nBits)
|
1638
|
+
nBits += eLen
|
1639
|
+
for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}
|
1640
|
+
|
1641
|
+
m = e & ((1 << (-nBits)) - 1)
|
1642
|
+
e >>= (-nBits)
|
1643
|
+
nBits += mLen
|
1644
|
+
for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}
|
1645
|
+
|
1646
|
+
if (e === 0) {
|
1647
|
+
e = 1 - eBias
|
1648
|
+
} else if (e === eMax) {
|
1649
|
+
return m ? NaN : ((s ? -1 : 1) * Infinity)
|
1650
|
+
} else {
|
1651
|
+
m = m + Math.pow(2, mLen)
|
1652
|
+
e = e - eBias
|
1653
|
+
}
|
1654
|
+
return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
|
1655
|
+
}
|
1656
|
+
|
1657
|
+
exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
1658
|
+
var e, m, c
|
1659
|
+
var eLen = nBytes * 8 - mLen - 1
|
1660
|
+
var eMax = (1 << eLen) - 1
|
1661
|
+
var eBias = eMax >> 1
|
1662
|
+
var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
|
1663
|
+
var i = isLE ? 0 : (nBytes - 1)
|
1664
|
+
var d = isLE ? 1 : -1
|
1665
|
+
var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
|
1666
|
+
|
1667
|
+
value = Math.abs(value)
|
1668
|
+
|
1669
|
+
if (isNaN(value) || value === Infinity) {
|
1670
|
+
m = isNaN(value) ? 1 : 0
|
1671
|
+
e = eMax
|
1672
|
+
} else {
|
1673
|
+
e = Math.floor(Math.log(value) / Math.LN2)
|
1674
|
+
if (value * (c = Math.pow(2, -e)) < 1) {
|
1675
|
+
e--
|
1676
|
+
c *= 2
|
1677
|
+
}
|
1678
|
+
if (e + eBias >= 1) {
|
1679
|
+
value += rt / c
|
1680
|
+
} else {
|
1681
|
+
value += rt * Math.pow(2, 1 - eBias)
|
1682
|
+
}
|
1683
|
+
if (value * c >= 2) {
|
1684
|
+
e++
|
1685
|
+
c /= 2
|
1686
|
+
}
|
1687
|
+
|
1688
|
+
if (e + eBias >= eMax) {
|
1689
|
+
m = 0
|
1690
|
+
e = eMax
|
1691
|
+
} else if (e + eBias >= 1) {
|
1692
|
+
m = (value * c - 1) * Math.pow(2, mLen)
|
1693
|
+
e = e + eBias
|
1694
|
+
} else {
|
1695
|
+
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
|
1696
|
+
e = 0
|
1697
|
+
}
|
1698
|
+
}
|
1699
|
+
|
1700
|
+
for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
|
1701
|
+
|
1702
|
+
e = (e << mLen) | m
|
1703
|
+
eLen += mLen
|
1704
|
+
for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
|
1705
|
+
|
1706
|
+
buffer[offset + i - d] |= s * 128
|
1707
|
+
}
|
1708
|
+
|
1709
|
+
},{}],14:[function(require,module,exports){
|
1710
|
+
|
1711
|
+
/**
|
1712
|
+
* isArray
|
1713
|
+
*/
|
1714
|
+
|
1715
|
+
var isArray = Array.isArray;
|
1716
|
+
|
1717
|
+
/**
|
1718
|
+
* toString
|
1719
|
+
*/
|
1720
|
+
|
1721
|
+
var str = Object.prototype.toString;
|
1722
|
+
|
1723
|
+
/**
|
1724
|
+
* Whether or not the given `val`
|
1725
|
+
* is an array.
|
1726
|
+
*
|
1727
|
+
* example:
|
1728
|
+
*
|
1729
|
+
* isArray([]);
|
1730
|
+
* // > true
|
1731
|
+
* isArray(arguments);
|
1732
|
+
* // > false
|
1733
|
+
* isArray('');
|
1734
|
+
* // > false
|
1735
|
+
*
|
1736
|
+
* @param {mixed} val
|
1737
|
+
* @return {bool}
|
1738
|
+
*/
|
1739
|
+
|
1740
|
+
module.exports = isArray || function (val) {
|
1741
|
+
return !! val && '[object Array]' == str.call(val);
|
1742
|
+
};
|
1743
|
+
|
1744
|
+
},{}],15:[function(require,module,exports){
|
1745
|
+
(function (process){
|
1746
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
1747
|
+
//
|
1748
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
1749
|
+
// copy of this software and associated documentation files (the
|
1750
|
+
// "Software"), to deal in the Software without restriction, including
|
1751
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
1752
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
1753
|
+
// persons to whom the Software is furnished to do so, subject to the
|
1754
|
+
// following conditions:
|
1755
|
+
//
|
1756
|
+
// The above copyright notice and this permission notice shall be included
|
1757
|
+
// in all copies or substantial portions of the Software.
|
1758
|
+
//
|
1759
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
1760
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
1761
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
1762
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
1763
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
1764
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
1765
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1766
|
+
|
1767
|
+
// resolves . and .. elements in a path array with directory names there
|
1768
|
+
// must be no slashes, empty elements, or device names (c:\) in the array
|
1769
|
+
// (so also no leading and trailing slashes - it does not distinguish
|
1770
|
+
// relative and absolute paths)
|
1771
|
+
function normalizeArray(parts, allowAboveRoot) {
|
1772
|
+
// if the path tries to go above the root, `up` ends up > 0
|
1773
|
+
var up = 0;
|
1774
|
+
for (var i = parts.length - 1; i >= 0; i--) {
|
1775
|
+
var last = parts[i];
|
1776
|
+
if (last === '.') {
|
1777
|
+
parts.splice(i, 1);
|
1778
|
+
} else if (last === '..') {
|
1779
|
+
parts.splice(i, 1);
|
1780
|
+
up++;
|
1781
|
+
} else if (up) {
|
1782
|
+
parts.splice(i, 1);
|
1783
|
+
up--;
|
1784
|
+
}
|
1785
|
+
}
|
1786
|
+
|
1787
|
+
// if the path is allowed to go above the root, restore leading ..s
|
1788
|
+
if (allowAboveRoot) {
|
1789
|
+
for (; up--; up) {
|
1790
|
+
parts.unshift('..');
|
1791
|
+
}
|
1792
|
+
}
|
1793
|
+
|
1794
|
+
return parts;
|
1795
|
+
}
|
1796
|
+
|
1797
|
+
// Split a filename into [root, dir, basename, ext], unix version
|
1798
|
+
// 'root' is just a slash, or nothing.
|
1799
|
+
var splitPathRe =
|
1800
|
+
/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
|
1801
|
+
var splitPath = function(filename) {
|
1802
|
+
return splitPathRe.exec(filename).slice(1);
|
1803
|
+
};
|
1804
|
+
|
1805
|
+
// path.resolve([from ...], to)
|
1806
|
+
// posix version
|
1807
|
+
exports.resolve = function() {
|
1808
|
+
var resolvedPath = '',
|
1809
|
+
resolvedAbsolute = false;
|
1810
|
+
|
1811
|
+
for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
1812
|
+
var path = (i >= 0) ? arguments[i] : process.cwd();
|
1813
|
+
|
1814
|
+
// Skip empty and invalid entries
|
1815
|
+
if (typeof path !== 'string') {
|
1816
|
+
throw new TypeError('Arguments to path.resolve must be strings');
|
1817
|
+
} else if (!path) {
|
1818
|
+
continue;
|
1819
|
+
}
|
1820
|
+
|
1821
|
+
resolvedPath = path + '/' + resolvedPath;
|
1822
|
+
resolvedAbsolute = path.charAt(0) === '/';
|
1823
|
+
}
|
1824
|
+
|
1825
|
+
// At this point the path should be resolved to a full absolute path, but
|
1826
|
+
// handle relative paths to be safe (might happen when process.cwd() fails)
|
1827
|
+
|
1828
|
+
// Normalize the path
|
1829
|
+
resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
|
1830
|
+
return !!p;
|
1831
|
+
}), !resolvedAbsolute).join('/');
|
1832
|
+
|
1833
|
+
return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
|
1834
|
+
};
|
1835
|
+
|
1836
|
+
// path.normalize(path)
|
1837
|
+
// posix version
|
1838
|
+
exports.normalize = function(path) {
|
1839
|
+
var isAbsolute = exports.isAbsolute(path),
|
1840
|
+
trailingSlash = substr(path, -1) === '/';
|
1841
|
+
|
1842
|
+
// Normalize the path
|
1843
|
+
path = normalizeArray(filter(path.split('/'), function(p) {
|
1844
|
+
return !!p;
|
1845
|
+
}), !isAbsolute).join('/');
|
1846
|
+
|
1847
|
+
if (!path && !isAbsolute) {
|
1848
|
+
path = '.';
|
1849
|
+
}
|
1850
|
+
if (path && trailingSlash) {
|
1851
|
+
path += '/';
|
1852
|
+
}
|
1853
|
+
|
1854
|
+
return (isAbsolute ? '/' : '') + path;
|
1855
|
+
};
|
1856
|
+
|
1857
|
+
// posix version
|
1858
|
+
exports.isAbsolute = function(path) {
|
1859
|
+
return path.charAt(0) === '/';
|
1860
|
+
};
|
1861
|
+
|
1862
|
+
// posix version
|
1863
|
+
exports.join = function() {
|
1864
|
+
var paths = Array.prototype.slice.call(arguments, 0);
|
1865
|
+
return exports.normalize(filter(paths, function(p, index) {
|
1866
|
+
if (typeof p !== 'string') {
|
1867
|
+
throw new TypeError('Arguments to path.join must be strings');
|
1868
|
+
}
|
1869
|
+
return p;
|
1870
|
+
}).join('/'));
|
1871
|
+
};
|
1872
|
+
|
1873
|
+
|
1874
|
+
// path.relative(from, to)
|
1875
|
+
// posix version
|
1876
|
+
exports.relative = function(from, to) {
|
1877
|
+
from = exports.resolve(from).substr(1);
|
1878
|
+
to = exports.resolve(to).substr(1);
|
1879
|
+
|
1880
|
+
function trim(arr) {
|
1881
|
+
var start = 0;
|
1882
|
+
for (; start < arr.length; start++) {
|
1883
|
+
if (arr[start] !== '') break;
|
1884
|
+
}
|
1885
|
+
|
1886
|
+
var end = arr.length - 1;
|
1887
|
+
for (; end >= 0; end--) {
|
1888
|
+
if (arr[end] !== '') break;
|
1889
|
+
}
|
1890
|
+
|
1891
|
+
if (start > end) return [];
|
1892
|
+
return arr.slice(start, end - start + 1);
|
1893
|
+
}
|
1894
|
+
|
1895
|
+
var fromParts = trim(from.split('/'));
|
1896
|
+
var toParts = trim(to.split('/'));
|
1897
|
+
|
1898
|
+
var length = Math.min(fromParts.length, toParts.length);
|
1899
|
+
var samePartsLength = length;
|
1900
|
+
for (var i = 0; i < length; i++) {
|
1901
|
+
if (fromParts[i] !== toParts[i]) {
|
1902
|
+
samePartsLength = i;
|
1903
|
+
break;
|
1904
|
+
}
|
1905
|
+
}
|
1906
|
+
|
1907
|
+
var outputParts = [];
|
1908
|
+
for (var i = samePartsLength; i < fromParts.length; i++) {
|
1909
|
+
outputParts.push('..');
|
1910
|
+
}
|
1911
|
+
|
1912
|
+
outputParts = outputParts.concat(toParts.slice(samePartsLength));
|
1913
|
+
|
1914
|
+
return outputParts.join('/');
|
1915
|
+
};
|
1916
|
+
|
1917
|
+
exports.sep = '/';
|
1918
|
+
exports.delimiter = ':';
|
1919
|
+
|
1920
|
+
exports.dirname = function(path) {
|
1921
|
+
var result = splitPath(path),
|
1922
|
+
root = result[0],
|
1923
|
+
dir = result[1];
|
1924
|
+
|
1925
|
+
if (!root && !dir) {
|
1926
|
+
// No dirname whatsoever
|
1927
|
+
return '.';
|
1928
|
+
}
|
1929
|
+
|
1930
|
+
if (dir) {
|
1931
|
+
// It has a dirname, strip trailing slash
|
1932
|
+
dir = dir.substr(0, dir.length - 1);
|
1933
|
+
}
|
1934
|
+
|
1935
|
+
return root + dir;
|
1936
|
+
};
|
1937
|
+
|
1938
|
+
|
1939
|
+
exports.basename = function(path, ext) {
|
1940
|
+
var f = splitPath(path)[2];
|
1941
|
+
// TODO: make this comparison case-insensitive on windows?
|
1942
|
+
if (ext && f.substr(-1 * ext.length) === ext) {
|
1943
|
+
f = f.substr(0, f.length - ext.length);
|
1944
|
+
}
|
1945
|
+
return f;
|
1946
|
+
};
|
1947
|
+
|
1948
|
+
|
1949
|
+
exports.extname = function(path) {
|
1950
|
+
return splitPath(path)[3];
|
1951
|
+
};
|
1952
|
+
|
1953
|
+
function filter (xs, f) {
|
1954
|
+
if (xs.filter) return xs.filter(f);
|
1955
|
+
var res = [];
|
1956
|
+
for (var i = 0; i < xs.length; i++) {
|
1957
|
+
if (f(xs[i], i, xs)) res.push(xs[i]);
|
1958
|
+
}
|
1959
|
+
return res;
|
1960
|
+
}
|
1961
|
+
|
1962
|
+
// String.prototype.substr - negative index don't work in IE8
|
1963
|
+
var substr = 'ab'.substr(-1) === 'b'
|
1964
|
+
? function (str, start, len) { return str.substr(start, len) }
|
1965
|
+
: function (str, start, len) {
|
1966
|
+
if (start < 0) start = str.length + start;
|
1967
|
+
return str.substr(start, len);
|
1968
|
+
}
|
1969
|
+
;
|
1970
|
+
|
1971
|
+
}).call(this,require('_process'))
|
1972
|
+
},{"_process":16}],16:[function(require,module,exports){
|
1973
|
+
// shim for using process in browser
|
1974
|
+
|
1975
|
+
var process = module.exports = {};
|
1976
|
+
var queue = [];
|
1977
|
+
var draining = false;
|
1978
|
+
|
1979
|
+
function drainQueue() {
|
1980
|
+
if (draining) {
|
1981
|
+
return;
|
1982
|
+
}
|
1983
|
+
draining = true;
|
1984
|
+
var currentQueue;
|
1985
|
+
var len = queue.length;
|
1986
|
+
while(len) {
|
1987
|
+
currentQueue = queue;
|
1988
|
+
queue = [];
|
1989
|
+
var i = -1;
|
1990
|
+
while (++i < len) {
|
1991
|
+
currentQueue[i]();
|
1992
|
+
}
|
1993
|
+
len = queue.length;
|
1994
|
+
}
|
1995
|
+
draining = false;
|
1996
|
+
}
|
1997
|
+
process.nextTick = function (fun) {
|
1998
|
+
queue.push(fun);
|
1999
|
+
if (!draining) {
|
2000
|
+
setTimeout(drainQueue, 0);
|
2001
|
+
}
|
2002
|
+
};
|
2003
|
+
|
2004
|
+
process.title = 'browser';
|
2005
|
+
process.browser = true;
|
2006
|
+
process.env = {};
|
2007
|
+
process.argv = [];
|
2008
|
+
process.version = ''; // empty string to avoid regexp issues
|
2009
|
+
process.versions = {};
|
2010
|
+
|
2011
|
+
function noop() {}
|
2012
|
+
|
2013
|
+
process.on = noop;
|
2014
|
+
process.addListener = noop;
|
2015
|
+
process.once = noop;
|
2016
|
+
process.off = noop;
|
2017
|
+
process.removeListener = noop;
|
2018
|
+
process.removeAllListeners = noop;
|
2019
|
+
process.emit = noop;
|
2020
|
+
|
2021
|
+
process.binding = function (name) {
|
2022
|
+
throw new Error('process.binding is not supported');
|
2023
|
+
};
|
2024
|
+
|
2025
|
+
// TODO(shtylman)
|
2026
|
+
process.cwd = function () { return '/' };
|
2027
|
+
process.chdir = function (dir) {
|
2028
|
+
throw new Error('process.chdir is not supported');
|
2029
|
+
};
|
2030
|
+
process.umask = function() { return 0; };
|
2031
|
+
|
2032
|
+
},{}]},{},[1])(1)
|
2033
|
+
});
|