@builder.io/sdk-react-nextjs 0.14.21 → 0.14.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{USE_CLIENT_BUNDLE-421209ac.cjs → USE_CLIENT_BUNDLE-4f10369a.cjs} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-14685e18.js → browser/USE_CLIENT_BUNDLE-f9d01f92.js} +21 -21
- package/lib/{edge/USE_SERVER_BUNDLE-81678d13.js → browser/USE_SERVER_BUNDLE-4e9478d4.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-53f11a34.cjs → browser/USE_SERVER_BUNDLE-76397f77.cjs} +1 -1
- package/lib/browser/{bundle-1e8b30d0.cjs → bundle-35974522.cjs} +20 -20
- package/lib/browser/{bundle-8e752d91.js → bundle-ca09c73c.js} +333 -333
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-80d049f9.cjs → edge/USE_CLIENT_BUNDLE-d7a952fe.cjs} +2 -2
- package/lib/{browser/USE_CLIENT_BUNDLE-85cd491c.js → edge/USE_CLIENT_BUNDLE-edb4fc98.js} +21 -21
- package/lib/{node/USE_SERVER_BUNDLE-c93447b3.js → edge/USE_SERVER_BUNDLE-8a6ee05a.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-c11df0b0.cjs → edge/USE_SERVER_BUNDLE-e3d2232b.cjs} +1 -1
- package/lib/edge/{bundle-4d349481.cjs → bundle-2bd976c9.cjs} +27 -27
- package/lib/edge/{bundle-ad170624.js → bundle-bdc1f5be.js} +421 -421
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-1d5cd7a9.cjs → node/USE_CLIENT_BUNDLE-2a3a1484.cjs} +2 -2
- package/lib/{edge/USE_CLIENT_BUNDLE-e965200b.js → node/USE_CLIENT_BUNDLE-af2f5052.js} +21 -21
- package/lib/{browser/USE_SERVER_BUNDLE-7f959896.cjs → node/USE_SERVER_BUNDLE-290676c5.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-c44b1000.js → node/USE_SERVER_BUNDLE-55adca17.js} +1 -1
- package/lib/node/{bundle-8a453488.cjs → bundle-10b57ad3.cjs} +5 -5
- package/lib/node/{bundle-5c7927a4.js → bundle-9b0c3f03.js} +49 -49
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +3 -3
- package/types/cjs/blocks/accordion/accordion.d.ts +4 -0
- package/types/cjs/blocks/accordion/accordion.types.d.ts +12 -0
- package/types/cjs/blocks/accordion/component-info.d.ts +2 -0
- package/types/cjs/blocks/accordion/helpers.d.ts +1 -0
- package/types/cjs/blocks/accordion/index.d.ts +1 -0
- package/types/cjs/components/block/animator.d.ts +0 -1
- package/types/cjs/components/content-variants/content-variants.types.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/camel-to-kebab-case.d.ts +1 -1
- package/types/esm/blocks/accordion/accordion.d.ts +4 -0
- package/types/esm/blocks/accordion/accordion.types.d.ts +12 -0
- package/types/esm/blocks/accordion/component-info.d.ts +2 -0
- package/types/esm/blocks/accordion/helpers.d.ts +1 -0
- package/types/esm/blocks/accordion/index.d.ts +1 -0
- package/types/esm/components/block/animator.d.ts +0 -1
- package/types/esm/components/content-variants/content-variants.types.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/camel-to-kebab-case.d.ts +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";const y=require("react/jsx-runtime");require("react");const yo=require("lru-cache"),ee=require("./USE_CLIENT_BUNDLE-
|
|
2
|
-
`;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(R(2));break;case 117:l+=String.fromCharCode(R(4));break;case 85:l+=String.fromCharCode(R(8));break;case 116:l+=" ";break;case 98:l+="\b";break;case 118:l+="\v";break;case 102:l+="\f";break;case 48:l+="\0";break;case 13:v.charCodeAt(f)===10&&++f;case 10:T.C&&(le=f,++xe);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||r(_,"Unterminated string constant"),l+=String.fromCharCode(c),++f}return;case 47:a=v.charCodeAt(f+1),Ue?(++f,A()):a===61?m(Se,2):m(
|
|
3
|
-
`,le-2)+1,--xe;p(),k()}function M(){this.type=null,this.start=_,this.end=null}function X(){this.start=Tt,this.end=null,jt&&(this.source=jt)}function V(){var a=new M;return T.C&&(a.X=new X),T.vb&&(a.sourceFile=T.vb),T.Xa&&(a.j=[_,0]),a}function ne(a){var l=new M;return l.start=a.start,T.C&&(l.X=new X,l.X.start=a.X.start),T.Xa&&(l.j=[a.j[0],0]),l}function I(a,l){return a.type=l,a.end=ge,T.C&&(a.X.end=Rt),T.Xa&&(a.j[1]=ge),a}function Qe(a){return a.type==="ExpressionStatement"&&a.la.type==="Literal"&&a.la.value==="use strict"}function U(a){return C===a?(g(),!0):!1}function et(){return!T.fc&&(C===Pt||C===Ee||at.test(v.slice(ge,_)))}function be(){U(ue)||et()||ae()}function L(a){C===a?g():ae()}function ae(){r(_,"Unexpected token")}function tt(a){a.type!=="Identifier"&&a.type!=="MemberExpression"&&r(a.start,"Assigning to rvalue"),Q&&a.type==="Identifier"&&it(a.name)&&r(a.start,"Assigning to "+a.name+" in strict mode")}function re(){(C===Vn||C===Se&&te==="/=")&&k(!0);var a=C,l=V();switch(a){case Nt:case bn:g();var c=a===Nt;U(ue)||et()?l.label=null:C!==Ce?ae():(l.label=se(),be());for(var d=0;d<D.length;++d){var E=D[d];if((l.label===null||E.name===l.label.name)&&(E.kind!==null&&(c||E.kind==="loop")||l.label&&c))break}return d===D.length&&r(l.start,"Unsyntactic "+a.l),I(l,c?"BreakStatement":"ContinueStatement");case xn:return g(),be(),I(l,"DebuggerStatement");case wn:return g(),D.push(_t),l.body=re(),D.pop(),L(Vt),l.test=Ne(),be(),I(l,"DoWhileStatement");case En:return g(),D.push(_t),L(ce),C===ue?St(l,null):C===Mt?(a=V(),g(),mn(a,!0),I(a,"VariableDeclaration"),a.fa.length===1&&U(ot)?hn(l,a):St(l,a)):(a=G(!1,!0),U(ot)?(tt(a),hn(l,a)):St(l,a));case Bt:return g(),Et(l,!0);case In:return g(),l.test=Ne(),l.da=re(),l.alternate=U(kn)?re():null,I(l,"IfStatement");case jn:return Me||T.Ib||r(_,"'return' outside of function"),g(),U(ue)||et()?l.K=null:(l.K=G(),be()),I(l,"ReturnStatement");case Ut:for(g(),l.Qb=Ne(),l.tb=[],L(Le),D.push(go);C!==Ee;)C===Ft||C===Sn?(a=C===Ft,d&&I(d,"SwitchCase"),l.tb.push(d=V()),d.da=[],g(),a?d.test=G():(c&&r(Ot,"Multiple default clauses"),c=!0,d.test=null),L(De)):(d||ae(),d.da.push(re()));return d&&I(d,"SwitchCase"),g(),D.pop(),I(l,"SwitchStatement");case Tn:return g(),at.test(v.slice(ge,_))&&r(ge,"Illegal newline after throw"),l.K=G(),be(),I(l,"ThrowStatement");case An:return g(),l.block=Fe(),l.Ea=null,C===vn&&(a=V(),g(),L(ce),a.Ua=se(),Q&&it(a.Ua.name)&&r(a.Ua.start,"Binding "+a.Ua.name+" in strict mode"),L(oe),a.body=Fe(),l.Ea=I(a,"CatchClause")),l.fb=U(Cn)?Fe():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),I(l,"TryStatement");case Mt:return g(),mn(l),be(),I(l,"VariableDeclaration");case Vt:return g(),l.test=Ne(),D.push(_t),l.body=re(),D.pop(),I(l,"WhileStatement");case On:return Q&&r(_,"'with' in strict mode"),g(),l.object=Ne(),l.body=re(),I(l,"WithStatement");case Le:return Fe();case ue:return g(),I(l,"EmptyStatement");default:if(c=te,E=G(),a===Ce&&E.type==="Identifier"&&U(De)){for(d=0;d<D.length;++d)D[d].name===c&&r(E.start,"Label '"+c+"' is already declared");return D.push({name:c,kind:C.W?"loop":C===Ut?"switch":null}),l.body=re(),D.pop(),l.label=E,I(l,"LabeledStatement")}return l.la=E,be(),I(l,"ExpressionStatement")}}function Ne(){L(ce);var a=G();return L(oe),a}function Fe(a){var l=V(),c=!0,d=!1;for(l.body=[],L(Le);!U(Ee);){var E=re();if(l.body.push(E),c&&a&&Qe(E)){var W=d;B(d=!0)}c=!1}return d&&!W&&B(!1),I(l,"BlockStatement")}function St(a,l){return a.ua=l,L(ue),a.test=C===ue?null:G(),L(ue),a.update=C===oe?null:G(),L(oe),a.body=re(),D.pop(),I(a,"ForStatement")}function hn(a,l){return a.left=l,a.right=G(),L(oe),a.body=re(),D.pop(),I(a,"ForInStatement")}function mn(a,l){for(a.fa=[],a.kind="var";;){var c=V();if(c.id=se(),Q&&it(c.id.name)&&r(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=U(Ln)?G(!0,l):null,a.fa.push(I(c,"VariableDeclarator")),!U(ye))break}}function G(a,l){var c=wt(l);if(!a&&C===ye){for(a=ne(c),a.xb=[c];U(ye);)a.xb.push(wt(l));return I(a,"SequenceExpression")}return c}function wt(a){var l=kt(Ct(),-1,a);if(U(Mn)){var c=ne(l);c.test=l,c.da=G(!0),L(De),c.alternate=G(!0,a),l=I(c,"ConditionalExpression")}return C.Cb?(c=ne(l),c.operator=te,c.left=l,g(),c.right=wt(a),tt(l),I(c,"AssignmentExpression")):l}function kt(a,l,c){var d=C.L;if(d!==null&&(!c||C!==ot)&&d>l){var E=ne(a);return E.left=a,E.operator=te,a=C,g(),E.right=kt(Ct(),d,c),d=I(E,a===_n||a===Wn?"LogicalExpression":"BinaryExpression"),kt(d,l,c)}return a}function Ct(){if(C.prefix){var a=V(),l=C.$b;return a.operator=te,Ue=a.prefix=!0,g(),a.K=Ct(),l?tt(a.K):Q&&a.operator==="delete"&&a.K.type==="Identifier"&&r(a.start,"Deleting local variable in strict mode"),I(a,l?"UpdateExpression":"UnaryExpression")}for(l=Be(nt());C.cc&&!et();)a=ne(l),a.operator=te,a.prefix=!1,a.K=l,tt(l),g(),l=I(a,"UpdateExpression");return l}function Be(a,l){if(U(Un)){var c=ne(a);return c.object=a,c.Wa=se(!0),c.bb=!1,Be(I(c,"MemberExpression"),l)}return U(Lt)?(c=ne(a),c.object=a,c.Wa=G(),c.bb=!0,L(Dt),Be(I(c,"MemberExpression"),l)):!l&&U(ce)?(c=ne(a),c.callee=a,c.arguments=It(oe,!1),Be(I(c,"CallExpression"),l)):a}function nt(){switch(C){case Pn:var a=V();return g(),I(a,"ThisExpression");case Ce:return se();case Ve:case rt:case yn:return a=V(),a.value=te,a.raw=v.slice(_,ke),g(),I(a,"Literal");case Nn:case Fn:case Bn:return a=V(),a.value=C.$a,a.raw=C.l,g(),I(a,"Literal");case ce:a=Tt;var l=_;g();var c=G();return c.start=l,c.end=ke,T.C&&(c.X.start=a,c.X.end=At),T.Xa&&(c.j=[l,ke]),L(oe),c;case Lt:return a=V(),g(),a.elements=It(Dt,!0,!0),I(a,"ArrayExpression");case Le:for(a=V(),l=!0,c=!1,a.h=[],g();!U(Ee);){if(l)l=!1;else if(L(ye),T.sb&&U(Ee))break;var d={key:C===Ve||C===rt?nt():se(!0)},E=!1;if(U(De)){d.value=G(!0);var W=d.kind="init"}else d.key.type!=="Identifier"||d.key.name!=="get"&&d.key.name!=="set"?ae():(E=c=!0,W=d.kind=d.key.name,d.key=C===Ve||C===rt?nt():se(!0),C!==ce&&ae(),d.value=Et(V(),!1));if(d.key.type==="Identifier"&&(Q||c))for(var z=0;z<a.h.length;++z){var je=a.h[z];if(je.key.name===d.key.name){var Wt=W===je.kind||E&&je.kind==="init"||W==="init"&&(je.kind==="get"||je.kind==="set");Wt&&!Q&&W==="init"&&je.kind==="init"&&(Wt=!1),Wt&&r(d.key.start,"Redefinition of property")}}a.h.push(d)}return I(a,"ObjectExpression");case Bt:return a=V(),g(),Et(a,!1);case Rn:return a=V(),g(),a.callee=Be(nt(),!0),a.arguments=U(ce)?It(oe,!1):eo,I(a,"NewExpression")}ae()}function Et(a,l){C===Ce?a.id=se():l?ae():a.id=null,a.oa=[];var c=!0;for(L(ce);!U(oe);)c?c=!1:L(ye),a.oa.push(se());c=Me;var d=D;if(Me=!0,D=[],a.body=Fe(!0),Me=c,D=d,Q||a.body.body.length&&Qe(a.body.body[0])){for(c=a.id?-1:0;c<a.oa.length;++c)if(d=0>c?a.id:a.oa[c],($n(d.name)||it(d.name))&&r(d.start,"Defining '"+d.name+"' in strict mode"),0<=c)for(var E=0;E<c;++E)d.name===a.oa[E].name&&r(d.start,"Argument name clash in strict mode")}return I(a,l?"FunctionDeclaration":"FunctionExpression")}function It(a,l,c){for(var d=[],E=!0;!U(a);){if(E)E=!1;else if(L(ye),l&&T.sb&&U(a))break;d.push(c&&C===ye?null:G(!0))}return d}function se(a){var l=V();return a&&T.yb==="everywhere"&&(a=!1),C===Ce?(!a&&(T.yb&&fo(te)||Q&&$n(te))&&v.slice(_,ke).indexOf("\\")===-1&&r(_,"The keyword '"+te+"' is reserved"),l.name=te):a&&C.l?l.name=C.l:ae(),Ue=!1,g(),I(l,"Identifier")}e.version="0.5.0";var T,v="",we,jt;e.parse=function(a,l){v=String(a),we=v.length,T=l||{};for(var c in gn)Object.prototype.hasOwnProperty.call(T,c)||(T[c]=gn[c]);for(jt=T.sourceFile,xe=1,f=le=0,Ue=!0,p(),c=T.dc,Ot=ge=f,T.C&&(Rt=new i),Me=Q=!1,D=[],k(),a=c||V(),l=!0,c||(a.body=[]);C!==Pt;)c=re(),a.body.push(c),l&&Qe(c)&&B(!0),l=!1;return I(a,"Program")};var gn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,_=0,ke=0,Tt,At,C,te,Ue,xe,le,Ot=0,ge=0,Rt,Me,D,Q,eo=[],Ve={type:"num"},yn={type:"regexp"},rt={type:"string"},Ce={type:"name"},Pt={type:"eof"},Nt={l:"break"},Ft={l:"case",m:!0},vn={l:"catch"},bn={l:"continue"},xn={l:"debugger"},Sn={l:"default"},wn={l:"do",W:!0},kn={l:"else",m:!0},Cn={l:"finally"},En={l:"for",W:!0},Bt={l:"function"},In={l:"if"},jn={l:"return",m:!0},Ut={l:"switch"},Tn={l:"throw",m:!0},An={l:"try"},Mt={l:"var"},Vt={l:"while",W:!0},On={l:"with"},Rn={l:"new",m:!0},Pn={l:"this"},Nn={l:"null",$a:null},Fn={l:"true",$a:!0},Bn={l:"false",$a:!1},ot={l:"in",L:7,m:!0},to={break:Nt,case:Ft,catch:vn,continue:bn,debugger:xn,default:Sn,do:wn,else:kn,finally:Cn,for:En,function:Bt,if:In,return:jn,switch:Ut,throw:Tn,try:An,var:Mt,while:Vt,with:On,null:Nn,true:Fn,false:Bn,new:Rn,in:ot,instanceof:{l:"instanceof",L:7,m:!0},this:Pn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Lt={type:"[",m:!0},Dt={type:"]"},Le={type:"{",m:!0},Ee={type:"}"},ce={type:"(",m:!0},oe={type:")"},ye={type:",",m:!0},ue={type:";",m:!0},De={type:":",m:!0},Un={type:"."},Mn={type:"?",m:!0},Vn={L:10,m:!0},Ln={Cb:!0,m:!0},Se={Cb:!0,m:!0},no={cc:!0,prefix:!0,$b:!0},Dn={prefix:!0,m:!0},_n={L:1,m:!0},Wn={L:2,m:!0},ro={L:3,m:!0},oo={L:4,m:!0},io={L:5,m:!0},ao={L:6,m:!0},so={L:7,m:!0},lo={L:8,m:!0},co={L:9,prefix:!0,m:!0},uo={L:10,m:!0},fo=o("class enum extends super const export import"),$n=o("implements interface let package private protected public static yield"),it=o("eval arguments"),po=o("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"),ho=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Hn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),mo=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),at=/[\n\r\u2028\u2029]/,st=/\r\n|[\n\r\u2028\u2029]/g,Ie,_t={kind:"loop"},go={kind:"switch"}},Ht=Ht=typeof globalThis>"u"?void 0:globalThis;To(Ht.j||(Ht.j={}));function h(e,t){typeof e=="string"&&(e=Oe(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var i,s;for(s in this)typeof this[s]=="function"&&(i=s.match(e))&&(this.rb[i[1]]=this[s].bind(this));this.N=Gt(this,this.ra,null),this.Na=this.N.object,this.ra=Oe(this.ba.join(`
|
|
4
|
-
`),"polyfills"),this.ba=void 0,mt(this.ra),i=new S(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new S(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var Kn={C:!0,kc:5},qt={configurable:!0,enumerable:!0,writable:!1},b={configurable:!0,enumerable:!1,writable:!0},Z={configurable:!0,enumerable:!1,writable:!1},_e={configurable:!1,enumerable:!1,writable:!1},Gn={configurable:!1,enumerable:!0,writable:!0},gr={STEP_ERROR:!0},Pe={SCOPE_REFERENCE:!0},Je={VALUE_IN_DESCRIPTOR:!0},Ae={REGEXP_TIMEOUT:!0},Xn=[],de=null,Ge=null,ve=typeof globalThis>"u"?void 0:globalThis,Ao=["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 Zt(e){var t=e>>>0;return t===Number(e)?t:NaN}function Xe(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function mt(e,t,n){t?e.start=t:delete e.start,n?e.end=n:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var o=e[r];o&&typeof o=="object"&&mt(o,t,n)}}h.prototype.REGEXP_MODE=2;h.prototype.REGEXP_THREAD_TIMEOUT=1e3;h.prototype.POLYFILL_TIMEOUT=1e3;F=h.prototype;F.P=!1;F.Ka=!1;F.Kb=0;F.ic=0;function Oe(e,t){var n={},r;for(r in Kn)n[r]=Kn[r];return n.sourceFile=t,ve.j.parse(e,n)}F.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=Oe(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Ye(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};F.lb=function(){var e=this.o,t;do{var n=e[e.length-1];if(this.za)break;if(!n||n.node.type==="Program"&&n.done){if(!this.ca.length)return!1;if(n=this.ca[0],!n||n.time>Date.now())n=null;else{this.ca.shift(),0<=n.interval&&br(this,n,n.interval);var r=new S(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=Ge;Ge=this;try{var i=this.rb[r.type](e,n,r)}catch(s){if(s!==gr)throw this.value!==s&&(this.value=void 0),s}finally{Ge=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};F.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Oo(e,t){e.g(t,"NaN",NaN,_e),e.g(t,"Infinity",1/0,_e),e.g(t,"undefined",void 0,_e),e.g(t,"window",t,qt),e.g(t,"this",t,_e),e.g(t,"self",t),e.M=new P(null),e.Z=new P(e.M),Ro(e,t),Po(e,t),t.xa=e.M,e.g(t,"constructor",e.v,b),No(e,t),Fo(e,t),Bo(e,t),Uo(e,t),Mo(e,t),Vo(e,t),Lo(e,t),Do(e,t),_o(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,b),e.g(t,"parseInt",e.i(parseInt,!1),b),e.g(t,"parseFloat",e.i(parseFloat,!1),b),e.g(t,"isNaN",e.i(isNaN,!1),b),e.g(t,"isFinite",e.i(isFinite,!1),b);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(s){try{return i(s)}catch(u){w(e,e.Gb,u.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),b);n=function(i){return Jn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),b),n=function(i){return Jn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),b),n=function(i){Yn(e,i)},e.g(t,"clearTimeout",e.i(n,!1),b),n=function(i){Yn(e,i)},e.g(t,"clearInterval",e.i(n,!1),b),e.OBJECT=e.v,e.OBJECT_PROTO=e.M,e.FUNCTION=e.O,e.FUNCTION_PROTO=e.Z,e.ARRAY=e.qa,e.ARRAY_PROTO=e.La,e.REGEXP=e.I,e.REGEXP_PROTO=e.Ma,e.DATE=e.$,e.DATE_PROTO=e.nb,e.qb&&e.qb(e,t)}F.Wb=0;function Ro(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",s=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(s){s=s.split(/\s*,\s*/);for(var u=0;u<s.length;u++){var p=s[u];n.test(p)||w(e,e.T,"Invalid function argument: "+p)}s=s.join(", ")}try{var x=Oe("(function("+s+") {"+i+"})","function"+e.Wb++)}catch(k){w(e,e.T,"Invalid code: "+k.message)}return x.body.length!==1&&w(e,e.T,"Invalid code in function body"),tn(e,x.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,b),e.g(e.O,"prototype",e.Z,b),e.g(e.Z,"constructor",e.O,b),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,Z),e.Z.H="Function",r=function(o,i){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[],i!=null&&(i instanceof P?s.F=yr(e,i):w(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},$(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var s=1;s<arguments.length;s++)i.F.push(arguments[s]);i.eb=!1},$(e,e.O,"call",r),e.ba.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function bind(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');","}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});",""),r=function(){return String(this)},$(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),b),r=function(){return this.valueOf()},$(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),b)}function Po(e,t){function n(o){o!=null||w(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return he(e)?this:e.s(e.M);if(!(o instanceof P)){var i=e.s(pe(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,b),e.g(e.M,"constructor",e.v,b),e.g(t,"Object",e.v,b),r=function(o){return n(o),fe(e,Object.getOwnPropertyNames(o instanceof P?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),b),r=function(o){return n(o),o instanceof P&&(o=o.h),fe(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),b),r=function(o){return o===null?e.s(null):(o instanceof P||w(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(r,!1),b),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),r=function(o,i,s){return i=String(i),o instanceof P||w(e,e.j,"Object.defineProperty called on non-object: "+o),s instanceof P||w(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||w(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,Je,s.h),o},e.g(e.v,"defineProperty",e.i(r,!1),b),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),r=function(o,i){if(o instanceof P||w(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var s=Object.getOwnPropertyDescriptor(o.h,i),u=o.V[i];return o=o.Y[i],i=e.s(e.M),u||o?(e.g(i,"get",u),e.g(i,"set",o)):(e.g(i,"value",s.value),e.g(i,"writable",s.writable)),e.g(i,"configurable",s.configurable),e.g(i,"enumerable",s.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),b),r=function(o){return n(o),pe(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),b),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),b),r=function(o){return o instanceof P&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),b),$(e,e.v,"toString",P.prototype.toString),$(e,e.v,"toLocaleString",P.prototype.toString),$(e,e.v,"valueOf",P.prototype.valueOf),r=function(o){return n(this),this instanceof P?String(o)in this.h:this.hasOwnProperty(o)},$(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof P?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},$(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=pe(e,o),!o)return!1;if(o===this)return!0}},$(e,e.v,"isPrototypeOf",r)}function No(e,t){var n=function(r){var o=he(e)?this:Re(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(Zt(i))&&w(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,b),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),b),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.La.H="Array",e.ba.push("(function() {","function createArrayMethod_(f) {","Object.defineProperty(Array.prototype, f.name,","{configurable: true, writable: true, value: f});","}","createArrayMethod_(","function pop() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_(","function push(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_(","function shift() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_(","function unshift(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_(","function reverse() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_(","function indexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_(","function lastIndexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_(","function slice(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_(","function splice(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 1) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","o.length = len;","return removed;","}",");","createArrayMethod_(","function concat(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_(","function join(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_(","function every(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callbackfn.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_(","function filter(fun, var_args) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (fun.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_(","function forEach(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_(","function map(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_(","function reduce(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function reduceRight(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function some(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && fun.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_(","function sort(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_(","function toLocaleString() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")}function Fo(e,t){var n=function(r){return r=arguments.length?ve.String(r):"",he(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,b),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),b),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)$(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(s){w(e,e.D,"localeCompare: "+s.message)}},$(e,e.J,"localeCompare",n),n=function(r,o,i){var s=String(this);if(o=o?Number(o):void 0,H(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(de)r=We(e,"string.split(separator, limit)",{string:s,separator:r,limit:o},r,i),r!==Ae&&i(fe(e,r));else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(x){clearTimeout(p),i(fe(e,x.data))},u.postMessage(["split",s,r,o])}return}r=s.split(r,o),i(fe(e,r))},Ke(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=H(e,r,e.I)?r.data:new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(de)r=We(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r&&fe(e,r));else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data&&fe(e,p.data))},s.postMessage(["match",i,r])}else r=i.match(r),o(r&&fe(e,r))},Ke(e,e.J,"match",n),n=function(r,o){var i=String(this);if(H(e,r,e.I)?r=r.data:r=new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(de)r=We(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r);else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data)},s.postMessage(["search",i,r])}else o(i.search(r))},Ke(e,e.J,"search",n),n=function(r,o,i){var s=String(this);if(o=String(o),H(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(de)r=We(e,"string.replace(substr, newSubstr)",{string:s,substr:r,newSubstr:o},r,i),r!==Ae&&i(r);else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(x){clearTimeout(p),i(x.data)},u.postMessage(["replace",s,r,o])}return}i(s.replace(r,o))},Ke(e,e.J,"replace",n),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function Bo(e,t){e.mb=e.i(function(n){return n=ve.Boolean(n),he(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,b)}function Uo(e,t){var n=function(r){return r=arguments.length?ve.Number(r):0,he(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,b),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],n=0;n<t.length;n++)e.g(e.aa,t[n],Number[t[n]],_e);n=function(r){try{return Number(this).toExponential(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(i){w(e,e.D,"toLocaleString: "+i.message)}},$(e,e.aa,"toLocaleString",n)}function Mo(e,t){var n=function(o,i){if(!he(e))return ve.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(ve.Date,s)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,b),e.g(e.$,"now",e.i(Date.now,!1),b),e.g(e.$,"parse",e.i(Date.parse,!1),b),e.g(e.$,"UTC",e.i(Date.UTC,!1),b),t="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 toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var s=this.data;s instanceof Date||w(e,e.j,o+" not called on a Date");for(var u=[],p=0;p<arguments.length;p++)u[p]=e.R(arguments[p]);return s[o].apply(s,u)}}(t[r]),$(e,e.$,t[r],n)}function Vo(e,t){var n=function(r,o){if(he(e))var i=this;else{if(o===void 0&&H(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||w(e,e.T,"Invalid regexp flag: "+o);try{var s=new ve.RegExp(r,o)}catch(u){w(e,e.T,u.message)}return Qt(e,i,s),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,b),e.g(e.I.h.prototype,"global",void 0,Z),e.g(e.I.h.prototype,"ignoreCase",void 0,Z),e.g(e.I.h.prototype,"multiline",void 0,Z),e.g(e.I.h.prototype,"source","(?:)",Z),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(k){if(k){var m=fe(e,k);return e.g(m,"index",k.index),e.g(m,"input",k.input),m}return null}var s=this.data;if(r=String(r),s.lastIndex=Number(e.G(this,"lastIndex")),$e(e,s,o),e.REGEXP_MODE===2)if(de)r=We(e,"regexp.exec(string)",{string:r,regexp:s},s,o),r!==Ae&&(e.g(this,"lastIndex",s.lastIndex),o(i(r)));else{var u=e.ha(),p=He(e,s,u,o),x=this;u.onmessage=function(k){clearTimeout(p),e.g(x,"lastIndex",k.data[1]),o(i(k.data[0]))},u.postMessage(["exec",s,s.lastIndex,r])}else r=s.exec(r),e.g(this,"lastIndex",s.lastIndex),o(i(r))},Ke(e,e.I,"exec",n)}function Lo(e,t){function n(r){var o=e.i(function(i){var s=he(e)?this:e.Aa(o);return Kt(e,s,i),s},!0);return e.g(o,"prototype",e.Aa(e.D),b),e.g(o.h.prototype,"name",r,b),e.g(t,r,o,b),o}e.D=e.i(function(r){var o=he(e)?this:e.Aa(e.D);return Kt(e,o,r),o},!0),e.g(t,"Error",e.D,b),e.g(e.D.h.prototype,"message","",b),e.g(e.D.h.prototype,"name","Error",b),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function Do(e,t){var n=e.s(e.M);e.g(t,"Math",n,b);var r="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<r.length;t++)e.g(n,r[t],Math[r[t]],Z);for(r="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<r.length;t++)e.g(n,r[t],e.i(Math[r[t]],!1),b)}function _o(e,t){var n=e.s(e.M);e.g(t,"JSON",n,b),t=function(r){try{var o=JSON.parse(String(r))}catch(i){w(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?w(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=yr(e,o),o=o.filter(function(u){return typeof u=="string"||typeof u=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var s=JSON.stringify(r,o,i)}catch(u){w(e,e.j,u.message)}return s},e.g(n,"stringify",e.i(t,!1))}function H(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=pe(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Qt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,b),e.g(t,"source",n.source,Z),e.g(t,"global",n.global,Z),e.g(t,"ignoreCase",n.ignoreCase,Z),e.g(t,"multiline",n.multiline,Z)}function Kt(e,t,n){n&&e.g(t,"message",String(n),b),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;i.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!i.X||n.length&&i.type!=="CallExpression"||n.push({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
|
|
1
|
+
"use strict";const y=require("react/jsx-runtime");require("react");const yo=require("lru-cache"),ee=require("./USE_CLIENT_BUNDLE-d7a952fe.cjs");require("next/navigation");const vo=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),bo=e=>typeof e=="string"&&vo.has(e.toLowerCase()),me="rsc",ht=()=>{switch(me){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function xo(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const lt="[Builder.io]: ",J={log:(...e)=>console.log(lt,...e),error:(...e)=>console.error(lt,...e),warn:(...e)=>console.warn(lt,...e),debug:(...e)=>console.debug(lt,...e)};function K(){return typeof window<"u"&&typeof document<"u"}const So=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},fr=e=>e instanceof URLSearchParams?So(e):e,dr=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function wo(){return K()&&window.self!==window.top}function zt(e){return wo()&&dr(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const ko=()=>{if(K()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},Co=()=>typeof navigator=="object"&&navigator.userAgent||"",pr=()=>{const e=Co(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||me==="reactNative"}},n=e.match(/Tablet|iPad/i),r=ko();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},hr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),Eo=()=>({isEditing:zt(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>pr()}),Io=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,jo=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:s})=>{const u=hr({builder:t,context:n,event:r,state:mr({rootState:s,localState:o,rootSetState:i})});return new Function(...u.map(([p])=>p),e)(...u.map(([,p])=>p))};function mr({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const i=r[o];return typeof i=="object"&&i!==null?mr({rootState:i,localState:void 0,rootSetState:n?s=>{r[o]=s,n(r)}:void 0}):i},set:(r,o,i)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=i,n==null||n(r),!0}})}const gr=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,i,s)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[s+1]))>>0===+r[s+1]?[]:{},e)[r[r.length-1]]=n,e};var B,To=function(e){function t(a){return 48>a?a===36:58>a?!0:65>a?!1:91>a?!0:97>a?a===95:123>a?!0:170<=a&&mo.test(String.fromCharCode(a))}function n(a){return 65>a?a===36:91>a?!0:97>a?a===95:123>a?!0:170<=a&&Kn.test(String.fromCharCode(a))}function r(a,l){for(var c=v,d=1,E=0;;){st.lastIndex=E;var W=st.exec(c);if(W&&W.index<a)++d,E=W.index+W[0].length;else break}throw c={line:d,ab:a-E},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=a,l.X=c,l.o=f,l}function o(a){a=a.split(" ");for(var l=Object.create(null),c=0;c<a.length;c++)l[a[c]]=!0;return function(d){return l[d]||!1}}function i(){this.line=xe,this.ab=f-le}function s(a,l){ke=f,T.C&&(At=new i),C=a,p(),te=l,Ue=a.m}function u(){for(var a=f,l=T.va&&T.C&&new i,c=v.charCodeAt(f+=2);f<we&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=v.charCodeAt(f);T.va&&T.va(!1,v.slice(a+2,f),a,f,l,T.C&&new i)}function p(){for(;f<we;){var a=v.charCodeAt(f);if(a===32)++f;else if(a===13)++f,a=v.charCodeAt(f),a===10&&++f,T.C&&(++xe,le=f);else if(a===10||a===8232||a===8233)++f,T.C&&(++xe,le=f);else if(8<a&&14>a)++f;else if(a===47)if(a=v.charCodeAt(f+1),a===42){a=void 0;var l=T.va&&T.C&&new i,c=f,d=v.indexOf("*/",f+=2);if(d===-1&&r(f-2,"Unterminated comment"),f=d+2,T.C)for(st.lastIndex=c;(a=st.exec(v))&&a.index<f;)++xe,le=a.index+a[0].length;T.va&&T.va(!0,v.slice(c+2,d),c,f,l,T.C&&new i)}else if(a===47)u();else break;else if(a===160)++f;else if(5760<=a&&ho.test(String.fromCharCode(a)))++f;else break}}function x(a){switch(a){case 46:a=v.charCodeAt(f+1),48<=a&&57>=a?O(!0):(++f,s(Mn));return;case 40:return++f,s(ce);case 41:return++f,s(oe);case 59:return++f,s(ue);case 44:return++f,s(ye);case 91:return++f,s(Dt);case 93:return++f,s(Lt);case 123:return++f,s(De);case 125:return++f,s(Ee);case 58:return++f,s(Le);case 63:return++f,s(Vn);case 48:if(a=v.charCodeAt(f+1),a===120||a===88){f+=2,a=N(16),a===null&&r(_+2,"Expected hexadecimal number"),n(v.charCodeAt(f))&&r(f,"Identifier directly after number"),s(Ve,a);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return O(!1);case 34:case 39:f++;for(var l="";;){f>=we&&r(_,"Unterminated string constant");var c=v.charCodeAt(f);if(c===a){++f,s(rt,l);break}if(c===92){c=v.charCodeAt(++f);var d=/^[0-7]+/.exec(v.slice(f,f+3));for(d&&(d=d[0]);d&&255<parseInt(d,8);)d=d.slice(0,-1);if(d==="0"&&(d=null),++f,d)Q&&r(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(d,8)),f+=d.length-1;else switch(c){case 110:l+=`
|
|
2
|
+
`;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(R(2));break;case 117:l+=String.fromCharCode(R(4));break;case 85:l+=String.fromCharCode(R(8));break;case 116:l+=" ";break;case 98:l+="\b";break;case 118:l+="\v";break;case 102:l+="\f";break;case 48:l+="\0";break;case 13:v.charCodeAt(f)===10&&++f;case 10:T.C&&(le=f,++xe);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||r(_,"Unterminated string constant"),l+=String.fromCharCode(c),++f}return;case 47:a=v.charCodeAt(f+1),Ue?(++f,A()):a===61?m(Se,2):m(Dn,1);return;case 37:case 42:v.charCodeAt(f+1)===61?m(Se,2):m(uo,1);return;case 124:case 38:l=v.charCodeAt(f+1),l===a?m(a===124?Wn:$n,2):l===61?m(Se,2):m(a===124?ro:io,1);return;case 94:v.charCodeAt(f+1)===61?m(Se,2):m(oo,1);return;case 43:case 45:l=v.charCodeAt(f+1),l===a?l===45&&v.charCodeAt(f+2)===62&&at.test(v.slice(ge,f))?(f+=3,u(),p(),k()):m(no,2):l===61?m(Se,2):m(co,1);return;case 60:case 62:l=v.charCodeAt(f+1),c=1,l===a?(c=a===62&&v.charCodeAt(f+2)===62?3:2,v.charCodeAt(f+c)===61?m(Se,c+1):m(lo,c)):l===33&&a===60&&v.charCodeAt(f+2)===45&&v.charCodeAt(f+3)===45?(f+=4,u(),p(),k()):(l===61&&(c=v.charCodeAt(f+2)===61?3:2),m(so,c));return;case 61:case 33:v.charCodeAt(f+1)===61?m(ao,v.charCodeAt(f+2)===61?3:2):m(a===61?Ln:_n,1);return;case 126:return m(_n,1)}return!1}function k(a){if(a?f=_+1:_=f,T.C&&(Tt=new i),a)return A();if(f>=we)return s(Pt);if(a=v.charCodeAt(f),n(a)||a===92)return j();if(x(a)===!1){if(a=String.fromCharCode(a),a==="\\"||Kn.test(a))return j();r(f,"Unexpected character '"+a+"'")}}function m(a,l){var c=v.slice(f,f+l);f+=l,s(a,c)}function A(){for(var a,l,c=f;;){f>=we&&r(c,"Unterminated regexp");var d=v.charAt(f);if(at.test(d)&&r(c,"Unterminated regexp"),a)a=!1;else{if(d==="[")l=!0;else if(d==="]"&&l)l=!1;else if(d==="/"&&!l)break;a=d==="\\"}++f}a=v.slice(c,f),++f,(l=Y())&&!/^[gmi]*$/.test(l)&&r(c,"Invalid regexp flag");try{var E=new RegExp(a,l)}catch(W){throw W instanceof SyntaxError&&r(c,W.message),W}s(vn,E)}function N(a,l){for(var c=f,d=0,E=l===void 0?1/0:l,W=0;W<E;++W){var z=v.charCodeAt(f);if(z=97<=z?z-97+10:65<=z?z-65+10:48<=z&&57>=z?z-48:1/0,z>=a)break;++f,d=d*a+z}return f===c||l!==void 0&&f-c!==l?null:d}function O(a){var l=f,c=!1,d=v.charCodeAt(f)===48;a||N(10)!==null||r(l,"Invalid number"),v.charCodeAt(f)===46&&(++f,N(10),c=!0),a=v.charCodeAt(f),(a===69||a===101)&&(a=v.charCodeAt(++f),a!==43&&a!==45||++f,N(10)===null&&r(l,"Invalid number"),c=!0),n(v.charCodeAt(f))&&r(f,"Identifier directly after number"),a=v.slice(l,f);var E;c?E=parseFloat(a):d&&a.length!==1?/[89]/.test(a)||Q?r(l,"Invalid number"):E=parseInt(a,8):E=parseInt(a,10),s(Ve,E)}function R(a){return a=N(16,a),a===null&&r(_,"Bad character escape sequence"),a}function Y(){Ie=!1;for(var a,l=!0,c=f;;){var d=v.charCodeAt(f);if(t(d))Ie&&(a+=v.charAt(f)),++f;else if(d===92){Ie||(a=v.slice(c,f)),Ie=!0,v.charCodeAt(++f)!==117&&r(f,"Expecting Unicode escape sequence \\uXXXX"),++f,d=R(4);var E=String.fromCharCode(d);E||r(f-1,"Invalid Unicode escape"),(l?n(d):t(d))||r(f-4,"Invalid Unicode escape"),a+=E}else break;l=!1}return Ie?a:v.slice(c,f)}function j(){var a=Y(),l=Ce;!Ie&&po(a)&&(l=to[a]),s(l,a)}function g(){Ot=_,ge=ke,Rt=At,k()}function F(a){if(Q=a,f=_,T.C)for(;f<le;)le=v.lastIndexOf(`
|
|
3
|
+
`,le-2)+1,--xe;p(),k()}function M(){this.type=null,this.start=_,this.end=null}function X(){this.start=Tt,this.end=null,jt&&(this.source=jt)}function V(){var a=new M;return T.C&&(a.X=new X),T.vb&&(a.sourceFile=T.vb),T.Xa&&(a.j=[_,0]),a}function ne(a){var l=new M;return l.start=a.start,T.C&&(l.X=new X,l.X.start=a.X.start),T.Xa&&(l.j=[a.j[0],0]),l}function I(a,l){return a.type=l,a.end=ge,T.C&&(a.X.end=Rt),T.Xa&&(a.j[1]=ge),a}function Qe(a){return a.type==="ExpressionStatement"&&a.la.type==="Literal"&&a.la.value==="use strict"}function U(a){return C===a?(g(),!0):!1}function et(){return!T.fc&&(C===Pt||C===Ee||at.test(v.slice(ge,_)))}function be(){U(ue)||et()||ae()}function D(a){C===a?g():ae()}function ae(){r(_,"Unexpected token")}function tt(a){a.type!=="Identifier"&&a.type!=="MemberExpression"&&r(a.start,"Assigning to rvalue"),Q&&a.type==="Identifier"&&it(a.name)&&r(a.start,"Assigning to "+a.name+" in strict mode")}function re(){(C===Dn||C===Se&&te==="/=")&&k(!0);var a=C,l=V();switch(a){case Nt:case xn:g();var c=a===Nt;U(ue)||et()?l.label=null:C!==Ce?ae():(l.label=se(),be());for(var d=0;d<L.length;++d){var E=L[d];if((l.label===null||E.name===l.label.name)&&(E.kind!==null&&(c||E.kind==="loop")||l.label&&c))break}return d===L.length&&r(l.start,"Unsyntactic "+a.l),I(l,c?"BreakStatement":"ContinueStatement");case Sn:return g(),be(),I(l,"DebuggerStatement");case kn:return g(),L.push(_t),l.body=re(),L.pop(),D(Vt),l.test=Ne(),be(),I(l,"DoWhileStatement");case In:return g(),L.push(_t),D(ce),C===ue?St(l,null):C===Mt?(a=V(),g(),gn(a,!0),I(a,"VariableDeclaration"),a.fa.length===1&&U(ot)?mn(l,a):St(l,a)):(a=G(!1,!0),U(ot)?(tt(a),mn(l,a)):St(l,a));case Ft:return g(),Et(l,!0);case jn:return g(),l.test=Ne(),l.da=re(),l.alternate=U(Cn)?re():null,I(l,"IfStatement");case Tn:return Me||T.Ib||r(_,"'return' outside of function"),g(),U(ue)||et()?l.K=null:(l.K=G(),be()),I(l,"ReturnStatement");case Ut:for(g(),l.Qb=Ne(),l.tb=[],D(De),L.push(go);C!==Ee;)C===Bt||C===wn?(a=C===Bt,d&&I(d,"SwitchCase"),l.tb.push(d=V()),d.da=[],g(),a?d.test=G():(c&&r(Ot,"Multiple default clauses"),c=!0,d.test=null),D(Le)):(d||ae(),d.da.push(re()));return d&&I(d,"SwitchCase"),g(),L.pop(),I(l,"SwitchStatement");case An:return g(),at.test(v.slice(ge,_))&&r(ge,"Illegal newline after throw"),l.K=G(),be(),I(l,"ThrowStatement");case On:return g(),l.block=Be(),l.Ea=null,C===bn&&(a=V(),g(),D(ce),a.Ua=se(),Q&&it(a.Ua.name)&&r(a.Ua.start,"Binding "+a.Ua.name+" in strict mode"),D(oe),a.body=Be(),l.Ea=I(a,"CatchClause")),l.fb=U(En)?Be():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),I(l,"TryStatement");case Mt:return g(),gn(l),be(),I(l,"VariableDeclaration");case Vt:return g(),l.test=Ne(),L.push(_t),l.body=re(),L.pop(),I(l,"WhileStatement");case Rn:return Q&&r(_,"'with' in strict mode"),g(),l.object=Ne(),l.body=re(),I(l,"WithStatement");case De:return Be();case ue:return g(),I(l,"EmptyStatement");default:if(c=te,E=G(),a===Ce&&E.type==="Identifier"&&U(Le)){for(d=0;d<L.length;++d)L[d].name===c&&r(E.start,"Label '"+c+"' is already declared");return L.push({name:c,kind:C.W?"loop":C===Ut?"switch":null}),l.body=re(),L.pop(),l.label=E,I(l,"LabeledStatement")}return l.la=E,be(),I(l,"ExpressionStatement")}}function Ne(){D(ce);var a=G();return D(oe),a}function Be(a){var l=V(),c=!0,d=!1;for(l.body=[],D(De);!U(Ee);){var E=re();if(l.body.push(E),c&&a&&Qe(E)){var W=d;F(d=!0)}c=!1}return d&&!W&&F(!1),I(l,"BlockStatement")}function St(a,l){return a.ua=l,D(ue),a.test=C===ue?null:G(),D(ue),a.update=C===oe?null:G(),D(oe),a.body=re(),L.pop(),I(a,"ForStatement")}function mn(a,l){return a.left=l,a.right=G(),D(oe),a.body=re(),L.pop(),I(a,"ForInStatement")}function gn(a,l){for(a.fa=[],a.kind="var";;){var c=V();if(c.id=se(),Q&&it(c.id.name)&&r(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=U(Ln)?G(!0,l):null,a.fa.push(I(c,"VariableDeclarator")),!U(ye))break}}function G(a,l){var c=wt(l);if(!a&&C===ye){for(a=ne(c),a.xb=[c];U(ye);)a.xb.push(wt(l));return I(a,"SequenceExpression")}return c}function wt(a){var l=kt(Ct(),-1,a);if(U(Vn)){var c=ne(l);c.test=l,c.da=G(!0),D(Le),c.alternate=G(!0,a),l=I(c,"ConditionalExpression")}return C.Cb?(c=ne(l),c.operator=te,c.left=l,g(),c.right=wt(a),tt(l),I(c,"AssignmentExpression")):l}function kt(a,l,c){var d=C.L;if(d!==null&&(!c||C!==ot)&&d>l){var E=ne(a);return E.left=a,E.operator=te,a=C,g(),E.right=kt(Ct(),d,c),d=I(E,a===Wn||a===$n?"LogicalExpression":"BinaryExpression"),kt(d,l,c)}return a}function Ct(){if(C.prefix){var a=V(),l=C.$b;return a.operator=te,Ue=a.prefix=!0,g(),a.K=Ct(),l?tt(a.K):Q&&a.operator==="delete"&&a.K.type==="Identifier"&&r(a.start,"Deleting local variable in strict mode"),I(a,l?"UpdateExpression":"UnaryExpression")}for(l=Fe(nt());C.cc&&!et();)a=ne(l),a.operator=te,a.prefix=!1,a.K=l,tt(l),g(),l=I(a,"UpdateExpression");return l}function Fe(a,l){if(U(Mn)){var c=ne(a);return c.object=a,c.Wa=se(!0),c.bb=!1,Fe(I(c,"MemberExpression"),l)}return U(Dt)?(c=ne(a),c.object=a,c.Wa=G(),c.bb=!0,D(Lt),Fe(I(c,"MemberExpression"),l)):!l&&U(ce)?(c=ne(a),c.callee=a,c.arguments=It(oe,!1),Fe(I(c,"CallExpression"),l)):a}function nt(){switch(C){case Nn:var a=V();return g(),I(a,"ThisExpression");case Ce:return se();case Ve:case rt:case vn:return a=V(),a.value=te,a.raw=v.slice(_,ke),g(),I(a,"Literal");case Bn:case Fn:case Un:return a=V(),a.value=C.$a,a.raw=C.l,g(),I(a,"Literal");case ce:a=Tt;var l=_;g();var c=G();return c.start=l,c.end=ke,T.C&&(c.X.start=a,c.X.end=At),T.Xa&&(c.j=[l,ke]),D(oe),c;case Dt:return a=V(),g(),a.elements=It(Lt,!0,!0),I(a,"ArrayExpression");case De:for(a=V(),l=!0,c=!1,a.h=[],g();!U(Ee);){if(l)l=!1;else if(D(ye),T.sb&&U(Ee))break;var d={key:C===Ve||C===rt?nt():se(!0)},E=!1;if(U(Le)){d.value=G(!0);var W=d.kind="init"}else d.key.type!=="Identifier"||d.key.name!=="get"&&d.key.name!=="set"?ae():(E=c=!0,W=d.kind=d.key.name,d.key=C===Ve||C===rt?nt():se(!0),C!==ce&&ae(),d.value=Et(V(),!1));if(d.key.type==="Identifier"&&(Q||c))for(var z=0;z<a.h.length;++z){var je=a.h[z];if(je.key.name===d.key.name){var Wt=W===je.kind||E&&je.kind==="init"||W==="init"&&(je.kind==="get"||je.kind==="set");Wt&&!Q&&W==="init"&&je.kind==="init"&&(Wt=!1),Wt&&r(d.key.start,"Redefinition of property")}}a.h.push(d)}return I(a,"ObjectExpression");case Ft:return a=V(),g(),Et(a,!1);case Pn:return a=V(),g(),a.callee=Fe(nt(),!0),a.arguments=U(ce)?It(oe,!1):eo,I(a,"NewExpression")}ae()}function Et(a,l){C===Ce?a.id=se():l?ae():a.id=null,a.oa=[];var c=!0;for(D(ce);!U(oe);)c?c=!1:D(ye),a.oa.push(se());c=Me;var d=L;if(Me=!0,L=[],a.body=Be(!0),Me=c,L=d,Q||a.body.body.length&&Qe(a.body.body[0])){for(c=a.id?-1:0;c<a.oa.length;++c)if(d=0>c?a.id:a.oa[c],(Hn(d.name)||it(d.name))&&r(d.start,"Defining '"+d.name+"' in strict mode"),0<=c)for(var E=0;E<c;++E)d.name===a.oa[E].name&&r(d.start,"Argument name clash in strict mode")}return I(a,l?"FunctionDeclaration":"FunctionExpression")}function It(a,l,c){for(var d=[],E=!0;!U(a);){if(E)E=!1;else if(D(ye),l&&T.sb&&U(a))break;d.push(c&&C===ye?null:G(!0))}return d}function se(a){var l=V();return a&&T.yb==="everywhere"&&(a=!1),C===Ce?(!a&&(T.yb&&fo(te)||Q&&Hn(te))&&v.slice(_,ke).indexOf("\\")===-1&&r(_,"The keyword '"+te+"' is reserved"),l.name=te):a&&C.l?l.name=C.l:ae(),Ue=!1,g(),I(l,"Identifier")}e.version="0.5.0";var T,v="",we,jt;e.parse=function(a,l){v=String(a),we=v.length,T=l||{};for(var c in yn)Object.prototype.hasOwnProperty.call(T,c)||(T[c]=yn[c]);for(jt=T.sourceFile,xe=1,f=le=0,Ue=!0,p(),c=T.dc,Ot=ge=f,T.C&&(Rt=new i),Me=Q=!1,L=[],k(),a=c||V(),l=!0,c||(a.body=[]);C!==Pt;)c=re(),a.body.push(c),l&&Qe(c)&&F(!0),l=!1;return I(a,"Program")};var yn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,_=0,ke=0,Tt,At,C,te,Ue,xe,le,Ot=0,ge=0,Rt,Me,L,Q,eo=[],Ve={type:"num"},vn={type:"regexp"},rt={type:"string"},Ce={type:"name"},Pt={type:"eof"},Nt={l:"break"},Bt={l:"case",m:!0},bn={l:"catch"},xn={l:"continue"},Sn={l:"debugger"},wn={l:"default"},kn={l:"do",W:!0},Cn={l:"else",m:!0},En={l:"finally"},In={l:"for",W:!0},Ft={l:"function"},jn={l:"if"},Tn={l:"return",m:!0},Ut={l:"switch"},An={l:"throw",m:!0},On={l:"try"},Mt={l:"var"},Vt={l:"while",W:!0},Rn={l:"with"},Pn={l:"new",m:!0},Nn={l:"this"},Bn={l:"null",$a:null},Fn={l:"true",$a:!0},Un={l:"false",$a:!1},ot={l:"in",L:7,m:!0},to={break:Nt,case:Bt,catch:bn,continue:xn,debugger:Sn,default:wn,do:kn,else:Cn,finally:En,for:In,function:Ft,if:jn,return:Tn,switch:Ut,throw:An,try:On,var:Mt,while:Vt,with:Rn,null:Bn,true:Fn,false:Un,new:Pn,in:ot,instanceof:{l:"instanceof",L:7,m:!0},this:Nn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Dt={type:"[",m:!0},Lt={type:"]"},De={type:"{",m:!0},Ee={type:"}"},ce={type:"(",m:!0},oe={type:")"},ye={type:",",m:!0},ue={type:";",m:!0},Le={type:":",m:!0},Mn={type:"."},Vn={type:"?",m:!0},Dn={L:10,m:!0},Ln={Cb:!0,m:!0},Se={Cb:!0,m:!0},no={cc:!0,prefix:!0,$b:!0},_n={prefix:!0,m:!0},Wn={L:1,m:!0},$n={L:2,m:!0},ro={L:3,m:!0},oo={L:4,m:!0},io={L:5,m:!0},ao={L:6,m:!0},so={L:7,m:!0},lo={L:8,m:!0},co={L:9,prefix:!0,m:!0},uo={L:10,m:!0},fo=o("class enum extends super const export import"),Hn=o("implements interface let package private protected public static yield"),it=o("eval arguments"),po=o("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"),ho=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Kn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),mo=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),at=/[\n\r\u2028\u2029]/,st=/\r\n|[\n\r\u2028\u2029]/g,Ie,_t={kind:"loop"},go={kind:"switch"}},Ht=Ht=typeof globalThis>"u"?void 0:globalThis;To(Ht.j||(Ht.j={}));function h(e,t){typeof e=="string"&&(e=Oe(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var i,s;for(s in this)typeof this[s]=="function"&&(i=s.match(e))&&(this.rb[i[1]]=this[s].bind(this));this.N=Gt(this,this.ra,null),this.Na=this.N.object,this.ra=Oe(this.ba.join(`
|
|
4
|
+
`),"polyfills"),this.ba=void 0,mt(this.ra),i=new S(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new S(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var Gn={C:!0,kc:5},qt={configurable:!0,enumerable:!0,writable:!1},b={configurable:!0,enumerable:!1,writable:!0},Z={configurable:!0,enumerable:!1,writable:!1},_e={configurable:!1,enumerable:!1,writable:!1},Xn={configurable:!1,enumerable:!0,writable:!0},yr={STEP_ERROR:!0},Pe={SCOPE_REFERENCE:!0},Je={VALUE_IN_DESCRIPTOR:!0},Ae={REGEXP_TIMEOUT:!0},Jn=[],de=null,Ge=null,ve=typeof globalThis>"u"?void 0:globalThis,Ao=["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 Zt(e){var t=e>>>0;return t===Number(e)?t:NaN}function Xe(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function mt(e,t,n){t?e.start=t:delete e.start,n?e.end=n:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var o=e[r];o&&typeof o=="object"&&mt(o,t,n)}}h.prototype.REGEXP_MODE=2;h.prototype.REGEXP_THREAD_TIMEOUT=1e3;h.prototype.POLYFILL_TIMEOUT=1e3;B=h.prototype;B.P=!1;B.Ka=!1;B.Kb=0;B.ic=0;function Oe(e,t){var n={},r;for(r in Gn)n[r]=Gn[r];return n.sourceFile=t,ve.j.parse(e,n)}B.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=Oe(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Ye(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};B.lb=function(){var e=this.o,t;do{var n=e[e.length-1];if(this.za)break;if(!n||n.node.type==="Program"&&n.done){if(!this.ca.length)return!1;if(n=this.ca[0],!n||n.time>Date.now())n=null;else{this.ca.shift(),0<=n.interval&&xr(this,n,n.interval);var r=new S(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=Ge;Ge=this;try{var i=this.rb[r.type](e,n,r)}catch(s){if(s!==yr)throw this.value!==s&&(this.value=void 0),s}finally{Ge=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};B.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Oo(e,t){e.g(t,"NaN",NaN,_e),e.g(t,"Infinity",1/0,_e),e.g(t,"undefined",void 0,_e),e.g(t,"window",t,qt),e.g(t,"this",t,_e),e.g(t,"self",t),e.M=new P(null),e.Z=new P(e.M),Ro(e,t),Po(e,t),t.xa=e.M,e.g(t,"constructor",e.v,b),No(e,t),Bo(e,t),Fo(e,t),Uo(e,t),Mo(e,t),Vo(e,t),Do(e,t),Lo(e,t),_o(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,b),e.g(t,"parseInt",e.i(parseInt,!1),b),e.g(t,"parseFloat",e.i(parseFloat,!1),b),e.g(t,"isNaN",e.i(isNaN,!1),b),e.g(t,"isFinite",e.i(isFinite,!1),b);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(s){try{return i(s)}catch(u){w(e,e.Gb,u.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),b);n=function(i){return Yn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),b),n=function(i){return Yn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),b),n=function(i){zn(e,i)},e.g(t,"clearTimeout",e.i(n,!1),b),n=function(i){zn(e,i)},e.g(t,"clearInterval",e.i(n,!1),b),e.OBJECT=e.v,e.OBJECT_PROTO=e.M,e.FUNCTION=e.O,e.FUNCTION_PROTO=e.Z,e.ARRAY=e.qa,e.ARRAY_PROTO=e.La,e.REGEXP=e.I,e.REGEXP_PROTO=e.Ma,e.DATE=e.$,e.DATE_PROTO=e.nb,e.qb&&e.qb(e,t)}B.Wb=0;function Ro(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",s=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(s){s=s.split(/\s*,\s*/);for(var u=0;u<s.length;u++){var p=s[u];n.test(p)||w(e,e.T,"Invalid function argument: "+p)}s=s.join(", ")}try{var x=Oe("(function("+s+") {"+i+"})","function"+e.Wb++)}catch(k){w(e,e.T,"Invalid code: "+k.message)}return x.body.length!==1&&w(e,e.T,"Invalid code in function body"),tn(e,x.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,b),e.g(e.O,"prototype",e.Z,b),e.g(e.Z,"constructor",e.O,b),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,Z),e.Z.H="Function",r=function(o,i){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[],i!=null&&(i instanceof P?s.F=vr(e,i):w(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},$(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var s=1;s<arguments.length;s++)i.F.push(arguments[s]);i.eb=!1},$(e,e.O,"call",r),e.ba.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function bind(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');","}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});",""),r=function(){return String(this)},$(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),b),r=function(){return this.valueOf()},$(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),b)}function Po(e,t){function n(o){o!=null||w(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return he(e)?this:e.s(e.M);if(!(o instanceof P)){var i=e.s(pe(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,b),e.g(e.M,"constructor",e.v,b),e.g(t,"Object",e.v,b),r=function(o){return n(o),fe(e,Object.getOwnPropertyNames(o instanceof P?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),b),r=function(o){return n(o),o instanceof P&&(o=o.h),fe(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),b),r=function(o){return o===null?e.s(null):(o instanceof P||w(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(r,!1),b),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),r=function(o,i,s){return i=String(i),o instanceof P||w(e,e.j,"Object.defineProperty called on non-object: "+o),s instanceof P||w(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||w(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,Je,s.h),o},e.g(e.v,"defineProperty",e.i(r,!1),b),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),r=function(o,i){if(o instanceof P||w(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var s=Object.getOwnPropertyDescriptor(o.h,i),u=o.V[i];return o=o.Y[i],i=e.s(e.M),u||o?(e.g(i,"get",u),e.g(i,"set",o)):(e.g(i,"value",s.value),e.g(i,"writable",s.writable)),e.g(i,"configurable",s.configurable),e.g(i,"enumerable",s.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),b),r=function(o){return n(o),pe(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),b),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),b),r=function(o){return o instanceof P&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),b),$(e,e.v,"toString",P.prototype.toString),$(e,e.v,"toLocaleString",P.prototype.toString),$(e,e.v,"valueOf",P.prototype.valueOf),r=function(o){return n(this),this instanceof P?String(o)in this.h:this.hasOwnProperty(o)},$(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof P?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},$(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=pe(e,o),!o)return!1;if(o===this)return!0}},$(e,e.v,"isPrototypeOf",r)}function No(e,t){var n=function(r){var o=he(e)?this:Re(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(Zt(i))&&w(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,b),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),b),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.La.H="Array",e.ba.push("(function() {","function createArrayMethod_(f) {","Object.defineProperty(Array.prototype, f.name,","{configurable: true, writable: true, value: f});","}","createArrayMethod_(","function pop() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_(","function push(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_(","function shift() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_(","function unshift(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_(","function reverse() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_(","function indexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_(","function lastIndexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_(","function slice(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_(","function splice(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 1) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","o.length = len;","return removed;","}",");","createArrayMethod_(","function concat(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_(","function join(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_(","function every(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callbackfn.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_(","function filter(fun, var_args) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (fun.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_(","function forEach(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_(","function map(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_(","function reduce(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function reduceRight(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function some(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && fun.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_(","function sort(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_(","function toLocaleString() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")}function Bo(e,t){var n=function(r){return r=arguments.length?ve.String(r):"",he(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,b),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),b),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)$(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(s){w(e,e.D,"localeCompare: "+s.message)}},$(e,e.J,"localeCompare",n),n=function(r,o,i){var s=String(this);if(o=o?Number(o):void 0,H(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(de)r=We(e,"string.split(separator, limit)",{string:s,separator:r,limit:o},r,i),r!==Ae&&i(fe(e,r));else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(x){clearTimeout(p),i(fe(e,x.data))},u.postMessage(["split",s,r,o])}return}r=s.split(r,o),i(fe(e,r))},Ke(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=H(e,r,e.I)?r.data:new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(de)r=We(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r&&fe(e,r));else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data&&fe(e,p.data))},s.postMessage(["match",i,r])}else r=i.match(r),o(r&&fe(e,r))},Ke(e,e.J,"match",n),n=function(r,o){var i=String(this);if(H(e,r,e.I)?r=r.data:r=new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(de)r=We(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r);else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data)},s.postMessage(["search",i,r])}else o(i.search(r))},Ke(e,e.J,"search",n),n=function(r,o,i){var s=String(this);if(o=String(o),H(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(de)r=We(e,"string.replace(substr, newSubstr)",{string:s,substr:r,newSubstr:o},r,i),r!==Ae&&i(r);else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(x){clearTimeout(p),i(x.data)},u.postMessage(["replace",s,r,o])}return}i(s.replace(r,o))},Ke(e,e.J,"replace",n),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function Fo(e,t){e.mb=e.i(function(n){return n=ve.Boolean(n),he(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,b)}function Uo(e,t){var n=function(r){return r=arguments.length?ve.Number(r):0,he(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,b),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],n=0;n<t.length;n++)e.g(e.aa,t[n],Number[t[n]],_e);n=function(r){try{return Number(this).toExponential(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(i){w(e,e.D,"toLocaleString: "+i.message)}},$(e,e.aa,"toLocaleString",n)}function Mo(e,t){var n=function(o,i){if(!he(e))return ve.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(ve.Date,s)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,b),e.g(e.$,"now",e.i(Date.now,!1),b),e.g(e.$,"parse",e.i(Date.parse,!1),b),e.g(e.$,"UTC",e.i(Date.UTC,!1),b),t="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 toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var s=this.data;s instanceof Date||w(e,e.j,o+" not called on a Date");for(var u=[],p=0;p<arguments.length;p++)u[p]=e.R(arguments[p]);return s[o].apply(s,u)}}(t[r]),$(e,e.$,t[r],n)}function Vo(e,t){var n=function(r,o){if(he(e))var i=this;else{if(o===void 0&&H(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||w(e,e.T,"Invalid regexp flag: "+o);try{var s=new ve.RegExp(r,o)}catch(u){w(e,e.T,u.message)}return Qt(e,i,s),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,b),e.g(e.I.h.prototype,"global",void 0,Z),e.g(e.I.h.prototype,"ignoreCase",void 0,Z),e.g(e.I.h.prototype,"multiline",void 0,Z),e.g(e.I.h.prototype,"source","(?:)",Z),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(k){if(k){var m=fe(e,k);return e.g(m,"index",k.index),e.g(m,"input",k.input),m}return null}var s=this.data;if(r=String(r),s.lastIndex=Number(e.G(this,"lastIndex")),$e(e,s,o),e.REGEXP_MODE===2)if(de)r=We(e,"regexp.exec(string)",{string:r,regexp:s},s,o),r!==Ae&&(e.g(this,"lastIndex",s.lastIndex),o(i(r)));else{var u=e.ha(),p=He(e,s,u,o),x=this;u.onmessage=function(k){clearTimeout(p),e.g(x,"lastIndex",k.data[1]),o(i(k.data[0]))},u.postMessage(["exec",s,s.lastIndex,r])}else r=s.exec(r),e.g(this,"lastIndex",s.lastIndex),o(i(r))},Ke(e,e.I,"exec",n)}function Do(e,t){function n(r){var o=e.i(function(i){var s=he(e)?this:e.Aa(o);return Kt(e,s,i),s},!0);return e.g(o,"prototype",e.Aa(e.D),b),e.g(o.h.prototype,"name",r,b),e.g(t,r,o,b),o}e.D=e.i(function(r){var o=he(e)?this:e.Aa(e.D);return Kt(e,o,r),o},!0),e.g(t,"Error",e.D,b),e.g(e.D.h.prototype,"message","",b),e.g(e.D.h.prototype,"name","Error",b),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function Lo(e,t){var n=e.s(e.M);e.g(t,"Math",n,b);var r="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<r.length;t++)e.g(n,r[t],Math[r[t]],Z);for(r="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<r.length;t++)e.g(n,r[t],e.i(Math[r[t]],!1),b)}function _o(e,t){var n=e.s(e.M);e.g(t,"JSON",n,b),t=function(r){try{var o=JSON.parse(String(r))}catch(i){w(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?w(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=vr(e,o),o=o.filter(function(u){return typeof u=="string"||typeof u=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var s=JSON.stringify(r,o,i)}catch(u){w(e,e.j,u.message)}return s},e.g(n,"stringify",e.i(t,!1))}function H(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=pe(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Qt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,b),e.g(t,"source",n.source,Z),e.g(t,"global",n.global,Z),e.g(t,"ignoreCase",n.ignoreCase,Z),e.g(t,"multiline",n.multiline,Z)}function Kt(e,t,n){n&&e.g(t,"message",String(n),b),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;i.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!i.X||n.length&&i.type!=="CallExpression"||n.push({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
|
|
5
5
|
`,r=0;r<n.length;r++){var s=n[r].Nb;o=n[r].Ob,s=s.source+":"+s.start.line+":"+s.start.ab,i=o?i+(" at "+o+" ("+s+`)
|
|
6
6
|
`):i+(" at "+s+`
|
|
7
|
-
`)}e.g(t,"stack",i.trim(),b)}
|
|
8
|
-
`)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function We(e,t,n,r,o){var i={timeout:e.REGEXP_THREAD_TIMEOUT};try{return de.runInNewContext(t,n,i)}catch{o(null),w(e,e.D,"RegExp Timeout: "+r)}return Ae}function $e(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(de)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{de=require("vm")}catch{}r=!!de}else r=!1;r||(n(null),w(e,e.D,"Regular expressions not supported: "+t))}function He(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{w(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}F.Aa=function(e){return this.s(e&&e.h.prototype)};F.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new P(e),H(this,e,this.D)&&(e.H="Error"),e};function Re(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function en(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,b),e.g(n,"constructor",r,b)):r.Ab=!0,e.g(r,"length",t,Z),r.H="Function",r}function tn(e,t,n,r){var o=en(e,t.oa.length,!0);return o.Va=n,o.node=t,e.g(o,"name",t.id?String(t.id.name):r||"",Z),o}F.i=function(e,t){return t=en(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,Z),t};F.ub=function(e){var t=en(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,Z),t};F.Ia=function(e){if(e instanceof P)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return Qt(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var n=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var o=Array.prototype.slice.call(arguments).map(function(i){return n.R(i)});return o=e.apply(n,o),n.Ia(o)},!!t)}if(Array.isArray(e)){t=Re(this);for(var r=0;r<e.length;r++)r in e&&this.g(t,r,this.Ia(e[r]));return t}t=this.s(this.M);for(r in e)this.g(t,r,this.Ia(e[r]));return t};F.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof P))throw Error("Object is not pseudo");if(H(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(H(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var n=t.hb.indexOf(e);if(n!==-1)return t.Sa[n];if(t.hb.push(e),H(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),o=0;o<r;o++)gt(this,e,o)&&(n[o]=this.R(this.G(e,o),t))}else for(r in n={},t.Sa.push(n),e.h)o=this.R(e.h[r],t),Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function fe(e,t){for(var n=Re(e),r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e.g(n,r[o],t[r[o]]);return n}function yr(e,t){var n=[],r;for(r in t.h)n[r]=e.G(t,r);return n.length=Zt(e.G(t,"length"))||0,n}function pe(e,t){switch(typeof t){case"number":return e.aa.h.prototype;case"boolean":return e.mb.h.prototype;case"string":return e.J.h.prototype}return t?t.xa:null}F.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||w(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof P))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(H(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&H(this,e,this.J)){var n=Xe(t);if(!isNaN(n)&&n<String(e).length)return String(e)[n]}do if(e.h&&t in e.h)return(n=e.V[t])?(this.P=!0,n):e.h[t];while(e=pe(this,e))};function gt(e,t,n){if(!(t instanceof P))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&H(e,t,e.J))return!0;if(H(e,t,e.J)){var r=Xe(n);if(!isNaN(r)&&r<String(t).length)return!0}do if(t.h&&n in t.h)return!0;while(t=pe(e,t));return!1}F.g=function(e,t,n,r){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||w(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof P))throw TypeError("Expecting native value or pseudo object");r&&("get"in r||"set"in r)&&("value"in r||"writable"in r)&&w(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var o=!this.o||nn(this).S;if(e instanceof P){if(H(this,e,this.J)){var i=Xe(t);if(t==="length"||!isNaN(i)&&i<String(e).length){o&&w(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(i=e.h.length,t==="length"){if(r){if(!("value"in r))return;n=r.value}if(n=Zt(n),isNaN(n)&&w(this,this.ob,"Invalid array length"),n<i)for(s in e.h){var s=Xe(s);!isNaN(s)&&n<=s&&delete e.h[s]}}else isNaN(s=Xe(t))||(e.h.length=Math.max(i,s+1));if(!e.preventExtensions||t in e.h)if(r){o={},"get"in r&&r.get&&(e.V[t]=r.get,o.get=this.g.ac),"set"in r&&r.set&&(e.Y[t]=r.set,o.set=this.g.bc),"configurable"in r&&(o.configurable=r.configurable),"enumerable"in r&&(o.enumerable=r.enumerable),"writable"in r&&(o.writable=r.writable,delete e.V[t],delete e.Y[t]),"value"in r?(o.value=r.value,delete e.V[t],delete e.Y[t]):n!==Je&&(o.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,o)}catch{w(this,this.j,"Cannot redefine property: "+t)}"get"in r&&!r.get&&delete e.V[t],"set"in r&&!r.set&&delete e.Y[t]}else{if(n===Je)throw ReferenceError("Value not specified");for(r=e;!(t in r.h);)if(r=pe(this,r),!r){r=e;break}if(r.Y&&r.Y[t])return this.Ka=!0,r.Y[t];if(r.V&&r.V[t])o&&w(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{o&&w(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else o&&w(this,this.j,"Can't add property '"+t+"', object is not extensible")}else o&&w(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};F.g.ac=function(){throw Error("Placeholder getter")};F.g.bc=function(){throw Error("Placeholder setter")};function $(e,t,n,r){e.g(t.h.prototype,n,e.i(r,!1),b)}function Ke(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),b)}function nn(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Gt(e,t,n){var r=!1;if(n&&n.S)r=!0;else{var o=t.body&&t.body[0];o&&o.la&&o.la.type==="Literal"&&o.la.value==="use strict"&&(r=!0)}return o=e.s(null),r=new xr(n,r,o),n||Oo(e,r.object),Ye(e,t,r),r}function rn(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new xr(t,t.S,e)}function on(e,t){for(var n=nn(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&>(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||w(e,e.pb,t+" is not defined")}function vr(e,t,n){for(var r=nn(e),o=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{o&&w(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!o||gt(e,r.object,t)))return e.g(r.object,t,n);w(e,e.pb,t+" is not defined")}function Ye(e,t,n){if(t.jb)var r=t.jb;else{switch(r=Object.create(null),t.type){case"VariableDeclaration":for(var o=0;o<t.fa.length;o++)r[t.fa[o].id.name]=!0;break;case"FunctionDeclaration":r[t.id.name]=t;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 i=t.constructor,s;for(s in t)if(s!=="loc"){var u=t[s];if(u&&typeof u=="object"){if(Array.isArray(u)){for(o=0;o<u.length;o++)if(u[o]&&u[o].constructor===i){var p=Ye(e,u[o],n);for(s in p)r[s]=p[s]}}else if(u.constructor===i)for(s in p=Ye(e,u,n),p)r[s]=p[s]}}}t.jb=r}for(s in r)r[s]===!0?e.g(n.object,s,void 0,Gn):e.g(n.object,s,tn(e,r[s],n),Gn);return r}function he(e){return e.o[e.o.length-1].isConstructor}function an(e,t){return t[0]===Pe?on(e,t[1]):e.G(t[0],t[1])}function sn(e,t,n){return t[0]===Pe?vr(e,t[1],n):e.g(t[0],t[1],n)}function w(e,t,n){throw e.N?(n!==void 0&&t instanceof P&&(t=e.Aa(t),Kt(e,t,n)),ze(e,4,t),gr):n===void 0?t:n}function ze(e,t,n,r){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var o=e.o;e:for(;0<o.length;o.pop()){var i=o[o.length-1];switch(i.node.type){case"TryStatement":i.ea={type:t,value:n,label:r};return;case"CallExpression":case"NewExpression":if(t===3){i.value=n;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":i.done=!0;break e}if(t===1){if(r?i.labels&&i.labels.indexOf(r)!==-1:i.W||i.Zb){o.pop();return}}else if(t===2&&(r?i.labels&&i.labels.indexOf(r)!==-1:i.W))return}throw H(e,n,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},r=String(e.G(n,"name")),o=e.G(n,"message").valueOf(),t=(t[r]||Error)(o),t.stack=String(e.G(n,"stack"))):t=String(n),e.value=t,t}function q(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return q(e,t.left)+" "+t.operator+" "+q(e,t.right);case"CallExpression":return q(e,t.callee)+"(...)";case"ConditionalExpression":return q(e,t.test)+" ? "+q(e,t.da)+" : "+q(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=q(e,t.object);return e=q(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+q(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+q(e,t.K);case"UpdateExpression":return n=q(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function Jn(e,t,n){var r=e.o[e.o.length-1],o=Array.from(n),i=o.shift();n=Math.max(Number(o.shift()||0),0);var s=e.ya();if(i instanceof P&&i.H==="Function"){var u=i;s.type="CallExpression",r=r.scope}else{try{var p=Oe(String(i),"taskCode"+e.ic++)}catch(x){w(e,e.T,"Invalid code: "+x.message)}s.type="EvalProgram_",s.body=p.body,r=r.node.arguments[0],mt(s,r?r.start:void 0,r?r.end:void 0),r=e.N,o.length=0}return t=new Wo(u,o,r,s,t?n:-1),br(e,t,n),t.Db}function br(e,t,n){t.time=Date.now()+n,e.ca.push(t),e.ca.sort(function(r,o){return r.time-o.time})}function Yn(e,t){for(var n=0;n<e.ca.length;n++)if(e.ca[n].Db==t){e.ca.splice(n,1);break}}function qe(e,t,n){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,n=Array.isArray(n)?n[0]:n;var r=e.ya();return r.type="CallExpression",e=new S(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function ln(e,t,n,r){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,n=Array.isArray(n)?n[0]:e.Na;var o=e.ya();return o.type="CallExpression",e=new S(o,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[r],e}function $t(e,t){return t==null?e.Na:t instanceof P?t:(e=e.s(pe(e,t)),e.data=t,e)}F.Xb=function(){return this.N};F.Yb=function(){return this.o};F.ec=function(e){this.o=e};function S(e,t){this.node=e,this.scope=t}function xr(e,t,n){this.Va=e,this.S=t,this.object=n}function P(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}F=P.prototype;F.xa=null;F.H="Object";F.data=null;F.toString=function(){if(!Ge)return"[object Interpreter.Object]";if(!(this instanceof P))return String(this);if(this.H==="Array"){var e=Xn;e.push(this);try{var t=[],n=this.h.length,r=!1;1024<n&&(n=1e3,r=!0);for(var o=0;o<n;o++){var i=this.h[o];t[o]=i instanceof P&&e.indexOf(i)!==-1?"...":i}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Xn,e.indexOf(this)!==-1)return"[object Error]";n=this;do if("name"in n.h){t=n.h.name;break}while(n=n.xa);n=this;do if("message"in n.h){r=n.h.message;break}while(n=n.xa);e.push(this);try{t=t&&String(t),r=r&&String(r)}finally{e.pop()}return r?t+": "+r:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};F.valueOf=function(){return!Ge||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function Wo(e,t,n,r,o){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=o,this.Db=++$o,this.time=0}var $o=0;h.prototype.stepArrayExpression=function(e,t,n){n=n.elements;var r=t.A||0;for(t.Oa?(this.g(t.Oa,r,t.value),r++):(t.Oa=Re(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new S(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};h.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new S(n.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&n.operator!=="="&&(e=an(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,qe(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new S(n.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var r=t.ma,o=t.value;switch(n.operator){case"=":r=o;break;case"+=":r+=o;break;case"-=":r-=o;break;case"*=":r*=o;break;case"/=":r/=o;break;case"%=":r%=o;break;case"<<=":r<<=o;break;case">>=":r>>=o;break;case">>>=":r>>>=o;break;case"&=":r&=o;break;case"^=":r^=o;break;case"|=":r|=o;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}if(n=sn(this,t.Fa,r))return t.ta=!0,t.ib=r,ln(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};h.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new S(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new S(n.right,t.scope);e.pop();var r=t.ma;switch(t=t.value,n.operator){case"==":n=r==t;break;case"!=":n=r!=t;break;case"===":n=r===t;break;case"!==":n=r!==t;break;case">":n=r>t;break;case">=":n=r>=t;break;case"<":n=r<t;break;case"<=":n=r<=t;break;case"+":n=r+t;break;case"-":n=r-t;break;case"*":n=r*t;break;case"/":n=r/t;break;case"%":n=r%t;break;case"&":n=r&t;break;case"|":n=r|t;break;case"^":n=r^t;break;case"<<":n=r<<t;break;case">>":n=r>>t;break;case">>>":n=r>>>t;break;case"in":t instanceof P||w(this,this.j,"'in' expects an object, not '"+t+"'"),n=gt(this,t,r);break;case"instanceof":H(this,t,this.O)||w(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof P?H(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};h.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new S(n,t.scope);e.pop()};h.prototype.stepBreakStatement=function(e,t,n){ze(this,1,void 0,n.label&&n.label.name)};h.prototype.Hb=0;h.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new S(n.callee,t.scope);return r.sa=!0,r}if(t.ia===1){t.ia=2;var o=t.value;if(Array.isArray(o)){if(t.U=an(this,o),o[0]===Pe?t.Pb=o[1]==="eval":t.B=o[0],o=t.U,this.P)return t.ia=1,qe(this,o,t.value)}else t.U=o;t.F=[],t.A=0}if(o=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),n.arguments[t.A])return new S(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(o instanceof P&&!o.Ab||w(this,this.j,q(this,n.callee)+" is not a constructor"),o===this.qa)t.B=Re(this);else{var i=o.h.prototype;(typeof i!="object"||i===null)&&(i=this.M),t.B=this.s(i)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,o instanceof P||w(this,this.j,q(this,n.callee)+" is not a function"),e=o.node){for(n=Gt(this,e.body,o.Va),r=Re(this),o=0;o<t.F.length;o++)this.g(r,o,t.F[o]);for(this.g(n.object,"arguments",r),o=0;o<e.oa.length;o++)this.g(n.object,e.oa[o].name,t.F.length>o?t.F[o]:void 0);return n.S||(t.B=$t(this,t.B)),this.g(n.object,"this",t.B,qt),t.value=void 0,new S(e.body,n)}if(o.eval)if(o=t.F[0],typeof o!="string")t.value=o;else{try{r=Oe(String(o),"eval"+this.Hb++)}catch(u){w(this,this.T,"Invalid code: "+u.message)}return o=this.ya(),o.type="EvalProgram_",o.body=r.body,mt(o,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=Gt(this,r,n):Ye(this,r,n),this.value=void 0,new S(o,n)}else if(o.Ta)t.scope.S||(t.B=$t(this,t.B)),t.value=o.Ta.apply(t.B,t.F);else if(o.Za){var s=this;r=o.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(u){t.value=u,s.za=!1}),this.za=!0,t.scope.S||(t.B=$t(this,t.B)),o.Za.apply(t.B,r)}else w(this,this.j,q(this,n.callee)+" is not callable")}};h.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new S(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new S(n.da,t.scope);if(!r&&n.alternate)return new S(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};h.prototype.stepContinueStatement=function(e,t,n){ze(this,2,void 0,n.label&&n.label.name)};h.prototype.stepDebuggerStatement=function(e){e.pop()};h.prototype.stepDoWhileStatement=function(e,t,n){if(n.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new S(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new S(n.body,t.scope)};h.prototype.stepEmptyStatement=function(e){e.pop()};h.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new S(n,t.scope);e.pop(),e[e.length-1].value=this.value};h.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new S(n.la,t.scope);e.pop(),this.value=t.value};h.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&w(this,this.T,"for-in loop variable declaration may not have an initializer"),new S(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new S(n.right,t.scope);if(t.W||(t.W=!0,t.u=t.value,t.kb=Object.create(null)),t.Ra===void 0)e:for(;;){if(t.u instanceof P)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var r=t.wa.shift();if(r===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,r)&&!t.kb[r]&&(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,r))){t.Ra=r;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));r=t.wa.shift(),r!==void 0;)if(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u,r)){t.Ra=r;break e}}if(t.u=pe(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=n.left,e.type==="VariableDeclaration")t.pa=[Pe,e.fa[0].id.name];else return t.pa=null,t=new S(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=sn(this,t.pa,e)))return ln(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new S(n.body,t.scope)};h.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new S(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new S(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new S(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new S(n.update,t.scope)}};h.prototype.stepFunctionDeclaration=function(e){e.pop()};h.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=rn(this,e)),t.value=tn(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,qt)};h.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[Pe,n.name];else{if(t=on(this,n.name),this.P)return qe(this,t,this.Na);e[e.length-1].value=t}};h.prototype.stepIfStatement=h.prototype.stepConditionalExpression;h.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new S(n.body,t.scope),t.labels=e,t};h.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),Qt(this,n,t),t=n),e[e.length-1].value=t};h.prototype.stepLogicalExpression=function(e,t,n){if(n.operator!=="&&"&&n.operator!=="||")throw SyntaxError("Unknown logical operator: "+n.operator);if(!t.ja)return t.ja=!0,new S(n.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(n.operator==="&&"&&!t.value||n.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new S(n.right,t.scope)};h.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new S(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new S(n.Wa,t.scope);else t.u=t.value,n=n.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,n];else{if(n=this.G(t.u,n),this.P)return qe(this,n,t.u);e[e.length-1].value=n}};h.prototype.stepNewExpression=h.prototype.stepCallExpression;h.prototype.stepObjectExpression=function(e,t,n){var r=t.A||0,o=n.h[r];if(t.u){var i=t.Pa;t.Ja[i]||(t.Ja[i]={}),t.Ja[i][o.kind]=t.value,t.A=++r,o=n.h[r]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(o){var s=o.key;if(s.type==="Identifier")i=s.name;else if(s.type==="Literal")i=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=i,new S(o.value,t.scope)}for(s in t.Ja)n=t.Ja[s],"get"in n||"set"in n?this.g(t.u,s,Je,{configurable:!0,enumerable:!0,get:n.get,set:n.set}):this.g(t.u,s,n.init);e.pop(),e[e.length-1].value=t.u};h.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new S(e,t.scope);t.done=!0};h.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new S(n.K,t.scope);ze(this,3,t.value)};h.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new S(n,t.scope);e.pop(),e[e.length-1].value=t.value};h.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new S(n.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var r=t.gb||0,o=n.tb[r];if(t.Ha||!o||o.test)if(o||t.Ha||t.cb===-1)if(o){if(!t.Ha&&!t.Fb&&o.test)return t.Fb=!0,new S(o.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var i=t.A||0;if(o.da[i])return t.Zb=!0,t.A=i+1,new S(o.da[i],t.scope)}t.Fb=!1,t.A=0,t.gb=r+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=r,t.gb=r+1}};h.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=on(this,"this")};h.prototype.stepThrowStatement=function(e,t,n){if(t.ka)w(this,t.value);else return t.ka=!0,new S(n.K,t.scope)};h.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new S(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=rn(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new S(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new S(n.fb,t.scope);e.pop(),t.ea&&ze(this,t.ea.type,t.ea.value,t.ea.label)};h.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new S(n.K,t.scope),e.sa=n.operator==="delete",e;e.pop();var r=t.value;switch(n.operator){case"-":r=-r;break;case"+":r=+r;break;case"!":r=!r;break;case"~":r=~r;break;case"delete":if(n=!0,Array.isArray(r)){var o=r[0];o===Pe&&(o=t.scope),r=String(r[1]);try{delete o.h[r]}catch{t.scope.S?w(this,this.j,"Cannot delete property '"+r+"' of '"+o+"'"):n=!1}}r=n;break;case"typeof":r=r&&r.H==="Function"?"function":typeof r;break;case"void":r=void 0;break;default:throw SyntaxError("Unknown unary operator: "+n.operator)}e[e.length-1].value=r};h.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new S(n.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var r=an(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,qe(this,r,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(r=Number(t.ma),n.operator==="++")var o=r+1;else if(n.operator==="--")o=r-1;else throw SyntaxError("Unknown update expression: "+n.operator);if(n=n.prefix?o:r,r=sn(this,t.Ga,o))return t.ta=!0,t.ib=n,ln(this,r,t.Ga,o);e.pop(),e[e.length-1].value=n}};h.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,o=n[r];for(t.Bb&&o&&(vr(this,o.id.name,t.value),t.Bb=!1,o=n[++r]);o;){if(o.ua)return t.A=r,t.Bb=!0,t.Pa=o.id.name,new S(o.ua,t.scope);o=n[++r]}e.pop()};h.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=rn(this,t.scope,t.value),new S(n.body,e)):(t.Ca=!0,new S(n.object,t.scope))};h.prototype.stepWhileStatement=h.prototype.stepDoWhileStatement;ve.Interpreter=h;h.prototype.step=h.prototype.lb;h.prototype.run=h.prototype.Eb;h.prototype.appendCode=h.prototype.Jb;h.prototype.createObject=h.prototype.Aa;h.prototype.createObjectProto=h.prototype.s;h.prototype.createAsyncFunction=h.prototype.ub;h.prototype.createNativeFunction=h.prototype.i;h.prototype.getProperty=h.prototype.G;h.prototype.setProperty=h.prototype.g;h.prototype.nativeToPseudo=h.prototype.Ia;h.prototype.pseudoToNative=h.prototype.R;h.prototype.getGlobalScope=h.prototype.Xb;h.prototype.getStateStack=h.prototype.Yb;h.prototype.setStateStack=h.prototype.ec;h.VALUE_IN_DESCRIPTOR=Je;const Ho=e=>e.split(`
|
|
7
|
+
`)}e.g(t,"stack",i.trim(),b)}B.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([Ao.join(`
|
|
8
|
+
`)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function We(e,t,n,r,o){var i={timeout:e.REGEXP_THREAD_TIMEOUT};try{return de.runInNewContext(t,n,i)}catch{o(null),w(e,e.D,"RegExp Timeout: "+r)}return Ae}function $e(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(de)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{de=require("vm")}catch{}r=!!de}else r=!1;r||(n(null),w(e,e.D,"Regular expressions not supported: "+t))}function He(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{w(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}B.Aa=function(e){return this.s(e&&e.h.prototype)};B.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new P(e),H(this,e,this.D)&&(e.H="Error"),e};function Re(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function en(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,b),e.g(n,"constructor",r,b)):r.Ab=!0,e.g(r,"length",t,Z),r.H="Function",r}function tn(e,t,n,r){var o=en(e,t.oa.length,!0);return o.Va=n,o.node=t,e.g(o,"name",t.id?String(t.id.name):r||"",Z),o}B.i=function(e,t){return t=en(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,Z),t};B.ub=function(e){var t=en(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,Z),t};B.Ia=function(e){if(e instanceof P)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return Qt(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var n=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var o=Array.prototype.slice.call(arguments).map(function(i){return n.R(i)});return o=e.apply(n,o),n.Ia(o)},!!t)}if(Array.isArray(e)){t=Re(this);for(var r=0;r<e.length;r++)r in e&&this.g(t,r,this.Ia(e[r]));return t}t=this.s(this.M);for(r in e)this.g(t,r,this.Ia(e[r]));return t};B.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof P))throw Error("Object is not pseudo");if(H(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(H(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var n=t.hb.indexOf(e);if(n!==-1)return t.Sa[n];if(t.hb.push(e),H(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),o=0;o<r;o++)gt(this,e,o)&&(n[o]=this.R(this.G(e,o),t))}else for(r in n={},t.Sa.push(n),e.h)o=this.R(e.h[r],t),Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function fe(e,t){for(var n=Re(e),r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e.g(n,r[o],t[r[o]]);return n}function vr(e,t){var n=[],r;for(r in t.h)n[r]=e.G(t,r);return n.length=Zt(e.G(t,"length"))||0,n}function pe(e,t){switch(typeof t){case"number":return e.aa.h.prototype;case"boolean":return e.mb.h.prototype;case"string":return e.J.h.prototype}return t?t.xa:null}B.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||w(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof P))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(H(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&H(this,e,this.J)){var n=Xe(t);if(!isNaN(n)&&n<String(e).length)return String(e)[n]}do if(e.h&&t in e.h)return(n=e.V[t])?(this.P=!0,n):e.h[t];while(e=pe(this,e))};function gt(e,t,n){if(!(t instanceof P))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&H(e,t,e.J))return!0;if(H(e,t,e.J)){var r=Xe(n);if(!isNaN(r)&&r<String(t).length)return!0}do if(t.h&&n in t.h)return!0;while(t=pe(e,t));return!1}B.g=function(e,t,n,r){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||w(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof P))throw TypeError("Expecting native value or pseudo object");r&&("get"in r||"set"in r)&&("value"in r||"writable"in r)&&w(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var o=!this.o||nn(this).S;if(e instanceof P){if(H(this,e,this.J)){var i=Xe(t);if(t==="length"||!isNaN(i)&&i<String(e).length){o&&w(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(i=e.h.length,t==="length"){if(r){if(!("value"in r))return;n=r.value}if(n=Zt(n),isNaN(n)&&w(this,this.ob,"Invalid array length"),n<i)for(s in e.h){var s=Xe(s);!isNaN(s)&&n<=s&&delete e.h[s]}}else isNaN(s=Xe(t))||(e.h.length=Math.max(i,s+1));if(!e.preventExtensions||t in e.h)if(r){o={},"get"in r&&r.get&&(e.V[t]=r.get,o.get=this.g.ac),"set"in r&&r.set&&(e.Y[t]=r.set,o.set=this.g.bc),"configurable"in r&&(o.configurable=r.configurable),"enumerable"in r&&(o.enumerable=r.enumerable),"writable"in r&&(o.writable=r.writable,delete e.V[t],delete e.Y[t]),"value"in r?(o.value=r.value,delete e.V[t],delete e.Y[t]):n!==Je&&(o.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,o)}catch{w(this,this.j,"Cannot redefine property: "+t)}"get"in r&&!r.get&&delete e.V[t],"set"in r&&!r.set&&delete e.Y[t]}else{if(n===Je)throw ReferenceError("Value not specified");for(r=e;!(t in r.h);)if(r=pe(this,r),!r){r=e;break}if(r.Y&&r.Y[t])return this.Ka=!0,r.Y[t];if(r.V&&r.V[t])o&&w(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{o&&w(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else o&&w(this,this.j,"Can't add property '"+t+"', object is not extensible")}else o&&w(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};B.g.ac=function(){throw Error("Placeholder getter")};B.g.bc=function(){throw Error("Placeholder setter")};function $(e,t,n,r){e.g(t.h.prototype,n,e.i(r,!1),b)}function Ke(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),b)}function nn(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Gt(e,t,n){var r=!1;if(n&&n.S)r=!0;else{var o=t.body&&t.body[0];o&&o.la&&o.la.type==="Literal"&&o.la.value==="use strict"&&(r=!0)}return o=e.s(null),r=new Sr(n,r,o),n||Oo(e,r.object),Ye(e,t,r),r}function rn(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new Sr(t,t.S,e)}function on(e,t){for(var n=nn(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&>(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||w(e,e.pb,t+" is not defined")}function br(e,t,n){for(var r=nn(e),o=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{o&&w(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!o||gt(e,r.object,t)))return e.g(r.object,t,n);w(e,e.pb,t+" is not defined")}function Ye(e,t,n){if(t.jb)var r=t.jb;else{switch(r=Object.create(null),t.type){case"VariableDeclaration":for(var o=0;o<t.fa.length;o++)r[t.fa[o].id.name]=!0;break;case"FunctionDeclaration":r[t.id.name]=t;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 i=t.constructor,s;for(s in t)if(s!=="loc"){var u=t[s];if(u&&typeof u=="object"){if(Array.isArray(u)){for(o=0;o<u.length;o++)if(u[o]&&u[o].constructor===i){var p=Ye(e,u[o],n);for(s in p)r[s]=p[s]}}else if(u.constructor===i)for(s in p=Ye(e,u,n),p)r[s]=p[s]}}}t.jb=r}for(s in r)r[s]===!0?e.g(n.object,s,void 0,Xn):e.g(n.object,s,tn(e,r[s],n),Xn);return r}function he(e){return e.o[e.o.length-1].isConstructor}function an(e,t){return t[0]===Pe?on(e,t[1]):e.G(t[0],t[1])}function sn(e,t,n){return t[0]===Pe?br(e,t[1],n):e.g(t[0],t[1],n)}function w(e,t,n){throw e.N?(n!==void 0&&t instanceof P&&(t=e.Aa(t),Kt(e,t,n)),ze(e,4,t),yr):n===void 0?t:n}function ze(e,t,n,r){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var o=e.o;e:for(;0<o.length;o.pop()){var i=o[o.length-1];switch(i.node.type){case"TryStatement":i.ea={type:t,value:n,label:r};return;case"CallExpression":case"NewExpression":if(t===3){i.value=n;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":i.done=!0;break e}if(t===1){if(r?i.labels&&i.labels.indexOf(r)!==-1:i.W||i.Zb){o.pop();return}}else if(t===2&&(r?i.labels&&i.labels.indexOf(r)!==-1:i.W))return}throw H(e,n,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},r=String(e.G(n,"name")),o=e.G(n,"message").valueOf(),t=(t[r]||Error)(o),t.stack=String(e.G(n,"stack"))):t=String(n),e.value=t,t}function q(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return q(e,t.left)+" "+t.operator+" "+q(e,t.right);case"CallExpression":return q(e,t.callee)+"(...)";case"ConditionalExpression":return q(e,t.test)+" ? "+q(e,t.da)+" : "+q(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=q(e,t.object);return e=q(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+q(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+q(e,t.K);case"UpdateExpression":return n=q(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function Yn(e,t,n){var r=e.o[e.o.length-1],o=Array.from(n),i=o.shift();n=Math.max(Number(o.shift()||0),0);var s=e.ya();if(i instanceof P&&i.H==="Function"){var u=i;s.type="CallExpression",r=r.scope}else{try{var p=Oe(String(i),"taskCode"+e.ic++)}catch(x){w(e,e.T,"Invalid code: "+x.message)}s.type="EvalProgram_",s.body=p.body,r=r.node.arguments[0],mt(s,r?r.start:void 0,r?r.end:void 0),r=e.N,o.length=0}return t=new Wo(u,o,r,s,t?n:-1),xr(e,t,n),t.Db}function xr(e,t,n){t.time=Date.now()+n,e.ca.push(t),e.ca.sort(function(r,o){return r.time-o.time})}function zn(e,t){for(var n=0;n<e.ca.length;n++)if(e.ca[n].Db==t){e.ca.splice(n,1);break}}function qe(e,t,n){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,n=Array.isArray(n)?n[0]:n;var r=e.ya();return r.type="CallExpression",e=new S(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function ln(e,t,n,r){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,n=Array.isArray(n)?n[0]:e.Na;var o=e.ya();return o.type="CallExpression",e=new S(o,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[r],e}function $t(e,t){return t==null?e.Na:t instanceof P?t:(e=e.s(pe(e,t)),e.data=t,e)}B.Xb=function(){return this.N};B.Yb=function(){return this.o};B.ec=function(e){this.o=e};function S(e,t){this.node=e,this.scope=t}function Sr(e,t,n){this.Va=e,this.S=t,this.object=n}function P(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}B=P.prototype;B.xa=null;B.H="Object";B.data=null;B.toString=function(){if(!Ge)return"[object Interpreter.Object]";if(!(this instanceof P))return String(this);if(this.H==="Array"){var e=Jn;e.push(this);try{var t=[],n=this.h.length,r=!1;1024<n&&(n=1e3,r=!0);for(var o=0;o<n;o++){var i=this.h[o];t[o]=i instanceof P&&e.indexOf(i)!==-1?"...":i}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Jn,e.indexOf(this)!==-1)return"[object Error]";n=this;do if("name"in n.h){t=n.h.name;break}while(n=n.xa);n=this;do if("message"in n.h){r=n.h.message;break}while(n=n.xa);e.push(this);try{t=t&&String(t),r=r&&String(r)}finally{e.pop()}return r?t+": "+r:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};B.valueOf=function(){return!Ge||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function Wo(e,t,n,r,o){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=o,this.Db=++$o,this.time=0}var $o=0;h.prototype.stepArrayExpression=function(e,t,n){n=n.elements;var r=t.A||0;for(t.Oa?(this.g(t.Oa,r,t.value),r++):(t.Oa=Re(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new S(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};h.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new S(n.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&n.operator!=="="&&(e=an(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,qe(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new S(n.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var r=t.ma,o=t.value;switch(n.operator){case"=":r=o;break;case"+=":r+=o;break;case"-=":r-=o;break;case"*=":r*=o;break;case"/=":r/=o;break;case"%=":r%=o;break;case"<<=":r<<=o;break;case">>=":r>>=o;break;case">>>=":r>>>=o;break;case"&=":r&=o;break;case"^=":r^=o;break;case"|=":r|=o;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}if(n=sn(this,t.Fa,r))return t.ta=!0,t.ib=r,ln(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};h.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new S(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new S(n.right,t.scope);e.pop();var r=t.ma;switch(t=t.value,n.operator){case"==":n=r==t;break;case"!=":n=r!=t;break;case"===":n=r===t;break;case"!==":n=r!==t;break;case">":n=r>t;break;case">=":n=r>=t;break;case"<":n=r<t;break;case"<=":n=r<=t;break;case"+":n=r+t;break;case"-":n=r-t;break;case"*":n=r*t;break;case"/":n=r/t;break;case"%":n=r%t;break;case"&":n=r&t;break;case"|":n=r|t;break;case"^":n=r^t;break;case"<<":n=r<<t;break;case">>":n=r>>t;break;case">>>":n=r>>>t;break;case"in":t instanceof P||w(this,this.j,"'in' expects an object, not '"+t+"'"),n=gt(this,t,r);break;case"instanceof":H(this,t,this.O)||w(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof P?H(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};h.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new S(n,t.scope);e.pop()};h.prototype.stepBreakStatement=function(e,t,n){ze(this,1,void 0,n.label&&n.label.name)};h.prototype.Hb=0;h.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new S(n.callee,t.scope);return r.sa=!0,r}if(t.ia===1){t.ia=2;var o=t.value;if(Array.isArray(o)){if(t.U=an(this,o),o[0]===Pe?t.Pb=o[1]==="eval":t.B=o[0],o=t.U,this.P)return t.ia=1,qe(this,o,t.value)}else t.U=o;t.F=[],t.A=0}if(o=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),n.arguments[t.A])return new S(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(o instanceof P&&!o.Ab||w(this,this.j,q(this,n.callee)+" is not a constructor"),o===this.qa)t.B=Re(this);else{var i=o.h.prototype;(typeof i!="object"||i===null)&&(i=this.M),t.B=this.s(i)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,o instanceof P||w(this,this.j,q(this,n.callee)+" is not a function"),e=o.node){for(n=Gt(this,e.body,o.Va),r=Re(this),o=0;o<t.F.length;o++)this.g(r,o,t.F[o]);for(this.g(n.object,"arguments",r),o=0;o<e.oa.length;o++)this.g(n.object,e.oa[o].name,t.F.length>o?t.F[o]:void 0);return n.S||(t.B=$t(this,t.B)),this.g(n.object,"this",t.B,qt),t.value=void 0,new S(e.body,n)}if(o.eval)if(o=t.F[0],typeof o!="string")t.value=o;else{try{r=Oe(String(o),"eval"+this.Hb++)}catch(u){w(this,this.T,"Invalid code: "+u.message)}return o=this.ya(),o.type="EvalProgram_",o.body=r.body,mt(o,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=Gt(this,r,n):Ye(this,r,n),this.value=void 0,new S(o,n)}else if(o.Ta)t.scope.S||(t.B=$t(this,t.B)),t.value=o.Ta.apply(t.B,t.F);else if(o.Za){var s=this;r=o.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(u){t.value=u,s.za=!1}),this.za=!0,t.scope.S||(t.B=$t(this,t.B)),o.Za.apply(t.B,r)}else w(this,this.j,q(this,n.callee)+" is not callable")}};h.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new S(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new S(n.da,t.scope);if(!r&&n.alternate)return new S(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};h.prototype.stepContinueStatement=function(e,t,n){ze(this,2,void 0,n.label&&n.label.name)};h.prototype.stepDebuggerStatement=function(e){e.pop()};h.prototype.stepDoWhileStatement=function(e,t,n){if(n.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new S(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new S(n.body,t.scope)};h.prototype.stepEmptyStatement=function(e){e.pop()};h.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new S(n,t.scope);e.pop(),e[e.length-1].value=this.value};h.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new S(n.la,t.scope);e.pop(),this.value=t.value};h.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&w(this,this.T,"for-in loop variable declaration may not have an initializer"),new S(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new S(n.right,t.scope);if(t.W||(t.W=!0,t.u=t.value,t.kb=Object.create(null)),t.Ra===void 0)e:for(;;){if(t.u instanceof P)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var r=t.wa.shift();if(r===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,r)&&!t.kb[r]&&(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,r))){t.Ra=r;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));r=t.wa.shift(),r!==void 0;)if(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u,r)){t.Ra=r;break e}}if(t.u=pe(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=n.left,e.type==="VariableDeclaration")t.pa=[Pe,e.fa[0].id.name];else return t.pa=null,t=new S(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=sn(this,t.pa,e)))return ln(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new S(n.body,t.scope)};h.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new S(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new S(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new S(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new S(n.update,t.scope)}};h.prototype.stepFunctionDeclaration=function(e){e.pop()};h.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=rn(this,e)),t.value=tn(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,qt)};h.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[Pe,n.name];else{if(t=on(this,n.name),this.P)return qe(this,t,this.Na);e[e.length-1].value=t}};h.prototype.stepIfStatement=h.prototype.stepConditionalExpression;h.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new S(n.body,t.scope),t.labels=e,t};h.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),Qt(this,n,t),t=n),e[e.length-1].value=t};h.prototype.stepLogicalExpression=function(e,t,n){if(n.operator!=="&&"&&n.operator!=="||")throw SyntaxError("Unknown logical operator: "+n.operator);if(!t.ja)return t.ja=!0,new S(n.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(n.operator==="&&"&&!t.value||n.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new S(n.right,t.scope)};h.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new S(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new S(n.Wa,t.scope);else t.u=t.value,n=n.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,n];else{if(n=this.G(t.u,n),this.P)return qe(this,n,t.u);e[e.length-1].value=n}};h.prototype.stepNewExpression=h.prototype.stepCallExpression;h.prototype.stepObjectExpression=function(e,t,n){var r=t.A||0,o=n.h[r];if(t.u){var i=t.Pa;t.Ja[i]||(t.Ja[i]={}),t.Ja[i][o.kind]=t.value,t.A=++r,o=n.h[r]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(o){var s=o.key;if(s.type==="Identifier")i=s.name;else if(s.type==="Literal")i=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=i,new S(o.value,t.scope)}for(s in t.Ja)n=t.Ja[s],"get"in n||"set"in n?this.g(t.u,s,Je,{configurable:!0,enumerable:!0,get:n.get,set:n.set}):this.g(t.u,s,n.init);e.pop(),e[e.length-1].value=t.u};h.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new S(e,t.scope);t.done=!0};h.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new S(n.K,t.scope);ze(this,3,t.value)};h.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new S(n,t.scope);e.pop(),e[e.length-1].value=t.value};h.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new S(n.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var r=t.gb||0,o=n.tb[r];if(t.Ha||!o||o.test)if(o||t.Ha||t.cb===-1)if(o){if(!t.Ha&&!t.Fb&&o.test)return t.Fb=!0,new S(o.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var i=t.A||0;if(o.da[i])return t.Zb=!0,t.A=i+1,new S(o.da[i],t.scope)}t.Fb=!1,t.A=0,t.gb=r+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=r,t.gb=r+1}};h.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=on(this,"this")};h.prototype.stepThrowStatement=function(e,t,n){if(t.ka)w(this,t.value);else return t.ka=!0,new S(n.K,t.scope)};h.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new S(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=rn(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new S(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new S(n.fb,t.scope);e.pop(),t.ea&&ze(this,t.ea.type,t.ea.value,t.ea.label)};h.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new S(n.K,t.scope),e.sa=n.operator==="delete",e;e.pop();var r=t.value;switch(n.operator){case"-":r=-r;break;case"+":r=+r;break;case"!":r=!r;break;case"~":r=~r;break;case"delete":if(n=!0,Array.isArray(r)){var o=r[0];o===Pe&&(o=t.scope),r=String(r[1]);try{delete o.h[r]}catch{t.scope.S?w(this,this.j,"Cannot delete property '"+r+"' of '"+o+"'"):n=!1}}r=n;break;case"typeof":r=r&&r.H==="Function"?"function":typeof r;break;case"void":r=void 0;break;default:throw SyntaxError("Unknown unary operator: "+n.operator)}e[e.length-1].value=r};h.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new S(n.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var r=an(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,qe(this,r,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(r=Number(t.ma),n.operator==="++")var o=r+1;else if(n.operator==="--")o=r-1;else throw SyntaxError("Unknown update expression: "+n.operator);if(n=n.prefix?o:r,r=sn(this,t.Ga,o))return t.ta=!0,t.ib=n,ln(this,r,t.Ga,o);e.pop(),e[e.length-1].value=n}};h.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,o=n[r];for(t.Bb&&o&&(br(this,o.id.name,t.value),t.Bb=!1,o=n[++r]);o;){if(o.ua)return t.A=r,t.Bb=!0,t.Pa=o.id.name,new S(o.ua,t.scope);o=n[++r]}e.pop()};h.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=rn(this,t.scope,t.value),new S(n.body,e)):(t.Ca=!0,new S(n.object,t.scope))};h.prototype.stepWhileStatement=h.prototype.stepDoWhileStatement;ve.Interpreter=h;h.prototype.step=h.prototype.lb;h.prototype.run=h.prototype.Eb;h.prototype.appendCode=h.prototype.Jb;h.prototype.createObject=h.prototype.Aa;h.prototype.createObjectProto=h.prototype.s;h.prototype.createAsyncFunction=h.prototype.ub;h.prototype.createNativeFunction=h.prototype.i;h.prototype.getProperty=h.prototype.G;h.prototype.setProperty=h.prototype.g;h.prototype.nativeToPseudo=h.prototype.Ia;h.prototype.pseudoToNative=h.prototype.R;h.prototype.getGlobalScope=h.prototype.Xb;h.prototype.getStateStack=h.prototype.Yb;h.prototype.setStateStack=h.prototype.ec;h.VALUE_IN_DESCRIPTOR=Je;const Ho=e=>e.split(`
|
|
9
9
|
`).map(t=>{const n=t.trim();if(t.includes("__awaiter"))return;if(!n.startsWith("state."))return t;const[o,i]=n.split("="),u=`setRootState('${o.replace("state.","").trim()}', ${i.trim()})`;return`
|
|
10
10
|
${t}
|
|
11
11
|
${u}
|
|
12
12
|
`}).filter(Boolean).join(`
|
|
13
|
-
`),
|
|
13
|
+
`),qn=e=>e+"JSON",Ko=({builder:e,context:t,event:n,rootState:r,localState:o,rootSetState:i,code:s})=>{const u={...r,...o},p=hr({builder:e,context:t,event:n,state:u}),x=p.map(([O])=>{const R=qn(O);return`var ${O} = ${R} === undefined ? undefined : JSON.parse(${R});`}).join(`
|
|
14
14
|
`),k=Ho(s);if(k===""){J.warn("Skipping evaluation of empty code block.");return}const m=`
|
|
15
15
|
function theFunction() {
|
|
16
16
|
${x}
|
|
@@ -18,14 +18,14 @@ function theFunction() {
|
|
|
18
18
|
${k}
|
|
19
19
|
}
|
|
20
20
|
theFunction();
|
|
21
|
-
`,A=(O,R)=>{const Y=
|
|
21
|
+
`,A=(O,R)=>{const Y=gr(u,O,R);i==null||i(Y)},N=function(O,R){p.forEach(([Y,j])=>{const g=JSON.stringify(j);O.setProperty(R,qn(Y),g)}),O.setProperty(R,"setRootState",O.createNativeFunction(A))};try{const O=new h(m,N);return O.run(),O.pseudoToNative(O.value)}catch(O){J.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.",{e:O});return}},ie=e=>e!=null;function Go(){var e;return typeof process<"u"&&ie((e=process==null?void 0:process.versions)==null?void 0:e.node)}const Xo=()=>{var r;if(!Go())return!1;const e=process.arch==="arm64",t=process.version.startsWith("v20"),n=(r=process.env.NODE_OPTIONS)==null?void 0:r.includes("--no-node-snapshot");return e&&t&&!n?(J.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1},Jo=e=>K()||Xo()?jo(e):Ko(e),cn=class Te{static getCacheKey(t){return JSON.stringify({...t,event:t.event?Math.random():void 0})}static getCachedValue(t){return Te.cache.get(t)}static setCachedValue(t,n){Te.cache.size>20&&Te.cache.delete(Te.cache.keys().next().value),Te.cache.set(t,{value:n})}};cn.cacheLimit=20;cn.cache=new Map;let ct=cn;function yt({code:e,context:t,localState:n,rootState:r,rootSetState:o,event:i,isExpression:s=!0,enableCache:u}){if(e==="")return;const p={code:Io(e,{isExpression:s}),builder:Eo(),context:t,event:i,rootSetState:o,rootState:r,localState:n};if(u){const x=ct.getCacheKey(p),k=ct.getCachedValue(x);if(k)return k.value}try{const x=Jo(p);if(u){const k=ct.getCacheKey(p);ct.setCachedValue(k,x)}return x}catch(x){J.error("Failed code evaluation: "+x.message,{code:e});return}}const Ze=e=>JSON.parse(JSON.stringify(e));const Yo=({block:e,context:t,localState:n,rootState:r,rootSetState:o})=>{if(!e.bindings)return e;const i=Ze(e),s={...i,properties:{...i.properties},actions:{...i.actions}};for(const u in e.bindings){const p=e.bindings[u],x=yt({code:p,localState:n,rootState:r,rootSetState:o,context:t,enableCache:!0});gr(s,u,x)}return s};function dt({block:e,context:t,shouldEvaluateBindings:n,localState:r,rootState:o,rootSetState:i}){const s=e;return n?Yo({block:s,localState:r,rootState:o,rootSetState:i,context:t}):s}const un=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"",wr=e=>Object.entries(e).map(([n,r])=>{if(typeof r=="string")return`${un(n)}: ${r};`}).filter(ie),zo=e=>wr(e).join(`
|
|
22
22
|
`),ut=({mediaQuery:e,className:t,styles:n})=>{const r=`.${t} {
|
|
23
|
-
${
|
|
23
|
+
${zo(n)}
|
|
24
24
|
}`;return e?`${e} {
|
|
25
25
|
${r}
|
|
26
|
-
}`:r};function
|
|
26
|
+
}`:r};function qo({style:e}){return e}const Zo=({block:e,context:t})=>kr(qo({style:e.style||{},context:t,block:e}));function kr(e){switch(me){case"svelte":case"vue":case"solid":case"angular":return wr(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const Qo=({block:e,context:t,registeredComponents:n})=>{var i;const r=(i=dt({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:i.name;if(!r)return null;const o=n[r];if(o)return o;console.warn(`
|
|
27
27
|
Could not find a registered component named "${r}".
|
|
28
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`)},
|
|
28
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},ei=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=yt({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,enableCache:!0});if(!Array.isArray(o))return;const i=n.collection.split(".").pop(),s=n.itemName||(i?i+"Item":"item");return o.map((p,x)=>({context:{...t,localState:{...t.localState,$index:x,$item:p,[s]:p,[`$${s}Index`]:x}},block:r}))},ti=e=>e&&(e.isRSC||["Core:Button","Symbol","Columns","Form:Form","Builder: Tabs","Builder:Accordion"].includes(e.name)),ni=e=>e&&(e.isRSC||["Symbol","Columns","Form:Form","Builder: Tabs","Builder:Accordion"].includes(e.name)),Cr={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Zn=(e,t=Cr)=>`@media (max-width: ${t[e].max}px)`,Er=({small:e,medium:t})=>{const n=Ze(Cr);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n};function vt(e){return y.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id})}function ri(e){const t=function(){const o=dt({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return ie(o.hide)?!o.hide:ie(o.show)?o.show:!0},n=function(){var j,g,F;const o=dt({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),i=o.responsiveStyles,s=e.context.content,u=Er(((j=s==null?void 0:s.meta)==null?void 0:j.breakpoints)||{}),p=i==null?void 0:i.large,x=i==null?void 0:i.medium,k=i==null?void 0:i.small,m=o.id;if(!m)return"";const A=p?ut({className:m,styles:p}):"",N=x?ut({className:m,styles:x,mediaQuery:Zn("medium",u)}):"",O=k?ut({className:m,styles:k,mediaQuery:Zn("small",u)}):"",R=o.animations&&o.animations.find(M=>M.trigger==="hover");let Y="";if(R){const M=((F=(g=R.steps)==null?void 0:g[1])==null?void 0:F.styles)||{};Y=ut({className:`${m}:hover`,styles:{...M,transition:`all ${R.duration}s ${un(R.easing)}`,transitionDelay:R.delay?`${R.delay}s`:"0s"}})||""}return[A,N,O,Y].join(" ")};return y.jsx(y.Fragment,{children:n()&&t()?y.jsx(y.Fragment,{children:y.jsx(vt,{id:"builderio-block",styles:n()})}):null})}function oi(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ii=e=>`on${oi(e)}`,ai=(e,t)=>n=>yt({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1,enableCache:!0});function si(e){const t={},n=e.block.actions??{};for(const r in n){if(!n.hasOwnProperty(r))continue;const o=n[r];let i=ii(r);if(e.stripPrefix)switch(me){case"vue":i=i.replace("v-on:","");break;case"svelte":i=i.replace("on:","");break}t[i]=ai(o,e)}return t}function li({properties:e}){return e}const ci=e=>({href:e.href});function Ir({block:e,context:t}){var r;const n={...ci(e),...e.properties,"builder-id":e.id,style:Zo({block:e,context:t}),[ht()]:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return li({properties:n,context:t,block:e})}const ui=({componentOptions:e,builderBlock:t,context:n,componentRef:r,includeBlockProps:o,isInteractive:i,contextValue:s})=>{const u={...e,...o?{attributes:Ir({block:t,context:s})}:{}};return i?{Wrapper:r,block:t,context:n,wrapperProps:e,includeBlockProps:o}:u};function Qn(e){var n;const t=e.isInteractive?ee.InteractiveElement:e.componentRef;return y.jsx(y.Fragment,{children:e.componentRef?y.jsx(y.Fragment,{children:y.jsx(t,{...ui({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(n=e.blockChildren)==null?void 0:n.map(r=>y.jsx(bt,{block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},r.id))})}):null})}function fi(e){const t=e.repeatContext;return y.jsx(bt,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})}function bt(e){var p,x,k;const t=function(){return Qo({block:e.block,context:e.context,registeredComponents:e.registeredComponents})},n=function(){return ei({block:e.block,context:e.context})},r=function(){var A;return(A=e.block.repeat)!=null&&A.collection?e.block:dt({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})},o=function(){var N;return e.block.tagName==="a"||((N=r().properties)==null?void 0:N.href)||r().href?e.linkComponent||"a":e.block.tagName||"div"},i=function(){var O,R;if((O=e.block.repeat)!=null&&O.collection)return!!((R=n())!=null&&R.length);const A="hide"in r()?r().hide:!1;return("show"in r()?r().show:!0)&&!A},s=function(){var N;return!((N=t())!=null&&N.component)&&!n()?r().children??[]:[]},u=function(){var A,N,O;return{blockChildren:r().children??[],componentRef:(A=t())==null?void 0:A.component,componentOptions:{...xo(r()),builderContext:e.context,...ti(t())?{builderLinkComponent:e.linkComponent}:{},...ni(t())?{builderComponents:e.registeredComponents}:{}},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:r(),includeBlockProps:((N=t())==null?void 0:N.noWrap)===!0,isInteractive:!((O=t())!=null&&O.isRSC)}};return y.jsx(y.Fragment,{children:i()?y.jsxs(y.Fragment,{children:[y.jsx(ri,{block:e.block,context:e.context}),(p=t())!=null&&p.noWrap?y.jsx(y.Fragment,{children:y.jsx(Qn,{componentRef:u().componentRef,componentOptions:u().componentOptions,blockChildren:u().blockChildren,context:u().context,registeredComponents:u().registeredComponents,linkComponent:u().linkComponent,builderBlock:u().builderBlock,includeBlockProps:u().includeBlockProps,isInteractive:u().isInteractive})}):y.jsx(y.Fragment,{children:n()?y.jsx(y.Fragment,{children:(k=n())==null?void 0:k.map((m,A)=>y.jsx(fi,{repeatContext:m.context,block:m.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},A))}):y.jsxs(ee.BlockWrapper,{Wrapper:o(),block:r(),context:e.context,linkComponent:e.linkComponent,children:[y.jsx(Qn,{componentRef:u().componentRef,componentOptions:u().componentOptions,blockChildren:u().blockChildren,context:u().context,registeredComponents:u().registeredComponents,linkComponent:u().linkComponent,builderBlock:u().builderBlock,includeBlockProps:u().includeBlockProps,isInteractive:u().isInteractive}),(x=s())==null?void 0:x.map(m=>y.jsx(bt,{block:m,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},m.id))]})})]}):null})}function xt(e){var t,n,r;return y.jsx(ee.BlocksWrapper,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(t=e.context)==null?void 0:t.BlocksWrapper,BlocksWrapperProps:(n=e.context)==null?void 0:n.BlocksWrapperProps,children:e.blocks?y.jsx(y.Fragment,{children:(r=e.blocks)==null?void 0:r.map(o=>y.jsx(bt,{block:o,linkComponent:e.linkComponent,context:e.context,registeredComponents:e.registeredComponents},o.id))}):null})}const di=e=>`builder-columns ${e}-breakpoints`;function jr(e){var R,Y;const t=typeof e.space=="number"?e.space||0:20,n=e.columns||[],r=e.stackColumnsAt||"tablet",o=function(g){return g.link?e.builderLinkComponent||"a":"div"},i=function(g){var F;return((F=n[g])==null?void 0:F.width)||100/n.length},s=function(g){const F=t*(n.length-1)/n.length;return`calc(${i(g)}% - ${F}px)`},u=function({stackedStyle:g,desktopStyle:F}){return r==="tablet"?g:F},p=function({stackedStyle:g,desktopStyle:F}){return r==="never"?F:g},x=e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column",k=function(){return{"--flex-dir":x,"--flex-dir-tablet":u({stackedStyle:x,desktopStyle:"row"})}},m=function(g){const F=g===0?0:t,M=s(g),X=`${F}px`,V="100%",ne=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:M,["marginLeft"]:X,"--column-width-mobile":p({stackedStyle:V,desktopStyle:M}),"--column-margin-left-mobile":p({stackedStyle:ne,desktopStyle:X}),"--column-width-tablet":u({stackedStyle:V,desktopStyle:M}),"--column-margin-left-tablet":u({stackedStyle:ne,desktopStyle:X})}},A=function(g){var M,X;return Er(((X=(M=e.builderContext.content)==null?void 0:M.meta)==null?void 0:X.breakpoints)||{})[g].max},N=function(){return`
|
|
29
29
|
@media (max-width: ${A("medium")}px) {
|
|
30
30
|
.${e.builderBlock.id}-breakpoints {
|
|
31
31
|
flex-direction: var(--flex-dir-tablet);
|
|
@@ -49,10 +49,10 @@ theFunction();
|
|
|
49
49
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
`},O=function(g,
|
|
52
|
+
`},O=function(g,F){return{...g.link?{href:g.link}:{},[ht()]:"builder-column",style:kr(m(F))}};return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:di((R=e.builderBlock)==null?void 0:R.id)+" div-eeca3604",style:k(),children:[y.jsx(vt,{id:"builderio-columns",styles:N()}),(Y=e.columns)==null?void 0:Y.map((j,g)=>y.jsx(ee.DynamicRenderer,{TagName:o(j),actionAttributes:{},attributes:O(j,g),children:y.jsx(xt,{path:`component.options.columns.${g}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:j.blocks})},g))]}),y.jsx("style",{children:`.div-eeca3604 {
|
|
53
53
|
display: flex;
|
|
54
54
|
line-height: normal;
|
|
55
|
-
}`})]})}function er(e){return e.replace(/http(s)?:/,"")}function vi(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function bi(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return er(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const r=e.split(n[0]),o=n[3],i=t.match("x")?t:`${t}x`;return er(`${r[0]}_${i}${o}`)}return null}function xi(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const r=Number(e.split("?width=")[1]);return isNaN(r)||(n=`${n} ${r}w`),t.filter(o=>o!==r).map(o=>`${vi(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[bi(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const Si=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},Tr=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){J.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Ar=async e=>Tr(e),wi=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(ie).join("; "),ki=[["secure",""],["SameSite","None"]],Ci=({name:e,value:t,expires:n})=>{const o=(K()?location.protocol==="https:":!0)?ki:[[]],i=n?[["expires",n.toUTCString()]]:[[]],s=[[e,t],...i,["path","/"],["domain",Si(window.location.hostname)],...o];return wi(s)},Or=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=Ci({name:e,value:t,expires:n});document.cookie=o}catch(o){J.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}},Ei="builder.tests",un=e=>`${Ei}.${e}`,Ii=({contentId:e})=>Ar({name:un(e),canTrack:!0}),ji=({contentId:e})=>Tr({name:un(e),canTrack:!0}),Ti=({contentId:e,value:t})=>Or({name:un(e),value:t,canTrack:!0}),Rr=e=>ie(e.id)&&ie(e.variations)&&Object.keys(e.variations).length>0,Ai=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const s=(o=t[i])==null?void 0:o.testRatio;if(n+=s,r<n)return i}return e},Pr=e=>{const t=Ai(e);return Ti({contentId:e.id,value:t}).catch(n=>{J.error("could not store A/B test variation: ",n)}),t},Nr=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},Oi=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Rr(e))return e;const n=ji({contentId:e.id})||Pr({variations:e.variations,id:e.id}),r=Nr({item:e,testGroupId:n});return{...e,...r}},Ri=async({item:e,canTrack:t})=>{if(!t||!Rr(e))return e;const r=await Ii({contentId:e.id})||Pr({variations:e.variations,id:e.id}),o=Nr({item:e,testGroupId:r});return{...e,...o}},pt=e=>ie(e)?e:!0,Pi={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},Ni={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(r=>{r.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(o=>o.get("width"))&&(n.find(i=>!i.get("width"))||n.reduce((u,p)=>u+p.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},Fi={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Bi={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(s,u=6e4){return new Promise((p,x)=>{const k=document.createElement("img");let m=!1;k.onload=()=>{m=!0,p(k)},k.addEventListener("error",A=>{console.warn("Image load failed",A.error),x(A.error)}),k.src=s,setTimeout(()=>{m||x(new Error("Image load timed out"))},u)})}function r(s){return Math.round(s*1e3)/1e3}const o=e.get("image"),i=e.get("aspectRatio");if(fetch(o).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!i||i===.7041))return n(o).then(s=>{const u=e.get("aspectRatio");e.get("image")===o&&(!u||u===.7041)&&s.width&&s.height&&(e.set("aspectRatio",r(s.height/s.width)),e.set("height",s.height),e.set("width",s.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},Ui={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},Mi={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]};function Vi(e){var t,n,r;return y.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:y.jsx(xt,{parent:(n=e.builderContext.context)==null?void 0:n.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(r=e.builderContext.rootState)==null?void 0:r[e.name]})})}const Li={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},Di={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}};function Fr(e){var t;return y.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const _i={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},Wi={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(r=>r.json()).then(r=>{e.get("url")===t&&(r.html?e.set("content",r.html):e.set("content","Invalid url, please try another"))}).catch(r=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},$i=["text/javascript","application/javascript","application/ecmascript"],Hi=e=>$i.includes(e.type),Ki={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},Gi={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},Xi=()=>[{component:ee.CustomCode,..._i},{component:ee.Embed,...Wi},{component:ee.ImgComponent,...Ki},{component:ee.Video,...Gi}],tr=()=>[{component:ee.Button,...Pi},{component:jr,...Ni},{component:ee.FragmentComponent,...Fi},{component:ee.Image,...Bi},{component:ee.SectionComponent,...Ui},{component:Vi,...Mi},{component:Qr,...Li},{component:Fr,...Di},...Xi()],Ji=e=>({type:"builder.registerComponent",data:Xt(e)}),Yi=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},zi=e=>typeof e=="function"?Yi(e):Ze(e),Xt=({inputs:e,...t})=>({...Ze(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,i])=>({...r,[o]:zi(i)}),{}))}),qi=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
55
|
+
}`})]})}function er(e){return e.replace(/http(s)?:/,"")}function pi(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function hi(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return er(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const r=e.split(n[0]),o=n[3],i=t.match("x")?t:`${t}x`;return er(`${r[0]}_${i}${o}`)}return null}function mi(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const r=Number(e.split("?width=")[1]);return isNaN(r)||(n=`${n} ${r}w`),t.filter(o=>o!==r).map(o=>`${pi(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[hi(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const gi=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},Tr=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){J.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Ar=async e=>Tr(e),yi=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(ie).join("; "),vi=[["secure",""],["SameSite","None"]],bi=({name:e,value:t,expires:n})=>{const o=(K()?location.protocol==="https:":!0)?vi:[[]],i=n?[["expires",n.toUTCString()]]:[[]],s=[[e,t],...i,["path","/"],["domain",gi(window.location.hostname)],...o];return yi(s)},Or=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=bi({name:e,value:t,expires:n});document.cookie=o}catch(o){J.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}},xi="builder.tests",fn=e=>`${xi}.${e}`,Si=({contentId:e})=>Ar({name:fn(e),canTrack:!0}),wi=({contentId:e})=>Tr({name:fn(e),canTrack:!0}),ki=({contentId:e,value:t})=>Or({name:fn(e),value:t,canTrack:!0}),Rr=e=>ie(e.id)&&ie(e.variations)&&Object.keys(e.variations).length>0,Ci=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const s=(o=t[i])==null?void 0:o.testRatio;if(n+=s,r<n)return i}return e},Pr=e=>{const t=Ci(e);return ki({contentId:e.id,value:t}).catch(n=>{J.error("could not store A/B test variation: ",n)}),t},Nr=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},Ei=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Rr(e))return e;const n=wi({contentId:e.id})||Pr({variations:e.variations,id:e.id}),r=Nr({item:e,testGroupId:n});return{...e,...r}},Ii=async({item:e,canTrack:t})=>{if(!t||!Rr(e))return e;const r=await Si({contentId:e.id})||Pr({variations:e.variations,id:e.id}),o=Nr({item:e,testGroupId:r});return{...e,...o}},pt=e=>ie(e)?e:!0,ji={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},Ti={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(r=>{r.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(o=>o.get("width"))&&(n.find(i=>!i.get("width"))||n.reduce((u,p)=>u+p.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},Ai={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Oi={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(s,u=6e4){return new Promise((p,x)=>{const k=document.createElement("img");let m=!1;k.onload=()=>{m=!0,p(k)},k.addEventListener("error",A=>{console.warn("Image load failed",A.error),x(A.error)}),k.src=s,setTimeout(()=>{m||x(new Error("Image load timed out"))},u)})}function r(s){return Math.round(s*1e3)/1e3}const o=e.get("image"),i=e.get("aspectRatio");if(fetch(o).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!i||i===.7041))return n(o).then(s=>{const u=e.get("aspectRatio");e.get("image")===o&&(!u||u===.7041)&&s.width&&s.height&&(e.set("aspectRatio",r(s.height/s.width)),e.set("height",s.height),e.set("width",s.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},Ri={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},Pi={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]};function Ni(e){var t,n,r;return y.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:y.jsx(xt,{parent:(n=e.builderContext.context)==null?void 0:n.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(r=e.builderContext.rootState)==null?void 0:r[e.name]})})}const Bi={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},Fi={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}};function Br(e){var t;return y.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Ui={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},Mi={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(r=>r.json()).then(r=>{e.get("url")===t&&(r.html?e.set("content",r.html):e.set("content","Invalid url, please try another"))}).catch(r=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},Vi=["text/javascript","application/javascript","application/ecmascript"],Di=e=>Vi.includes(e.type),Li={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},_i={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},Wi=()=>[{component:ee.CustomCode,...Ui},{component:ee.Embed,...Mi},{component:ee.ImgComponent,...Li},{component:ee.Video,..._i}],tr=()=>[{component:ee.Button,...ji},{component:jr,...Ti},{component:ee.FragmentComponent,...Ai},{component:ee.Image,...Oi},{component:ee.SectionComponent,...Ri},{component:Ni,...Pi},{component:Qr,...Bi},{component:Br,...Fi},...Wi()],$i=e=>({type:"builder.registerComponent",data:Xt(e)}),Hi=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},Ki=e=>typeof e=="function"?Hi(e):Ze(e),Xt=({inputs:e,...t})=>({...Ze(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,i])=>({...r,[o]:Ki(i)}),{}))}),Gi=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
56
56
|
function getAndSetVariantId() {
|
|
57
57
|
function setCookie(name, value, days) {
|
|
58
58
|
let expires = '';
|
|
@@ -108,7 +108,7 @@ theFunction();
|
|
|
108
108
|
}).join('');
|
|
109
109
|
styleEl.innerHTML = newStyleStr;
|
|
110
110
|
}
|
|
111
|
-
}`,
|
|
111
|
+
}`,Xi=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
112
112
|
if (!navigator.cookieEnabled) {
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
@@ -142,16 +142,16 @@ theFunction();
|
|
|
142
142
|
thisScriptEl?.remove();
|
|
143
143
|
}
|
|
144
144
|
return;
|
|
145
|
-
}`,
|
|
146
|
-
window.${
|
|
147
|
-
window.${Ur} = ${
|
|
148
|
-
`,
|
|
149
|
-
window.${
|
|
145
|
+
}`,Fr="builderIoAbTest",Ur="builderIoRenderContent",ft=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Ji=({canTrack:e,content:t})=>!(!(ft(t).length>0)||!e||K()),Yi=e=>e==="react"||e==="reactNative",Mr=Yi(me),zi=()=>`
|
|
146
|
+
window.${Fr} = ${Gi}
|
|
147
|
+
window.${Ur} = ${Xi}
|
|
148
|
+
`,qi=(e,t)=>`
|
|
149
|
+
window.${Fr}(
|
|
150
150
|
"${t}",${JSON.stringify(e)}, ${Mr}
|
|
151
|
-
)`,
|
|
151
|
+
)`,Zi=({contentId:e,variationId:t})=>`window.${Ur}(
|
|
152
152
|
"${t}", "${e}", ${Mr}
|
|
153
|
-
)`;function Jt(e){return y.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}const
|
|
154
|
-
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const
|
|
153
|
+
)`;function Jt(e){return y.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}const Qi=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||J.warn("No previewed ID found in search params."),n};function Vr(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new yo.LRUCache({max:500,ttl:1e3*60*5}))}function ea(e){Vr();const t=Qi(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function ta(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function na(){const e=ta().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
154
|
+
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Dr=na();function Yt(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],s=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...Yt(i,s,n)}:{...r,[s]:i}},{})}function Lr(e,t,n={}){for(const r in e){const o=e[r],i=t?t+"."+r:r;o&&typeof o=="object"&&!Array.isArray(o)&&!Object.keys(o).find(s=>s.startsWith("$"))?Lr(o,i,n):n[i]=o}return n}const ra="v3",nr="builder.",oa="options.",dn=e=>{if(!e)return{};const t=fr(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(nr)){const o=r.replace(nr,"").replace(oa,"");n[o]=t[r]}}),n},ia=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return dn(e)},rr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,pn=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:i,enrich:s,locale:u,apiVersion:p=ra,fields:x,omit:k,offset:m,cacheSeconds:A,staleCacheSeconds:N,sort:O,includeUnpublished:R}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(p))throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);const Y=t!==1,j=new URL(`https://cdn.builder.io/api/${p}/content/${o}`);if(j.searchParams.set("apiKey",i),j.searchParams.set("limit",String(t)),j.searchParams.set("noTraverse",String(Y)),j.searchParams.set("includeRefs",String(!0)),u&&j.searchParams.set("locale",u),s&&j.searchParams.set("enrich",String(s)),j.searchParams.set("omit",k||"meta.componentsUsed"),x&&j.searchParams.set("fields",x),Number.isFinite(m)&&m>-1&&j.searchParams.set("offset",String(Math.floor(m))),typeof R=="boolean"&&j.searchParams.set("includeUnpublished",String(R)),A&&rr(A)&&j.searchParams.set("cacheSeconds",String(A)),N&&rr(N)&&j.searchParams.set("staleCacheSeconds",String(N)),O){const M=Yt({sort:O});for(const X in M)j.searchParams.set(X,JSON.stringify(M[X]))}const g={...ia(),...fr(e.options||{})},F=Yt(g);for(const M in F)j.searchParams.set(M,String(F[M]));if(n&&j.searchParams.set("userAttributes",JSON.stringify(n)),r){const M=Lr({query:r});for(const X in M)j.searchParams.set(X,JSON.stringify(M[X]))}return j},aa=e=>"results"in e;async function hn(e){const t=await Wr({...e,limit:1});return t&&t[0]||null}const sa=async e=>{const t=pn(e);return await(await(e.fetch??Dr)(t.href,e.fetchOptions)).json()},_r=async(e,t,n=pn(e))=>{const r=pt(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const s of t.results){const u=ea(n.searchParams);i.push(u||s)}t.results=i}if(!r||!(K()||me==="reactNative"))return t.results;try{const i=[];for(const s of t.results)i.push(await Ii({item:s,canTrack:r}));t.results=i}catch(i){J.error("Could not process A/B tests. ",i)}return t.results};async function Wr(e){try{const t=pn(e),n=await sa(e);return aa(n)?_r(e,n):(J.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return J.error("Error fetching data. ",t),null}}function la(e){const t=e||(K()?window.location.search:void 0);return t?dr(t).indexOf("builder.preview=")!==-1:!1}function ca(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function $r(){return ca().replace(/-/g,"")}const Hr="builderSessionId",ua=async({canTrack:e})=>{if(!e)return;const t=await Ar({name:Hr,canTrack:e});if(ie(t))return t;{const n=fa();return da({id:n,canTrack:e}),n}},fa=()=>$r(),da=({id:e,canTrack:t})=>Or({name:Hr,value:e,canTrack:t}),Kr=()=>K()&&typeof localStorage<"u"?localStorage:void 0,pa=({key:e,canTrack:t})=>{var n;try{return t?(n=Kr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},ha=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Kr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},Gr="builderVisitorId",ma=({canTrack:e})=>{if(!e)return;const t=pa({key:Gr,canTrack:e});if(ie(t))return t;{const n=ga();return ya({id:n,canTrack:e}),n}},ga=()=>$r(),ya=({id:e,canTrack:t})=>ha({key:Gr,value:e,canTrack:t}),va=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await ua({canTrack:e}),n=ma({canTrack:e});return{sessionId:t,visitorId:n}},ba=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await va({canTrack:t}),userAttributes:pr(),ownerId:n}});async function Xr(e){if(!e.apiKey){J.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!zt()&&(K()||me==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await ba(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const xa=e=>Xr({...e,canTrack:!0});function or(e){return Math.round(e*1e3)/1e3}const Sa=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},wa=e=>Sa(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ir=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=or(r/n.width),s=or(o/n.height);return{x:i,y:s}},ka=e=>{const t=e.target,n=t&&wa(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?ir({event:e,target:t}):void 0,builderTargetOffset:n?ir({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},Ca=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function Jr(e,t){const n=new URL(t.origin),r=n.hostname;return(e||Ca).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}const Ea="0.14.24",ar={};function Yr(e,t){let n=ar[e];if(n||(n=ar[e]=[]),n.push(t),K()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const Ia=()=>{Yr("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let sr=!1;const zr=(e={})=>{var t,n;sr||(sr=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:me,version:Ea,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var i,s;if(!Jr(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const u=o.data.text,p=o.data.arguments||[],x=o.data.id,k=new Function(u);let m,A=null;try{m=k.apply(null,p)}catch(N){A=N}A?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:x,error:A.message}},"*"):m&&typeof m.then=="function"?m.then(N=>{var O;(O=window.parent)==null||O.postMessage({type:"builder.evaluateResult",data:{id:x,result:N}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:m,id:x}},"*");break}}})))},qr=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!Jr(t,r))return;const{data:o}=r;if(o)switch(o.type){case"builder.configureSdk":{n.configureSdk(o.data);break}case"builder.triggerAnimation":{n.animation(o.data);break}case"builder.contentUpdate":{const i=o.data,s=i.key||i.alias||i.entry||i.modelName,u=i.data;s===e&&n.contentUpdate(u);break}}},ja=(e,t,n)=>{if(!K)return J.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};zr();const r=qr({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}};function lr(e,...t){const n=Object(e);for(let r=1;r<arguments.length;r++){const o=arguments[r];if(o!=null)for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n}function Ta(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function Aa(e,t){const n=Oa(e),r=getComputedStyle(t),o=e.steps[0].styles,i=e.steps[e.steps.length-1].styles,s=[o,i];for(const u of s)for(const p of n)p in u||(u[p]=r[p])}function Oa(e){const t=[];for(const n of e.steps)for(const r in n.styles)t.indexOf(r)===-1&&t.push(r);return t}function Ra(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Ta(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Aa(e,n),n.style.transition="none",n.style.transitionDelay="0",lr(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${un(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),lr(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}const Pa=e=>{var i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=e.fileUrl??((i=e==null?void 0:e.files)==null?void 0:i.regular);let o="";if(r&&t&&n&&(o+=`
|
|
155
155
|
@font-face {
|
|
156
156
|
font-family: "${t}";
|
|
157
157
|
src: local("${n}"), url('${r}') format('woff2');
|
|
@@ -165,7 +165,7 @@ src: url('${p}') format('woff2');
|
|
|
165
165
|
font-display: fallback;
|
|
166
166
|
font-weight: ${s};
|
|
167
167
|
}
|
|
168
|
-
`.trim())}return o},
|
|
168
|
+
`.trim())}return o},Na=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>Pa(n)))==null?void 0:t.join(" "))||""},Ba=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",Fa=`
|
|
169
169
|
.builder-button {
|
|
170
170
|
all: unset;
|
|
171
171
|
}
|
|
@@ -182,8 +182,8 @@ font-weight: ${s};
|
|
|
182
182
|
text-align: inherit;
|
|
183
183
|
font-family: inherit;
|
|
184
184
|
}
|
|
185
|
-
`,
|
|
185
|
+
`,Ua=e=>e?"":Fa,Ma=e=>`variant-${e}`;function Va(e){const t=`
|
|
186
186
|
${Ba({cssCode:e.cssCode,contentId:e.contentId})}
|
|
187
|
-
${
|
|
188
|
-
${
|
|
189
|
-
`.trim();return y.jsx(vt,{id:"builderio-content",styles:t})}const Da=({content:e,data:t,locale:n})=>{var i,s,u;const r={},o=((i=e==null?void 0:e.data)==null?void 0:i.state)||{};return(u=(s=e==null?void 0:e.data)==null?void 0:s.inputs)==null||u.forEach(p=>{p.name&&p.defaultValue!==void 0&&(r[p.name]=p.defaultValue)}),{...r,...o,...t,...n?{locale:n}:{}}},
|
|
187
|
+
${Na({customFonts:e.customFonts})}
|
|
188
|
+
${Ua(e.isNestedRender)}
|
|
189
|
+
`.trim();return y.jsx(vt,{id:"builderio-content",styles:t})}const Da=({content:e,data:t,locale:n})=>{var i,s,u;const r={},o=((i=e==null?void 0:e.data)==null?void 0:i.state)||{};return(u=(s=e==null?void 0:e.data)==null?void 0:s.inputs)==null||u.forEach(p=>{p.name&&p.defaultValue!==void 0&&(r[p.name]=p.defaultValue)}),{...r,...o,...t,...n?{locale:n}:{}}},La=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function cr(e){var o,i,s,u,p,x,k,m,A;const t=Zi({variationId:(o=e.content)==null?void 0:o.testVariationId,contentId:(i=e.content)==null?void 0:i.id}),n=[...tr(),...e.customComponents||[]].reduce((N,{component:O,...R})=>({...N,[R.name]:{component:O,...Xt(R)}}),{}),r={content:La({content:e.content,data:e.data}),localState:void 0,rootState:Da({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...tr(),...e.customComponents||[]].reduce((N,{component:O,...R})=>({...N,[R.name]:Xt(R)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}};return y.jsxs(ee.EnableEditor,{content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,showContent:e.showContent,builderContextSignal:r,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,linkComponent:e.linkComponent,trustedHosts:e.trustedHosts,children:[e.isSsrAbTest?y.jsx(Jt,{id:"builderio-variant-visibility",scriptStr:t}):null,y.jsx(Va,{isNestedRender:e.isNestedRender,contentId:(s=r.content)==null?void 0:s.id,cssCode:(p=(u=r.content)==null?void 0:u.data)==null?void 0:p.cssCode,customFonts:(k=(x=r.content)==null?void 0:x.data)==null?void 0:k.customFonts}),y.jsx(xt,{blocks:(A=(m=r.content)==null?void 0:m.data)==null?void 0:A.blocks,context:r,registeredComponents:n,linkComponent:e.linkComponent})]})}function Zr(e){var i;const t=Ji({canTrack:pt(e.canTrack),content:e.content}),n=function(){var u;return qi(ft(e.content).map(p=>({id:p.testVariationId,testRatio:p.testRatio})),((u=e.content)==null?void 0:u.id)||"")},r=function(){return ft(e.content).map(u=>`.variant-${u.testVariationId} { display: none; } `).join("")},o=function(){var u;return t?{...e.content,testVariationId:(u=e.content)==null?void 0:u.id}:Ei({item:e.content,canTrack:pt(e.canTrack)})};return y.jsxs(y.Fragment,{children:[!e.isNestedRender&&me!=="reactNative"?y.jsx(Jt,{id:"builderio-init-variants-fns",scriptStr:zi()}):null,t?y.jsxs(y.Fragment,{children:[y.jsx(vt,{id:"builderio-variants",styles:r()}),y.jsx(Jt,{id:"builderio-variants-visibility",scriptStr:n()}),(i=ft(e.content))==null?void 0:i.map(s=>y.jsx(cr,{isNestedRender:e.isNestedRender,content:s,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},s.testVariationId))]}):null,y.jsx(cr,{isNestedRender:e.isNestedRender,content:o(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}const _a=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return hn({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{J.error("Could not fetch symbol content: ",n)})};async function Qr(e){var i,s,u,p,x;const t=function(){return"div"},n=function(){return"div"},r=function(){var m,A;return[e.attributes[ht()],"builder-symbol",(m=e.symbol)!=null&&m.inline?"builder-inline-symbol":void 0,(A=e.symbol)!=null&&A.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},o=((i=e.symbol)==null?void 0:i.content)||await _a({symbol:e.symbol,builderContextValue:e.builderContext});return y.jsx("div",{...e.attributes,className:r(),children:y.jsx(Zr,{isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(s=e.builderBlock)==null?void 0:s.id},customComponents:Object.values(e.builderComponents),data:{...(u=e.symbol)==null?void 0:u.data,...e.builderContext.localState,...(p=o==null?void 0:o.data)==null?void 0:p.state},model:(x=e.symbol)==null?void 0:x.model,content:o,linkComponent:e.builderLinkComponent,blocksWrapper:t(),contentWrapper:n()})})}const ur={};function Wa(e){if(K()){Object.assign(ur,e);const t={type:"builder.settingsChange",data:ur};parent.postMessage(t,"*")}}const $a=async e=>{var r,o,i;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((o=e.userAttributes)==null?void 0:o.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:dn(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await hn(n)}};exports.Blocks=xt;exports.Columns=jr;exports.ContentVariants=Zr;exports.Symbol=Qr;exports.Text=Br;exports._processContentResult=_r;exports._track=Xr;exports.createEditorListener=qr;exports.createRegisterComponentMessage=$i;exports.evaluate=yt;exports.fastClone=Ze;exports.fetch=Dr;exports.fetchBuilderProps=$a;exports.fetchEntries=Wr;exports.fetchOneEntry=hn;exports.getBlockActions=si;exports.getBlockProperties=Ir;exports.getBuilderSearchParams=dn;exports.getClassPropName=ht;exports.getDefaultCanTrack=pt;exports.getInteractionPropertiesForEvent=ka;exports.getSrcSet=mi;exports.getWrapperClassName=Ma;exports.init=Vr;exports.isBrowser=K;exports.isEditing=zt;exports.isEmptyElement=bo;exports.isJsScript=Di;exports.isPreviewing=la;exports.logger=J;exports.register=Yr;exports.registerInsertMenu=Ia;exports.setEditorSettings=Wa;exports.setupBrowserForEditing=zr;exports.subscribeToEditor=ja;exports.track=xa;exports.triggerAnimation=Ra;
|