forked from NeilFraser/JS-Interpreter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acorn_interpreter.js
143 lines (141 loc) · 72.5 KB
/
acorn_interpreter.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*
Copyright 2012 Marijn Haverbeke
SPDX-License-Identifier: MIT
*/
var p;
var ba="undefined"===typeof globalThis?this||window:globalThis,ca=function(a){function b(f){return 48>f?36===f:58>f?!0:65>f?!1:91>f?!0:97>f?95===f:123>f?!0:170<=f&&Kc.test(String.fromCharCode(f))}function d(f){return 65>f?36===f:91>f?!0:97>f?95===f:123>f?!0:170<=f&&Qb.test(String.fromCharCode(f))}function c(f,h){var k=r;for(var n=1,w=0;;){Ta.lastIndex=w;var J=Ta.exec(k);if(J&&J.index<f)++n,w=J.index+J[0].length;else break}k={line:n,cb:f-w};h+=" ("+k.line+":"+k.cb+")";h=new SyntaxError(h);h.j=f;h.aa=
k;h.o=m;throw h;}function e(f){f=f.split(" ");for(var h=Object.create(null),k=0;k<f.length;k++)h[f[k]]=!0;return function(n){return h[n]||!1}}function g(){this.line=ka;this.cb=m-W}function l(f,h){na=m;z.D&&(cb=new g);x=f;C();T=h;ya=f.m}function q(){for(var f=m,h=z.za&&z.D&&new g,k=r.charCodeAt(m+=2);m<oa&&10!==k&&13!==k&&8232!==k&&8233!==k;)++m,k=r.charCodeAt(m);z.za&&z.za(!1,r.slice(f+2,m),f,m,h,z.D&&new g)}function C(){for(;m<oa;){var f=r.charCodeAt(m);if(32===f)++m;else if(13===f)++m,f=r.charCodeAt(m),
10===f&&++m,z.D&&(++ka,W=m);else if(10===f||8232===f||8233===f)++m,z.D&&(++ka,W=m);else if(8<f&&14>f)++m;else if(47===f)if(f=r.charCodeAt(m+1),42===f){f=void 0;var h=z.za&&z.D&&new g,k=m,n=r.indexOf("*/",m+=2);-1===n&&c(m-2,"Unterminated comment");m=n+2;if(z.D)for(Ta.lastIndex=k;(f=Ta.exec(r))&&f.index<m;)++ka,W=f.index+f[0].length;z.za&&z.za(!0,r.slice(k+2,n),k,m,h,z.D&&new g)}else if(47===f)q();else break;else if(160===f)++m;else if(5760<=f&&Lc.test(String.fromCharCode(f)))++m;else break}}function R(f){switch(f){case 46:f=
r.charCodeAt(m+1);48<=f&&57>=f?Rb(!0):(++m,l(Sb));return;case 40:return++m,l(X);case 41:return++m,l(V);case 59:return++m,l(Y);case 44:return++m,l(ea);case 91:return++m,l(db);case 93:return++m,l(eb);case 123:return++m,l(za);case 125:return++m,l(pa);case 58:return++m,l(Aa);case 63:return++m,l(Tb);case 48:if(f=r.charCodeAt(m+1),120===f||88===f){m+=2;f=Ba(16);null===f&&c(H+2,"Expected hexadecimal number");d(r.charCodeAt(m))&&c(m,"Identifier directly after number");l(Ca,f);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Rb(!1);
case 34:case 39:m++;for(var h="";;){m>=oa&&c(H,"Unterminated string constant");var k=r.charCodeAt(m);if(k===f){++m;l(Ua,h);break}if(92===k){k=r.charCodeAt(++m);var n=/^[0-7]+/.exec(r.slice(m,m+3));for(n&&(n=n[0]);n&&255<parseInt(n,8);)n=n.slice(0,-1);"0"===n&&(n=null);++m;if(n)S&&c(m-2,"Octal literal in strict mode"),h+=String.fromCharCode(parseInt(n,8)),m+=n.length-1;else switch(k){case 110:h+="\n";break;case 114:h+="\r";break;case 120:h+=String.fromCharCode(Va(2));break;case 117:h+=String.fromCharCode(Va(4));
break;case 85:h+=String.fromCharCode(Va(8));break;case 116:h+="\t";break;case 98:h+="\b";break;case 118:h+="\v";break;case 102:h+="\f";break;case 48:h+="\x00";break;case 13:10===r.charCodeAt(m)&&++m;case 10:z.D&&(W=m,++ka);break;default:h+=String.fromCharCode(k)}}else 13!==k&&10!==k&&8232!==k&&8233!==k||c(H,"Unterminated string constant"),h+=String.fromCharCode(k),++m}return;case 47:f=r.charCodeAt(m+1);ya?(++m,Ub()):61===f?K(la,2):K(Vb,1);return;case 37:case 42:61===r.charCodeAt(m+1)?K(la,2):K(Mc,
1);return;case 124:case 38:h=r.charCodeAt(m+1);h===f?K(124===f?Wb:Xb,2):61===h?K(la,2):K(124===f?Nc:Oc,1);return;case 94:61===r.charCodeAt(m+1)?K(la,2):K(Pc,1);return;case 43:case 45:h=r.charCodeAt(m+1);h===f?45===h&&62===r.charCodeAt(m+2)&&Wa.test(r.slice(fa,m))?(m+=3,q(),C(),ha()):K(Qc,2):61===h?K(la,2):K(Rc,1);return;case 60:case 62:h=r.charCodeAt(m+1);k=1;h===f?(k=62===f&&62===r.charCodeAt(m+2)?3:2,61===r.charCodeAt(m+k)?K(la,k+1):K(Sc,k)):33===h&&60===f&&45===r.charCodeAt(m+2)&&45===r.charCodeAt(m+
3)?(m+=4,q(),C(),ha()):(61===h&&(k=61===r.charCodeAt(m+2)?3:2),K(Tc,k));return;case 61:case 33:61===r.charCodeAt(m+1)?K(Uc,61===r.charCodeAt(m+2)?3:2):K(61===f?Yb:Zb,1);return;case 126:return K(Zb,1)}return!1}function ha(f){f?m=H+1:H=m;z.D&&(fb=new g);if(f)return Ub();if(m>=oa)return l(gb);f=r.charCodeAt(m);if(d(f)||92===f)return $b();if(!1===R(f)){f=String.fromCharCode(f);if("\\"===f||Qb.test(f))return $b();c(m,"Unexpected character '"+f+"'")}}function K(f,h){var k=r.slice(m,m+h);m+=h;l(f,k)}function Ub(){for(var f,
h,k=m;;){m>=oa&&c(k,"Unterminated regexp");var n=r.charAt(m);Wa.test(n)&&c(k,"Unterminated regexp");if(f)f=!1;else{if("["===n)h=!0;else if("]"===n&&h)h=!1;else if("/"===n&&!h)break;f="\\"===n}++m}f=r.slice(k,m);++m;(h=ac())&&!/^[gmi]*$/.test(h)&&c(k,"Invalid regexp flag");try{var w=new RegExp(f,h)}catch(J){throw J instanceof SyntaxError&&c(k,J.message),J;}l(bc,w)}function Ba(f,h){for(var k=m,n=0,w=void 0===h?Infinity:h,J=0;J<w;++J){var O=r.charCodeAt(m);O=97<=O?O-97+10:65<=O?O-65+10:48<=O&&57>=O?
O-48:Infinity;if(O>=f)break;++m;n=n*f+O}return m===k||void 0!==h&&m-k!==h?null:n}function Rb(f){var h=m,k=!1,n=48===r.charCodeAt(m);f||null!==Ba(10)||c(h,"Invalid number");46===r.charCodeAt(m)&&(++m,Ba(10),k=!0);f=r.charCodeAt(m);if(69===f||101===f)f=r.charCodeAt(++m),43!==f&&45!==f||++m,null===Ba(10)&&c(h,"Invalid number"),k=!0;d(r.charCodeAt(m))&&c(m,"Identifier directly after number");f=r.slice(h,m);var w;k?w=parseFloat(f):n&&1!==f.length?/[89]/.test(f)||S?c(h,"Invalid number"):w=parseInt(f,8):
w=parseInt(f,10);l(Ca,w)}function Va(f){f=Ba(16,f);null===f&&c(H,"Bad character escape sequence");return f}function ac(){qa=!1;for(var f,h=!0,k=m;;){var n=r.charCodeAt(m);if(b(n))qa&&(f+=r.charAt(m)),++m;else if(92===n){qa||(f=r.slice(k,m));qa=!0;117!==r.charCodeAt(++m)&&c(m,"Expecting Unicode escape sequence \\uXXXX");++m;n=Va(4);var w=String.fromCharCode(n);w||c(m-1,"Invalid Unicode escape");(h?d(n):b(n))||c(m-4,"Invalid Unicode escape");f+=w}else break;h=!1}return qa?f:r.slice(k,m)}function $b(){var f=
ac(),h=ra;!qa&&Vc(f)&&(h=Wc[f]);l(h,f)}function B(){hb=H;fa=na;ib=cb;ha()}function jb(f){S=f;m=H;if(z.D)for(;m<W;)W=r.lastIndexOf("\n",W-2)+1,--ka;C();ha()}function cc(){this.type=null;this.start=H;this.end=null}function dc(){this.start=fb;this.end=null;kb&&(this.source=kb)}function L(){var f=new cc;z.D&&(f.aa=new dc);z.vb&&(f.sourceFile=z.vb);z.Ya&&(f.j=[H,0]);return f}function ia(f){var h=new cc;h.start=f.start;z.D&&(h.aa=new dc,h.aa.start=f.aa.start);z.Ya&&(h.j=[f.j[0],0]);return h}function y(f,
h){f.type=h;f.end=fa;z.D&&(f.aa.end=ib);z.Ya&&(f.j[1]=fa);return f}function lb(f){return"ExpressionStatement"===f.type&&"Literal"===f.na.type&&"use strict"===f.na.value}function E(f){return x===f?(B(),!0):!1}function Xa(){return!z.dc&&(x===gb||x===pa||Wa.test(r.slice(fa,H)))}function ma(){E(Y)||Xa()||Z()}function F(f){x===f?B():Z()}function Z(){c(H,"Unexpected token")}function Ya(f){"Identifier"!==f.type&&"MemberExpression"!==f.type&&c(f.start,"Assigning to rvalue");S&&"Identifier"===f.type&&Za(f.name)&&
c(f.start,"Assigning to "+f.name+" in strict mode")}function U(){(x===Vb||x===la&&"/="===T)&&ha(!0);var f=x,h=L();switch(f){case mb:case ec:B();var k=f===mb;E(Y)||Xa()?h.label=null:x!==ra?Z():(h.label=aa(),ma());for(var n=0;n<G.length;++n){var w=G[n];if(null===h.label||w.name===h.label.name){if(null!==w.kind&&(k||"loop"===w.kind))break;if(h.label&&k)break}}n===G.length&&c(h.start,"Unsyntactic "+f.l);return y(h,k?"BreakStatement":"ContinueStatement");case fc:return B(),ma(),y(h,"DebuggerStatement");
case gc:return B(),G.push(nb),h.body=U(),G.pop(),F(ob),h.test=Da(),ma(),y(h,"DoWhileStatement");case hc:B();G.push(nb);F(X);if(x===Y)return pb(h,null);if(x===qb)return f=L(),B(),ic(f,!0),y(f,"VariableDeclaration"),1===f.ga.length&&E($a)?jc(h,f):pb(h,f);f=N(!1,!0);return E($a)?(Ya(f),jc(h,f)):pb(h,f);case rb:return B(),sb(h,!0);case kc:return B(),h.test=Da(),h.ea=U(),h.alternate=E(lc)?U():null,y(h,"IfStatement");case mc:return Ea||z.Gb||c(H,"'return' outside of function"),B(),E(Y)||Xa()?h.J=null:(h.J=
N(),ma()),y(h,"ReturnStatement");case tb:B();h.Nb=Da();h.tb=[];F(za);for(G.push(Xc);x!==pa;)x===ub||x===nc?(f=x===ub,n&&y(n,"SwitchCase"),h.tb.push(n=L()),n.ea=[],B(),f?n.test=N():(k&&c(hb,"Multiple default clauses"),k=!0,n.test=null),F(Aa)):(n||Z(),n.ea.push(U()));n&&y(n,"SwitchCase");B();G.pop();return y(h,"SwitchStatement");case oc:return B(),Wa.test(r.slice(fa,H))&&c(fa,"Illegal newline after throw"),h.J=N(),ma(),y(h,"ThrowStatement");case pc:return B(),h.block=Fa(),h.Ha=null,x===qc&&(f=L(),B(),
F(X),f.Va=aa(),S&&Za(f.Va.name)&&c(f.Va.start,"Binding "+f.Va.name+" in strict mode"),F(V),f.body=Fa(),h.Ha=y(f,"CatchClause")),h.hb=E(rc)?Fa():null,h.Ha||h.hb||c(h.start,"Missing catch or finally clause"),y(h,"TryStatement");case qb:return B(),ic(h),ma(),y(h,"VariableDeclaration");case ob:return B(),h.test=Da(),G.push(nb),h.body=U(),G.pop(),y(h,"WhileStatement");case sc:return S&&c(H,"'with' in strict mode"),B(),h.object=Da(),h.body=U(),y(h,"WithStatement");case za:return Fa();case Y:return B(),
y(h,"EmptyStatement");default:k=T;w=N();if(f===ra&&"Identifier"===w.type&&E(Aa)){for(n=0;n<G.length;++n)G[n].name===k&&c(w.start,"Label '"+k+"' is already declared");G.push({name:k,kind:x.$?"loop":x===tb?"switch":null});h.body=U();G.pop();h.label=w;return y(h,"LabeledStatement")}h.na=w;ma();return y(h,"ExpressionStatement")}}function Da(){F(X);var f=N();F(V);return f}function Fa(f){var h=L(),k=!0,n=!1;h.body=[];for(F(za);!E(pa);){var w=U();h.body.push(w);if(k&&f&&lb(w)){var J=n;jb(n=!0)}k=!1}n&&!J&&
jb(!1);return y(h,"BlockStatement")}function pb(f,h){f.ya=h;F(Y);f.test=x===Y?null:N();F(Y);f.update=x===V?null:N();F(V);f.body=U();G.pop();return y(f,"ForStatement")}function jc(f,h){f.left=h;f.right=N();F(V);f.body=U();G.pop();return y(f,"ForInStatement")}function ic(f,h){f.ga=[];for(f.kind="var";;){var k=L();k.id=aa();S&&Za(k.id.name)&&c(k.id.start,"Binding "+k.id.name+" in strict mode");k.ya=E(Yb)?N(!0,h):null;f.ga.push(y(k,"VariableDeclarator"));if(!E(ea))break}}function N(f,h){var k=vb(h);if(!f&&
x===ea){f=ia(k);for(f.xb=[k];E(ea);)f.xb.push(vb(h));return y(f,"SequenceExpression")}return k}function vb(f){var h=wb(xb(),-1,f);if(E(Tb)){var k=ia(h);k.test=h;k.ea=N(!0);F(Aa);k.alternate=N(!0,f);h=y(k,"ConditionalExpression")}return x.Bb?(k=ia(h),k.operator=T,k.left=h,B(),k.right=vb(f),Ya(h),y(k,"AssignmentExpression")):h}function wb(f,h,k){var n=x.K;if(null!==n&&(!k||x!==$a)&&n>h){var w=ia(f);w.left=f;w.operator=T;f=x;B();w.right=wb(xb(),n,k);n=y(w,f===Wb||f===Xb?"LogicalExpression":"BinaryExpression");
return wb(n,h,k)}return f}function xb(){if(x.prefix){var f=L(),h=x.Yb;f.operator=T;ya=f.prefix=!0;B();f.J=xb();h?Ya(f.J):S&&"delete"===f.operator&&"Identifier"===f.J.type&&c(f.start,"Deleting local variable in strict mode");return y(f,h?"UpdateExpression":"UnaryExpression")}for(h=Ga(ab());x.ac&&!Xa();)f=ia(h),f.operator=T,f.prefix=!1,f.J=h,Ya(h),B(),h=y(f,"UpdateExpression");return h}function Ga(f,h){if(E(Sb)){var k=ia(f);k.object=f;k.Xa=aa(!0);k.eb=!1;return Ga(y(k,"MemberExpression"),h)}return E(db)?
(k=ia(f),k.object=f,k.Xa=N(),k.eb=!0,F(eb),Ga(y(k,"MemberExpression"),h)):!h&&E(X)?(k=ia(f),k.callee=f,k.arguments=yb(V,!1),Ga(y(k,"CallExpression"),h)):f}function ab(){switch(x){case tc:var f=L();B();return y(f,"ThisExpression");case ra:return aa();case Ca:case Ua:case bc:return f=L(),f.value=T,f.raw=r.slice(H,na),B(),y(f,"Literal");case uc:case vc:case wc:return f=L(),f.value=x.bb,f.raw=x.l,B(),y(f,"Literal");case X:f=fb;var h=H;B();var k=N();k.start=h;k.end=na;z.D&&(k.aa.start=f,k.aa.end=cb);z.Ya&&
(k.j=[h,na]);F(V);return k;case db:return f=L(),B(),f.elements=yb(eb,!0,!0),y(f,"ArrayExpression");case za:f=L();h=!0;k=!1;f.h=[];for(B();!E(pa);){if(h)h=!1;else if(F(ea),z.sb&&E(pa))break;var n={key:x===Ca||x===Ua?ab():aa(!0)},w=!1;if(E(Aa)){n.value=N(!0);var J=n.kind="init"}else"Identifier"!==n.key.type||"get"!==n.key.name&&"set"!==n.key.name?Z():(w=k=!0,J=n.kind=n.key.name,n.key=x===Ca||x===Ua?ab():aa(!0),x!==X&&Z(),n.value=sb(L(),!1));if("Identifier"===n.key.type&&(S||k))for(var O=0;O<f.h.length;++O){var sa=
f.h[O];if(sa.key.name===n.key.name){var zb=J===sa.kind||w&&"init"===sa.kind||"init"===J&&("get"===sa.kind||"set"===sa.kind);zb&&!S&&"init"===J&&"init"===sa.kind&&(zb=!1);zb&&c(n.key.start,"Redefinition of property")}}f.h.push(n)}return y(f,"ObjectExpression");case rb:return f=L(),B(),sb(f,!1);case xc:return f=L(),B(),f.callee=Ga(ab(),!0),f.arguments=E(X)?yb(V,!1):Yc,y(f,"NewExpression")}Z()}function sb(f,h){x===ra?f.id=aa():h?Z():f.id=null;f.ra=[];var k=!0;for(F(X);!E(V);)k?k=!1:F(ea),f.ra.push(aa());
k=Ea;var n=G;Ea=!0;G=[];f.body=Fa(!0);Ea=k;G=n;if(S||f.body.body.length&&lb(f.body.body[0]))for(k=f.id?-1:0;k<f.ra.length;++k)if(n=0>k?f.id:f.ra[k],(yc(n.name)||Za(n.name))&&c(n.start,"Defining '"+n.name+"' in strict mode"),0<=k)for(var w=0;w<k;++w)n.name===f.ra[w].name&&c(n.start,"Argument name clash in strict mode");return y(f,h?"FunctionDeclaration":"FunctionExpression")}function yb(f,h,k){for(var n=[],w=!0;!E(f);){if(w)w=!1;else if(F(ea),h&&z.sb&&E(f))break;n.push(k&&x===ea?null:N(!0))}return n}
function aa(f){var h=L();f&&"everywhere"===z.yb&&(f=!1);x===ra?(!f&&(z.yb&&Zc(T)||S&&yc(T))&&-1===r.slice(H,na).indexOf("\\")&&c(H,"The keyword '"+T+"' is reserved"),h.name=T):f&&x.l?h.name=x.l:Z();ya=!1;B();return y(h,"Identifier")}a.version="0.5.0";var z,r="",oa,kb;a.parse=function(f,h){r=String(f);oa=r.length;z=h||{};for(var k in zc)Object.prototype.hasOwnProperty.call(z,k)||(z[k]=zc[k]);kb=z.sourceFile;ka=1;m=W=0;ya=!0;C();k=z.bc;hb=fa=m;z.D&&(ib=new g);Ea=S=!1;G=[];ha();f=k||L();h=!0;k||(f.body=
[]);for(;x!==gb;)k=U(),f.body.push(k),h&&lb(k)&&jb(!0),h=!1;return y(f,"Program")};var zc={dc:!1,sb:!0,yb:!1,Gb:!1,D:!1,za:null,Ya:!1,bc:null,sourceFile:null,vb:null},m=0,H=0,na=0,fb,cb,x,T,ya,ka,W,hb=0,fa=0,ib,Ea,G,S,Yc=[],Ca={type:"num"},bc={type:"regexp"},Ua={type:"string"},ra={type:"name"},gb={type:"eof"},mb={l:"break"},ub={l:"case",m:!0},qc={l:"catch"},ec={l:"continue"},fc={l:"debugger"},nc={l:"default"},gc={l:"do",$:!0},lc={l:"else",m:!0},rc={l:"finally"},hc={l:"for",$:!0},rb={l:"function"},
kc={l:"if"},mc={l:"return",m:!0},tb={l:"switch"},oc={l:"throw",m:!0},pc={l:"try"},qb={l:"var"},ob={l:"while",$:!0},sc={l:"with"},xc={l:"new",m:!0},tc={l:"this"},uc={l:"null",bb:null},vc={l:"true",bb:!0},wc={l:"false",bb:!1},$a={l:"in",K:7,m:!0},Wc={"break":mb,"case":ub,"catch":qc,"continue":ec,"debugger":fc,"default":nc,"do":gc,"else":lc,"finally":rc,"for":hc,"function":rb,"if":kc,"return":mc,"switch":tb,"throw":oc,"try":pc,"var":qb,"while":ob,"with":sc,"null":uc,"true":vc,"false":wc,"new":xc,"in":$a,
"instanceof":{l:"instanceof",K:7,m:!0},"this":tc,"typeof":{l:"typeof",prefix:!0,m:!0},"void":{l:"void",prefix:!0,m:!0},"delete":{l:"delete",prefix:!0,m:!0}},db={type:"[",m:!0},eb={type:"]"},za={type:"{",m:!0},pa={type:"}"},X={type:"(",m:!0},V={type:")"},ea={type:",",m:!0},Y={type:";",m:!0},Aa={type:":",m:!0},Sb={type:"."},Tb={type:"?",m:!0},Vb={K:10,m:!0},Yb={Bb:!0,m:!0},la={Bb:!0,m:!0},Qc={ac:!0,prefix:!0,Yb:!0},Zb={prefix:!0,m:!0},Wb={K:1,m:!0},Xb={K:2,m:!0},Nc={K:3,m:!0},Pc={K:4,m:!0},Oc={K:5,
m:!0},Uc={K:6,m:!0},Tc={K:7,m:!0},Sc={K:8,m:!0},Rc={K:9,prefix:!0,m:!0},Mc={K:10,m:!0},Zc=e("class enum extends super const export import"),yc=e("implements interface let package private protected public static yield"),Za=e("eval arguments"),Vc=e("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),Lc=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Qb=RegExp("[\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]"),
Kc=RegExp("[\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u0620-\u0649\u0672-\u06d3\u06e7-\u06e8\u06fb-\u06fc\u0730-\u074a\u0800-\u0814\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0840-\u0857\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962-\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09d7\u09df-\u09e0\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2-\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5f-\u0b60\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62-\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2-\u0ce3\u0ce6-\u0cef\u0d02\u0d03\u0d46-\u0d48\u0d57\u0d62-\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e34-\u0e3a\u0e40-\u0e45\u0e50-\u0e59\u0eb4-\u0eb9\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f41-\u0f47\u0f71-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1029\u1040-\u1049\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u170e-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17b2\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1920-\u192b\u1930-\u193b\u1951-\u196d\u19b0-\u19c0\u19c8-\u19c9\u19d0-\u19d9\u1a00-\u1a15\u1a20-\u1a53\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b46-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1bb0-\u1bb9\u1be6-\u1bf3\u1c00-\u1c22\u1c40-\u1c49\u1c5b-\u1c7d\u1cd0-\u1cd2\u1d00-\u1dbe\u1e01-\u1f15\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2d81-\u2d96\u2de0-\u2dff\u3021-\u3028\u3099\u309a\ua640-\ua66d\ua674-\ua67d\ua69f\ua6f0-\ua6f1\ua7f8-\ua800\ua806\ua80b\ua823-\ua827\ua880-\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8f3-\ua8f7\ua900-\ua909\ua926-\ua92d\ua930-\ua945\ua980-\ua983\ua9b3-\ua9c0\uaa00-\uaa27\uaa40-\uaa41\uaa4c-\uaa4d\uaa50-\uaa59\uaa7b\uaae0-\uaae9\uaaf2-\uaaf3\uabc0-\uabe1\uabec\uabed\uabf0-\uabf9\ufb20-\ufb28\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f]"),
Wa=/[\n\r\u2028\u2029]/,Ta=/\r\n|[\n\r\u2028\u2029]/g,qa,nb={kind:"loop"},Xc={kind:"switch"}};"object"===typeof exports&&"object"===typeof module?ca(exports):"function"===typeof define&&define.hc?define(["exports"],ca):ca(ba.j||(ba.j={}));/*
Copyright 2013 Google LLC
SPDX-License-Identifier: Apache-2.0
*/
function t(a,b){"string"===typeof a&&(a=da(a,"code"));var d=a.constructor;this.Ca=function(){return new d({options:{}})};var c=this.Ca(),e;for(e in a)c[e]="body"===e?a[e].slice():a[e];this.ua=c;this.X=[];this.qb=b;this.va=!1;this.W=[];this.$a=0;this.rb=Object.create(null);a=/^step([A-Z]\w*)$/;var g,l;for(l in this)"function"===typeof this[l]&&(g=l.match(a))&&(this.rb[g[1]]=this[l].bind(this));this.M=ja(this,this.ua,null);this.Pa=this.M.object;this.ua=da(this.W.join("\n"),"polyfills");this.W=void 0;
ta(this.ua);g=new u(this.ua,this.M);g.done=!1;this.j=[g];this.Cb();this.value=void 0;this.ua=c;g=new u(this.ua,this.M);g.done=!1;this.j.length=0;this.j[0]=g}
var ua={DONE:0,STEP:1,TASK:2,ASYNC:3},va={D:!0,ic:5},wa={configurable:!0,enumerable:!0,writable:!1},v={configurable:!0,enumerable:!1,writable:!0},A={configurable:!0,enumerable:!1,writable:!1},xa={configurable:!1,enumerable:!1,writable:!1},Ha={configurable:!1,enumerable:!0,writable:!0},Ia={STEP_ERROR:!0},Ja={SCOPE_REFERENCE:!0},Ka={VALUE_IN_DESCRIPTOR:!0},La={REGEXP_TIMEOUT:!0},Ma=[],Na=null,Oa=null,Pa="undefined"===typeof globalThis?this||window:globalThis,Qa=["onmessage = function(e) {","var result;",
"var data = e.data;","switch (data[0]) {","case 'split':","result = data[1].split(data[2], data[3]);","break;","case 'match':","result = data[1].match(data[2]);","break;","case 'search':","result = data[1].search(data[2]);","break;","case 'replace':","result = data[1].replace(data[2], data[3]);","break;","case 'exec':","var regexp = data[1];","regexp.lastIndex = data[2];","result = [regexp.exec(data[3]), data[1].lastIndex];","break;","default:","throw Error('Unknown RegExp operation: ' + data[0]);",
"}","postMessage(result);","close();","};"];function Ra(a){var b=a>>>0;return b===Number(a)?b:NaN}function Sa(a){var b=a>>>0;return String(b)===String(a)&&4294967295!==b?b:NaN}function ta(a,b,d){b?a.start=b:delete a.start;d?a.end=d:delete a.end;for(var c in a)if("loc"!==c&&a.hasOwnProperty(c)){var e=a[c];e&&"object"===typeof e&&ta(e,b,d)}}t.prototype.REGEXP_MODE=2;t.prototype.REGEXP_THREAD_TIMEOUT=1E3;t.prototype.POLYFILL_TIMEOUT=1E3;p=t.prototype;p.P=!1;p.Ma=!1;p.Ib=0;p.fc=0;
function da(a,b){var d={},c;for(c in va)d[c]=va[c];d.sourceFile=b;return Pa.j.parse(a,d)}p.Hb=function(a){var b=this.j[0];if(!b||"Program"!==b.node.type)throw Error("Expecting original AST to start with a Program node");"string"===typeof a&&(a=da(a,"appendCode"+this.Ib++));if(!a||"Program"!==a.type)throw Error("Expecting new AST to start with a Program node");bb(this,a,b.scope);Array.prototype.push.apply(b.node.body,a.body);b.node.body.kb=null;b.done=!1};
p.mb=function(){var a=this.j,b;do{var d=a[a.length-1];if(this.va)break;else if(!d||"Program"===d.node.type&&d.done){if(!this.X.length)return!1;d=this.X[0];if(!d||d.time>Date.now())d=null;else{this.X.shift();0<=d.j&&Ab(this,d,d.j);var c=new u(d.node,d.scope);d.o&&(c.ka=2,c.C=this.Pa,c.Y=d.o,c.Sa=!0,c.F=d.A);d=c}if(!d)break}c=d.node;var e=Oa;Oa=this;try{var g=this.rb[c.type](a,d,c)}catch(l){if(l!==Ia)throw this.value!==l&&(this.value=void 0),l;}finally{Oa=e}g&&a.push(g);if(this.P)throw this.value=void 0,
Error("Getter not supported in this context");if(this.Ma)throw this.value=void 0,Error("Setter not supported in this context");b||c.end||(b=Date.now()+this.POLYFILL_TIMEOUT)}while(!c.end&&b>Date.now());return!0};p.Cb=function(){for(;!this.va&&this.mb(););return this.va};p.Wb=function(){if(this.va)return ua.ASYNC;var a=this.j;return!(a=a[a.length-1])||"Program"===a.node.type&&a.done?(a=this.X[0])?a.time>Date.now()?ua.TASK:ua.STEP:ua.DONE:ua.STEP};
function Bb(a,b){a.g(b,"NaN",NaN,xa);a.g(b,"Infinity",Infinity,xa);a.g(b,"undefined",void 0,xa);a.g(b,"window",b,wa);a.g(b,"this",b,xa);a.g(b,"self",b);a.L=new D(null);a.U=new D(a.L);Cb(a,b);Db(a,b);b.Ba=a.L;a.g(b,"constructor",a.u,v);Eb(a,b);Fb(a,b);Gb(a,b);Hb(a,b);Ib(a,b);Jb(a,b);Kb(a,b);Lb(a,b);Mb(a,b);var d=a.i(function(){throw EvalError("Can't happen");},!1);d.eval=!0;a.g(b,"eval",d,v);a.g(b,"parseInt",a.i(parseInt,!1),v);a.g(b,"parseFloat",a.i(parseFloat,!1),v);a.g(b,"isNaN",a.i(isNaN,!1),v);
a.g(b,"isFinite",a.i(isFinite,!1),v);for(var c=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],e=0;e<c.length;e++)d=function(g){return function(l){try{return g(l)}catch(q){I(a,a.Eb,q.message)}}}(c[e][0]),a.g(b,c[e][1],a.i(d,!1),v);d=function(g){return Nb(a,!1,arguments)};a.g(b,"setTimeout",a.i(d,!1),v);d=function(g){return Nb(a,!0,arguments)};a.g(b,"setInterval",a.i(d,!1),
v);d=function(g){Ob(a,g)};a.g(b,"clearTimeout",a.i(d,!1),v);d=function(g){Ob(a,g)};a.g(b,"clearInterval",a.i(d,!1),v);a.OBJECT=a.u;a.OBJECT_PROTO=a.L;a.FUNCTION=a.O;a.FUNCTION_PROTO=a.U;a.ARRAY=a.ta;a.ARRAY_PROTO=a.Na;a.REGEXP=a.H;a.REGEXP_PROTO=a.Oa;a.DATE=a.ca;a.DATE_PROTO=a.ob;a.qb&&a.qb(a,b)}p.Tb=0;
function Cb(a,b){var d=/^[A-Za-z_$][\w$]*$/;var c=function(e){var g=arguments.length?String(arguments[arguments.length-1]):"",l=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(l){l=l.split(/\s*,\s*/);for(var q=0;q<l.length;q++){var C=l[q];d.test(C)||I(a,a.V,"Invalid function argument: "+C)}l=l.join(", ")}try{var R=da("(function("+l+") {"+g+"})","function"+a.Tb++)}catch(ha){I(a,a.V,"Invalid code: "+ha.message)}1!==R.body.length&&I(a,a.V,"Invalid code in function body");return Pb(a,R.body[0].na,
a.M,"anonymous")};a.O=a.i(c,!0);a.g(b,"Function",a.O,v);a.g(a.O,"prototype",a.U,v);a.g(a.U,"constructor",a.O,v);a.U.Ua=function(){};a.U.Ua.id=a.$a++;a.U.zb=!0;a.g(a.U,"length",0,A);a.U.G="Function";c=function(e,g,l){var q=a.j[a.j.length-1];q.Y=e;q.C=g;q.F=[];null!==l&&void 0!==l&&(l instanceof D?q.F=Array.from(l.h):I(a,a.o,"CreateListFromArrayLike called on non-object"));q.gb=!1};M(a,a.O,"apply",c);a.W.push("(function(){var d=Function.prototype.apply;Function.prototype.apply=function(e,b){for(var c=[],a=0;a<b.length;a++)c[a]=b[a];return d(this,e,c)}})();");
c=function(e){var g=a.j[a.j.length-1];g.Y=this;g.C=e;g.F=[];for(var l=1;l<arguments.length;l++)g.F.push(arguments[l]);g.gb=!1};M(a,a.O,"call",c);a.W.push('Object.defineProperty(Function.prototype,"bind",{configurable:!0,writable:!0,value:function(c){if("function"!==typeof this)throw TypeError("What is trying to be bound is not callable");var d=Array.prototype.slice.call(arguments,1),e=this,a=function(){},b=function(){return e.apply(this instanceof a?this:c,d.concat(Array.prototype.slice.call(arguments)))};this.prototype&&(a.prototype=this.prototype);b.prototype=new a;return b}});');
c=function(){return String(this)};M(a,a.O,"toString",c);a.g(a.O,"toString",a.i(c,!1),v);c=function(){return this.valueOf()};M(a,a.O,"valueOf",c);a.g(a.O,"valueOf",a.i(c,!1),v)}
function Db(a,b){function d(e){void 0!==e&&null!==e||I(a,a.o,"Cannot convert '"+e+"' to object")}var c=function(e){if(void 0===e||null===e)return Ac(a)?this:a.s(a.L);if(!(e instanceof D)){var g=a.s(Bc(a,e));g.data=e;return g}return e};a.u=a.i(c,!0);a.g(a.u,"prototype",a.L,v);a.g(a.L,"constructor",a.u,v);a.g(b,"Object",a.u,v);c=function(e){d(e);return a.R(Object.getOwnPropertyNames(e instanceof D?e.h:e))};a.g(a.u,"getOwnPropertyNames",a.i(c,!1),v);c=function(e){d(e);e instanceof D&&(e=e.h);return a.R(Object.keys(e))};
a.g(a.u,"keys",a.i(c,!1),v);c=function(e){if(null===e)return a.s(null);e instanceof D||I(a,a.o,"Object prototype may only be an Object or null, not "+e);return a.s(e)};a.g(a.u,"create",a.i(c,!1),v);a.W.push("(function(){var c=Object.create;Object.create=function(a,b){a=c(a);b&&Object.defineProperties(a,b);return a}})();");c=function(e,g,l){g=String(g);e instanceof D||I(a,a.o,"Object.defineProperty called on non-object: "+e);l instanceof D||I(a,a.o,"Property description must be an object");!e.preventExtensions||
g in e.h||I(a,a.o,"Can't define property '"+g+"', object is not extensible");a.g(e,g,Ka,l.h);return e};a.g(a.u,"defineProperty",a.i(c,!1),v);a.W.push('(function(){var d=Object.defineProperty;Object.defineProperty=function(e,c,a){var b={};"configurable"in a&&(b.configurable=a.configurable);"enumerable"in a&&(b.enumerable=a.enumerable);"writable"in a&&(b.writable=a.writable);"value"in a&&(b.value=a.value);"get"in a&&(b.get=a.get);"set"in a&&(b.set=a.set);return d(e,c,b)}})();\nObject.defineProperty(Object,"defineProperties",{configurable:!0,writable:!0,value:function(d,e){for(var c=Object.keys(e),a=0;a<c.length;a++)Object.defineProperty(d,c[a],e[c[a]]);return d}});');
c=function(e,g){e instanceof D||I(a,a.o,"Object.getOwnPropertyDescriptor called on non-object: "+e);g=String(g);if(g in e.h){var l=Object.getOwnPropertyDescriptor(e.h,g),q=e.Z[g];e=e.ba[g];g=a.s(a.L);q||e?(a.g(g,"get",q),a.g(g,"set",e)):(a.g(g,"value",l.value),a.g(g,"writable",l.writable));a.g(g,"configurable",l.configurable);a.g(g,"enumerable",l.enumerable);return g}};a.g(a.u,"getOwnPropertyDescriptor",a.i(c,!1),v);c=function(e){d(e);return Bc(a,e)};a.g(a.u,"getPrototypeOf",a.i(c,!1),v);c=function(e){return!!e&&
!e.preventExtensions};a.g(a.u,"isExtensible",a.i(c,!1),v);c=function(e){e instanceof D&&(e.preventExtensions=!0);return e};a.g(a.u,"preventExtensions",a.i(c,!1),v);M(a,a.u,"toString",D.prototype.toString);M(a,a.u,"toLocaleString",D.prototype.toString);M(a,a.u,"valueOf",D.prototype.valueOf);c=function(e){d(this);return this instanceof D?String(e)in this.h:this.hasOwnProperty(e)};M(a,a.u,"hasOwnProperty",c);c=function(e){d(this);return this instanceof D?Object.prototype.propertyIsEnumerable.call(this.h,
e):this.propertyIsEnumerable(e)};M(a,a.u,"propertyIsEnumerable",c);c=function(e){for(;;){e=Bc(a,e);if(!e)return!1;if(e===this)return!0}};M(a,a.u,"isPrototypeOf",c)}
function Eb(a,b){var d=function(c){var e=Ac(a)?this:Cc(a),g=arguments[0];if(1===arguments.length&&"number"===typeof g)isNaN(Ra(g))&&I(a,a.Za,"Invalid array length: "+g),e.h.length=g;else{for(g=0;g<arguments.length;g++)e.h[g]=arguments[g];e.h.length=g}return e};a.ta=a.i(d,!0);a.Na=a.ta.h.prototype;a.g(b,"Array",a.ta,v);d=function(c){return c&&"Array"===c.G};a.g(a.ta,"isArray",a.i(d,!1),v);a.g(a.Na,"length",0,{configurable:!1,enumerable:!1,writable:!0});a.Na.G="Array";a.W.push('(function(){function g(c,b){Object.defineProperty(b,"name",{value:c});Object.defineProperty(Array.prototype,c,{configurable:!0,writable:!0,value:b})}g("pop",function(){if(!this)throw TypeError();var c=Object(this),b=c.length>>>0;if(!b||0>b)c.length=0;else{b--;var d=c[b];delete c[b];c.length=b;return d}});g("push",function(c){if(!this)throw TypeError();for(var b=Object(this),d=b.length>>>0,a=0;a<arguments.length;a++)b[d]=arguments[a],d++;return b.length=d});g("shift",function(){if(!this)throw TypeError();\nvar c=Object(this),b=c.length>>>0;if(!b||0>b)c.length=0;else{for(var d=c[0],a=0;a<b-1;a++)a+1 in c?c[a]=c[a+1]:delete c[a];delete c[a];c.length=b-1;return d}});g("unshift",function(c){if(!this)throw TypeError();var b=Object(this),d=b.length>>>0;if(!d||0>d)d=0;for(var a=d-1;0<=a;a--)a in b?b[a+arguments.length]=b[a]:delete b[a+arguments.length];for(a=0;a<arguments.length;a++)b[a]=arguments[a];return b.length=d+arguments.length});g("reverse",function(){if(!this)throw TypeError();var c=Object(this),\nb=c.length>>>0;if(!b||2>b)return c;for(var d=0;d<b/2-.5;d++){var a=c[d],e=d in c;b-d-1 in c?c[d]=c[b-d-1]:delete c[d];e?c[b-d-1]=a:delete c[b-d-1]}return c});g("indexOf",function(c,b){if(!this)throw TypeError();var d=Object(this),a=d.length>>>0;b|=0;if(!a||b>=a)return-1;for(b=Math.max(0<=b?b:a-Math.abs(b),0);b<a;){if(b in d&&d[b]===c)return b;b++}return-1});g("lastIndexOf",function(c,b){if(!this)throw TypeError();var d=Object(this),a=d.length>>>0;if(!a)return-1;var e=a-1;1<arguments.length&&(e=b|\n0)&&(e=(0<e||-1)*Math.floor(Math.abs(e)));for(a=0<=e?Math.min(e,a-1):a-Math.abs(e);0<=a;){if(a in d&&d[a]===c)return a;a--}return-1});g("slice",function(c,b){if(!this)throw TypeError();var d=Object(this),a=d.length>>>0;c|=0;c=0<=c?c:Math.max(0,a+c);"undefined"!==typeof b?(Infinity!==b&&(b|=0),b=0>b?a+b:Math.min(b,a)):b=a;b-=c;a=Array(b);for(var e=0;e<b;e++)c+e in d&&(a[e]=d[c+e]);return a});g("splice",function(c,b,d){if(!this)throw TypeError();var a=Object(this),e=a.length>>>0;c|=0;c=0>c?Math.max(e+\nc,0):Math.min(c,e);b=2>arguments.length?e-c:Math.max(0,Math.min(b|0,e-c));for(var h=[],f=c;f<c+b;f++)f in a?h.push(a[f]):h.length++,f+b in a?a[f]=a[f+b]:delete a[f];for(f=c+b;f<e-b;f++)f+b in a?a[f]=a[f+b]:delete a[f];for(f=e-b;f<e;f++)delete a[f];e-=b;if(2<arguments.length){var k=arguments.length-2;for(f=e-1;f>=c;f--)f in a?a[f+k]=a[f]:delete a[f+k];e+=k;for(f=2;f<arguments.length;f++)a[c+f-2]=arguments[f]}a.length=e;return h});g("concat",function(c){if(!this)throw TypeError();for(var b=Object(this),\nd=[],a=-1;a<arguments.length;a++){var e=-1===a?b:arguments[a];if(Array.isArray(e))for(var h=0,f=e.length;h<f;h++)h in e?d.push(e[h]):d.length++;else d.push(e)}return d});g("join",function(c){if(!this)throw TypeError();var b=Object(this),d=b.length>>>0;c="undefined"===typeof c?",":""+c;for(var a="",e=0;e<d;e++)e&&c&&(a+=c),a+=null===b[e]||void 0===b[e]?"":b[e];return a});g("every",function(c,b){if(!this||"function"!==typeof c)throw TypeError();var d,a=0,e=Object(this),h=e.length>>>0;for(1<arguments.length&&\n(d=b);a<h;){if(a in e&&!c.call(d,e[a],a,e))return!1;a++}return!0});g("filter",function(c,b){if(!this||"function"!==typeof c)throw TypeError();for(var d=Object(this),a=d.length>>>0,e=[],h=2<=arguments.length?arguments[1]:void 0,f=0;f<a;f++)if(f in d){var k=d[f];c.call(h,k,f,d)&&e.push(k)}return e});g("forEach",function(c,b){if(!this||"function"!==typeof c)throw TypeError();var d,a=0,e=Object(this),h=e.length>>>0;for(1<arguments.length&&(d=b);a<h;)a in e&&c.call(d,e[a],a,e),a++});g("map",function(c,\nb){if(!this||"function"!==typeof c)throw TypeError();var d,a=0,e=Object(this),h=e.length>>>0;1<arguments.length&&(d=b);for(var f=Array(h);a<h;)a in e&&(f[a]=c.call(d,e[a],a,e)),a++;return f});g("reduce",function(c){if(!this||"function"!==typeof c)throw TypeError();var b=Object(this),d=b.length>>>0,a=0;if(2===arguments.length)var e=arguments[1];else{for(;a<d&&!(a in b);)a++;if(a>=d)throw TypeError("Reduce of empty array with no initial value");e=b[a++]}for(;a<d;a++)a in b&&(e=c(e,b[a],a,b));return e});\ng("reduceRight",function(c){if(!this||"function"!==typeof c)throw TypeError();var b=Object(this),d=(b.length>>>0)-1;if(2<=arguments.length)var a=arguments[1];else{for(;0<=d&&!(d in b);)d--;if(0>d)throw TypeError("Reduce of empty array with no initial value");a=b[d--]}for(;0<=d;d--)d in b&&(a=c(a,b[d],d,b));return a});g("some",function(c){if(!this||"function"!==typeof c)throw TypeError();for(var b=Object(this),d=b.length>>>0,a=2<=arguments.length?arguments[1]:void 0,e=0;e<d;e++)if(e in b&&c.call(a,\nb[e],e,b))return!0;return!1});g("sort",function(c){if(!this)throw TypeError();"function"!==typeof c&&(c=void 0);for(var b=0;b<this.length;b++){for(var d=0,a=0;a<this.length-b-1;a++)if(c?0<c(this[a],this[a+1]):String(this[a])>String(this[a+1])){var e=this[a],h=a in this;a+1 in this?this[a]=this[a+1]:delete this[a];h?this[a+1]=e:delete this[a+1];d++}if(!d)break}return this});g("toLocaleString",function(){if(!this)throw TypeError();for(var c=Object(this),b=c.length>>>0,d=[],a=0;a<b;a++)d[a]=null===c[a]||\nvoid 0===c[a]?"":c[a].toLocaleString();return d.join(",")})})();')}
function Fb(a,b){var d=function(c){c=arguments.length?Pa.String(c):"";return Ac(a)?(this.data=c,this):c};a.I=a.i(d,!0);a.g(b,"String",a.I,v);a.g(a.I,"fromCharCode",a.i(String.fromCharCode,!1),v);b="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" ");for(d=0;d<b.length;d++)M(a,a.I,b[d],String.prototype[b[d]]);d=function(c,e,g){e=a.S(e);g=a.S(g);try{return String(this).localeCompare(c,e,g)}catch(l){I(a,a.A,
"localeCompare: "+l.message)}};M(a,a.I,"localeCompare",d);d=function(c,e,g){var l=String(this);e=e?Number(e):void 0;if(P(a,c,a.H)&&(c=c.data,Dc(a,c,g),2===a.REGEXP_MODE)){if(Na)c=Ec(a,"string.split(separator, limit)",{string:l,separator:c,limit:e},c,g),c!==La&&g(a.R(c));else{var q=a.ja(),C=Fc(a,c,q,g);q.onmessage=function(R){clearTimeout(C);g(a.R(R.data))};q.postMessage(["split",l,c,e])}return}c=l.split(c,e);g(a.R(c))};Gc(a,a.I,"split",d);d=function(c,e){var g=String(this);c=P(a,c,a.H)?c.data:new RegExp(c);
Dc(a,c,e);if(2===a.REGEXP_MODE)if(Na)c=Ec(a,"string.match(regexp)",{string:g,regexp:c},c,e),c!==La&&e(c&&Hc(a,c));else{var l=a.ja(),q=Fc(a,c,l,e);l.onmessage=function(C){clearTimeout(q);e(C.data&&Hc(a,C.data))};l.postMessage(["match",g,c])}else c=g.match(c),e(c&&Hc(a,c))};Gc(a,a.I,"match",d);d=function(c,e){var g=String(this);P(a,c,a.H)?c=c.data:c=new RegExp(c);Dc(a,c,e);if(2===a.REGEXP_MODE)if(Na)c=Ec(a,"string.search(regexp)",{string:g,regexp:c},c,e),c!==La&&e(c);else{var l=a.ja(),q=Fc(a,c,l,e);
l.onmessage=function(C){clearTimeout(q);e(C.data)};l.postMessage(["search",g,c])}else e(g.search(c))};Gc(a,a.I,"search",d);d=function(c,e,g){var l=String(this);e=String(e);if(P(a,c,a.H)&&(c=c.data,Dc(a,c,g),2===a.REGEXP_MODE)){if(Na)c=Ec(a,"string.replace(substr, newSubstr)",{string:l,substr:c,newSubstr:e},c,g),c!==La&&g(c);else{var q=a.ja(),C=Fc(a,c,q,g);q.onmessage=function(R){clearTimeout(C);g(R.data)};q.postMessage(["replace",l,c,e])}return}g(l.replace(c,e))};Gc(a,a.I,"replace",d);a.W.push('(function(){var g=String.prototype.replace;String.prototype.replace=function(c,e){if("function"!==typeof e)return g.call(this,c,e);var b=this;if(c instanceof RegExp){for(var d=[],a=c.exec(b);a;){a.push(a.index,b);var f=e.apply(null,a);d.push([a.index,a[0].length,f]);a=c.global?c.exec(b):null}for(a=d.length-1;0<=a;a--)b=b.substring(0,d[a][0])+d[a][2]+b.substring(d[a][0]+d[a][1])}else a=b.indexOf(c),-1!==a&&(f=e(b.substr(a,c.length),a,b),b=b.substring(0,a)+f+b.substring(a+c.length));return b}})();')}
function Gb(a,b){a.nb=a.i(function(d){d=Pa.Boolean(d);return Ac(a)?(this.data=d,this):d},!0);a.g(b,"Boolean",a.nb,v)}
function Hb(a,b){var d=function(c){c=arguments.length?Pa.Number(c):0;return Ac(a)?(this.data=c,this):c};a.da=a.i(d,!0);a.g(b,"Number",a.da,v);b=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"];for(d=0;d<b.length;d++)a.g(a.da,b[d],Number[b[d]],xa);d=function(c){try{return Number(this).toExponential(c)}catch(e){I(a,a.A,e.message)}};M(a,a.da,"toExponential",d);d=function(c){try{return Number(this).toFixed(c)}catch(e){I(a,a.A,e.message)}};M(a,a.da,"toFixed",d);d=function(c){try{return Number(this).toPrecision(c)}catch(e){I(a,
a.A,e.message)}};M(a,a.da,"toPrecision",d);d=function(c){try{return Number(this).toString(c)}catch(e){I(a,a.A,e.message)}};M(a,a.da,"toString",d);d=function(c,e){c=c?a.S(c):void 0;e=e?a.S(e):void 0;try{return Number(this).toLocaleString(c,e)}catch(g){I(a,a.A,"toLocaleString: "+g.message)}};M(a,a.da,"toLocaleString",d)}
function Ib(a,b){var d=function(e,g){if(!Ac(a))return Pa.Date();var l=[null].concat(Array.from(arguments));this.data=new (Function.prototype.bind.apply(Pa.Date,l));return this};a.ca=a.i(d,!0);a.ob=a.ca.h.prototype;a.g(b,"Date",a.ca,v);a.g(a.ca,"now",a.i(Date.now,!1),v);a.g(a.ca,"parse",a.i(Date.parse,!1),v);a.g(a.ca,"UTC",a.i(Date.UTC,!1),v);b="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
for(var c=0;c<b.length;c++)d=function(e){return function(g){var l=this.data;l instanceof Date||I(a,a.o,e+" not called on a Date");for(var q=[],C=0;C<arguments.length;C++)q[C]=a.S(arguments[C]);return l[e].apply(l,q)}}(b[c]),M(a,a.ca,b[c],d);d=function(){try{return this.data.toISOString()}catch(e){I(a,a.Za,"toISOString: "+e.message)}};M(a,a.ca,"toISOString",d)}
function Jb(a,b){var d=function(c,e){if(Ac(a))var g=this;else{if(void 0===e&&P(a,c,a.H))return c;g=a.s(a.Oa)}c=void 0===c?"":String(c);e=e?String(e):"";/^[gmi]*$/.test(e)||I(a,a.V,"Invalid regexp flag: "+e);try{var l=new Pa.RegExp(c,e)}catch(q){I(a,a.V,q.message)}Ic(a,g,l);return g};a.H=a.i(d,!0);a.Oa=a.H.h.prototype;a.g(b,"RegExp",a.H,v);a.g(a.H.h.prototype,"global",void 0,A);a.g(a.H.h.prototype,"ignoreCase",void 0,A);a.g(a.H.h.prototype,"multiline",void 0,A);a.g(a.H.h.prototype,"source","(?:)",
A);a.W.push('Object.defineProperty(RegExp.prototype,"test",{configurable:!0,writable:!0,value:function(a){return!!this.exec(a)}});');d=function(c,e){var g=this.data;c=String(c);g.lastIndex=Number(a.N(this,"lastIndex"));Dc(a,g,e);if(2===a.REGEXP_MODE)if(Na)c=Ec(a,"regexp.exec(string)",{string:c,regexp:g},g,e),c!==La&&(a.g(this,"lastIndex",g.lastIndex),e(Hc(a,c)));else{var l=a.ja(),q=Fc(a,g,l,e),C=this;l.onmessage=function(R){clearTimeout(q);a.g(C,"lastIndex",R.data[1]);e(Hc(a,R.data[0]))};l.postMessage(["exec",
g,g.lastIndex,c])}else c=g.exec(c),a.g(this,"lastIndex",g.lastIndex),e(Hc(a,c))};Gc(a,a.H,"exec",d)}function Hc(a,b){if(b){for(var d=Object.getOwnPropertyNames(b),c=0;c<d.length;c++){var e=d[c];isNaN(Number(e))&&"length"!==e&&"input"!==e&&"index"!==e&&delete b[e]}return a.R(b)}return null}
function Kb(a,b){function d(c){var e=a.i(function(g){var l=Ac(a)?this:a.Da(e);Jc(a,l,g);return l},!0);a.g(e,"prototype",a.Da(a.A),v);a.g(e.h.prototype,"name",c,v);a.g(b,c,e,v);return e}a.A=a.i(function(c){var e=Ac(a)?this:a.Da(a.A);Jc(a,e,c);return e},!0);a.g(b,"Error",a.A,v);a.g(a.A.h.prototype,"message","",v);a.g(a.A.h.prototype,"name","Error",v);d("EvalError");a.Za=d("RangeError");a.pb=d("ReferenceError");a.V=d("SyntaxError");a.o=d("TypeError");a.Eb=d("URIError")}
function Lb(a,b){var d=a.s(a.L);a.g(b,"Math",d,v);var c="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(b=0;b<c.length;b++)a.g(d,c[b],Math[c[b]],A);c="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" ");for(b=0;b<c.length;b++)a.g(d,c[b],a.i(Math[c[b]],!1),v)}
function Mb(a,b){var d=a.s(a.L);a.g(b,"JSON",d,v);b=function(c){try{var e=JSON.parse(String(c))}catch(g){I(a,a.V,g.message)}return a.R(e)};a.g(d,"parse",a.i(b,!1));b=function(c,e,g){e&&"Function"===e.G?I(a,a.o,"Function replacer on JSON.stringify not supported"):e&&"Array"===e.G?(e=a.S(e),e=e.filter(function(q){return"string"===typeof q||"number"===typeof q})):e=null;"string"!==typeof g&&"number"!==typeof g&&(g=void 0);c=a.S(c);try{var l=JSON.stringify(c,e,g)}catch(q){I(a,a.o,q.message)}return l};
a.g(d,"stringify",a.i(b,!1))}function P(a,b,d){if(null===b||void 0===b||!d)return!1;d=d.h.prototype;if(b===d)return!0;for(b=Bc(a,b);b;){if(b===d)return!0;b=b.Ba}return!1}function Ic(a,b,d){b.data=new RegExp(d.source,d.flags);a.g(b,"lastIndex",d.lastIndex,v);a.g(b,"source",d.source,A);a.g(b,"global",d.global,A);a.g(b,"ignoreCase",d.ignoreCase,A);a.g(b,"multiline",d.multiline,A)}
function Jc(a,b,d){d&&a.g(b,"message",String(d),v);d=[];for(var c=a.j.length-1;0<=c;c--){var e=a.j[c],g=e.node;"CallExpression"===g.type&&(e=e.Y)&&d.length&&(d[d.length-1].Lb=a.N(e,"name"));!g.aa||d.length&&"CallExpression"!==g.type||d.push({Kb:g.aa})}c=String(a.N(b,"name"));g=String(a.N(b,"message"));g=c+": "+g+"\n";for(c=0;c<d.length;c++){var l=d[c].Kb;e=d[c].Lb;l=l.source+":"+l.start.line+":"+l.start.cb;g=e?g+(" at "+e+" ("+l+")\n"):g+(" at "+l+"\n")}a.g(b,"stack",g.trim(),v)}
p.ja=function(){var a=this.ja.Jb;a||(a=new Blob([Qa.join("\n")],{type:"application/javascript"}),this.ja.Jb=a);return new Worker(URL.createObjectURL(a))};function Ec(a,b,d,c,e){var g={timeout:a.REGEXP_THREAD_TIMEOUT};try{return Na.runInNewContext(b,d,g)}catch(l){e(null),I(a,a.A,"RegExp Timeout: "+c)}return La}
function Dc(a,b,d){if(0===a.REGEXP_MODE)var c=!1;else if(1===a.REGEXP_MODE)c=!0;else if(Na)c=!0;else if("function"===typeof Worker&&"function"===typeof URL)c=!0;else if("function"===typeof require){try{Na=require("vm")}catch(e){}c=!!Na}else c=!1;c||(d(null),I(a,a.A,"Regular expressions not supported: "+b))}function Fc(a,b,d,c){return setTimeout(function(){d.terminate();c(null);try{I(a,a.A,"RegExp Timeout: "+b)}catch(e){}},a.REGEXP_THREAD_TIMEOUT)}p.Da=function(a){return this.s(a&&a.h.prototype)};
p.s=function(a){if("object"!==typeof a)throw Error("Non object prototype");a=new D(a);P(this,a,this.A)&&(a.G="Error");return a};function Cc(a){var b=a.s(a.Na);a.g(b,"length",0,{configurable:!1,enumerable:!1,writable:!0});b.G="Array";return b}function $c(a,b,d){var c=a.s(a.U);d?(d=a.s(a.L),a.g(c,"prototype",d,v),a.g(d,"constructor",c,v)):c.zb=!0;a.g(c,"length",b,A);c.G="Function";return c}
function Pb(a,b,d,c){var e=$c(a,b.ra.length,!0);e.Wa=d;e.node=b;a.g(e,"name",b.id?String(b.id.name):c||"",A);return e}p.i=function(a,b){b=$c(this,a.length,b);b.Ua=a;a.id=this.$a++;this.g(b,"name",a.name,A);return b};p.ub=function(a){var b=$c(this,a.length,!0);b.ab=a;a.id=this.$a++;this.g(b,"name",a.name,A);return b};
p.R=function(a,b){if(null===a||void 0===a||!0===a||!1===a||"string"===typeof a||"number"===typeof a)return a;if(a instanceof D)throw Error("Object is already pseudo");b=b||{ha:[],qa:[]};var d=b.qa.indexOf(a);if(-1!==d)return b.ha[d];b.qa.push(a);if(a instanceof RegExp){var c=this.s(this.Oa);Ic(this,c,a);b.ha.push(c);return c}if(a instanceof Date)return c=this.s(this.ob),c.data=new Date(a.valueOf()),b.ha.push(c),c;if("function"===typeof a){var e=this;c=Object.getOwnPropertyDescriptor(a,"prototype");
c=this.i(function(){var g=Array.prototype.slice.call(arguments).map(function(l){return e.S(l)});g=a.apply(e,g);return e.R(g)},!!c);b.ha.push(c);return c}d=Array.isArray(a)?Cc(this):this.s(this.L);b.ha.push(d);for(c in a)this.g(d,c,this.R(a[c],b));return d};
p.S=function(a,b){if(null===a||void 0===a||!0===a||!1===a||"string"===typeof a||"number"===typeof a)return a;if(!(a instanceof D))throw Error("Object is not pseudo");b=b||{ha:[],qa:[]};var d=b.ha.indexOf(a);if(-1!==d)return b.qa[d];b.ha.push(a);if(P(this,a,this.H)){var c=new RegExp(a.data.source,a.data.flags);c.lastIndex=a.data.lastIndex;b.qa.push(c);return c}if(P(this,a,this.ca))return a=new Date(a.data.valueOf()),b.qa.push(a),a;d=P(this,a,this.ta)?[]:{};b.qa.push(d);for(c in a.h){var e=this.S(a.h[c],
b);Object.defineProperty(d,c,{value:e,writable:!0,enumerable:!0,configurable:!0})}return d};function Bc(a,b){switch(typeof b){case "number":return a.da.h.prototype;case "boolean":return a.nb.h.prototype;case "string":return a.I.h.prototype}return b?b.Ba:null}
p.N=function(a,b){if(this.P)throw Error("Getter not supported in that context");b=String(b);void 0!==a&&null!==a||I(this,this.o,"Cannot read property '"+b+"' of "+a);if("object"===typeof a&&!(a instanceof D))throw TypeError("Expecting native value or pseudo object");if("length"===b){if(P(this,a,this.I))return String(a).length}else if(64>b.charCodeAt(0)&&P(this,a,this.I)){var d=Sa(b);if(!isNaN(d)&&d<String(a).length)return String(a)[d]}do if(a.h&&b in a.h)return(d=a.Z[b])?(this.P=!0,d):a.h[b];while(a=
Bc(this,a))};function ad(a,b,d){if(!(b instanceof D))throw TypeError("Primitive data type has no properties");d=String(d);if("length"===d&&P(a,b,a.I))return!0;if(P(a,b,a.I)){var c=Sa(d);if(!isNaN(c)&&c<String(b).length)return!0}do if(b.h&&d in b.h)return!0;while(b=Bc(a,b));return!1}
p.g=function(a,b,d,c){if(this.Ma)throw Error("Setter not supported in that context");b=String(b);void 0!==a&&null!==a||I(this,this.o,"Cannot set property '"+b+"' of "+a);if("object"===typeof a&&!(a instanceof D))throw TypeError("Expecting native value or pseudo object");c&&("get"in c||"set"in c)&&("value"in c||"writable"in c)&&I(this,this.o,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var e=!this.j||bd(this).T;if(a instanceof D){if(P(this,a,this.I)){var g=
Sa(b);if("length"===b||!isNaN(g)&&g<String(a).length){e&&I(this,this.o,"Cannot assign to read only property '"+b+"' of String '"+a.data+"'");return}}if("Array"===a.G)if(g=a.h.length,"length"===b){if(c){if(!("value"in c))return;d=c.value}d=Ra(d);isNaN(d)&&I(this,this.Za,"Invalid array length");if(d<g)for(l in a.h){var l=Sa(l);!isNaN(l)&&d<=l&&delete a.h[l]}}else isNaN(l=Sa(b))||(a.h.length=Math.max(g,l+1));if(!a.preventExtensions||b in a.h)if(c){e={};"get"in c&&c.get&&(a.Z[b]=c.get,e.get=this.g.Zb);
"set"in c&&c.set&&(a.ba[b]=c.set,e.set=this.g.$b);"configurable"in c&&(e.configurable=c.configurable);"enumerable"in c&&(e.enumerable=c.enumerable);"writable"in c&&(e.writable=c.writable,delete a.Z[b],delete a.ba[b]);"value"in c?(e.value=c.value,delete a.Z[b],delete a.ba[b]):d!==Ka&&(e.value=d,delete a.Z[b],delete a.ba[b]);try{Object.defineProperty(a.h,b,e)}catch(q){I(this,this.o,"Cannot redefine property: "+b)}"get"in c&&!c.get&&delete a.Z[b];"set"in c&&!c.set&&delete a.ba[b]}else{if(d===Ka)throw ReferenceError("Value not specified");
for(c=a;!(b in c.h);)if(c=Bc(this,c),!c){c=a;break}if(c.ba&&c.ba[b])return this.Ma=!0,c.ba[b];if(c.Z&&c.Z[b])e&&I(this,this.o,"Cannot set property '"+b+"' of object '"+a+"' which only has a getter");else try{a.h[b]=d}catch(q){e&&I(this,this.o,"Cannot assign to read only property '"+b+"' of object '"+a+"'")}}else e&&I(this,this.o,"Can't add property '"+b+"', object is not extensible")}else e&&I(this,this.o,"Can't create property '"+b+"' on '"+a+"'")};
p.g.Zb=function(){throw Error("Placeholder getter");};p.g.$b=function(){throw Error("Placeholder setter");};function M(a,b,d,c){a.g(b.h.prototype,d,a.i(c,!1),v)}function Gc(a,b,d,c){a.g(b.h.prototype,d,a.ub(c),v)}function bd(a){a=a.j[a.j.length-1].scope;if(!a)throw Error("No scope found");return a}
function ja(a,b,d){var c=!1;if(d&&d.T)c=!0;else{var e=b.body&&b.body[0];e&&e.na&&"Literal"===e.na.type&&"use strict"===e.na.value&&(c=!0)}e=a.s(null);c=new cd(d,c,e);d||Bb(a,c.object);bb(a,b,c);return c}function dd(a,b,d){if(!b)throw Error("parentScope required");a=d||a.s(null);return new cd(b,b.T,a)}
function ed(a,b){for(var d=bd(a);d&&d!==a.M;){if(b in d.object.h)return d.object.h[b];d=d.Wa}if(d===a.M&&ad(a,d.object,b))return a.N(d.object,b);d=a.j[a.j.length-1].node;"UnaryExpression"===d.type&&"typeof"===d.operator||I(a,a.pb,b+" is not defined")}
function fd(a,b,d){for(var c=bd(a),e=c.T;c&&c!==a.M;){if(b in c.object.h){try{c.object.h[b]=d}catch(g){e&&I(a,a.o,"Cannot assign to read only variable '"+b+"'")}return}c=c.Wa}if(c===a.M&&(!e||ad(a,c.object,b)))return a.g(c.object,b,d);I(a,a.pb,b+" is not defined")}
function bb(a,b,d){if(b.kb)var c=b.kb;else{c=Object.create(null);switch(b.type){case "VariableDeclaration":for(var e=0;e<b.ga.length;e++)c[b.ga[e].id.name]=!0;break;case "FunctionDeclaration":c[b.id.name]=b;break;case "BlockStatement":case "CatchClause":case "DoWhileStatement":case "ForInStatement":case "ForStatement":case "IfStatement":case "LabeledStatement":case "Program":case "SwitchCase":case "SwitchStatement":case "TryStatement":case "WithStatement":case "WhileStatement":var g=b.constructor,
l;for(l in b)if("loc"!==l){var q=b[l];if(q&&"object"===typeof q)if(Array.isArray(q))for(e=0;e<q.length;e++){if(q[e]&&q[e].constructor===g){var C=bb(a,q[e],d);for(l in C)c[l]=C[l]}}else if(q.constructor===g)for(l in C=bb(a,q,d),C)c[l]=C[l]}}b.kb=c}for(l in c)!0===c[l]?a.g(d.object,l,void 0,Ha):a.g(d.object,l,Pb(a,c[l],d),Ha);return c}function Ac(a){return a.j[a.j.length-1].isConstructor}function gd(a,b){return b[0]===Ja?ed(a,b[1]):a.N(b[0],b[1])}
function hd(a,b,d){return b[0]===Ja?fd(a,b[1],d):a.g(b[0],b[1],d)}function I(a,b,d){if(!a.M)throw void 0===d?b:d;void 0!==d&&b instanceof D&&(b=a.Da(b),Jc(a,b,d));id(a,4,b);throw Ia;}
function id(a,b,d,c){if(0===b)throw TypeError("Should not unwind for NORMAL completions");var e=a.j;a:for(;0<e.length;e.pop()){var g=e[e.length-1];switch(g.node.type){case "TryStatement":g.fa={type:b,value:d,label:c};return;case "CallExpression":case "NewExpression":if(3===b){g.value=d;return}if(1===b||2===b)throw Error("Unsyntactic break/continue not rejected by Acorn");break;case "Program":if(3===b)return;g.done=!0;break a}if(1===b){if(c?g.labels&&-1!==g.labels.indexOf(c):g.$||g.Xb){e.pop();return}}else if(2===
b&&(c?g.labels&&-1!==g.labels.indexOf(c):g.$))return}P(a,d,a.A)?(b={EvalError:EvalError,RangeError:RangeError,ReferenceError:ReferenceError,SyntaxError:SyntaxError,TypeError:TypeError,URIError:URIError},c=String(a.N(d,"name")),e=a.N(d,"message").valueOf(),b=(b[c]||Error)(e),b.stack=String(a.N(d,"stack"))):b=String(d);a.value=b;throw b;}
function Q(a,b){switch(b.type){case "ArrayExpression":return"[...]";case "BinaryExpression":case "LogicalExpression":return Q(a,b.left)+" "+b.operator+" "+Q(a,b.right);case "CallExpression":return Q(a,b.callee)+"(...)";case "ConditionalExpression":return Q(a,b.test)+" ? "+Q(a,b.ea)+" : "+Q(a,b.alternate);case "Identifier":return b.name;case "Literal":return b.raw;case "MemberExpression":var d=Q(a,b.object);a=Q(a,b.Xa);return b.eb?d+"["+a+"]":d+"."+a;case "NewExpression":return"new "+Q(a,b.callee)+
"(...)";case "ObjectExpression":return"{...}";case "ThisExpression":return"this";case "UnaryExpression":return b.operator+" "+Q(a,b.J);case "UpdateExpression":return d=Q(a,b.J),b.prefix?b.operator+d:d+b.operator}return"???"}
function Nb(a,b,d){var c=a.j[a.j.length-1],e=Array.from(d),g=e.shift();d=Math.max(Number(e.shift()||0),0);var l=a.Ca();if(g instanceof D&&"Function"===g.G){var q=g;l.type="CallExpression";c=c.scope}else{try{var C=da(String(g),"taskCode"+a.fc++)}catch(R){I(a,a.V,"Invalid code: "+R.message)}l.type="EvalProgram_";l.body=C.body;c=c.node.arguments[0];ta(l,c?c.start:void 0,c?c.end:void 0);c=a.M;e.length=0}b=new jd(q,e,c,l,b?d:-1);Ab(a,b,d);return b.u}
function Ab(a,b,d){b.time=Date.now()+d;a.X.push(b);a.X.sort(function(c,e){return c.time-e.time})}function Ob(a,b){for(var d=0;d<a.X.length;d++)if(a.X[d].u==b){a.X.splice(d,1);break}}function kd(a,b,d){if(!a.P)throw Error("Unexpected call to createGetter");a.P=!1;d=Array.isArray(d)?d[0]:d;var c=a.Ca();c.type="CallExpression";a=new u(c,a.j[a.j.length-1].scope);a.ka=2;a.C=d;a.Y=b;a.Sa=!0;a.F=[];return a}
function ld(a,b,d,c){if(!a.Ma)throw Error("Unexpected call to createSetter");a.Ma=!1;d=Array.isArray(d)?d[0]:a.Pa;var e=a.Ca();e.type="CallExpression";a=new u(e,a.j[a.j.length-1].scope);a.ka=2;a.C=d;a.Y=b;a.Sa=!0;a.F=[c];return a}function md(a,b){return void 0===b||null===b?a.Pa:b instanceof D?b:(a=a.s(Bc(a,b)),a.data=b,a)}p.Ub=function(){return this.M};p.Vb=function(){return this.j};p.cc=function(a){this.j=a};function u(a,b){this.node=a;this.scope=b}
function cd(a,b,d){this.Wa=a;this.T=b;this.object=d}function D(a){this.Z=Object.create(null);this.ba=Object.create(null);this.h=Object.create(null);this.Ba=a}p=D.prototype;p.Ba=null;p.G="Object";p.data=null;
p.toString=function(){if(!Oa)return"[object Interpreter.Object]";if(!(this instanceof D))return String(this);if("Array"===this.G){var a=Ma;a.push(this);try{var b=[],d=this.h.length,c=!1;1024<d&&(d=1E3,c=!0);for(var e=0;e<d;e++){var g=this.h[e];b[e]=g instanceof D&&-1!==a.indexOf(g)?"...":g}c&&b.push("...")}finally{a.pop()}return b.join(",")}if("Error"===this.G){a=Ma;if(-1!==a.indexOf(this))return"[object Error]";d=this;do if("name"in d.h){b=d.h.name;break}while(d=d.Ba);d=this;do if("message"in d.h){c=
d.h.message;break}while(d=d.Ba);a.push(this);try{b=b&&String(b),c=c&&String(c)}finally{a.pop()}return c?b+": "+c:String(b)}return null!==this.data?String(this.data):"[object "+this.G+"]"};p.valueOf=function(){return!Oa||void 0===this.data||null===this.data||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function jd(a,b,d,c,e){this.o=a;this.A=b;this.scope=d;this.node=c;this.j=e;this.u=++nd;this.time=0}var nd=0;
t.prototype.stepArrayExpression=function(a,b,d){d=d.elements;var c=b.B||0;b.Qa?(this.g(b.Qa,c,b.value),c++):(b.Qa=Cc(this),b.Qa.h.length=d.length);for(;c<d.length;){if(d[c])return b.B=c,new u(d[c],b.scope);c++}a.pop();a[a.length-1].value=b.Qa};
t.prototype.stepAssignmentExpression=function(a,b,d){if(!b.la)return b.la=!0,b=new u(d.left,b.scope),b.wa=!0,b;if(!b.Ga){b.Ia||(b.Ia=b.value);b.Ea&&(b.oa=b.value);if(!b.Ea&&"="!==d.operator&&(a=gd(this,b.Ia),b.oa=a,this.P))return b.Ea=!0,kd(this,a,b.Ia);b.Ga=!0;"="===d.operator&&"Identifier"===d.left.type&&(b.Ra=d.left.name);return new u(d.right,b.scope)}if(b.xa)a.pop(),a[a.length-1].value=b.jb;else{var c=b.oa,e=b.value;switch(d.operator){case "=":c=e;break;case "+=":c+=e;break;case "-=":c-=e;break;
case "*=":c*=e;break;case "/=":c/=e;break;case "%=":c%=e;break;case "<<=":c<<=e;break;case ">>=":c>>=e;break;case ">>>=":c>>>=e;break;case "&=":c&=e;break;case "^=":c^=e;break;case "|=":c|=e;break;default:throw SyntaxError("Unknown assignment expression: "+d.operator);}if(d=hd(this,b.Ia,c))return b.xa=!0,b.jb=c,ld(this,d,b.Ia,c);a.pop();a[a.length-1].value=c}};
t.prototype.stepBinaryExpression=function(a,b,d){if(!b.la)return b.la=!0,new u(d.left,b.scope);if(!b.Ga)return b.Ga=!0,b.oa=b.value,new u(d.right,b.scope);a.pop();var c=b.oa;b=b.value;switch(d.operator){case "==":d=c==b;break;case "!=":d=c!=b;break;case "===":d=c===b;break;case "!==":d=c!==b;break;case ">":d=c>b;break;case ">=":d=c>=b;break;case "<":d=c<b;break;case "<=":d=c<=b;break;case "+":d=c+b;break;case "-":d=c-b;break;case "*":d=c*b;break;case "/":d=c/b;break;case "%":d=c%b;break;case "&":d=
c&b;break;case "|":d=c|b;break;case "^":d=c^b;break;case "<<":d=c<<b;break;case ">>":d=c>>b;break;case ">>>":d=c>>>b;break;case "in":b instanceof D||I(this,this.o,"'in' expects an object, not '"+b+"'");d=ad(this,b,c);break;case "instanceof":P(this,b,this.O)||I(this,this.o,"'instanceof' expects an object, not '"+b+"'");d=c instanceof D?P(this,c,b):!1;break;default:throw SyntaxError("Unknown binary operator: "+d.operator);}a[a.length-1].value=d};
t.prototype.stepBlockStatement=function(a,b,d){var c=b.B||0;if(d=d.body[c])return b.B=c+1,new u(d,b.scope);a.pop()};t.prototype.stepBreakStatement=function(a,b,d){id(this,1,void 0,d.label&&d.label.name)};t.prototype.Fb=0;
t.prototype.stepCallExpression=function(a,b,d){if(!b.ka){b.ka=1;var c=new u(d.callee,b.scope);c.wa=!0;return c}if(1===b.ka){b.ka=2;var e=b.value;if(Array.isArray(e)){if(b.Y=gd(this,e),e[0]===Ja?b.Mb="eval"===e[1]:b.C=e[0],e=b.Y,this.P)return b.ka=1,kd(this,e,b.value)}else b.Y=e;b.F=[];b.B=0}e=b.Y;if(!b.Sa){0!==b.B&&b.F.push(b.value);if(d.arguments[b.B])return new u(d.arguments[b.B++],b.scope);if("NewExpression"===d.type){e instanceof D&&!e.zb||I(this,this.o,Q(this,d.callee)+" is not a constructor");
if(e===this.ta)b.C=Cc(this);else{var g=e.h.prototype;if("object"!==typeof g||null===g)g=this.L;b.C=this.s(g)}b.isConstructor=!0}b.Sa=!0}if(b.gb)a.pop(),a[a.length-1].value=b.isConstructor&&"object"!==typeof b.value?b.C:b.value;else{b.gb=!0;e instanceof D||I(this,this.o,Q(this,d.callee)+" is not a function");if(a=e.node){d=ja(this,a.body,e.Wa);c=Cc(this);for(e=0;e<b.F.length;e++)this.g(c,e,b.F[e]);this.g(d.object,"arguments",c);for(e=0;e<a.ra.length;e++)this.g(d.object,a.ra[e].name,b.F.length>e?b.F[e]:
void 0);d.T||(b.C=md(this,b.C));this.g(d.object,"this",b.C,wa);b.value=void 0;return new u(a.body,d)}if(e.eval)if(e=b.F[0],"string"!==typeof e)b.value=e;else{try{c=da(String(e),"eval"+this.Fb++)}catch(q){I(this,this.V,"Invalid code: "+q.message)}e=this.Ca();e.type="EvalProgram_";e.body=c.body;ta(e,d.start,d.end);d=b.Mb?b.scope:this.M;d.T?d=ja(this,c,d):bb(this,c,d);this.value=void 0;return new u(e,d)}else if(e.Ua)b.scope.T||(b.C=md(this,b.C)),b.value=e.Ua.apply(b.C,b.F);else if(e.ab){var l=this;c=
e.ab.length-1;c=b.F.concat(Array(c)).slice(0,c);c.push(function(q){b.value=q;l.va=!1});this.va=!0;b.scope.T||(b.C=md(this,b.C));e.ab.apply(b.C,c)}else I(this,this.o,Q(this,d.callee)+" is not callable")}};
t.prototype.stepConditionalExpression=function(a,b,d){var c=b.pa||0;if(0===c)return b.pa=1,new u(d.test,b.scope);if(1===c){b.pa=2;if((c=!!b.value)&&d.ea)return new u(d.ea,b.scope);if(!c&&d.alternate)return new u(d.alternate,b.scope);this.value=void 0}a.pop();"ConditionalExpression"===d.type&&(a[a.length-1].value=b.value)};t.prototype.stepContinueStatement=function(a,b,d){id(this,2,void 0,d.label&&d.label.name)};t.prototype.stepDebuggerStatement=function(a){a.pop()};
t.prototype.stepDoWhileStatement=function(a,b,d){"DoWhileStatement"===d.type&&void 0===b.ia&&(b.value=!0,b.ia=!0);if(!b.ia)return b.ia=!0,new u(d.test,b.scope);if(!b.value)a.pop();else if(d.body)return b.ia=!1,b.$=!0,new u(d.body,b.scope)};t.prototype.stepEmptyStatement=function(a){a.pop()};t.prototype.stepEvalProgram_=function(a,b,d){var c=b.B||0;if(d=d.body[c])return b.B=c+1,new u(d,b.scope);a.pop();a[a.length-1].value=this.value};
t.prototype.stepExpressionStatement=function(a,b,d){if(!b.ma)return this.value=void 0,b.ma=!0,new u(d.na,b.scope);a.pop();this.value=b.value};
t.prototype.stepForInStatement=function(a,b,d){if(!b.Rb&&(b.Rb=!0,d.left.ga&&d.left.ga[0].ya))return b.scope.T&&I(this,this.V,"for-in loop variable declaration may not have an initializer"),new u(d.left,b.scope);if(!b.Fa)return b.Fa=!0,b.sa||(b.sa=b.value),new u(d.right,b.scope);b.$||(b.$=!0,b.v=b.value,b.lb=Object.create(null));if(void 0===b.Ta)a:for(;;){if(b.v instanceof D)for(b.Aa||(b.Aa=Object.getOwnPropertyNames(b.v.h));;){var c=b.Aa.shift();if(void 0===c)break;if(Object.prototype.hasOwnProperty.call(b.v.h,
c)&&!b.lb[c]&&(b.lb[c]=!0,Object.prototype.propertyIsEnumerable.call(b.v.h,c))){b.Ta=c;break a}}else if(null!==b.v&&void 0!==b.v)for(b.Aa||(b.Aa=Object.getOwnPropertyNames(b.v));;){c=b.Aa.shift();if(void 0===c)break;b.lb[c]=!0;if(Object.prototype.propertyIsEnumerable.call(b.v,c)){b.Ta=c;break a}}b.v=Bc(this,b.v);b.Aa=null;if(null===b.v){a.pop();return}}if(!b.wb)if(b.wb=!0,a=d.left,"VariableDeclaration"===a.type)b.sa=[Ja,a.ga[0].id.name];else return b.sa=null,b=new u(a,b.scope),b.wa=!0,b;b.sa||(b.sa=
b.value);if(!b.xa&&(b.xa=!0,a=b.Ta,c=hd(this,b.sa,a)))return ld(this,c,b.sa,a);b.Ta=void 0;b.wb=!1;b.xa=!1;if(d.body)return new u(d.body,b.scope)};t.prototype.stepForStatement=function(a,b,d){switch(b.pa){default:b.pa=1;if(d.ya)return new u(d.ya,b.scope);break;case 1:b.pa=2;if(d.test)return new u(d.test,b.scope);break;case 2:b.pa=3;if(d.test&&!b.value)a.pop();else return b.$=!0,new u(d.body,b.scope);break;case 3:if(b.pa=1,d.update)return new u(d.update,b.scope)}};
t.prototype.stepFunctionDeclaration=function(a){a.pop()};t.prototype.stepFunctionExpression=function(a,b,d){a.pop();b=a[a.length-1];a=b.scope;d.id&&(a=dd(this,a));b.value=Pb(this,d,a,b.Ra);d.id&&this.g(a.object,d.id.name,b.value,wa)};t.prototype.stepIdentifier=function(a,b,d){a.pop();if(b.wa)a[a.length-1].value=[Ja,d.name];else{b=ed(this,d.name);if(this.P)return kd(this,b,this.Pa);a[a.length-1].value=b}};t.prototype.stepIfStatement=t.prototype.stepConditionalExpression;
t.prototype.stepLabeledStatement=function(a,b,d){a.pop();a=b.labels||[];a.push(d.label.name);b=new u(d.body,b.scope);b.labels=a;return b};t.prototype.stepLiteral=function(a,b,d){a.pop();b=d.value;b instanceof RegExp&&(d=this.s(this.Oa),Ic(this,d,b),b=d);a[a.length-1].value=b};
t.prototype.stepLogicalExpression=function(a,b,d){if("&&"!==d.operator&&"||"!==d.operator)throw SyntaxError("Unknown logical operator: "+d.operator);if(!b.la)return b.la=!0,new u(d.left,b.scope);if(b.Ga)a.pop(),a[a.length-1].value=b.value;else if("&&"===d.operator&&!b.value||"||"===d.operator&&b.value)a.pop(),a[a.length-1].value=b.value;else return b.Ga=!0,new u(d.right,b.scope)};
t.prototype.stepMemberExpression=function(a,b,d){if(!b.Fa)return b.Fa=!0,new u(d.object,b.scope);if(d.eb)if(b.Sb)d=b.value;else return b.v=b.value,b.Sb=!0,new u(d.Xa,b.scope);else b.v=b.value,d=d.Xa.name;a.pop();if(b.wa)a[a.length-1].value=[b.v,d];else{d=this.N(b.v,d);if(this.P)return kd(this,d,b.v);a[a.length-1].value=d}};t.prototype.stepNewExpression=t.prototype.stepCallExpression;
t.prototype.stepObjectExpression=function(a,b,d){var c=b.B||0,e=d.h[c];if(b.v){var g=b.Ra;b.La[g]||(b.La[g]={});b.La[g][e.kind]=b.value;b.B=++c;e=d.h[c]}else b.v=this.s(this.L),b.La=Object.create(null);if(e){var l=e.key;if("Identifier"===l.type)g=l.name;else if("Literal"===l.type)g=l.value;else throw SyntaxError("Unknown object structure: "+l.type);b.Ra=g;return new u(e.value,b.scope)}for(l in b.La)d=b.La[l],"get"in d||"set"in d?this.g(b.v,l,Ka,{configurable:!0,enumerable:!0,get:d.get,set:d.set}):
this.g(b.v,l,d.init);a.pop();a[a.length-1].value=b.v};t.prototype.stepProgram=function(a,b,d){if(a=d.body.shift())return b.done=!1,new u(a,b.scope);b.done=!0};t.prototype.stepReturnStatement=function(a,b,d){if(d.J&&!b.ma)return b.ma=!0,new u(d.J,b.scope);id(this,3,b.value)};t.prototype.stepSequenceExpression=function(a,b,d){var c=b.B||0;if(d=d.xb[c])return b.B=c+1,new u(d,b.scope);a.pop();a[a.length-1].value=b.value};
t.prototype.stepSwitchStatement=function(a,b,d){if(!b.ia)return b.ia=1,new u(d.Nb,b.scope);1===b.ia&&(b.ia=2,b.ec=b.value,b.fb=-1);for(;;){var c=b.ib||0,e=d.tb[c];if(b.Ka||!e||e.test)if(e||b.Ka||-1===b.fb)if(e){if(!b.Ka&&!b.Db&&e.test)return b.Db=!0,new u(e.test,b.scope);if(b.Ka||b.value===b.ec){b.Ka=!0;var g=b.B||0;if(e.ea[g])return b.Xb=!0,b.B=g+1,new u(e.ea[g],b.scope)}b.Db=!1;b.B=0;b.ib=c+1}else{a.pop();break}else b.Ka=!0,b.ib=b.fb;else b.fb=c,b.ib=c+1}};
t.prototype.stepThisExpression=function(a){a.pop();a[a.length-1].value=ed(this,"this")};t.prototype.stepThrowStatement=function(a,b,d){if(b.ma)I(this,b.value);else return b.ma=!0,new u(d.J,b.scope)};
t.prototype.stepTryStatement=function(a,b,d){if(!b.Ob)return b.Ob=!0,new u(d.block,b.scope);if(b.fa&&4===b.fa.type&&!b.Qb&&d.Ha)return b.Qb=!0,a=dd(this,b.scope),this.g(a.object,d.Ha.Va.name,b.fa.value),b.fa=void 0,new u(d.Ha.body,a);if(!b.Pb&&d.hb)return b.Pb=!0,new u(d.hb,b.scope);a.pop();b.fa&&id(this,b.fa.type,b.fa.value,b.fa.label)};
t.prototype.stepUnaryExpression=function(a,b,d){if(!b.ma)return b.ma=!0,a=new u(d.J,b.scope),a.wa="delete"===d.operator,a;a.pop();var c=b.value;switch(d.operator){case "-":c=-c;break;case "+":c=+c;break;case "!":c=!c;break;case "~":c=~c;break;case "delete":d=!0;if(Array.isArray(c)){var e=c[0];e===Ja&&(e=b.scope);c=String(c[1]);try{delete e.h[c]}catch(g){b.scope.T?I(this,this.o,"Cannot delete property '"+c+"' of '"+e+"'"):d=!1}}c=d;break;case "typeof":c=c&&"Function"===c.G?"function":typeof c;break;
case "void":c=void 0;break;default:throw SyntaxError("Unknown unary operator: "+d.operator);}a[a.length-1].value=c};
t.prototype.stepUpdateExpression=function(a,b,d){if(!b.la)return b.la=!0,a=new u(d.J,b.scope),a.wa=!0,a;b.Ja||(b.Ja=b.value);b.Ea&&(b.oa=b.value);if(!b.Ea){var c=gd(this,b.Ja);b.oa=c;if(this.P)return b.Ea=!0,kd(this,c,b.Ja)}if(b.xa)a.pop(),a[a.length-1].value=b.jb;else{c=Number(b.oa);if("++"===d.operator)var e=c+1;else if("--"===d.operator)e=c-1;else throw SyntaxError("Unknown update expression: "+d.operator);d=d.prefix?e:c;if(c=hd(this,b.Ja,e))return b.xa=!0,b.jb=d,ld(this,c,b.Ja,e);a.pop();a[a.length-
1].value=d}};t.prototype.stepVariableDeclaration=function(a,b,d){d=d.ga;var c=b.B||0,e=d[c];b.Ab&&e&&(fd(this,e.id.name,b.value),b.Ab=!1,e=d[++c]);for(;e;){if(e.ya)return b.B=c,b.Ab=!0,b.Ra=e.id.name,new u(e.ya,b.scope);e=d[++c]}a.pop()};t.prototype.stepWithStatement=function(a,b,d){if(!b.Fa)return b.Fa=!0,new u(d.object,b.scope);a.pop();a=dd(this,b.scope,b.value);return new u(d.body,a)};t.prototype.stepWhileStatement=t.prototype.stepDoWhileStatement;Pa.Interpreter=t;t.prototype.step=t.prototype.mb;
t.prototype.run=t.prototype.Cb;t.prototype.appendCode=t.prototype.Hb;t.prototype.createObject=t.prototype.Da;t.prototype.createObjectProto=t.prototype.s;t.prototype.createAsyncFunction=t.prototype.ub;t.prototype.createNativeFunction=t.prototype.i;t.prototype.getProperty=t.prototype.N;t.prototype.setProperty=t.prototype.g;t.prototype.getStatus=t.prototype.Wb;t.prototype.nativeToPseudo=t.prototype.R;t.prototype.pseudoToNative=t.prototype.S;t.prototype.getGlobalScope=t.prototype.Ub;
t.prototype.getStateStack=t.prototype.Vb;t.prototype.setStateStack=t.prototype.cc;t.VALUE_IN_DESCRIPTOR=Ka;t.Status=ua;