@builder.io/sdk-react 0.7.4 → 0.7.5
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 +11 -11
- package/lib/browser/index.mjs +114 -117
- package/lib/edge/index.cjs +12 -12
- package/lib/edge/index.mjs +249 -252
- package/lib/node/index.cjs +9 -9
- package/lib/node/index.mjs +127 -130
- package/package.json +1 -1
- package/types/components/content/content.helpers.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
package/lib/edge/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),j=require("react"),v=require("./server-entry-a5d2c777.js");function Jn(e){return u.jsxs(u.Fragment,{children:[e.link?u.jsx(u.Fragment,{children:u.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):u.jsx(u.Fragment,{children:u.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-5294b10c",children:e.text})}),u.jsx("style",{children:`.button-5294b10c {
|
|
2
2
|
all: unset;
|
|
3
|
-
}`})]})}const Wt=j.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{}}),qn=j.createContext({registeredComponents:{}});function Fr(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const Zn=({builder:e,context:t,event:r,state:n})=>Object.entries({state:n,Builder:e,builder:e,context:t,event:r}),Mr=()=>({isEditing:v.isEditing(),isBrowser:v.isBrowser(),isServer:!v.isBrowser(),getUserAttributes:()=>v.getUserAttributes()}),Br=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Ur=({code:e,builder:t,context:r,event:n,localState:i,rootSetState:a,rootState:s})=>{const d=Zn({builder:t,context:r,event:n,state:Dr(s,i,a)});return new Function(...d.map(([h])=>h),e)(...d.map(([,h])=>h))};function Dr(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 Qn=(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 D,_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 c=b,p=1,
|
|
4
|
-
`;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(
|
|
5
|
-
`,ce-2)+1,--Se;h(),y()}function ie(){this.type=null,this.start=X,this.end=null}function oe(){this.start=xt,this.end=null,yt&&(this.source=yt)}function $(){var o=new ie;return N.C&&(o.X=new oe),N.vb&&(o.sourceFile=N.vb),N.Xa&&(o.j=[X,0]),o}function Q(o){var l=new ie;return l.start=o.start,N.C&&(l.X=new oe,l.X.start=o.X.start),N.Xa&&(l.j=[o.j[0],0]),l}function I(o,l){return o.type=l,o.end=ve,N.C&&(o.X.end=wt),N.Xa&&(o.j[1]=ve),o}function ke(o){return o.type==="ExpressionStatement"&&o.la.type==="Literal"&&o.la.value==="use strict"}function V(o){return R===o?(x(),!0):!1}function A(){return!N.fc&&(R===kt||R===Ie||nt.test(b.slice(ve,X)))}function T(){V(de)||A()||F()}function E(o){R===o?x():F()}function F(){n(X,"Unexpected token")}function L(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 U(){(R===Tn||R===we&&ae==="/=")&&y(!0);var o=R,l=$();switch(o){case Ct:case cn:x();var c=o===Ct;V(de)||A()?l.label=null:R!==je?F():(l.label=le(),T());for(var p=0;p<z.length;++p){var O=z[p];if((l.label===null||O.name===l.label.name)&&(O.kind!==null&&(c||O.kind==="loop")||l.label&&c))break}return p===z.length&&n(l.start,"Unsyntactic "+o.l),I(l,c?"BreakStatement":"ContinueStatement");case un:return x(),T(),I(l,"DebuggerStatement");case fn:return x(),z.push(Pt),l.body=U(),z.pop(),E(At),l.test=ge(),T(),I(l,"DoWhileStatement");case mn:return x(),z.push(Pt),E(ue),R===de?ft(l,null):R===Tt?(o=$(),x(),on(o,!0),I(o,"VariableDeclaration"),o.fa.length===1&&V(et)?rn(l,o):ft(l,o)):(o=Z(!1,!0),V(et)?(L(o),rn(l,o)):ft(l,o));case jt:return x(),gt(l,!0);case gn:return x(),l.test=ge(),l.da=U(),l.alternate=V(hn)?U():null,I(l,"IfStatement");case vn:return Be||N.Ib||n(X,"'return' outside of function"),x(),V(de)||A()?l.K=null:(l.K=Z(),T()),I(l,"ReturnStatement");case It:for(x(),l.Qb=ge(),l.tb=[],E(De),z.push(Nr);R!==Ie;)R===Et||R===dn?(o=R===Et,p&&I(p,"SwitchCase"),l.tb.push(p=$()),p.da=[],x(),o?p.test=Z():(c&&n(St,"Multiple default clauses"),c=!0,p.test=null),E(_e)):(p||F(),p.da.push(U()));return p&&I(p,"SwitchCase"),x(),z.pop(),I(l,"SwitchStatement");case yn:return x(),nt.test(b.slice(ve,X))&&n(ve,"Illegal newline after throw"),l.K=Z(),T(),I(l,"ThrowStatement");case xn:return x(),l.block=be(),l.Ea=null,R===ln&&(o=$(),x(),E(ue),o.Ua=le(),re&&tt(o.Ua.name)&&n(o.Ua.start,"Binding "+o.Ua.name+" in strict mode"),E(se),o.body=be(),l.Ea=I(o,"CatchClause")),l.fb=V(pn)?be():null,l.Ea||l.fb||n(l.start,"Missing catch or finally clause"),I(l,"TryStatement");case Tt:return x(),on(l),T(),I(l,"VariableDeclaration");case At:return x(),l.test=ge(),z.push(Pt),l.body=U(),z.pop(),I(l,"WhileStatement");case bn:return re&&n(X,"'with' in strict mode"),x(),l.object=ge(),l.body=U(),I(l,"WithStatement");case De:return be();case de:return x(),I(l,"EmptyStatement");default:if(c=ae,O=Z(),o===je&&O.type==="Identifier"&&V(_e)){for(p=0;p<z.length;++p)z[p].name===c&&n(O.start,"Label '"+c+"' is already declared");return z.push({name:c,kind:R.W?"loop":R===It?"switch":null}),l.body=U(),z.pop(),l.label=O,I(l,"LabeledStatement")}return l.la=O,T(),I(l,"ExpressionStatement")}}function ge(){E(ue);var o=Z();return E(se),o}function be(o){var l=$(),c=!0,p=!1;for(l.body=[],E(De);!V(Ie);){var O=U();if(l.body.push(O),c&&o&&ke(O)){var Y=p;K(p=!0)}c=!1}return p&&!Y&&K(!1),I(l,"BlockStatement")}function ft(o,l){return o.ua=l,E(de),o.test=R===de?null:Z(),E(de),o.update=R===se?null:Z(),E(se),o.body=U(),z.pop(),I(o,"ForStatement")}function rn(o,l){return o.left=l,o.right=Z(),E(se),o.body=U(),z.pop(),I(o,"ForInStatement")}function on(o,l){for(o.fa=[],o.kind="var";;){var c=$();if(c.id=le(),re&&tt(c.id.name)&&n(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=V(An)?Z(!0,l):null,o.fa.push(I(c,"VariableDeclarator")),!V(ye))break}}function Z(o,l){var c=ht(l);if(!o&&R===ye){for(o=Q(c),o.xb=[c];V(ye);)o.xb.push(ht(l));return I(o,"SequenceExpression")}return c}function ht(o){var l=pt(mt(),-1,o);if(V(In)){var c=Q(l);c.test=l,c.da=Z(!0),E(_e),c.alternate=Z(!0,o),l=I(c,"ConditionalExpression")}return R.Cb?(c=Q(l),c.operator=ae,c.left=l,x(),c.right=ht(o),L(l),I(c,"AssignmentExpression")):l}function pt(o,l,c){var p=R.L;if(p!==null&&(!c||R!==et)&&p>l){var O=Q(o);return O.left=o,O.operator=ae,o=R,x(),O.right=pt(mt(),p,c),p=I(O,o===On||o===Pn?"LogicalExpression":"BinaryExpression"),pt(p,l,c)}return o}function mt(){if(R.prefix){var o=$(),l=R.$b;return o.operator=ae,Me=o.prefix=!0,x(),o.K=mt(),l?L(o.K):re&&o.operator==="delete"&&o.K.type==="Identifier"&&n(o.start,"Deleting local variable in strict mode"),I(o,l?"UpdateExpression":"UnaryExpression")}for(l=Fe(Ze());R.cc&&!A();)o=Q(l),o.operator=ae,o.prefix=!1,o.K=l,L(l),x(),l=I(o,"UpdateExpression");return l}function Fe(o,l){if(V(jn)){var c=Q(o);return c.object=o,c.Wa=le(!0),c.bb=!1,Fe(I(c,"MemberExpression"),l)}return V(Rt)?(c=Q(o),c.object=o,c.Wa=Z(),c.bb=!0,E(Ot),Fe(I(c,"MemberExpression"),l)):!l&&V(ue)?(c=Q(o),c.callee=o,c.arguments=vt(se,!1),Fe(I(c,"CallExpression"),l)):o}function Ze(){switch(R){case wn:var o=$();return x(),I(o,"ThisExpression");case je:return le();case Ue:case Qe:case sn:return o=$(),o.value=ae,o.raw=b.slice(X,Ee),x(),I(o,"Literal");case kn:case Cn:case En:return o=$(),o.value=R.$a,o.raw=R.l,x(),I(o,"Literal");case ue:o=xt;var l=X;x();var c=Z();return c.start=l,c.end=Ee,N.C&&(c.X.start=o,c.X.end=bt),N.Xa&&(c.j=[l,Ee]),E(se),c;case Rt:return o=$(),x(),o.elements=vt(Ot,!0,!0),I(o,"ArrayExpression");case De:for(o=$(),l=!0,c=!1,o.h=[],x();!V(Ie);){if(l)l=!1;else if(E(ye),N.sb&&V(Ie))break;var p={key:R===Ue||R===Qe?Ze():le(!0)},O=!1;if(V(_e)){p.value=Z(!0);var Y=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?F():(O=c=!0,Y=p.kind=p.key.name,p.key=R===Ue||R===Qe?Ze():le(!0),R!==ue&&F(),p.value=gt($(),!1));if(p.key.type==="Identifier"&&(re||c))for(var ee=0;ee<o.h.length;++ee){var Ae=o.h[ee];if(Ae.key.name===p.key.name){var Nt=Y===Ae.kind||O&&Ae.kind==="init"||Y==="init"&&(Ae.kind==="get"||Ae.kind==="set");Nt&&!re&&Y==="init"&&Ae.kind==="init"&&(Nt=!1),Nt&&n(p.key.start,"Redefinition of property")}}o.h.push(p)}return I(o,"ObjectExpression");case jt:return o=$(),x(),gt(o,!1);case Sn:return o=$(),x(),o.callee=Fe(Ze(),!0),o.arguments=V(ue)?vt(se,!1):yr,I(o,"NewExpression")}F()}function gt(o,l){R===je?o.id=le():l?F():o.id=null,o.oa=[];var c=!0;for(E(ue);!V(se);)c?c=!1:E(ye),o.oa.push(le());c=Be;var p=z;if(Be=!0,z=[],o.body=be(!0),Be=c,z=p,re||o.body.body.length&&ke(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 I(o,l?"FunctionDeclaration":"FunctionExpression")}function vt(o,l,c){for(var p=[],O=!0;!V(o);){if(O)O=!1;else if(E(ye),l&&N.sb&&V(o))break;p.push(c&&R===ye?null:Z(!0))}return p}function le(o){var l=$();return o&&N.yb==="everywhere"&&(o=!1),R===je?(!o&&(N.yb&&Ar(ae)||re&&Nn(ae))&&b.slice(X,Ee).indexOf("\\")===-1&&n(X,"The keyword '"+ae+"' is reserved"),l.name=ae):o&&R.l?l.name=R.l:F(),Me=!1,x(),I(l,"Identifier")}e.version="0.5.0";var N,b="",Ce,yt;e.parse=function(o,l){b=String(o),Ce=b.length,N=l||{};for(var c in an)Object.prototype.hasOwnProperty.call(N,c)||(N[c]=an[c]);for(yt=N.sourceFile,Se=1,f=ce=0,Me=!0,h(),c=N.dc,St=ve=f,N.C&&(wt=new a),Be=re=!1,z=[],y(),o=c||$(),l=!0,c||(o.body=[]);R!==kt;)c=U(),o.body.push(c),l&&ke(c)&&K(!0),l=!1;return I(o,"Program")};var an={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,X=0,Ee=0,xt,bt,R,ae,Me,Se,ce,St=0,ve=0,wt,Be,z,re,yr=[],Ue={type:"num"},sn={type:"regexp"},Qe={type:"string"},je={type:"name"},kt={type:"eof"},Ct={l:"break"},Et={l:"case",m:!0},ln={l:"catch"},cn={l:"continue"},un={l:"debugger"},dn={l:"default"},fn={l:"do",W:!0},hn={l:"else",m:!0},pn={l:"finally"},mn={l:"for",W:!0},jt={l:"function"},gn={l:"if"},vn={l:"return",m:!0},It={l:"switch"},yn={l:"throw",m:!0},xn={l:"try"},Tt={l:"var"},At={l:"while",W:!0},bn={l:"with"},Sn={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:cn,debugger:un,default:dn,do:fn,else:hn,finally:pn,for:mn,function:jt,if:gn,return:vn,switch:It,throw:yn,try:xn,var:Tt,while:At,with:bn,null:kn,true:Cn,false:En,new:Sn,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:"]"},De={type:"{",m:!0},Ie={type:"}"},ue={type:"(",m:!0},se={type:")"},ye={type:",",m:!0},de={type:";",m:!0},_e={type:":",m:!0},jn={type:"."},In={type:"?",m:!0},Tn={L:10,m:!0},An={Cb:!0,m:!0},we={Cb:!0,m:!0},br={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},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,Te,Pt={kind:"loop"},Nr={kind:"switch"}},Dt=Dt=typeof globalThis>"u"?void 0:globalThis;_r(Dt.j||(Dt.j={}));function m(e,t){typeof e=="string"&&(e=Oe(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=Vt(this,this.ra,null),this.Na=this.N.object,this.ra=Oe(this.ba.join(`
|
|
3
|
+
}`})]})}const Wt=j.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{}}),qn=j.createContext({registeredComponents:{}});function Fr(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const Zn=({builder:e,context:t,event:r,state:n})=>Object.entries({state:n,Builder:e,builder:e,context:t,event:r}),Mr=()=>({isEditing:v.isEditing(),isBrowser:v.isBrowser(),isServer:!v.isBrowser(),getUserAttributes:()=>v.getUserAttributes()}),Br=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Ur=({code:e,builder:t,context:r,event:n,localState:i,rootSetState:a,rootState:s})=>{const d=Zn({builder:t,context:r,event:n,state:Dr(s,i,a)});return new Function(...d.map(([h])=>h),e)(...d.map(([,h])=>h))};function Dr(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 Qn=(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 D,_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 c=b,p=1,P=0;;){rt.lastIndex=P;var Y=rt.exec(c);if(Y&&Y.index<o)++p,P=Y.index+Y[0].length;else break}throw c={line:p,ab:o-P},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=o,l.X=c,l.o=f,l}function i(o){o=o.split(" ");for(var l=Object.create(null),c=0;c<o.length;c++)l[o[c]]=!0;return function(p){return l[p]||!1}}function a(){this.line=Se,this.ab=f-ce}function s(o,l){Ee=f,N.C&&(bt=new a),O=o,h(),ae=l,Me=o.m}function d(){for(var o=f,l=N.va&&N.C&&new a,c=b.charCodeAt(f+=2);f<Ce&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=b.charCodeAt(f);N.va&&N.va(!1,b.slice(o+2,f),o,f,l,N.C&&new a)}function h(){for(;f<Ce;){var o=b.charCodeAt(f);if(o===32)++f;else if(o===13)++f,o=b.charCodeAt(f),o===10&&++f,N.C&&(++Se,ce=f);else if(o===10||o===8232||o===8233)++f,N.C&&(++Se,ce=f);else if(8<o&&14>o)++f;else if(o===47)if(o=b.charCodeAt(f+1),o===42){o=void 0;var l=N.va&&N.C&&new a,c=f,p=b.indexOf("*/",f+=2);if(p===-1&&n(f-2,"Unterminated comment"),f=p+2,N.C)for(rt.lastIndex=c;(o=rt.exec(b))&&o.index<f;)++Se,ce=o.index+o[0].length;N.va&&N.va(!0,b.slice(c+2,p),c,f,l,N.C&&new a)}else if(o===47)d();else break;else if(o===160)++f;else if(5760<=o&&Or.test(String.fromCharCode(o)))++f;else break}}function g(o){switch(o){case 46:o=b.charCodeAt(f+1),48<=o&&57>=o?I(!0):(++f,s(jn));return;case 40:return++f,s(ue);case 41:return++f,s(se);case 59:return++f,s(de);case 44:return++f,s(ye);case 91:return++f,s(Rt);case 93:return++f,s(Ot);case 123:return++f,s(De);case 125:return++f,s(Ie);case 58:return++f,s(_e);case 63:return++f,s(In);case 48:if(o=b.charCodeAt(f+1),o===120||o===88){f+=2,o=W(16),o===null&&n(X+2,"Expected hexadecimal number"),r(b.charCodeAt(f))&&n(f,"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 I(!1);case 34:case 39:f++;for(var l="";;){f>=Ce&&n(X,"Unterminated string constant");var c=b.charCodeAt(f);if(c===o){++f,s(Qe,l);break}if(c===92){c=b.charCodeAt(++f);var p=/^[0-7]+/.exec(b.slice(f,f+3));for(p&&(p=p[0]);p&&255<parseInt(p,8);)p=p.slice(0,-1);if(p==="0"&&(p=null),++f,p)re&&n(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),f+=p.length-1;else switch(c){case 110:l+=`
|
|
4
|
+
`;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(F(2));break;case 117:l+=String.fromCharCode(F(4));break;case 85:l+=String.fromCharCode(F(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:b.charCodeAt(f)===10&&++f;case 10:N.C&&(ce=f,++Se);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||n(X,"Unterminated string constant"),l+=String.fromCharCode(c),++f}return;case 47:o=b.charCodeAt(f+1),Me?(++f,_()):o===61?S(we,2):S(Tn,1);return;case 37:case 42:b.charCodeAt(f+1)===61?S(we,2):S(Tr,1);return;case 124:case 38:l=b.charCodeAt(f+1),l===o?S(o===124?On:Pn,2):l===61?S(we,2):S(o===124?Sr:kr,1);return;case 94:b.charCodeAt(f+1)===61?S(we,2):S(wr,1);return;case 43:case 45:l=b.charCodeAt(f+1),l===o?l===45&&b.charCodeAt(f+2)===62&&nt.test(b.slice(ve,f))?(f+=3,d(),h(),y()):S(br,2):l===61?S(we,2):S(Ir,1);return;case 60:case 62:l=b.charCodeAt(f+1),c=1,l===o?(c=o===62&&b.charCodeAt(f+2)===62?3:2,b.charCodeAt(f+c)===61?S(we,c+1):S(jr,c)):l===33&&o===60&&b.charCodeAt(f+2)===45&&b.charCodeAt(f+3)===45?(f+=4,d(),h(),y()):(l===61&&(c=b.charCodeAt(f+2)===61?3:2),S(Er,c));return;case 61:case 33:b.charCodeAt(f+1)===61?S(Cr,b.charCodeAt(f+2)===61?3:2):S(o===61?An:Rn,1);return;case 126:return S(Rn,1)}return!1}function y(o){if(o?f=X+1:X=f,N.C&&(xt=new a),o)return _();if(f>=Ce)return s(kt);if(o=b.charCodeAt(f),r(o)||o===92)return G();if(g(o)===!1){if(o=String.fromCharCode(o),o==="\\"||Fn.test(o))return G();n(f,"Unexpected character '"+o+"'")}}function S(o,l){var c=b.slice(f,f+l);f+=l,s(o,c)}function _(){for(var o,l,c=f;;){f>=Ce&&n(c,"Unterminated regexp");var p=b.charAt(f);if(nt.test(p)&&n(c,"Unterminated regexp"),o)o=!1;else{if(p==="[")l=!0;else if(p==="]"&&l)l=!1;else if(p==="/"&&!l)break;o=p==="\\"}++f}o=b.slice(c,f),++f,(l=H())&&!/^[gmi]*$/.test(l)&&n(c,"Invalid regexp flag");try{var P=new RegExp(o,l)}catch(Y){throw Y instanceof SyntaxError&&n(c,Y.message),Y}s(sn,P)}function W(o,l){for(var c=f,p=0,P=l===void 0?1/0:l,Y=0;Y<P;++Y){var ee=b.charCodeAt(f);if(ee=97<=ee?ee-97+10:65<=ee?ee-65+10:48<=ee&&57>=ee?ee-48:1/0,ee>=o)break;++f,p=p*o+ee}return f===c||l!==void 0&&f-c!==l?null:p}function I(o){var l=f,c=!1,p=b.charCodeAt(f)===48;o||W(10)!==null||n(l,"Invalid number"),b.charCodeAt(f)===46&&(++f,W(10),c=!0),o=b.charCodeAt(f),(o===69||o===101)&&(o=b.charCodeAt(++f),o!==43&&o!==45||++f,W(10)===null&&n(l,"Invalid number"),c=!0),r(b.charCodeAt(f))&&n(f,"Identifier directly after number"),o=b.slice(l,f);var P;c?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 F(o){return o=W(16,o),o===null&&n(X,"Bad character escape sequence"),o}function H(){Te=!1;for(var o,l=!0,c=f;;){var p=b.charCodeAt(f);if(t(p))Te&&(o+=b.charAt(f)),++f;else if(p===92){Te||(o=b.slice(c,f)),Te=!0,b.charCodeAt(++f)!==117&&n(f,"Expecting Unicode escape sequence \\uXXXX"),++f,p=F(4);var P=String.fromCharCode(p);P||n(f-1,"Invalid Unicode escape"),(l?r(p):t(p))||n(f-4,"Invalid Unicode escape"),o+=P}else break;l=!1}return Te?o:b.slice(c,f)}function G(){var o=H(),l=je;!Te&&Rr(o)&&(l=xr[o]),s(l,o)}function x(){St=X,ve=Ee,wt=bt,y()}function K(o){if(re=o,f=X,N.C)for(;f<ce;)ce=b.lastIndexOf(`
|
|
5
|
+
`,ce-2)+1,--Se;h(),y()}function ie(){this.type=null,this.start=X,this.end=null}function oe(){this.start=xt,this.end=null,yt&&(this.source=yt)}function $(){var o=new ie;return N.C&&(o.X=new oe),N.vb&&(o.sourceFile=N.vb),N.Xa&&(o.j=[X,0]),o}function Q(o){var l=new ie;return l.start=o.start,N.C&&(l.X=new oe,l.X.start=o.X.start),N.Xa&&(l.j=[o.j[0],0]),l}function T(o,l){return o.type=l,o.end=ve,N.C&&(o.X.end=wt),N.Xa&&(o.j[1]=ve),o}function ke(o){return o.type==="ExpressionStatement"&&o.la.type==="Literal"&&o.la.value==="use strict"}function V(o){return O===o?(x(),!0):!1}function R(){return!N.fc&&(O===kt||O===Ie||nt.test(b.slice(ve,X)))}function A(){V(de)||R()||M()}function E(o){O===o?x():M()}function M(){n(X,"Unexpected token")}function L(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 U(){(O===Tn||O===we&&ae==="/=")&&y(!0);var o=O,l=$();switch(o){case Ct:case cn:x();var c=o===Ct;V(de)||R()?l.label=null:O!==je?M():(l.label=le(),A());for(var p=0;p<z.length;++p){var P=z[p];if((l.label===null||P.name===l.label.name)&&(P.kind!==null&&(c||P.kind==="loop")||l.label&&c))break}return p===z.length&&n(l.start,"Unsyntactic "+o.l),T(l,c?"BreakStatement":"ContinueStatement");case un:return x(),A(),T(l,"DebuggerStatement");case fn:return x(),z.push(Pt),l.body=U(),z.pop(),E(At),l.test=ge(),A(),T(l,"DoWhileStatement");case mn:return x(),z.push(Pt),E(ue),O===de?ft(l,null):O===Tt?(o=$(),x(),on(o,!0),T(o,"VariableDeclaration"),o.fa.length===1&&V(et)?rn(l,o):ft(l,o)):(o=Z(!1,!0),V(et)?(L(o),rn(l,o)):ft(l,o));case jt:return x(),gt(l,!0);case gn:return x(),l.test=ge(),l.da=U(),l.alternate=V(hn)?U():null,T(l,"IfStatement");case vn:return Be||N.Ib||n(X,"'return' outside of function"),x(),V(de)||R()?l.K=null:(l.K=Z(),A()),T(l,"ReturnStatement");case It:for(x(),l.Qb=ge(),l.tb=[],E(De),z.push(Nr);O!==Ie;)O===Et||O===dn?(o=O===Et,p&&T(p,"SwitchCase"),l.tb.push(p=$()),p.da=[],x(),o?p.test=Z():(c&&n(St,"Multiple default clauses"),c=!0,p.test=null),E(_e)):(p||M(),p.da.push(U()));return p&&T(p,"SwitchCase"),x(),z.pop(),T(l,"SwitchStatement");case yn:return x(),nt.test(b.slice(ve,X))&&n(ve,"Illegal newline after throw"),l.K=Z(),A(),T(l,"ThrowStatement");case xn:return x(),l.block=be(),l.Ea=null,O===ln&&(o=$(),x(),E(ue),o.Ua=le(),re&&tt(o.Ua.name)&&n(o.Ua.start,"Binding "+o.Ua.name+" in strict mode"),E(se),o.body=be(),l.Ea=T(o,"CatchClause")),l.fb=V(pn)?be():null,l.Ea||l.fb||n(l.start,"Missing catch or finally clause"),T(l,"TryStatement");case Tt:return x(),on(l),A(),T(l,"VariableDeclaration");case At:return x(),l.test=ge(),z.push(Pt),l.body=U(),z.pop(),T(l,"WhileStatement");case bn:return re&&n(X,"'with' in strict mode"),x(),l.object=ge(),l.body=U(),T(l,"WithStatement");case De:return be();case de:return x(),T(l,"EmptyStatement");default:if(c=ae,P=Z(),o===je&&P.type==="Identifier"&&V(_e)){for(p=0;p<z.length;++p)z[p].name===c&&n(P.start,"Label '"+c+"' is already declared");return z.push({name:c,kind:O.W?"loop":O===It?"switch":null}),l.body=U(),z.pop(),l.label=P,T(l,"LabeledStatement")}return l.la=P,A(),T(l,"ExpressionStatement")}}function ge(){E(ue);var o=Z();return E(se),o}function be(o){var l=$(),c=!0,p=!1;for(l.body=[],E(De);!V(Ie);){var P=U();if(l.body.push(P),c&&o&&ke(P)){var Y=p;K(p=!0)}c=!1}return p&&!Y&&K(!1),T(l,"BlockStatement")}function ft(o,l){return o.ua=l,E(de),o.test=O===de?null:Z(),E(de),o.update=O===se?null:Z(),E(se),o.body=U(),z.pop(),T(o,"ForStatement")}function rn(o,l){return o.left=l,o.right=Z(),E(se),o.body=U(),z.pop(),T(o,"ForInStatement")}function on(o,l){for(o.fa=[],o.kind="var";;){var c=$();if(c.id=le(),re&&tt(c.id.name)&&n(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=V(An)?Z(!0,l):null,o.fa.push(T(c,"VariableDeclarator")),!V(ye))break}}function Z(o,l){var c=ht(l);if(!o&&O===ye){for(o=Q(c),o.xb=[c];V(ye);)o.xb.push(ht(l));return T(o,"SequenceExpression")}return c}function ht(o){var l=pt(mt(),-1,o);if(V(In)){var c=Q(l);c.test=l,c.da=Z(!0),E(_e),c.alternate=Z(!0,o),l=T(c,"ConditionalExpression")}return O.Cb?(c=Q(l),c.operator=ae,c.left=l,x(),c.right=ht(o),L(l),T(c,"AssignmentExpression")):l}function pt(o,l,c){var p=O.L;if(p!==null&&(!c||O!==et)&&p>l){var P=Q(o);return P.left=o,P.operator=ae,o=O,x(),P.right=pt(mt(),p,c),p=T(P,o===On||o===Pn?"LogicalExpression":"BinaryExpression"),pt(p,l,c)}return o}function mt(){if(O.prefix){var o=$(),l=O.$b;return o.operator=ae,Me=o.prefix=!0,x(),o.K=mt(),l?L(o.K):re&&o.operator==="delete"&&o.K.type==="Identifier"&&n(o.start,"Deleting local variable in strict mode"),T(o,l?"UpdateExpression":"UnaryExpression")}for(l=Fe(Ze());O.cc&&!R();)o=Q(l),o.operator=ae,o.prefix=!1,o.K=l,L(l),x(),l=T(o,"UpdateExpression");return l}function Fe(o,l){if(V(jn)){var c=Q(o);return c.object=o,c.Wa=le(!0),c.bb=!1,Fe(T(c,"MemberExpression"),l)}return V(Rt)?(c=Q(o),c.object=o,c.Wa=Z(),c.bb=!0,E(Ot),Fe(T(c,"MemberExpression"),l)):!l&&V(ue)?(c=Q(o),c.callee=o,c.arguments=vt(se,!1),Fe(T(c,"CallExpression"),l)):o}function Ze(){switch(O){case wn:var o=$();return x(),T(o,"ThisExpression");case je:return le();case Ue:case Qe:case sn:return o=$(),o.value=ae,o.raw=b.slice(X,Ee),x(),T(o,"Literal");case kn:case Cn:case En:return o=$(),o.value=O.$a,o.raw=O.l,x(),T(o,"Literal");case ue:o=xt;var l=X;x();var c=Z();return c.start=l,c.end=Ee,N.C&&(c.X.start=o,c.X.end=bt),N.Xa&&(c.j=[l,Ee]),E(se),c;case Rt:return o=$(),x(),o.elements=vt(Ot,!0,!0),T(o,"ArrayExpression");case De:for(o=$(),l=!0,c=!1,o.h=[],x();!V(Ie);){if(l)l=!1;else if(E(ye),N.sb&&V(Ie))break;var p={key:O===Ue||O===Qe?Ze():le(!0)},P=!1;if(V(_e)){p.value=Z(!0);var Y=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?M():(P=c=!0,Y=p.kind=p.key.name,p.key=O===Ue||O===Qe?Ze():le(!0),O!==ue&&M(),p.value=gt($(),!1));if(p.key.type==="Identifier"&&(re||c))for(var ee=0;ee<o.h.length;++ee){var Ae=o.h[ee];if(Ae.key.name===p.key.name){var Nt=Y===Ae.kind||P&&Ae.kind==="init"||Y==="init"&&(Ae.kind==="get"||Ae.kind==="set");Nt&&!re&&Y==="init"&&Ae.kind==="init"&&(Nt=!1),Nt&&n(p.key.start,"Redefinition of property")}}o.h.push(p)}return T(o,"ObjectExpression");case jt:return o=$(),x(),gt(o,!1);case Sn:return o=$(),x(),o.callee=Fe(Ze(),!0),o.arguments=V(ue)?vt(se,!1):yr,T(o,"NewExpression")}M()}function gt(o,l){O===je?o.id=le():l?M():o.id=null,o.oa=[];var c=!0;for(E(ue);!V(se);)c?c=!1:E(ye),o.oa.push(le());c=Be;var p=z;if(Be=!0,z=[],o.body=be(!0),Be=c,z=p,re||o.body.body.length&&ke(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 P=0;P<c;++P)p.name===o.oa[P].name&&n(p.start,"Argument name clash in strict mode")}return T(o,l?"FunctionDeclaration":"FunctionExpression")}function vt(o,l,c){for(var p=[],P=!0;!V(o);){if(P)P=!1;else if(E(ye),l&&N.sb&&V(o))break;p.push(c&&O===ye?null:Z(!0))}return p}function le(o){var l=$();return o&&N.yb==="everywhere"&&(o=!1),O===je?(!o&&(N.yb&&Ar(ae)||re&&Nn(ae))&&b.slice(X,Ee).indexOf("\\")===-1&&n(X,"The keyword '"+ae+"' is reserved"),l.name=ae):o&&O.l?l.name=O.l:M(),Me=!1,x(),T(l,"Identifier")}e.version="0.5.0";var N,b="",Ce,yt;e.parse=function(o,l){b=String(o),Ce=b.length,N=l||{};for(var c in an)Object.prototype.hasOwnProperty.call(N,c)||(N[c]=an[c]);for(yt=N.sourceFile,Se=1,f=ce=0,Me=!0,h(),c=N.dc,St=ve=f,N.C&&(wt=new a),Be=re=!1,z=[],y(),o=c||$(),l=!0,c||(o.body=[]);O!==kt;)c=U(),o.body.push(c),l&&ke(c)&&K(!0),l=!1;return T(o,"Program")};var an={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,X=0,Ee=0,xt,bt,O,ae,Me,Se,ce,St=0,ve=0,wt,Be,z,re,yr=[],Ue={type:"num"},sn={type:"regexp"},Qe={type:"string"},je={type:"name"},kt={type:"eof"},Ct={l:"break"},Et={l:"case",m:!0},ln={l:"catch"},cn={l:"continue"},un={l:"debugger"},dn={l:"default"},fn={l:"do",W:!0},hn={l:"else",m:!0},pn={l:"finally"},mn={l:"for",W:!0},jt={l:"function"},gn={l:"if"},vn={l:"return",m:!0},It={l:"switch"},yn={l:"throw",m:!0},xn={l:"try"},Tt={l:"var"},At={l:"while",W:!0},bn={l:"with"},Sn={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:cn,debugger:un,default:dn,do:fn,else:hn,finally:pn,for:mn,function:jt,if:gn,return:vn,switch:It,throw:yn,try:xn,var:Tt,while:At,with:bn,null:kn,true:Cn,false:En,new:Sn,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:"]"},De={type:"{",m:!0},Ie={type:"}"},ue={type:"(",m:!0},se={type:")"},ye={type:",",m:!0},de={type:";",m:!0},_e={type:":",m:!0},jn={type:"."},In={type:"?",m:!0},Tn={L:10,m:!0},An={Cb:!0,m:!0},we={Cb:!0,m:!0},br={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},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,Te,Pt={kind:"loop"},Nr={kind:"switch"}},Dt=Dt=typeof globalThis>"u"?void 0:globalThis;_r(Dt.j||(Dt.j={}));function m(e,t){typeof e=="string"&&(e=Oe(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=Vt(this,this.ra,null),this.Na=this.N.object,this.ra=Oe(this.ba.join(`
|
|
6
6
|
`),"polyfills"),this.ba=void 0,st(this.ra),a=new k(this.ra,this.N),a.done=!1,this.o=[a],this.Eb(),this.value=void 0,this.ra=n,a=new k(this.ra,this.N),a.done=!1,this.o.length=0,this.o[0]=a}var Mn={C:!0,kc:5},Ht={configurable:!0,enumerable:!0,writable:!1},w={configurable:!0,enumerable:!1,writable:!0},ne={configurable:!0,enumerable:!1,writable:!1},Ve={configurable:!1,enumerable:!1,writable:!1},Bn={configurable:!1,enumerable:!0,writable:!0},er={STEP_ERROR:!0},Ne={SCOPE_REFERENCE:!0},ze={VALUE_IN_DESCRIPTOR:!0},Re={REGEXP_TIMEOUT:!0},Un=[],he=null,Ke=null,xe=typeof globalThis>"u"?void 0:globalThis,Vr=["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 Kt(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)}}m.prototype.REGEXP_MODE=2;m.prototype.REGEXP_THREAD_TIMEOUT=1e3;m.prototype.POLYFILL_TIMEOUT=1e3;D=m.prototype;D.P=!1;D.Ka=!1;D.Kb=0;D.ic=0;function Oe(e,t){var r={},n;for(n in Mn)r[n]=Mn[n];return r.sourceFile=t,xe.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=Oe(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};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 k(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!==er)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};D.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Lr(e,t){e.g(t,"NaN",NaN,Ve),e.g(t,"Infinity",1/0,Ve),e.g(t,"undefined",void 0,Ve),e.g(t,"window",t,Ht),e.g(t,"this",t,Ve),e.g(t,"self",t),e.M=new B(null),e.Z=new B(e.M),$r(e,t),Wr(e,t),t.xa=e.M,e.g(t,"constructor",e.v,w),Hr(e,t),Kr(e,t),Gr(e,t),zr(e,t),Xr(e,t),Yr(e,t),Jr(e,t),qr(e,t),Zr(e,t);var r=e.i(function(){throw EvalError("Can't happen")},!1);r.eval=!0,e.g(t,"eval",r,w),e.g(t,"parseInt",e.i(parseInt,!1),w),e.g(t,"parseFloat",e.i(parseFloat,!1),w),e.g(t,"isNaN",e.i(isNaN,!1),w),e.g(t,"isFinite",e.i(isFinite,!1),w);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(d){C(e,e.Gb,d.message)}}}(n[i][0]),e.g(t,n[i][1],e.i(r,!1),w);r=function(a){return Dn(e,!1,arguments)},e.g(t,"setTimeout",e.i(r,!1),w),r=function(a){return Dn(e,!0,arguments)},e.g(t,"setInterval",e.i(r,!1),w),r=function(a){_n(e,a)},e.g(t,"clearTimeout",e.i(r,!1),w),r=function(a){_n(e,a)},e.g(t,"clearInterval",e.i(r,!1),w),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 $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 d=0;d<s.length;d++){var h=s[d];r.test(h)||C(e,e.T,"Invalid function argument: "+h)}s=s.join(", ")}try{var g=Oe("(function("+s+") {"+a+"})","function"+e.Wb++)}catch(y){C(e,e.T,"Invalid code: "+y.message)}return g.body.length!==1&&C(e,e.T,"Invalid code in function body"),Xt(e,g.body[0].la,e.N,"anonymous")};e.O=e.i(n,!0),e.g(t,"Function",e.O,w),e.g(e.O,"prototype",e.Z,w),e.g(e.Z,"constructor",e.O,w),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,ne),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 B?s.F=tr(e,a):C(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),w),n=function(){return this.valueOf()},J(e,e.O,"valueOf",n),e.g(e.O,"valueOf",e.i(n,!1),w)}function Wr(e,t){function r(i){i!=null||C(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 B)){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,w),e.g(e.M,"constructor",e.v,w),e.g(t,"Object",e.v,w),n=function(i){return r(i),fe(e,Object.getOwnPropertyNames(i instanceof B?i.h:i))},e.g(e.v,"getOwnPropertyNames",e.i(n,!1),w),n=function(i){return r(i),i instanceof B&&(i=i.h),fe(e,Object.keys(i))},e.g(e.v,"keys",e.i(n,!1),w),n=function(i){return i===null?e.s(null):(i instanceof B||C(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),w),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 B||C(e,e.j,"Object.defineProperty called on non-object: "+i),s instanceof B||C(e,e.j,"Property description must be an object"),!i.preventExtensions||a in i.h||C(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),w),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 B||C(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+i),a=String(a),a in i.h){var s=Object.getOwnPropertyDescriptor(i.h,a),d=i.V[a];return i=i.Y[a],a=e.s(e.M),d||i?(e.g(a,"get",d),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),w),n=function(i){return r(i),pe(e,i)},e.g(e.v,"getPrototypeOf",e.i(n,!1),w),n=function(i){return!!i&&!i.preventExtensions},e.g(e.v,"isExtensible",e.i(n,!1),w),n=function(i){return i instanceof B&&(i.preventExtensions=!0),i},e.g(e.v,"preventExtensions",e.i(n,!1),w),J(e,e.v,"toString",B.prototype.toString),J(e,e.v,"toLocaleString",B.prototype.toString),J(e,e.v,"valueOf",B.prototype.valueOf),n=function(i){return r(this),this instanceof B?String(i)in this.h:this.hasOwnProperty(i)},J(e,e.v,"hasOwnProperty",n),n=function(i){return r(this),this instanceof B?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 Hr(e,t){var r=function(n){var i=me(e)?this:Pe(e),a=arguments[0];if(arguments.length===1&&typeof a=="number")isNaN(Kt(a))&&C(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,w),r=function(n){return n&&n.H==="Array"},e.g(e.qa,"isArray",e.i(r,!1),w),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 Kr(e,t){var r=function(n){return n=arguments.length?xe.String(n):"",me(e)?(this.data=n,this):n};for(e.J=e.i(r,!0),e.g(t,"String",e.J,w),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),w),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){C(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,q(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!==Re&&a(fe(e,n));else{var d=e.ha(),h=We(e,n,d,a);d.onmessage=function(g){clearTimeout(h),a(fe(e,g.data))},d.postMessage(["split",s,n,i])}return}n=s.split(n,i),a(fe(e,n))},He(e,e.J,"split",r),r=function(n,i){var a=String(this);if(n=q(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!==Re&&i(n&&fe(e,n));else{var s=e.ha(),d=We(e,n,s,i);s.onmessage=function(h){clearTimeout(d),i(h.data&&fe(e,h.data))},s.postMessage(["match",a,n])}else n=a.match(n),i(n&&fe(e,n))},He(e,e.J,"match",r),r=function(n,i){var a=String(this);if(q(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!==Re&&i(n);else{var s=e.ha(),d=We(e,n,s,i);s.onmessage=function(h){clearTimeout(d),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),q(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!==Re&&a(n);else{var d=e.ha(),h=We(e,n,d,a);d.onmessage=function(g){clearTimeout(h),a(g.data)},d.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 Gr(e,t){e.mb=e.i(function(r){return r=xe.Boolean(r),me(e)?(this.data=r,this):r},!0),e.g(t,"Boolean",e.mb,w)}function zr(e,t){var r=function(n){return n=arguments.length?xe.Number(n):0,me(e)?(this.data=n,this):n};for(e.aa=e.i(r,!0),e.g(t,"Number",e.aa,w),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]],Ve);r=function(n){try{return Number(this).toExponential(n)}catch(i){C(e,e.D,i.message)}},J(e,e.aa,"toExponential",r),r=function(n){try{return Number(this).toFixed(n)}catch(i){C(e,e.D,i.message)}},J(e,e.aa,"toFixed",r),r=function(n){try{return Number(this).toPrecision(n)}catch(i){C(e,e.D,i.message)}},J(e,e.aa,"toPrecision",r),r=function(n){try{return Number(this).toString(n)}catch(i){C(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){C(e,e.D,"toLocaleString: "+a.message)}},J(e,e.aa,"toLocaleString",r)}function Xr(e,t){var r=function(i,a){if(!me(e))return xe.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(xe.Date,s)),this};e.$=e.i(r,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,w),e.g(e.$,"now",e.i(Date.now,!1),w),e.g(e.$,"parse",e.i(Date.parse,!1),w),e.g(e.$,"UTC",e.i(Date.UTC,!1),w),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||C(e,e.j,i+" not called on a Date");for(var d=[],h=0;h<arguments.length;h++)d[h]=e.R(arguments[h]);return s[i].apply(s,d)}}(t[n]),J(e,e.$,t[n],r)}function Yr(e,t){var r=function(n,i){if(me(e))var a=this;else{if(i===void 0&&q(e,n,e.I))return n;a=e.s(e.Ma)}n=n===void 0?"":String(n),i=i?String(i):"",/^[gmi]*$/.test(i)||C(e,e.T,"Invalid regexp flag: "+i);try{var s=new xe.RegExp(n,i)}catch(d){C(e,e.T,d.message)}return Gt(e,a,s),a};e.I=e.i(r,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,w),e.g(e.I.h.prototype,"global",void 0,ne),e.g(e.I.h.prototype,"ignoreCase",void 0,ne),e.g(e.I.h.prototype,"multiline",void 0,ne),e.g(e.I.h.prototype,"source","(?:)",ne),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=fe(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!==Re&&(e.g(this,"lastIndex",s.lastIndex),i(a(n)));else{var d=e.ha(),h=We(e,s,d,i),g=this;d.onmessage=function(y){clearTimeout(h),e.g(g,"lastIndex",y.data[1]),i(a(y.data[0]))},d.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 _t(e,s,a),s},!0);return e.g(i,"prototype",e.Aa(e.D),w),e.g(i.h.prototype,"name",n,w),e.g(t,n,i,w),i}e.D=e.i(function(n){var i=me(e)?this:e.Aa(e.D);return _t(e,i,n),i},!0),e.g(t,"Error",e.D,w),e.g(e.D.h.prototype,"message","",w),e.g(e.D.h.prototype,"name","Error",w),r("EvalError"),e.ob=r("RangeError"),e.pb=r("ReferenceError"),e.T=r("SyntaxError"),e.j=r("TypeError"),e.Gb=r("URIError")}function qr(e,t){var r=e.s(e.M);e.g(t,"Math",r,w);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]],ne);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),w)}function Zr(e,t){var r=e.s(e.M);e.g(t,"JSON",r,w),t=function(n){try{var i=JSON.parse(String(n))}catch(a){C(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"?C(e,e.j,"Function replacer on JSON.stringify not supported"):i&&i.H==="Array"?(i=tr(e,i),i=i.filter(function(d){return typeof d=="string"||typeof d=="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(d){C(e,e.j,d.message)}return s},e.g(r,"stringify",e.i(t,!1))}function q(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 Gt(e,t,r){t.data=new RegExp(r.source,r.flags),e.g(t,"lastIndex",r.lastIndex,w),e.g(t,"source",r.source,ne),e.g(t,"global",r.global,ne),e.g(t,"ignoreCase",r.ignoreCase,ne),e.g(t,"multiline",r.multiline,ne)}function _t(e,t,r){r&&e.g(t,"message",String(r),w),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+`
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
${t}
|
|
13
13
|
${d}
|
|
14
14
|
`}).filter(Boolean).join(`
|
|
15
|
-
`),Vn=e=>e+"JSON",ni=({builder:e,context:t,event:r,rootState:n,localState:i,rootSetState:a,code:s})=>{const d={...n,...i},h=Zn({builder:e,context:t,event:r,state:d}),g=h.map(([
|
|
15
|
+
`),Vn=e=>e+"JSON",ni=({builder:e,context:t,event:r,rootState:n,localState:i,rootSetState:a,code:s})=>{const d={...n,...i},h=Zn({builder:e,context:t,event:r,state:d}),g=h.map(([I])=>{const F=Vn(I);return`var ${I} = ${F} === undefined ? undefined : JSON.parse(${F});`}).join(`
|
|
16
16
|
`),y=ti(s);if(y===""){v.logger.warn("Skipping evaluation of empty code block.");return}const S=`
|
|
17
17
|
function theFunction() {
|
|
18
18
|
${g}
|
|
@@ -20,19 +20,19 @@ function theFunction() {
|
|
|
20
20
|
${y}
|
|
21
21
|
}
|
|
22
22
|
theFunction();
|
|
23
|
-
`,_=(
|
|
23
|
+
`,_=(I,F)=>{const H=Qn(d,I,F);a==null||a(H)},W=function(I,F){h.forEach(([H,G])=>{const x=JSON.stringify(G);I.setProperty(F,Vn(H),x)}),I.setProperty(F,"setRootState",I.createNativeFunction(_))};try{const I=new m(S,W);return I.run(),I.pseudoToNative(I.value)}catch(I){v.logger.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.",{e:I});return}},ri=e=>v.isBrowser()?Ur(e):ni(e);function Ye({code:e,context:t,localState:r,rootState:n,rootSetState:i,event:a,isExpression:s=!0}){if(e===""){v.logger.warn("Skipping evaluation of empty code block.");return}const d={code:Br(e,{isExpression:s}),builder:Mr(),context:t,event:a,rootSetState:i,rootState:n,localState:r};try{return ri(d)}catch(h){v.logger.error("Failed code evaluation: "+h.message,{code:e});return}}const ii=({block:e,context:t,localState:r,rootState:n,rootSetState:i})=>{if(!e.bindings)return e;const a=v.fastClone(e),s={...a,properties:{...a.properties},actions:{...a.actions}};for(const d in e.bindings){const h=e.bindings[d],g=Ye({code:h,localState:r,rootState:n,rootSetState:i,context:t});Qn(s,d,g)}return s};function ot({block:e,context:t,shouldEvaluateBindings:r,localState:n,rootState:i,rootSetState:a}){const s=e;return r?ii({block:s,localState:n,rootState:i,rootSetState:a,context:t}):s}const oi=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Mt=e=>typeof e=="string"&&oi.includes(e.toLowerCase()),ai=({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(`
|
|
24
24
|
Could not find a registered component named "${n}".
|
|
25
25
|
If you registered it, is the file that registered it imported by the file that needs to render it?`)},si=({block:e,context:t})=>{const{repeat:r,...n}=e;if(!(r!=null&&r.collection))return;const i=Ye({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,g)=>({context:{...t,localState:{...t.localState,$index:g,$item:h,[s]:h,[`$${s}Index`]:g}},block:n}))},or={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Ln=(e,t=or)=>`@media (max-width: ${t[e].max}px)`,ar=({small:e,medium:t})=>{const r=v.fastClone(or);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},li=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),sr=e=>Object.entries(e).map(([r,n])=>{if(typeof n=="string")return`${li(r)}: ${n};`}).filter(v.checkIsDefined),ci=e=>sr(e).join(`
|
|
26
26
|
`),Bt=({mediaQuery:e,className:t,styles:r})=>{const n=`.${t} {
|
|
27
27
|
${ci(r)}
|
|
28
28
|
}`;return e?`${e} {
|
|
29
29
|
${n}
|
|
30
|
-
}`:n};function ct(e){return u.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},id:e.id})}function tn(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 v.checkIsDefined(n.hide)?!n.hide:v.checkIsDefined(n.show)?n.show:!0}function r(){var
|
|
30
|
+
}`:n};function ct(e){return u.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},id:e.id})}function tn(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 v.checkIsDefined(n.hide)?!n.hide:v.checkIsDefined(n.show)?n.show:!0}function r(){var I;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=ar(((I=a==null?void 0:a.meta)==null?void 0:I.breakpoints)||{}),d=i==null?void 0:i.large,h=i==null?void 0:i.medium,g=i==null?void 0:i.small,y=n.id;if(!y)return"";const S=d?Bt({className:y,styles:d}):"",_=h?Bt({className:y,styles:h,mediaQuery:Ln("medium",s)}):"",W=g?Bt({className:y,styles:g,mediaQuery:Ln("small",s)}):"";return[S,_,W].join(" ")}return u.jsx(u.Fragment,{children:r()&&t()?u.jsx(u.Fragment,{children:u.jsx(ct,{styles:r()})}):null})}function ui(e){return e.charAt(0).toUpperCase()+e.slice(1)}const di=e=>`on${ui(e)}`,fi=(e,t)=>r=>Ye({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function Lt(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(v.TARGET){case"vue2":case"vue3":a=a.replace("v-on:","");break;case"svelte":a=a.replace("on:","");break}t[a]=fi(i,e)}return t}function hi(e){return e.className=e.class,delete e.class,e}const pi=e=>({href:e.href});function at({block:e,context:t}){var n;const r={...pi(e),...e.properties,"builder-id":e.id,style:e.style?mi(e.style):void 0,class:[e.id,"builder-block",e.class,(n=e.properties)==null?void 0:n.class].filter(Boolean).join(" ")};return hi(r)}function mi(e){switch(v.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return sr(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}function $n(e){return u.jsxs(u.Fragment,{children:[" ",e.hasChildren?u.jsx(u.Fragment,{children:u.jsxs(e.Wrapper,{...at({block:e.block,context:e.context}),...Lt({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):u.jsx(u.Fragment,{children:u.jsx(e.Wrapper,{...at({block:e.block,context:e.context}),...Lt({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function gi(e){return u.jsx(e.Wrapper,{...e.wrapperProps,attributes:{...at({block:e.block,context:e.context}),...Lt({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 Wn(e){var n,i;const[t,r]=j.useState(()=>e.isInteractive?gi:e.componentRef);return u.jsx(u.Fragment,{children:e.componentRef?u.jsx(u.Fragment,{children:u.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=>u.jsx(ut,{block:a,context:e.context,registeredComponents:e.registeredComponents},"block-"+a.id)),(i=e.blockChildren)==null?void 0:i.map(a=>u.jsx(tn,{block:a,context:e.context},"block-style-"+a.id))]})}):null})}function yi(e){const[t,r]=j.useState(()=>e.repeatContext);return u.jsx(Wt.Provider,{value:t,children:u.jsx(ut,{block:e.block,context:t,registeredComponents:e.registeredComponents})})}function ut(e){var y,S,_,W;function t(){return ai({block:e.block,context:e.context,registeredComponents:e.registeredComponents})}function r(){return si({block:e.block,context:e.context})}function n(){var I;return(I=e.block.repeat)!=null&&I.collection?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(){var I,F;return"hide"in n()?!n().hide:"show"in n()?n().show:!((I=e.block.repeat)!=null&&I.collection&&!((F=r==null?void 0:r())!=null&&F.length))}function s(){var F;return!((F=t==null?void 0:t())!=null&&F.component)&&!r()?n().children??[]:[]}function d(){var I,F,H,G,x;return{blockChildren:n().children??[],componentRef:(I=t==null?void 0:t())==null?void 0:I.component,componentOptions:{...Fr(n()),builderContext:e.context,...((F=t==null?void 0:t())==null?void 0:F.name)==="Symbol"||((H=t==null?void 0:t())==null?void 0:H.name)==="Columns"?{builderComponents:e.registeredComponents}:{}},context:h,registeredComponents:e.registeredComponents,builderBlock:n(),includeBlockProps:((G=t==null?void 0:t())==null?void 0:G.noWrap)===!0,isInteractive:!((x=t==null?void 0:t())!=null&&x.isRSC)}}const[h,g]=j.useState(()=>e.context);return u.jsx(u.Fragment,{children:a()?u.jsx(u.Fragment,{children:(y=t==null?void 0:t())!=null&&y.noWrap?u.jsx(u.Fragment,{children:u.jsx(Wn,{componentRef:d().componentRef,componentOptions:d().componentOptions,blockChildren:d().blockChildren,context:d().context,registeredComponents:d().registeredComponents,builderBlock:d().builderBlock,includeBlockProps:d().includeBlockProps,isInteractive:d().isInteractive})}):u.jsxs(u.Fragment,{children:[Mt(i())?u.jsx(u.Fragment,{children:u.jsx($n,{Wrapper:i(),block:n(),context:e.context,hasChildren:!1})}):null,!Mt(i())&&r()?u.jsx(u.Fragment,{children:(S=r())==null?void 0:S.map((I,F)=>u.jsx(yi,{repeatContext:I.context,block:I.block,registeredComponents:e.registeredComponents},F))}):null,!Mt(i())&&!r()?u.jsx(u.Fragment,{children:u.jsxs($n,{Wrapper:i(),block:n(),context:e.context,hasChildren:!0,children:[u.jsx(Wn,{componentRef:d().componentRef,componentOptions:d().componentOptions,blockChildren:d().blockChildren,context:d().context,registeredComponents:d().registeredComponents,builderBlock:d().builderBlock,includeBlockProps:d().includeBlockProps,isInteractive:d().isInteractive}),(_=s())==null?void 0:_.map(I=>u.jsx(ut,{block:I,context:h,registeredComponents:e.registeredComponents},"block-"+I.id)),(W=s())==null?void 0:W.map(I=>u.jsx(tn,{block:I,context:h},"block-style-"+I.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;v.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;v.isEditing()&&!((i=e.blocks)!=null&&i.length)&&((a=window.parent)==null||a.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return u.jsxs(u.Fragment,{children:[u.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}),u.jsx("style",{children:`.div-02c7a115 {
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
align-items: stretch;
|
|
34
|
-
}`})]})}function dt(e){var n,i;const t=j.useContext(Wt),r=j.useContext(qn);return u.jsxs(xi,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,children:[e.blocks?u.jsx(u.Fragment,{children:(n=e.blocks)==null?void 0:n.map(a=>u.jsx(ut,{block:a,context:e.context||t,registeredComponents:e.registeredComponents||r.registeredComponents},"render-block-"+a.id))}):null,e.blocks?u.jsx(u.Fragment,{children:(i=e.blocks)==null?void 0:i.map(a=>u.jsx(tn,{block:a,context:e.context||t},"block-style-"+a.id))}):null]})}function lr(e){var G;const[t,r]=j.useState(()=>typeof e.space=="number"?e.space||0:20),[n,i]=j.useState(()=>e.columns||[]),[a,s]=j.useState(()=>e.stackColumnsAt||"tablet");function d(x){var K;return((K=n[x])==null?void 0:K.width)||100/n.length}function h(x){const K=t*(n.length-1)/n.length;return`calc(${d(x)}% - ${K}px)`}function g({stackedStyle:x,desktopStyle:K}){return a==="tablet"?x:K}function y({stackedStyle:x,desktopStyle:K}){return a==="never"?K:x}const[S,_]=j.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function W(){return{"--flex-dir":S,"--flex-dir-tablet":g({stackedStyle:S,desktopStyle:"row"})}}function
|
|
35
|
-
@media (max-width: ${
|
|
34
|
+
}`})]})}function dt(e){var n,i;const t=j.useContext(Wt),r=j.useContext(qn);return u.jsxs(xi,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,children:[e.blocks?u.jsx(u.Fragment,{children:(n=e.blocks)==null?void 0:n.map(a=>u.jsx(ut,{block:a,context:e.context||t,registeredComponents:e.registeredComponents||r.registeredComponents},"render-block-"+a.id))}):null,e.blocks?u.jsx(u.Fragment,{children:(i=e.blocks)==null?void 0:i.map(a=>u.jsx(tn,{block:a,context:e.context||t},"block-style-"+a.id))}):null]})}function lr(e){var G;const[t,r]=j.useState(()=>typeof e.space=="number"?e.space||0:20),[n,i]=j.useState(()=>e.columns||[]),[a,s]=j.useState(()=>e.stackColumnsAt||"tablet");function d(x){var K;return((K=n[x])==null?void 0:K.width)||100/n.length}function h(x){const K=t*(n.length-1)/n.length;return`calc(${d(x)}% - ${K}px)`}function g({stackedStyle:x,desktopStyle:K}){return a==="tablet"?x:K}function y({stackedStyle:x,desktopStyle:K}){return a==="never"?K:x}const[S,_]=j.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function W(){return{"--flex-dir":S,"--flex-dir-tablet":g({stackedStyle:S,desktopStyle:"row"})}}function I(x){const K=x===0?0:t,ie=h(x),oe=`${K}px`,$="100%",Q=0;return{width:ie,["marginLeft"]:oe,"--column-width-mobile":y({stackedStyle:$,desktopStyle:ie}),"--column-margin-left-mobile":y({stackedStyle:Q,desktopStyle:oe}),"--column-width-tablet":g({stackedStyle:$,desktopStyle:ie}),"--column-margin-left-tablet":g({stackedStyle:Q,desktopStyle:oe})}}function F(x){var ie,oe;return ar(((oe=(ie=e.builderContext.content)==null?void 0:ie.meta)==null?void 0:oe.breakpoints)||{})[x].max}function H(){return`
|
|
35
|
+
@media (max-width: ${F("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: ${F("small")}px) {
|
|
48
48
|
.${e.builderBlock.id}-breakpoints {
|
|
49
49
|
flex-direction: var(--flex-dir);
|
|
50
50
|
align-items: stretch;
|
|
@@ -55,7 +55,7 @@ theFunction();
|
|
|
55
55
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
`}return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:`builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,style:W(),children:[u.jsx(u.Fragment,{children:u.jsx(ct,{styles:H()})}),(G=e.columns)==null?void 0:G.map((x,K)=>j.createElement("div",{className:"builder-column div-53636e90-2",style:
|
|
58
|
+
`}return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:`builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,style:W(),children:[u.jsx(u.Fragment,{children:u.jsx(ct,{styles:H()})}),(G=e.columns)==null?void 0:G.map((x,K)=>j.createElement("div",{className:"builder-column div-53636e90-2",style:I(K),key:K},u.jsx(dt,{path:`component.options.columns.${K}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,blocks:x.blocks})))]}),u.jsx("style",{children:`.div-53636e90 {
|
|
59
59
|
display: flex;
|
|
60
60
|
line-height: normal;
|
|
61
61
|
}.div-53636e90-2 {
|
|
@@ -176,7 +176,7 @@ theFunction();
|
|
|
176
176
|
"${t}",${JSON.stringify(e)}, ${gr}
|
|
177
177
|
)`,Hi=({contentId:e,variationId:t})=>`window.${mr}(
|
|
178
178
|
"${t}", "${e}", ${gr}
|
|
179
|
-
)`;function $t(e){return u.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id||""})}function Gn(e){return Math.round(e*1e3)/1e3}const Ki=(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},Gi=e=>Ki(e,t=>{const r=t.getAttribute("builder-id")||t.id;return(r==null?void 0:r.indexOf("builder-"))===0}),zn=({event:e,target:t})=>{const r=t.getBoundingClientRect(),n=e.clientX-r.left,i=e.clientY-r.top,a=Gn(n/r.width),s=Gn(i/r.height);return{x:a,y:s}},zi=e=>{const t=e.target,r=t&&Gi(t),n=(r==null?void 0:r.getAttribute("builder-id"))||(r==null?void 0:r.id);return{targetBuilderElement:n||void 0,metadata:{targetOffset:t?zn({event:e,target:t}):void 0,builderTargetOffset:r?zn({event:e,target:r}):void 0,builderElementIndex:r&&n?[].slice.call(document.getElementsByClassName(n)).indexOf(r):void 0}}},Xi="0.7.
|
|
179
|
+
)`;function $t(e){return u.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id||""})}function Gn(e){return Math.round(e*1e3)/1e3}const Ki=(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},Gi=e=>Ki(e,t=>{const r=t.getAttribute("builder-id")||t.id;return(r==null?void 0:r.indexOf("builder-"))===0}),zn=({event:e,target:t})=>{const r=t.getBoundingClientRect(),n=e.clientX-r.left,i=e.clientY-r.top,a=Gn(n/r.width),s=Gn(i/r.height);return{x:a,y:s}},zi=e=>{const t=e.target,r=t&&Gi(t),n=(r==null?void 0:r.getAttribute("builder-id"))||(r==null?void 0:r.id);return{targetBuilderElement:n||void 0,metadata:{targetOffset:t?zn({event:e,target:t}):void 0,builderTargetOffset:r?zn({event:e,target:r}):void 0,builderElementIndex:r&&n?[].slice.call(document.getElementsByClassName(n)).indexOf(r):void 0}}},Xi="0.7.5",Yi=()=>{v.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 Xn=!1;const Ji=(e={})=>{var t,r;Xn||(Xn=!0,v.isBrowser()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:v.TARGET,version:Xi,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,d=n.data.arguments||[],h=n.data.id,g=new Function(s);let y,S=null;try{y=g.apply(null,d)}catch(_){S=_}S?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:h,error:S.message}},"*"):y&&typeof y.then=="function"?y.then(_=>{var W;(W=window.parent)==null||W.postMessage({type:"builder.evaluateResult",data:{id:h,result:_}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:y,id:h}},"*");break}}})))};function qi(e){var ie,oe,$,Q,T,ke,V;const t=j.useRef(null),[r,n]=j.useState(()=>0);function i(R){var E,M,L,U,ge;const A={...e.builderContextSignal.content,...R,data:{...(E=e.builderContextSignal.content)==null?void 0:E.data,...R==null?void 0:R.data},meta:{...(M=e.builderContextSignal.content)==null?void 0:M.meta,...R==null?void 0:R.meta,breakpoints:((L=R==null?void 0:R.meta)==null?void 0:L.breakpoints)||((ge=(U=e.builderContextSignal.content)==null?void 0:U.meta)==null?void 0:ge.breakpoints)}};e.setBuilderContextSignal(be=>({...be,content:A}))}j.useState(()=>0);const[a,s]=j.useState(()=>!1);function d(R){var E;const{data:A}=R;if(A)switch(A.type){case"builder.configureSdk":{const M=A.data,{breakpoints:L,contentId:U}=M;if(!U||U!==((E=e.builderContextSignal.content)==null?void 0:E.id))return;L&&i({meta:{breakpoints:L}}),n(r+1);break}case"builder.contentUpdate":{const M=A.data,L=M.key||M.alias||M.entry||M.modelName,U=M.data;L===e.model&&(i(U),n(r+1));break}}}function h(){var A,E;const R=(E=(A=e.builderContextSignal.content)==null?void 0:A.data)==null?void 0:E.jsCode;R&&Ye({code:R,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[g,y]=j.useState(()=>({})),[S,_]=j.useState(()=>!1);function W(R){var A,E;if(e.builderContextSignal.content){const M=(A=e.builderContextSignal.content)==null?void 0:A.testVariationId,L=(E=e.builderContextSignal.content)==null?void 0:E.id;v._track({type:"click",canTrack:v.getDefaultCanTrack(e.canTrack),contentId:L,apiKey:e.apiKey,variationId:M!==L?M:void 0,...zi(R),unique:!S})}S||_(!0)}function I(R){return R.replace(/{{([^}]+)}}/g,(A,E)=>Ye({code:E,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function F({url:R,key:A}){v.fetch(R).then(E=>E.json()).then(E=>{var L,U;const M={...e.builderContextSignal.rootState,[A]:E};(U=(L=e.builderContextSignal).rootSetState)==null||U.call(L,M),g[A]=!0}).catch(E=>{console.error("error fetching dynamic data",R,E)})}function H(){var A,E;const R=((E=(A=e.builderContextSignal.content)==null?void 0:A.data)==null?void 0:E.httpRequests)??{};Object.entries(R).forEach(([M,L])=>{if(L&&(!g[M]||v.isEditing())){const U=I(L);F({url:U,key:M})}})}function G(){v.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:v.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function x(R){n(r+1),window.addEventListener("message",d),Yi(),Ji({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(A=>{var M;const E=v.createRegisterComponentMessage(A);(M=window.parent)==null||M.postMessage(E,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",G)}function K(R){const A=new URL(location.href).searchParams,E=A.get("builder.preview"),M=A.get(`builder.preview.${E}`),L=A.get("apiKey")||A.get("builder.space");E===e.model&&L===e.apiKey&&(!e.content||M===e.content.id)&&v.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(U=>{U&&i(U)})}return j.useEffect(()=>{var R;return(R=t.current)==null||R.addEventListener("initeditingbldr",x),()=>{var A;return(A=t.current)==null?void 0:A.removeEventListener("initeditingbldr",x)}},[]),j.useEffect(()=>{var R;return(R=t.current)==null||R.addEventListener("initpreviewingbldr",K),()=>{var A;return(A=t.current)==null?void 0:A.removeEventListener("initpreviewingbldr",K)}},[]),j.useEffect(()=>{var R,A;if(v.isBrowser()){if(v.isEditing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&v.getDefaultCanTrack(e.canTrack)){const M=(R=e.builderContextSignal.content)==null?void 0:R.testVariationId,L=(A=e.builderContextSignal.content)==null?void 0:A.id,U=e.apiKey;v._track({type:"impression",canTrack:!0,contentId:L,apiKey:U,variationId:M!==L?M:void 0})}v.isPreviewing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"))}},[]),j.useEffect(()=>{e.apiKey||v.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),h(),H(),G()},[]),j.useEffect(()=>{e.content&&i(e.content)},[e.content]),j.useEffect(()=>{},[a]),j.useEffect(()=>{h()},[(oe=(ie=e.builderContextSignal.content)==null?void 0:ie.data)==null?void 0:oe.jsCode,e.builderContextSignal.rootState]),j.useEffect(()=>{H()},[(Q=($=e.builderContextSignal.content)==null?void 0:$.data)==null?void 0:Q.httpRequests]),j.useEffect(()=>{G()},[e.builderContextSignal.rootState]),j.useEffect(()=>()=>{v.isBrowser()&&(window.removeEventListener("message",d),window.removeEventListener("builder:component:stateChangeListenerActivated",G))},[]),u.jsx(Wt.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?u.jsx(u.Fragment,{children:j.createElement("div",{key:r,ref:t,onClick:R=>W(R),"builder-content-id":(T=e.builderContextSignal.content)==null?void 0:T.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},className:`variant-${((ke=e.content)==null?void 0:ke.testVariationId)||((V=e.content)==null?void 0:V.id)}`},e.children)}):null})}const Zi=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+=`
|
|
180
180
|
@font-face {
|
|
181
181
|
font-family: "${t}";
|
|
182
182
|
src: local("${r}"), url('${n}') format('woff2');
|
|
@@ -206,4 +206,4 @@ ${Qi({customFonts:e.customFonts})}
|
|
|
206
206
|
text-align: inherit;
|
|
207
207
|
font-family: inherit;
|
|
208
208
|
}
|
|
209
|
-
`.trim());return u.jsx(ct,{styles:t})}const no=({content:e,data:t,locale:r})=>{var a,s,d;const n={}
|
|
209
|
+
`.trim());return u.jsx(ct,{styles:t})}const no=({content:e,data:t,locale:r})=>{var a,s,d;const n={},i=((a=e==null?void 0:e.data)==null?void 0:a.state)||{};return(d=(s=e==null?void 0:e.data)==null?void 0:s.inputs)==null||d.forEach(h=>{h.name&&h.defaultValue!==void 0&&(n[h.name]=h.defaultValue)}),{...n,...i,...t,...r?{locale:r}:{}}},ro=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function Yn(e){var h,g,y,S,_,W,I;const[t,r]=j.useState(()=>{var F,H;return Hi({variationId:(F=e.content)==null?void 0:F.testVariationId,contentId:(H=e.content)==null?void 0:H.id})});function n(F){d(H=>({...H,rootState:F}))}const[i,a]=j.useState(()=>[...Kn(),...v.components,...e.customComponents||[]].reduce((F,{component:H,...G})=>({...F,[G.name]:{component:H,...v.serializeComponentInfo(G)}}),{})),[s,d]=j.useState(()=>({content:ro({content:e.content,data:e.data}),localState:void 0,rootState:no({content:e.content,data:e.data,locale:e.locale}),rootSetState:n,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...Kn(),...v.components,...e.customComponents||[]].reduce((F,{component:H,...G})=>({...F,[G.name]:v.serializeComponentInfo(G)}),{}),inheritedStyles:{}}));return u.jsx(qn.Provider,{value:{registeredComponents:i},children:u.jsxs(qi,{content:e.content,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,showContent:e.showContent,builderContextSignal:s,setBuilderContextSignal:d,children:[e.isSsrAbTest?u.jsx(u.Fragment,{children:u.jsx($t,{scriptStr:t})}):null,u.jsx(u.Fragment,{children:u.jsx(to,{contentId:(h=s.content)==null?void 0:h.id,cssCode:(y=(g=s.content)==null?void 0:g.data)==null?void 0:y.cssCode,customFonts:(_=(S=s.content)==null?void 0:S.data)==null?void 0:_.customFonts})}),u.jsx(dt,{blocks:(I=(W=s.content)==null?void 0:W.data)==null?void 0:I.blocks,context:s,registeredComponents:i})]})})}function nn(e){var s,d;const[t,r]=j.useState(()=>Vi({canTrack:v.getDefaultCanTrack(e.canTrack),content:e.content}));function n(){var h;return Wi(it(e.content).map(g=>({id:g.testVariationId,testRatio:g.testRatio})),((h=e.content)==null?void 0:h.id)||"")}function i(){return it(e.content).map(h=>`.variant-${h.testVariationId} { display: none; } `).join("")}function a(){var h;return t?{...e.content,testVariationId:(h=e.content)==null?void 0:h.id}:v.handleABTestingSync({item:e.content,canTrack:v.getDefaultCanTrack(e.canTrack)})}return j.useEffect(()=>{},[]),u.jsxs(u.Fragment,{children:[!e.__isNestedRender&&v.TARGET!=="reactNative"?u.jsx(u.Fragment,{children:u.jsx($t,{scriptStr:$i()})}):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($t,{scriptStr:n()}),(d=it(e.content))==null?void 0:d.map(h=>u.jsx(Yn,{content:h,showContent:!1,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},h.testVariationId))]}):null,u.jsx(Yn,{content:a(),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 v.fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(r=>{v.logger.error("Could not fetch symbol content: ",r)})};function vr(e){var a,s,d;function t(){var h,g;return[e.attributes.className,"builder-symbol",(h=e.symbol)!=null&&h.inline?"builder-inline-symbol":void 0,(g=e.symbol)!=null&&g.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")}const[r,n]=j.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 j.useEffect(()=>{},[]),j.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:(d=e.symbol)==null?void 0:d.model,content:r})})}const oo=dt,ao=nn;exports._processContentResult=v._processContentResult;exports.createRegisterComponentMessage=v.createRegisterComponentMessage;exports.fetchBuilderProps=v.fetchBuilderProps;exports.fetchEntries=v.fetchEntries;exports.fetchOneEntry=v.fetchOneEntry;exports.getAllContent=v.getAllContent;exports.getBuilderSearchParams=v.getBuilderSearchParams;exports.getContent=v.getContent;exports.isEditing=v.isEditing;exports.isPreviewing=v.isPreviewing;exports.register=v.register;exports.setEditorSettings=v.setEditorSettings;exports.track=v.track;exports.Blocks=dt;exports.Button=Jn;exports.Columns=lr;exports.Content=nn;exports.Fragment=cr;exports.Image=ur;exports.RenderBlocks=oo;exports.RenderContent=ao;exports.Section=dr;exports.Symbol=vr;exports.Text=fr;exports.Video=hr;
|