@builder.io/sdk-react-nextjs 0.15.1 → 0.16.0
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/blocks-exports.cjs +24 -24
- package/lib/browser/blocks-exports.mjs +450 -504
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-34aed7a8.js → server-entry-86458005.js} +1 -1
- package/lib/browser/{server-entry-3ae58f1b.cjs → server-entry-d8d62ced.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +32 -32
- package/lib/edge/blocks-exports.mjs +689 -743
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{server-entry-34aed7a8.js → server-entry-86458005.js} +1 -1
- package/lib/edge/{server-entry-3ae58f1b.cjs → server-entry-d8d62ced.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +23 -23
- package/lib/node/blocks-exports.mjs +442 -496
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-ca94f96b.js → node-runtime-423addf8.js} +1 -1
- package/lib/node/{node-runtime-54f0fc0a.cjs → node-runtime-6421aefe.cjs} +1 -1
- package/lib/node/{server-entry-4f9f76d3.js → server-entry-1644208f.js} +1 -1
- package/lib/node/{server-entry-d0dda572.cjs → server-entry-6f84d0f2.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/components/block/block.helpers.d.ts +8 -8
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/components/block/block.helpers.d.ts +8 -8
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
"use client";"use strict";var Ur=Object.defineProperty;var Wr=(e,t,n)=>t in e?Ur(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ut=(e,t,n)=>(Wr(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),w=require("./server-entry-
|
|
2
|
-
`;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(M(2));break;case 117:l+=String.fromCharCode(M(4));break;case 85:l+=String.fromCharCode(M(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:S.charCodeAt(d)===10&&++d;case 10:O.C&&(de=d,++we);break;default:l+=String.fromCharCode(u)}}else u!==13&&u!==10&&u!==8232&&u!==8233||r(
|
|
3
|
-
`,de-2)+1,--we;h(),b()}function q(){this.type=null,this.start=z,this.end=null}function oe(){this.start=wt,this.end=null,Ct&&(this.source=Ct)}function H(){var o=new q;return O.C&&(o.X=new oe),O.vb&&(o.sourceFile=O.vb),O.Xa&&(o.j=[z,0]),o}function ee(o){var l=new q;return l.start=o.start,O.C&&(l.X=new oe,l.X.start=o.X.start),O.Xa&&(l.j=[o.j[0],0]),l}function j(o,l){return o.type=l,o.end=be,O.C&&(o.X.end=It),O.Xa&&(o.j[1]=be),o}function ke(o){return o.type==="ExpressionStatement"&&o.la.type==="Literal"&&o.la.value==="use strict"}function W(o){return T===o?(v(),!0):!1}function Ce(){return!O.fc&&(T===Tt||T===Ae||st.test(S.slice(be,z)))}function I(){W(he)||Ce()||N()}function x(o){T===o?v():N()}function N(){r(z,"Unexpected token")}function U(o){o.type!=="Identifier"&&o.type!=="MemberExpression"&&r(o.start,"Assigning to rvalue"),ie&&o.type==="Identifier"&&at(o.name)&&r(o.start,"Assigning to "+o.name+" in strict mode")}function F(){(T===Rn||T===Ee&&ae==="/=")&&b(!0);var o=T,l=H();switch(o){case At:case dn:v();var u=o===At;W(he)||Ce()?l.label=null:T!==Te?N():(l.label=ue(),I());for(var p=0;p<G.length;++p){var A=G[p];if((l.label===null||A.name===l.label.name)&&(A.kind!==null&&(u||A.kind==="loop")||l.label&&u))break}return p===G.length&&r(l.start,"Unsyntactic "+o.l),j(l,u?"BreakStatement":"ContinueStatement");case fn:return v(),I(),j(l,"DebuggerStatement");case pn:return v(),G.push(Lt),l.body=F(),G.pop(),x(Bt),l.test=J(),I(),j(l,"DoWhileStatement");case yn:return v(),G.push(Lt),x(fe),T===he?le(l,null):T===Nt?(o=H(),v(),sn(o,!0),j(o,"VariableDeclaration"),o.fa.length===1&&W(ot)?nt(l,o):le(l,o)):(o=Q(!1,!0),W(ot)?(U(o),nt(l,o)):le(l,o));case Ot:return v(),St(l,!0);case vn:return v(),l.test=J(),l.da=F(),l.alternate=W(mn)?F():null,j(l,"IfStatement");case bn:return Ue||O.Ib||r(z,"'return' outside of function"),v(),W(he)||Ce()?l.K=null:(l.K=Q(),I()),j(l,"ReturnStatement");case Pt:for(v(),l.Qb=J(),l.tb=[],x(Ve),G.push(Dr);T!==Ae;)T===Rt||T===hn?(o=T===Rt,p&&j(p,"SwitchCase"),l.tb.push(p=H()),p.da=[],v(),o?p.test=Q():(u&&r(jt,"Multiple default clauses"),u=!0,p.test=null),x(_e)):(p||N(),p.da.push(F()));return p&&j(p,"SwitchCase"),v(),G.pop(),j(l,"SwitchStatement");case xn:return v(),st.test(S.slice(be,z))&&r(be,"Illegal newline after throw"),l.K=Q(),I(),j(l,"ThrowStatement");case Sn:return v(),l.block=se(),l.Ea=null,T===un&&(o=H(),v(),x(fe),o.Ua=ue(),ie&&at(o.Ua.name)&&r(o.Ua.start,"Binding "+o.Ua.name+" in strict mode"),x(ce),o.body=se(),l.Ea=j(o,"CatchClause")),l.fb=W(gn)?se():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),j(l,"TryStatement");case Nt:return v(),sn(l),I(),j(l,"VariableDeclaration");case Bt:return v(),l.test=J(),G.push(Lt),l.body=F(),G.pop(),j(l,"WhileStatement");case kn:return ie&&r(z,"'with' in strict mode"),v(),l.object=J(),l.body=F(),j(l,"WithStatement");case Ve:return se();case he:return v(),j(l,"EmptyStatement");default:if(u=ae,A=Q(),o===Te&&A.type==="Identifier"&&W(_e)){for(p=0;p<G.length;++p)G[p].name===u&&r(A.start,"Label '"+u+"' is already declared");return G.push({name:u,kind:T.W?"loop":T===Pt?"switch":null}),l.body=F(),G.pop(),l.label=A,j(l,"LabeledStatement")}return l.la=A,I(),j(l,"ExpressionStatement")}}function J(){x(fe);var o=Q();return x(ce),o}function se(o){var l=H(),u=!0,p=!1;for(l.body=[],x(Ve);!W(Ae);){var A=F();if(l.body.push(A),u&&o&&ke(A)){var Y=p;_(p=!0)}u=!1}return p&&!Y&&_(!1),j(l,"BlockStatement")}function le(o,l){return o.ua=l,x(he),o.test=T===he?null:Q(),x(he),o.update=T===ce?null:Q(),x(ce),o.body=F(),G.pop(),j(o,"ForStatement")}function nt(o,l){return o.left=l,o.right=Q(),x(ce),o.body=F(),G.pop(),j(o,"ForInStatement")}function sn(o,l){for(o.fa=[],o.kind="var";;){var u=H();if(u.id=ue(),ie&&at(u.id.name)&&r(u.id.start,"Binding "+u.id.name+" in strict mode"),u.ua=W(On)?Q(!0,l):null,o.fa.push(j(u,"VariableDeclarator")),!W(xe))break}}function Q(o,l){var u=vt(l);if(!o&&T===xe){for(o=ee(u),o.xb=[u];W(xe);)o.xb.push(vt(l));return j(o,"SequenceExpression")}return u}function vt(o){var l=bt(xt(),-1,o);if(W(An)){var u=ee(l);u.test=l,u.da=Q(!0),x(_e),u.alternate=Q(!0,o),l=j(u,"ConditionalExpression")}return T.Cb?(u=ee(l),u.operator=ae,u.left=l,v(),u.right=vt(o),U(l),j(u,"AssignmentExpression")):l}function bt(o,l,u){var p=T.L;if(p!==null&&(!u||T!==ot)&&p>l){var A=ee(o);return A.left=o,A.operator=ae,o=T,v(),A.right=bt(xt(),p,u),p=j(A,o===Nn||o===Bn?"LogicalExpression":"BinaryExpression"),bt(p,l,u)}return o}function xt(){if(T.prefix){var o=H(),l=T.$b;return o.operator=ae,De=o.prefix=!0,v(),o.K=xt(),l?U(o.K):ie&&o.operator==="delete"&&o.K.type==="Identifier"&&r(o.start,"Deleting local variable in strict mode"),j(o,l?"UpdateExpression":"UnaryExpression")}for(l=Le(rt());T.cc&&!Ce();)o=ee(l),o.operator=ae,o.prefix=!1,o.K=l,U(l),v(),l=j(o,"UpdateExpression");return l}function Le(o,l){if(W(Tn)){var u=ee(o);return u.object=o,u.Wa=ue(!0),u.bb=!1,Le(j(u,"MemberExpression"),l)}return W(Ft)?(u=ee(o),u.object=o,u.Wa=Q(),u.bb=!0,x(Mt),Le(j(u,"MemberExpression"),l)):!l&&W(fe)?(u=ee(o),u.callee=o,u.arguments=kt(ce,!1),Le(j(u,"CallExpression"),l)):o}function rt(){switch(T){case wn:var o=H();return v(),j(o,"ThisExpression");case Te:return ue();case We:case it:case cn:return o=H(),o.value=ae,o.raw=S.slice(z,Ie),v(),j(o,"Literal");case En:case jn:case In:return o=H(),o.value=T.$a,o.raw=T.l,v(),j(o,"Literal");case fe:o=wt;var l=z;v();var u=Q();return u.start=l,u.end=Ie,O.C&&(u.X.start=o,u.X.end=Et),O.Xa&&(u.j=[l,Ie]),x(ce),u;case Ft:return o=H(),v(),o.elements=kt(Mt,!0,!0),j(o,"ArrayExpression");case Ve:for(o=H(),l=!0,u=!1,o.h=[],v();!W(Ae);){if(l)l=!1;else if(x(xe),O.sb&&W(Ae))break;var p={key:T===We||T===it?rt():ue(!0)},A=!1;if(W(_e)){p.value=Q(!0);var Y=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?N():(A=u=!0,Y=p.kind=p.key.name,p.key=T===We||T===it?rt():ue(!0),T!==fe&&N(),p.value=St(H(),!1));if(p.key.type==="Identifier"&&(ie||u))for(var te=0;te<o.h.length;++te){var Oe=o.h[te];if(Oe.key.name===p.key.name){var Dt=Y===Oe.kind||A&&Oe.kind==="init"||Y==="init"&&(Oe.kind==="get"||Oe.kind==="set");Dt&&!ie&&Y==="init"&&Oe.kind==="init"&&(Dt=!1),Dt&&r(p.key.start,"Redefinition of property")}}o.h.push(p)}return j(o,"ObjectExpression");case Ot:return o=H(),v(),St(o,!1);case Cn:return o=H(),v(),o.callee=Le(rt(),!0),o.arguments=W(fe)?kt(ce,!1):Cr,j(o,"NewExpression")}N()}function St(o,l){T===Te?o.id=ue():l?N():o.id=null,o.oa=[];var u=!0;for(x(fe);!W(ce);)u?u=!1:x(xe),o.oa.push(ue());u=Ue;var p=G;if(Ue=!0,G=[],o.body=se(!0),Ue=u,G=p,ie||o.body.body.length&&ke(o.body.body[0])){for(u=o.id?-1:0;u<o.oa.length;++u)if(p=0>u?o.id:o.oa[u],(Fn(p.name)||at(p.name))&&r(p.start,"Defining '"+p.name+"' in strict mode"),0<=u)for(var A=0;A<u;++A)p.name===o.oa[A].name&&r(p.start,"Argument name clash in strict mode")}return j(o,l?"FunctionDeclaration":"FunctionExpression")}function kt(o,l,u){for(var p=[],A=!0;!W(o);){if(A)A=!1;else if(x(xe),l&&O.sb&&W(o))break;p.push(u&&T===xe?null:Q(!0))}return p}function ue(o){var l=H();return o&&O.yb==="everywhere"&&(o=!1),T===Te?(!o&&(O.yb&&Br(ae)||ie&&Fn(ae))&&S.slice(z,Ie).indexOf("\\")===-1&&r(z,"The keyword '"+ae+"' is reserved"),l.name=ae):o&&T.l?l.name=T.l:N(),De=!1,v(),j(l,"Identifier")}e.version="0.5.0";var O,S="",je,Ct;e.parse=function(o,l){S=String(o),je=S.length,O=l||{};for(var u in ln)Object.prototype.hasOwnProperty.call(O,u)||(O[u]=ln[u]);for(Ct=O.sourceFile,we=1,d=de=0,De=!0,h(),u=O.dc,jt=be=d,O.C&&(It=new a),Ue=ie=!1,G=[],b(),o=u||H(),l=!0,u||(o.body=[]);T!==Tt;)u=F(),o.body.push(u),l&&ke(u)&&_(!0),l=!1;return j(o,"Program")};var ln={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},d=0,z=0,Ie=0,wt,Et,T,ae,De,we,de,jt=0,be=0,It,Ue,G,ie,Cr=[],We={type:"num"},cn={type:"regexp"},it={type:"string"},Te={type:"name"},Tt={type:"eof"},At={l:"break"},Rt={l:"case",m:!0},un={l:"catch"},dn={l:"continue"},fn={l:"debugger"},hn={l:"default"},pn={l:"do",W:!0},mn={l:"else",m:!0},gn={l:"finally"},yn={l:"for",W:!0},Ot={l:"function"},vn={l:"if"},bn={l:"return",m:!0},Pt={l:"switch"},xn={l:"throw",m:!0},Sn={l:"try"},Nt={l:"var"},Bt={l:"while",W:!0},kn={l:"with"},Cn={l:"new",m:!0},wn={l:"this"},En={l:"null",$a:null},jn={l:"true",$a:!0},In={l:"false",$a:!1},ot={l:"in",L:7,m:!0},wr={break:At,case:Rt,catch:un,continue:dn,debugger:fn,default:hn,do:pn,else:mn,finally:gn,for:yn,function:Ot,if:vn,return:bn,switch:Pt,throw:xn,try:Sn,var:Nt,while:Bt,with:kn,null:En,true:jn,false:In,new:Cn,in:ot,instanceof:{l:"instanceof",L:7,m:!0},this:wn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Ft={type:"[",m:!0},Mt={type:"]"},Ve={type:"{",m:!0},Ae={type:"}"},fe={type:"(",m:!0},ce={type:")"},xe={type:",",m:!0},he={type:";",m:!0},_e={type:":",m:!0},Tn={type:"."},An={type:"?",m:!0},Rn={L:10,m:!0},On={Cb:!0,m:!0},Ee={Cb:!0,m:!0},Er={cc:!0,prefix:!0,$b:!0},Pn={prefix:!0,m:!0},Nn={L:1,m:!0},Bn={L:2,m:!0},jr={L:3,m:!0},Ir={L:4,m:!0},Tr={L:5,m:!0},Ar={L:6,m:!0},Rr={L:7,m:!0},Or={L:8,m:!0},Pr={L:9,prefix:!0,m:!0},Nr={L:10,m:!0},Br=i("class enum extends super const export import"),Fn=i("implements interface let package private protected public static yield"),at=i("eval arguments"),Fr=i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),Mr=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Mn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),Lr=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),st=/[\n\r\u2028\u2029]/,lt=/\r\n|[\n\r\u2028\u2029]/g,Re,Lt={kind:"loop"},Dr={kind:"switch"}},_t=_t=typeof globalThis=="undefined"?void 0:globalThis;Yr(_t.j||(_t.j={}));function m(e,t){typeof e=="string"&&(e=Be(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),i;for(i in e)r[i]=i==="body"?e[i].slice():e[i];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 a,s;for(s in this)typeof this[s]=="function"&&(a=s.match(e))&&(this.rb[a[1]]=this[s].bind(this));this.N=Ht(this,this.ra,null),this.Na=this.N.object,this.ra=Be(this.ba.join(`
|
|
4
|
-
`),"polyfills"),this.ba=void 0,ft(this.ra),a=new C(this.ra,this.N),a.done=!1,this.o=[a],this.Eb(),this.value=void 0,this.ra=r,a=new C(this.ra,this.N),a.done=!1,this.o.length=0,this.o[0]=a}var Ln={C:!0,kc:5},zt={configurable:!0,enumerable:!0,writable:!1},k={configurable:!0,enumerable:!1,writable:!0},re={configurable:!0,enumerable:!1,writable:!1},$e={configurable:!1,enumerable:!1,writable:!1},Dn={configurable:!1,enumerable:!0,writable:!0},tr={STEP_ERROR:!0},Me={SCOPE_REFERENCE:!0},Je={VALUE_IN_DESCRIPTOR:!0},Pe={REGEXP_TIMEOUT:!0},Un=[],ge=null,Ye=null,Se=typeof globalThis=="undefined"?void 0:globalThis,Xr=["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 Yt(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 ft(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 i=e[r];i&&typeof i=="object"&&ft(i,t,n)}}m.prototype.REGEXP_MODE=2;m.prototype.REGEXP_THREAD_TIMEOUT=1e3;m.prototype.POLYFILL_TIMEOUT=1e3;L=m.prototype;L.P=!1;L.Ka=!1;L.Kb=0;L.ic=0;function Be(e,t){var n={},r;for(r in Ln)n[r]=Ln[r];return n.sourceFile=t,Se.j.parse(e,n)}L.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=Be(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Ze(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};L.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&&ir(this,n,n.interval);var r=new C(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 i=Ye;Ye=this;try{var a=this.rb[r.type](e,n,r)}catch(s){if(s!==tr)throw this.value!==s&&(this.value=void 0),s}finally{Ye=i}if(a&&e.push(a),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};L.Eb=function(){for(;!this.za&&this.lb(););return this.za};function qr(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,zt),e.g(t,"this",t,$e),e.g(t,"self",t),e.M=new P(null),e.Z=new P(e.M),Jr(e,t),Zr(e,t),t.xa=e.M,e.g(t,"constructor",e.v,k),Qr(e,t),ei(e,t),ti(e,t),ni(e,t),ri(e,t),ii(e,t),oi(e,t),ai(e,t),si(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,k),e.g(t,"parseInt",e.i(parseInt,!1),k),e.g(t,"parseFloat",e.i(parseFloat,!1),k),e.g(t,"isNaN",e.i(isNaN,!1),k),e.g(t,"isFinite",e.i(isFinite,!1),k);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i<r.length;i++)n=function(a){return function(s){try{return a(s)}catch(c){E(e,e.Gb,c.message)}}}(r[i][0]),e.g(t,r[i][1],e.i(n,!1),k);n=function(a){return Wn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),k),n=function(a){return Wn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),k),n=function(a){Vn(e,a)},e.g(t,"clearTimeout",e.i(n,!1),k),n=function(a){Vn(e,a)},e.g(t,"clearInterval",e.i(n,!1),k),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)}L.Wb=0;function Jr(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(i){var a=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 c=0;c<s.length;c++){var h=s[c];n.test(h)||E(e,e.T,"Invalid function argument: "+h)}s=s.join(", ")}try{var y=Be("(function("+s+") {"+a+"})","function"+e.Wb++)}catch(b){E(e,e.T,"Invalid code: "+b.message)}return y.body.length!==1&&E(e,e.T,"Invalid code in function body"),Jt(e,y.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,k),e.g(e.O,"prototype",e.Z,k),e.g(e.Z,"constructor",e.O,k),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,re),e.Z.H="Function",r=function(i,a){var s=e.o[e.o.length-1];s.U=this,s.B=i,s.F=[],a!=null&&(a instanceof P?s.F=nr(e,a):E(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},X(e,e.O,"apply",r),r=function(i){var a=e.o[e.o.length-1];a.U=this,a.B=i,a.F=[];for(var s=1;s<arguments.length;s++)a.F.push(arguments[s]);a.eb=!1},X(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)},X(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),k),r=function(){return this.valueOf()},X(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),k)}function Zr(e,t){function n(i){i!=null||E(e,e.j,"Cannot convert '"+i+"' to object")}var r=function(i){if(i==null)return ve(e)?this:e.s(e.M);if(!(i instanceof P)){var a=e.s(ye(e,i));return a.data=i,a}return i};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,k),e.g(e.M,"constructor",e.v,k),e.g(t,"Object",e.v,k),r=function(i){return n(i),me(e,Object.getOwnPropertyNames(i instanceof P?i.h:i))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),k),r=function(i){return n(i),i instanceof P&&(i=i.h),me(e,Object.keys(i))},e.g(e.v,"keys",e.i(r,!1),k),r=function(i){return i===null?e.s(null):(i instanceof P||E(e,e.j,"Object prototype may only be an Object or null, not "+i),e.s(i))},e.g(e.v,"create",e.i(r,!1),k),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(i,a,s){return a=String(a),i instanceof P||E(e,e.j,"Object.defineProperty called on non-object: "+i),s instanceof P||E(e,e.j,"Property description must be an object"),!i.preventExtensions||a in i.h||E(e,e.j,"Can't define property '"+a+"', object is not extensible"),e.g(i,a,Je,s.h),i},e.g(e.v,"defineProperty",e.i(r,!1),k),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(i,a){if(i instanceof P||E(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+i),a=String(a),a in i.h){var s=Object.getOwnPropertyDescriptor(i.h,a),c=i.V[a];return i=i.Y[a],a=e.s(e.M),c||i?(e.g(a,"get",c),e.g(a,"set",i)):(e.g(a,"value",s.value),e.g(a,"writable",s.writable)),e.g(a,"configurable",s.configurable),e.g(a,"enumerable",s.enumerable),a}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),k),r=function(i){return n(i),ye(e,i)},e.g(e.v,"getPrototypeOf",e.i(r,!1),k),r=function(i){return!!i&&!i.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),k),r=function(i){return i instanceof P&&(i.preventExtensions=!0),i},e.g(e.v,"preventExtensions",e.i(r,!1),k),X(e,e.v,"toString",P.prototype.toString),X(e,e.v,"toLocaleString",P.prototype.toString),X(e,e.v,"valueOf",P.prototype.valueOf),r=function(i){return n(this),this instanceof P?String(i)in this.h:this.hasOwnProperty(i)},X(e,e.v,"hasOwnProperty",r),r=function(i){return n(this),this instanceof P?Object.prototype.propertyIsEnumerable.call(this.h,i):this.propertyIsEnumerable(i)},X(e,e.v,"propertyIsEnumerable",r),r=function(i){for(;;){if(i=ye(e,i),!i)return!1;if(i===this)return!0}},X(e,e.v,"isPrototypeOf",r)}function Qr(e,t){var n=function(r){var i=ve(e)?this:Fe(e),a=arguments[0];if(arguments.length===1&&typeof a=="number")isNaN(Yt(a))&&E(e,e.ob,"Invalid array length: "+a),i.h.length=a;else{for(a=0;a<arguments.length;a++)i.h[a]=arguments[a];i.h.length=a}return i};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,k),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),k),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 ei(e,t){var n=function(r){return r=arguments.length?Se.String(r):"",ve(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,k),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),k),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)X(e,e.J,t[n],String.prototype[t[n]]);n=function(r,i,a){i=e.R(i),a=e.R(a);try{return String(this).localeCompare(r,i,a)}catch(s){E(e,e.D,"localeCompare: "+s.message)}},X(e,e.J,"localeCompare",n),n=function(r,i,a){var s=String(this);if(i=i?Number(i):void 0,Z(e,r,e.I)&&(r=r.data,Ke(e,r,a),e.REGEXP_MODE===2)){if(ge)r=He(e,"string.split(separator, limit)",{string:s,separator:r,limit:i},r,a),r!==Pe&&a(me(e,r));else{var c=e.ha(),h=Ge(e,r,c,a);c.onmessage=function(y){clearTimeout(h),a(me(e,y.data))},c.postMessage(["split",s,r,i])}return}r=s.split(r,i),a(me(e,r))},ze(e,e.J,"split",n),n=function(r,i){var a=String(this);if(r=Z(e,r,e.I)?r.data:new RegExp(r),Ke(e,r,i),e.REGEXP_MODE===2)if(ge)r=He(e,"string.match(regexp)",{string:a,regexp:r},r,i),r!==Pe&&i(r&&me(e,r));else{var s=e.ha(),c=Ge(e,r,s,i);s.onmessage=function(h){clearTimeout(c),i(h.data&&me(e,h.data))},s.postMessage(["match",a,r])}else r=a.match(r),i(r&&me(e,r))},ze(e,e.J,"match",n),n=function(r,i){var a=String(this);if(Z(e,r,e.I)?r=r.data:r=new RegExp(r),Ke(e,r,i),e.REGEXP_MODE===2)if(ge)r=He(e,"string.search(regexp)",{string:a,regexp:r},r,i),r!==Pe&&i(r);else{var s=e.ha(),c=Ge(e,r,s,i);s.onmessage=function(h){clearTimeout(c),i(h.data)},s.postMessage(["search",a,r])}else i(a.search(r))},ze(e,e.J,"search",n),n=function(r,i,a){var s=String(this);if(i=String(i),Z(e,r,e.I)&&(r=r.data,Ke(e,r,a),e.REGEXP_MODE===2)){if(ge)r=He(e,"string.replace(substr, newSubstr)",{string:s,substr:r,newSubstr:i},r,a),r!==Pe&&a(r);else{var c=e.ha(),h=Ge(e,r,c,a);c.onmessage=function(y){clearTimeout(h),a(y.data)},c.postMessage(["replace",s,r,i])}return}a(s.replace(r,i))},ze(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 ti(e,t){e.mb=e.i(function(n){return n=Se.Boolean(n),ve(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,k)}function ni(e,t){var n=function(r){return r=arguments.length?Se.Number(r):0,ve(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,k),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(i){E(e,e.D,i.message)}},X(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(i){E(e,e.D,i.message)}},X(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(i){E(e,e.D,i.message)}},X(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(i){E(e,e.D,i.message)}},X(e,e.aa,"toString",n),n=function(r,i){r=r?e.R(r):void 0,i=i?e.R(i):void 0;try{return Number(this).toLocaleString(r,i)}catch(a){E(e,e.D,"toLocaleString: "+a.message)}},X(e,e.aa,"toLocaleString",n)}function ri(e,t){var n=function(i,a){if(!ve(e))return Se.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(Se.Date,s)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,k),e.g(e.$,"now",e.i(Date.now,!1),k),e.g(e.$,"parse",e.i(Date.parse,!1),k),e.g(e.$,"UTC",e.i(Date.UTC,!1),k),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(i){return function(a){var s=this.data;s instanceof Date||E(e,e.j,i+" not called on a Date");for(var c=[],h=0;h<arguments.length;h++)c[h]=e.R(arguments[h]);return s[i].apply(s,c)}}(t[r]),X(e,e.$,t[r],n)}function ii(e,t){var n=function(r,i){if(ve(e))var a=this;else{if(i===void 0&&Z(e,r,e.I))return r;a=e.s(e.Ma)}r=r===void 0?"":String(r),i=i?String(i):"",/^[gmi]*$/.test(i)||E(e,e.T,"Invalid regexp flag: "+i);try{var s=new Se.RegExp(r,i)}catch(c){E(e,e.T,c.message)}return Xt(e,a,s),a};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,k),e.g(e.I.h.prototype,"global",void 0,re),e.g(e.I.h.prototype,"ignoreCase",void 0,re),e.g(e.I.h.prototype,"multiline",void 0,re),e.g(e.I.h.prototype,"source","(?:)",re),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,i){function a(b){if(b){var g=me(e,b);return e.g(g,"index",b.index),e.g(g,"input",b.input),g}return null}var s=this.data;if(r=String(r),s.lastIndex=Number(e.G(this,"lastIndex")),Ke(e,s,i),e.REGEXP_MODE===2)if(ge)r=He(e,"regexp.exec(string)",{string:r,regexp:s},s,i),r!==Pe&&(e.g(this,"lastIndex",s.lastIndex),i(a(r)));else{var c=e.ha(),h=Ge(e,s,c,i),y=this;c.onmessage=function(b){clearTimeout(h),e.g(y,"lastIndex",b.data[1]),i(a(b.data[0]))},c.postMessage(["exec",s,s.lastIndex,r])}else r=s.exec(r),e.g(this,"lastIndex",s.lastIndex),i(a(r))},ze(e,e.I,"exec",n)}function oi(e,t){function n(r){var i=e.i(function(a){var s=ve(e)?this:e.Aa(i);return $t(e,s,a),s},!0);return e.g(i,"prototype",e.Aa(e.D),k),e.g(i.h.prototype,"name",r,k),e.g(t,r,i,k),i}e.D=e.i(function(r){var i=ve(e)?this:e.Aa(e.D);return $t(e,i,r),i},!0),e.g(t,"Error",e.D,k),e.g(e.D.h.prototype,"message","",k),e.g(e.D.h.prototype,"name","Error",k),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function ai(e,t){var n=e.s(e.M);e.g(t,"Math",n,k);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]],re);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),k)}function si(e,t){var n=e.s(e.M);e.g(t,"JSON",n,k),t=function(r){try{var i=JSON.parse(String(r))}catch(a){E(e,e.T,a.message)}return e.Ia(i)},e.g(n,"parse",e.i(t,!1)),t=function(r,i,a){i&&i.H==="Function"?E(e,e.j,"Function replacer on JSON.stringify not supported"):i&&i.H==="Array"?(i=nr(e,i),i=i.filter(function(c){return typeof c=="string"||typeof c=="number"})):i=null,typeof a!="string"&&typeof a!="number"&&(a=void 0),r=e.R(r);try{var s=JSON.stringify(r,i,a)}catch(c){E(e,e.j,c.message)}return s},e.g(n,"stringify",e.i(t,!1))}function Z(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=ye(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Xt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,k),e.g(t,"source",n.source,re),e.g(t,"global",n.global,re),e.g(t,"ignoreCase",n.ignoreCase,re),e.g(t,"multiline",n.multiline,re)}function $t(e,t,n){n&&e.g(t,"message",String(n),k),n=[];for(var r=e.o.length-1;0<=r;r--){var i=e.o[r],a=i.node;a.type==="CallExpression"&&(i=i.U)&&n.length&&(n[n.length-1].Ob=e.G(i,"name")),!a.X||n.length&&a.type!=="CallExpression"||n.push({Nb:a.X})}for(r=String(e.G(t,"name")),a=String(e.G(t,"message")),a=r+": "+a+`
|
|
1
|
+
"use client";"use strict";var Ur=Object.defineProperty;var Wr=(e,t,n)=>t in e?Ur(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ut=(e,t,n)=>(Wr(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),w=require("./server-entry-d8d62ced.cjs"),_=require("react"),Lr=require("next/navigation");require("lru-cache");const Vr=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),_r=e=>typeof e=="string"&&Vr.has(e.toLowerCase());function Kt(e){return f.jsx(f.Fragment,{children:_r(e.TagName)?f.jsx(f.Fragment,{children:f.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):f.jsx(f.Fragment,{children:typeof e.TagName=="string"?f.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):f.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}const qe=()=>{switch(w.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function qn(e){function t(){return{...e.attributes,[qe()]:`${e.link?"":"builder-button"} ${e.attributes[qe()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return f.jsx(Kt,{attributes:t(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}function $r(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options}}const Jn=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),Hr=()=>({isEditing:w.isEditing(),isBrowser:w.isBrowser(),isServer:!w.isBrowser(),getUserAttributes:()=>w.getUserAttributes()}),Kr=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Gr=({code:e,builder:t,context:n,event:r,localState:i,rootSetState:a,rootState:s})=>{const c=Jn({builder:t,context:n,event:r,state:Zn({rootState:s,localState:i,rootSetState:a})});return new Function(...c.map(([h])=>h),e)(...c.map(([,h])=>h))};function Zn({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,i)=>{if(t&&i in t)return t[i];const a=r[i];return typeof a=="object"&&a!==null?Zn({rootState:a,localState:void 0,rootSetState:n?s=>{r[i]=s,n(r)}:void 0}):a},set:(r,i,a)=>{if(t&&i in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[i]=a,n==null||n(r),!0}})}const Qn=(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((i,a,s)=>Object(i[a])===i[a]?i[a]:i[a]=Math.abs(Number(r[s+1]))>>0===+r[s+1]?[]:{},e)[r[r.length-1]]=n,e};var D,zr=function(e){function t(o){return 48>o?o===36:58>o?!0:65>o?!1:91>o?!0:97>o?o===95:123>o?!0:170<=o&&Mr.test(String.fromCharCode(o))}function n(o){return 65>o?o===36:91>o?!0:97>o?o===95:123>o?!0:170<=o&&Fn.test(String.fromCharCode(o))}function r(o,l){for(var u=S,p=1,A=0;;){lt.lastIndex=A;var X=lt.exec(u);if(X&&X.index<o)++p,A=X.index+X[0].length;else break}throw u={line:p,ab:o-A},l+=" ("+u.line+":"+u.ab+")",l=new SyntaxError(l),l.j=o,l.X=u,l.o=d,l}function i(o){o=o.split(" ");for(var l=Object.create(null),u=0;u<o.length;u++)l[o[u]]=!0;return function(p){return l[p]||!1}}function a(){this.line=we,this.ab=d-de}function s(o,l){Ie=d,O.C&&(wt=new a),T=o,h(),ae=l,Ue=o.m}function c(){for(var o=d,l=O.va&&O.C&&new a,u=S.charCodeAt(d+=2);d<je&&u!==10&&u!==13&&u!==8232&&u!==8233;)++d,u=S.charCodeAt(d);O.va&&O.va(!1,S.slice(o+2,d),o,d,l,O.C&&new a)}function h(){for(;d<je;){var o=S.charCodeAt(d);if(o===32)++d;else if(o===13)++d,o=S.charCodeAt(d),o===10&&++d,O.C&&(++we,de=d);else if(o===10||o===8232||o===8233)++d,O.C&&(++we,de=d);else if(8<o&&14>o)++d;else if(o===47)if(o=S.charCodeAt(d+1),o===42){o=void 0;var l=O.va&&O.C&&new a,u=d,p=S.indexOf("*/",d+=2);if(p===-1&&r(d-2,"Unterminated comment"),d=p+2,O.C)for(lt.lastIndex=u;(o=lt.exec(S))&&o.index<d;)++we,de=o.index+o[0].length;O.va&&O.va(!0,S.slice(u+2,p),u,d,l,O.C&&new a)}else if(o===47)c();else break;else if(o===160)++d;else if(5760<=o&&Fr.test(String.fromCharCode(o)))++d;else break}}function y(o){switch(o){case 46:o=S.charCodeAt(d+1),48<=o&&57>=o?$(!0):(++d,s(In));return;case 40:return++d,s(fe);case 41:return++d,s(ce);case 59:return++d,s(he);case 44:return++d,s(be);case 91:return++d,s(Bt);case 93:return++d,s(Ft);case 123:return++d,s(Ve);case 125:return++d,s(Ae);case 58:return++d,s(_e);case 63:return++d,s(Tn);case 48:if(o=S.charCodeAt(d+1),o===120||o===88){d+=2,o=U(16),o===null&&r(Y+2,"Expected hexadecimal number"),n(S.charCodeAt(d))&&r(d,"Identifier directly after number"),s(Le,o);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return $(!1);case 34:case 39:d++;for(var l="";;){d>=je&&r(Y,"Unterminated string constant");var u=S.charCodeAt(d);if(u===o){++d,s(it,l);break}if(u===92){u=S.charCodeAt(++d);var p=/^[0-7]+/.exec(S.slice(d,d+3));for(p&&(p=p[0]);p&&255<parseInt(p,8);)p=p.slice(0,-1);if(p==="0"&&(p=null),++d,p)ie&&r(d-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),d+=p.length-1;else switch(u){case 110:l+=`
|
|
2
|
+
`;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(M(2));break;case 117:l+=String.fromCharCode(M(4));break;case 85:l+=String.fromCharCode(M(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:S.charCodeAt(d)===10&&++d;case 10:O.C&&(de=d,++we);break;default:l+=String.fromCharCode(u)}}else u!==13&&u!==10&&u!==8232&&u!==8233||r(Y,"Unterminated string constant"),l+=String.fromCharCode(u),++d}return;case 47:o=S.charCodeAt(d+1),Ue?(++d,R()):o===61?g(Ee,2):g(An,1);return;case 37:case 42:S.charCodeAt(d+1)===61?g(Ee,2):g(Pr,1);return;case 124:case 38:l=S.charCodeAt(d+1),l===o?g(o===124?Pn:Nn,2):l===61?g(Ee,2):g(o===124?Er:Ir,1);return;case 94:S.charCodeAt(d+1)===61?g(Ee,2):g(jr,1);return;case 43:case 45:l=S.charCodeAt(d+1),l===o?l===45&&S.charCodeAt(d+2)===62&&st.test(S.slice(xe,d))?(d+=3,c(),h(),x()):g(wr,2):l===61?g(Ee,2):g(Or,1);return;case 60:case 62:l=S.charCodeAt(d+1),u=1,l===o?(u=o===62&&S.charCodeAt(d+2)===62?3:2,S.charCodeAt(d+u)===61?g(Ee,u+1):g(Rr,u)):l===33&&o===60&&S.charCodeAt(d+2)===45&&S.charCodeAt(d+3)===45?(d+=4,c(),h(),x()):(l===61&&(u=S.charCodeAt(d+2)===61?3:2),g(Ar,u));return;case 61:case 33:S.charCodeAt(d+1)===61?g(Tr,S.charCodeAt(d+2)===61?3:2):g(o===61?Rn:On,1);return;case 126:return g(On,1)}return!1}function x(o){if(o?d=Y+1:Y=d,O.C&&(Ct=new a),o)return R();if(d>=je)return s(It);if(o=S.charCodeAt(d),n(o)||o===92)return B();if(y(o)===!1){if(o=String.fromCharCode(o),o==="\\"||Fn.test(o))return B();r(d,"Unexpected character '"+o+"'")}}function g(o,l){var u=S.slice(d,d+l);d+=l,s(o,u)}function R(){for(var o,l,u=d;;){d>=je&&r(u,"Unterminated regexp");var p=S.charAt(d);if(st.test(p)&&r(u,"Unterminated regexp"),o)o=!1;else{if(p==="[")l=!0;else if(p==="]"&&l)l=!1;else if(p==="/"&&!l)break;o=p==="\\"}++d}o=S.slice(u,d),++d,(l=K())&&!/^[gmi]*$/.test(l)&&r(u,"Invalid regexp flag");try{var A=new RegExp(o,l)}catch(X){throw X instanceof SyntaxError&&r(u,X.message),X}s(ln,A)}function U(o,l){for(var u=d,p=0,A=l===void 0?1/0:l,X=0;X<A;++X){var te=S.charCodeAt(d);if(te=97<=te?te-97+10:65<=te?te-65+10:48<=te&&57>=te?te-48:1/0,te>=o)break;++d,p=p*o+te}return d===u||l!==void 0&&d-u!==l?null:p}function $(o){var l=d,u=!1,p=S.charCodeAt(d)===48;o||U(10)!==null||r(l,"Invalid number"),S.charCodeAt(d)===46&&(++d,U(10),u=!0),o=S.charCodeAt(d),(o===69||o===101)&&(o=S.charCodeAt(++d),o!==43&&o!==45||++d,U(10)===null&&r(l,"Invalid number"),u=!0),n(S.charCodeAt(d))&&r(d,"Identifier directly after number"),o=S.slice(l,d);var A;u?A=parseFloat(o):p&&o.length!==1?/[89]/.test(o)||ie?r(l,"Invalid number"):A=parseInt(o,8):A=parseInt(o,10),s(Le,A)}function M(o){return o=U(16,o),o===null&&r(Y,"Bad character escape sequence"),o}function K(){Re=!1;for(var o,l=!0,u=d;;){var p=S.charCodeAt(d);if(t(p))Re&&(o+=S.charAt(d)),++d;else if(p===92){Re||(o=S.slice(u,d)),Re=!0,S.charCodeAt(++d)!==117&&r(d,"Expecting Unicode escape sequence \\uXXXX"),++d,p=M(4);var A=String.fromCharCode(p);A||r(d-1,"Invalid Unicode escape"),(l?n(p):t(p))||r(d-4,"Invalid Unicode escape"),o+=A}else break;l=!1}return Re?o:S.slice(u,d)}function B(){var o=K(),l=Te;!Re&&Br(o)&&(l=Cr[o]),s(l,o)}function v(){Et=Y,xe=Ie,jt=wt,x()}function L(o){if(ie=o,d=Y,O.C)for(;d<de;)de=S.lastIndexOf(`
|
|
3
|
+
`,de-2)+1,--we;h(),x()}function z(){this.type=null,this.start=Y,this.end=null}function oe(){this.start=Ct,this.end=null,kt&&(this.source=kt)}function H(){var o=new z;return O.C&&(o.X=new oe),O.vb&&(o.sourceFile=O.vb),O.Xa&&(o.j=[Y,0]),o}function ee(o){var l=new z;return l.start=o.start,O.C&&(l.X=new oe,l.X.start=o.X.start),O.Xa&&(l.j=[o.j[0],0]),l}function j(o,l){return o.type=l,o.end=xe,O.C&&(o.X.end=jt),O.Xa&&(o.j[1]=xe),o}function ke(o){return o.type==="ExpressionStatement"&&o.la.type==="Literal"&&o.la.value==="use strict"}function V(o){return T===o?(v(),!0):!1}function Ce(){return!O.fc&&(T===It||T===Ae||st.test(S.slice(xe,Y)))}function I(){V(he)||Ce()||N()}function b(o){T===o?v():N()}function N(){r(Y,"Unexpected token")}function W(o){o.type!=="Identifier"&&o.type!=="MemberExpression"&&r(o.start,"Assigning to rvalue"),ie&&o.type==="Identifier"&&at(o.name)&&r(o.start,"Assigning to "+o.name+" in strict mode")}function F(){(T===An||T===Ee&&ae==="/=")&&x(!0);var o=T,l=H();switch(o){case Tt:case un:v();var u=o===Tt;V(he)||Ce()?l.label=null:T!==Te?N():(l.label=ue(),I());for(var p=0;p<G.length;++p){var A=G[p];if((l.label===null||A.name===l.label.name)&&(A.kind!==null&&(u||A.kind==="loop")||l.label&&u))break}return p===G.length&&r(l.start,"Unsyntactic "+o.l),j(l,u?"BreakStatement":"ContinueStatement");case dn:return v(),I(),j(l,"DebuggerStatement");case hn:return v(),G.push(Mt),l.body=F(),G.pop(),b(Nt),l.test=J(),I(),j(l,"DoWhileStatement");case gn:return v(),G.push(Mt),b(fe),T===he?le(l,null):T===Pt?(o=H(),v(),an(o,!0),j(o,"VariableDeclaration"),o.fa.length===1&&V(ot)?nt(l,o):le(l,o)):(o=Q(!1,!0),V(ot)?(W(o),nt(l,o)):le(l,o));case Rt:return v(),bt(l,!0);case yn:return v(),l.test=J(),l.da=F(),l.alternate=V(pn)?F():null,j(l,"IfStatement");case vn:return We||O.Ib||r(Y,"'return' outside of function"),v(),V(he)||Ce()?l.K=null:(l.K=Q(),I()),j(l,"ReturnStatement");case Ot:for(v(),l.Qb=J(),l.tb=[],b(Ve),G.push(Dr);T!==Ae;)T===At||T===fn?(o=T===At,p&&j(p,"SwitchCase"),l.tb.push(p=H()),p.da=[],v(),o?p.test=Q():(u&&r(Et,"Multiple default clauses"),u=!0,p.test=null),b(_e)):(p||N(),p.da.push(F()));return p&&j(p,"SwitchCase"),v(),G.pop(),j(l,"SwitchStatement");case xn:return v(),st.test(S.slice(xe,Y))&&r(xe,"Illegal newline after throw"),l.K=Q(),I(),j(l,"ThrowStatement");case bn:return v(),l.block=se(),l.Ea=null,T===cn&&(o=H(),v(),b(fe),o.Ua=ue(),ie&&at(o.Ua.name)&&r(o.Ua.start,"Binding "+o.Ua.name+" in strict mode"),b(ce),o.body=se(),l.Ea=j(o,"CatchClause")),l.fb=V(mn)?se():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),j(l,"TryStatement");case Pt:return v(),an(l),I(),j(l,"VariableDeclaration");case Nt:return v(),l.test=J(),G.push(Mt),l.body=F(),G.pop(),j(l,"WhileStatement");case Sn:return ie&&r(Y,"'with' in strict mode"),v(),l.object=J(),l.body=F(),j(l,"WithStatement");case Ve:return se();case he:return v(),j(l,"EmptyStatement");default:if(u=ae,A=Q(),o===Te&&A.type==="Identifier"&&V(_e)){for(p=0;p<G.length;++p)G[p].name===u&&r(A.start,"Label '"+u+"' is already declared");return G.push({name:u,kind:T.W?"loop":T===Ot?"switch":null}),l.body=F(),G.pop(),l.label=A,j(l,"LabeledStatement")}return l.la=A,I(),j(l,"ExpressionStatement")}}function J(){b(fe);var o=Q();return b(ce),o}function se(o){var l=H(),u=!0,p=!1;for(l.body=[],b(Ve);!V(Ae);){var A=F();if(l.body.push(A),u&&o&&ke(A)){var X=p;L(p=!0)}u=!1}return p&&!X&&L(!1),j(l,"BlockStatement")}function le(o,l){return o.ua=l,b(he),o.test=T===he?null:Q(),b(he),o.update=T===ce?null:Q(),b(ce),o.body=F(),G.pop(),j(o,"ForStatement")}function nt(o,l){return o.left=l,o.right=Q(),b(ce),o.body=F(),G.pop(),j(o,"ForInStatement")}function an(o,l){for(o.fa=[],o.kind="var";;){var u=H();if(u.id=ue(),ie&&at(u.id.name)&&r(u.id.start,"Binding "+u.id.name+" in strict mode"),u.ua=V(Rn)?Q(!0,l):null,o.fa.push(j(u,"VariableDeclarator")),!V(be))break}}function Q(o,l){var u=yt(l);if(!o&&T===be){for(o=ee(u),o.xb=[u];V(be);)o.xb.push(yt(l));return j(o,"SequenceExpression")}return u}function yt(o){var l=vt(xt(),-1,o);if(V(Tn)){var u=ee(l);u.test=l,u.da=Q(!0),b(_e),u.alternate=Q(!0,o),l=j(u,"ConditionalExpression")}return T.Cb?(u=ee(l),u.operator=ae,u.left=l,v(),u.right=yt(o),W(l),j(u,"AssignmentExpression")):l}function vt(o,l,u){var p=T.L;if(p!==null&&(!u||T!==ot)&&p>l){var A=ee(o);return A.left=o,A.operator=ae,o=T,v(),A.right=vt(xt(),p,u),p=j(A,o===Pn||o===Nn?"LogicalExpression":"BinaryExpression"),vt(p,l,u)}return o}function xt(){if(T.prefix){var o=H(),l=T.$b;return o.operator=ae,Ue=o.prefix=!0,v(),o.K=xt(),l?W(o.K):ie&&o.operator==="delete"&&o.K.type==="Identifier"&&r(o.start,"Deleting local variable in strict mode"),j(o,l?"UpdateExpression":"UnaryExpression")}for(l=De(rt());T.cc&&!Ce();)o=ee(l),o.operator=ae,o.prefix=!1,o.K=l,W(l),v(),l=j(o,"UpdateExpression");return l}function De(o,l){if(V(In)){var u=ee(o);return u.object=o,u.Wa=ue(!0),u.bb=!1,De(j(u,"MemberExpression"),l)}return V(Bt)?(u=ee(o),u.object=o,u.Wa=Q(),u.bb=!0,b(Ft),De(j(u,"MemberExpression"),l)):!l&&V(fe)?(u=ee(o),u.callee=o,u.arguments=St(ce,!1),De(j(u,"CallExpression"),l)):o}function rt(){switch(T){case Cn:var o=H();return v(),j(o,"ThisExpression");case Te:return ue();case Le:case it:case ln:return o=H(),o.value=ae,o.raw=S.slice(Y,Ie),v(),j(o,"Literal");case wn:case En:case jn:return o=H(),o.value=T.$a,o.raw=T.l,v(),j(o,"Literal");case fe:o=Ct;var l=Y;v();var u=Q();return u.start=l,u.end=Ie,O.C&&(u.X.start=o,u.X.end=wt),O.Xa&&(u.j=[l,Ie]),b(ce),u;case Bt:return o=H(),v(),o.elements=St(Ft,!0,!0),j(o,"ArrayExpression");case Ve:for(o=H(),l=!0,u=!1,o.h=[],v();!V(Ae);){if(l)l=!1;else if(b(be),O.sb&&V(Ae))break;var p={key:T===Le||T===it?rt():ue(!0)},A=!1;if(V(_e)){p.value=Q(!0);var X=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?N():(A=u=!0,X=p.kind=p.key.name,p.key=T===Le||T===it?rt():ue(!0),T!==fe&&N(),p.value=bt(H(),!1));if(p.key.type==="Identifier"&&(ie||u))for(var te=0;te<o.h.length;++te){var Oe=o.h[te];if(Oe.key.name===p.key.name){var Dt=X===Oe.kind||A&&Oe.kind==="init"||X==="init"&&(Oe.kind==="get"||Oe.kind==="set");Dt&&!ie&&X==="init"&&Oe.kind==="init"&&(Dt=!1),Dt&&r(p.key.start,"Redefinition of property")}}o.h.push(p)}return j(o,"ObjectExpression");case Rt:return o=H(),v(),bt(o,!1);case kn:return o=H(),v(),o.callee=De(rt(),!0),o.arguments=V(fe)?St(ce,!1):kr,j(o,"NewExpression")}N()}function bt(o,l){T===Te?o.id=ue():l?N():o.id=null,o.oa=[];var u=!0;for(b(fe);!V(ce);)u?u=!1:b(be),o.oa.push(ue());u=We;var p=G;if(We=!0,G=[],o.body=se(!0),We=u,G=p,ie||o.body.body.length&&ke(o.body.body[0])){for(u=o.id?-1:0;u<o.oa.length;++u)if(p=0>u?o.id:o.oa[u],(Bn(p.name)||at(p.name))&&r(p.start,"Defining '"+p.name+"' in strict mode"),0<=u)for(var A=0;A<u;++A)p.name===o.oa[A].name&&r(p.start,"Argument name clash in strict mode")}return j(o,l?"FunctionDeclaration":"FunctionExpression")}function St(o,l,u){for(var p=[],A=!0;!V(o);){if(A)A=!1;else if(b(be),l&&O.sb&&V(o))break;p.push(u&&T===be?null:Q(!0))}return p}function ue(o){var l=H();return o&&O.yb==="everywhere"&&(o=!1),T===Te?(!o&&(O.yb&&Nr(ae)||ie&&Bn(ae))&&S.slice(Y,Ie).indexOf("\\")===-1&&r(Y,"The keyword '"+ae+"' is reserved"),l.name=ae):o&&T.l?l.name=T.l:N(),Ue=!1,v(),j(l,"Identifier")}e.version="0.5.0";var O,S="",je,kt;e.parse=function(o,l){S=String(o),je=S.length,O=l||{};for(var u in sn)Object.prototype.hasOwnProperty.call(O,u)||(O[u]=sn[u]);for(kt=O.sourceFile,we=1,d=de=0,Ue=!0,h(),u=O.dc,Et=xe=d,O.C&&(jt=new a),We=ie=!1,G=[],x(),o=u||H(),l=!0,u||(o.body=[]);T!==It;)u=F(),o.body.push(u),l&&ke(u)&&L(!0),l=!1;return j(o,"Program")};var sn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},d=0,Y=0,Ie=0,Ct,wt,T,ae,Ue,we,de,Et=0,xe=0,jt,We,G,ie,kr=[],Le={type:"num"},ln={type:"regexp"},it={type:"string"},Te={type:"name"},It={type:"eof"},Tt={l:"break"},At={l:"case",m:!0},cn={l:"catch"},un={l:"continue"},dn={l:"debugger"},fn={l:"default"},hn={l:"do",W:!0},pn={l:"else",m:!0},mn={l:"finally"},gn={l:"for",W:!0},Rt={l:"function"},yn={l:"if"},vn={l:"return",m:!0},Ot={l:"switch"},xn={l:"throw",m:!0},bn={l:"try"},Pt={l:"var"},Nt={l:"while",W:!0},Sn={l:"with"},kn={l:"new",m:!0},Cn={l:"this"},wn={l:"null",$a:null},En={l:"true",$a:!0},jn={l:"false",$a:!1},ot={l:"in",L:7,m:!0},Cr={break:Tt,case:At,catch:cn,continue:un,debugger:dn,default:fn,do:hn,else:pn,finally:mn,for:gn,function:Rt,if:yn,return:vn,switch:Ot,throw:xn,try:bn,var:Pt,while:Nt,with:Sn,null:wn,true:En,false:jn,new:kn,in:ot,instanceof:{l:"instanceof",L:7,m:!0},this:Cn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Bt={type:"[",m:!0},Ft={type:"]"},Ve={type:"{",m:!0},Ae={type:"}"},fe={type:"(",m:!0},ce={type:")"},be={type:",",m:!0},he={type:";",m:!0},_e={type:":",m:!0},In={type:"."},Tn={type:"?",m:!0},An={L:10,m:!0},Rn={Cb:!0,m:!0},Ee={Cb:!0,m:!0},wr={cc:!0,prefix:!0,$b:!0},On={prefix:!0,m:!0},Pn={L:1,m:!0},Nn={L:2,m:!0},Er={L:3,m:!0},jr={L:4,m:!0},Ir={L:5,m:!0},Tr={L:6,m:!0},Ar={L:7,m:!0},Rr={L:8,m:!0},Or={L:9,prefix:!0,m:!0},Pr={L:10,m:!0},Nr=i("class enum extends super const export import"),Bn=i("implements interface let package private protected public static yield"),at=i("eval arguments"),Br=i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),Fr=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Fn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),Mr=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),st=/[\n\r\u2028\u2029]/,lt=/\r\n|[\n\r\u2028\u2029]/g,Re,Mt={kind:"loop"},Dr={kind:"switch"}},Vt=Vt=typeof globalThis=="undefined"?void 0:globalThis;zr(Vt.j||(Vt.j={}));function m(e,t){typeof e=="string"&&(e=Be(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),i;for(i in e)r[i]=i==="body"?e[i].slice():e[i];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 a,s;for(s in this)typeof this[s]=="function"&&(a=s.match(e))&&(this.rb[a[1]]=this[s].bind(this));this.N=$t(this,this.ra,null),this.Na=this.N.object,this.ra=Be(this.ba.join(`
|
|
4
|
+
`),"polyfills"),this.ba=void 0,ft(this.ra),a=new C(this.ra,this.N),a.done=!1,this.o=[a],this.Eb(),this.value=void 0,this.ra=r,a=new C(this.ra,this.N),a.done=!1,this.o.length=0,this.o[0]=a}var Mn={C:!0,kc:5},Gt={configurable:!0,enumerable:!0,writable:!1},k={configurable:!0,enumerable:!1,writable:!0},re={configurable:!0,enumerable:!1,writable:!1},$e={configurable:!1,enumerable:!1,writable:!1},Dn={configurable:!1,enumerable:!0,writable:!0},er={STEP_ERROR:!0},Me={SCOPE_REFERENCE:!0},Je={VALUE_IN_DESCRIPTOR:!0},Pe={REGEXP_TIMEOUT:!0},Un=[],ge=null,Ye=null,Se=typeof globalThis=="undefined"?void 0:globalThis,Yr=["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 ft(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 i=e[r];i&&typeof i=="object"&&ft(i,t,n)}}m.prototype.REGEXP_MODE=2;m.prototype.REGEXP_THREAD_TIMEOUT=1e3;m.prototype.POLYFILL_TIMEOUT=1e3;D=m.prototype;D.P=!1;D.Ka=!1;D.Kb=0;D.ic=0;function Be(e,t){var n={},r;for(r in Mn)n[r]=Mn[r];return n.sourceFile=t,Se.j.parse(e,n)}D.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=Be(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Ze(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};D.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&&rr(this,n,n.interval);var r=new C(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 i=Ye;Ye=this;try{var a=this.rb[r.type](e,n,r)}catch(s){if(s!==er)throw this.value!==s&&(this.value=void 0),s}finally{Ye=i}if(a&&e.push(a),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};D.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Xr(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,Gt),e.g(t,"this",t,$e),e.g(t,"self",t),e.M=new P(null),e.Z=new P(e.M),qr(e,t),Jr(e,t),t.xa=e.M,e.g(t,"constructor",e.v,k),Zr(e,t),Qr(e,t),ei(e,t),ti(e,t),ni(e,t),ri(e,t),ii(e,t),oi(e,t),ai(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,k),e.g(t,"parseInt",e.i(parseInt,!1),k),e.g(t,"parseFloat",e.i(parseFloat,!1),k),e.g(t,"isNaN",e.i(isNaN,!1),k),e.g(t,"isFinite",e.i(isFinite,!1),k);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i<r.length;i++)n=function(a){return function(s){try{return a(s)}catch(c){E(e,e.Gb,c.message)}}}(r[i][0]),e.g(t,r[i][1],e.i(n,!1),k);n=function(a){return Wn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),k),n=function(a){return Wn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),k),n=function(a){Ln(e,a)},e.g(t,"clearTimeout",e.i(n,!1),k),n=function(a){Ln(e,a)},e.g(t,"clearInterval",e.i(n,!1),k),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)}D.Wb=0;function qr(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(i){var a=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 c=0;c<s.length;c++){var h=s[c];n.test(h)||E(e,e.T,"Invalid function argument: "+h)}s=s.join(", ")}try{var y=Be("(function("+s+") {"+a+"})","function"+e.Wb++)}catch(x){E(e,e.T,"Invalid code: "+x.message)}return y.body.length!==1&&E(e,e.T,"Invalid code in function body"),qt(e,y.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,k),e.g(e.O,"prototype",e.Z,k),e.g(e.Z,"constructor",e.O,k),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,re),e.Z.H="Function",r=function(i,a){var s=e.o[e.o.length-1];s.U=this,s.B=i,s.F=[],a!=null&&(a instanceof P?s.F=tr(e,a):E(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},q(e,e.O,"apply",r),r=function(i){var a=e.o[e.o.length-1];a.U=this,a.B=i,a.F=[];for(var s=1;s<arguments.length;s++)a.F.push(arguments[s]);a.eb=!1},q(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)},q(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),k),r=function(){return this.valueOf()},q(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),k)}function Jr(e,t){function n(i){i!=null||E(e,e.j,"Cannot convert '"+i+"' to object")}var r=function(i){if(i==null)return ve(e)?this:e.s(e.M);if(!(i instanceof P)){var a=e.s(ye(e,i));return a.data=i,a}return i};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,k),e.g(e.M,"constructor",e.v,k),e.g(t,"Object",e.v,k),r=function(i){return n(i),me(e,Object.getOwnPropertyNames(i instanceof P?i.h:i))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),k),r=function(i){return n(i),i instanceof P&&(i=i.h),me(e,Object.keys(i))},e.g(e.v,"keys",e.i(r,!1),k),r=function(i){return i===null?e.s(null):(i instanceof P||E(e,e.j,"Object prototype may only be an Object or null, not "+i),e.s(i))},e.g(e.v,"create",e.i(r,!1),k),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(i,a,s){return a=String(a),i instanceof P||E(e,e.j,"Object.defineProperty called on non-object: "+i),s instanceof P||E(e,e.j,"Property description must be an object"),!i.preventExtensions||a in i.h||E(e,e.j,"Can't define property '"+a+"', object is not extensible"),e.g(i,a,Je,s.h),i},e.g(e.v,"defineProperty",e.i(r,!1),k),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(i,a){if(i instanceof P||E(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+i),a=String(a),a in i.h){var s=Object.getOwnPropertyDescriptor(i.h,a),c=i.V[a];return i=i.Y[a],a=e.s(e.M),c||i?(e.g(a,"get",c),e.g(a,"set",i)):(e.g(a,"value",s.value),e.g(a,"writable",s.writable)),e.g(a,"configurable",s.configurable),e.g(a,"enumerable",s.enumerable),a}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),k),r=function(i){return n(i),ye(e,i)},e.g(e.v,"getPrototypeOf",e.i(r,!1),k),r=function(i){return!!i&&!i.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),k),r=function(i){return i instanceof P&&(i.preventExtensions=!0),i},e.g(e.v,"preventExtensions",e.i(r,!1),k),q(e,e.v,"toString",P.prototype.toString),q(e,e.v,"toLocaleString",P.prototype.toString),q(e,e.v,"valueOf",P.prototype.valueOf),r=function(i){return n(this),this instanceof P?String(i)in this.h:this.hasOwnProperty(i)},q(e,e.v,"hasOwnProperty",r),r=function(i){return n(this),this instanceof P?Object.prototype.propertyIsEnumerable.call(this.h,i):this.propertyIsEnumerable(i)},q(e,e.v,"propertyIsEnumerable",r),r=function(i){for(;;){if(i=ye(e,i),!i)return!1;if(i===this)return!0}},q(e,e.v,"isPrototypeOf",r)}function Zr(e,t){var n=function(r){var i=ve(e)?this:Fe(e),a=arguments[0];if(arguments.length===1&&typeof a=="number")isNaN(zt(a))&&E(e,e.ob,"Invalid array length: "+a),i.h.length=a;else{for(a=0;a<arguments.length;a++)i.h[a]=arguments[a];i.h.length=a}return i};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,k),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),k),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 Qr(e,t){var n=function(r){return r=arguments.length?Se.String(r):"",ve(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,k),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),k),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)q(e,e.J,t[n],String.prototype[t[n]]);n=function(r,i,a){i=e.R(i),a=e.R(a);try{return String(this).localeCompare(r,i,a)}catch(s){E(e,e.D,"localeCompare: "+s.message)}},q(e,e.J,"localeCompare",n),n=function(r,i,a){var s=String(this);if(i=i?Number(i):void 0,Z(e,r,e.I)&&(r=r.data,Ke(e,r,a),e.REGEXP_MODE===2)){if(ge)r=He(e,"string.split(separator, limit)",{string:s,separator:r,limit:i},r,a),r!==Pe&&a(me(e,r));else{var c=e.ha(),h=Ge(e,r,c,a);c.onmessage=function(y){clearTimeout(h),a(me(e,y.data))},c.postMessage(["split",s,r,i])}return}r=s.split(r,i),a(me(e,r))},ze(e,e.J,"split",n),n=function(r,i){var a=String(this);if(r=Z(e,r,e.I)?r.data:new RegExp(r),Ke(e,r,i),e.REGEXP_MODE===2)if(ge)r=He(e,"string.match(regexp)",{string:a,regexp:r},r,i),r!==Pe&&i(r&&me(e,r));else{var s=e.ha(),c=Ge(e,r,s,i);s.onmessage=function(h){clearTimeout(c),i(h.data&&me(e,h.data))},s.postMessage(["match",a,r])}else r=a.match(r),i(r&&me(e,r))},ze(e,e.J,"match",n),n=function(r,i){var a=String(this);if(Z(e,r,e.I)?r=r.data:r=new RegExp(r),Ke(e,r,i),e.REGEXP_MODE===2)if(ge)r=He(e,"string.search(regexp)",{string:a,regexp:r},r,i),r!==Pe&&i(r);else{var s=e.ha(),c=Ge(e,r,s,i);s.onmessage=function(h){clearTimeout(c),i(h.data)},s.postMessage(["search",a,r])}else i(a.search(r))},ze(e,e.J,"search",n),n=function(r,i,a){var s=String(this);if(i=String(i),Z(e,r,e.I)&&(r=r.data,Ke(e,r,a),e.REGEXP_MODE===2)){if(ge)r=He(e,"string.replace(substr, newSubstr)",{string:s,substr:r,newSubstr:i},r,a),r!==Pe&&a(r);else{var c=e.ha(),h=Ge(e,r,c,a);c.onmessage=function(y){clearTimeout(h),a(y.data)},c.postMessage(["replace",s,r,i])}return}a(s.replace(r,i))},ze(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 ei(e,t){e.mb=e.i(function(n){return n=Se.Boolean(n),ve(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,k)}function ti(e,t){var n=function(r){return r=arguments.length?Se.Number(r):0,ve(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,k),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(i){E(e,e.D,i.message)}},q(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(i){E(e,e.D,i.message)}},q(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(i){E(e,e.D,i.message)}},q(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(i){E(e,e.D,i.message)}},q(e,e.aa,"toString",n),n=function(r,i){r=r?e.R(r):void 0,i=i?e.R(i):void 0;try{return Number(this).toLocaleString(r,i)}catch(a){E(e,e.D,"toLocaleString: "+a.message)}},q(e,e.aa,"toLocaleString",n)}function ni(e,t){var n=function(i,a){if(!ve(e))return Se.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(Se.Date,s)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,k),e.g(e.$,"now",e.i(Date.now,!1),k),e.g(e.$,"parse",e.i(Date.parse,!1),k),e.g(e.$,"UTC",e.i(Date.UTC,!1),k),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(i){return function(a){var s=this.data;s instanceof Date||E(e,e.j,i+" not called on a Date");for(var c=[],h=0;h<arguments.length;h++)c[h]=e.R(arguments[h]);return s[i].apply(s,c)}}(t[r]),q(e,e.$,t[r],n)}function ri(e,t){var n=function(r,i){if(ve(e))var a=this;else{if(i===void 0&&Z(e,r,e.I))return r;a=e.s(e.Ma)}r=r===void 0?"":String(r),i=i?String(i):"",/^[gmi]*$/.test(i)||E(e,e.T,"Invalid regexp flag: "+i);try{var s=new Se.RegExp(r,i)}catch(c){E(e,e.T,c.message)}return Yt(e,a,s),a};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,k),e.g(e.I.h.prototype,"global",void 0,re),e.g(e.I.h.prototype,"ignoreCase",void 0,re),e.g(e.I.h.prototype,"multiline",void 0,re),e.g(e.I.h.prototype,"source","(?:)",re),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,i){function a(x){if(x){var g=me(e,x);return e.g(g,"index",x.index),e.g(g,"input",x.input),g}return null}var s=this.data;if(r=String(r),s.lastIndex=Number(e.G(this,"lastIndex")),Ke(e,s,i),e.REGEXP_MODE===2)if(ge)r=He(e,"regexp.exec(string)",{string:r,regexp:s},s,i),r!==Pe&&(e.g(this,"lastIndex",s.lastIndex),i(a(r)));else{var c=e.ha(),h=Ge(e,s,c,i),y=this;c.onmessage=function(x){clearTimeout(h),e.g(y,"lastIndex",x.data[1]),i(a(x.data[0]))},c.postMessage(["exec",s,s.lastIndex,r])}else r=s.exec(r),e.g(this,"lastIndex",s.lastIndex),i(a(r))},ze(e,e.I,"exec",n)}function ii(e,t){function n(r){var i=e.i(function(a){var s=ve(e)?this:e.Aa(i);return _t(e,s,a),s},!0);return e.g(i,"prototype",e.Aa(e.D),k),e.g(i.h.prototype,"name",r,k),e.g(t,r,i,k),i}e.D=e.i(function(r){var i=ve(e)?this:e.Aa(e.D);return _t(e,i,r),i},!0),e.g(t,"Error",e.D,k),e.g(e.D.h.prototype,"message","",k),e.g(e.D.h.prototype,"name","Error",k),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function oi(e,t){var n=e.s(e.M);e.g(t,"Math",n,k);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]],re);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),k)}function ai(e,t){var n=e.s(e.M);e.g(t,"JSON",n,k),t=function(r){try{var i=JSON.parse(String(r))}catch(a){E(e,e.T,a.message)}return e.Ia(i)},e.g(n,"parse",e.i(t,!1)),t=function(r,i,a){i&&i.H==="Function"?E(e,e.j,"Function replacer on JSON.stringify not supported"):i&&i.H==="Array"?(i=tr(e,i),i=i.filter(function(c){return typeof c=="string"||typeof c=="number"})):i=null,typeof a!="string"&&typeof a!="number"&&(a=void 0),r=e.R(r);try{var s=JSON.stringify(r,i,a)}catch(c){E(e,e.j,c.message)}return s},e.g(n,"stringify",e.i(t,!1))}function Z(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=ye(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Yt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,k),e.g(t,"source",n.source,re),e.g(t,"global",n.global,re),e.g(t,"ignoreCase",n.ignoreCase,re),e.g(t,"multiline",n.multiline,re)}function _t(e,t,n){n&&e.g(t,"message",String(n),k),n=[];for(var r=e.o.length-1;0<=r;r--){var i=e.o[r],a=i.node;a.type==="CallExpression"&&(i=i.U)&&n.length&&(n[n.length-1].Ob=e.G(i,"name")),!a.X||n.length&&a.type!=="CallExpression"||n.push({Nb:a.X})}for(r=String(e.G(t,"name")),a=String(e.G(t,"message")),a=r+": "+a+`
|
|
5
5
|
`,r=0;r<n.length;r++){var s=n[r].Nb;i=n[r].Ob,s=s.source+":"+s.start.line+":"+s.start.ab,a=i?a+(" at "+i+" ("+s+`)
|
|
6
6
|
`):a+(" at "+s+`
|
|
7
|
-
`)}e.g(t,"stack",a.trim(),k)}
|
|
8
|
-
`)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function He(e,t,n,r,i){var a={timeout:e.REGEXP_THREAD_TIMEOUT};try{return ge.runInNewContext(t,n,a)}catch{i(null),E(e,e.D,"RegExp Timeout: "+r)}return Pe}function Ke(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(ge)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{ge=require("vm")}catch{}r=!!ge}else r=!1;r||(n(null),E(e,e.D,"Regular expressions not supported: "+t))}function Ge(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{E(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}L.Aa=function(e){return this.s(e&&e.h.prototype)};L.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new P(e),Z(this,e,this.D)&&(e.H="Error"),e};function Fe(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function qt(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,k),e.g(n,"constructor",r,k)):r.Ab=!0,e.g(r,"length",t,re),r.H="Function",r}function Jt(e,t,n,r){var i=qt(e,t.oa.length,!0);return i.Va=n,i.node=t,e.g(i,"name",t.id?String(t.id.name):r||"",re),i}L.i=function(e,t){return t=qt(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,re),t};L.ub=function(e){var t=qt(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,re),t};L.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 Xt(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 i=Array.prototype.slice.call(arguments).map(function(a){return n.R(a)});return i=e.apply(n,i),n.Ia(i)},!!t)}if(Array.isArray(e)){t=Fe(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};L.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(Z(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(Z(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),Z(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),i=0;i<r;i++)ht(this,e,i)&&(n[i]=this.R(this.G(e,i),t))}else for(r in n={},t.Sa.push(n),e.h)i=this.R(e.h[r],t),Object.defineProperty(n,r,{value:i,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function me(e,t){for(var n=Fe(e),r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++)e.g(n,r[i],t[r[i]]);return n}function nr(e,t){var n=[],r;for(r in t.h)n[r]=e.G(t,r);return n.length=Yt(e.G(t,"length"))||0,n}function ye(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}L.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||E(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(Z(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&Z(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=ye(this,e))};function ht(e,t,n){if(!(t instanceof P))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&Z(e,t,e.J))return!0;if(Z(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=ye(e,t));return!1}L.g=function(e,t,n,r){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||E(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)&&E(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var i=!this.o||Zt(this).S;if(e instanceof P){if(Z(this,e,this.J)){var a=Xe(t);if(t==="length"||!isNaN(a)&&a<String(e).length){i&&E(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(a=e.h.length,t==="length"){if(r){if(!("value"in r))return;n=r.value}if(n=Yt(n),isNaN(n)&&E(this,this.ob,"Invalid array length"),n<a)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(a,s+1));if(!e.preventExtensions||t in e.h)if(r){i={},"get"in r&&r.get&&(e.V[t]=r.get,i.get=this.g.ac),"set"in r&&r.set&&(e.Y[t]=r.set,i.set=this.g.bc),"configurable"in r&&(i.configurable=r.configurable),"enumerable"in r&&(i.enumerable=r.enumerable),"writable"in r&&(i.writable=r.writable,delete e.V[t],delete e.Y[t]),"value"in r?(i.value=r.value,delete e.V[t],delete e.Y[t]):n!==Je&&(i.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,i)}catch{E(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=ye(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])i&&E(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{i&&E(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else i&&E(this,this.j,"Can't add property '"+t+"', object is not extensible")}else i&&E(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};L.g.ac=function(){throw Error("Placeholder getter")};L.g.bc=function(){throw Error("Placeholder setter")};function X(e,t,n,r){e.g(t.h.prototype,n,e.i(r,!1),k)}function ze(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),k)}function Zt(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Ht(e,t,n){var r=!1;if(n&&n.S)r=!0;else{var i=t.body&&t.body[0];i&&i.la&&i.la.type==="Literal"&&i.la.value==="use strict"&&(r=!0)}return i=e.s(null),r=new or(n,r,i),n||qr(e,r.object),Ze(e,t,r),r}function Qt(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new or(t,t.S,e)}function en(e,t){for(var n=Zt(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&&ht(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||E(e,e.pb,t+" is not defined")}function rr(e,t,n){for(var r=Zt(e),i=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{i&&E(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!i||ht(e,r.object,t)))return e.g(r.object,t,n);E(e,e.pb,t+" is not defined")}function Ze(e,t,n){if(t.jb)var r=t.jb;else{switch(r=Object.create(null),t.type){case"VariableDeclaration":for(var i=0;i<t.fa.length;i++)r[t.fa[i].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 a=t.constructor,s;for(s in t)if(s!=="loc"){var c=t[s];if(c&&typeof c=="object"){if(Array.isArray(c)){for(i=0;i<c.length;i++)if(c[i]&&c[i].constructor===a){var h=Ze(e,c[i],n);for(s in h)r[s]=h[s]}}else if(c.constructor===a)for(s in h=Ze(e,c,n),h)r[s]=h[s]}}}t.jb=r}for(s in r)r[s]===!0?e.g(n.object,s,void 0,Dn):e.g(n.object,s,Jt(e,r[s],n),Dn);return r}function ve(e){return e.o[e.o.length-1].isConstructor}function tn(e,t){return t[0]===Me?en(e,t[1]):e.G(t[0],t[1])}function nn(e,t,n){return t[0]===Me?rr(e,t[1],n):e.g(t[0],t[1],n)}function E(e,t,n){throw e.N?(n!==void 0&&t instanceof P&&(t=e.Aa(t),$t(e,t,n)),et(e,4,t),tr):n===void 0?t:n}function et(e,t,n,r){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var i=e.o;e:for(;0<i.length;i.pop()){var a=i[i.length-1];switch(a.node.type){case"TryStatement":a.ea={type:t,value:n,label:r};return;case"CallExpression":case"NewExpression":if(t===3){a.value=n;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":a.done=!0;break e}if(t===1){if(r?a.labels&&a.labels.indexOf(r)!==-1:a.W||a.Zb){i.pop();return}}else if(t===2&&(r?a.labels&&a.labels.indexOf(r)!==-1:a.W))return}throw Z(e,n,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},r=String(e.G(n,"name")),i=e.G(n,"message").valueOf(),t=(t[r]||Error)(i),t.stack=String(e.G(n,"stack"))):t=String(n),e.value=t,t}function ne(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return ne(e,t.left)+" "+t.operator+" "+ne(e,t.right);case"CallExpression":return ne(e,t.callee)+"(...)";case"ConditionalExpression":return ne(e,t.test)+" ? "+ne(e,t.da)+" : "+ne(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=ne(e,t.object);return e=ne(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+ne(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+ne(e,t.K);case"UpdateExpression":return n=ne(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function Wn(e,t,n){var r=e.o[e.o.length-1],i=Array.from(n),a=i.shift();n=Math.max(Number(i.shift()||0),0);var s=e.ya();if(a instanceof P&&a.H==="Function"){var c=a;s.type="CallExpression",r=r.scope}else{try{var h=Be(String(a),"taskCode"+e.ic++)}catch(y){E(e,e.T,"Invalid code: "+y.message)}s.type="EvalProgram_",s.body=h.body,r=r.node.arguments[0],ft(s,r?r.start:void 0,r?r.end:void 0),r=e.N,i.length=0}return t=new li(c,i,r,s,t?n:-1),ir(e,t,n),t.Db}function ir(e,t,n){t.time=Date.now()+n,e.ca.push(t),e.ca.sort(function(r,i){return r.time-i.time})}function Vn(e,t){for(var n=0;n<e.ca.length;n++)if(e.ca[n].Db==t){e.ca.splice(n,1);break}}function tt(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 C(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function rn(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 i=e.ya();return i.type="CallExpression",e=new C(i,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[r],e}function Wt(e,t){return t==null?e.Na:t instanceof P?t:(e=e.s(ye(e,t)),e.data=t,e)}L.Xb=function(){return this.N};L.Yb=function(){return this.o};L.ec=function(e){this.o=e};function C(e,t){this.node=e,this.scope=t}function or(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}L=P.prototype;L.xa=null;L.H="Object";L.data=null;L.toString=function(){if(!Ye)return"[object Interpreter.Object]";if(!(this instanceof P))return String(this);if(this.H==="Array"){var e=Un;e.push(this);try{var t=[],n=this.h.length,r=!1;1024<n&&(n=1e3,r=!0);for(var i=0;i<n;i++){var a=this.h[i];t[i]=a instanceof P&&e.indexOf(a)!==-1?"...":a}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Un,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+"]"};L.valueOf=function(){return!Ye||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function li(e,t,n,r,i){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=i,this.Db=++ci,this.time=0}var ci=0;m.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=Fe(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new C(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};m.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new C(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=tn(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,tt(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new C(n.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var r=t.ma,i=t.value;switch(n.operator){case"=":r=i;break;case"+=":r+=i;break;case"-=":r-=i;break;case"*=":r*=i;break;case"/=":r/=i;break;case"%=":r%=i;break;case"<<=":r<<=i;break;case">>=":r>>=i;break;case">>>=":r>>>=i;break;case"&=":r&=i;break;case"^=":r^=i;break;case"|=":r|=i;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}if(n=nn(this,t.Fa,r))return t.ta=!0,t.ib=r,rn(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};m.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new C(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new C(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||E(this,this.j,"'in' expects an object, not '"+t+"'"),n=ht(this,t,r);break;case"instanceof":Z(this,t,this.O)||E(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof P?Z(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};m.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new C(n,t.scope);e.pop()};m.prototype.stepBreakStatement=function(e,t,n){et(this,1,void 0,n.label&&n.label.name)};m.prototype.Hb=0;m.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new C(n.callee,t.scope);return r.sa=!0,r}if(t.ia===1){t.ia=2;var i=t.value;if(Array.isArray(i)){if(t.U=tn(this,i),i[0]===Me?t.Pb=i[1]==="eval":t.B=i[0],i=t.U,this.P)return t.ia=1,tt(this,i,t.value)}else t.U=i;t.F=[],t.A=0}if(i=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),n.arguments[t.A])return new C(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(i instanceof P&&!i.Ab||E(this,this.j,ne(this,n.callee)+" is not a constructor"),i===this.qa)t.B=Fe(this);else{var a=i.h.prototype;(typeof a!="object"||a===null)&&(a=this.M),t.B=this.s(a)}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,i instanceof P||E(this,this.j,ne(this,n.callee)+" is not a function"),e=i.node){for(n=Ht(this,e.body,i.Va),r=Fe(this),i=0;i<t.F.length;i++)this.g(r,i,t.F[i]);for(this.g(n.object,"arguments",r),i=0;i<e.oa.length;i++)this.g(n.object,e.oa[i].name,t.F.length>i?t.F[i]:void 0);return n.S||(t.B=Wt(this,t.B)),this.g(n.object,"this",t.B,zt),t.value=void 0,new C(e.body,n)}if(i.eval)if(i=t.F[0],typeof i!="string")t.value=i;else{try{r=Be(String(i),"eval"+this.Hb++)}catch(c){E(this,this.T,"Invalid code: "+c.message)}return i=this.ya(),i.type="EvalProgram_",i.body=r.body,ft(i,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=Ht(this,r,n):Ze(this,r,n),this.value=void 0,new C(i,n)}else if(i.Ta)t.scope.S||(t.B=Wt(this,t.B)),t.value=i.Ta.apply(t.B,t.F);else if(i.Za){var s=this;r=i.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(c){t.value=c,s.za=!1}),this.za=!0,t.scope.S||(t.B=Wt(this,t.B)),i.Za.apply(t.B,r)}else E(this,this.j,ne(this,n.callee)+" is not callable")}};m.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new C(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new C(n.da,t.scope);if(!r&&n.alternate)return new C(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};m.prototype.stepContinueStatement=function(e,t,n){et(this,2,void 0,n.label&&n.label.name)};m.prototype.stepDebuggerStatement=function(e){e.pop()};m.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 C(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new C(n.body,t.scope)};m.prototype.stepEmptyStatement=function(e){e.pop()};m.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new C(n,t.scope);e.pop(),e[e.length-1].value=this.value};m.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new C(n.la,t.scope);e.pop(),this.value=t.value};m.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&E(this,this.T,"for-in loop variable declaration may not have an initializer"),new C(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new C(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=ye(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=[Me,e.fa[0].id.name];else return t.pa=null,t=new C(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=nn(this,t.pa,e)))return rn(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new C(n.body,t.scope)};m.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new C(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new C(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new C(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new C(n.update,t.scope)}};m.prototype.stepFunctionDeclaration=function(e){e.pop()};m.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=Qt(this,e)),t.value=Jt(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,zt)};m.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[Me,n.name];else{if(t=en(this,n.name),this.P)return tt(this,t,this.Na);e[e.length-1].value=t}};m.prototype.stepIfStatement=m.prototype.stepConditionalExpression;m.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new C(n.body,t.scope),t.labels=e,t};m.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),Xt(this,n,t),t=n),e[e.length-1].value=t};m.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 C(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 C(n.right,t.scope)};m.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new C(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new C(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 tt(this,n,t.u);e[e.length-1].value=n}};m.prototype.stepNewExpression=m.prototype.stepCallExpression;m.prototype.stepObjectExpression=function(e,t,n){var r=t.A||0,i=n.h[r];if(t.u){var a=t.Pa;t.Ja[a]||(t.Ja[a]={}),t.Ja[a][i.kind]=t.value,t.A=++r,i=n.h[r]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(i){var s=i.key;if(s.type==="Identifier")a=s.name;else if(s.type==="Literal")a=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=a,new C(i.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};m.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new C(e,t.scope);t.done=!0};m.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new C(n.K,t.scope);et(this,3,t.value)};m.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new C(n,t.scope);e.pop(),e[e.length-1].value=t.value};m.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new C(n.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var r=t.gb||0,i=n.tb[r];if(t.Ha||!i||i.test)if(i||t.Ha||t.cb===-1)if(i){if(!t.Ha&&!t.Fb&&i.test)return t.Fb=!0,new C(i.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var a=t.A||0;if(i.da[a])return t.Zb=!0,t.A=a+1,new C(i.da[a],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}};m.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=en(this,"this")};m.prototype.stepThrowStatement=function(e,t,n){if(t.ka)E(this,t.value);else return t.ka=!0,new C(n.K,t.scope)};m.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new C(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=Qt(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new C(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new C(n.fb,t.scope);e.pop(),t.ea&&et(this,t.ea.type,t.ea.value,t.ea.label)};m.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new C(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 i=r[0];i===Me&&(i=t.scope),r=String(r[1]);try{delete i.h[r]}catch{t.scope.S?E(this,this.j,"Cannot delete property '"+r+"' of '"+i+"'"):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};m.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new C(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=tn(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,tt(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 i=r+1;else if(n.operator==="--")i=r-1;else throw SyntaxError("Unknown update expression: "+n.operator);if(n=n.prefix?i:r,r=nn(this,t.Ga,i))return t.ta=!0,t.ib=n,rn(this,r,t.Ga,i);e.pop(),e[e.length-1].value=n}};m.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,i=n[r];for(t.Bb&&i&&(rr(this,i.id.name,t.value),t.Bb=!1,i=n[++r]);i;){if(i.ua)return t.A=r,t.Bb=!0,t.Pa=i.id.name,new C(i.ua,t.scope);i=n[++r]}e.pop()};m.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=Qt(this,t.scope,t.value),new C(n.body,e)):(t.Ca=!0,new C(n.object,t.scope))};m.prototype.stepWhileStatement=m.prototype.stepDoWhileStatement;Se.Interpreter=m;m.prototype.step=m.prototype.lb;m.prototype.run=m.prototype.Eb;m.prototype.appendCode=m.prototype.Jb;m.prototype.createObject=m.prototype.Aa;m.prototype.createObjectProto=m.prototype.s;m.prototype.createAsyncFunction=m.prototype.ub;m.prototype.createNativeFunction=m.prototype.i;m.prototype.getProperty=m.prototype.G;m.prototype.setProperty=m.prototype.g;m.prototype.nativeToPseudo=m.prototype.Ia;m.prototype.pseudoToNative=m.prototype.R;m.prototype.getGlobalScope=m.prototype.Xb;m.prototype.getStateStack=m.prototype.Yb;m.prototype.setStateStack=m.prototype.ec;m.VALUE_IN_DESCRIPTOR=Je;const ui=e=>e.split(`
|
|
7
|
+
`)}e.g(t,"stack",a.trim(),k)}D.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([Yr.join(`
|
|
8
|
+
`)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function He(e,t,n,r,i){var a={timeout:e.REGEXP_THREAD_TIMEOUT};try{return ge.runInNewContext(t,n,a)}catch{i(null),E(e,e.D,"RegExp Timeout: "+r)}return Pe}function Ke(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(ge)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{ge=require("vm")}catch{}r=!!ge}else r=!1;r||(n(null),E(e,e.D,"Regular expressions not supported: "+t))}function Ge(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{E(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}D.Aa=function(e){return this.s(e&&e.h.prototype)};D.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new P(e),Z(this,e,this.D)&&(e.H="Error"),e};function Fe(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function Xt(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,k),e.g(n,"constructor",r,k)):r.Ab=!0,e.g(r,"length",t,re),r.H="Function",r}function qt(e,t,n,r){var i=Xt(e,t.oa.length,!0);return i.Va=n,i.node=t,e.g(i,"name",t.id?String(t.id.name):r||"",re),i}D.i=function(e,t){return t=Xt(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,re),t};D.ub=function(e){var t=Xt(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,re),t};D.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 Yt(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 i=Array.prototype.slice.call(arguments).map(function(a){return n.R(a)});return i=e.apply(n,i),n.Ia(i)},!!t)}if(Array.isArray(e)){t=Fe(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};D.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(Z(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(Z(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),Z(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),i=0;i<r;i++)ht(this,e,i)&&(n[i]=this.R(this.G(e,i),t))}else for(r in n={},t.Sa.push(n),e.h)i=this.R(e.h[r],t),Object.defineProperty(n,r,{value:i,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function me(e,t){for(var n=Fe(e),r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++)e.g(n,r[i],t[r[i]]);return n}function tr(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 ye(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}D.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||E(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(Z(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&Z(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=ye(this,e))};function ht(e,t,n){if(!(t instanceof P))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&Z(e,t,e.J))return!0;if(Z(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=ye(e,t));return!1}D.g=function(e,t,n,r){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||E(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)&&E(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var i=!this.o||Jt(this).S;if(e instanceof P){if(Z(this,e,this.J)){var a=Xe(t);if(t==="length"||!isNaN(a)&&a<String(e).length){i&&E(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(a=e.h.length,t==="length"){if(r){if(!("value"in r))return;n=r.value}if(n=zt(n),isNaN(n)&&E(this,this.ob,"Invalid array length"),n<a)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(a,s+1));if(!e.preventExtensions||t in e.h)if(r){i={},"get"in r&&r.get&&(e.V[t]=r.get,i.get=this.g.ac),"set"in r&&r.set&&(e.Y[t]=r.set,i.set=this.g.bc),"configurable"in r&&(i.configurable=r.configurable),"enumerable"in r&&(i.enumerable=r.enumerable),"writable"in r&&(i.writable=r.writable,delete e.V[t],delete e.Y[t]),"value"in r?(i.value=r.value,delete e.V[t],delete e.Y[t]):n!==Je&&(i.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,i)}catch{E(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=ye(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])i&&E(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{i&&E(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else i&&E(this,this.j,"Can't add property '"+t+"', object is not extensible")}else i&&E(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};D.g.ac=function(){throw Error("Placeholder getter")};D.g.bc=function(){throw Error("Placeholder setter")};function q(e,t,n,r){e.g(t.h.prototype,n,e.i(r,!1),k)}function ze(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),k)}function Jt(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function $t(e,t,n){var r=!1;if(n&&n.S)r=!0;else{var i=t.body&&t.body[0];i&&i.la&&i.la.type==="Literal"&&i.la.value==="use strict"&&(r=!0)}return i=e.s(null),r=new ir(n,r,i),n||Xr(e,r.object),Ze(e,t,r),r}function Zt(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new ir(t,t.S,e)}function Qt(e,t){for(var n=Jt(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&&ht(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||E(e,e.pb,t+" is not defined")}function nr(e,t,n){for(var r=Jt(e),i=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{i&&E(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!i||ht(e,r.object,t)))return e.g(r.object,t,n);E(e,e.pb,t+" is not defined")}function Ze(e,t,n){if(t.jb)var r=t.jb;else{switch(r=Object.create(null),t.type){case"VariableDeclaration":for(var i=0;i<t.fa.length;i++)r[t.fa[i].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 a=t.constructor,s;for(s in t)if(s!=="loc"){var c=t[s];if(c&&typeof c=="object"){if(Array.isArray(c)){for(i=0;i<c.length;i++)if(c[i]&&c[i].constructor===a){var h=Ze(e,c[i],n);for(s in h)r[s]=h[s]}}else if(c.constructor===a)for(s in h=Ze(e,c,n),h)r[s]=h[s]}}}t.jb=r}for(s in r)r[s]===!0?e.g(n.object,s,void 0,Dn):e.g(n.object,s,qt(e,r[s],n),Dn);return r}function ve(e){return e.o[e.o.length-1].isConstructor}function en(e,t){return t[0]===Me?Qt(e,t[1]):e.G(t[0],t[1])}function tn(e,t,n){return t[0]===Me?nr(e,t[1],n):e.g(t[0],t[1],n)}function E(e,t,n){throw e.N?(n!==void 0&&t instanceof P&&(t=e.Aa(t),_t(e,t,n)),et(e,4,t),er):n===void 0?t:n}function et(e,t,n,r){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var i=e.o;e:for(;0<i.length;i.pop()){var a=i[i.length-1];switch(a.node.type){case"TryStatement":a.ea={type:t,value:n,label:r};return;case"CallExpression":case"NewExpression":if(t===3){a.value=n;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":a.done=!0;break e}if(t===1){if(r?a.labels&&a.labels.indexOf(r)!==-1:a.W||a.Zb){i.pop();return}}else if(t===2&&(r?a.labels&&a.labels.indexOf(r)!==-1:a.W))return}throw Z(e,n,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},r=String(e.G(n,"name")),i=e.G(n,"message").valueOf(),t=(t[r]||Error)(i),t.stack=String(e.G(n,"stack"))):t=String(n),e.value=t,t}function ne(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return ne(e,t.left)+" "+t.operator+" "+ne(e,t.right);case"CallExpression":return ne(e,t.callee)+"(...)";case"ConditionalExpression":return ne(e,t.test)+" ? "+ne(e,t.da)+" : "+ne(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=ne(e,t.object);return e=ne(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+ne(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+ne(e,t.K);case"UpdateExpression":return n=ne(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function Wn(e,t,n){var r=e.o[e.o.length-1],i=Array.from(n),a=i.shift();n=Math.max(Number(i.shift()||0),0);var s=e.ya();if(a instanceof P&&a.H==="Function"){var c=a;s.type="CallExpression",r=r.scope}else{try{var h=Be(String(a),"taskCode"+e.ic++)}catch(y){E(e,e.T,"Invalid code: "+y.message)}s.type="EvalProgram_",s.body=h.body,r=r.node.arguments[0],ft(s,r?r.start:void 0,r?r.end:void 0),r=e.N,i.length=0}return t=new si(c,i,r,s,t?n:-1),rr(e,t,n),t.Db}function rr(e,t,n){t.time=Date.now()+n,e.ca.push(t),e.ca.sort(function(r,i){return r.time-i.time})}function Ln(e,t){for(var n=0;n<e.ca.length;n++)if(e.ca[n].Db==t){e.ca.splice(n,1);break}}function tt(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 C(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function nn(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 i=e.ya();return i.type="CallExpression",e=new C(i,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[r],e}function Wt(e,t){return t==null?e.Na:t instanceof P?t:(e=e.s(ye(e,t)),e.data=t,e)}D.Xb=function(){return this.N};D.Yb=function(){return this.o};D.ec=function(e){this.o=e};function C(e,t){this.node=e,this.scope=t}function ir(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}D=P.prototype;D.xa=null;D.H="Object";D.data=null;D.toString=function(){if(!Ye)return"[object Interpreter.Object]";if(!(this instanceof P))return String(this);if(this.H==="Array"){var e=Un;e.push(this);try{var t=[],n=this.h.length,r=!1;1024<n&&(n=1e3,r=!0);for(var i=0;i<n;i++){var a=this.h[i];t[i]=a instanceof P&&e.indexOf(a)!==-1?"...":a}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Un,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+"]"};D.valueOf=function(){return!Ye||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function si(e,t,n,r,i){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=i,this.Db=++li,this.time=0}var li=0;m.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=Fe(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new C(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};m.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new C(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=en(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,tt(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new C(n.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var r=t.ma,i=t.value;switch(n.operator){case"=":r=i;break;case"+=":r+=i;break;case"-=":r-=i;break;case"*=":r*=i;break;case"/=":r/=i;break;case"%=":r%=i;break;case"<<=":r<<=i;break;case">>=":r>>=i;break;case">>>=":r>>>=i;break;case"&=":r&=i;break;case"^=":r^=i;break;case"|=":r|=i;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}if(n=tn(this,t.Fa,r))return t.ta=!0,t.ib=r,nn(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};m.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new C(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new C(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||E(this,this.j,"'in' expects an object, not '"+t+"'"),n=ht(this,t,r);break;case"instanceof":Z(this,t,this.O)||E(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof P?Z(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};m.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new C(n,t.scope);e.pop()};m.prototype.stepBreakStatement=function(e,t,n){et(this,1,void 0,n.label&&n.label.name)};m.prototype.Hb=0;m.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new C(n.callee,t.scope);return r.sa=!0,r}if(t.ia===1){t.ia=2;var i=t.value;if(Array.isArray(i)){if(t.U=en(this,i),i[0]===Me?t.Pb=i[1]==="eval":t.B=i[0],i=t.U,this.P)return t.ia=1,tt(this,i,t.value)}else t.U=i;t.F=[],t.A=0}if(i=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),n.arguments[t.A])return new C(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(i instanceof P&&!i.Ab||E(this,this.j,ne(this,n.callee)+" is not a constructor"),i===this.qa)t.B=Fe(this);else{var a=i.h.prototype;(typeof a!="object"||a===null)&&(a=this.M),t.B=this.s(a)}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,i instanceof P||E(this,this.j,ne(this,n.callee)+" is not a function"),e=i.node){for(n=$t(this,e.body,i.Va),r=Fe(this),i=0;i<t.F.length;i++)this.g(r,i,t.F[i]);for(this.g(n.object,"arguments",r),i=0;i<e.oa.length;i++)this.g(n.object,e.oa[i].name,t.F.length>i?t.F[i]:void 0);return n.S||(t.B=Wt(this,t.B)),this.g(n.object,"this",t.B,Gt),t.value=void 0,new C(e.body,n)}if(i.eval)if(i=t.F[0],typeof i!="string")t.value=i;else{try{r=Be(String(i),"eval"+this.Hb++)}catch(c){E(this,this.T,"Invalid code: "+c.message)}return i=this.ya(),i.type="EvalProgram_",i.body=r.body,ft(i,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=$t(this,r,n):Ze(this,r,n),this.value=void 0,new C(i,n)}else if(i.Ta)t.scope.S||(t.B=Wt(this,t.B)),t.value=i.Ta.apply(t.B,t.F);else if(i.Za){var s=this;r=i.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(c){t.value=c,s.za=!1}),this.za=!0,t.scope.S||(t.B=Wt(this,t.B)),i.Za.apply(t.B,r)}else E(this,this.j,ne(this,n.callee)+" is not callable")}};m.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new C(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new C(n.da,t.scope);if(!r&&n.alternate)return new C(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};m.prototype.stepContinueStatement=function(e,t,n){et(this,2,void 0,n.label&&n.label.name)};m.prototype.stepDebuggerStatement=function(e){e.pop()};m.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 C(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new C(n.body,t.scope)};m.prototype.stepEmptyStatement=function(e){e.pop()};m.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new C(n,t.scope);e.pop(),e[e.length-1].value=this.value};m.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new C(n.la,t.scope);e.pop(),this.value=t.value};m.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&E(this,this.T,"for-in loop variable declaration may not have an initializer"),new C(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new C(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=ye(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=[Me,e.fa[0].id.name];else return t.pa=null,t=new C(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=tn(this,t.pa,e)))return nn(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new C(n.body,t.scope)};m.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new C(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new C(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new C(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new C(n.update,t.scope)}};m.prototype.stepFunctionDeclaration=function(e){e.pop()};m.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=Zt(this,e)),t.value=qt(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,Gt)};m.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[Me,n.name];else{if(t=Qt(this,n.name),this.P)return tt(this,t,this.Na);e[e.length-1].value=t}};m.prototype.stepIfStatement=m.prototype.stepConditionalExpression;m.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new C(n.body,t.scope),t.labels=e,t};m.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),Yt(this,n,t),t=n),e[e.length-1].value=t};m.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 C(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 C(n.right,t.scope)};m.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new C(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new C(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 tt(this,n,t.u);e[e.length-1].value=n}};m.prototype.stepNewExpression=m.prototype.stepCallExpression;m.prototype.stepObjectExpression=function(e,t,n){var r=t.A||0,i=n.h[r];if(t.u){var a=t.Pa;t.Ja[a]||(t.Ja[a]={}),t.Ja[a][i.kind]=t.value,t.A=++r,i=n.h[r]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(i){var s=i.key;if(s.type==="Identifier")a=s.name;else if(s.type==="Literal")a=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=a,new C(i.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};m.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new C(e,t.scope);t.done=!0};m.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new C(n.K,t.scope);et(this,3,t.value)};m.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new C(n,t.scope);e.pop(),e[e.length-1].value=t.value};m.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new C(n.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var r=t.gb||0,i=n.tb[r];if(t.Ha||!i||i.test)if(i||t.Ha||t.cb===-1)if(i){if(!t.Ha&&!t.Fb&&i.test)return t.Fb=!0,new C(i.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var a=t.A||0;if(i.da[a])return t.Zb=!0,t.A=a+1,new C(i.da[a],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}};m.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=Qt(this,"this")};m.prototype.stepThrowStatement=function(e,t,n){if(t.ka)E(this,t.value);else return t.ka=!0,new C(n.K,t.scope)};m.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new C(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=Zt(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new C(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new C(n.fb,t.scope);e.pop(),t.ea&&et(this,t.ea.type,t.ea.value,t.ea.label)};m.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new C(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 i=r[0];i===Me&&(i=t.scope),r=String(r[1]);try{delete i.h[r]}catch{t.scope.S?E(this,this.j,"Cannot delete property '"+r+"' of '"+i+"'"):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};m.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new C(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=en(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,tt(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 i=r+1;else if(n.operator==="--")i=r-1;else throw SyntaxError("Unknown update expression: "+n.operator);if(n=n.prefix?i:r,r=tn(this,t.Ga,i))return t.ta=!0,t.ib=n,nn(this,r,t.Ga,i);e.pop(),e[e.length-1].value=n}};m.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,i=n[r];for(t.Bb&&i&&(nr(this,i.id.name,t.value),t.Bb=!1,i=n[++r]);i;){if(i.ua)return t.A=r,t.Bb=!0,t.Pa=i.id.name,new C(i.ua,t.scope);i=n[++r]}e.pop()};m.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=Zt(this,t.scope,t.value),new C(n.body,e)):(t.Ca=!0,new C(n.object,t.scope))};m.prototype.stepWhileStatement=m.prototype.stepDoWhileStatement;Se.Interpreter=m;m.prototype.step=m.prototype.lb;m.prototype.run=m.prototype.Eb;m.prototype.appendCode=m.prototype.Jb;m.prototype.createObject=m.prototype.Aa;m.prototype.createObjectProto=m.prototype.s;m.prototype.createAsyncFunction=m.prototype.ub;m.prototype.createNativeFunction=m.prototype.i;m.prototype.getProperty=m.prototype.G;m.prototype.setProperty=m.prototype.g;m.prototype.nativeToPseudo=m.prototype.Ia;m.prototype.pseudoToNative=m.prototype.R;m.prototype.getGlobalScope=m.prototype.Xb;m.prototype.getStateStack=m.prototype.Yb;m.prototype.setStateStack=m.prototype.ec;m.VALUE_IN_DESCRIPTOR=Je;const ci=e=>e.split(`
|
|
9
9
|
`).map(t=>{const n=t.trim();if(t.includes("__awaiter"))return;if(!n.startsWith("state."))return t;const[i,a]=n.split("="),c=`setRootState('${i.replace("state.","").trim()}', ${a.trim()})`;return`
|
|
10
10
|
${t}
|
|
11
11
|
${c}
|
|
12
12
|
`}).filter(Boolean).join(`
|
|
13
|
-
`),
|
|
14
|
-
`),
|
|
13
|
+
`),Vn=e=>e+"JSON",ui=({builder:e,context:t,event:n,rootState:r,localState:i,rootSetState:a,code:s})=>{const c={...r,...i},h=Jn({builder:e,context:t,event:n,state:c}),y=h.map(([K])=>{const B=Vn(K);return`var ${K} = ${B} === undefined ? undefined : JSON.parse(${B});`}).join(`
|
|
14
|
+
`),x=ci(s);if(x===""){w.logger.warn("Skipping evaluation of empty code block.");return}const g=`
|
|
15
15
|
function theFunction() {
|
|
16
16
|
${y}
|
|
17
17
|
|
|
18
|
-
${
|
|
18
|
+
${x}
|
|
19
19
|
}
|
|
20
20
|
theFunction();
|
|
21
|
-
`,R=(K,B)=>{const v=
|
|
21
|
+
`,R=(K,B)=>{const v=Qn(c,K,B);a==null||a(v)},U=function(K,B){h.forEach(([v,L])=>{const z=JSON.stringify(L);K.setProperty(B,Vn(v),z)}),K.setProperty(B,"setRootState",K.createNativeFunction(R))},$=new m(g,U);return $.run(),$.pseudoToNative($.value)};function di(){var e;return typeof process!="undefined"&&w.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const fi=()=>{var r;if(!di())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?(w.logger.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},hi=e=>w.isBrowser()||fi()?Gr(e):ui(e),pe=class pe{static getCacheKey(t){return JSON.stringify({...t,event:t.event?Math.random():void 0})}static getCachedValue(t){return pe.cache.get(t)}static setCachedValue(t,n){pe.cache.size>20&&pe.cache.delete(pe.cache.keys().next().value),pe.cache.set(t,{value:n})}};Ut(pe,"cacheLimit",20),Ut(pe,"cache",new Map);let Ne=pe;function Qe({code:e,context:t,localState:n,rootState:r,rootSetState:i,event:a,isExpression:s=!0,enableCache:c}){if(e==="")return;const h={code:Kr(e,{isExpression:s}),builder:Hr(),context:t,event:a,rootSetState:i,rootState:r,localState:n};if(c){const y=Ne.getCacheKey(h),x=Ne.getCachedValue(y);if(x)return x.value}try{const y=hi(h);if(c){const x=Ne.getCacheKey(h);Ne.setCachedValue(x,y)}return y}catch(y){w.logger.error("Failed code evaluation: "+y.message,{code:e});return}}const pi=({block:e,context:t,localState:n,rootState:r,rootSetState:i})=>{if(!e.bindings)return e;const a=w.fastClone(e),s={...a,properties:{...a.properties},actions:{...a.actions}};for(const c in e.bindings){const h=e.bindings[c],y=Qe({code:h,localState:n,rootState:r,rootSetState:i,context:t,enableCache:!0});Qn(s,c,y)}return s};function dt({block:e,context:t,shouldEvaluateBindings:n,localState:r,rootState:i,rootSetState:a}){const s=e;return n?pi({block:s,localState:r,rootState:i,rootSetState:a,context:t}):s}const rn=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"",or=e=>Object.entries(e).map(([n,r])=>{if(typeof r=="string")return`${rn(n)}: ${r};`}).filter(w.checkIsDefined),mi=e=>or(e).join(`
|
|
22
22
|
`),ct=({mediaQuery:e,className:t,styles:n})=>{const r=`.${t} {
|
|
23
|
-
${
|
|
23
|
+
${mi(n)}
|
|
24
24
|
}`;return e?`${e} {
|
|
25
25
|
${r}
|
|
26
|
-
}`:r};function
|
|
26
|
+
}`:r};function gi({style:e}){return e}const yi=({block:e,context:t})=>ar(gi({style:e.style||{},context:t,block:e}));function ar(e){switch(w.TARGET){case"svelte":case"vue":case"solid":case"angular":return or(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const vi=({block:e,context:t,registeredComponents:n})=>{var a;const r=(a=dt({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:a.name;if(!r)return null;const i=n[r];if(i)return i;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?`)},xi=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const i=Qe({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,enableCache:!0});if(!Array.isArray(i))return;const a=n.collection.split(".").pop(),s=n.itemName||(a?a+"Item":"item");return i.map((h,y)=>({context:{...t,localState:{...t.localState,$index:y,$item:h,[s]:h,[`$${s}Index`]:y}},block:r}))},
|
|
28
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},xi=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const i=Qe({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,enableCache:!0});if(!Array.isArray(i))return;const a=n.collection.split(".").pop(),s=n.itemName||(a?a+"Item":"item");return i.map((h,y)=>({context:{...t,localState:{...t.localState,$index:y,$item:h,[s]:h,[`$${s}Index`]:y}},block:r}))},bi=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderLinkComponent?{builderLinkComponent:t}:{}},Si=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderComponents?{builderComponents:t}:{}},ki=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderBlock?{builderBlock:t}:{}},Ci=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderContext?{builderContext:t}:{}},sr={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},_n=(e,t=sr)=>`@media (max-width: ${t[e].max}px)`,lr=({small:e,medium:t})=>{const n=w.fastClone(sr);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const i=n.small.max+1;n.medium={max:t,min:i,default:i+1};const a=n.medium.max+1;return n.large={max:2e3,min:a,default:a+1},n};function pt(e){return f.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id})}function wi(e){const t=function(){const i=dt({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return w.checkIsDefined(i.hide)?!i.hide:w.checkIsDefined(i.show)?i.show:!0},n=function(){var B,v,L;const i=dt({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),a=i.responsiveStyles,s=e.context.content,c=lr(((B=s==null?void 0:s.meta)==null?void 0:B.breakpoints)||{}),h=a==null?void 0:a.large,y=a==null?void 0:a.medium,x=a==null?void 0:a.small,g=i.id;if(!g)return"";const R=h?ct({className:g,styles:h}):"",U=y?ct({className:g,styles:y,mediaQuery:_n("medium",c)}):"",$=x?ct({className:g,styles:x,mediaQuery:_n("small",c)}):"",M=i.animations&&i.animations.find(z=>z.trigger==="hover");let K="";if(M){const z=((L=(v=M.steps)==null?void 0:v[1])==null?void 0:L.styles)||{};K=ct({className:`${g}:hover`,styles:{...z,transition:`all ${M.duration}s ${rn(M.easing)}`,transitionDelay:M.delay?`${M.delay}s`:"0s"}})||""}return[R,U,$,K].join(" ")};return f.jsx(f.Fragment,{children:n()&&t()?f.jsx(f.Fragment,{children:f.jsx(pt,{id:"builderio-block",styles:n()})}):null})}function Ei(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ji=e=>`on${Ei(e)}`,Ii=(e,t)=>n=>Qe({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1,enableCache:!0});function cr(e){var r;const t={},n=(r=e.block.actions)!=null?r:{};for(const i in n){if(!n.hasOwnProperty(i))continue;const a=n[i];let s=ji(i);if(e.stripPrefix)switch(w.TARGET){case"vue":s=s.replace("v-on:","");break;case"svelte":s=s.replace("on:","");break}t[s]=Ii(a,e)}return t}function Ti({properties:e}){return e}const Ai=e=>({href:e.href});function on({block:e,context:t}){var r;const n={...Ai(e),...e.properties,"builder-id":e.id,style:yi({block:e,context:t}),[qe()]:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return Ti({properties:n,context:t,block:e})}function Ri(e){return f.jsx(Kt,{TagName:e.Wrapper,attributes:on({block:e.block,context:e.context}),actionAttributes:cr({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function Oi(e){function t(){return e.includeBlockProps?{...on({block:e.block,context:e.context}),...cr({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return f.jsx(e.Wrapper,{...e.wrapperProps,attributes:t(),children:e.children})}const Pi=({componentOptions:e,builderBlock:t,context:n,componentRef:r,includeBlockProps:i,isInteractive:a,contextValue:s})=>{const c={...e,...i?{attributes:on({block:t,context:s})}:{}};return a?{Wrapper:r,block:t,context:n,wrapperProps:e,includeBlockProps:i}:c};function $n(e){var n;const t=e.isInteractive?Oi:e.componentRef;return f.jsx(f.Fragment,{children:e.componentRef?f.jsx(f.Fragment,{children:f.jsx(t,{...Pi({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=>f.jsx(mt,{block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},r.id))})}):null})}function Ni(e){const t=e.repeatContext;return f.jsx(mt,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})}function mt(e){var h,y,x;const t=function(){return vi({block:e.block,context:e.context,registeredComponents:e.registeredComponents})},n=function(){return xi({block:e.block,context:e.context})},r=function(){var R;return(R=e.block.repeat)!=null&&R.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})},i=function(){var U;return e.block.tagName==="a"||((U=r().properties)==null?void 0:U.href)||r().href?e.linkComponent||"a":e.block.tagName||"div"},a=function(){var $,M;if(($=e.block.repeat)!=null&&$.collection)return!!((M=n())!=null&&M.length);const R="hide"in r()?r().hide:!1;return("show"in r()?r().show:!0)&&!R},s=function(){var U,$;return!((U=t())!=null&&U.component)&&!n()?($=r().children)!=null?$:[]:[]},c=function(){var R,U,$,M;return{blockChildren:(R=r().children)!=null?R:[],componentRef:(U=t())==null?void 0:U.component,componentOptions:{...$r(r()),...ki(t(),r()),...Ci(t(),e.context),...bi(t(),e.linkComponent),...Si(t(),e.registeredComponents)},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:r(),includeBlockProps:(($=t())==null?void 0:$.noWrap)===!0,isInteractive:!((M=t())!=null&&M.isRSC)}};return f.jsx(f.Fragment,{children:a()?f.jsxs(f.Fragment,{children:[f.jsx(wi,{block:e.block,context:e.context}),(h=t())!=null&&h.noWrap?f.jsx(f.Fragment,{children:f.jsx($n,{componentRef:c().componentRef,componentOptions:c().componentOptions,blockChildren:c().blockChildren,context:c().context,registeredComponents:c().registeredComponents,linkComponent:c().linkComponent,builderBlock:c().builderBlock,includeBlockProps:c().includeBlockProps,isInteractive:c().isInteractive})}):f.jsx(f.Fragment,{children:n()?f.jsx(f.Fragment,{children:(x=n())==null?void 0:x.map((g,R)=>f.jsx(Ni,{repeatContext:g.context,block:g.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},R))}):f.jsxs(Ri,{Wrapper:i(),block:r(),context:e.context,children:[f.jsx($n,{componentRef:c().componentRef,componentOptions:c().componentOptions,blockChildren:c().blockChildren,context:c().context,registeredComponents:c().registeredComponents,linkComponent:c().linkComponent,builderBlock:c().builderBlock,includeBlockProps:c().includeBlockProps,isInteractive:c().isInteractive}),(y=s())==null?void 0:y.map(g=>f.jsx(mt,{block:g,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},g.id))]})})]}):null})}function Bi(e){function t(){var i;return"builder-blocks"+((i=e.blocks)!=null&&i.length?"":" no-blocks")}function n(){var i,a;w.isEditing()&&!((i=e.blocks)!=null&&i.length)&&((a=window.parent)==null||a.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function r(){var i,a;w.isEditing()&&!((i=e.blocks)!=null&&i.length)&&((a=window.parent)==null||a.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return f.jsxs(f.Fragment,{children:[f.jsx(e.BlocksWrapper,{className:t()+" props-blocks-wrapper-7cd1560e","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:i=>n(),onMouseEnter:i=>r(),onKeyPress:i=>n(),...e.BlocksWrapperProps,children:e.children}),f.jsx("style",{children:`.props-blocks-wrapper-7cd1560e {
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
align-items: stretch;
|
|
32
|
-
}`})]})}function
|
|
32
|
+
}`})]})}function gt(e){var t,n,r;return f.jsx(Bi,{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?f.jsx(f.Fragment,{children:(r=e.blocks)==null?void 0:r.map(i=>f.jsx(mt,{block:i,linkComponent:e.linkComponent,context:e.context,registeredComponents:e.registeredComponents},i.id))}):null})}const Fi=e=>`builder-columns ${e}-breakpoints`;function ur(e){var M,K;const t=typeof e.space=="number"?e.space||0:20,n=e.columns||[],r=e.stackColumnsAt||"tablet",i=function(v){return v.link?e.builderLinkComponent||"a":"div"},a=function(v){var L;return((L=n[v])==null?void 0:L.width)||100/n.length},s=function(v){const L=a(v),z=t*(n.length-1)*(L/100);return`calc(${L}% - ${z}px)`},c=function({stackedStyle:v,desktopStyle:L}){return r==="tablet"?v:L},h=function({stackedStyle:v,desktopStyle:L}){return r==="never"?L:v},y=e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column",x=function(){return{"--flex-dir":y,"--flex-dir-tablet":c({stackedStyle:y,desktopStyle:"row"})}},g=function(v){const L=v===0?0:t,z=s(v),oe=`${L}px`,H="100%",ee=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:z,["marginLeft"]:oe,"--column-width-mobile":h({stackedStyle:H,desktopStyle:z}),"--column-margin-left-mobile":h({stackedStyle:ee,desktopStyle:oe}),"--column-width-tablet":c({stackedStyle:H,desktopStyle:z}),"--column-margin-left-tablet":c({stackedStyle:ee,desktopStyle:oe})}},R=function(v){var z,oe;return lr(((oe=(z=e.builderContext.content)==null?void 0:z.meta)==null?void 0:oe.breakpoints)||{})[v].max},U=function(){return`
|
|
33
33
|
@media (max-width: ${R("medium")}px) {
|
|
34
34
|
.${e.builderBlock.id}-breakpoints {
|
|
35
35
|
flex-direction: var(--flex-dir-tablet);
|
|
@@ -53,10 +53,10 @@ theFunction();
|
|
|
53
53
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
`},$=function(v,
|
|
56
|
+
`},$=function(v,L){return{...v.link?{href:v.link}:{},[qe()]:"builder-column",style:ar(g(L))}};return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:Fi((M=e.builderBlock)==null?void 0:M.id)+" div-1de99da7",style:x(),children:[f.jsx(pt,{id:"builderio-columns",styles:U()}),(K=e.columns)==null?void 0:K.map((B,v)=>f.jsx(Kt,{TagName:i(B),actionAttributes:{},attributes:$(B,v),children:f.jsx(gt,{path:`component.options.columns.${v}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:B.blocks})},v))]}),f.jsx("style",{children:`.div-1de99da7 {
|
|
57
57
|
display: flex;
|
|
58
58
|
line-height: normal;
|
|
59
|
-
}`})]})}function
|
|
59
|
+
}`})]})}function dr(e){return f.jsx("span",{children:e.children})}function Hn(e){return e.replace(/http(s)?:/,"")}function Mi(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),i=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+i+t+"="+encodeURIComponent(n)}function Di(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return Hn(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]),i=n[3],a=t.match("x")?t:`${t}x`;return Hn(`${r[0]}_${a}${i}`)}return null}function Lt(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(i=>i!==r).map(i=>`${Mi(e,"width",i)} ${i}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[Di(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}function fr(e){var i,a,s,c,h,y;function t(){var R;const g=e.image||e.src;if(!g||!(g.match(/builder\.io/)||g.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((R=e.image)!=null&&R.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),Lt(g)}else if(e.image&&!e.srcset)return Lt(g);return Lt(g)}function n(){var x;return(x=t==null?void 0:t())!=null&&x.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function r(){const x={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?x:void 0}return f.jsxs(f.Fragment,{children:[f.jsxs(f.Fragment,{children:[f.jsxs("picture",{children:[n()?f.jsx("source",{type:"image/webp",srcSet:n()}):null,f.jsx("img",{loading:e.highPriority?"eager":"lazy",fetchPriority:e.highPriority?"high":"auto",alt:e.altText,role:e.altText?void 0:"presentation",style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...r()},className:"builder-image"+(e.className?" "+e.className:"")+" img-ac3dff4a",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length&&e.fitContent)?f.jsx("div",{className:"builder-image-sizer div-ac3dff4a",style:{paddingTop:e.aspectRatio*100+"%"}}):null,(c=(s=e.builderBlock)==null?void 0:s.children)!=null&&c.length&&e.fitContent?f.jsx(f.Fragment,{children:e.children}):null,!e.fitContent&&((y=(h=e.builderBlock)==null?void 0:h.children)!=null&&y.length)?f.jsx("div",{className:"div-ac3dff4a-2",children:e.children}):null]}),f.jsx("style",{children:`.img-ac3dff4a {
|
|
60
60
|
opacity: 1;
|
|
61
61
|
transition: opacity 0.2s ease-in-out;
|
|
62
62
|
}.div-ac3dff4a {
|
|
@@ -72,7 +72,7 @@ theFunction();
|
|
|
72
72
|
left: 0;
|
|
73
73
|
width: 100%;
|
|
74
74
|
height: 100%;
|
|
75
|
-
}`})]})}function pr(e){return f.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}const Ui={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,shouldReceiveBuilderProps:{builderBlock:!1,builderContext:!1,builderComponents:!1,builderLinkComponent:!0}},Wi={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(i=>i.get("width"))&&(n.find(a=>!a.get("width"))||n.reduce((c,h)=>c+h.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}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},Vi={shouldReceiveBuilderProps:{builderBlock:!1,builderContext:!1,builderComponents:!1,builderLinkComponent:!1},name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},_i={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","webp"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(s,c=6e4){return new Promise((h,y)=>{const b=document.createElement("img");let g=!1;b.onload=()=>{g=!0,h(b)},b.addEventListener("error",R=>{console.warn("Image load failed",R.error),y(R.error)}),b.src=s,setTimeout(()=>{g||y(new Error("Image load timed out"))},c)})}function r(s){return Math.round(s*1e3)/1e3}const i=e.get("image"),a=e.get("aspectRatio");if(fetch(i).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),i&&(!a||a===.7041))return n(i).then(s=>{const c=e.get("aspectRatio");e.get("image")===i&&(!c||c===.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:"highPriority",type:"boolean",advanced:!0,helperText:"Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."},{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}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!1,builderComponents:!1,builderLinkComponent:!1}},$i={shouldReceiveBuilderProps:{builderBlock:!1,builderContext:!1,builderComponents:!1,builderLinkComponent:!1},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>"}}}]},Hi={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"}],shouldReceiveBuilderProps:{builderBlock:!1,builderContext:!0,builderComponents:!1,builderLinkComponent:!1}};function Ki(e){var t,n,r;return f.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:f.jsx(yt,{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 Gi={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"}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},zi={shouldReceiveBuilderProps:{builderBlock:!1,builderContext:!1,builderComponents:!1,builderLinkComponent:!1},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 mr(e){var t;return f.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Yi={shouldReceiveBuilderProps:{builderBlock:!1,builderContext:!1,builderComponents:!1,builderLinkComponent:!1},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}]};function Xi(e){const t=V.useRef(null),[n,r]=V.useState(()=>[]),[i,a]=V.useState(()=>[]);return V.useEffect(()=>{var c;if(!((c=t.current)!=null&&c.getElementsByTagName)||typeof window=="undefined")return;const s=t.current.getElementsByTagName("script");for(let h=0;h<s.length;h++){const y=s[h];if(y.src){if(n.includes(y.src))continue;n.push(y.src);const b=document.createElement("script");b.async=!0,b.src=y.src,document.head.appendChild(b)}else if(!y.type||["text/javascript","application/javascript","application/ecmascript"].includes(y.type)){if(i.includes(y.innerText))continue;try{i.push(y.innerText),new Function(y.innerText)()}catch(b){console.warn("`CustomCode`: Error running script:",b)}}}},[]),f.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const qi={shouldReceiveBuilderProps:{builderBlock:!1,builderContext:!1,builderComponents:!1,builderLinkComponent:!1},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){e.set("content","Loading...");const n=_iframelyApiKey;return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).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")})}else e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},Ji=["text/javascript","application/javascript","application/ecmascript"],Zi=e=>Ji.includes(e.type);function Qi(e){const t=V.useRef(null),[n,r]=V.useState(()=>[]),[i,a]=V.useState(()=>[]),[s,c]=V.useState(()=>!1);function h(){if(!t.current||!t.current.getElementsByTagName)return;const y=t.current.getElementsByTagName("script");for(let b=0;b<y.length;b++){const g=y[b];if(g.src&&!n.includes(g.src)){n.push(g.src);const R=document.createElement("script");R.async=!0,R.src=g.src,document.head.appendChild(R)}else if(Zi(g)&&!i.includes(g.innerText))try{i.push(g.innerText),new Function(g.innerText)()}catch(R){console.warn("`Embed`: Error running script:",R)}}}return V.useEffect(()=>{t.current&&!s&&(c(!0),h())},[t.current,s]),f.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const eo={shouldReceiveBuilderProps:{builderBlock:!1,builderContext:!1,builderComponents:!1,builderLinkComponent:!1},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};function to(e){return f.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},w.isEditing()&&e.imgSrc||"default-key")}const no={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}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!1,builderComponents:!1,builderLinkComponent:!1}};function gr(e){var r,i,a,s,c,h,y;function t(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function n(){return{...t()}}return f.jsxs("div",{style:{position:"relative"},children:[f.jsx("video",{className:"builder-video",...n(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(r=e.attributes)==null?void 0:r.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:f.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length))?f.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}}):null,(c=(s=e.builderBlock)==null?void 0:s.children)!=null&&c.length&&e.fitContent?f.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children}):null,(y=(h=e.builderBlock)==null?void 0:h.children)!=null&&y.length&&!e.fitContent?f.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children}):null]})}const ro=()=>[{component:Xi,...Yi},{component:Qi,...qi},{component:to,...eo},{component:gr,...no}],Gn=()=>[{component:Jn,...Ui},{component:dr,...Wi},{component:fr,...Vi},{component:hr,..._i},{component:pr,...$i},{component:Ki,...Hi},{component:kr,...Gi},{component:mr,...zi},...ro()],io=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
75
|
+
}`})]})}function hr(e){return f.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}const Ui={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,shouldReceiveBuilderProps:{builderLinkComponent:!0}},Wi={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(i=>i.get("width"))&&(n.find(a=>!a.get("width"))||n.reduce((c,h)=>c+h.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}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},Li={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Vi={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","webp"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(s,c=6e4){return new Promise((h,y)=>{const x=document.createElement("img");let g=!1;x.onload=()=>{g=!0,h(x)},x.addEventListener("error",R=>{console.warn("Image load failed",R.error),y(R.error)}),x.src=s,setTimeout(()=>{g||y(new Error("Image load timed out"))},c)})}function r(s){return Math.round(s*1e3)/1e3}const i=e.get("image"),a=e.get("aspectRatio");if(fetch(i).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),i&&(!a||a===.7041))return n(i).then(s=>{const c=e.get("aspectRatio");e.get("image")===i&&(!c||c===.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:"highPriority",type:"boolean",advanced:!0,helperText:"Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."},{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}],shouldReceiveBuilderProps:{builderBlock:!0}},_i={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>"}}}]},$i={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"}],shouldReceiveBuilderProps:{builderContext:!0}};function Hi(e){var t,n,r;return f.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:f.jsx(gt,{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 Ki={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"}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},Gi={shouldReceiveBuilderProps:{builderBlock:!1},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 pr(e){var t;return f.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const zi={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}]};function Yi(e){const t=_.useRef(null),[n,r]=_.useState(()=>[]),[i,a]=_.useState(()=>[]);return _.useEffect(()=>{var c;if(!((c=t.current)!=null&&c.getElementsByTagName)||typeof window=="undefined")return;const s=t.current.getElementsByTagName("script");for(let h=0;h<s.length;h++){const y=s[h];if(y.src){if(n.includes(y.src))continue;n.push(y.src);const x=document.createElement("script");x.async=!0,x.src=y.src,document.head.appendChild(x)}else if(!y.type||["text/javascript","application/javascript","application/ecmascript"].includes(y.type)){if(i.includes(y.innerText))continue;try{i.push(y.innerText),new Function(y.innerText)()}catch(x){console.warn("`CustomCode`: Error running script:",x)}}}},[]),f.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const Xi={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc"},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},qi=["text/javascript","application/javascript","application/ecmascript"],Ji=e=>qi.includes(e.type);function Zi(e){const t=_.useRef(null),[n,r]=_.useState(()=>[]),[i,a]=_.useState(()=>[]),[s,c]=_.useState(()=>!1);function h(){if(!t.current||!t.current.getElementsByTagName)return;const y=t.current.getElementsByTagName("script");for(let x=0;x<y.length;x++){const g=y[x];if(g.src&&!n.includes(g.src)){n.push(g.src);const R=document.createElement("script");R.async=!0,R.src=g.src,document.head.appendChild(R)}else if(Ji(g)&&!i.includes(g.innerText))try{i.push(g.innerText),new Function(g.innerText)()}catch(R){console.warn("`Embed`: Error running script:",R)}}}return _.useEffect(()=>{t.current&&!s&&(c(!0),h())},[t.current,s]),f.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const Qi={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};function eo(e){return f.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},w.isEditing()&&e.imgSrc||"default-key")}const to={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}],shouldReceiveBuilderProps:{builderBlock:!0}};function mr(e){var r,i,a,s,c,h,y;function t(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function n(){return{...t()}}return f.jsxs("div",{style:{position:"relative"},children:[f.jsx("video",{className:"builder-video",...n(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(r=e.attributes)==null?void 0:r.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:f.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length))?f.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}}):null,(c=(s=e.builderBlock)==null?void 0:s.children)!=null&&c.length&&e.fitContent?f.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children}):null,(y=(h=e.builderBlock)==null?void 0:h.children)!=null&&y.length&&!e.fitContent?f.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children}):null]})}const no=()=>[{component:Yi,...zi},{component:Zi,...Xi},{component:eo,...Qi},{component:mr,...to}],Kn=()=>[{component:qn,...Ui},{component:ur,...Wi},{component:dr,...Li},{component:fr,...Vi},{component:hr,..._i},{component:Hi,...$i},{component:Sr,...Ki},{component:pr,...Gi},...no()],ro=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
76
76
|
function getAndSetVariantId() {
|
|
77
77
|
function setCookie(name, value, days) {
|
|
78
78
|
let expires = '';
|
|
@@ -128,7 +128,7 @@ theFunction();
|
|
|
128
128
|
}).join('');
|
|
129
129
|
styleEl.innerHTML = newStyleStr;
|
|
130
130
|
}
|
|
131
|
-
}`,
|
|
131
|
+
}`,io=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
132
132
|
if (!navigator.cookieEnabled) {
|
|
133
133
|
return;
|
|
134
134
|
}
|
|
@@ -162,15 +162,15 @@ theFunction();
|
|
|
162
162
|
thisScriptEl?.remove();
|
|
163
163
|
}
|
|
164
164
|
return;
|
|
165
|
-
}`,
|
|
165
|
+
}`,gr="builderIoAbTest",yr="builderIoRenderContent",ut=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),oo=({canTrack:e,content:t})=>!(!(ut(t).length>0)||!e||w.isBrowser()),ao=e=>e==="react"||e==="reactNative",vr=ao(w.TARGET),so=()=>`
|
|
166
|
+
window.${gr} = ${ro}
|
|
166
167
|
window.${yr} = ${io}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
)`;function Kt(e){return f.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}const xr=V.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}});function zn(e){return Math.round(e*1e3)/1e3}const fo=(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},ho=e=>fo(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),Yn=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top,a=zn(r/n.width),s=zn(i/n.height);return{x:a,y:s}},po=e=>{const t=e.target,n=t&&ho(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?Yn({event:e,target:t}):void 0,builderTargetOffset:n?Yn({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}};async function mo({key:e,value:t}){return w.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}function Xn(e,...t){const n=Object(e);for(let r=1;r<arguments.length;r++){const i=arguments[r];if(i!=null)for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n}function go(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function yo(e,t){const n=vo(e),r=getComputedStyle(t),i=e.steps[0].styles,a=e.steps[e.steps.length-1].styles,s=[i,a];for(const c of s)for(const h of n)h in c||(c[h]=r[h])}function vo(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 bo(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){go(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{yo(e,n),n.style.transition="none",n.style.transitionDelay="0",Xn(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${on(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),Xn(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}const xo=e=>{var a,s;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=(s=e.fileUrl)!=null?s:(a=e==null?void 0:e.files)==null?void 0:a.regular;let i="";if(r&&t&&n&&(i+=`
|
|
168
|
+
`,lo=(e,t)=>`
|
|
169
|
+
window.${gr}(
|
|
170
|
+
"${t}",${JSON.stringify(e)}, ${vr}
|
|
171
|
+
)`,co=({contentId:e,variationId:t})=>`window.${yr}(
|
|
172
|
+
"${t}", "${e}", ${vr}
|
|
173
|
+
)`;function Ht(e){return f.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}const xr=_.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}});function Gn(e){return Math.round(e*1e3)/1e3}const uo=(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},fo=e=>uo(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),zn=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top,a=Gn(r/n.width),s=Gn(i/n.height);return{x:a,y:s}},ho=e=>{const t=e.target,n=t&&fo(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?zn({event:e,target:t}):void 0,builderTargetOffset:n?zn({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}};async function po({key:e,value:t}){return w.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}function Yn(e,...t){const n=Object(e);for(let r=1;r<arguments.length;r++){const i=arguments[r];if(i!=null)for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n}function mo(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function go(e,t){const n=yo(e),r=getComputedStyle(t),i=e.steps[0].styles,a=e.steps[e.steps.length-1].styles,s=[i,a];for(const c of s)for(const h of n)h in c||(c[h]=r[h])}function yo(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 vo(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){mo(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{go(e,n),n.style.transition="none",n.style.transitionDelay="0",Yn(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${rn(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),Yn(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}const xo=e=>{var a,s;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=(s=e.fileUrl)!=null?s:(a=e==null?void 0:e.files)==null?void 0:a.regular;let i="";if(r&&t&&n&&(i+=`
|
|
174
174
|
@font-face {
|
|
175
175
|
font-family: "${t}";
|
|
176
176
|
src: local("${n}"), url('${r}') format('woff2');
|
|
@@ -184,7 +184,7 @@ src: url('${y}') format('woff2');
|
|
|
184
184
|
font-display: fallback;
|
|
185
185
|
font-weight: ${c};
|
|
186
186
|
}
|
|
187
|
-
`.trim())}return i},
|
|
187
|
+
`.trim())}return i},bo=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>xo(n)))==null?void 0:t.join(" "))||""},So=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",ko=`
|
|
188
188
|
.builder-button {
|
|
189
189
|
all: unset;
|
|
190
190
|
}
|
|
@@ -201,8 +201,8 @@ font-weight: ${c};
|
|
|
201
201
|
text-align: inherit;
|
|
202
202
|
font-family: inherit;
|
|
203
203
|
}
|
|
204
|
-
`,
|
|
205
|
-
${
|
|
206
|
-
${
|
|
207
|
-
${
|
|
208
|
-
`.trim();return f.jsx(
|
|
204
|
+
`,Co=e=>e?"":ko,wo=e=>`variant-${e}`;function Eo(e){var oe,H,ee,j,ke,V,Ce;const t=_.useRef(null);function n(I){var N,W;const b={...e.builderContextSignal.rootState,...I};e.builderContextSignal.rootSetState?(W=(N=e.builderContextSignal).rootSetState)==null||W.call(N,b):e.builderContextSignal.rootState=b}function r(I){var N,W,F,J,se;const b={...e.builderContextSignal.content,...I,data:{...(N=e.builderContextSignal.content)==null?void 0:N.data,...I==null?void 0:I.data},meta:{...(W=e.builderContextSignal.content)==null?void 0:W.meta,...I==null?void 0:I.meta,breakpoints:((F=I==null?void 0:I.meta)==null?void 0:F.breakpoints)||((se=(J=e.builderContextSignal.content)==null?void 0:J.meta)==null?void 0:se.breakpoints)}};po({value:b,key:b.id}).then(()=>{z.refresh()})}function i(){return e.showContent?{}:{hidden:!0,"aria-hidden":!0}}const[a,s]=_.useState(()=>e.contentWrapper||"div");function c(I){return w.createEditorListener({model:e.model,trustedHosts:e.trustedHosts,callbacks:{configureSdk:b=>{var F;const{breakpoints:N,contentId:W}=b;!W||W!==((F=e.builderContextSignal.content)==null?void 0:F.id)||N&&r({meta:{breakpoints:N}})},animation:b=>{vo(b)},contentUpdate:b=>{r(b)}}})(I)}function h(){var b,N;const I=(N=(b=e.builderContextSignal.content)==null?void 0:b.data)==null?void 0:N.jsCode;I&&Qe({code:I,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState,enableCache:!1})}const[y,x]=_.useState(()=>({})),[g,R]=_.useState(()=>({})),[U,$]=_.useState(()=>!1);function M(I){var b,N;if(e.builderContextSignal.content){const W=(b=e.builderContextSignal.content)==null?void 0:b.testVariationId,F=(N=e.builderContextSignal.content)==null?void 0:N.id;w._track({type:"click",canTrack:w.getDefaultCanTrack(e.canTrack),contentId:F,apiKey:e.apiKey,variationId:W!==F?W:void 0,...ho(I),unique:!U})}U||$(!0)}function K(){var b,N,W;const I=(W=(N=(b=e.builderContextSignal.content)==null?void 0:b.data)==null?void 0:N.httpRequests)!=null?W:{};Object.entries(I).forEach(([F,J])=>{if(!J||g[F]||y[F]&&!w.isEditing())return;g[F]=!0;const se=J.replace(/{{([^}]+)}}/g,(le,nt)=>String(Qe({code:nt,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState,enableCache:!0})));w.fetch(se).then(le=>le.json()).then(le=>{n({[F]:le}),y[F]=!0}).catch(le=>{console.error("error fetching dynamic data",J,le)}).finally(()=>{g[F]=!1})})}function B(){w.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:w.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function v(I){window.addEventListener("message",c),w.registerInsertMenu(),w.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(b=>{var W;const N=w.createRegisterComponentMessage(b);(W=window.parent)==null||W.postMessage(N,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",B)}function L(I){const b=new URL(location.href).searchParams,N=b.get("builder.preview"),W=b.get(`builder.overrides.${N}`),F=b.get("apiKey")||b.get("builder.space");N===e.model&&F===e.apiKey&&(!e.content||W===e.content.id)&&w.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(J=>{J&&r(J)})}const z=Lr.useRouter();return _.useEffect(()=>{var I;return(I=t.current)==null||I.addEventListener("initeditingbldr",v),()=>{var b;return(b=t.current)==null?void 0:b.removeEventListener("initeditingbldr",v)}},[]),_.useEffect(()=>{var I;return(I=t.current)==null||I.addEventListener("initpreviewingbldr",L),()=>{var b;return(b=t.current)==null?void 0:b.removeEventListener("initpreviewingbldr",L)}},[]),_.useEffect(()=>{var I,b;if(w.isBrowser()){if(w.isEditing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&w.getDefaultCanTrack(e.canTrack)){const W=(I=e.builderContextSignal.content)==null?void 0:I.testVariationId,F=(b=e.builderContextSignal.content)==null?void 0:b.id,J=e.apiKey;w._track({type:"impression",canTrack:!0,contentId:F,apiKey:J,variationId:W!==F?W:void 0})}w.isPreviewing()&&w.isEditing()}},[]),_.useEffect(()=>{e.apiKey||w.logger.error("No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."),h(),K(),B()},[]),_.useEffect(()=>{},[e.content]),_.useEffect(()=>{h()},[(H=(oe=e.builderContextSignal.content)==null?void 0:oe.data)==null?void 0:H.jsCode]),_.useEffect(()=>{K()},[(j=(ee=e.builderContextSignal.content)==null?void 0:ee.data)==null?void 0:j.httpRequests]),_.useEffect(()=>{B()},[e.builderContextSignal.rootState]),_.useEffect(()=>{e.data&&n(e.data)},[e.data]),_.useEffect(()=>{e.locale&&n({locale:e.locale})},[e.locale]),_.useEffect(()=>()=>{w.isBrowser()&&(window.removeEventListener("message",c),window.removeEventListener("builder:component:stateChangeListenerActivated",B))},[]),f.jsx(xr.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?f.jsx(a,{ref:t,onClick:I=>M(I),"builder-content-id":(ke=e.builderContextSignal.content)==null?void 0:ke.id,"builder-model":e.model,...i(),...e.contentWrapperProps,className:wo(((V=e.content)==null?void 0:V.testVariationId)||((Ce=e.content)==null?void 0:Ce.id)),children:e.children}):null})}function jo(e){const t=`
|
|
205
|
+
${So({cssCode:e.cssCode,contentId:e.contentId})}
|
|
206
|
+
${bo({customFonts:e.customFonts})}
|
|
207
|
+
${Co(e.isNestedRender)}
|
|
208
|
+
`.trim();return f.jsx(pt,{id:"builderio-content",styles:t})}const Io=({content:e,data:t,locale:n})=>{var a,s,c;const r={},i=((a=e==null?void 0:e.data)==null?void 0:a.state)||{};return(c=(s=e==null?void 0:e.data)==null?void 0:s.inputs)==null||c.forEach(h=>{h.name&&h.defaultValue!==void 0&&(r[h.name]=h.defaultValue)}),{...r,...i,...t,...n?{locale:n}:{}}},To=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function Xn(e){var i,a,s,c,h,y,x,g,R;const t=co({variationId:(i=e.content)==null?void 0:i.testVariationId,contentId:(a=e.content)==null?void 0:a.id}),n=[...Kn(),...e.customComponents||[]].reduce((U,{component:$,...M})=>({...U,[M.name]:{component:$,...w.serializeComponentInfo(M)}}),{}),r={content:To({content:e.content,data:e.data}),localState:void 0,rootState:Io({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},canTrack:e.canTrack,apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...Kn(),...e.customComponents||[]].reduce((U,{component:$,...M})=>({...U,[M.name]:w.serializeComponentInfo(M)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}};return f.jsxs(Eo,{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,trustedHosts:e.trustedHosts,children:[e.isSsrAbTest?f.jsx(Ht,{id:"builderio-variant-visibility",scriptStr:t}):null,f.jsx(jo,{isNestedRender:e.isNestedRender,contentId:(s=r.content)==null?void 0:s.id,cssCode:(h=(c=r.content)==null?void 0:c.data)==null?void 0:h.cssCode,customFonts:(x=(y=r.content)==null?void 0:y.data)==null?void 0:x.customFonts}),f.jsx(gt,{blocks:(R=(g=r.content)==null?void 0:g.data)==null?void 0:R.blocks,context:r,registeredComponents:n,linkComponent:e.linkComponent})]})}function br(e){var a;const t=oo({canTrack:w.getDefaultCanTrack(e.canTrack),content:e.content}),n=function(){var c;return lo(ut(e.content).map(h=>({id:h.testVariationId,testRatio:h.testRatio})),((c=e.content)==null?void 0:c.id)||"")},r=function(){return ut(e.content).map(c=>`.variant-${c.testVariationId} { display: none; } `).join("")},i=function(){var c;return t?{...e.content,testVariationId:(c=e.content)==null?void 0:c.id}:w.handleABTestingSync({item:e.content,canTrack:w.getDefaultCanTrack(e.canTrack)})};return f.jsxs(f.Fragment,{children:[!e.isNestedRender&&w.TARGET!=="reactNative"?f.jsx(Ht,{id:"builderio-init-variants-fns",scriptStr:so()}):null,t?f.jsxs(f.Fragment,{children:[f.jsx(pt,{id:"builderio-variants",styles:r()}),f.jsx(Ht,{id:"builderio-variants-visibility",scriptStr:n()}),(a=ut(e.content))==null?void 0:a.map(s=>f.jsx(Xn,{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,f.jsx(Xn,{isNestedRender:e.isNestedRender,content:i(),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 Ao=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return w.fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{w.logger.error("Could not fetch symbol content: ",n)})};async function Sr(e){var a,s,c,h,y;const t=function(){return"div"},n=function(){return"div"},r=function(){var g,R;return[e.attributes[qe()],"builder-symbol",(g=e.symbol)!=null&&g.inline?"builder-inline-symbol":void 0,(R=e.symbol)!=null&&R.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},i=((a=e.symbol)==null?void 0:a.content)||await Ao({symbol:e.symbol,builderContextValue:e.builderContext});return f.jsx("div",{...e.attributes,className:r(),children:f.jsx(br,{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:{...(c=e.symbol)==null?void 0:c.data,...e.builderContext.localState,...(h=i==null?void 0:i.data)==null?void 0:h.state},canTrack:e.builderContext.canTrack,model:(y=e.symbol)==null?void 0:y.model,content:i,linkComponent:e.builderLinkComponent,blocksWrapper:t(),contentWrapper:n()})})}exports.Blocks=gt;exports.BuilderContext=xr;exports.Button=qn;exports.Columns=ur;exports.Content=br;exports.Fragment=dr;exports.Image=fr;exports.Section=hr;exports.Symbol=Sr;exports.Text=pr;exports.Video=mr;
|