@builder.io/sdk-vue 1.0.21 → 1.0.22
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/block-styles-VImRioSm.js +87 -0
- package/lib/browser/block-styles-WIrvoyUF.cjs +1 -0
- package/lib/browser/{block-wrapper-a1zxMruE.js → block-wrapper--ZG8uXgi.js} +3 -3
- package/lib/browser/{block-wrapper-mlbE709c.cjs → block-wrapper-PG29yePT.cjs} +1 -1
- package/lib/browser/{component-ref-5K3RMLKh.js → component-ref-AbXXG_wD.js} +2 -2
- package/lib/browser/{component-ref-mNbBuzhy.cjs → component-ref-Oh6emZ2D.cjs} +1 -1
- package/lib/browser/components/block/animator.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/is-previewing.d.ts +1 -1
- package/lib/browser/{get-block-properties-PuGrG7pm.cjs → get-block-properties-iG0EdCc7.cjs} +1 -1
- package/lib/browser/{get-block-properties-4MopDiTP.js → get-block-properties-jSTzat9q.js} +6 -6
- package/lib/browser/{index-OSGu6alT.cjs → index-3lFzntkG.cjs} +19 -19
- package/lib/browser/{index-mwZzSIN7.js → index-_VfPZEOT.js} +401 -424
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +3 -3
- package/lib/browser/{repeated-block-VP4euR8a.cjs → repeated-block-GitdVuPz.cjs} +1 -1
- package/lib/browser/{repeated-block-hUFMTXXS.js → repeated-block-LywEnyR6.js} +2 -2
- package/lib/edge/block-styles-ZxWEJSxb.js +86 -0
- package/lib/edge/block-styles-eJqBAPHH.cjs +1 -0
- package/lib/{node/block-wrapper-bGeMckW5.cjs → edge/block-wrapper-2Crn7tbG.cjs} +1 -1
- package/lib/edge/{block-wrapper-xgShkhuq.js → block-wrapper-E58yJMa2.js} +3 -3
- package/lib/{node/component-ref-YhLendyR.cjs → edge/component-ref-4M72dsyI.cjs} +1 -1
- package/lib/{node/component-ref-PGVczQrW.js → edge/component-ref-lMVExvau.js} +2 -2
- package/lib/edge/components/block/animator.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/is-previewing.d.ts +1 -1
- package/lib/{node/get-block-properties-kAmm-X1q.js → edge/get-block-properties-RLx998wH.js} +4 -4
- package/lib/edge/{get-block-properties-v6bf_R5d.cjs → get-block-properties-ozEWpZlZ.cjs} +1 -1
- package/lib/edge/{index-Ua4OW_gh.js → index-53gkK1JA.js} +641 -664
- package/lib/edge/{index-xnWjf2tW.cjs → index-nVP8G4zp.cjs} +26 -26
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +4 -4
- package/lib/edge/{repeated-block-qRyqdxjD.cjs → repeated-block-_7bmUv-Z.cjs} +1 -1
- package/lib/{node/repeated-block-tjhtQDPA.js → edge/repeated-block-kei-SmhT.js} +13 -13
- package/lib/node/block-styles-_OMTv9sJ.js +86 -0
- package/lib/node/block-styles-cJg0zG2x.cjs +1 -0
- package/lib/node/{block-wrapper--vej-Ae6.js → block-wrapper-WFhgV7rM.js} +3 -3
- package/lib/{edge/block-wrapper-4RaFHsBw.cjs → node/block-wrapper-olhoZ1Gm.cjs} +1 -1
- package/lib/{edge/component-ref-kGbDg8GR.js → node/component-ref-CnP6F8zd.js} +2 -2
- package/lib/{edge/component-ref-KD6yANwg.cjs → node/component-ref-Wy04EyRy.cjs} +1 -1
- package/lib/node/components/block/animator.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/is-previewing.d.ts +1 -1
- package/lib/{edge/get-block-properties-yFfbPH85.js → node/get-block-properties-3AHBPypn.js} +4 -4
- package/lib/node/{get-block-properties-GTVEiEYp.cjs → get-block-properties-azp9C2XD.cjs} +1 -1
- package/lib/node/{index-mnDtU0q8.js → index-eF57HLR1.js} +36 -59
- package/lib/node/{index-XIqTnRyC.cjs → index-my4sBiPM.cjs} +5 -5
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +4 -4
- package/lib/node/{repeated-block-SWSMCPvd.cjs → repeated-block-AtgGXQbg.cjs} +1 -1
- package/lib/{edge/repeated-block-uiPuS74Z.js → node/repeated-block-uRrCR8KR.js} +13 -13
- package/package.json +1 -1
- package/lib/browser/block-styles-2lYNYVH3.js +0 -70
- package/lib/browser/block-styles-y6pFfJz3.cjs +0 -1
- package/lib/edge/block-styles-_eYB_Fxz.cjs +0 -1
- package/lib/edge/block-styles-nhMA9R4s.js +0 -69
- package/lib/node/block-styles-h0iWFk09.cjs +0 -1
- package/lib/node/block-styles-rz8jpORX.js +0 -69
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";var To=Object.defineProperty;var xo=(e,t,n)=>t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qt=(e,t,n)=>(xo(e,typeof t!="symbol"?t+"":t,n),n);const a=require("vue"),Ro=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Ao=e=>typeof e=="string"&&Ro.has(e.toLowerCase());function ke(e={},t,n){const r={};for(const o in e){if(!e[o]||n&&!o.startsWith(t))continue;const i=n?o.replace(t,""):o;r[i]=e[o]}return r}const Bo=a.defineComponent({name:"dynamic-renderer",props:["TagName","attributes","actionAttributes"],data(){return{isEmptyElement:Ao}}}),O=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};function Po(e,t,n,r,o,i){return e.isEmptyElement(e.TagName)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.TagName),a.mergeProps({key:1},e.attributes,a.toHandlers(e.actionAttributes)),null,16)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[typeof e.TagName=="string"?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.TagName),a.mergeProps({key:0},e.attributes,a.toHandlers(e.actionAttributes)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.TagName),a.mergeProps({key:1},e.attributes,a.toHandlers(e.actionAttributes)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16))],64))}const tn=O(Bo,[["render",Po]]),$o=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"})),ne="vue",vt=()=>{switch(ne){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":return"class"}},Oo=a.defineComponent({name:"builder-button",components:{DynamicRenderer:tn},props:["attributes","link","openLinkInNewTab","builderLinkComponent","text"],data(){return{getClassPropName:vt,filterAttrs:ke}}});function jo(e,t,n,r,o,i){const l=a.resolveComponent("dynamic-renderer");return a.openBlock(),a.createBlock(l,{attributes:{...e.filterAttrs(e.attributes,"v-on:",!1),[e.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[e.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}},TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:e.filterAttrs(e.attributes,"v-on:",!0)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.text),1)]),_:1},8,["attributes","TagName","actionAttributes"])}const
|
|
2
|
-
`;break;case 114:c+="\r";break;case 120:c+=String.fromCharCode(N(2));break;case 117:c+=String.fromCharCode(N(4));break;case 85:c+=String.fromCharCode(N(8));break;case 116:c+=" ";break;case 98:c+="\b";break;case 118:c+="\v";break;case 102:c+="\f";break;case 48:c+="\0";break;case 13:b.charCodeAt(d)===10&&++d;case 10:R.C&&(se=d,++Ce);break;default:c+=String.fromCharCode(p)}}else p!==13&&p!==10&&p!==8232&&p!==8233||r(U,"Unterminated string constant"),c+=String.fromCharCode(p),++d}return;case 47:s=b.charCodeAt(d+1),
|
|
3
|
-
`,se-2)+1,--Ce;m(),v()}function ee(){this.type=null,this.start=U,this.end=null}function fe(){this.start=$t,this.end=null,Pt&&(this.source=Pt)}function L(){var s=new ee;return R.C&&(s.X=new fe),R.vb&&(s.sourceFile=R.vb),R.Xa&&(s.j=[U,0]),s}function ge(s){var c=new ee;return c.start=s.start,R.C&&(c.X=new fe,c.X.start=s.X.start),R.Xa&&(c.j=[s.j[0],0]),c}function x(s,c){return s.type=c,s.end=ye,R.C&&(s.X.end=Nt),R.Xa&&(s.j[1]=ye),s}function Et(s){return s.type==="ExpressionStatement"&&s.la.type==="Literal"&&s.la.value==="use strict"}function j(s){return I===s?(A(),!0):!1}function st(){return!R.fc&&(I===Vt||I===Ae||dt.test(b.slice(ye,U)))}function Se(){j(le)||st()||oe()}function F(s){I===s?A():oe()}function oe(){r(U,"Unexpected token")}function at(s){s.type!=="Identifier"&&s.type!=="MemberExpression"&&r(s.start,"Assigning to rvalue"),X&&s.type==="Identifier"&&pt(s.name)&&r(s.start,"Assigning to "+s.name+" in strict mode")}function te(){(I===zn||I===we&&Z==="/=")&&v(!0);var s=I,c=L();switch(s){case Ft:case xn:A();var p=s===Ft;j(le)||st()?c.label=null:I!==Re?oe():(c.label=ie(),Se());for(var h=0;h<M.length;++h){var T=M[h];if((c.label===null||T.name===c.label.name)&&(T.kind!==null&&(p||T.kind==="loop")||c.label&&p))break}return h===M.length&&r(c.start,"Unsyntactic "+s.l),x(c,p?"BreakStatement":"ContinueStatement");case Rn:return A(),Se(),x(c,"DebuggerStatement");case Bn:return A(),M.push(_t),c.body=te(),M.pop(),F(Lt),c.test=Fe(),Se(),x(c,"DoWhileStatement");case On:return A(),M.push(_t),F(ae),I===le?It(c,null):I===Wt?(s=L(),A(),wn(s,!0),x(s,"VariableDeclaration"),s.fa.length===1&&j(ut)?Cn(c,s):It(c,s)):(s=_(!1,!0),j(ut)?(at(s),Cn(c,s)):It(c,s));case Ut:return A(),At(c,!0);case jn:return A(),c.test=Fe(),c.da=te(),c.alternate=j(Pn)?te():null,x(c,"IfStatement");case Nn:return We||R.Ib||r(U,"'return' outside of function"),A(),j(le)||st()?c.K=null:(c.K=_(),Se()),x(c,"ReturnStatement");case Dt:for(A(),c.Qb=Fe(),c.tb=[],F(He),M.push(Io);I!==Ae;)I===Mt||I===An?(s=I===Mt,h&&x(h,"SwitchCase"),c.tb.push(h=L()),h.da=[],A(),s?h.test=_():(p&&r(jt,"Multiple default clauses"),p=!0,h.test=null),F(Ke)):(h||oe(),h.da.push(te()));return h&&x(h,"SwitchCase"),A(),M.pop(),x(c,"SwitchStatement");case Vn:return A(),dt.test(b.slice(ye,U))&&r(ye,"Illegal newline after throw"),c.K=_(),Se(),x(c,"ThrowStatement");case Fn:return A(),c.block=Me(),c.Ea=null,I===Tn&&(s=L(),A(),F(ae),s.Ua=ie(),X&&pt(s.Ua.name)&&r(s.Ua.start,"Binding "+s.Ua.name+" in strict mode"),F(re),s.body=Me(),c.Ea=x(s,"CatchClause")),c.fb=j($n)?Me():null,c.Ea||c.fb||r(c.start,"Missing catch or finally clause"),x(c,"TryStatement");case Wt:return A(),wn(c),Se(),x(c,"VariableDeclaration");case Lt:return A(),c.test=Fe(),M.push(_t),c.body=te(),M.pop(),x(c,"WhileStatement");case Mn:return X&&r(U,"'with' in strict mode"),A(),c.object=Fe(),c.body=te(),x(c,"WithStatement");case He:return Me();case le:return A(),x(c,"EmptyStatement");default:if(p=Z,T=_(),s===Re&&T.type==="Identifier"&&j(Ke)){for(h=0;h<M.length;++h)M[h].name===p&&r(T.start,"Label '"+p+"' is already declared");return M.push({name:p,kind:I.W?"loop":I===Dt?"switch":null}),c.body=te(),M.pop(),c.label=T,x(c,"LabeledStatement")}return c.la=T,Se(),x(c,"ExpressionStatement")}}function Fe(){F(ae);var s=_();return F(re),s}function Me(s){var c=L(),p=!0,h=!1;for(c.body=[],F(He);!j(Ae);){var T=te();if(c.body.push(T),p&&s&&Et(T)){var D=h;Ie(h=!0)}p=!1}return h&&!D&&Ie(!1),x(c,"BlockStatement")}function It(s,c){return s.ua=c,F(le),s.test=I===le?null:_(),F(le),s.update=I===re?null:_(),F(re),s.body=te(),M.pop(),x(s,"ForStatement")}function Cn(s,c){return s.left=c,s.right=_(),F(re),s.body=te(),M.pop(),x(s,"ForInStatement")}function wn(s,c){for(s.fa=[],s.kind="var";;){var p=L();if(p.id=ie(),X&&pt(p.id.name)&&r(p.id.start,"Binding "+p.id.name+" in strict mode"),p.ua=j(qn)?_(!0,c):null,s.fa.push(x(p,"VariableDeclarator")),!j(ve))break}}function _(s,c){var p=Tt(c);if(!s&&I===ve){for(s=ge(p),s.xb=[p];j(ve);)s.xb.push(Tt(c));return x(s,"SequenceExpression")}return p}function Tt(s){var c=xt(Rt(),-1,s);if(j(_n)){var p=ge(c);p.test=c,p.da=_(!0),F(Ke),p.alternate=_(!0,s),c=x(p,"ConditionalExpression")}return I.Cb?(p=ge(c),p.operator=Z,p.left=c,A(),p.right=Tt(s),at(c),x(p,"AssignmentExpression")):c}function xt(s,c,p){var h=I.L;if(h!==null&&(!p||I!==ut)&&h>c){var T=ge(s);return T.left=s,T.operator=Z,s=I,A(),T.right=xt(Rt(),h,p),h=x(T,s===Jn||s===Xn?"LogicalExpression":"BinaryExpression"),xt(h,c,p)}return s}function Rt(){if(I.prefix){var s=L(),c=I.$b;return s.operator=Z,De=s.prefix=!0,A(),s.K=Rt(),c?at(s.K):X&&s.operator==="delete"&&s.K.type==="Identifier"&&r(s.start,"Deleting local variable in strict mode"),x(s,c?"UpdateExpression":"UnaryExpression")}for(c=Ue(lt());I.cc&&!st();)s=ge(c),s.operator=Z,s.prefix=!1,s.K=c,at(c),A(),c=x(s,"UpdateExpression");return c}function Ue(s,c){if(j(Kn)){var p=ge(s);return p.object=s,p.Wa=ie(!0),p.bb=!1,Ue(x(p,"MemberExpression"),c)}return j(Ht)?(p=ge(s),p.object=s,p.Wa=_(),p.bb=!0,F(Kt),Ue(x(p,"MemberExpression"),c)):!c&&j(ae)?(p=ge(s),p.callee=s,p.arguments=Bt(re,!1),Ue(x(p,"CallExpression"),c)):s}function lt(){switch(I){case Dn:var s=L();return A(),x(s,"ThisExpression");case Re:return ie();case Le:case ct:case In:return s=L(),s.value=Z,s.raw=b.slice(U,xe),A(),x(s,"Literal");case Wn:case Ln:case Hn:return s=L(),s.value=I.$a,s.raw=I.l,A(),x(s,"Literal");case ae:s=$t;var c=U;A();var p=_();return p.start=c,p.end=xe,R.C&&(p.X.start=s,p.X.end=Ot),R.Xa&&(p.j=[c,xe]),F(re),p;case Ht:return s=L(),A(),s.elements=Bt(Kt,!0,!0),x(s,"ArrayExpression");case He:for(s=L(),c=!0,p=!1,s.h=[],A();!j(Ae);){if(c)c=!1;else if(F(ve),R.sb&&j(Ae))break;var h={key:I===Le||I===ct?lt():ie(!0)},T=!1;if(j(Ke)){h.value=_(!0);var D=h.kind="init"}else h.key.type!=="Identifier"||h.key.name!=="get"&&h.key.name!=="set"?oe():(T=p=!0,D=h.kind=h.key.name,h.key=I===Le||I===ct?lt():ie(!0),I!==ae&&oe(),h.value=At(L(),!1));if(h.key.type==="Identifier"&&(X||p))for(var q=0;q<s.h.length;++q){var Pe=s.h[q];if(Pe.key.name===h.key.name){var zt=D===Pe.kind||T&&Pe.kind==="init"||D==="init"&&(Pe.kind==="get"||Pe.kind==="set");zt&&!X&&D==="init"&&Pe.kind==="init"&&(zt=!1),zt&&r(h.key.start,"Redefinition of property")}}s.h.push(h)}return x(s,"ObjectExpression");case Ut:return s=L(),A(),At(s,!1);case Un:return s=L(),A(),s.callee=Ue(lt(),!0),s.arguments=j(ae)?Bt(re,!1):co,x(s,"NewExpression")}oe()}function At(s,c){I===Re?s.id=ie():c?oe():s.id=null,s.oa=[];var p=!0;for(F(ae);!j(re);)p?p=!1:F(ve),s.oa.push(ie());p=We;var h=M;if(We=!0,M=[],s.body=Me(!0),We=p,M=h,X||s.body.body.length&&Et(s.body.body[0])){for(p=s.id?-1:0;p<s.oa.length;++p)if(h=0>p?s.id:s.oa[p],(Yn(h.name)||pt(h.name))&&r(h.start,"Defining '"+h.name+"' in strict mode"),0<=p)for(var T=0;T<p;++T)h.name===s.oa[T].name&&r(h.start,"Argument name clash in strict mode")}return x(s,c?"FunctionDeclaration":"FunctionExpression")}function Bt(s,c,p){for(var h=[],T=!0;!j(s);){if(T)T=!1;else if(F(ve),c&&R.sb&&j(s))break;h.push(p&&I===ve?null:_(!0))}return h}function ie(s){var c=L();return s&&R.yb==="everywhere"&&(s=!1),I===Re?(!s&&(R.yb&&So(Z)||X&&Yn(Z))&&b.slice(U,xe).indexOf("\\")===-1&&r(U,"The keyword '"+Z+"' is reserved"),c.name=Z):s&&I.l?c.name=I.l:oe(),De=!1,A(),x(c,"Identifier")}e.version="0.5.0";var R,b="",Te,Pt;e.parse=function(s,c){b=String(s),Te=b.length,R=c||{};for(var p in En)Object.prototype.hasOwnProperty.call(R,p)||(R[p]=En[p]);for(Pt=R.sourceFile,Ce=1,d=se=0,De=!0,m(),p=R.dc,jt=ye=d,R.C&&(Nt=new i),We=X=!1,M=[],v(),s=p||L(),c=!0,p||(s.body=[]);I!==Vt;)p=te(),s.body.push(p),c&&Et(p)&&Ie(!0),c=!1;return x(s,"Program")};var En={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},d=0,U=0,xe=0,$t,Ot,I,Z,De,Ce,se,jt=0,ye=0,Nt,We,M,X,co=[],Le={type:"num"},In={type:"regexp"},ct={type:"string"},Re={type:"name"},Vt={type:"eof"},Ft={l:"break"},Mt={l:"case",m:!0},Tn={l:"catch"},xn={l:"continue"},Rn={l:"debugger"},An={l:"default"},Bn={l:"do",W:!0},Pn={l:"else",m:!0},$n={l:"finally"},On={l:"for",W:!0},Ut={l:"function"},jn={l:"if"},Nn={l:"return",m:!0},Dt={l:"switch"},Vn={l:"throw",m:!0},Fn={l:"try"},Wt={l:"var"},Lt={l:"while",W:!0},Mn={l:"with"},Un={l:"new",m:!0},Dn={l:"this"},Wn={l:"null",$a:null},Ln={l:"true",$a:!0},Hn={l:"false",$a:!1},ut={l:"in",L:7,m:!0},uo={break:Ft,case:Mt,catch:Tn,continue:xn,debugger:Rn,default:An,do:Bn,else:Pn,finally:$n,for:On,function:Ut,if:jn,return:Nn,switch:Dt,throw:Vn,try:Fn,var:Wt,while:Lt,with:Mn,null:Wn,true:Ln,false:Hn,new:Un,in:ut,instanceof:{l:"instanceof",L:7,m:!0},this:Dn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Ht={type:"[",m:!0},Kt={type:"]"},He={type:"{",m:!0},Ae={type:"}"},ae={type:"(",m:!0},re={type:")"},ve={type:",",m:!0},le={type:";",m:!0},Ke={type:":",m:!0},Kn={type:"."},_n={type:"?",m:!0},zn={L:10,m:!0},qn={Cb:!0,m:!0},we={Cb:!0,m:!0},po={cc:!0,prefix:!0,$b:!0},Gn={prefix:!0,m:!0},Jn={L:1,m:!0},Xn={L:2,m:!0},mo={L:3,m:!0},ho={L:4,m:!0},fo={L:5,m:!0},go={L:6,m:!0},yo={L:7,m:!0},vo={L:8,m:!0},bo={L:9,prefix:!0,m:!0},ko={L:10,m:!0},So=o("class enum extends super const export import"),Yn=o("implements interface let package private protected public static yield"),pt=o("eval arguments"),Co=o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),wo=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Zn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),Eo=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),dt=/[\n\r\u2028\u2029]/,mt=/\r\n|[\n\r\u2028\u2029]/g,Be,_t={kind:"loop"},Io={kind:"switch"}},Xt=Xt=typeof globalThis>"u"?void 0:globalThis;_o(Xt.j||(Xt.j={}));function y(e,t){typeof e=="string"&&(e=je(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var i,l;for(l in this)typeof this[l]=="function"&&(i=l.match(e))&&(this.rb[i[1]]=this[l].bind(this));this.N=Zt(this,this.ra,null),this.Na=this.N.object,this.ra=je(this.ba.join(`
|
|
4
|
-
`),"polyfills"),this.ba=void 0,bt(this.ra),i=new S(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new S(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var Qn={C:!0,kc:5},rn={configurable:!0,enumerable:!0,writable:!1},k={configurable:!0,enumerable:!1,writable:!0},J={configurable:!0,enumerable:!1,writable:!1},_e={configurable:!1,enumerable:!1,writable:!1},er={configurable:!1,enumerable:!0,writable:!0},Sr={STEP_ERROR:!0},Ve={SCOPE_REFERENCE:!0},Ze={VALUE_IN_DESCRIPTOR:!0},$e={REGEXP_TIMEOUT:!0},tr=[],pe=null,Xe=null,be=typeof globalThis>"u"?void 0:globalThis,zo=["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 on(e){var t=e>>>0;return t===Number(e)?t:NaN}function Ye(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function bt(e,t,n){t?e.start=t:delete e.start,n?e.end=n:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var o=e[r];o&&typeof o=="object"&&bt(o,t,n)}}y.prototype.REGEXP_MODE=2;y.prototype.REGEXP_THREAD_TIMEOUT=1e3;y.prototype.POLYFILL_TIMEOUT=1e3;$=y.prototype;$.P=!1;$.Ka=!1;$.Kb=0;$.ic=0;function je(e,t){var n={},r;for(r in Qn)n[r]=Qn[r];return n.sourceFile=t,be.j.parse(e,n)}$.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=je(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Qe(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};$.lb=function(){var e=this.o,t;do{var n=e[e.length-1];if(this.za)break;if(!n||n.node.type==="Program"&&n.done){if(!this.ca.length)return!1;if(n=this.ca[0],!n||n.time>Date.now())n=null;else{this.ca.shift(),0<=n.interval&&Er(this,n,n.interval);var r=new S(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=Xe;Xe=this;try{var i=this.rb[r.type](e,n,r)}catch(l){if(l!==Sr)throw this.value!==l&&(this.value=void 0),l}finally{Xe=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};$.Eb=function(){for(;!this.za&&this.lb(););return this.za};function qo(e,t){e.g(t,"NaN",NaN,_e),e.g(t,"Infinity",1/0,_e),e.g(t,"undefined",void 0,_e),e.g(t,"window",t,rn),e.g(t,"this",t,_e),e.g(t,"self",t),e.M=new B(null),e.Z=new B(e.M),Go(e,t),Jo(e,t),t.xa=e.M,e.g(t,"constructor",e.v,k),Xo(e,t),Yo(e,t),Zo(e,t),Qo(e,t),ei(e,t),ti(e,t),ni(e,t),ri(e,t),oi(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,k),e.g(t,"parseInt",e.i(parseInt,!1),k),e.g(t,"parseFloat",e.i(parseFloat,!1),k),e.g(t,"isNaN",e.i(isNaN,!1),k),e.g(t,"isFinite",e.i(isFinite,!1),k);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(l){try{return i(l)}catch(u){w(e,e.Gb,u.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),k);n=function(i){return nr(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),k),n=function(i){return nr(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),k),n=function(i){rr(e,i)},e.g(t,"clearTimeout",e.i(n,!1),k),n=function(i){rr(e,i)},e.g(t,"clearInterval",e.i(n,!1),k),e.OBJECT=e.v,e.OBJECT_PROTO=e.M,e.FUNCTION=e.O,e.FUNCTION_PROTO=e.Z,e.ARRAY=e.qa,e.ARRAY_PROTO=e.La,e.REGEXP=e.I,e.REGEXP_PROTO=e.Ma,e.DATE=e.$,e.DATE_PROTO=e.nb,e.qb&&e.qb(e,t)}$.Wb=0;function Go(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",l=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(l){l=l.split(/\s*,\s*/);for(var u=0;u<l.length;u++){var m=l[u];n.test(m)||w(e,e.T,"Invalid function argument: "+m)}l=l.join(", ")}try{var g=je("(function("+l+") {"+i+"})","function"+e.Wb++)}catch(v){w(e,e.T,"Invalid code: "+v.message)}return g.body.length!==1&&w(e,e.T,"Invalid code in function body"),ln(e,g.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,k),e.g(e.O,"prototype",e.Z,k),e.g(e.Z,"constructor",e.O,k),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,J),e.Z.H="Function",r=function(o,i){var l=e.o[e.o.length-1];l.U=this,l.B=o,l.F=[],i!=null&&(i instanceof B?l.F=Cr(e,i):w(e,e.j,"CreateListFromArrayLike called on non-object")),l.eb=!1},W(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var l=1;l<arguments.length;l++)i.F.push(arguments[l]);i.eb=!1},W(e,e.O,"call",r),e.ba.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function bind(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');","}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});",""),r=function(){return String(this)},W(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),k),r=function(){return this.valueOf()},W(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),k)}function Jo(e,t){function n(o){o!=null||w(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return me(e)?this:e.s(e.M);if(!(o instanceof B)){var i=e.s(de(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,k),e.g(e.M,"constructor",e.v,k),e.g(t,"Object",e.v,k),r=function(o){return n(o),ue(e,Object.getOwnPropertyNames(o instanceof B?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),k),r=function(o){return n(o),o instanceof B&&(o=o.h),ue(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),k),r=function(o){return o===null?e.s(null):(o instanceof B||w(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(r,!1),k),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),r=function(o,i,l){return i=String(i),o instanceof B||w(e,e.j,"Object.defineProperty called on non-object: "+o),l instanceof B||w(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||w(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,Ze,l.h),o},e.g(e.v,"defineProperty",e.i(r,!1),k),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),r=function(o,i){if(o instanceof B||w(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var l=Object.getOwnPropertyDescriptor(o.h,i),u=o.V[i];return o=o.Y[i],i=e.s(e.M),u||o?(e.g(i,"get",u),e.g(i,"set",o)):(e.g(i,"value",l.value),e.g(i,"writable",l.writable)),e.g(i,"configurable",l.configurable),e.g(i,"enumerable",l.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),k),r=function(o){return n(o),de(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),k),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),k),r=function(o){return o instanceof B&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),k),W(e,e.v,"toString",B.prototype.toString),W(e,e.v,"toLocaleString",B.prototype.toString),W(e,e.v,"valueOf",B.prototype.valueOf),r=function(o){return n(this),this instanceof B?String(o)in this.h:this.hasOwnProperty(o)},W(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof B?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},W(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=de(e,o),!o)return!1;if(o===this)return!0}},W(e,e.v,"isPrototypeOf",r)}function Xo(e,t){var n=function(r){var o=me(e)?this:Ne(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(on(i))&&w(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,k),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),k),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.La.H="Array",e.ba.push("(function() {","function createArrayMethod_(f) {","Object.defineProperty(Array.prototype, f.name,","{configurable: true, writable: true, value: f});","}","createArrayMethod_(","function pop() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_(","function push(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_(","function shift() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_(","function unshift(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_(","function reverse() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_(","function indexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_(","function lastIndexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_(","function slice(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_(","function splice(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 1) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","o.length = len;","return removed;","}",");","createArrayMethod_(","function concat(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_(","function join(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_(","function every(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callbackfn.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_(","function filter(fun, var_args) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (fun.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_(","function forEach(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_(","function map(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_(","function reduce(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function reduceRight(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function some(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && fun.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_(","function sort(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_(","function toLocaleString() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")}function Yo(e,t){var n=function(r){return r=arguments.length?be.String(r):"",me(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,k),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),k),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)W(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(l){w(e,e.D,"localeCompare: "+l.message)}},W(e,e.J,"localeCompare",n),n=function(r,o,i){var l=String(this);if(o=o?Number(o):void 0,H(e,r,e.I)&&(r=r.data,qe(e,r,i),e.REGEXP_MODE===2)){if(pe)r=ze(e,"string.split(separator, limit)",{string:l,separator:r,limit:o},r,i),r!==$e&&i(ue(e,r));else{var u=e.ha(),m=Ge(e,r,u,i);u.onmessage=function(g){clearTimeout(m),i(ue(e,g.data))},u.postMessage(["split",l,r,o])}return}r=l.split(r,o),i(ue(e,r))},Je(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=H(e,r,e.I)?r.data:new RegExp(r),qe(e,r,o),e.REGEXP_MODE===2)if(pe)r=ze(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==$e&&o(r&&ue(e,r));else{var l=e.ha(),u=Ge(e,r,l,o);l.onmessage=function(m){clearTimeout(u),o(m.data&&ue(e,m.data))},l.postMessage(["match",i,r])}else r=i.match(r),o(r&&ue(e,r))},Je(e,e.J,"match",n),n=function(r,o){var i=String(this);if(H(e,r,e.I)?r=r.data:r=new RegExp(r),qe(e,r,o),e.REGEXP_MODE===2)if(pe)r=ze(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==$e&&o(r);else{var l=e.ha(),u=Ge(e,r,l,o);l.onmessage=function(m){clearTimeout(u),o(m.data)},l.postMessage(["search",i,r])}else o(i.search(r))},Je(e,e.J,"search",n),n=function(r,o,i){var l=String(this);if(o=String(o),H(e,r,e.I)&&(r=r.data,qe(e,r,i),e.REGEXP_MODE===2)){if(pe)r=ze(e,"string.replace(substr, newSubstr)",{string:l,substr:r,newSubstr:o},r,i),r!==$e&&i(r);else{var u=e.ha(),m=Ge(e,r,u,i);u.onmessage=function(g){clearTimeout(m),i(g.data)},u.postMessage(["replace",l,r,o])}return}i(l.replace(r,o))},Je(e,e.J,"replace",n),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function Zo(e,t){e.mb=e.i(function(n){return n=be.Boolean(n),me(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,k)}function Qo(e,t){var n=function(r){return r=arguments.length?be.Number(r):0,me(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,k),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],n=0;n<t.length;n++)e.g(e.aa,t[n],Number[t[n]],_e);n=function(r){try{return Number(this).toExponential(r)}catch(o){w(e,e.D,o.message)}},W(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){w(e,e.D,o.message)}},W(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){w(e,e.D,o.message)}},W(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){w(e,e.D,o.message)}},W(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(i){w(e,e.D,"toLocaleString: "+i.message)}},W(e,e.aa,"toLocaleString",n)}function ei(e,t){var n=function(o,i){if(!me(e))return be.Date();var l=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(be.Date,l)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,k),e.g(e.$,"now",e.i(Date.now,!1),k),e.g(e.$,"parse",e.i(Date.parse,!1),k),e.g(e.$,"UTC",e.i(Date.UTC,!1),k),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var l=this.data;l instanceof Date||w(e,e.j,o+" not called on a Date");for(var u=[],m=0;m<arguments.length;m++)u[m]=e.R(arguments[m]);return l[o].apply(l,u)}}(t[r]),W(e,e.$,t[r],n)}function ti(e,t){var n=function(r,o){if(me(e))var i=this;else{if(o===void 0&&H(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||w(e,e.T,"Invalid regexp flag: "+o);try{var l=new be.RegExp(r,o)}catch(u){w(e,e.T,u.message)}return sn(e,i,l),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,k),e.g(e.I.h.prototype,"global",void 0,J),e.g(e.I.h.prototype,"ignoreCase",void 0,J),e.g(e.I.h.prototype,"multiline",void 0,J),e.g(e.I.h.prototype,"source","(?:)",J),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(v){if(v){var f=ue(e,v);return e.g(f,"index",v.index),e.g(f,"input",v.input),f}return null}var l=this.data;if(r=String(r),l.lastIndex=Number(e.G(this,"lastIndex")),qe(e,l,o),e.REGEXP_MODE===2)if(pe)r=ze(e,"regexp.exec(string)",{string:r,regexp:l},l,o),r!==$e&&(e.g(this,"lastIndex",l.lastIndex),o(i(r)));else{var u=e.ha(),m=Ge(e,l,u,o),g=this;u.onmessage=function(v){clearTimeout(m),e.g(g,"lastIndex",v.data[1]),o(i(v.data[0]))},u.postMessage(["exec",l,l.lastIndex,r])}else r=l.exec(r),e.g(this,"lastIndex",l.lastIndex),o(i(r))},Je(e,e.I,"exec",n)}function ni(e,t){function n(r){var o=e.i(function(i){var l=me(e)?this:e.Aa(o);return Yt(e,l,i),l},!0);return e.g(o,"prototype",e.Aa(e.D),k),e.g(o.h.prototype,"name",r,k),e.g(t,r,o,k),o}e.D=e.i(function(r){var o=me(e)?this:e.Aa(e.D);return Yt(e,o,r),o},!0),e.g(t,"Error",e.D,k),e.g(e.D.h.prototype,"message","",k),e.g(e.D.h.prototype,"name","Error",k),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function ri(e,t){var n=e.s(e.M);e.g(t,"Math",n,k);var r="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<r.length;t++)e.g(n,r[t],Math[r[t]],J);for(r="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<r.length;t++)e.g(n,r[t],e.i(Math[r[t]],!1),k)}function oi(e,t){var n=e.s(e.M);e.g(t,"JSON",n,k),t=function(r){try{var o=JSON.parse(String(r))}catch(i){w(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?w(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=Cr(e,o),o=o.filter(function(u){return typeof u=="string"||typeof u=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var l=JSON.stringify(r,o,i)}catch(u){w(e,e.j,u.message)}return l},e.g(n,"stringify",e.i(t,!1))}function H(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=de(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function sn(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,k),e.g(t,"source",n.source,J),e.g(t,"global",n.global,J),e.g(t,"ignoreCase",n.ignoreCase,J),e.g(t,"multiline",n.multiline,J)}function Yt(e,t,n){n&&e.g(t,"message",String(n),k),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;i.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!i.X||n.length&&i.type!=="CallExpression"||n.push({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
|
|
1
|
+
"use strict";var To=Object.defineProperty;var xo=(e,t,n)=>t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qt=(e,t,n)=>(xo(e,typeof t!="symbol"?t+"":t,n),n);const a=require("vue"),Ro=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Ao=e=>typeof e=="string"&&Ro.has(e.toLowerCase());function ke(e={},t,n){const r={};for(const o in e){if(!e[o]||n&&!o.startsWith(t))continue;const i=n?o.replace(t,""):o;r[i]=e[o]}return r}const Bo=a.defineComponent({name:"dynamic-renderer",props:["TagName","attributes","actionAttributes"],data(){return{isEmptyElement:Ao}}}),O=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};function Po(e,t,n,r,o,i){return e.isEmptyElement(e.TagName)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.TagName),a.mergeProps({key:1},e.attributes,a.toHandlers(e.actionAttributes)),null,16)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[typeof e.TagName=="string"?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.TagName),a.mergeProps({key:0},e.attributes,a.toHandlers(e.actionAttributes)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.TagName),a.mergeProps({key:1},e.attributes,a.toHandlers(e.actionAttributes)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16))],64))}const tn=O(Bo,[["render",Po]]),$o=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"})),ne="vue",vt=()=>{switch(ne){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":return"class"}},Oo=a.defineComponent({name:"builder-button",components:{DynamicRenderer:tn},props:["attributes","link","openLinkInNewTab","builderLinkComponent","text"],data(){return{getClassPropName:vt,filterAttrs:ke}}});function jo(e,t,n,r,o,i){const l=a.resolveComponent("dynamic-renderer");return a.openBlock(),a.createBlock(l,{attributes:{...e.filterAttrs(e.attributes,"v-on:",!1),[e.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[e.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}},TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:e.filterAttrs(e.attributes,"v-on:",!0)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.text),1)]),_:1},8,["attributes","TagName","actionAttributes"])}const dr=O(Oo,[["render",jo]]),No=Symbol(),yt={Builder:{content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}},key:No},Vo=Symbol(),mr={Components:{registeredComponents:{}},key:Vo};function Fo(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const ht="[Builder.io]: ",z={log:(...e)=>console.log(ht,...e),error:(...e)=>console.error(ht,...e),warn:(...e)=>console.warn(ht,...e),debug:(...e)=>console.debug(ht,...e)};function K(){return typeof window<"u"&&typeof document<"u"}const Mo=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},hr=e=>e instanceof URLSearchParams?Mo(e):e,fr=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function Uo(){return K()&&window.self!==window.top}function Y(e){return Uo()&&fr(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const Do=()=>{if(K()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},Wo=()=>typeof navigator=="object"&&navigator.userAgent||"",gr=()=>{const e=Wo(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||ne==="reactNative"}},n=e.match(/Tablet|iPad/i),r=Do();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},yr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),Lo=()=>({isEditing:Y(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>gr()}),Ho=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Ko=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:l})=>{const u=yr({builder:t,context:n,event:r,state:vr({rootState:l,localState:o,rootSetState:i})});return new Function(...u.map(([m])=>m),e)(...u.map(([,m])=>m))};function vr({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const i=r[o];return typeof i=="object"&&i!==null?vr({rootState:i,localState:void 0,rootSetState:n?l=>{r[o]=l,n(r)}:void 0}):i},set:(r,o,i)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=i,n==null||n(r),!0}})}const nn=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,i,l)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[l+1]))>>0===+r[l+1]?[]:{},e)[r[r.length-1]]=n,e};var $,_o=function(e){function t(s){return 48>s?s===36:58>s?!0:65>s?!1:91>s?!0:97>s?s===95:123>s?!0:170<=s&&Eo.test(String.fromCharCode(s))}function n(s){return 65>s?s===36:91>s?!0:97>s?s===95:123>s?!0:170<=s&&Xn.test(String.fromCharCode(s))}function r(s,c){for(var p=b,h=1,T=0;;){mt.lastIndex=T;var D=mt.exec(p);if(D&&D.index<s)++h,T=D.index+D[0].length;else break}throw p={line:h,ab:s-T},c+=" ("+p.line+":"+p.ab+")",c=new SyntaxError(c),c.j=s,c.X=p,c.o=d,c}function o(s){s=s.split(" ");for(var c=Object.create(null),p=0;p<s.length;p++)c[s[p]]=!0;return function(h){return c[h]||!1}}function i(){this.line=Ce,this.ab=d-se}function l(s,c){Te=d,R.C&&(Ot=new i),I=s,m(),Z=c,Ue=s.m}function u(){for(var s=d,c=R.va&&R.C&&new i,p=b.charCodeAt(d+=2);d<Ie&&p!==10&&p!==13&&p!==8232&&p!==8233;)++d,p=b.charCodeAt(d);R.va&&R.va(!1,b.slice(s+2,d),s,d,c,R.C&&new i)}function m(){for(;d<Ie;){var s=b.charCodeAt(d);if(s===32)++d;else if(s===13)++d,s=b.charCodeAt(d),s===10&&++d,R.C&&(++Ce,se=d);else if(s===10||s===8232||s===8233)++d,R.C&&(++Ce,se=d);else if(8<s&&14>s)++d;else if(s===47)if(s=b.charCodeAt(d+1),s===42){s=void 0;var c=R.va&&R.C&&new i,p=d,h=b.indexOf("*/",d+=2);if(h===-1&&r(d-2,"Unterminated comment"),d=h+2,R.C)for(mt.lastIndex=p;(s=mt.exec(b))&&s.index<d;)++Ce,se=s.index+s[0].length;R.va&&R.va(!0,b.slice(p+2,h),p,d,c,R.C&&new i)}else if(s===47)u();else break;else if(s===160)++d;else if(5760<=s&&wo.test(String.fromCharCode(s)))++d;else break}}function g(s){switch(s){case 46:s=b.charCodeAt(d+1),48<=s&&57>=s?E(!0):(++d,l(Ln));return;case 40:return++d,l(ae);case 41:return++d,l(re);case 59:return++d,l(le);case 44:return++d,l(ve);case 91:return++d,l(Ht);case 93:return++d,l(Kt);case 123:return++d,l(Le);case 125:return++d,l(Re);case 58:return++d,l(He);case 63:return++d,l(Hn);case 48:if(s=b.charCodeAt(d+1),s===120||s===88){d+=2,s=P(16),s===null&&r(U+2,"Expected hexadecimal number"),n(b.charCodeAt(d))&&r(d,"Identifier directly after number"),l(We,s);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return E(!1);case 34:case 39:d++;for(var c="";;){d>=Ie&&r(U,"Unterminated string constant");var p=b.charCodeAt(d);if(p===s){++d,l(ct,c);break}if(p===92){p=b.charCodeAt(++d);var h=/^[0-7]+/.exec(b.slice(d,d+3));for(h&&(h=h[0]);h&&255<parseInt(h,8);)h=h.slice(0,-1);if(h==="0"&&(h=null),++d,h)X&&r(d-2,"Octal literal in strict mode"),c+=String.fromCharCode(parseInt(h,8)),d+=h.length-1;else switch(p){case 110:c+=`
|
|
2
|
+
`;break;case 114:c+="\r";break;case 120:c+=String.fromCharCode(N(2));break;case 117:c+=String.fromCharCode(N(4));break;case 85:c+=String.fromCharCode(N(8));break;case 116:c+=" ";break;case 98:c+="\b";break;case 118:c+="\v";break;case 102:c+="\f";break;case 48:c+="\0";break;case 13:b.charCodeAt(d)===10&&++d;case 10:R.C&&(se=d,++Ce);break;default:c+=String.fromCharCode(p)}}else p!==13&&p!==10&&p!==8232&&p!==8233||r(U,"Unterminated string constant"),c+=String.fromCharCode(p),++d}return;case 47:s=b.charCodeAt(d+1),Ue?(++d,C()):s===61?f(we,2):f(Kn,1);return;case 37:case 42:b.charCodeAt(d+1)===61?f(we,2):f(ko,1);return;case 124:case 38:c=b.charCodeAt(d+1),c===s?f(s===124?qn:Gn,2):c===61?f(we,2):f(s===124?mo:fo,1);return;case 94:b.charCodeAt(d+1)===61?f(we,2):f(ho,1);return;case 43:case 45:c=b.charCodeAt(d+1),c===s?c===45&&b.charCodeAt(d+2)===62&&dt.test(b.slice(ye,d))?(d+=3,u(),m(),v()):f(po,2):c===61?f(we,2):f(bo,1);return;case 60:case 62:c=b.charCodeAt(d+1),p=1,c===s?(p=s===62&&b.charCodeAt(d+2)===62?3:2,b.charCodeAt(d+p)===61?f(we,p+1):f(vo,p)):c===33&&s===60&&b.charCodeAt(d+2)===45&&b.charCodeAt(d+3)===45?(d+=4,u(),m(),v()):(c===61&&(p=b.charCodeAt(d+2)===61?3:2),f(yo,p));return;case 61:case 33:b.charCodeAt(d+1)===61?f(go,b.charCodeAt(d+2)===61?3:2):f(s===61?_n:zn,1);return;case 126:return f(zn,1)}return!1}function v(s){if(s?d=U+1:U=d,R.C&&($t=new i),s)return C();if(d>=Ie)return l(Vt);if(s=b.charCodeAt(d),n(s)||s===92)return V();if(g(s)===!1){if(s=String.fromCharCode(s),s==="\\"||Xn.test(s))return V();r(d,"Unexpected character '"+s+"'")}}function f(s,c){var p=b.slice(d,d+c);d+=c,l(s,p)}function C(){for(var s,c,p=d;;){d>=Ie&&r(p,"Unterminated regexp");var h=b.charAt(d);if(dt.test(h)&&r(p,"Unterminated regexp"),s)s=!1;else{if(h==="[")c=!0;else if(h==="]"&&c)c=!1;else if(h==="/"&&!c)break;s=h==="\\"}++d}s=b.slice(p,d),++d,(c=Q())&&!/^[gmi]*$/.test(c)&&r(p,"Invalid regexp flag");try{var T=new RegExp(s,c)}catch(D){throw D instanceof SyntaxError&&r(p,D.message),D}l(wn,T)}function P(s,c){for(var p=d,h=0,T=c===void 0?1/0:c,D=0;D<T;++D){var q=b.charCodeAt(d);if(q=97<=q?q-97+10:65<=q?q-65+10:48<=q&&57>=q?q-48:1/0,q>=s)break;++d,h=h*s+q}return d===p||c!==void 0&&d-p!==c?null:h}function E(s){var c=d,p=!1,h=b.charCodeAt(d)===48;s||P(10)!==null||r(c,"Invalid number"),b.charCodeAt(d)===46&&(++d,P(10),p=!0),s=b.charCodeAt(d),(s===69||s===101)&&(s=b.charCodeAt(++d),s!==43&&s!==45||++d,P(10)===null&&r(c,"Invalid number"),p=!0),n(b.charCodeAt(d))&&r(d,"Identifier directly after number"),s=b.slice(c,d);var T;p?T=parseFloat(s):h&&s.length!==1?/[89]/.test(s)||X?r(c,"Invalid number"):T=parseInt(s,8):T=parseInt(s,10),l(We,T)}function N(s){return s=P(16,s),s===null&&r(U,"Bad character escape sequence"),s}function Q(){Ae=!1;for(var s,c=!0,p=d;;){var h=b.charCodeAt(d);if(t(h))Ae&&(s+=b.charAt(d)),++d;else if(h===92){Ae||(s=b.slice(p,d)),Ae=!0,b.charCodeAt(++d)!==117&&r(d,"Expecting Unicode escape sequence \\uXXXX"),++d,h=N(4);var T=String.fromCharCode(h);T||r(d-1,"Invalid Unicode escape"),(c?n(h):t(h))||r(d-4,"Invalid Unicode escape"),s+=T}else break;c=!1}return Ae?s:b.slice(p,d)}function V(){var s=Q(),c=xe;!Ae&&Co(s)&&(c=uo[s]),l(c,s)}function A(){jt=U,ye=Te,Nt=Ot,v()}function Ee(s){if(X=s,d=U,R.C)for(;d<se;)se=b.lastIndexOf(`
|
|
3
|
+
`,se-2)+1,--Ce;m(),v()}function ee(){this.type=null,this.start=U,this.end=null}function fe(){this.start=$t,this.end=null,Pt&&(this.source=Pt)}function L(){var s=new ee;return R.C&&(s.X=new fe),R.vb&&(s.sourceFile=R.vb),R.Xa&&(s.j=[U,0]),s}function ge(s){var c=new ee;return c.start=s.start,R.C&&(c.X=new fe,c.X.start=s.X.start),R.Xa&&(c.j=[s.j[0],0]),c}function x(s,c){return s.type=c,s.end=ye,R.C&&(s.X.end=Nt),R.Xa&&(s.j[1]=ye),s}function Et(s){return s.type==="ExpressionStatement"&&s.la.type==="Literal"&&s.la.value==="use strict"}function j(s){return I===s?(A(),!0):!1}function st(){return!R.fc&&(I===Vt||I===Re||dt.test(b.slice(ye,U)))}function Se(){j(le)||st()||oe()}function F(s){I===s?A():oe()}function oe(){r(U,"Unexpected token")}function at(s){s.type!=="Identifier"&&s.type!=="MemberExpression"&&r(s.start,"Assigning to rvalue"),X&&s.type==="Identifier"&&pt(s.name)&&r(s.start,"Assigning to "+s.name+" in strict mode")}function te(){(I===Kn||I===we&&Z==="/=")&&v(!0);var s=I,c=L();switch(s){case Ft:case In:A();var p=s===Ft;j(le)||st()?c.label=null:I!==xe?oe():(c.label=ie(),Se());for(var h=0;h<M.length;++h){var T=M[h];if((c.label===null||T.name===c.label.name)&&(T.kind!==null&&(p||T.kind==="loop")||c.label&&p))break}return h===M.length&&r(c.start,"Unsyntactic "+s.l),x(c,p?"BreakStatement":"ContinueStatement");case Tn:return A(),Se(),x(c,"DebuggerStatement");case Rn:return A(),M.push(_t),c.body=te(),M.pop(),F(Lt),c.test=Ve(),Se(),x(c,"DoWhileStatement");case Pn:return A(),M.push(_t),F(ae),I===le?It(c,null):I===Wt?(s=L(),A(),Sn(s,!0),x(s,"VariableDeclaration"),s.fa.length===1&&j(ut)?kn(c,s):It(c,s)):(s=_(!1,!0),j(ut)?(at(s),kn(c,s)):It(c,s));case Ut:return A(),At(c,!0);case $n:return A(),c.test=Ve(),c.da=te(),c.alternate=j(An)?te():null,x(c,"IfStatement");case On:return De||R.Ib||r(U,"'return' outside of function"),A(),j(le)||st()?c.K=null:(c.K=_(),Se()),x(c,"ReturnStatement");case Dt:for(A(),c.Qb=Ve(),c.tb=[],F(Le),M.push(Io);I!==Re;)I===Mt||I===xn?(s=I===Mt,h&&x(h,"SwitchCase"),c.tb.push(h=L()),h.da=[],A(),s?h.test=_():(p&&r(jt,"Multiple default clauses"),p=!0,h.test=null),F(He)):(h||oe(),h.da.push(te()));return h&&x(h,"SwitchCase"),A(),M.pop(),x(c,"SwitchStatement");case jn:return A(),dt.test(b.slice(ye,U))&&r(ye,"Illegal newline after throw"),c.K=_(),Se(),x(c,"ThrowStatement");case Nn:return A(),c.block=Fe(),c.Ea=null,I===En&&(s=L(),A(),F(ae),s.Ua=ie(),X&&pt(s.Ua.name)&&r(s.Ua.start,"Binding "+s.Ua.name+" in strict mode"),F(re),s.body=Fe(),c.Ea=x(s,"CatchClause")),c.fb=j(Bn)?Fe():null,c.Ea||c.fb||r(c.start,"Missing catch or finally clause"),x(c,"TryStatement");case Wt:return A(),Sn(c),Se(),x(c,"VariableDeclaration");case Lt:return A(),c.test=Ve(),M.push(_t),c.body=te(),M.pop(),x(c,"WhileStatement");case Vn:return X&&r(U,"'with' in strict mode"),A(),c.object=Ve(),c.body=te(),x(c,"WithStatement");case Le:return Fe();case le:return A(),x(c,"EmptyStatement");default:if(p=Z,T=_(),s===xe&&T.type==="Identifier"&&j(He)){for(h=0;h<M.length;++h)M[h].name===p&&r(T.start,"Label '"+p+"' is already declared");return M.push({name:p,kind:I.W?"loop":I===Dt?"switch":null}),c.body=te(),M.pop(),c.label=T,x(c,"LabeledStatement")}return c.la=T,Se(),x(c,"ExpressionStatement")}}function Ve(){F(ae);var s=_();return F(re),s}function Fe(s){var c=L(),p=!0,h=!1;for(c.body=[],F(Le);!j(Re);){var T=te();if(c.body.push(T),p&&s&&Et(T)){var D=h;Ee(h=!0)}p=!1}return h&&!D&&Ee(!1),x(c,"BlockStatement")}function It(s,c){return s.ua=c,F(le),s.test=I===le?null:_(),F(le),s.update=I===re?null:_(),F(re),s.body=te(),M.pop(),x(s,"ForStatement")}function kn(s,c){return s.left=c,s.right=_(),F(re),s.body=te(),M.pop(),x(s,"ForInStatement")}function Sn(s,c){for(s.fa=[],s.kind="var";;){var p=L();if(p.id=ie(),X&&pt(p.id.name)&&r(p.id.start,"Binding "+p.id.name+" in strict mode"),p.ua=j(_n)?_(!0,c):null,s.fa.push(x(p,"VariableDeclarator")),!j(ve))break}}function _(s,c){var p=Tt(c);if(!s&&I===ve){for(s=ge(p),s.xb=[p];j(ve);)s.xb.push(Tt(c));return x(s,"SequenceExpression")}return p}function Tt(s){var c=xt(Rt(),-1,s);if(j(Hn)){var p=ge(c);p.test=c,p.da=_(!0),F(He),p.alternate=_(!0,s),c=x(p,"ConditionalExpression")}return I.Cb?(p=ge(c),p.operator=Z,p.left=c,A(),p.right=Tt(s),at(c),x(p,"AssignmentExpression")):c}function xt(s,c,p){var h=I.L;if(h!==null&&(!p||I!==ut)&&h>c){var T=ge(s);return T.left=s,T.operator=Z,s=I,A(),T.right=xt(Rt(),h,p),h=x(T,s===qn||s===Gn?"LogicalExpression":"BinaryExpression"),xt(h,c,p)}return s}function Rt(){if(I.prefix){var s=L(),c=I.$b;return s.operator=Z,Ue=s.prefix=!0,A(),s.K=Rt(),c?at(s.K):X&&s.operator==="delete"&&s.K.type==="Identifier"&&r(s.start,"Deleting local variable in strict mode"),x(s,c?"UpdateExpression":"UnaryExpression")}for(c=Me(lt());I.cc&&!st();)s=ge(c),s.operator=Z,s.prefix=!1,s.K=c,at(c),A(),c=x(s,"UpdateExpression");return c}function Me(s,c){if(j(Ln)){var p=ge(s);return p.object=s,p.Wa=ie(!0),p.bb=!1,Me(x(p,"MemberExpression"),c)}return j(Ht)?(p=ge(s),p.object=s,p.Wa=_(),p.bb=!0,F(Kt),Me(x(p,"MemberExpression"),c)):!c&&j(ae)?(p=ge(s),p.callee=s,p.arguments=Bt(re,!1),Me(x(p,"CallExpression"),c)):s}function lt(){switch(I){case Mn:var s=L();return A(),x(s,"ThisExpression");case xe:return ie();case We:case ct:case wn:return s=L(),s.value=Z,s.raw=b.slice(U,Te),A(),x(s,"Literal");case Un:case Dn:case Wn:return s=L(),s.value=I.$a,s.raw=I.l,A(),x(s,"Literal");case ae:s=$t;var c=U;A();var p=_();return p.start=c,p.end=Te,R.C&&(p.X.start=s,p.X.end=Ot),R.Xa&&(p.j=[c,Te]),F(re),p;case Ht:return s=L(),A(),s.elements=Bt(Kt,!0,!0),x(s,"ArrayExpression");case Le:for(s=L(),c=!0,p=!1,s.h=[],A();!j(Re);){if(c)c=!1;else if(F(ve),R.sb&&j(Re))break;var h={key:I===We||I===ct?lt():ie(!0)},T=!1;if(j(He)){h.value=_(!0);var D=h.kind="init"}else h.key.type!=="Identifier"||h.key.name!=="get"&&h.key.name!=="set"?oe():(T=p=!0,D=h.kind=h.key.name,h.key=I===We||I===ct?lt():ie(!0),I!==ae&&oe(),h.value=At(L(),!1));if(h.key.type==="Identifier"&&(X||p))for(var q=0;q<s.h.length;++q){var Be=s.h[q];if(Be.key.name===h.key.name){var zt=D===Be.kind||T&&Be.kind==="init"||D==="init"&&(Be.kind==="get"||Be.kind==="set");zt&&!X&&D==="init"&&Be.kind==="init"&&(zt=!1),zt&&r(h.key.start,"Redefinition of property")}}s.h.push(h)}return x(s,"ObjectExpression");case Ut:return s=L(),A(),At(s,!1);case Fn:return s=L(),A(),s.callee=Me(lt(),!0),s.arguments=j(ae)?Bt(re,!1):co,x(s,"NewExpression")}oe()}function At(s,c){I===xe?s.id=ie():c?oe():s.id=null,s.oa=[];var p=!0;for(F(ae);!j(re);)p?p=!1:F(ve),s.oa.push(ie());p=De;var h=M;if(De=!0,M=[],s.body=Fe(!0),De=p,M=h,X||s.body.body.length&&Et(s.body.body[0])){for(p=s.id?-1:0;p<s.oa.length;++p)if(h=0>p?s.id:s.oa[p],(Jn(h.name)||pt(h.name))&&r(h.start,"Defining '"+h.name+"' in strict mode"),0<=p)for(var T=0;T<p;++T)h.name===s.oa[T].name&&r(h.start,"Argument name clash in strict mode")}return x(s,c?"FunctionDeclaration":"FunctionExpression")}function Bt(s,c,p){for(var h=[],T=!0;!j(s);){if(T)T=!1;else if(F(ve),c&&R.sb&&j(s))break;h.push(p&&I===ve?null:_(!0))}return h}function ie(s){var c=L();return s&&R.yb==="everywhere"&&(s=!1),I===xe?(!s&&(R.yb&&So(Z)||X&&Jn(Z))&&b.slice(U,Te).indexOf("\\")===-1&&r(U,"The keyword '"+Z+"' is reserved"),c.name=Z):s&&I.l?c.name=I.l:oe(),Ue=!1,A(),x(c,"Identifier")}e.version="0.5.0";var R,b="",Ie,Pt;e.parse=function(s,c){b=String(s),Ie=b.length,R=c||{};for(var p in Cn)Object.prototype.hasOwnProperty.call(R,p)||(R[p]=Cn[p]);for(Pt=R.sourceFile,Ce=1,d=se=0,Ue=!0,m(),p=R.dc,jt=ye=d,R.C&&(Nt=new i),De=X=!1,M=[],v(),s=p||L(),c=!0,p||(s.body=[]);I!==Vt;)p=te(),s.body.push(p),c&&Et(p)&&Ee(!0),c=!1;return x(s,"Program")};var Cn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},d=0,U=0,Te=0,$t,Ot,I,Z,Ue,Ce,se,jt=0,ye=0,Nt,De,M,X,co=[],We={type:"num"},wn={type:"regexp"},ct={type:"string"},xe={type:"name"},Vt={type:"eof"},Ft={l:"break"},Mt={l:"case",m:!0},En={l:"catch"},In={l:"continue"},Tn={l:"debugger"},xn={l:"default"},Rn={l:"do",W:!0},An={l:"else",m:!0},Bn={l:"finally"},Pn={l:"for",W:!0},Ut={l:"function"},$n={l:"if"},On={l:"return",m:!0},Dt={l:"switch"},jn={l:"throw",m:!0},Nn={l:"try"},Wt={l:"var"},Lt={l:"while",W:!0},Vn={l:"with"},Fn={l:"new",m:!0},Mn={l:"this"},Un={l:"null",$a:null},Dn={l:"true",$a:!0},Wn={l:"false",$a:!1},ut={l:"in",L:7,m:!0},uo={break:Ft,case:Mt,catch:En,continue:In,debugger:Tn,default:xn,do:Rn,else:An,finally:Bn,for:Pn,function:Ut,if:$n,return:On,switch:Dt,throw:jn,try:Nn,var:Wt,while:Lt,with:Vn,null:Un,true:Dn,false:Wn,new:Fn,in:ut,instanceof:{l:"instanceof",L:7,m:!0},this:Mn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Ht={type:"[",m:!0},Kt={type:"]"},Le={type:"{",m:!0},Re={type:"}"},ae={type:"(",m:!0},re={type:")"},ve={type:",",m:!0},le={type:";",m:!0},He={type:":",m:!0},Ln={type:"."},Hn={type:"?",m:!0},Kn={L:10,m:!0},_n={Cb:!0,m:!0},we={Cb:!0,m:!0},po={cc:!0,prefix:!0,$b:!0},zn={prefix:!0,m:!0},qn={L:1,m:!0},Gn={L:2,m:!0},mo={L:3,m:!0},ho={L:4,m:!0},fo={L:5,m:!0},go={L:6,m:!0},yo={L:7,m:!0},vo={L:8,m:!0},bo={L:9,prefix:!0,m:!0},ko={L:10,m:!0},So=o("class enum extends super const export import"),Jn=o("implements interface let package private protected public static yield"),pt=o("eval arguments"),Co=o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),wo=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Xn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),Eo=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),dt=/[\n\r\u2028\u2029]/,mt=/\r\n|[\n\r\u2028\u2029]/g,Ae,_t={kind:"loop"},Io={kind:"switch"}},Xt=Xt=typeof globalThis>"u"?void 0:globalThis;_o(Xt.j||(Xt.j={}));function y(e,t){typeof e=="string"&&(e=Oe(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var i,l;for(l in this)typeof this[l]=="function"&&(i=l.match(e))&&(this.rb[i[1]]=this[l].bind(this));this.N=Zt(this,this.ra,null),this.Na=this.N.object,this.ra=Oe(this.ba.join(`
|
|
4
|
+
`),"polyfills"),this.ba=void 0,bt(this.ra),i=new S(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new S(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var Yn={C:!0,kc:5},rn={configurable:!0,enumerable:!0,writable:!1},k={configurable:!0,enumerable:!1,writable:!0},J={configurable:!0,enumerable:!1,writable:!1},Ke={configurable:!1,enumerable:!1,writable:!1},Zn={configurable:!1,enumerable:!0,writable:!0},br={STEP_ERROR:!0},Ne={SCOPE_REFERENCE:!0},Ze={VALUE_IN_DESCRIPTOR:!0},Pe={REGEXP_TIMEOUT:!0},Qn=[],pe=null,Je=null,be=typeof globalThis>"u"?void 0:globalThis,zo=["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 on(e){var t=e>>>0;return t===Number(e)?t:NaN}function Xe(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function bt(e,t,n){t?e.start=t:delete e.start,n?e.end=n:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var o=e[r];o&&typeof o=="object"&&bt(o,t,n)}}y.prototype.REGEXP_MODE=2;y.prototype.REGEXP_THREAD_TIMEOUT=1e3;y.prototype.POLYFILL_TIMEOUT=1e3;$=y.prototype;$.P=!1;$.Ka=!1;$.Kb=0;$.ic=0;function Oe(e,t){var n={},r;for(r in Yn)n[r]=Yn[r];return n.sourceFile=t,be.j.parse(e,n)}$.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");Qe(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};$.lb=function(){var e=this.o,t;do{var n=e[e.length-1];if(this.za)break;if(!n||n.node.type==="Program"&&n.done){if(!this.ca.length)return!1;if(n=this.ca[0],!n||n.time>Date.now())n=null;else{this.ca.shift(),0<=n.interval&&Cr(this,n,n.interval);var r=new S(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=Je;Je=this;try{var i=this.rb[r.type](e,n,r)}catch(l){if(l!==br)throw this.value!==l&&(this.value=void 0),l}finally{Je=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};$.Eb=function(){for(;!this.za&&this.lb(););return this.za};function qo(e,t){e.g(t,"NaN",NaN,Ke),e.g(t,"Infinity",1/0,Ke),e.g(t,"undefined",void 0,Ke),e.g(t,"window",t,rn),e.g(t,"this",t,Ke),e.g(t,"self",t),e.M=new B(null),e.Z=new B(e.M),Go(e,t),Jo(e,t),t.xa=e.M,e.g(t,"constructor",e.v,k),Xo(e,t),Yo(e,t),Zo(e,t),Qo(e,t),ei(e,t),ti(e,t),ni(e,t),ri(e,t),oi(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,k),e.g(t,"parseInt",e.i(parseInt,!1),k),e.g(t,"parseFloat",e.i(parseFloat,!1),k),e.g(t,"isNaN",e.i(isNaN,!1),k),e.g(t,"isFinite",e.i(isFinite,!1),k);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(l){try{return i(l)}catch(u){w(e,e.Gb,u.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),k);n=function(i){return er(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),k),n=function(i){return er(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),k),n=function(i){tr(e,i)},e.g(t,"clearTimeout",e.i(n,!1),k),n=function(i){tr(e,i)},e.g(t,"clearInterval",e.i(n,!1),k),e.OBJECT=e.v,e.OBJECT_PROTO=e.M,e.FUNCTION=e.O,e.FUNCTION_PROTO=e.Z,e.ARRAY=e.qa,e.ARRAY_PROTO=e.La,e.REGEXP=e.I,e.REGEXP_PROTO=e.Ma,e.DATE=e.$,e.DATE_PROTO=e.nb,e.qb&&e.qb(e,t)}$.Wb=0;function Go(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",l=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(l){l=l.split(/\s*,\s*/);for(var u=0;u<l.length;u++){var m=l[u];n.test(m)||w(e,e.T,"Invalid function argument: "+m)}l=l.join(", ")}try{var g=Oe("(function("+l+") {"+i+"})","function"+e.Wb++)}catch(v){w(e,e.T,"Invalid code: "+v.message)}return g.body.length!==1&&w(e,e.T,"Invalid code in function body"),ln(e,g.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,k),e.g(e.O,"prototype",e.Z,k),e.g(e.Z,"constructor",e.O,k),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,J),e.Z.H="Function",r=function(o,i){var l=e.o[e.o.length-1];l.U=this,l.B=o,l.F=[],i!=null&&(i instanceof B?l.F=kr(e,i):w(e,e.j,"CreateListFromArrayLike called on non-object")),l.eb=!1},W(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var l=1;l<arguments.length;l++)i.F.push(arguments[l]);i.eb=!1},W(e,e.O,"call",r),e.ba.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function bind(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');","}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});",""),r=function(){return String(this)},W(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),k),r=function(){return this.valueOf()},W(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),k)}function Jo(e,t){function n(o){o!=null||w(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return me(e)?this:e.s(e.M);if(!(o instanceof B)){var i=e.s(de(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,k),e.g(e.M,"constructor",e.v,k),e.g(t,"Object",e.v,k),r=function(o){return n(o),ue(e,Object.getOwnPropertyNames(o instanceof B?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),k),r=function(o){return n(o),o instanceof B&&(o=o.h),ue(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),k),r=function(o){return o===null?e.s(null):(o instanceof B||w(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(r,!1),k),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),r=function(o,i,l){return i=String(i),o instanceof B||w(e,e.j,"Object.defineProperty called on non-object: "+o),l instanceof B||w(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||w(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,Ze,l.h),o},e.g(e.v,"defineProperty",e.i(r,!1),k),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),r=function(o,i){if(o instanceof B||w(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var l=Object.getOwnPropertyDescriptor(o.h,i),u=o.V[i];return o=o.Y[i],i=e.s(e.M),u||o?(e.g(i,"get",u),e.g(i,"set",o)):(e.g(i,"value",l.value),e.g(i,"writable",l.writable)),e.g(i,"configurable",l.configurable),e.g(i,"enumerable",l.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),k),r=function(o){return n(o),de(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),k),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),k),r=function(o){return o instanceof B&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),k),W(e,e.v,"toString",B.prototype.toString),W(e,e.v,"toLocaleString",B.prototype.toString),W(e,e.v,"valueOf",B.prototype.valueOf),r=function(o){return n(this),this instanceof B?String(o)in this.h:this.hasOwnProperty(o)},W(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof B?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},W(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=de(e,o),!o)return!1;if(o===this)return!0}},W(e,e.v,"isPrototypeOf",r)}function Xo(e,t){var n=function(r){var o=me(e)?this:je(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(on(i))&&w(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,k),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),k),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.La.H="Array",e.ba.push("(function() {","function createArrayMethod_(f) {","Object.defineProperty(Array.prototype, f.name,","{configurable: true, writable: true, value: f});","}","createArrayMethod_(","function pop() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_(","function push(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_(","function shift() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_(","function unshift(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_(","function reverse() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_(","function indexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_(","function lastIndexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_(","function slice(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_(","function splice(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 1) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","o.length = len;","return removed;","}",");","createArrayMethod_(","function concat(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_(","function join(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_(","function every(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callbackfn.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_(","function filter(fun, var_args) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (fun.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_(","function forEach(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_(","function map(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_(","function reduce(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function reduceRight(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function some(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && fun.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_(","function sort(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_(","function toLocaleString() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")}function Yo(e,t){var n=function(r){return r=arguments.length?be.String(r):"",me(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,k),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),k),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)W(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(l){w(e,e.D,"localeCompare: "+l.message)}},W(e,e.J,"localeCompare",n),n=function(r,o,i){var l=String(this);if(o=o?Number(o):void 0,H(e,r,e.I)&&(r=r.data,ze(e,r,i),e.REGEXP_MODE===2)){if(pe)r=_e(e,"string.split(separator, limit)",{string:l,separator:r,limit:o},r,i),r!==Pe&&i(ue(e,r));else{var u=e.ha(),m=qe(e,r,u,i);u.onmessage=function(g){clearTimeout(m),i(ue(e,g.data))},u.postMessage(["split",l,r,o])}return}r=l.split(r,o),i(ue(e,r))},Ge(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=H(e,r,e.I)?r.data:new RegExp(r),ze(e,r,o),e.REGEXP_MODE===2)if(pe)r=_e(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==Pe&&o(r&&ue(e,r));else{var l=e.ha(),u=qe(e,r,l,o);l.onmessage=function(m){clearTimeout(u),o(m.data&&ue(e,m.data))},l.postMessage(["match",i,r])}else r=i.match(r),o(r&&ue(e,r))},Ge(e,e.J,"match",n),n=function(r,o){var i=String(this);if(H(e,r,e.I)?r=r.data:r=new RegExp(r),ze(e,r,o),e.REGEXP_MODE===2)if(pe)r=_e(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==Pe&&o(r);else{var l=e.ha(),u=qe(e,r,l,o);l.onmessage=function(m){clearTimeout(u),o(m.data)},l.postMessage(["search",i,r])}else o(i.search(r))},Ge(e,e.J,"search",n),n=function(r,o,i){var l=String(this);if(o=String(o),H(e,r,e.I)&&(r=r.data,ze(e,r,i),e.REGEXP_MODE===2)){if(pe)r=_e(e,"string.replace(substr, newSubstr)",{string:l,substr:r,newSubstr:o},r,i),r!==Pe&&i(r);else{var u=e.ha(),m=qe(e,r,u,i);u.onmessage=function(g){clearTimeout(m),i(g.data)},u.postMessage(["replace",l,r,o])}return}i(l.replace(r,o))},Ge(e,e.J,"replace",n),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function Zo(e,t){e.mb=e.i(function(n){return n=be.Boolean(n),me(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,k)}function Qo(e,t){var n=function(r){return r=arguments.length?be.Number(r):0,me(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,k),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],n=0;n<t.length;n++)e.g(e.aa,t[n],Number[t[n]],Ke);n=function(r){try{return Number(this).toExponential(r)}catch(o){w(e,e.D,o.message)}},W(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){w(e,e.D,o.message)}},W(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){w(e,e.D,o.message)}},W(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){w(e,e.D,o.message)}},W(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(i){w(e,e.D,"toLocaleString: "+i.message)}},W(e,e.aa,"toLocaleString",n)}function ei(e,t){var n=function(o,i){if(!me(e))return be.Date();var l=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(be.Date,l)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,k),e.g(e.$,"now",e.i(Date.now,!1),k),e.g(e.$,"parse",e.i(Date.parse,!1),k),e.g(e.$,"UTC",e.i(Date.UTC,!1),k),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var l=this.data;l instanceof Date||w(e,e.j,o+" not called on a Date");for(var u=[],m=0;m<arguments.length;m++)u[m]=e.R(arguments[m]);return l[o].apply(l,u)}}(t[r]),W(e,e.$,t[r],n)}function ti(e,t){var n=function(r,o){if(me(e))var i=this;else{if(o===void 0&&H(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||w(e,e.T,"Invalid regexp flag: "+o);try{var l=new be.RegExp(r,o)}catch(u){w(e,e.T,u.message)}return sn(e,i,l),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,k),e.g(e.I.h.prototype,"global",void 0,J),e.g(e.I.h.prototype,"ignoreCase",void 0,J),e.g(e.I.h.prototype,"multiline",void 0,J),e.g(e.I.h.prototype,"source","(?:)",J),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(v){if(v){var f=ue(e,v);return e.g(f,"index",v.index),e.g(f,"input",v.input),f}return null}var l=this.data;if(r=String(r),l.lastIndex=Number(e.G(this,"lastIndex")),ze(e,l,o),e.REGEXP_MODE===2)if(pe)r=_e(e,"regexp.exec(string)",{string:r,regexp:l},l,o),r!==Pe&&(e.g(this,"lastIndex",l.lastIndex),o(i(r)));else{var u=e.ha(),m=qe(e,l,u,o),g=this;u.onmessage=function(v){clearTimeout(m),e.g(g,"lastIndex",v.data[1]),o(i(v.data[0]))},u.postMessage(["exec",l,l.lastIndex,r])}else r=l.exec(r),e.g(this,"lastIndex",l.lastIndex),o(i(r))},Ge(e,e.I,"exec",n)}function ni(e,t){function n(r){var o=e.i(function(i){var l=me(e)?this:e.Aa(o);return Yt(e,l,i),l},!0);return e.g(o,"prototype",e.Aa(e.D),k),e.g(o.h.prototype,"name",r,k),e.g(t,r,o,k),o}e.D=e.i(function(r){var o=me(e)?this:e.Aa(e.D);return Yt(e,o,r),o},!0),e.g(t,"Error",e.D,k),e.g(e.D.h.prototype,"message","",k),e.g(e.D.h.prototype,"name","Error",k),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function ri(e,t){var n=e.s(e.M);e.g(t,"Math",n,k);var r="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<r.length;t++)e.g(n,r[t],Math[r[t]],J);for(r="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<r.length;t++)e.g(n,r[t],e.i(Math[r[t]],!1),k)}function oi(e,t){var n=e.s(e.M);e.g(t,"JSON",n,k),t=function(r){try{var o=JSON.parse(String(r))}catch(i){w(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?w(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=kr(e,o),o=o.filter(function(u){return typeof u=="string"||typeof u=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var l=JSON.stringify(r,o,i)}catch(u){w(e,e.j,u.message)}return l},e.g(n,"stringify",e.i(t,!1))}function H(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=de(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function sn(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,k),e.g(t,"source",n.source,J),e.g(t,"global",n.global,J),e.g(t,"ignoreCase",n.ignoreCase,J),e.g(t,"multiline",n.multiline,J)}function Yt(e,t,n){n&&e.g(t,"message",String(n),k),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;i.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!i.X||n.length&&i.type!=="CallExpression"||n.push({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
|
|
5
5
|
`,r=0;r<n.length;r++){var l=n[r].Nb;o=n[r].Ob,l=l.source+":"+l.start.line+":"+l.start.ab,i=o?i+(" at "+o+" ("+l+`)
|
|
6
6
|
`):i+(" at "+l+`
|
|
7
7
|
`)}e.g(t,"stack",i.trim(),k)}$.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([zo.join(`
|
|
8
|
-
`)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function ze(e,t,n,r,o){var i={timeout:e.REGEXP_THREAD_TIMEOUT};try{return pe.runInNewContext(t,n,i)}catch{o(null),w(e,e.D,"RegExp Timeout: "+r)}return $e}function qe(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(pe)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{pe=require("vm")}catch{}r=!!pe}else r=!1;r||(n(null),w(e,e.D,"Regular expressions not supported: "+t))}function Ge(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{w(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}$.Aa=function(e){return this.s(e&&e.h.prototype)};$.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new B(e),H(this,e,this.D)&&(e.H="Error"),e};function Ne(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function an(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,k),e.g(n,"constructor",r,k)):r.Ab=!0,e.g(r,"length",t,J),r.H="Function",r}function ln(e,t,n,r){var o=an(e,t.oa.length,!0);return o.Va=n,o.node=t,e.g(o,"name",t.id?String(t.id.name):r||"",J),o}$.i=function(e,t){return t=an(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,J),t};$.ub=function(e){var t=an(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,J),t};$.Ia=function(e){if(e instanceof B)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return sn(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var n=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var o=Array.prototype.slice.call(arguments).map(function(i){return n.R(i)});return o=e.apply(n,o),n.Ia(o)},!!t)}if(Array.isArray(e)){t=Ne(this);for(var r=0;r<e.length;r++)r in e&&this.g(t,r,this.Ia(e[r]));return t}t=this.s(this.M);for(r in e)this.g(t,r,this.Ia(e[r]));return t};$.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof B))throw Error("Object is not pseudo");if(H(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(H(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var n=t.hb.indexOf(e);if(n!==-1)return t.Sa[n];if(t.hb.push(e),H(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),o=0;o<r;o++)kt(this,e,o)&&(n[o]=this.R(this.G(e,o),t))}else for(r in n={},t.Sa.push(n),e.h)o=this.R(e.h[r],t),Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function ue(e,t){for(var n=Ne(e),r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e.g(n,r[o],t[r[o]]);return n}function Cr(e,t){var n=[],r;for(r in t.h)n[r]=e.G(t,r);return n.length=on(e.G(t,"length"))||0,n}function de(e,t){switch(typeof t){case"number":return e.aa.h.prototype;case"boolean":return e.mb.h.prototype;case"string":return e.J.h.prototype}return t?t.xa:null}$.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||w(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof B))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(H(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&H(this,e,this.J)){var n=Ye(t);if(!isNaN(n)&&n<String(e).length)return String(e)[n]}do if(e.h&&t in e.h)return(n=e.V[t])?(this.P=!0,n):e.h[t];while(e=de(this,e))};function kt(e,t,n){if(!(t instanceof B))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&H(e,t,e.J))return!0;if(H(e,t,e.J)){var r=Ye(n);if(!isNaN(r)&&r<String(t).length)return!0}do if(t.h&&n in t.h)return!0;while(t=de(e,t));return!1}$.g=function(e,t,n,r){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||w(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof B))throw TypeError("Expecting native value or pseudo object");r&&("get"in r||"set"in r)&&("value"in r||"writable"in r)&&w(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var o=!this.o||cn(this).S;if(e instanceof B){if(H(this,e,this.J)){var i=Ye(t);if(t==="length"||!isNaN(i)&&i<String(e).length){o&&w(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(i=e.h.length,t==="length"){if(r){if(!("value"in r))return;n=r.value}if(n=on(n),isNaN(n)&&w(this,this.ob,"Invalid array length"),n<i)for(l in e.h){var l=Ye(l);!isNaN(l)&&n<=l&&delete e.h[l]}}else isNaN(l=Ye(t))||(e.h.length=Math.max(i,l+1));if(!e.preventExtensions||t in e.h)if(r){o={},"get"in r&&r.get&&(e.V[t]=r.get,o.get=this.g.ac),"set"in r&&r.set&&(e.Y[t]=r.set,o.set=this.g.bc),"configurable"in r&&(o.configurable=r.configurable),"enumerable"in r&&(o.enumerable=r.enumerable),"writable"in r&&(o.writable=r.writable,delete e.V[t],delete e.Y[t]),"value"in r?(o.value=r.value,delete e.V[t],delete e.Y[t]):n!==Ze&&(o.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,o)}catch{w(this,this.j,"Cannot redefine property: "+t)}"get"in r&&!r.get&&delete e.V[t],"set"in r&&!r.set&&delete e.Y[t]}else{if(n===Ze)throw ReferenceError("Value not specified");for(r=e;!(t in r.h);)if(r=de(this,r),!r){r=e;break}if(r.Y&&r.Y[t])return this.Ka=!0,r.Y[t];if(r.V&&r.V[t])o&&w(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{o&&w(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else o&&w(this,this.j,"Can't add property '"+t+"', object is not extensible")}else o&&w(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};$.g.ac=function(){throw Error("Placeholder getter")};$.g.bc=function(){throw Error("Placeholder setter")};function W(e,t,n,r){e.g(t.h.prototype,n,e.i(r,!1),k)}function Je(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),k)}function cn(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Zt(e,t,n){var r=!1;if(n&&n.S)r=!0;else{var o=t.body&&t.body[0];o&&o.la&&o.la.type==="Literal"&&o.la.value==="use strict"&&(r=!0)}return o=e.s(null),r=new Ir(n,r,o),n||qo(e,r.object),Qe(e,t,r),r}function un(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new Ir(t,t.S,e)}function pn(e,t){for(var n=cn(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&&kt(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||w(e,e.pb,t+" is not defined")}function wr(e,t,n){for(var r=cn(e),o=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{o&&w(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!o||kt(e,r.object,t)))return e.g(r.object,t,n);w(e,e.pb,t+" is not defined")}function Qe(e,t,n){if(t.jb)var r=t.jb;else{switch(r=Object.create(null),t.type){case"VariableDeclaration":for(var o=0;o<t.fa.length;o++)r[t.fa[o].id.name]=!0;break;case"FunctionDeclaration":r[t.id.name]=t;break;case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"Program":case"SwitchCase":case"SwitchStatement":case"TryStatement":case"WithStatement":case"WhileStatement":var i=t.constructor,l;for(l in t)if(l!=="loc"){var u=t[l];if(u&&typeof u=="object"){if(Array.isArray(u)){for(o=0;o<u.length;o++)if(u[o]&&u[o].constructor===i){var m=Qe(e,u[o],n);for(l in m)r[l]=m[l]}}else if(u.constructor===i)for(l in m=Qe(e,u,n),m)r[l]=m[l]}}}t.jb=r}for(l in r)r[l]===!0?e.g(n.object,l,void 0,er):e.g(n.object,l,ln(e,r[l],n),er);return r}function me(e){return e.o[e.o.length-1].isConstructor}function dn(e,t){return t[0]===Ve?pn(e,t[1]):e.G(t[0],t[1])}function mn(e,t,n){return t[0]===Ve?wr(e,t[1],n):e.g(t[0],t[1],n)}function w(e,t,n){throw e.N?(n!==void 0&&t instanceof B&&(t=e.Aa(t),Yt(e,t,n)),nt(e,4,t),Sr):n===void 0?t:n}function nt(e,t,n,r){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var o=e.o;e:for(;0<o.length;o.pop()){var i=o[o.length-1];switch(i.node.type){case"TryStatement":i.ea={type:t,value:n,label:r};return;case"CallExpression":case"NewExpression":if(t===3){i.value=n;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":i.done=!0;break e}if(t===1){if(r?i.labels&&i.labels.indexOf(r)!==-1:i.W||i.Zb){o.pop();return}}else if(t===2&&(r?i.labels&&i.labels.indexOf(r)!==-1:i.W))return}throw H(e,n,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},r=String(e.G(n,"name")),o=e.G(n,"message").valueOf(),t=(t[r]||Error)(o),t.stack=String(e.G(n,"stack"))):t=String(n),e.value=t,t}function G(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return G(e,t.left)+" "+t.operator+" "+G(e,t.right);case"CallExpression":return G(e,t.callee)+"(...)";case"ConditionalExpression":return G(e,t.test)+" ? "+G(e,t.da)+" : "+G(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=G(e,t.object);return e=G(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+G(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+G(e,t.K);case"UpdateExpression":return n=G(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function nr(e,t,n){var r=e.o[e.o.length-1],o=Array.from(n),i=o.shift();n=Math.max(Number(o.shift()||0),0);var l=e.ya();if(i instanceof B&&i.H==="Function"){var u=i;l.type="CallExpression",r=r.scope}else{try{var m=je(String(i),"taskCode"+e.ic++)}catch(g){w(e,e.T,"Invalid code: "+g.message)}l.type="EvalProgram_",l.body=m.body,r=r.node.arguments[0],bt(l,r?r.start:void 0,r?r.end:void 0),r=e.N,o.length=0}return t=new ii(u,o,r,l,t?n:-1),Er(e,t,n),t.Db}function Er(e,t,n){t.time=Date.now()+n,e.ca.push(t),e.ca.sort(function(r,o){return r.time-o.time})}function rr(e,t){for(var n=0;n<e.ca.length;n++)if(e.ca[n].Db==t){e.ca.splice(n,1);break}}function rt(e,t,n){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,n=Array.isArray(n)?n[0]:n;var r=e.ya();return r.type="CallExpression",e=new S(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function hn(e,t,n,r){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,n=Array.isArray(n)?n[0]:e.Na;var o=e.ya();return o.type="CallExpression",e=new S(o,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[r],e}function Gt(e,t){return t==null?e.Na:t instanceof B?t:(e=e.s(de(e,t)),e.data=t,e)}$.Xb=function(){return this.N};$.Yb=function(){return this.o};$.ec=function(e){this.o=e};function S(e,t){this.node=e,this.scope=t}function Ir(e,t,n){this.Va=e,this.S=t,this.object=n}function B(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}$=B.prototype;$.xa=null;$.H="Object";$.data=null;$.toString=function(){if(!Xe)return"[object Interpreter.Object]";if(!(this instanceof B))return String(this);if(this.H==="Array"){var e=tr;e.push(this);try{var t=[],n=this.h.length,r=!1;1024<n&&(n=1e3,r=!0);for(var o=0;o<n;o++){var i=this.h[o];t[o]=i instanceof B&&e.indexOf(i)!==-1?"...":i}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=tr,e.indexOf(this)!==-1)return"[object Error]";n=this;do if("name"in n.h){t=n.h.name;break}while(n=n.xa);n=this;do if("message"in n.h){r=n.h.message;break}while(n=n.xa);e.push(this);try{t=t&&String(t),r=r&&String(r)}finally{e.pop()}return r?t+": "+r:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};$.valueOf=function(){return!Xe||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function ii(e,t,n,r,o){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=o,this.Db=++si,this.time=0}var si=0;y.prototype.stepArrayExpression=function(e,t,n){n=n.elements;var r=t.A||0;for(t.Oa?(this.g(t.Oa,r,t.value),r++):(t.Oa=Ne(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new S(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};y.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new S(n.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&n.operator!=="="&&(e=dn(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,rt(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new S(n.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var r=t.ma,o=t.value;switch(n.operator){case"=":r=o;break;case"+=":r+=o;break;case"-=":r-=o;break;case"*=":r*=o;break;case"/=":r/=o;break;case"%=":r%=o;break;case"<<=":r<<=o;break;case">>=":r>>=o;break;case">>>=":r>>>=o;break;case"&=":r&=o;break;case"^=":r^=o;break;case"|=":r|=o;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}if(n=mn(this,t.Fa,r))return t.ta=!0,t.ib=r,hn(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};y.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new S(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new S(n.right,t.scope);e.pop();var r=t.ma;switch(t=t.value,n.operator){case"==":n=r==t;break;case"!=":n=r!=t;break;case"===":n=r===t;break;case"!==":n=r!==t;break;case">":n=r>t;break;case">=":n=r>=t;break;case"<":n=r<t;break;case"<=":n=r<=t;break;case"+":n=r+t;break;case"-":n=r-t;break;case"*":n=r*t;break;case"/":n=r/t;break;case"%":n=r%t;break;case"&":n=r&t;break;case"|":n=r|t;break;case"^":n=r^t;break;case"<<":n=r<<t;break;case">>":n=r>>t;break;case">>>":n=r>>>t;break;case"in":t instanceof B||w(this,this.j,"'in' expects an object, not '"+t+"'"),n=kt(this,t,r);break;case"instanceof":H(this,t,this.O)||w(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof B?H(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};y.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new S(n,t.scope);e.pop()};y.prototype.stepBreakStatement=function(e,t,n){nt(this,1,void 0,n.label&&n.label.name)};y.prototype.Hb=0;y.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new S(n.callee,t.scope);return r.sa=!0,r}if(t.ia===1){t.ia=2;var o=t.value;if(Array.isArray(o)){if(t.U=dn(this,o),o[0]===Ve?t.Pb=o[1]==="eval":t.B=o[0],o=t.U,this.P)return t.ia=1,rt(this,o,t.value)}else t.U=o;t.F=[],t.A=0}if(o=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),n.arguments[t.A])return new S(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(o instanceof B&&!o.Ab||w(this,this.j,G(this,n.callee)+" is not a constructor"),o===this.qa)t.B=Ne(this);else{var i=o.h.prototype;(typeof i!="object"||i===null)&&(i=this.M),t.B=this.s(i)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,o instanceof B||w(this,this.j,G(this,n.callee)+" is not a function"),e=o.node){for(n=Zt(this,e.body,o.Va),r=Ne(this),o=0;o<t.F.length;o++)this.g(r,o,t.F[o]);for(this.g(n.object,"arguments",r),o=0;o<e.oa.length;o++)this.g(n.object,e.oa[o].name,t.F.length>o?t.F[o]:void 0);return n.S||(t.B=Gt(this,t.B)),this.g(n.object,"this",t.B,rn),t.value=void 0,new S(e.body,n)}if(o.eval)if(o=t.F[0],typeof o!="string")t.value=o;else{try{r=je(String(o),"eval"+this.Hb++)}catch(u){w(this,this.T,"Invalid code: "+u.message)}return o=this.ya(),o.type="EvalProgram_",o.body=r.body,bt(o,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=Zt(this,r,n):Qe(this,r,n),this.value=void 0,new S(o,n)}else if(o.Ta)t.scope.S||(t.B=Gt(this,t.B)),t.value=o.Ta.apply(t.B,t.F);else if(o.Za){var l=this;r=o.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(u){t.value=u,l.za=!1}),this.za=!0,t.scope.S||(t.B=Gt(this,t.B)),o.Za.apply(t.B,r)}else w(this,this.j,G(this,n.callee)+" is not callable")}};y.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new S(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new S(n.da,t.scope);if(!r&&n.alternate)return new S(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};y.prototype.stepContinueStatement=function(e,t,n){nt(this,2,void 0,n.label&&n.label.name)};y.prototype.stepDebuggerStatement=function(e){e.pop()};y.prototype.stepDoWhileStatement=function(e,t,n){if(n.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new S(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new S(n.body,t.scope)};y.prototype.stepEmptyStatement=function(e){e.pop()};y.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new S(n,t.scope);e.pop(),e[e.length-1].value=this.value};y.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new S(n.la,t.scope);e.pop(),this.value=t.value};y.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&w(this,this.T,"for-in loop variable declaration may not have an initializer"),new S(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new S(n.right,t.scope);if(t.W||(t.W=!0,t.u=t.value,t.kb=Object.create(null)),t.Ra===void 0)e:for(;;){if(t.u instanceof B)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var r=t.wa.shift();if(r===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,r)&&!t.kb[r]&&(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,r))){t.Ra=r;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));r=t.wa.shift(),r!==void 0;)if(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u,r)){t.Ra=r;break e}}if(t.u=de(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=n.left,e.type==="VariableDeclaration")t.pa=[Ve,e.fa[0].id.name];else return t.pa=null,t=new S(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=mn(this,t.pa,e)))return hn(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new S(n.body,t.scope)};y.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new S(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new S(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new S(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new S(n.update,t.scope)}};y.prototype.stepFunctionDeclaration=function(e){e.pop()};y.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=un(this,e)),t.value=ln(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,rn)};y.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[Ve,n.name];else{if(t=pn(this,n.name),this.P)return rt(this,t,this.Na);e[e.length-1].value=t}};y.prototype.stepIfStatement=y.prototype.stepConditionalExpression;y.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new S(n.body,t.scope),t.labels=e,t};y.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),sn(this,n,t),t=n),e[e.length-1].value=t};y.prototype.stepLogicalExpression=function(e,t,n){if(n.operator!=="&&"&&n.operator!=="||")throw SyntaxError("Unknown logical operator: "+n.operator);if(!t.ja)return t.ja=!0,new S(n.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(n.operator==="&&"&&!t.value||n.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new S(n.right,t.scope)};y.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new S(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new S(n.Wa,t.scope);else t.u=t.value,n=n.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,n];else{if(n=this.G(t.u,n),this.P)return rt(this,n,t.u);e[e.length-1].value=n}};y.prototype.stepNewExpression=y.prototype.stepCallExpression;y.prototype.stepObjectExpression=function(e,t,n){var r=t.A||0,o=n.h[r];if(t.u){var i=t.Pa;t.Ja[i]||(t.Ja[i]={}),t.Ja[i][o.kind]=t.value,t.A=++r,o=n.h[r]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(o){var l=o.key;if(l.type==="Identifier")i=l.name;else if(l.type==="Literal")i=l.value;else throw SyntaxError("Unknown object structure: "+l.type);return t.Pa=i,new S(o.value,t.scope)}for(l in t.Ja)n=t.Ja[l],"get"in n||"set"in n?this.g(t.u,l,Ze,{configurable:!0,enumerable:!0,get:n.get,set:n.set}):this.g(t.u,l,n.init);e.pop(),e[e.length-1].value=t.u};y.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new S(e,t.scope);t.done=!0};y.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new S(n.K,t.scope);nt(this,3,t.value)};y.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new S(n,t.scope);e.pop(),e[e.length-1].value=t.value};y.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new S(n.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var r=t.gb||0,o=n.tb[r];if(t.Ha||!o||o.test)if(o||t.Ha||t.cb===-1)if(o){if(!t.Ha&&!t.Fb&&o.test)return t.Fb=!0,new S(o.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var i=t.A||0;if(o.da[i])return t.Zb=!0,t.A=i+1,new S(o.da[i],t.scope)}t.Fb=!1,t.A=0,t.gb=r+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=r,t.gb=r+1}};y.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=pn(this,"this")};y.prototype.stepThrowStatement=function(e,t,n){if(t.ka)w(this,t.value);else return t.ka=!0,new S(n.K,t.scope)};y.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new S(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=un(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new S(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new S(n.fb,t.scope);e.pop(),t.ea&&nt(this,t.ea.type,t.ea.value,t.ea.label)};y.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new S(n.K,t.scope),e.sa=n.operator==="delete",e;e.pop();var r=t.value;switch(n.operator){case"-":r=-r;break;case"+":r=+r;break;case"!":r=!r;break;case"~":r=~r;break;case"delete":if(n=!0,Array.isArray(r)){var o=r[0];o===Ve&&(o=t.scope),r=String(r[1]);try{delete o.h[r]}catch{t.scope.S?w(this,this.j,"Cannot delete property '"+r+"' of '"+o+"'"):n=!1}}r=n;break;case"typeof":r=r&&r.H==="Function"?"function":typeof r;break;case"void":r=void 0;break;default:throw SyntaxError("Unknown unary operator: "+n.operator)}e[e.length-1].value=r};y.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new S(n.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var r=dn(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,rt(this,r,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(r=Number(t.ma),n.operator==="++")var o=r+1;else if(n.operator==="--")o=r-1;else throw SyntaxError("Unknown update expression: "+n.operator);if(n=n.prefix?o:r,r=mn(this,t.Ga,o))return t.ta=!0,t.ib=n,hn(this,r,t.Ga,o);e.pop(),e[e.length-1].value=n}};y.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,o=n[r];for(t.Bb&&o&&(wr(this,o.id.name,t.value),t.Bb=!1,o=n[++r]);o;){if(o.ua)return t.A=r,t.Bb=!0,t.Pa=o.id.name,new S(o.ua,t.scope);o=n[++r]}e.pop()};y.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=un(this,t.scope,t.value),new S(n.body,e)):(t.Ca=!0,new S(n.object,t.scope))};y.prototype.stepWhileStatement=y.prototype.stepDoWhileStatement;be.Interpreter=y;y.prototype.step=y.prototype.lb;y.prototype.run=y.prototype.Eb;y.prototype.appendCode=y.prototype.Jb;y.prototype.createObject=y.prototype.Aa;y.prototype.createObjectProto=y.prototype.s;y.prototype.createAsyncFunction=y.prototype.ub;y.prototype.createNativeFunction=y.prototype.i;y.prototype.getProperty=y.prototype.G;y.prototype.setProperty=y.prototype.g;y.prototype.nativeToPseudo=y.prototype.Ia;y.prototype.pseudoToNative=y.prototype.R;y.prototype.getGlobalScope=y.prototype.Xb;y.prototype.getStateStack=y.prototype.Yb;y.prototype.setStateStack=y.prototype.ec;y.VALUE_IN_DESCRIPTOR=Ze;const ai=e=>e.split(`
|
|
8
|
+
`)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function _e(e,t,n,r,o){var i={timeout:e.REGEXP_THREAD_TIMEOUT};try{return pe.runInNewContext(t,n,i)}catch{o(null),w(e,e.D,"RegExp Timeout: "+r)}return Pe}function ze(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(pe)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{pe=require("vm")}catch{}r=!!pe}else r=!1;r||(n(null),w(e,e.D,"Regular expressions not supported: "+t))}function qe(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{w(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}$.Aa=function(e){return this.s(e&&e.h.prototype)};$.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new B(e),H(this,e,this.D)&&(e.H="Error"),e};function je(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function an(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,k),e.g(n,"constructor",r,k)):r.Ab=!0,e.g(r,"length",t,J),r.H="Function",r}function ln(e,t,n,r){var o=an(e,t.oa.length,!0);return o.Va=n,o.node=t,e.g(o,"name",t.id?String(t.id.name):r||"",J),o}$.i=function(e,t){return t=an(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,J),t};$.ub=function(e){var t=an(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,J),t};$.Ia=function(e){if(e instanceof B)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return sn(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var n=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var o=Array.prototype.slice.call(arguments).map(function(i){return n.R(i)});return o=e.apply(n,o),n.Ia(o)},!!t)}if(Array.isArray(e)){t=je(this);for(var r=0;r<e.length;r++)r in e&&this.g(t,r,this.Ia(e[r]));return t}t=this.s(this.M);for(r in e)this.g(t,r,this.Ia(e[r]));return t};$.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof B))throw Error("Object is not pseudo");if(H(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(H(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var n=t.hb.indexOf(e);if(n!==-1)return t.Sa[n];if(t.hb.push(e),H(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),o=0;o<r;o++)kt(this,e,o)&&(n[o]=this.R(this.G(e,o),t))}else for(r in n={},t.Sa.push(n),e.h)o=this.R(e.h[r],t),Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function ue(e,t){for(var n=je(e),r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e.g(n,r[o],t[r[o]]);return n}function kr(e,t){var n=[],r;for(r in t.h)n[r]=e.G(t,r);return n.length=on(e.G(t,"length"))||0,n}function de(e,t){switch(typeof t){case"number":return e.aa.h.prototype;case"boolean":return e.mb.h.prototype;case"string":return e.J.h.prototype}return t?t.xa:null}$.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||w(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof B))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(H(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&H(this,e,this.J)){var n=Xe(t);if(!isNaN(n)&&n<String(e).length)return String(e)[n]}do if(e.h&&t in e.h)return(n=e.V[t])?(this.P=!0,n):e.h[t];while(e=de(this,e))};function kt(e,t,n){if(!(t instanceof B))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&H(e,t,e.J))return!0;if(H(e,t,e.J)){var r=Xe(n);if(!isNaN(r)&&r<String(t).length)return!0}do if(t.h&&n in t.h)return!0;while(t=de(e,t));return!1}$.g=function(e,t,n,r){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||w(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof B))throw TypeError("Expecting native value or pseudo object");r&&("get"in r||"set"in r)&&("value"in r||"writable"in r)&&w(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var o=!this.o||cn(this).S;if(e instanceof B){if(H(this,e,this.J)){var i=Xe(t);if(t==="length"||!isNaN(i)&&i<String(e).length){o&&w(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(i=e.h.length,t==="length"){if(r){if(!("value"in r))return;n=r.value}if(n=on(n),isNaN(n)&&w(this,this.ob,"Invalid array length"),n<i)for(l in e.h){var l=Xe(l);!isNaN(l)&&n<=l&&delete e.h[l]}}else isNaN(l=Xe(t))||(e.h.length=Math.max(i,l+1));if(!e.preventExtensions||t in e.h)if(r){o={},"get"in r&&r.get&&(e.V[t]=r.get,o.get=this.g.ac),"set"in r&&r.set&&(e.Y[t]=r.set,o.set=this.g.bc),"configurable"in r&&(o.configurable=r.configurable),"enumerable"in r&&(o.enumerable=r.enumerable),"writable"in r&&(o.writable=r.writable,delete e.V[t],delete e.Y[t]),"value"in r?(o.value=r.value,delete e.V[t],delete e.Y[t]):n!==Ze&&(o.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,o)}catch{w(this,this.j,"Cannot redefine property: "+t)}"get"in r&&!r.get&&delete e.V[t],"set"in r&&!r.set&&delete e.Y[t]}else{if(n===Ze)throw ReferenceError("Value not specified");for(r=e;!(t in r.h);)if(r=de(this,r),!r){r=e;break}if(r.Y&&r.Y[t])return this.Ka=!0,r.Y[t];if(r.V&&r.V[t])o&&w(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{o&&w(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else o&&w(this,this.j,"Can't add property '"+t+"', object is not extensible")}else o&&w(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};$.g.ac=function(){throw Error("Placeholder getter")};$.g.bc=function(){throw Error("Placeholder setter")};function W(e,t,n,r){e.g(t.h.prototype,n,e.i(r,!1),k)}function Ge(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),k)}function cn(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Zt(e,t,n){var r=!1;if(n&&n.S)r=!0;else{var o=t.body&&t.body[0];o&&o.la&&o.la.type==="Literal"&&o.la.value==="use strict"&&(r=!0)}return o=e.s(null),r=new wr(n,r,o),n||qo(e,r.object),Qe(e,t,r),r}function un(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new wr(t,t.S,e)}function pn(e,t){for(var n=cn(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&&kt(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||w(e,e.pb,t+" is not defined")}function Sr(e,t,n){for(var r=cn(e),o=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{o&&w(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!o||kt(e,r.object,t)))return e.g(r.object,t,n);w(e,e.pb,t+" is not defined")}function Qe(e,t,n){if(t.jb)var r=t.jb;else{switch(r=Object.create(null),t.type){case"VariableDeclaration":for(var o=0;o<t.fa.length;o++)r[t.fa[o].id.name]=!0;break;case"FunctionDeclaration":r[t.id.name]=t;break;case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"Program":case"SwitchCase":case"SwitchStatement":case"TryStatement":case"WithStatement":case"WhileStatement":var i=t.constructor,l;for(l in t)if(l!=="loc"){var u=t[l];if(u&&typeof u=="object"){if(Array.isArray(u)){for(o=0;o<u.length;o++)if(u[o]&&u[o].constructor===i){var m=Qe(e,u[o],n);for(l in m)r[l]=m[l]}}else if(u.constructor===i)for(l in m=Qe(e,u,n),m)r[l]=m[l]}}}t.jb=r}for(l in r)r[l]===!0?e.g(n.object,l,void 0,Zn):e.g(n.object,l,ln(e,r[l],n),Zn);return r}function me(e){return e.o[e.o.length-1].isConstructor}function dn(e,t){return t[0]===Ne?pn(e,t[1]):e.G(t[0],t[1])}function mn(e,t,n){return t[0]===Ne?Sr(e,t[1],n):e.g(t[0],t[1],n)}function w(e,t,n){throw e.N?(n!==void 0&&t instanceof B&&(t=e.Aa(t),Yt(e,t,n)),nt(e,4,t),br):n===void 0?t:n}function nt(e,t,n,r){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var o=e.o;e:for(;0<o.length;o.pop()){var i=o[o.length-1];switch(i.node.type){case"TryStatement":i.ea={type:t,value:n,label:r};return;case"CallExpression":case"NewExpression":if(t===3){i.value=n;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":i.done=!0;break e}if(t===1){if(r?i.labels&&i.labels.indexOf(r)!==-1:i.W||i.Zb){o.pop();return}}else if(t===2&&(r?i.labels&&i.labels.indexOf(r)!==-1:i.W))return}throw H(e,n,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},r=String(e.G(n,"name")),o=e.G(n,"message").valueOf(),t=(t[r]||Error)(o),t.stack=String(e.G(n,"stack"))):t=String(n),e.value=t,t}function G(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return G(e,t.left)+" "+t.operator+" "+G(e,t.right);case"CallExpression":return G(e,t.callee)+"(...)";case"ConditionalExpression":return G(e,t.test)+" ? "+G(e,t.da)+" : "+G(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=G(e,t.object);return e=G(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+G(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+G(e,t.K);case"UpdateExpression":return n=G(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function er(e,t,n){var r=e.o[e.o.length-1],o=Array.from(n),i=o.shift();n=Math.max(Number(o.shift()||0),0);var l=e.ya();if(i instanceof B&&i.H==="Function"){var u=i;l.type="CallExpression",r=r.scope}else{try{var m=Oe(String(i),"taskCode"+e.ic++)}catch(g){w(e,e.T,"Invalid code: "+g.message)}l.type="EvalProgram_",l.body=m.body,r=r.node.arguments[0],bt(l,r?r.start:void 0,r?r.end:void 0),r=e.N,o.length=0}return t=new ii(u,o,r,l,t?n:-1),Cr(e,t,n),t.Db}function Cr(e,t,n){t.time=Date.now()+n,e.ca.push(t),e.ca.sort(function(r,o){return r.time-o.time})}function tr(e,t){for(var n=0;n<e.ca.length;n++)if(e.ca[n].Db==t){e.ca.splice(n,1);break}}function rt(e,t,n){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,n=Array.isArray(n)?n[0]:n;var r=e.ya();return r.type="CallExpression",e=new S(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function hn(e,t,n,r){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,n=Array.isArray(n)?n[0]:e.Na;var o=e.ya();return o.type="CallExpression",e=new S(o,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[r],e}function Gt(e,t){return t==null?e.Na:t instanceof B?t:(e=e.s(de(e,t)),e.data=t,e)}$.Xb=function(){return this.N};$.Yb=function(){return this.o};$.ec=function(e){this.o=e};function S(e,t){this.node=e,this.scope=t}function wr(e,t,n){this.Va=e,this.S=t,this.object=n}function B(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}$=B.prototype;$.xa=null;$.H="Object";$.data=null;$.toString=function(){if(!Je)return"[object Interpreter.Object]";if(!(this instanceof B))return String(this);if(this.H==="Array"){var e=Qn;e.push(this);try{var t=[],n=this.h.length,r=!1;1024<n&&(n=1e3,r=!0);for(var o=0;o<n;o++){var i=this.h[o];t[o]=i instanceof B&&e.indexOf(i)!==-1?"...":i}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Qn,e.indexOf(this)!==-1)return"[object Error]";n=this;do if("name"in n.h){t=n.h.name;break}while(n=n.xa);n=this;do if("message"in n.h){r=n.h.message;break}while(n=n.xa);e.push(this);try{t=t&&String(t),r=r&&String(r)}finally{e.pop()}return r?t+": "+r:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};$.valueOf=function(){return!Je||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function ii(e,t,n,r,o){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=o,this.Db=++si,this.time=0}var si=0;y.prototype.stepArrayExpression=function(e,t,n){n=n.elements;var r=t.A||0;for(t.Oa?(this.g(t.Oa,r,t.value),r++):(t.Oa=je(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new S(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};y.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new S(n.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&n.operator!=="="&&(e=dn(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,rt(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new S(n.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var r=t.ma,o=t.value;switch(n.operator){case"=":r=o;break;case"+=":r+=o;break;case"-=":r-=o;break;case"*=":r*=o;break;case"/=":r/=o;break;case"%=":r%=o;break;case"<<=":r<<=o;break;case">>=":r>>=o;break;case">>>=":r>>>=o;break;case"&=":r&=o;break;case"^=":r^=o;break;case"|=":r|=o;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}if(n=mn(this,t.Fa,r))return t.ta=!0,t.ib=r,hn(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};y.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new S(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new S(n.right,t.scope);e.pop();var r=t.ma;switch(t=t.value,n.operator){case"==":n=r==t;break;case"!=":n=r!=t;break;case"===":n=r===t;break;case"!==":n=r!==t;break;case">":n=r>t;break;case">=":n=r>=t;break;case"<":n=r<t;break;case"<=":n=r<=t;break;case"+":n=r+t;break;case"-":n=r-t;break;case"*":n=r*t;break;case"/":n=r/t;break;case"%":n=r%t;break;case"&":n=r&t;break;case"|":n=r|t;break;case"^":n=r^t;break;case"<<":n=r<<t;break;case">>":n=r>>t;break;case">>>":n=r>>>t;break;case"in":t instanceof B||w(this,this.j,"'in' expects an object, not '"+t+"'"),n=kt(this,t,r);break;case"instanceof":H(this,t,this.O)||w(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof B?H(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};y.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new S(n,t.scope);e.pop()};y.prototype.stepBreakStatement=function(e,t,n){nt(this,1,void 0,n.label&&n.label.name)};y.prototype.Hb=0;y.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new S(n.callee,t.scope);return r.sa=!0,r}if(t.ia===1){t.ia=2;var o=t.value;if(Array.isArray(o)){if(t.U=dn(this,o),o[0]===Ne?t.Pb=o[1]==="eval":t.B=o[0],o=t.U,this.P)return t.ia=1,rt(this,o,t.value)}else t.U=o;t.F=[],t.A=0}if(o=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),n.arguments[t.A])return new S(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(o instanceof B&&!o.Ab||w(this,this.j,G(this,n.callee)+" is not a constructor"),o===this.qa)t.B=je(this);else{var i=o.h.prototype;(typeof i!="object"||i===null)&&(i=this.M),t.B=this.s(i)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,o instanceof B||w(this,this.j,G(this,n.callee)+" is not a function"),e=o.node){for(n=Zt(this,e.body,o.Va),r=je(this),o=0;o<t.F.length;o++)this.g(r,o,t.F[o]);for(this.g(n.object,"arguments",r),o=0;o<e.oa.length;o++)this.g(n.object,e.oa[o].name,t.F.length>o?t.F[o]:void 0);return n.S||(t.B=Gt(this,t.B)),this.g(n.object,"this",t.B,rn),t.value=void 0,new S(e.body,n)}if(o.eval)if(o=t.F[0],typeof o!="string")t.value=o;else{try{r=Oe(String(o),"eval"+this.Hb++)}catch(u){w(this,this.T,"Invalid code: "+u.message)}return o=this.ya(),o.type="EvalProgram_",o.body=r.body,bt(o,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=Zt(this,r,n):Qe(this,r,n),this.value=void 0,new S(o,n)}else if(o.Ta)t.scope.S||(t.B=Gt(this,t.B)),t.value=o.Ta.apply(t.B,t.F);else if(o.Za){var l=this;r=o.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(u){t.value=u,l.za=!1}),this.za=!0,t.scope.S||(t.B=Gt(this,t.B)),o.Za.apply(t.B,r)}else w(this,this.j,G(this,n.callee)+" is not callable")}};y.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new S(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new S(n.da,t.scope);if(!r&&n.alternate)return new S(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};y.prototype.stepContinueStatement=function(e,t,n){nt(this,2,void 0,n.label&&n.label.name)};y.prototype.stepDebuggerStatement=function(e){e.pop()};y.prototype.stepDoWhileStatement=function(e,t,n){if(n.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new S(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new S(n.body,t.scope)};y.prototype.stepEmptyStatement=function(e){e.pop()};y.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new S(n,t.scope);e.pop(),e[e.length-1].value=this.value};y.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new S(n.la,t.scope);e.pop(),this.value=t.value};y.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&w(this,this.T,"for-in loop variable declaration may not have an initializer"),new S(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new S(n.right,t.scope);if(t.W||(t.W=!0,t.u=t.value,t.kb=Object.create(null)),t.Ra===void 0)e:for(;;){if(t.u instanceof B)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var r=t.wa.shift();if(r===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,r)&&!t.kb[r]&&(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,r))){t.Ra=r;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));r=t.wa.shift(),r!==void 0;)if(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u,r)){t.Ra=r;break e}}if(t.u=de(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=n.left,e.type==="VariableDeclaration")t.pa=[Ne,e.fa[0].id.name];else return t.pa=null,t=new S(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=mn(this,t.pa,e)))return hn(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new S(n.body,t.scope)};y.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new S(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new S(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new S(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new S(n.update,t.scope)}};y.prototype.stepFunctionDeclaration=function(e){e.pop()};y.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=un(this,e)),t.value=ln(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,rn)};y.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[Ne,n.name];else{if(t=pn(this,n.name),this.P)return rt(this,t,this.Na);e[e.length-1].value=t}};y.prototype.stepIfStatement=y.prototype.stepConditionalExpression;y.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new S(n.body,t.scope),t.labels=e,t};y.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),sn(this,n,t),t=n),e[e.length-1].value=t};y.prototype.stepLogicalExpression=function(e,t,n){if(n.operator!=="&&"&&n.operator!=="||")throw SyntaxError("Unknown logical operator: "+n.operator);if(!t.ja)return t.ja=!0,new S(n.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(n.operator==="&&"&&!t.value||n.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new S(n.right,t.scope)};y.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new S(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new S(n.Wa,t.scope);else t.u=t.value,n=n.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,n];else{if(n=this.G(t.u,n),this.P)return rt(this,n,t.u);e[e.length-1].value=n}};y.prototype.stepNewExpression=y.prototype.stepCallExpression;y.prototype.stepObjectExpression=function(e,t,n){var r=t.A||0,o=n.h[r];if(t.u){var i=t.Pa;t.Ja[i]||(t.Ja[i]={}),t.Ja[i][o.kind]=t.value,t.A=++r,o=n.h[r]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(o){var l=o.key;if(l.type==="Identifier")i=l.name;else if(l.type==="Literal")i=l.value;else throw SyntaxError("Unknown object structure: "+l.type);return t.Pa=i,new S(o.value,t.scope)}for(l in t.Ja)n=t.Ja[l],"get"in n||"set"in n?this.g(t.u,l,Ze,{configurable:!0,enumerable:!0,get:n.get,set:n.set}):this.g(t.u,l,n.init);e.pop(),e[e.length-1].value=t.u};y.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new S(e,t.scope);t.done=!0};y.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new S(n.K,t.scope);nt(this,3,t.value)};y.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new S(n,t.scope);e.pop(),e[e.length-1].value=t.value};y.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new S(n.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var r=t.gb||0,o=n.tb[r];if(t.Ha||!o||o.test)if(o||t.Ha||t.cb===-1)if(o){if(!t.Ha&&!t.Fb&&o.test)return t.Fb=!0,new S(o.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var i=t.A||0;if(o.da[i])return t.Zb=!0,t.A=i+1,new S(o.da[i],t.scope)}t.Fb=!1,t.A=0,t.gb=r+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=r,t.gb=r+1}};y.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=pn(this,"this")};y.prototype.stepThrowStatement=function(e,t,n){if(t.ka)w(this,t.value);else return t.ka=!0,new S(n.K,t.scope)};y.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new S(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=un(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new S(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new S(n.fb,t.scope);e.pop(),t.ea&&nt(this,t.ea.type,t.ea.value,t.ea.label)};y.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new S(n.K,t.scope),e.sa=n.operator==="delete",e;e.pop();var r=t.value;switch(n.operator){case"-":r=-r;break;case"+":r=+r;break;case"!":r=!r;break;case"~":r=~r;break;case"delete":if(n=!0,Array.isArray(r)){var o=r[0];o===Ne&&(o=t.scope),r=String(r[1]);try{delete o.h[r]}catch{t.scope.S?w(this,this.j,"Cannot delete property '"+r+"' of '"+o+"'"):n=!1}}r=n;break;case"typeof":r=r&&r.H==="Function"?"function":typeof r;break;case"void":r=void 0;break;default:throw SyntaxError("Unknown unary operator: "+n.operator)}e[e.length-1].value=r};y.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new S(n.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var r=dn(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,rt(this,r,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(r=Number(t.ma),n.operator==="++")var o=r+1;else if(n.operator==="--")o=r-1;else throw SyntaxError("Unknown update expression: "+n.operator);if(n=n.prefix?o:r,r=mn(this,t.Ga,o))return t.ta=!0,t.ib=n,hn(this,r,t.Ga,o);e.pop(),e[e.length-1].value=n}};y.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,o=n[r];for(t.Bb&&o&&(Sr(this,o.id.name,t.value),t.Bb=!1,o=n[++r]);o;){if(o.ua)return t.A=r,t.Bb=!0,t.Pa=o.id.name,new S(o.ua,t.scope);o=n[++r]}e.pop()};y.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=un(this,t.scope,t.value),new S(n.body,e)):(t.Ca=!0,new S(n.object,t.scope))};y.prototype.stepWhileStatement=y.prototype.stepDoWhileStatement;be.Interpreter=y;y.prototype.step=y.prototype.lb;y.prototype.run=y.prototype.Eb;y.prototype.appendCode=y.prototype.Jb;y.prototype.createObject=y.prototype.Aa;y.prototype.createObjectProto=y.prototype.s;y.prototype.createAsyncFunction=y.prototype.ub;y.prototype.createNativeFunction=y.prototype.i;y.prototype.getProperty=y.prototype.G;y.prototype.setProperty=y.prototype.g;y.prototype.nativeToPseudo=y.prototype.Ia;y.prototype.pseudoToNative=y.prototype.R;y.prototype.getGlobalScope=y.prototype.Xb;y.prototype.getStateStack=y.prototype.Yb;y.prototype.setStateStack=y.prototype.ec;y.VALUE_IN_DESCRIPTOR=Ze;const ai=e=>e.split(`
|
|
9
9
|
`).map(t=>{const n=t.trim();if(t.includes("__awaiter"))return;if(!n.startsWith("state."))return t;const[o,i]=n.split("="),u=`setRootState('${o.replace("state.","").trim()}', ${i.trim()})`;return`
|
|
10
10
|
${t}
|
|
11
11
|
${u}
|
|
12
12
|
`}).filter(Boolean).join(`
|
|
13
|
-
`),
|
|
13
|
+
`),nr=e=>e+"JSON",li=({builder:e,context:t,event:n,rootState:r,localState:o,rootSetState:i,code:l})=>{const u={...r,...o},m=yr({builder:e,context:t,event:n,state:u}),g=m.map(([E])=>{const N=nr(E);return`var ${E} = ${N} === undefined ? undefined : JSON.parse(${N});`}).join(`
|
|
14
14
|
`),v=ai(l);if(v===""){z.warn("Skipping evaluation of empty code block.");return}const f=`
|
|
15
15
|
function theFunction() {
|
|
16
16
|
${g}
|
|
@@ -18,14 +18,14 @@ function theFunction() {
|
|
|
18
18
|
${v}
|
|
19
19
|
}
|
|
20
20
|
theFunction();
|
|
21
|
-
`,C=(E,N)=>{const Q=nn(u,E,N);i==null||i(Q)},P=function(E,N){m.forEach(([Q,V])=>{const A=JSON.stringify(V);E.setProperty(N,
|
|
22
|
-
`),
|
|
23
|
-
${
|
|
21
|
+
`,C=(E,N)=>{const Q=nn(u,E,N);i==null||i(Q)},P=function(E,N){m.forEach(([Q,V])=>{const A=JSON.stringify(V);E.setProperty(N,nr(Q),A)}),E.setProperty(N,"setRootState",E.createNativeFunction(C))};try{const E=new y(f,P);return E.run(),E.pseudoToNative(E.value)}catch(E){z.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.",{e:E});return}},he=e=>e!=null;function ci(){var e;return typeof process<"u"&&he((e=process==null?void 0:process.versions)==null?void 0:e.node)}const ui=()=>{var r;if(!ci())return!1;const e=process.arch==="arm64",t=process.version.startsWith("v20"),n=(r=process.env.NODE_OPTIONS)==null?void 0:r.includes("--no-node-snapshot");return e&&t&&!n?(z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1},pi=e=>K()||ui()?Ko(e):li(e),ce=class ce{static getCacheKey(t){return JSON.stringify({...t,event:t.event?Math.random():void 0})}static getCachedValue(t){return ce.cache.get(t)}static setCachedValue(t,n){ce.cache.size>20&&ce.cache.delete(ce.cache.keys().next().value),ce.cache.set(t,{value:n})}};qt(ce,"cacheLimit",20),qt(ce,"cache",new Map);let $e=ce;function et({code:e,context:t,localState:n,rootState:r,rootSetState:o,event:i,isExpression:l=!0,enableCache:u}){if(e===""){z.warn("Skipping evaluation of empty code block.");return}const m={code:Ho(e,{isExpression:l}),builder:Lo(),context:t,event:i,rootSetState:o,rootState:r,localState:n};if(u){const g=$e.getCacheKey(m),v=$e.getCachedValue(g);if(v)return v.value}try{const g=pi(m);if(u){const v=$e.getCacheKey(m);$e.setCachedValue(v,g)}return g}catch(g){z.error("Failed code evaluation: "+g.message,{code:e});return}}const ot=e=>JSON.parse(JSON.stringify(e));const di=({block:e,context:t,localState:n,rootState:r,rootSetState:o})=>{if(!e.bindings)return e;const i=ot(e),l={...i,properties:{...i.properties},actions:{...i.actions}};for(const u in e.bindings){const m=e.bindings[u],g=et({code:m,localState:n,rootState:r,rootSetState:o,context:t,enableCache:!0});nn(l,u,g)}return l};function fn({block:e,context:t,shouldEvaluateBindings:n,localState:r,rootState:o,rootSetState:i}){const l=e;return n?di({block:l,localState:r,rootState:o,rootSetState:i,context:t}):l}function mi(e,t,n={}){let r,o,i,l=null,u=0;const m=function(){u=n.leading===!1?0:Date.now(),l=null,i=e.apply(r,o),l||(r=o=null)};return function(){const g=Date.now();!u&&n.leading===!1&&(u=g);const v=t-(g-u);return r=this,o=arguments,v<=0||v>t?(l&&(clearTimeout(l),l=null),u=g,i=e.apply(r,o),l||(r=o=null)):!l&&n.trailing!==!1&&(l=setTimeout(m,v)),i}}function Ye(e,...t){const n=Object(e);for(let r=1;r<arguments.length;r++){const o=arguments[r];if(o!=null)for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n}const gn=e=>e?e.replace(/([A-Z])/g,t=>`-${t[0].toLowerCase()}`):"";function hi(e){for(const t of e)switch(t.trigger){case"pageLoad":Tr(t);break;case"scrollInView":gi(t);break}}function Er(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function Ir(e,t){const n=fi(e),r=getComputedStyle(t),o=e.steps[0].styles,i=e.steps[e.steps.length-1].styles,l=[o,i];for(const u of l)for(const m of n)m in u||(u[m]=r[m])}function fi(e){const t=[];for(const n of e.steps)for(const r in n.styles)t.indexOf(r)===-1&&t.push(r);return t}function Tr(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Er(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ir(e,n),n.style.transition="none",n.style.transitionDelay="0",Ye(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${gn(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),Ye(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function gi(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Er(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ir(e,n);let r=!1,o=!1;function i(){!r&&u(n)?(r=!0,o=!0,setTimeout(()=>{Ye(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",l),setTimeout(()=>{o=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&r&&!o&&!u(n)&&(r=!1,Ye(n.style,e.steps[0].styles))}const l=mi(i,200,{leading:!1});function u(v){const f=v.getBoundingClientRect(),C=window.innerHeight,E=(e.thresholdPercent||0)/100*C;return f.bottom>E&&f.top<C-E}const m=e.steps[0].styles;function g(){Ye(n.style,m)}g(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${gn(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",l,{capture:!0,passive:!0}),i()})}const yi=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),xr=e=>Object.entries(e).map(([n,r])=>{if(typeof r=="string")return`${yi(n)}: ${r};`}).filter(he),vi=e=>xr(e).join(`
|
|
22
|
+
`),bi=({mediaQuery:e,className:t,styles:n})=>{const r=`.${t} {
|
|
23
|
+
${vi(n)}
|
|
24
24
|
}`;return e?`${e} {
|
|
25
25
|
${r}
|
|
26
|
-
}`:r};function
|
|
26
|
+
}`:r};function ki({style:e}){return e}const Si=({block:e,context:t})=>Rr(ki({style:e.style||{},context:t,block:e}));function Rr(e){switch(ne){case"svelte":case"vue":case"solid":return xr(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const Ci=({block:e,context:t,registeredComponents:n})=>{var i;const r=(i=fn({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:i.name;if(!r)return null;const o=n[r];if(o)return o;console.warn(`
|
|
27
27
|
Could not find a registered component named "${r}".
|
|
28
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`)},Ei=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=et({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,enableCache:!0});if(!Array.isArray(o))return;const i=n.collection.split(".").pop(),l=n.itemName||(i?i+"Item":"item");return o.map((m,g)=>({context:{...t,localState:{...t.localState,$index:g,$item:m,[l]:m,[`$${l}Index`]:g}},block:r}))},Ii=()=>Promise.resolve().then(()=>require("./block-styles-_eYB_Fxz.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",e),e}),Ti=()=>Promise.resolve().then(()=>require("./block-wrapper-4RaFHsBw.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",e),e}),xi=()=>Promise.resolve().then(()=>require("./component-ref-KD6yANwg.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",e),e}),Ri=()=>Promise.resolve().then(()=>require("./repeated-block-qRyqdxjD.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",e),e}),Ai=a.defineComponent({name:"block",components:{BlockStyles:a.defineAsyncComponent(Ii),ComponentRef:a.defineAsyncComponent(xi),RepeatedBlock:a.defineAsyncComponent(Ri),BlockWrapper:a.defineAsyncComponent(Ti)},props:["block","context","registeredComponents","linkComponent"],mounted(){const e=this.processedBlock.id,t=this.processedBlock.animations;t&&e&&hi(t.filter(n=>n.trigger!=="hover").map(n=>({...n,elementId:e})))},computed:{blockComponent(){return wi({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return Ei({block:this.block,context:this.context})},processedBlock(){var e;return(e=this.block.repeat)!=null&&e.collection?this.block:fn({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},Tag(){var t;return this.block.tagName==="a"||((t=this.processedBlock.properties)==null?void 0:t.href)||this.processedBlock.href?this.linkComponent||"a":this.block.tagName||"div"},canShowBlock(){var n,r;if((n=this.block.repeat)!=null&&n.collection)return!!((r=this.repeatItem)!=null&&r.length);const e="hide"in this.processedBlock?this.processedBlock.hide:!1;return("show"in this.processedBlock?this.processedBlock.show:!0)&&!e},childrenWithoutParentComponent(){var t;return!((t=this.blockComponent)!=null&&t.component)&&!this.repeatItem?this.processedBlock.children??[]:[]},componentRefProps(){var e,t,n,r,o,i,l,u,m,g;return{blockChildren:this.processedBlock.children??[],componentRef:(e=this.blockComponent)==null?void 0:e.component,componentOptions:{...Fo(this.processedBlock),builderContext:this.context,...((t=this.blockComponent)==null?void 0:t.name)==="Core:Button"||((n=this.blockComponent)==null?void 0:n.name)==="Symbol"||((r=this.blockComponent)==null?void 0:r.name)==="Columns"||((o=this.blockComponent)==null?void 0:o.name)==="Form:Form"?{builderLinkComponent:this.linkComponent}:{},...((i=this.blockComponent)==null?void 0:i.name)==="Symbol"||((l=this.blockComponent)==null?void 0:l.name)==="Columns"||((u=this.blockComponent)==null?void 0:u.name)==="Form:Form"?{builderComponents:this.registeredComponents}:{}},context:this.context,linkComponent:this.linkComponent,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((m=this.blockComponent)==null?void 0:m.noWrap)===!0,isInteractive:!((g=this.blockComponent)!=null&&g.isRSC)}}}});function Bi(e,t,n,r,o,i){var f;const l=a.resolveComponent("block-styles"),u=a.resolveComponent("component-ref"),m=a.resolveComponent("block",!0),g=a.resolveComponent("block-wrapper"),v=a.resolveComponent("repeated-block");return e.canShowBlock?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(l,{block:e.block,context:e.context},null,8,["block","context"]),(f=e.blockComponent)!=null&&f.noWrap?(a.openBlock(),a.createBlock(u,{key:1,componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,linkComponent:e.componentRefProps.linkComponent,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive},null,8,["componentRef","componentOptions","blockChildren","context","registeredComponents","linkComponent","builderBlock","includeBlockProps","isInteractive"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.repeatItem?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.repeatItem,(C,P)=>(a.openBlock(),a.createBlock(v,{key:P,repeatContext:C.context,block:C.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["repeatContext","block","registeredComponents","linkComponent"]))),128)):(a.openBlock(),a.createBlock(g,{key:0,Wrapper:e.Tag,block:e.processedBlock,context:e.context,linkComponent:e.linkComponent},{default:a.withCtx(()=>[a.createVNode(u,{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,linkComponent:e.componentRefProps.linkComponent,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive},null,8,["componentRef","componentOptions","blockChildren","context","registeredComponents","linkComponent","builderBlock","includeBlockProps","isInteractive"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.childrenWithoutParentComponent,(C,P)=>(a.openBlock(),a.createBlock(m,{key:C.id,block:C,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},null,8,["block","registeredComponents","linkComponent","context"]))),128))]),_:1},8,["Wrapper","block","context","linkComponent"]))],64))],64)):a.createCommentVNode("",!0)}const St=O(Ai,[["render",Bi]]),Pi=Object.freeze(Object.defineProperty({__proto__:null,default:St},Symbol.toStringTag,{value:"Module"})),$i=a.defineComponent({name:"builder-blocks-wrapper",props:["blocks","parent","path","styleProp","BlocksWrapperProps","BlocksWrapper"],computed:{className(){var e;return"builder-blocks"+((e=this.blocks)!=null&&e.length?"":" no-blocks")}},methods:{onClick(){var e,t;Y()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var e,t;Y()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))}}});function Oi(e,t,n,r,o,i){return a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.BlocksWrapper),a.mergeProps({class:e.className+" component-1o2kztlxdt6","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:l=>e.onClick(),onMouseEnter:l=>e.onMouseEnter(),onKeyPress:l=>e.onClick()},{...e.BlocksWrapperProps}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16,["class","builder-path","builder-parent-id","style","onClick","onMouseEnter","onKeyPress"])}const ji=O($i,[["render",Oi],["__scopeId","data-v-9724ab41"]]),Ni=a.defineComponent({name:"builder-blocks",components:{BlocksWrapper:ji,Block:St},props:["blocks","parent","path","styleProp","context","linkComponent","registeredComponents"],inject:{builderContext:yt.key,componentsContext:fr.key}});function Vi(e,t,n,r,o,i){var m,g;const l=a.resolveComponent("block"),u=a.resolveComponent("blocks-wrapper");return a.openBlock(),a.createBlock(u,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:((m=e.context)==null?void 0:m.BlocksWrapper)||e.builderContext.BlocksWrapper,BlocksWrapperProps:((g=e.context)==null?void 0:g.BlocksWrapperProps)||e.builderContext.BlocksWrapperProps},{default:a.withCtx(()=>[e.blocks?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.blocks,(v,f)=>(a.openBlock(),a.createBlock(l,{key:v.id,block:v,linkComponent:e.linkComponent,context:e.context||e.builderContext,registeredComponents:e.registeredComponents||e.componentsContext.registeredComponents},null,8,["block","linkComponent","context","registeredComponents"]))),128)):a.createCommentVNode("",!0)]),_:1},8,["blocks","parent","path","styleProp","BlocksWrapper","BlocksWrapperProps"])}const it=O(Ni,[["render",Vi]]),Ct=a.defineComponent({render(){return a.h("style",{innerHTML:this.styles,"data-id":this.id})},name:"inlined-styles",props:["styles","id"]}),Ar={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Fi=(e,t=Ar)=>`@media (max-width: ${t[e].max}px)`,Br=({small:e,medium:t})=>{const n=ot(Ar);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n},Mi=a.defineComponent({name:"builder-columns",components:{InlinedStyles:Ct,DynamicRenderer:tn,Blocks:it},props:["space","columns","stackColumnsAt","reverseColumnsWhenStacked","builderContext","builderBlock","builderLinkComponent","builderComponents"],data(){return{gutterSize:typeof this.space=="number"?this.space||0:20,cols:this.columns||[],stackAt:this.stackColumnsAt||"tablet",flexDir:this.stackColumnsAt==="never"?"row":this.reverseColumnsWhenStacked?"column-reverse":"column",TARGET:ne,getClassPropName:vt,mapStyleObjToStrIfNeeded:Rr}},computed:{columnsCssVars(){return{"--flex-dir":this.flexDir,"--flex-dir-tablet":this.getTabletStyle({stackedStyle:this.flexDir,desktopStyle:"row"})}},columnsStyles(){return`
|
|
28
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},wi=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=et({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,enableCache:!0});if(!Array.isArray(o))return;const i=n.collection.split(".").pop(),l=n.itemName||(i?i+"Item":"item");return o.map((m,g)=>({context:{...t,localState:{...t.localState,$index:g,$item:m,[l]:m,[`$${l}Index`]:g}},block:r}))},Ei=()=>Promise.resolve().then(()=>require("./block-styles-eJqBAPHH.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",e),e}),Ii=()=>Promise.resolve().then(()=>require("./block-wrapper-2Crn7tbG.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",e),e}),Ti=()=>Promise.resolve().then(()=>require("./component-ref-4M72dsyI.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",e),e}),xi=()=>Promise.resolve().then(()=>require("./repeated-block-_7bmUv-Z.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",e),e}),Ri=a.defineComponent({name:"block",components:{BlockStyles:a.defineAsyncComponent(Ei),ComponentRef:a.defineAsyncComponent(Ti),RepeatedBlock:a.defineAsyncComponent(xi),BlockWrapper:a.defineAsyncComponent(Ii)},props:["block","context","registeredComponents","linkComponent"],mounted(){const e=this.processedBlock.id,t=this.processedBlock.animations;t&&e&&hi(t.map(n=>({...n,elementId:e})))},computed:{blockComponent(){return Ci({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return wi({block:this.block,context:this.context})},processedBlock(){var e;return(e=this.block.repeat)!=null&&e.collection?this.block:fn({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},Tag(){var t;return this.block.tagName==="a"||((t=this.processedBlock.properties)==null?void 0:t.href)||this.processedBlock.href?this.linkComponent||"a":this.block.tagName||"div"},canShowBlock(){var n,r;if((n=this.block.repeat)!=null&&n.collection)return!!((r=this.repeatItem)!=null&&r.length);const e="hide"in this.processedBlock?this.processedBlock.hide:!1;return("show"in this.processedBlock?this.processedBlock.show:!0)&&!e},childrenWithoutParentComponent(){var t;return!((t=this.blockComponent)!=null&&t.component)&&!this.repeatItem?this.processedBlock.children??[]:[]},componentRefProps(){var e,t,n,r,o,i,l,u,m,g;return{blockChildren:this.processedBlock.children??[],componentRef:(e=this.blockComponent)==null?void 0:e.component,componentOptions:{...Fo(this.processedBlock),builderContext:this.context,...((t=this.blockComponent)==null?void 0:t.name)==="Core:Button"||((n=this.blockComponent)==null?void 0:n.name)==="Symbol"||((r=this.blockComponent)==null?void 0:r.name)==="Columns"||((o=this.blockComponent)==null?void 0:o.name)==="Form:Form"?{builderLinkComponent:this.linkComponent}:{},...((i=this.blockComponent)==null?void 0:i.name)==="Symbol"||((l=this.blockComponent)==null?void 0:l.name)==="Columns"||((u=this.blockComponent)==null?void 0:u.name)==="Form:Form"?{builderComponents:this.registeredComponents}:{}},context:this.context,linkComponent:this.linkComponent,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((m=this.blockComponent)==null?void 0:m.noWrap)===!0,isInteractive:!((g=this.blockComponent)!=null&&g.isRSC)}}}});function Ai(e,t,n,r,o,i){var f;const l=a.resolveComponent("block-styles"),u=a.resolveComponent("component-ref"),m=a.resolveComponent("block",!0),g=a.resolveComponent("block-wrapper"),v=a.resolveComponent("repeated-block");return e.canShowBlock?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(l,{block:e.block,context:e.context},null,8,["block","context"]),(f=e.blockComponent)!=null&&f.noWrap?(a.openBlock(),a.createBlock(u,{key:1,componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,linkComponent:e.componentRefProps.linkComponent,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive},null,8,["componentRef","componentOptions","blockChildren","context","registeredComponents","linkComponent","builderBlock","includeBlockProps","isInteractive"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.repeatItem?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.repeatItem,(C,P)=>(a.openBlock(),a.createBlock(v,{key:P,repeatContext:C.context,block:C.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["repeatContext","block","registeredComponents","linkComponent"]))),128)):(a.openBlock(),a.createBlock(g,{key:0,Wrapper:e.Tag,block:e.processedBlock,context:e.context,linkComponent:e.linkComponent},{default:a.withCtx(()=>[a.createVNode(u,{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,linkComponent:e.componentRefProps.linkComponent,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive},null,8,["componentRef","componentOptions","blockChildren","context","registeredComponents","linkComponent","builderBlock","includeBlockProps","isInteractive"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.childrenWithoutParentComponent,(C,P)=>(a.openBlock(),a.createBlock(m,{key:C.id,block:C,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},null,8,["block","registeredComponents","linkComponent","context"]))),128))]),_:1},8,["Wrapper","block","context","linkComponent"]))],64))],64)):a.createCommentVNode("",!0)}const St=O(Ri,[["render",Ai]]),Bi=Object.freeze(Object.defineProperty({__proto__:null,default:St},Symbol.toStringTag,{value:"Module"})),Pi=a.defineComponent({name:"builder-blocks-wrapper",props:["blocks","parent","path","styleProp","BlocksWrapperProps","BlocksWrapper"],computed:{className(){var e;return"builder-blocks"+((e=this.blocks)!=null&&e.length?"":" no-blocks")}},methods:{onClick(){var e,t;Y()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var e,t;Y()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))}}});function $i(e,t,n,r,o,i){return a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.BlocksWrapper),a.mergeProps({class:e.className+" component-1o2kztlxdt6","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:l=>e.onClick(),onMouseEnter:l=>e.onMouseEnter(),onKeyPress:l=>e.onClick()},{...e.BlocksWrapperProps}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16,["class","builder-path","builder-parent-id","style","onClick","onMouseEnter","onKeyPress"])}const Oi=O(Pi,[["render",$i],["__scopeId","data-v-9724ab41"]]),ji=a.defineComponent({name:"builder-blocks",components:{BlocksWrapper:Oi,Block:St},props:["blocks","parent","path","styleProp","context","linkComponent","registeredComponents"],inject:{builderContext:yt.key,componentsContext:mr.key}});function Ni(e,t,n,r,o,i){var m,g;const l=a.resolveComponent("block"),u=a.resolveComponent("blocks-wrapper");return a.openBlock(),a.createBlock(u,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:((m=e.context)==null?void 0:m.BlocksWrapper)||e.builderContext.BlocksWrapper,BlocksWrapperProps:((g=e.context)==null?void 0:g.BlocksWrapperProps)||e.builderContext.BlocksWrapperProps},{default:a.withCtx(()=>[e.blocks?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.blocks,(v,f)=>(a.openBlock(),a.createBlock(l,{key:v.id,block:v,linkComponent:e.linkComponent,context:e.context||e.builderContext,registeredComponents:e.registeredComponents||e.componentsContext.registeredComponents},null,8,["block","linkComponent","context","registeredComponents"]))),128)):a.createCommentVNode("",!0)]),_:1},8,["blocks","parent","path","styleProp","BlocksWrapper","BlocksWrapperProps"])}const it=O(ji,[["render",Ni]]),Ct=a.defineComponent({render(){return a.h("style",{innerHTML:this.styles,"data-id":this.id})},name:"inlined-styles",props:["styles","id"]}),Ar={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Vi=(e,t=Ar)=>`@media (max-width: ${t[e].max}px)`,Br=({small:e,medium:t})=>{const n=ot(Ar);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n},Fi=a.defineComponent({name:"builder-columns",components:{InlinedStyles:Ct,DynamicRenderer:tn,Blocks:it},props:["space","columns","stackColumnsAt","reverseColumnsWhenStacked","builderContext","builderBlock","builderLinkComponent","builderComponents"],data(){return{gutterSize:typeof this.space=="number"?this.space||0:20,cols:this.columns||[],stackAt:this.stackColumnsAt||"tablet",flexDir:this.stackColumnsAt==="never"?"row":this.reverseColumnsWhenStacked?"column-reverse":"column",TARGET:ne,getClassPropName:vt,mapStyleObjToStrIfNeeded:Rr}},computed:{columnsCssVars(){return{"--flex-dir":this.flexDir,"--flex-dir-tablet":this.getTabletStyle({stackedStyle:this.flexDir,desktopStyle:"row"})}},columnsStyles(){return`
|
|
29
29
|
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
30
30
|
.${this.builderBlock.id}-breakpoints {
|
|
31
31
|
flex-direction: var(--flex-dir-tablet);
|
|
@@ -49,7 +49,7 @@ theFunction();
|
|
|
49
49
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
`}},methods:{getWidth(e){var t;return((t=this.cols[e])==null?void 0:t.width)||100/this.cols.length},getColumnCssWidth(e){const t=this.gutterSize*(this.cols.length-1)/this.cols.length;return`calc(${this.getWidth(e)}% - ${t}px)`},getTabletStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="tablet"?e:t},getMobileStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="never"?t:e},columnCssVars(e){const t=e===0?0:this.gutterSize,n=this.getColumnCssWidth(e),r=`${t}px`,o="100%",i=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:n,["margin-left"]:r,"--column-width-mobile":this.getMobileStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-mobile":this.getMobileStyle({stackedStyle:i,desktopStyle:r}),"--column-width-tablet":this.getTabletStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-tablet":this.getTabletStyle({stackedStyle:i,desktopStyle:r})}},getWidthForBreakpointSize(e){var n,r;return Br(((r=(n=this.builderContext.content)==null?void 0:n.meta)==null?void 0:r.breakpoints)||{})[e].max}}});function Ui(e,t,n,r,o,i){const l=a.resolveComponent("inlined-styles"),u=a.resolveComponent("blocks"),m=a.resolveComponent("dynamic-renderer");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:`builder-columns ${e.builderBlock.id}-breakpoints div-2fnk003dqad`,style:e.columnsCssVars},{}),[e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(l,{key:0,id:"builderio-columns",styles:e.columnsStyles},null,8,["styles"])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,(g,v)=>(a.openBlock(),a.createBlock(m,{key:v,TagName:g.link?e.builderLinkComponent||"a":"div",actionAttributes:{},attributes:{...g.link?{href:g.link}:{},[e.getClassPropName()]:"builder-column",style:e.mapStyleObjToStrIfNeeded(e.columnCssVars(v))}},{default:a.withCtx(()=>[a.createVNode(u,{path:`component.options.columns.${v}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:g.blocks},null,8,["path","parent","context","registeredComponents","linkComponent","blocks"])]),_:2},1032,["TagName","attributes"]))),128))],16)}const Pr=O(Mi,[["render",Ui],["__scopeId","data-v-6caab097"]]),Di=a.defineComponent({name:"builder-fragment-component",props:[]});function Wi(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("span",null,[a.renderSlot(e.$slots,"default")])}const $r=O(Di,[["render",Wi]]);function ir(e){return e.replace(/http(s)?:/,"")}function Li(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function Hi(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return ir(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const r=e.split(n[0]),o=n[3],i=t.match("x")?t:`${t}x`;return ir(`${r[0]}_${i}${o}`)}return null}function Jt(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const r=Number(e.split("?width=")[1]);return isNaN(r)||(n=`${n} ${r}w`),t.filter(o=>o!==r).map(o=>`${Li(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[Hi(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const Ki=a.defineComponent({name:"builder-image",props:["image","src","srcset","noWebp","aspectRatio","altText","backgroundPosition","backgroundSize","className","sizes","builderBlock","fitContent"],computed:{srcSetToUse(){var n;const t=this.image||this.src;if(!t||!(t.match(/builder\.io/)||t.match(/cdn\.shopify\.com/)))return this.srcset;if(this.srcset&&((n=this.image)!=null&&n.includes("builder.io/api/v1/image"))){if(!this.srcset.includes(this.image.split("?")[0]))return console.debug("Removed given srcset"),Jt(t)}else if(this.image&&!this.srcset)return Jt(t);return Jt(t)},webpSrcSet(){var e;return(e=this.srcSetToUse)!=null&&e.match(/builder\.io/)&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},aspectRatioCss(){const e={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?e:void 0}}}),_i=["srcset"],zi=["alt","role","src","srcset","sizes"],qi={key:2,class:"div-1be3j8m9ewb-2"};function Gi(e,t,n,r,o,i){var l,u,m,g;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("picture",null,[e.webpSrcSet?(a.openBlock(),a.createElementBlock("source",{key:0,type:"image/webp",srcset:e.webpSrcSet},null,8,_i)):a.createCommentVNode("",!0),a.createElementVNode("img",{loading:"lazy",alt:e.altText,role:e.altText?void 0:"presentation",style:a.normalizeStyle({objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...e.aspectRatioCss}),class:a.normalizeClass("builder-image"+(e.className?" "+e.className:"")+" img-1be3j8m9ewb"),src:e.image,srcset:e.srcSetToUse,sizes:e.sizes},null,14,zi)]),e.aspectRatio&&!((u=(l=e.builderBlock)==null?void 0:l.children)!=null&&u.length&&e.fitContent)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"builder-image-sizer div-1be3j8m9ewb",style:a.normalizeStyle({paddingTop:e.aspectRatio*100+"%"})},null,4)):a.createCommentVNode("",!0),(g=(m=e.builderBlock)==null?void 0:m.children)!=null&&g.length&&e.fitContent?a.renderSlot(e.$slots,"default",{key:1},void 0,!0):a.createCommentVNode("",!0),!e.fitContent&&e.$slots.default?(a.openBlock(),a.createElementBlock("div",qi,[a.renderSlot(e.$slots,"default",{},void 0,!0)])):a.createCommentVNode("",!0)],64)}const Or=O(Ki,[["render",Gi],["__scopeId","data-v-dde76a35"]]),Ji=a.defineComponent({name:"builder-section-component",props:["attributes","maxWidth"],data(){return{filterAttrs:ke}}});function Xi(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("section",a.mergeProps({style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[a.renderSlot(e.$slots,"default")],16)}const jr=O(Ji,[["render",Xi]]),Yi=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},Nr=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){z.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Vr=async e=>Nr(e),Zi=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(he).join("; "),Qi=[["secure",""],["SameSite","None"]],es=({name:e,value:t,expires:n})=>{const o=(K()?location.protocol==="https:":!0)?Qi:[[]],i=n?[["expires",n.toUTCString()]]:[[]],l=[[e,t],...i,["path","/"],["domain",Yi(window.location.hostname)],...o];return Zi(l)},Fr=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=es({name:e,value:t,expires:n});document.cookie=o}catch(o){z.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}},ts="builder.tests",bn=e=>`${ts}.${e}`,ns=({contentId:e})=>Vr({name:bn(e),canTrack:!0}),rs=({contentId:e})=>Nr({name:bn(e),canTrack:!0}),os=({contentId:e,value:t})=>Fr({name:bn(e),value:t,canTrack:!0}),Mr=e=>he(e.id)&&he(e.variations)&&Object.keys(e.variations).length>0,is=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const l=(o=t[i])==null?void 0:o.testRatio;if(n+=l,r<n)return i}return e},Ur=e=>{const t=is(e);return os({contentId:e.id,value:t}).catch(n=>{z.error("could not store A/B test variation: ",n)}),t},Dr=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},ss=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Mr(e))return e;const n=rs({contentId:e.id})||Ur({variations:e.variations,id:e.id}),r=Dr({item:e,testGroupId:n});return{...e,...r}},as=async({item:e,canTrack:t})=>{if(!t||!Mr(e))return e;const r=await ns({contentId:e.id})||Ur({variations:e.variations,id:e.id}),o=Dr({item:e,testGroupId:r});return{...e,...o}},tt=e=>he(e)?e:!0,ls={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},cs={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(r=>{r.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(o=>o.get("width"))&&(n.find(i=>!i.get("width"))||n.reduce((u,m)=>u+m.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},us={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},ps={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(l,u=6e4){return new Promise((m,g)=>{const v=document.createElement("img");let f=!1;v.onload=()=>{f=!0,m(v)},v.addEventListener("error",C=>{console.warn("Image load failed",C.error),g(C.error)}),v.src=l,setTimeout(()=>{f||g(new Error("Image load timed out"))},u)})}function r(l){return Math.round(l*1e3)/1e3}const o=e.get("image"),i=e.get("aspectRatio");if(fetch(o).then(l=>l.blob()).then(l=>{l.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!i||i===.7041))return n(o).then(l=>{const u=e.get("aspectRatio");e.get("image")===o&&(!u||u===.7041)&&l.width&&l.height&&(e.set("aspectRatio",r(l.height/l.width)),e.set("height",l.height),e.set("width",l.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},ds={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},ms={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]},hs=a.defineComponent({name:"builder-slot",components:{Blocks:it},props:["builderContext","name"]});function fs(e,t,n,r,o,i){var u,m,g;const l=a.resolveComponent("blocks");return a.openBlock(),a.createElementBlock("div",a.mergeProps({style:{pointerEvents:"auto"}},!((u=e.builderContext.context)!=null&&u.symbolId)&&{"builder-slot":e.name}),[a.createVNode(l,{parent:(m=e.builderContext.context)==null?void 0:m.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(g=e.builderContext.rootState)==null?void 0:g[e.name]},null,8,["parent","path","context","blocks"])],16)}const gs=O(hs,[["render",fs]]),ys={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},vs={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},bs=a.defineComponent({name:"builder-text",props:["text"]}),ks=["innerHTML"];function Ss(e,t,n,r,o,i){var l;return a.openBlock(),a.createElementBlock("div",{class:"builder-text",innerHTML:((l=e.text)==null?void 0:l.toString())||"",style:{outline:"none"}},null,8,ks)}const Wr=O(bs,[["render",Ss]]),Cs={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},ws=a.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){var t;if(!((t=this.$refs.elementRef)!=null&&t.getElementsByTagName)||typeof window>"u")return;const e=this.$refs.elementRef.getElementsByTagName("script");for(let n=0;n<e.length;n++){const r=e[n];if(r.src){if(this.scriptsInserted.includes(r.src))continue;this.scriptsInserted.push(r.src);const o=document.createElement("script");o.async=!0,o.src=r.src,document.head.appendChild(o)}else if(!r.type||["text/javascript","application/javascript","application/ecmascript"].includes(r.type)){if(this.scriptsRun.includes(r.innerText))continue;try{this.scriptsRun.push(r.innerText),new Function(r.innerText)()}catch(o){console.warn("`CustomCode`: Error running script:",o)}}}}}),Es=["innerHTML"];function Is(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"elementRef",class:a.normalizeClass("builder-custom-code"+(e.replaceNodes?" replace-nodes":"")),innerHTML:e.code},null,10,Es)}const Ts=O(ws,[["render",Is]]),xs={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(r=>r.json()).then(r=>{e.get("url")===t&&(r.html?e.set("content",r.html):e.set("content","Invalid url, please try another"))}).catch(r=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},Rs=["text/javascript","application/javascript","application/ecmascript"],As=e=>Rs.includes(e.type),Bs=a.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const r=document.createElement("script");r.async=!0,r.src=n.src,document.head.appendChild(r)}else if(As(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(r){console.warn("`Embed`: Error running script:",r)}}}}}),Ps=["innerHTML"];function $s(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:"builder-embed",ref:"elem",innerHTML:e.content},null,8,Ps)}const Os=O(Bs,[["render",$s]]),js={name:"Form:Form",defaults:{responsiveStyles:{large:{marginTop:"15px",paddingBottom:"15px"}}},image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fef36d2a846134910b64b88e6d18c5ca5",inputs:[{name:"sendSubmissionsTo",type:"string",enum:[{label:"Send to email",value:"email",helperText:"Send form submissions to the email address of your choosing"},{label:"Custom",value:"custom",helperText:"Handle where the form requests go manually with a little code, e.g. to your own custom backend"}],defaultValue:"email"},{name:"sendSubmissionsToEmail",type:"string",required:!0,defaultValue:"your@email.com",showIf:'options.get("sendSubmissionsTo") === "email"'},{name:"sendWithJs",type:"boolean",helperText:"Set to false to use basic html form action",defaultValue:!0,showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"name",type:"string",defaultValue:"My form"},{name:"action",type:"string",helperText:"URL to send the form data to",showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"contentType",type:"string",defaultValue:"application/json",advanced:!0,enum:["application/json","multipart/form-data","application/x-www-form-urlencoded"],showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'},{name:"method",type:"string",showIf:'options.get("sendSubmissionsTo") === "custom"',defaultValue:"POST",advanced:!0},{name:"previewState",type:"string",enum:["unsubmitted","sending","success","error"],defaultValue:"unsubmitted",helperText:'Choose a state to edit, e.g. choose "success" to show what users see on success and edit the message',showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"successUrl",type:"url",helperText:"Optional URL to redirect the user to on form submission success",showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"resetFormOnSubmit",type:"boolean",showIf:"options.get('sendSubmissionsTo') === 'custom' && options.get('sendWithJs') === true",advanced:!0},{name:"successMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Thanks!</span>"}}}]},{name:"validate",type:"boolean",defaultValue:!0,advanced:!0},{name:"errorMessagePath",type:"text",advanced:!0,helperText:'Path to where to get the error message from in a JSON response to display to the user, e.g. "error.message" for a response like { "error": { "message": "this username is taken" }}'},{name:"errorMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},bindings:{"component.options.text":"state.formErrorMessage || block.component.options.text"},component:{name:"Text",options:{text:"<span>Form submission error :( Please check your answers and try again</span>"}}}]},{name:"sendingMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Sending...</span>"}}}]},{name:"customHeaders",type:"map",valueType:{type:"string"},advanced:!0,showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'}],noWrap:!0,canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your name</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"name",placeholder:"Jane Doe"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your email</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"email",placeholder:"jane@doe.com"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:SubmitButton",options:{text:"Submit"}}}]},Ns=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"],Vs=()=>{const e=process.env.NODE_ENV||"production";return Ns.includes(e)?e:"production"},Fs=(e,t,n)=>{const r=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((o,i)=>o!=null?o[i]:o,e);return r===void 0||r===e?n:r},Ms=a.defineComponent({name:"builder-form-component",components:{Block:St,Blocks:it},props:["builderContext","previewState","sendWithJs","sendSubmissionsTo","action","customHeaders","contentType","sendSubmissionsToEmail","name","method","errorMessagePath","resetFormOnSubmit","successUrl","validate","attributes","builderBlock","builderComponents","builderLinkComponent","errorMessage","sendingMessage","successMessage"],data(){return{formState:"unsubmitted",responseData:null,formErrorMessage:"",filterAttrs:ke}},methods:{mergeNewRootState(e){var n,r;const t={...this.builderContext.rootState,...e};this.builderContext.rootSetState?(r=(n=this.builderContext).rootSetState)==null||r.call(n,t):this.builderContext.rootState=t},submissionState(){return Y()&&this.previewState||this.formState},onSubmit(e){var n;const t=this.sendWithJs||this.sendSubmissionsTo==="email";if(this.sendSubmissionsTo==="zapier")e.preventDefault();else if(t){if(!(this.action||this.sendSubmissionsTo==="email")){e.preventDefault();return}e.preventDefault();const r=e.currentTarget,o=this.customHeaders||{};let i;const l=new FormData(r),u=Array.from(e.currentTarget.querySelectorAll("input,select,textarea")).filter(f=>!!f.name).map(f=>{let C;const P=f.name;if(f instanceof HTMLInputElement)if(f.type==="radio"){if(f.checked)return C=f.name,{key:P,value:C}}else if(f.type==="checkbox")C=f.checked;else if(f.type==="number"||f.type==="range"){const E=f.valueAsNumber;isNaN(E)||(C=E)}else f.type==="file"?C=f.files:C=f.value;else C=f.value;return{key:P,value:C}});let m=this.contentType;if(this.sendSubmissionsTo==="email"&&(m="multipart/form-data"),Array.from(u).forEach(({value:f})=>{(f instanceof File||Array.isArray(f)&&f[0]instanceof File||f instanceof FileList)&&(m="multipart/form-data")}),m!=="application/json")i=l;else{const f={};Array.from(u).forEach(({value:C,key:P})=>{nn(f,P,C)}),i=JSON.stringify(f)}m&&m!=="multipart/form-data"&&(t&&((n=this.action)!=null&&n.includes("zapier.com"))||(o["content-type"]=m));const g=new CustomEvent("presubmit",{detail:{body:i}});if(this.$refs.formRef&&(this.$refs.formRef.dispatchEvent(g),g.defaultPrevented))return;this.formState="sending";const v=`${Vs()==="dev"?"http://localhost:5000":"https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(this.sendSubmissionsToEmail||"")}&name=${encodeURIComponent(this.name||"")}`;fetch(this.sendSubmissionsTo==="email"?v:this.action,{body:i,headers:o,method:this.method||"post"}).then(async f=>{let C;const P=f.headers.get("content-type");if(P&&P.indexOf("application/json")!==-1?C=await f.json():C=await f.text(),!f.ok&&this.errorMessagePath){let E=Fs(C,this.errorMessagePath);E&&(typeof E!="string"&&(E=JSON.stringify(E)),this.formErrorMessage=E,this.mergeNewRootState({formErrorMessage:E}))}if(this.responseData=C,this.formState=f.ok?"success":"error",f.ok){const E=new CustomEvent("submit:success",{detail:{res:f,body:C}});if(this.$refs.formRef){if(this.$refs.formRef.dispatchEvent(E),E.defaultPrevented)return;this.resetFormOnSubmit!==!1&&this.$refs.formRef.reset()}if(this.successUrl)if(this.$refs.formRef){const N=new CustomEvent("route",{detail:{url:this.successUrl}});this.$refs.formRef.dispatchEvent(N),N.defaultPrevented||(location.href=this.successUrl)}else location.href=this.successUrl}},f=>{const C=new CustomEvent("submit:error",{detail:{error:f}});this.$refs.formRef&&(this.$refs.formRef.dispatchEvent(C),C.defaultPrevented)||(this.responseData=f,this.formState="error")})}}}}),Us=["validate","action","method","name"],Ds={key:3,class:"builder-form-error-text pre-5vz8uirn7sc"};function Ws(e,t,n,r,o,i){var m;const l=a.resolveComponent("block"),u=a.resolveComponent("blocks");return a.openBlock(),a.createElementBlock("form",a.mergeProps({validate:e.validate,ref:"formRef",action:!e.sendWithJs&&e.action,method:e.method,name:e.name,onSubmit:t[0]||(t[0]=g=>e.onSubmit(g))},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[e.builderBlock&&e.builderBlock.children?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList((m=e.builderBlock)==null?void 0:m.children,(g,v)=>(a.openBlock(),a.createBlock(l,{key:`form-block-${e.idx}`,block:g,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128)):a.createCommentVNode("",!0),e.submissionState()==="error"?(a.openBlock(),a.createBlock(u,{key:1,path:"errorMessage",blocks:e.errorMessage,context:e.builderContext},null,8,["blocks","context"])):a.createCommentVNode("",!0),e.submissionState()==="sending"?(a.openBlock(),a.createBlock(u,{key:2,path:"sendingMessage",blocks:e.sendingMessage,context:e.builderContext},null,8,["blocks","context"])):a.createCommentVNode("",!0),e.submissionState()==="error"&&e.responseData?(a.openBlock(),a.createElementBlock("pre",Ds,a.toDisplayString(JSON.stringify(e.responseData,null,2)),1)):a.createCommentVNode("",!0),e.submissionState()==="success"?(a.openBlock(),a.createBlock(u,{key:4,path:"successMessage",blocks:e.successMessage,context:e.builderContext},null,8,["blocks","context"])):a.createCommentVNode("",!0)],16,Us)}const Ls=O(Ms,[["render",Ws],["__scopeId","data-v-83a4b1d9"]]),Hs={name:"Form:Input",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",inputs:[{name:"type",type:"text",enum:["text","number","email","url","checkbox","radio","range","date","datetime-local","search","tel","time","file","month","week","password","color","hidden"],defaultValue:"text"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it takes, e.g. "email"'},{name:"placeholder",type:"string",defaultValue:"Hello there",helperText:"Text to display when there is no value"},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",helperText:"Is this input required to be filled out to submit a form",defaultValue:!1}],noWrap:!0,static:!0,defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"}},Ks=a.defineComponent({name:"builder-form-input-component",props:["attributes","defaultValue","placeholder","type","name","value","required"],data(){return{isEditing:Y,filterAttrs:ke}}}),_s=["placeholder","type","name","value","defaultValue","required"];function zs(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("input",a.mergeProps({key:e.isEditing()&&e.defaultValue?e.defaultValue:"default-key",placeholder:e.placeholder,type:e.type,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),null,16,_s)}const qs=O(Ks,[["render",zs]]),Gs={name:"Form:Select",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",defaultStyles:{alignSelf:"flex-start"},inputs:[{name:"options",type:"list",required:!0,subFields:[{name:"value",type:"text",required:!0},{name:"name",type:"text"}],defaultValue:[{value:"option 1"},{value:"option 2"}]},{name:"name",type:"string",required:!0,helperText:'Every select in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",defaultValue:!1}],static:!0,noWrap:!0},Js=a.defineComponent({name:"builder-select-component",props:["attributes","value","defaultValue","name","options"],data(){return{isEditing:Y,filterAttrs:ke}}}),Xs=["value","defaultValue","name"],Ys=["value"];function Zs(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("select",a.mergeProps({value:e.value,key:e.isEditing()&&e.defaultValue?e.defaultValue:"default-key",defaultValue:e.defaultValue,name:e.name},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.options,(l,u)=>(a.openBlock(),a.createElementBlock("option",{key:`${l.name}-${u}`,value:l.value},a.toDisplayString(l.name||l.value),9,Ys))),128))],16,Xs)}const Qs=O(Js,[["render",Zs]]),ea={name:"Form:SubmitButton",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#3898EC",color:"white",borderRadius:"4px",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me"}],static:!0,noWrap:!0},ta=a.defineComponent({name:"builder-submit-button",props:["attributes","text"],data(){return{filterAttrs:ke}}});function na(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("button",a.mergeProps({type:"submit"},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),a.toDisplayString(e.text),17)}const ra=O(ta,[["render",na]]),oa={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},ia=a.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:Y,filterAttrs:ke}}}),sa=["alt","src"];function aa(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("img",a.mergeProps({style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},key:e.isEditing()&&e.imgSrc||"default-key",alt:e.altText,src:e.imgSrc||e.image},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),null,16,sa)}const la=O(ia,[["render",aa]]),ca={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},ua=a.defineComponent({name:"builder-video",props:["autoPlay","muted","controls","loop","playsInline","preload","attributes","fit","position","aspectRatio","video","posterImage","lazyLoad","fitContent","builderBlock"],computed:{videoProps(){return{...this.autoPlay===!0?{autoPlay:!0}:{},...this.muted===!0?{muted:!0}:{},...this.controls===!0?{controls:!0}:{},...this.loop===!0?{loop:!0}:{},...this.playsInline===!0?{playsInline:!0}:{}}},spreadProps(){return{...this.videoProps}}}}),pa={style:{position:"relative"}},da=["preload","src","poster"],ma=["src"],ha={key:1,style:{display:"flex",flexDirection:"column",alignItems:"stretch"}},fa={key:2,style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}};function ga(e,t,n,r,o,i){var l,u,m,g,v,f,C;return a.openBlock(),a.createElementBlock("div",pa,[a.createElementVNode("video",a.mergeProps({class:"builder-video",preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(l=e.attributes)==null?void 0:l.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage},e.spreadProps),[e.lazyLoad?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("source",{key:0,type:"video/mp4",src:e.video},null,8,ma))],16,da),e.aspectRatio&&!(e.fitContent&&((m=(u=e.builderBlock)==null?void 0:u.children)!=null&&m.length))?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle({width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"})},null,4)):a.createCommentVNode("",!0),(v=(g=e.builderBlock)==null?void 0:g.children)!=null&&v.length&&e.fitContent?(a.openBlock(),a.createElementBlock("div",ha,[a.renderSlot(e.$slots,"default")])):a.createCommentVNode("",!0),(C=(f=e.builderBlock)==null?void 0:f.children)!=null&&C.length&&!e.fitContent?(a.openBlock(),a.createElementBlock("div",fa,[a.renderSlot(e.$slots,"default")])):a.createCommentVNode("",!0)])}const Lr=O(ua,[["render",ga]]),ya=()=>[{component:Ts,...Cs},{component:Os,...xs},{component:Ls,...js},{component:qs,...Hs},{component:ra,...ea},{component:Qs,...Gs},{component:la,...oa},{component:Lr,...ca}],sr=()=>[{component:hr,...ls},{component:Pr,...cs},{component:$r,...us},{component:Or,...ps},{component:jr,...ds},{component:gs,...ms},{component:lo,...ys},{component:Wr,...vs},...ya()],Hr=e=>({type:"builder.registerComponent",data:Qt(e)}),va=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},ba=e=>typeof e=="function"?va(e):ot(e),Qt=({inputs:e,...t})=>({...ot(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,i])=>({...r,[o]:ba(i)}),{}))}),ka=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
52
|
+
`}},methods:{getWidth(e){var t;return((t=this.cols[e])==null?void 0:t.width)||100/this.cols.length},getColumnCssWidth(e){const t=this.gutterSize*(this.cols.length-1)/this.cols.length;return`calc(${this.getWidth(e)}% - ${t}px)`},getTabletStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="tablet"?e:t},getMobileStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="never"?t:e},columnCssVars(e){const t=e===0?0:this.gutterSize,n=this.getColumnCssWidth(e),r=`${t}px`,o="100%",i=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:n,["margin-left"]:r,"--column-width-mobile":this.getMobileStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-mobile":this.getMobileStyle({stackedStyle:i,desktopStyle:r}),"--column-width-tablet":this.getTabletStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-tablet":this.getTabletStyle({stackedStyle:i,desktopStyle:r})}},getWidthForBreakpointSize(e){var n,r;return Br(((r=(n=this.builderContext.content)==null?void 0:n.meta)==null?void 0:r.breakpoints)||{})[e].max}}});function Mi(e,t,n,r,o,i){const l=a.resolveComponent("inlined-styles"),u=a.resolveComponent("blocks"),m=a.resolveComponent("dynamic-renderer");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:`builder-columns ${e.builderBlock.id}-breakpoints div-2fnk003dqad`,style:e.columnsCssVars},{}),[e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(l,{key:0,id:"builderio-columns",styles:e.columnsStyles},null,8,["styles"])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,(g,v)=>(a.openBlock(),a.createBlock(m,{key:v,TagName:g.link?e.builderLinkComponent||"a":"div",actionAttributes:{},attributes:{...g.link?{href:g.link}:{},[e.getClassPropName()]:"builder-column",style:e.mapStyleObjToStrIfNeeded(e.columnCssVars(v))}},{default:a.withCtx(()=>[a.createVNode(u,{path:`component.options.columns.${v}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:g.blocks},null,8,["path","parent","context","registeredComponents","linkComponent","blocks"])]),_:2},1032,["TagName","attributes"]))),128))],16)}const Pr=O(Fi,[["render",Mi],["__scopeId","data-v-6caab097"]]),Ui=a.defineComponent({name:"builder-fragment-component",props:[]});function Di(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("span",null,[a.renderSlot(e.$slots,"default")])}const $r=O(Ui,[["render",Di]]);function rr(e){return e.replace(/http(s)?:/,"")}function Wi(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function Li(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return rr(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const r=e.split(n[0]),o=n[3],i=t.match("x")?t:`${t}x`;return rr(`${r[0]}_${i}${o}`)}return null}function Jt(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const r=Number(e.split("?width=")[1]);return isNaN(r)||(n=`${n} ${r}w`),t.filter(o=>o!==r).map(o=>`${Wi(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[Li(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const Hi=a.defineComponent({name:"builder-image",props:["image","src","srcset","noWebp","aspectRatio","altText","backgroundPosition","backgroundSize","className","sizes","builderBlock","fitContent"],computed:{srcSetToUse(){var n;const t=this.image||this.src;if(!t||!(t.match(/builder\.io/)||t.match(/cdn\.shopify\.com/)))return this.srcset;if(this.srcset&&((n=this.image)!=null&&n.includes("builder.io/api/v1/image"))){if(!this.srcset.includes(this.image.split("?")[0]))return console.debug("Removed given srcset"),Jt(t)}else if(this.image&&!this.srcset)return Jt(t);return Jt(t)},webpSrcSet(){var e;return(e=this.srcSetToUse)!=null&&e.match(/builder\.io/)&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},aspectRatioCss(){const e={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?e:void 0}}}),Ki=["srcset"],_i=["alt","role","src","srcset","sizes"],zi={key:2,class:"div-1be3j8m9ewb-2"};function qi(e,t,n,r,o,i){var l,u,m,g;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("picture",null,[e.webpSrcSet?(a.openBlock(),a.createElementBlock("source",{key:0,type:"image/webp",srcset:e.webpSrcSet},null,8,Ki)):a.createCommentVNode("",!0),a.createElementVNode("img",{loading:"lazy",alt:e.altText,role:e.altText?void 0:"presentation",style:a.normalizeStyle({objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...e.aspectRatioCss}),class:a.normalizeClass("builder-image"+(e.className?" "+e.className:"")+" img-1be3j8m9ewb"),src:e.image,srcset:e.srcSetToUse,sizes:e.sizes},null,14,_i)]),e.aspectRatio&&!((u=(l=e.builderBlock)==null?void 0:l.children)!=null&&u.length&&e.fitContent)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"builder-image-sizer div-1be3j8m9ewb",style:a.normalizeStyle({paddingTop:e.aspectRatio*100+"%"})},null,4)):a.createCommentVNode("",!0),(g=(m=e.builderBlock)==null?void 0:m.children)!=null&&g.length&&e.fitContent?a.renderSlot(e.$slots,"default",{key:1},void 0,!0):a.createCommentVNode("",!0),!e.fitContent&&e.$slots.default?(a.openBlock(),a.createElementBlock("div",zi,[a.renderSlot(e.$slots,"default",{},void 0,!0)])):a.createCommentVNode("",!0)],64)}const Or=O(Hi,[["render",qi],["__scopeId","data-v-dde76a35"]]),Gi=a.defineComponent({name:"builder-section-component",props:["attributes","maxWidth"],data(){return{filterAttrs:ke}}});function Ji(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("section",a.mergeProps({style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[a.renderSlot(e.$slots,"default")],16)}const jr=O(Gi,[["render",Ji]]),Xi=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},Nr=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){z.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Vr=async e=>Nr(e),Yi=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(he).join("; "),Zi=[["secure",""],["SameSite","None"]],Qi=({name:e,value:t,expires:n})=>{const o=(K()?location.protocol==="https:":!0)?Zi:[[]],i=n?[["expires",n.toUTCString()]]:[[]],l=[[e,t],...i,["path","/"],["domain",Xi(window.location.hostname)],...o];return Yi(l)},Fr=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=Qi({name:e,value:t,expires:n});document.cookie=o}catch(o){z.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}},es="builder.tests",yn=e=>`${es}.${e}`,ts=({contentId:e})=>Vr({name:yn(e),canTrack:!0}),ns=({contentId:e})=>Nr({name:yn(e),canTrack:!0}),rs=({contentId:e,value:t})=>Fr({name:yn(e),value:t,canTrack:!0}),Mr=e=>he(e.id)&&he(e.variations)&&Object.keys(e.variations).length>0,os=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const l=(o=t[i])==null?void 0:o.testRatio;if(n+=l,r<n)return i}return e},Ur=e=>{const t=os(e);return rs({contentId:e.id,value:t}).catch(n=>{z.error("could not store A/B test variation: ",n)}),t},Dr=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},is=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Mr(e))return e;const n=ns({contentId:e.id})||Ur({variations:e.variations,id:e.id}),r=Dr({item:e,testGroupId:n});return{...e,...r}},ss=async({item:e,canTrack:t})=>{if(!t||!Mr(e))return e;const r=await ts({contentId:e.id})||Ur({variations:e.variations,id:e.id}),o=Dr({item:e,testGroupId:r});return{...e,...o}},tt=e=>he(e)?e:!0,as={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},ls={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(r=>{r.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(o=>o.get("width"))&&(n.find(i=>!i.get("width"))||n.reduce((u,m)=>u+m.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},cs={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},us={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(l,u=6e4){return new Promise((m,g)=>{const v=document.createElement("img");let f=!1;v.onload=()=>{f=!0,m(v)},v.addEventListener("error",C=>{console.warn("Image load failed",C.error),g(C.error)}),v.src=l,setTimeout(()=>{f||g(new Error("Image load timed out"))},u)})}function r(l){return Math.round(l*1e3)/1e3}const o=e.get("image"),i=e.get("aspectRatio");if(fetch(o).then(l=>l.blob()).then(l=>{l.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!i||i===.7041))return n(o).then(l=>{const u=e.get("aspectRatio");e.get("image")===o&&(!u||u===.7041)&&l.width&&l.height&&(e.set("aspectRatio",r(l.height/l.width)),e.set("height",l.height),e.set("width",l.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},ps={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},ds={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]},ms=a.defineComponent({name:"builder-slot",components:{Blocks:it},props:["builderContext","name"]});function hs(e,t,n,r,o,i){var u,m,g;const l=a.resolveComponent("blocks");return a.openBlock(),a.createElementBlock("div",a.mergeProps({style:{pointerEvents:"auto"}},!((u=e.builderContext.context)!=null&&u.symbolId)&&{"builder-slot":e.name}),[a.createVNode(l,{parent:(m=e.builderContext.context)==null?void 0:m.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(g=e.builderContext.rootState)==null?void 0:g[e.name]},null,8,["parent","path","context","blocks"])],16)}const fs=O(ms,[["render",hs]]),gs={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},ys={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},vs=a.defineComponent({name:"builder-text",props:["text"]}),bs=["innerHTML"];function ks(e,t,n,r,o,i){var l;return a.openBlock(),a.createElementBlock("div",{class:"builder-text",innerHTML:((l=e.text)==null?void 0:l.toString())||"",style:{outline:"none"}},null,8,bs)}const Wr=O(vs,[["render",ks]]),Ss={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},Cs=a.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){var t;if(!((t=this.$refs.elementRef)!=null&&t.getElementsByTagName)||typeof window>"u")return;const e=this.$refs.elementRef.getElementsByTagName("script");for(let n=0;n<e.length;n++){const r=e[n];if(r.src){if(this.scriptsInserted.includes(r.src))continue;this.scriptsInserted.push(r.src);const o=document.createElement("script");o.async=!0,o.src=r.src,document.head.appendChild(o)}else if(!r.type||["text/javascript","application/javascript","application/ecmascript"].includes(r.type)){if(this.scriptsRun.includes(r.innerText))continue;try{this.scriptsRun.push(r.innerText),new Function(r.innerText)()}catch(o){console.warn("`CustomCode`: Error running script:",o)}}}}}),ws=["innerHTML"];function Es(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"elementRef",class:a.normalizeClass("builder-custom-code"+(e.replaceNodes?" replace-nodes":"")),innerHTML:e.code},null,10,ws)}const Is=O(Cs,[["render",Es]]),Ts={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(r=>r.json()).then(r=>{e.get("url")===t&&(r.html?e.set("content",r.html):e.set("content","Invalid url, please try another"))}).catch(r=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},xs=["text/javascript","application/javascript","application/ecmascript"],Rs=e=>xs.includes(e.type),As=a.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const r=document.createElement("script");r.async=!0,r.src=n.src,document.head.appendChild(r)}else if(Rs(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(r){console.warn("`Embed`: Error running script:",r)}}}}}),Bs=["innerHTML"];function Ps(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:"builder-embed",ref:"elem",innerHTML:e.content},null,8,Bs)}const $s=O(As,[["render",Ps]]),Os={name:"Form:Form",defaults:{responsiveStyles:{large:{marginTop:"15px",paddingBottom:"15px"}}},image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fef36d2a846134910b64b88e6d18c5ca5",inputs:[{name:"sendSubmissionsTo",type:"string",enum:[{label:"Send to email",value:"email",helperText:"Send form submissions to the email address of your choosing"},{label:"Custom",value:"custom",helperText:"Handle where the form requests go manually with a little code, e.g. to your own custom backend"}],defaultValue:"email"},{name:"sendSubmissionsToEmail",type:"string",required:!0,defaultValue:"your@email.com",showIf:'options.get("sendSubmissionsTo") === "email"'},{name:"sendWithJs",type:"boolean",helperText:"Set to false to use basic html form action",defaultValue:!0,showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"name",type:"string",defaultValue:"My form"},{name:"action",type:"string",helperText:"URL to send the form data to",showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"contentType",type:"string",defaultValue:"application/json",advanced:!0,enum:["application/json","multipart/form-data","application/x-www-form-urlencoded"],showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'},{name:"method",type:"string",showIf:'options.get("sendSubmissionsTo") === "custom"',defaultValue:"POST",advanced:!0},{name:"previewState",type:"string",enum:["unsubmitted","sending","success","error"],defaultValue:"unsubmitted",helperText:'Choose a state to edit, e.g. choose "success" to show what users see on success and edit the message',showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"successUrl",type:"url",helperText:"Optional URL to redirect the user to on form submission success",showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"resetFormOnSubmit",type:"boolean",showIf:"options.get('sendSubmissionsTo') === 'custom' && options.get('sendWithJs') === true",advanced:!0},{name:"successMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Thanks!</span>"}}}]},{name:"validate",type:"boolean",defaultValue:!0,advanced:!0},{name:"errorMessagePath",type:"text",advanced:!0,helperText:'Path to where to get the error message from in a JSON response to display to the user, e.g. "error.message" for a response like { "error": { "message": "this username is taken" }}'},{name:"errorMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},bindings:{"component.options.text":"state.formErrorMessage || block.component.options.text"},component:{name:"Text",options:{text:"<span>Form submission error :( Please check your answers and try again</span>"}}}]},{name:"sendingMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Sending...</span>"}}}]},{name:"customHeaders",type:"map",valueType:{type:"string"},advanced:!0,showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'}],noWrap:!0,canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your name</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"name",placeholder:"Jane Doe"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your email</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"email",placeholder:"jane@doe.com"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:SubmitButton",options:{text:"Submit"}}}]},js=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"],Ns=()=>{const e=process.env.NODE_ENV||"production";return js.includes(e)?e:"production"},Vs=(e,t,n)=>{const r=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((o,i)=>o!=null?o[i]:o,e);return r===void 0||r===e?n:r},Fs=a.defineComponent({name:"builder-form-component",components:{Block:St,Blocks:it},props:["builderContext","previewState","sendWithJs","sendSubmissionsTo","action","customHeaders","contentType","sendSubmissionsToEmail","name","method","errorMessagePath","resetFormOnSubmit","successUrl","validate","attributes","builderBlock","builderComponents","builderLinkComponent","errorMessage","sendingMessage","successMessage"],data(){return{formState:"unsubmitted",responseData:null,formErrorMessage:"",filterAttrs:ke}},methods:{mergeNewRootState(e){var n,r;const t={...this.builderContext.rootState,...e};this.builderContext.rootSetState?(r=(n=this.builderContext).rootSetState)==null||r.call(n,t):this.builderContext.rootState=t},submissionState(){return Y()&&this.previewState||this.formState},onSubmit(e){var n;const t=this.sendWithJs||this.sendSubmissionsTo==="email";if(this.sendSubmissionsTo==="zapier")e.preventDefault();else if(t){if(!(this.action||this.sendSubmissionsTo==="email")){e.preventDefault();return}e.preventDefault();const r=e.currentTarget,o=this.customHeaders||{};let i;const l=new FormData(r),u=Array.from(e.currentTarget.querySelectorAll("input,select,textarea")).filter(f=>!!f.name).map(f=>{let C;const P=f.name;if(f instanceof HTMLInputElement)if(f.type==="radio"){if(f.checked)return C=f.name,{key:P,value:C}}else if(f.type==="checkbox")C=f.checked;else if(f.type==="number"||f.type==="range"){const E=f.valueAsNumber;isNaN(E)||(C=E)}else f.type==="file"?C=f.files:C=f.value;else C=f.value;return{key:P,value:C}});let m=this.contentType;if(this.sendSubmissionsTo==="email"&&(m="multipart/form-data"),Array.from(u).forEach(({value:f})=>{(f instanceof File||Array.isArray(f)&&f[0]instanceof File||f instanceof FileList)&&(m="multipart/form-data")}),m!=="application/json")i=l;else{const f={};Array.from(u).forEach(({value:C,key:P})=>{nn(f,P,C)}),i=JSON.stringify(f)}m&&m!=="multipart/form-data"&&(t&&((n=this.action)!=null&&n.includes("zapier.com"))||(o["content-type"]=m));const g=new CustomEvent("presubmit",{detail:{body:i}});if(this.$refs.formRef&&(this.$refs.formRef.dispatchEvent(g),g.defaultPrevented))return;this.formState="sending";const v=`${Ns()==="dev"?"http://localhost:5000":"https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(this.sendSubmissionsToEmail||"")}&name=${encodeURIComponent(this.name||"")}`;fetch(this.sendSubmissionsTo==="email"?v:this.action,{body:i,headers:o,method:this.method||"post"}).then(async f=>{let C;const P=f.headers.get("content-type");if(P&&P.indexOf("application/json")!==-1?C=await f.json():C=await f.text(),!f.ok&&this.errorMessagePath){let E=Vs(C,this.errorMessagePath);E&&(typeof E!="string"&&(E=JSON.stringify(E)),this.formErrorMessage=E,this.mergeNewRootState({formErrorMessage:E}))}if(this.responseData=C,this.formState=f.ok?"success":"error",f.ok){const E=new CustomEvent("submit:success",{detail:{res:f,body:C}});if(this.$refs.formRef){if(this.$refs.formRef.dispatchEvent(E),E.defaultPrevented)return;this.resetFormOnSubmit!==!1&&this.$refs.formRef.reset()}if(this.successUrl)if(this.$refs.formRef){const N=new CustomEvent("route",{detail:{url:this.successUrl}});this.$refs.formRef.dispatchEvent(N),N.defaultPrevented||(location.href=this.successUrl)}else location.href=this.successUrl}},f=>{const C=new CustomEvent("submit:error",{detail:{error:f}});this.$refs.formRef&&(this.$refs.formRef.dispatchEvent(C),C.defaultPrevented)||(this.responseData=f,this.formState="error")})}}}}),Ms=["validate","action","method","name"],Us={key:3,class:"builder-form-error-text pre-5vz8uirn7sc"};function Ds(e,t,n,r,o,i){var m;const l=a.resolveComponent("block"),u=a.resolveComponent("blocks");return a.openBlock(),a.createElementBlock("form",a.mergeProps({validate:e.validate,ref:"formRef",action:!e.sendWithJs&&e.action,method:e.method,name:e.name,onSubmit:t[0]||(t[0]=g=>e.onSubmit(g))},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[e.builderBlock&&e.builderBlock.children?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList((m=e.builderBlock)==null?void 0:m.children,(g,v)=>(a.openBlock(),a.createBlock(l,{key:`form-block-${e.idx}`,block:g,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128)):a.createCommentVNode("",!0),e.submissionState()==="error"?(a.openBlock(),a.createBlock(u,{key:1,path:"errorMessage",blocks:e.errorMessage,context:e.builderContext},null,8,["blocks","context"])):a.createCommentVNode("",!0),e.submissionState()==="sending"?(a.openBlock(),a.createBlock(u,{key:2,path:"sendingMessage",blocks:e.sendingMessage,context:e.builderContext},null,8,["blocks","context"])):a.createCommentVNode("",!0),e.submissionState()==="error"&&e.responseData?(a.openBlock(),a.createElementBlock("pre",Us,a.toDisplayString(JSON.stringify(e.responseData,null,2)),1)):a.createCommentVNode("",!0),e.submissionState()==="success"?(a.openBlock(),a.createBlock(u,{key:4,path:"successMessage",blocks:e.successMessage,context:e.builderContext},null,8,["blocks","context"])):a.createCommentVNode("",!0)],16,Ms)}const Ws=O(Fs,[["render",Ds],["__scopeId","data-v-83a4b1d9"]]),Ls={name:"Form:Input",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",inputs:[{name:"type",type:"text",enum:["text","number","email","url","checkbox","radio","range","date","datetime-local","search","tel","time","file","month","week","password","color","hidden"],defaultValue:"text"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it takes, e.g. "email"'},{name:"placeholder",type:"string",defaultValue:"Hello there",helperText:"Text to display when there is no value"},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",helperText:"Is this input required to be filled out to submit a form",defaultValue:!1}],noWrap:!0,static:!0,defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"}},Hs=a.defineComponent({name:"builder-form-input-component",props:["attributes","defaultValue","placeholder","type","name","value","required"],data(){return{isEditing:Y,filterAttrs:ke}}}),Ks=["placeholder","type","name","value","defaultValue","required"];function _s(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("input",a.mergeProps({key:e.isEditing()&&e.defaultValue?e.defaultValue:"default-key",placeholder:e.placeholder,type:e.type,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),null,16,Ks)}const zs=O(Hs,[["render",_s]]),qs={name:"Form:Select",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",defaultStyles:{alignSelf:"flex-start"},inputs:[{name:"options",type:"list",required:!0,subFields:[{name:"value",type:"text",required:!0},{name:"name",type:"text"}],defaultValue:[{value:"option 1"},{value:"option 2"}]},{name:"name",type:"string",required:!0,helperText:'Every select in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",defaultValue:!1}],static:!0,noWrap:!0},Gs=a.defineComponent({name:"builder-select-component",props:["attributes","value","defaultValue","name","options"],data(){return{isEditing:Y,filterAttrs:ke}}}),Js=["value","defaultValue","name"],Xs=["value"];function Ys(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("select",a.mergeProps({value:e.value,key:e.isEditing()&&e.defaultValue?e.defaultValue:"default-key",defaultValue:e.defaultValue,name:e.name},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.options,(l,u)=>(a.openBlock(),a.createElementBlock("option",{key:`${l.name}-${u}`,value:l.value},a.toDisplayString(l.name||l.value),9,Xs))),128))],16,Js)}const Zs=O(Gs,[["render",Ys]]),Qs={name:"Form:SubmitButton",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#3898EC",color:"white",borderRadius:"4px",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me"}],static:!0,noWrap:!0},ea=a.defineComponent({name:"builder-submit-button",props:["attributes","text"],data(){return{filterAttrs:ke}}});function ta(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("button",a.mergeProps({type:"submit"},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),a.toDisplayString(e.text),17)}const na=O(ea,[["render",ta]]),ra={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},oa=a.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:Y,filterAttrs:ke}}}),ia=["alt","src"];function sa(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("img",a.mergeProps({style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},key:e.isEditing()&&e.imgSrc||"default-key",alt:e.altText,src:e.imgSrc||e.image},e.filterAttrs(e.attributes,"v-on:",!1),a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),null,16,ia)}const aa=O(oa,[["render",sa]]),la={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},ca=a.defineComponent({name:"builder-video",props:["autoPlay","muted","controls","loop","playsInline","preload","attributes","fit","position","aspectRatio","video","posterImage","lazyLoad","fitContent","builderBlock"],computed:{videoProps(){return{...this.autoPlay===!0?{autoPlay:!0}:{},...this.muted===!0?{muted:!0}:{},...this.controls===!0?{controls:!0}:{},...this.loop===!0?{loop:!0}:{},...this.playsInline===!0?{playsInline:!0}:{}}},spreadProps(){return{...this.videoProps}}}}),ua={style:{position:"relative"}},pa=["preload","src","poster"],da=["src"],ma={key:1,style:{display:"flex",flexDirection:"column",alignItems:"stretch"}},ha={key:2,style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}};function fa(e,t,n,r,o,i){var l,u,m,g,v,f,C;return a.openBlock(),a.createElementBlock("div",ua,[a.createElementVNode("video",a.mergeProps({class:"builder-video",preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(l=e.attributes)==null?void 0:l.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage},e.spreadProps),[e.lazyLoad?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("source",{key:0,type:"video/mp4",src:e.video},null,8,da))],16,pa),e.aspectRatio&&!(e.fitContent&&((m=(u=e.builderBlock)==null?void 0:u.children)!=null&&m.length))?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle({width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"})},null,4)):a.createCommentVNode("",!0),(v=(g=e.builderBlock)==null?void 0:g.children)!=null&&v.length&&e.fitContent?(a.openBlock(),a.createElementBlock("div",ma,[a.renderSlot(e.$slots,"default")])):a.createCommentVNode("",!0),(C=(f=e.builderBlock)==null?void 0:f.children)!=null&&C.length&&!e.fitContent?(a.openBlock(),a.createElementBlock("div",ha,[a.renderSlot(e.$slots,"default")])):a.createCommentVNode("",!0)])}const Lr=O(ca,[["render",fa]]),ga=()=>[{component:Is,...Ss},{component:$s,...Ts},{component:Ws,...Os},{component:zs,...Ls},{component:na,...Qs},{component:Zs,...qs},{component:aa,...ra},{component:Lr,...la}],or=()=>[{component:dr,...as},{component:Pr,...ls},{component:$r,...cs},{component:Or,...us},{component:jr,...ps},{component:fs,...ds},{component:lo,...gs},{component:Wr,...ys},...ga()],Hr=e=>({type:"builder.registerComponent",data:Qt(e)}),ya=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},va=e=>typeof e=="function"?ya(e):ot(e),Qt=({inputs:e,...t})=>({...ot(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,i])=>({...r,[o]:va(i)}),{}))}),ba=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
53
53
|
function getAndSetVariantId() {
|
|
54
54
|
function setCookie(name, value, days) {
|
|
55
55
|
let expires = '';
|
|
@@ -105,7 +105,7 @@ theFunction();
|
|
|
105
105
|
}).join('');
|
|
106
106
|
styleEl.innerHTML = newStyleStr;
|
|
107
107
|
}
|
|
108
|
-
}`,
|
|
108
|
+
}`,ka=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
109
109
|
if (!navigator.cookieEnabled) {
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
@@ -139,16 +139,16 @@ theFunction();
|
|
|
139
139
|
thisScriptEl?.remove();
|
|
140
140
|
}
|
|
141
141
|
return;
|
|
142
|
-
}`,Kr="builderIoAbTest",_r="builderIoRenderContent",ft=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),
|
|
143
|
-
window.${Kr} = ${
|
|
144
|
-
window.${_r} = ${
|
|
145
|
-
`,
|
|
142
|
+
}`,Kr="builderIoAbTest",_r="builderIoRenderContent",ft=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Sa=({canTrack:e,content:t})=>!(!(ft(t).length>0)||!e),Ca=e=>e==="react"||e==="reactNative",zr=Ca(ne),wa=()=>`
|
|
143
|
+
window.${Kr} = ${ba}
|
|
144
|
+
window.${_r} = ${ka}
|
|
145
|
+
`,Ea=(e,t)=>`
|
|
146
146
|
window.${Kr}(
|
|
147
147
|
"${t}",${JSON.stringify(e)}, ${zr}
|
|
148
|
-
)`,
|
|
148
|
+
)`,Ia=({contentId:e,variationId:t})=>`window.${_r}(
|
|
149
149
|
"${t}", "${e}", ${zr}
|
|
150
|
-
)`,qr=a.defineComponent({render(){return a.h("script",{innerHTML:this.scriptStr,"data-id":this.id})},name:"inlined-script",props:["scriptStr","id"]});function
|
|
151
|
-
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Gr=Ra();function gt(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],l=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...gt(i,l,n)}:{...r,[l]:i}},{})}const Aa="v3",ar="builder.",Ba="options.",kn=e=>{if(!e)return{};const t=gr(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(ar)){const o=r.replace(ar,"").replace(Ba,"");n[o]=t[r]}}),n},Pa=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return kn(e)},lr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,Sn=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:i,enrich:l,locale:u,apiVersion:m=Aa,fields:g,omit:v,offset:f,cacheSeconds:C,staleCacheSeconds:P,sort:E,includeUnpublished:N}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(m))throw new Error(`Invalid apiVersion: expected 'v3', received '${m}'`);const Q=t!==1,V=new URL(`https://cdn.builder.io/api/${m}/content/${o}`);if(V.searchParams.set("apiKey",i),V.searchParams.set("limit",String(t)),V.searchParams.set("noTraverse",String(Q)),V.searchParams.set("includeRefs",String(!0)),u&&V.searchParams.set("locale",u),l&&V.searchParams.set("enrich",String(l)),V.searchParams.set("omit",v||"meta.componentsUsed"),g&&V.searchParams.set("fields",g),Number.isFinite(f)&&f>-1&&V.searchParams.set("offset",String(Math.floor(f))),typeof N=="boolean"&&V.searchParams.set("includeUnpublished",String(N)),C&&lr(C)&&V.searchParams.set("cacheSeconds",String(C)),P&&lr(P)&&V.searchParams.set("staleCacheSeconds",String(P)),E){const ee=gt({sort:E});for(const fe in ee)V.searchParams.set(fe,JSON.stringify(ee[fe]))}const A={...Pa(),...gr(e.options||{})},Ie=gt(A);for(const ee in Ie)V.searchParams.set(ee,String(Ie[ee]));if(n&&V.searchParams.set("userAttributes",JSON.stringify(n)),r){const ee=gt({query:r});for(const fe in ee)V.searchParams.set(fe,JSON.stringify(ee[fe]))}return V},$a=e=>"results"in e;async function wt(e){const t=await Xr({...e,limit:1});return t&&t[0]||null}const Oa=async e=>{const t=Sn(e);return await(await(e.fetch??Gr)(t.href,e.fetchOptions)).json()},Jr=async(e,t,n=Sn(e))=>{const r=tt(e.canTrack);if(n.search.includes("preview="),!r||!(K()||ne==="reactNative"))return t.results;try{const o=[];for(const i of t.results)o.push(await as({item:i,canTrack:r}));t.results=o}catch(o){z.error("Could not process A/B tests. ",o)}return t.results};async function Xr(e){try{const t=Sn(e),n=await Oa(e);return $a(n)?Jr(e,n):(z.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return z.error("Error fetching data. ",t),null}}function Yr(e){if(!K())return!1;const t=yr(e||window.location.search);return Y(t)?!1:t.indexOf("builder.preview=")!==-1}function ja(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function Zr(){return ja().replace(/-/g,"")}const Qr="builderSessionId",Na=async({canTrack:e})=>{if(!e)return;const t=await Vr({name:Qr,canTrack:e});if(he(t))return t;{const n=Va();return Fa({id:n,canTrack:e}),n}},Va=()=>Zr(),Fa=({id:e,canTrack:t})=>Fr({name:Qr,value:e,canTrack:t}),eo=()=>K()&&typeof localStorage<"u"?localStorage:void 0,Ma=({key:e,canTrack:t})=>{var n;try{return t?(n=eo())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Ua=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=eo())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},to="builderVisitorId",Da=({canTrack:e})=>{if(!e)return;const t=Ma({key:to,canTrack:e});if(he(t))return t;{const n=Wa();return La({id:n,canTrack:e}),n}},Wa=()=>Zr(),La=({id:e,canTrack:t})=>Ua({key:to,value:e,canTrack:t}),Ha=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Na({canTrack:e}),n=Da({canTrack:e});return{sessionId:t,visitorId:n}},Ka=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await Ha({canTrack:t}),userAttributes:vr(),ownerId:n}});async function en(e){if(!e.apiKey){z.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!Y()&&(K()||ne==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await Ka(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const _a=e=>en({...e,canTrack:!0});function cr(e){return Math.round(e*1e3)/1e3}const za=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},qa=e=>za(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ur=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=cr(r/n.width),l=cr(o/n.height);return{x:i,y:l}},Ga=e=>{const t=e.target,n=t&&qa(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?ur({event:e,target:t}):void 0,builderTargetOffset:n?ur({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},Ja=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function no(e,t){const n=new URL(t.origin),r=n.hostname;return(e||Ja).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}const Xa="1.0.21",pr={};function ro(e,t){let n=pr[e];if(n||(n=pr[e]=[]),n.push(t),K()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const Ya=()=>{ro("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 dr=!1;const oo=(e={})=>{var t,n;dr||(dr=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:ne,version:Xa,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var i,l;if(!no(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const u=o.data.text,m=o.data.arguments||[],g=o.data.id,v=new Function(u);let f,C=null;try{f=v.apply(null,m)}catch(P){C=P}C?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:g,error:C.message}},"*"):f&&typeof f.then=="function"?f.then(P=>{var E;(E=window.parent)==null||E.postMessage({type:"builder.evaluateResult",data:{id:g,result:P}},"*")}).catch(console.error):(l=window.parent)==null||l.postMessage({type:"builder.evaluateResult",data:{result:f,id:g}},"*");break}}})))},io=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!no(t,r))return;const{data:o}=r;if(o)switch(o.type){case"builder.configureSdk":{n.configureSdk(o.data);break}case"builder.triggerAnimation":{n.animation(o.data);break}case"builder.contentUpdate":{const i=o.data,l=i.key||i.alias||i.entry||i.modelName,u=i.data;l===e&&n.contentUpdate(u);break}}},Za=(e,t,n)=>{if(!K)return z.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};oo();const r=io({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},Qa=a.defineComponent({name:"enable-editor",props:["builderContextSignal","canTrack","apiKey","locale","enrich","trustedHosts","model","content","data","contentWrapper","context","showContent","contentWrapperProps"],data(){return{ContentWrapper:this.contentWrapper||"div",httpReqsData:{},httpReqsPending:{},clicked:!1,builderContext:yt}},provide(){const e=this;return{[yt.key]:e.builderContextSignal}},mounted(){(()=>{var n,r;if(K()){if(Y()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initeditingbldr")),this.builderContextSignal.content&&tt(this.canTrack)){const i=(n=this.builderContextSignal.content)==null?void 0:n.testVariationId,l=(r=this.builderContextSignal.content)==null?void 0:r.id,u=this.apiKey;en({type:"impression",canTrack:!0,contentId:l,apiKey:u,variationId:i!==l?i:void 0})}Yr()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initpreviewingbldr"))}})(),(()=>{this.apiKey||z.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()})()},watch:{onUpdateHook0:{handler(){this.content&&this.mergeNewContent(this.content)},immediate:!0},onUpdateHook1:{handler(){this.evaluateJsCode()},immediate:!0},onUpdateHook2:{handler(){this.runHttpRequests()},immediate:!0},onUpdateHook3:{handler(){this.emitStateUpdate()},immediate:!0},onUpdateHook4:{handler(){this.data&&this.mergeNewRootState(this.data)},immediate:!0},onUpdateHook5:{handler(){this.locale&&this.mergeNewRootState({locale:this.locale})},immediate:!0}},unmounted(){K()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{onUpdateHook0(){return{0:this.content}},onUpdateHook1(){var e,t;return{0:(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.jsCode}},onUpdateHook2(){var e,t;return{0:(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.httpRequests}},onUpdateHook3(){return{0:this.builderContextSignal.rootState}},onUpdateHook4(){return{0:this.data}},onUpdateHook5(){return{0:this.locale}}},methods:{mergeNewRootState(e){var n,r;const t={...this.builderContextSignal.rootState,...e};this.builderContextSignal.rootSetState?(r=(n=this.builderContextSignal).rootSetState)==null||r.call(n,t):this.builderContextSignal.rootState=t},mergeNewContent(e){var n,r,o,i,l;const t={...this.builderContextSignal.content,...e,data:{...(n=this.builderContextSignal.content)==null?void 0:n.data,...e==null?void 0:e.data},meta:{...(r=this.builderContextSignal.content)==null?void 0:r.meta,...e==null?void 0:e.meta,breakpoints:((o=e==null?void 0:e.meta)==null?void 0:o.breakpoints)||((l=(i=this.builderContextSignal.content)==null?void 0:i.meta)==null?void 0:l.breakpoints)}};this.builderContextSignal.content=t},processMessage(e){return io({model:this.model,trustedHosts:this.trustedHosts,callbacks:{configureSdk:t=>{var o;const{breakpoints:n,contentId:r}=t;!r||r!==((o=this.builderContextSignal.content)==null?void 0:o.id)||n&&this.mergeNewContent({meta:{breakpoints:n}})},animation:t=>{Tr(t)},contentUpdate:t=>{this.mergeNewContent(t)}}})(e)},evaluateJsCode(){var t,n;const e=(n=(t=this.builderContextSignal.content)==null?void 0:t.data)==null?void 0:n.jsCode;e&&et({code:e,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState,enableCache:!1})},onClick(e){var t,n;if(this.builderContextSignal.content){const r=(t=this.builderContextSignal.content)==null?void 0:t.testVariationId,o=(n=this.builderContextSignal.content)==null?void 0:n.id;en({type:"click",canTrack:tt(this.canTrack),contentId:o,apiKey:this.apiKey,variationId:r!==o?r:void 0,...Ga(e),unique:!this.clicked})}this.clicked||(this.clicked=!0)},runHttpRequests(){var t,n;const e=((n=(t=this.builderContextSignal.content)==null?void 0:t.data)==null?void 0:n.httpRequests)??{};Object.entries(e).forEach(([r,o])=>{if(!o||this.httpReqsPending[r]||this.httpReqsData[r]&&!Y())return;this.httpReqsPending[r]=!0;const i=o.replace(/{{([^}]+)}}/g,(l,u)=>String(et({code:u,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState,enableCache:!0})));Gr(i).then(l=>l.json()).then(l=>{this.mergeNewRootState({[r]:l}),this.httpReqsData[r]=!0}).catch(l=>{console.error("error fetching dynamic data",o,l)}).finally(()=>{this.httpReqsPending[r]=!1})})},emitStateUpdate(){Y()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:ot(this.builderContextSignal.rootState),ref:{name:this.model}}}))},elementRef_onIniteditingbldr(e){window.addEventListener("message",this.processMessage),Ya(),oo({...this.locale?{locale:this.locale}:{},...this.enrich?{enrich:this.enrich}:{},...this.trustedHosts?{trustedHosts:this.trustedHosts}:{}}),Object.values(this.builderContextSignal.componentInfos).forEach(t=>{var r;const n=Hr(t);(r=window.parent)==null||r.postMessage(n,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)},elementRef_onInitpreviewingbldr(e){const t=new URL(location.href).searchParams,n=t.get("builder.preview"),r=t.get(`builder.preview.${n}`),o=t.get("apiKey")||t.get("builder.space");n===this.model&&o===this.apiKey&&(!this.content||r===this.content.id)&&wt({model:this.model,apiKey:this.apiKey,apiVersion:this.builderContextSignal.apiVersion}).then(i=>{i&&this.mergeNewContent(i)})}}});function el(e,t,n,r,o,i){var l,u,m;return e.builderContextSignal.content?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.ContentWrapper),a.mergeProps({key:0,ref:"elementRef",onClick:g=>e.onClick(g),"builder-content-id":(l=e.builderContextSignal.content)==null?void 0:l.id,"builder-model":e.model,class:`variant-${((u=e.content)==null?void 0:u.testVariationId)||((m=e.content)==null?void 0:m.id)}`,onIniteditingbldr:g=>e.elementRef_onIniteditingbldr(g),onInitpreviewingbldr:g=>e.elementRef_onInitpreviewingbldr(g)},{...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16,["onClick","builder-content-id","builder-model","class","onIniteditingbldr","onInitpreviewingbldr"])):a.createCommentVNode("",!0)}const tl=O(Qa,[["render",el]]),nl=e=>{var i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=e.fileUrl??((i=e==null?void 0:e.files)==null?void 0:i.regular);let o="";if(r&&t&&n&&(o+=`
|
|
150
|
+
)`,qr=a.defineComponent({render(){return a.h("script",{innerHTML:this.scriptStr,"data-id":this.id})},name:"inlined-script",props:["scriptStr","id"]});function Ta(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function xa(){const e=Ta().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
151
|
+
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Gr=xa();function gt(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],l=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...gt(i,l,n)}:{...r,[l]:i}},{})}const Ra="v3",ir="builder.",Aa="options.",vn=e=>{if(!e)return{};const t=hr(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(ir)){const o=r.replace(ir,"").replace(Aa,"");n[o]=t[r]}}),n},Ba=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return vn(e)},sr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,bn=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:i,enrich:l,locale:u,apiVersion:m=Ra,fields:g,omit:v,offset:f,cacheSeconds:C,staleCacheSeconds:P,sort:E,includeUnpublished:N}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(m))throw new Error(`Invalid apiVersion: expected 'v3', received '${m}'`);const Q=t!==1,V=new URL(`https://cdn.builder.io/api/${m}/content/${o}`);if(V.searchParams.set("apiKey",i),V.searchParams.set("limit",String(t)),V.searchParams.set("noTraverse",String(Q)),V.searchParams.set("includeRefs",String(!0)),u&&V.searchParams.set("locale",u),l&&V.searchParams.set("enrich",String(l)),V.searchParams.set("omit",v||"meta.componentsUsed"),g&&V.searchParams.set("fields",g),Number.isFinite(f)&&f>-1&&V.searchParams.set("offset",String(Math.floor(f))),typeof N=="boolean"&&V.searchParams.set("includeUnpublished",String(N)),C&&sr(C)&&V.searchParams.set("cacheSeconds",String(C)),P&&sr(P)&&V.searchParams.set("staleCacheSeconds",String(P)),E){const ee=gt({sort:E});for(const fe in ee)V.searchParams.set(fe,JSON.stringify(ee[fe]))}const A={...Ba(),...hr(e.options||{})},Ee=gt(A);for(const ee in Ee)V.searchParams.set(ee,String(Ee[ee]));if(n&&V.searchParams.set("userAttributes",JSON.stringify(n)),r){const ee=gt({query:r});for(const fe in ee)V.searchParams.set(fe,JSON.stringify(ee[fe]))}return V},Pa=e=>"results"in e;async function wt(e){const t=await Xr({...e,limit:1});return t&&t[0]||null}const $a=async e=>{const t=bn(e);return await(await(e.fetch??Gr)(t.href,e.fetchOptions)).json()},Jr=async(e,t,n=bn(e))=>{const r=tt(e.canTrack);if(n.search.includes("preview="),!r||!(K()||ne==="reactNative"))return t.results;try{const o=[];for(const i of t.results)o.push(await ss({item:i,canTrack:r}));t.results=o}catch(o){z.error("Could not process A/B tests. ",o)}return t.results};async function Xr(e){try{const t=bn(e),n=await $a(e);return Pa(n)?Jr(e,n):(z.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return z.error("Error fetching data. ",t),null}}function Yr(e){const t=e||(K()?window.location.search:void 0);return t?fr(t).indexOf("builder.preview=")!==-1:!1}function Oa(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function Zr(){return Oa().replace(/-/g,"")}const Qr="builderSessionId",ja=async({canTrack:e})=>{if(!e)return;const t=await Vr({name:Qr,canTrack:e});if(he(t))return t;{const n=Na();return Va({id:n,canTrack:e}),n}},Na=()=>Zr(),Va=({id:e,canTrack:t})=>Fr({name:Qr,value:e,canTrack:t}),eo=()=>K()&&typeof localStorage<"u"?localStorage:void 0,Fa=({key:e,canTrack:t})=>{var n;try{return t?(n=eo())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Ma=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=eo())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},to="builderVisitorId",Ua=({canTrack:e})=>{if(!e)return;const t=Fa({key:to,canTrack:e});if(he(t))return t;{const n=Da();return Wa({id:n,canTrack:e}),n}},Da=()=>Zr(),Wa=({id:e,canTrack:t})=>Ma({key:to,value:e,canTrack:t}),La=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await ja({canTrack:e}),n=Ua({canTrack:e});return{sessionId:t,visitorId:n}},Ha=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await La({canTrack:t}),userAttributes:gr(),ownerId:n}});async function en(e){if(!e.apiKey){z.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!Y()&&(K()||ne==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await Ha(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Ka=e=>en({...e,canTrack:!0});function ar(e){return Math.round(e*1e3)/1e3}const _a=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},za=e=>_a(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),lr=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=ar(r/n.width),l=ar(o/n.height);return{x:i,y:l}},qa=e=>{const t=e.target,n=t&&za(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?lr({event:e,target:t}):void 0,builderTargetOffset:n?lr({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},Ga=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function no(e,t){const n=new URL(t.origin),r=n.hostname;return(e||Ga).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}const Ja="1.0.22",cr={};function ro(e,t){let n=cr[e];if(n||(n=cr[e]=[]),n.push(t),K()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const Xa=()=>{ro("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 ur=!1;const oo=(e={})=>{var t,n;ur||(ur=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:ne,version:Ja,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var i,l;if(!no(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const u=o.data.text,m=o.data.arguments||[],g=o.data.id,v=new Function(u);let f,C=null;try{f=v.apply(null,m)}catch(P){C=P}C?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:g,error:C.message}},"*"):f&&typeof f.then=="function"?f.then(P=>{var E;(E=window.parent)==null||E.postMessage({type:"builder.evaluateResult",data:{id:g,result:P}},"*")}).catch(console.error):(l=window.parent)==null||l.postMessage({type:"builder.evaluateResult",data:{result:f,id:g}},"*");break}}})))},io=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!no(t,r))return;const{data:o}=r;if(o)switch(o.type){case"builder.configureSdk":{n.configureSdk(o.data);break}case"builder.triggerAnimation":{n.animation(o.data);break}case"builder.contentUpdate":{const i=o.data,l=i.key||i.alias||i.entry||i.modelName,u=i.data;l===e&&n.contentUpdate(u);break}}},Ya=(e,t,n)=>{if(!K)return z.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};oo();const r=io({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},Za=a.defineComponent({name:"enable-editor",props:["builderContextSignal","canTrack","apiKey","locale","enrich","trustedHosts","model","content","data","contentWrapper","context","showContent","contentWrapperProps"],data(){return{ContentWrapper:this.contentWrapper||"div",httpReqsData:{},httpReqsPending:{},clicked:!1,builderContext:yt}},provide(){const e=this;return{[yt.key]:e.builderContextSignal}},mounted(){(()=>{var n,r;if(K()){if(Y()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initeditingbldr")),this.builderContextSignal.content&&tt(this.canTrack)){const i=(n=this.builderContextSignal.content)==null?void 0:n.testVariationId,l=(r=this.builderContextSignal.content)==null?void 0:r.id,u=this.apiKey;en({type:"impression",canTrack:!0,contentId:l,apiKey:u,variationId:i!==l?i:void 0})}Yr()&&!Y()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initpreviewingbldr"))}})(),(()=>{this.apiKey||z.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()})()},watch:{onUpdateHook0:{handler(){this.content&&this.mergeNewContent(this.content)},immediate:!0},onUpdateHook1:{handler(){this.evaluateJsCode()},immediate:!0},onUpdateHook2:{handler(){this.runHttpRequests()},immediate:!0},onUpdateHook3:{handler(){this.emitStateUpdate()},immediate:!0},onUpdateHook4:{handler(){this.data&&this.mergeNewRootState(this.data)},immediate:!0},onUpdateHook5:{handler(){this.locale&&this.mergeNewRootState({locale:this.locale})},immediate:!0}},unmounted(){K()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{onUpdateHook0(){return{0:this.content}},onUpdateHook1(){var e,t;return{0:(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.jsCode}},onUpdateHook2(){var e,t;return{0:(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.httpRequests}},onUpdateHook3(){return{0:this.builderContextSignal.rootState}},onUpdateHook4(){return{0:this.data}},onUpdateHook5(){return{0:this.locale}}},methods:{mergeNewRootState(e){var n,r;const t={...this.builderContextSignal.rootState,...e};this.builderContextSignal.rootSetState?(r=(n=this.builderContextSignal).rootSetState)==null||r.call(n,t):this.builderContextSignal.rootState=t},mergeNewContent(e){var n,r,o,i,l;const t={...this.builderContextSignal.content,...e,data:{...(n=this.builderContextSignal.content)==null?void 0:n.data,...e==null?void 0:e.data},meta:{...(r=this.builderContextSignal.content)==null?void 0:r.meta,...e==null?void 0:e.meta,breakpoints:((o=e==null?void 0:e.meta)==null?void 0:o.breakpoints)||((l=(i=this.builderContextSignal.content)==null?void 0:i.meta)==null?void 0:l.breakpoints)}};this.builderContextSignal.content=t},processMessage(e){return io({model:this.model,trustedHosts:this.trustedHosts,callbacks:{configureSdk:t=>{var o;const{breakpoints:n,contentId:r}=t;!r||r!==((o=this.builderContextSignal.content)==null?void 0:o.id)||n&&this.mergeNewContent({meta:{breakpoints:n}})},animation:t=>{Tr(t)},contentUpdate:t=>{this.mergeNewContent(t)}}})(e)},evaluateJsCode(){var t,n;const e=(n=(t=this.builderContextSignal.content)==null?void 0:t.data)==null?void 0:n.jsCode;e&&et({code:e,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState,enableCache:!1})},onClick(e){var t,n;if(this.builderContextSignal.content){const r=(t=this.builderContextSignal.content)==null?void 0:t.testVariationId,o=(n=this.builderContextSignal.content)==null?void 0:n.id;en({type:"click",canTrack:tt(this.canTrack),contentId:o,apiKey:this.apiKey,variationId:r!==o?r:void 0,...qa(e),unique:!this.clicked})}this.clicked||(this.clicked=!0)},runHttpRequests(){var t,n;const e=((n=(t=this.builderContextSignal.content)==null?void 0:t.data)==null?void 0:n.httpRequests)??{};Object.entries(e).forEach(([r,o])=>{if(!o||this.httpReqsPending[r]||this.httpReqsData[r]&&!Y())return;this.httpReqsPending[r]=!0;const i=o.replace(/{{([^}]+)}}/g,(l,u)=>String(et({code:u,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState,enableCache:!0})));Gr(i).then(l=>l.json()).then(l=>{this.mergeNewRootState({[r]:l}),this.httpReqsData[r]=!0}).catch(l=>{console.error("error fetching dynamic data",o,l)}).finally(()=>{this.httpReqsPending[r]=!1})})},emitStateUpdate(){Y()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:ot(this.builderContextSignal.rootState),ref:{name:this.model}}}))},elementRef_onIniteditingbldr(e){window.addEventListener("message",this.processMessage),Xa(),oo({...this.locale?{locale:this.locale}:{},...this.enrich?{enrich:this.enrich}:{},...this.trustedHosts?{trustedHosts:this.trustedHosts}:{}}),Object.values(this.builderContextSignal.componentInfos).forEach(t=>{var r;const n=Hr(t);(r=window.parent)==null||r.postMessage(n,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)},elementRef_onInitpreviewingbldr(e){const t=new URL(location.href).searchParams,n=t.get("builder.preview"),r=t.get(`builder.preview.${n}`),o=t.get("apiKey")||t.get("builder.space");n===this.model&&o===this.apiKey&&(!this.content||r===this.content.id)&&wt({model:this.model,apiKey:this.apiKey,apiVersion:this.builderContextSignal.apiVersion}).then(i=>{i&&this.mergeNewContent(i)})}}});function Qa(e,t,n,r,o,i){var l,u,m;return e.builderContextSignal.content?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.ContentWrapper),a.mergeProps({key:0,ref:"elementRef",onClick:g=>e.onClick(g),"builder-content-id":(l=e.builderContextSignal.content)==null?void 0:l.id,"builder-model":e.model,class:`variant-${((u=e.content)==null?void 0:u.testVariationId)||((m=e.content)==null?void 0:m.id)}`,onIniteditingbldr:g=>e.elementRef_onIniteditingbldr(g),onInitpreviewingbldr:g=>e.elementRef_onInitpreviewingbldr(g)},{...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16,["onClick","builder-content-id","builder-model","class","onIniteditingbldr","onInitpreviewingbldr"])):a.createCommentVNode("",!0)}const el=O(Za,[["render",Qa]]),tl=e=>{var i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=e.fileUrl??((i=e==null?void 0:e.files)==null?void 0:i.regular);let o="";if(r&&t&&n&&(o+=`
|
|
152
152
|
@font-face {
|
|
153
153
|
font-family: "${t}";
|
|
154
154
|
src: local("${n}"), url('${r}') format('woff2');
|
|
@@ -162,7 +162,7 @@ src: url('${m}') format('woff2');
|
|
|
162
162
|
font-display: fallback;
|
|
163
163
|
font-weight: ${l};
|
|
164
164
|
}
|
|
165
|
-
`.trim())}return o},
|
|
165
|
+
`.trim())}return o},nl=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>tl(n)))==null?void 0:t.join(" "))||""},rl=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",ol=`
|
|
166
166
|
.builder-button {
|
|
167
167
|
all: unset;
|
|
168
168
|
}
|
|
@@ -179,8 +179,8 @@ font-weight: ${l};
|
|
|
179
179
|
text-align: inherit;
|
|
180
180
|
font-family: inherit;
|
|
181
181
|
}
|
|
182
|
-
`,
|
|
183
|
-
${
|
|
184
|
-
${
|
|
185
|
-
${
|
|
186
|
-
`.trim()}}});function ll(e,t,n,r,o,i){const l=a.resolveComponent("inlined-styles");return a.openBlock(),a.createBlock(l,{id:"builderio-content",styles:e.injectedStyles},null,8,["styles"])}const cl=O(al,[["render",ll]]),ul=({content:e,data:t,locale:n})=>{var i,l,u;const r={},o=((i=e==null?void 0:e.data)==null?void 0:i.state)||{};return(u=(l=e==null?void 0:e.data)==null?void 0:l.inputs)==null||u.forEach(m=>{m.name&&m.defaultValue!==void 0&&(r[m.name]=m.defaultValue)}),{...r,...o,...t,...n?{locale:n}:{}}},pl=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,so=a.markRaw,dl=a.defineComponent({name:"content-component",components:{EnableEditor:tl,InlinedScript:qr,ContentStyles:cl,Blocks:it},props:["content","customComponents","data","locale","context","apiKey","apiVersion","blocksWrapper","blocksWrapperProps","model","canTrack","enrich","showContent","contentWrapper","contentWrapperProps","linkComponent","trustedHosts","isSsrAbTest","isNestedRender"],data(){var e,t;return{scriptStr:Ta({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...sr(),...this.customComponents||[]].reduce((n,{component:r,...o})=>({...n,[o.name]:{component:so(r),...Qt(o)}}),{}),builderContextSignal:{content:pl({content:this.content,data:this.data}),localState:void 0,rootState:ul({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...sr(),...this.customComponents||[]].reduce((n,{component:r,...o})=>({...n,[o.name]:Qt(o)}),{}),inheritedStyles:{},BlocksWrapper:this.blocksWrapper||"div",BlocksWrapperProps:this.blocksWrapperProps||{}},TARGET:ne}},provide(){const e=this;return{[fr.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});function ml(e,t,n,r,o,i){const l=a.resolveComponent("inlined-script"),u=a.resolveComponent("content-styles"),m=a.resolveComponent("blocks"),g=a.resolveComponent("enable-editor");return a.openBlock(),a.createBlock(g,a.mergeProps({content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,showContent:e.showContent,builderContextSignal:e.builderContextSignal,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,linkComponent:e.linkComponent,trustedHosts:e.trustedHosts},{}),{default:a.withCtx(()=>{var v,f,C,P,E,N,Q;return[e.isSsrAbTest?(a.openBlock(),a.createBlock(l,{key:0,id:"builderio-variant-visibility",scriptStr:e.scriptStr},null,8,["scriptStr"])):a.createCommentVNode("",!0),e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(u,{key:1,isNestedRender:e.isNestedRender,contentId:(v=e.builderContextSignal.content)==null?void 0:v.id,cssCode:(C=(f=e.builderContextSignal.content)==null?void 0:f.data)==null?void 0:C.cssCode,customFonts:(E=(P=e.builderContextSignal.content)==null?void 0:P.data)==null?void 0:E.customFonts},null,8,["isNestedRender","contentId","cssCode","customFonts"])):a.createCommentVNode("",!0),a.createVNode(m,{blocks:(Q=(N=e.builderContextSignal.content)==null?void 0:N.data)==null?void 0:Q.blocks,context:e.builderContextSignal,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["blocks","context","registeredComponents","linkComponent"])]}),_:1},16,["content","data","model","context","apiKey","canTrack","locale","enrich","showContent","builderContextSignal","contentWrapper","contentWrapperProps","linkComponent","trustedHosts"])}const hl=O(dl,[["render",ml]]),fl=a.defineComponent({name:"content-variants",components:{InlinedScript:qr,InlinedStyles:Ct,ContentComponent:hl},props:["canTrack","content","isNestedRender","model","data","context","apiKey","apiVersion","customComponents","linkComponent","locale","enrich","blocksWrapper","blocksWrapperProps","contentWrapper","contentWrapperProps","trustedHosts"],data(){return{shouldRenderVariants:Ca({canTrack:tt(this.canTrack),content:this.content}),TARGET:ne,getInitVariantsFnsScriptString:Ea,getVariants:ft}},mounted(){},computed:{updateCookieAndStylesScriptStr(){var e;return Ia(ft(this.content).map(t=>({id:t.testVariationId,testRatio:t.testRatio})),((e=this.content)==null?void 0:e.id)||"")},hideVariantsStyleString(){return ft(this.content).map(e=>`.variant-${e.testVariationId} { display: none; } `).join("")},defaultContent(){var e;return this.shouldRenderVariants?{...this.content,testVariationId:(e=this.content)==null?void 0:e.id}:ss({item:this.content,canTrack:tt(this.canTrack)})}}});function gl(e,t,n,r,o,i){const l=a.resolveComponent("inlined-script"),u=a.resolveComponent("inlined-styles"),m=a.resolveComponent("content-component");return a.openBlock(),a.createElementBlock(a.Fragment,null,[!e.isNestedRender&&e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(l,{key:0,id:"builderio-init-variants-fns",scriptStr:e.getInitVariantsFnsScriptString()},null,8,["scriptStr"])):a.createCommentVNode("",!0),e.shouldRenderVariants?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(u,{id:"builderio-variants",styles:e.hideVariantsStyleString},null,8,["styles"]),a.createVNode(l,{id:"builderio-variants-visibility",scriptStr:e.updateCookieAndStylesScriptStr},null,8,["scriptStr"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.getVariants(e.content),(g,v)=>(a.openBlock(),a.createBlock(m,{key:g.testVariationId,isNestedRender:e.isNestedRender,content:g,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:e.shouldRenderVariants,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},null,8,["isNestedRender","content","model","data","context","apiKey","apiVersion","customComponents","linkComponent","canTrack","locale","enrich","isSsrAbTest","blocksWrapper","blocksWrapperProps","contentWrapper","contentWrapperProps","trustedHosts"]))),128))],64)):a.createCommentVNode("",!0),a.createVNode(m,a.mergeProps({isNestedRender:e.isNestedRender,content:e.defaultContent,showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:e.shouldRenderVariants,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},{key:e.shouldRenderVariants.toString()}),null,16,["isNestedRender","content","model","data","context","apiKey","apiVersion","customComponents","linkComponent","canTrack","locale","enrich","isSsrAbTest","blocksWrapper","blocksWrapperProps","contentWrapper","contentWrapperProps","trustedHosts"])],64)}const ao=O(fl,[["render",gl]]),yl=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return wt({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{z.error("Could not fetch symbol content: ",n)})},vl=a.defineComponent({name:"builder-symbol",components:{ContentVariants:ao},props:["symbol","attributes","dynamic","builderContext","builderBlock","builderComponents","builderLinkComponent"],data(){var e;return{contentToUse:(e=this.symbol)==null?void 0:e.content,filterAttrs:ke}},mounted(){this.setContent()},watch:{onUpdateHook0:{handler(){this.setContent()},immediate:!0}},computed:{className(){var e,t;return[this.attributes[vt()],"builder-symbol",(e=this.symbol)!=null&&e.inline?"builder-inline-symbol":void 0,(t=this.symbol)!=null&&t.dynamic||this.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},onUpdateHook0(){return{0:this.symbol}}},methods:{setContent(){this.contentToUse||yl({symbol:this.symbol,builderContextValue:this.builderContext}).then(e=>{e&&(this.contentToUse=e)})}}});function bl(e,t,n,r,o,i){var u,m,g,v,f;const l=a.resolveComponent("content-variants");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.className},{...e.filterAttrs(e.attributes,"v-on:",!1)},a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[a.createVNode(l,{isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(u=e.builderBlock)==null?void 0:u.id},customComponents:Object.values(e.builderComponents),data:{...(m=e.symbol)==null?void 0:m.data,...e.builderContext.localState,...(v=(g=e.contentToUse)==null?void 0:g.data)==null?void 0:v.state},model:(f=e.symbol)==null?void 0:f.model,content:e.contentToUse,linkComponent:e.builderLinkComponent,blocksWrapper:"div",contentWrapper:"div"},null,8,["apiVersion","apiKey","context","customComponents","data","model","content","linkComponent"])],16)}const lo=O(vl,[["render",bl]]),mr={};function kl(e){if(K()){Object.assign(mr,e);const t={type:"builder.settingsChange",data:mr};parent.postMessage(t,"*")}}const Sl=async e=>{var r,o,i;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((o=e.userAttributes)==null?void 0:o.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:kn(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await wt(n)}};exports.Block=St;exports.Blocks=it;exports.BuilderContext=yt;exports.Button=hr;exports.Columns=Pr;exports.ContentVariants=ao;exports.Fragment=$r;exports.Image=Or;exports.Section=jr;exports.Symbol=lo;exports.TARGET=ne;exports.Text=Wr;exports.Video=Lr;exports._export_sfc=O;exports._processContentResult=Jr;exports._sfc_main=Ct;exports.block=Pi;exports.checkIsDefined=he;exports.createCssClass=ki;exports.createRegisterComponentMessage=Hr;exports.dynamicRenderer=$o;exports.evaluate=et;exports.fetchBuilderProps=Sl;exports.fetchEntries=Xr;exports.fetchOneEntry=wt;exports.getBuilderSearchParams=kn;exports.getClassPropName=vt;exports.getMaxWidthQueryForSize=Fi;exports.getProcessedBlock=fn;exports.getSizesForBreakpoints=Br;exports.getStyle=Ci;exports.isEditing=Y;exports.isPreviewing=Yr;exports.register=ro;exports.setEditorSettings=kl;exports.subscribeToEditor=Za;exports.track=_a;exports.wrapComponentRef=so;
|
|
182
|
+
`,il=e=>e?"":ol,sl=a.defineComponent({name:"content-styles",components:{InlinedStyles:Ct},props:["cssCode","contentId","customFonts","isNestedRender"],data(){return{injectedStyles:`
|
|
183
|
+
${rl({cssCode:this.cssCode,contentId:this.contentId})}
|
|
184
|
+
${nl({customFonts:this.customFonts})}
|
|
185
|
+
${il(this.isNestedRender)}
|
|
186
|
+
`.trim()}}});function al(e,t,n,r,o,i){const l=a.resolveComponent("inlined-styles");return a.openBlock(),a.createBlock(l,{id:"builderio-content",styles:e.injectedStyles},null,8,["styles"])}const ll=O(sl,[["render",al]]),cl=({content:e,data:t,locale:n})=>{var i,l,u;const r={},o=((i=e==null?void 0:e.data)==null?void 0:i.state)||{};return(u=(l=e==null?void 0:e.data)==null?void 0:l.inputs)==null||u.forEach(m=>{m.name&&m.defaultValue!==void 0&&(r[m.name]=m.defaultValue)}),{...r,...o,...t,...n?{locale:n}:{}}},ul=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,so=a.markRaw,pl=a.defineComponent({name:"content-component",components:{EnableEditor:el,InlinedScript:qr,ContentStyles:ll,Blocks:it},props:["content","customComponents","data","locale","context","apiKey","apiVersion","blocksWrapper","blocksWrapperProps","model","canTrack","enrich","showContent","contentWrapper","contentWrapperProps","linkComponent","trustedHosts","isSsrAbTest","isNestedRender"],data(){var e,t;return{scriptStr:Ia({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...or(),...this.customComponents||[]].reduce((n,{component:r,...o})=>({...n,[o.name]:{component:so(r),...Qt(o)}}),{}),builderContextSignal:{content:ul({content:this.content,data:this.data}),localState:void 0,rootState:cl({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...or(),...this.customComponents||[]].reduce((n,{component:r,...o})=>({...n,[o.name]:Qt(o)}),{}),inheritedStyles:{},BlocksWrapper:this.blocksWrapper||"div",BlocksWrapperProps:this.blocksWrapperProps||{}},TARGET:ne}},provide(){const e=this;return{[mr.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});function dl(e,t,n,r,o,i){const l=a.resolveComponent("inlined-script"),u=a.resolveComponent("content-styles"),m=a.resolveComponent("blocks"),g=a.resolveComponent("enable-editor");return a.openBlock(),a.createBlock(g,a.mergeProps({content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,showContent:e.showContent,builderContextSignal:e.builderContextSignal,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,linkComponent:e.linkComponent,trustedHosts:e.trustedHosts},{}),{default:a.withCtx(()=>{var v,f,C,P,E,N,Q;return[e.isSsrAbTest?(a.openBlock(),a.createBlock(l,{key:0,id:"builderio-variant-visibility",scriptStr:e.scriptStr},null,8,["scriptStr"])):a.createCommentVNode("",!0),e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(u,{key:1,isNestedRender:e.isNestedRender,contentId:(v=e.builderContextSignal.content)==null?void 0:v.id,cssCode:(C=(f=e.builderContextSignal.content)==null?void 0:f.data)==null?void 0:C.cssCode,customFonts:(E=(P=e.builderContextSignal.content)==null?void 0:P.data)==null?void 0:E.customFonts},null,8,["isNestedRender","contentId","cssCode","customFonts"])):a.createCommentVNode("",!0),a.createVNode(m,{blocks:(Q=(N=e.builderContextSignal.content)==null?void 0:N.data)==null?void 0:Q.blocks,context:e.builderContextSignal,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["blocks","context","registeredComponents","linkComponent"])]}),_:1},16,["content","data","model","context","apiKey","canTrack","locale","enrich","showContent","builderContextSignal","contentWrapper","contentWrapperProps","linkComponent","trustedHosts"])}const ml=O(pl,[["render",dl]]),hl=a.defineComponent({name:"content-variants",components:{InlinedScript:qr,InlinedStyles:Ct,ContentComponent:ml},props:["canTrack","content","isNestedRender","model","data","context","apiKey","apiVersion","customComponents","linkComponent","locale","enrich","blocksWrapper","blocksWrapperProps","contentWrapper","contentWrapperProps","trustedHosts"],data(){return{shouldRenderVariants:Sa({canTrack:tt(this.canTrack),content:this.content}),TARGET:ne,getInitVariantsFnsScriptString:wa,getVariants:ft}},mounted(){},computed:{updateCookieAndStylesScriptStr(){var e;return Ea(ft(this.content).map(t=>({id:t.testVariationId,testRatio:t.testRatio})),((e=this.content)==null?void 0:e.id)||"")},hideVariantsStyleString(){return ft(this.content).map(e=>`.variant-${e.testVariationId} { display: none; } `).join("")},defaultContent(){var e;return this.shouldRenderVariants?{...this.content,testVariationId:(e=this.content)==null?void 0:e.id}:is({item:this.content,canTrack:tt(this.canTrack)})}}});function fl(e,t,n,r,o,i){const l=a.resolveComponent("inlined-script"),u=a.resolveComponent("inlined-styles"),m=a.resolveComponent("content-component");return a.openBlock(),a.createElementBlock(a.Fragment,null,[!e.isNestedRender&&e.TARGET!=="reactNative"?(a.openBlock(),a.createBlock(l,{key:0,id:"builderio-init-variants-fns",scriptStr:e.getInitVariantsFnsScriptString()},null,8,["scriptStr"])):a.createCommentVNode("",!0),e.shouldRenderVariants?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(u,{id:"builderio-variants",styles:e.hideVariantsStyleString},null,8,["styles"]),a.createVNode(l,{id:"builderio-variants-visibility",scriptStr:e.updateCookieAndStylesScriptStr},null,8,["scriptStr"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.getVariants(e.content),(g,v)=>(a.openBlock(),a.createBlock(m,{key:g.testVariationId,isNestedRender:e.isNestedRender,content:g,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:e.shouldRenderVariants,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},null,8,["isNestedRender","content","model","data","context","apiKey","apiVersion","customComponents","linkComponent","canTrack","locale","enrich","isSsrAbTest","blocksWrapper","blocksWrapperProps","contentWrapper","contentWrapperProps","trustedHosts"]))),128))],64)):a.createCommentVNode("",!0),a.createVNode(m,a.mergeProps({isNestedRender:e.isNestedRender,content:e.defaultContent,showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:e.shouldRenderVariants,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},{key:e.shouldRenderVariants.toString()}),null,16,["isNestedRender","content","model","data","context","apiKey","apiVersion","customComponents","linkComponent","canTrack","locale","enrich","isSsrAbTest","blocksWrapper","blocksWrapperProps","contentWrapper","contentWrapperProps","trustedHosts"])],64)}const ao=O(hl,[["render",fl]]),gl=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return wt({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{z.error("Could not fetch symbol content: ",n)})},yl=a.defineComponent({name:"builder-symbol",components:{ContentVariants:ao},props:["symbol","attributes","dynamic","builderContext","builderBlock","builderComponents","builderLinkComponent"],data(){var e;return{contentToUse:(e=this.symbol)==null?void 0:e.content,filterAttrs:ke}},mounted(){this.setContent()},watch:{onUpdateHook0:{handler(){this.setContent()},immediate:!0}},computed:{className(){var e,t;return[this.attributes[vt()],"builder-symbol",(e=this.symbol)!=null&&e.inline?"builder-inline-symbol":void 0,(t=this.symbol)!=null&&t.dynamic||this.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},onUpdateHook0(){return{0:this.symbol}}},methods:{setContent(){this.contentToUse||gl({symbol:this.symbol,builderContextValue:this.builderContext}).then(e=>{e&&(this.contentToUse=e)})}}});function vl(e,t,n,r,o,i){var u,m,g,v,f;const l=a.resolveComponent("content-variants");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.className},{...e.filterAttrs(e.attributes,"v-on:",!1)},a.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[a.createVNode(l,{isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(u=e.builderBlock)==null?void 0:u.id},customComponents:Object.values(e.builderComponents),data:{...(m=e.symbol)==null?void 0:m.data,...e.builderContext.localState,...(v=(g=e.contentToUse)==null?void 0:g.data)==null?void 0:v.state},model:(f=e.symbol)==null?void 0:f.model,content:e.contentToUse,linkComponent:e.builderLinkComponent,blocksWrapper:"div",contentWrapper:"div"},null,8,["apiVersion","apiKey","context","customComponents","data","model","content","linkComponent"])],16)}const lo=O(yl,[["render",vl]]),pr={};function bl(e){if(K()){Object.assign(pr,e);const t={type:"builder.settingsChange",data:pr};parent.postMessage(t,"*")}}const kl=async e=>{var r,o,i;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((o=e.userAttributes)==null?void 0:o.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:vn(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await wt(n)}};exports.Block=St;exports.Blocks=it;exports.BuilderContext=yt;exports.Button=dr;exports.Columns=Pr;exports.ContentVariants=ao;exports.Fragment=$r;exports.Image=Or;exports.Section=jr;exports.Symbol=lo;exports.TARGET=ne;exports.Text=Wr;exports.Video=Lr;exports._export_sfc=O;exports._processContentResult=Jr;exports._sfc_main=Ct;exports.block=Bi;exports.camelCaseToKebabCase=gn;exports.checkIsDefined=he;exports.createCssClass=bi;exports.createRegisterComponentMessage=Hr;exports.dynamicRenderer=$o;exports.evaluate=et;exports.fetchBuilderProps=kl;exports.fetchEntries=Xr;exports.fetchOneEntry=wt;exports.getBuilderSearchParams=vn;exports.getClassPropName=vt;exports.getMaxWidthQueryForSize=Vi;exports.getProcessedBlock=fn;exports.getSizesForBreakpoints=Br;exports.getStyle=Si;exports.isEditing=Y;exports.isPreviewing=Yr;exports.register=ro;exports.setEditorSettings=bl;exports.subscribeToEditor=Ya;exports.track=Ka;exports.wrapComponentRef=so;
|