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