@builder.io/sdk-react 0.12.2 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/index.cjs +31 -33
- package/lib/browser/index.mjs +707 -650
- package/lib/browser/{server-entry-f978b3a5.js → server-entry-0e4f0637.js} +1 -2
- package/lib/browser/{server-entry-df9eba5d.cjs → server-entry-bcb725be.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/index.cjs +41 -43
- package/lib/edge/index.mjs +1293 -1236
- package/lib/edge/{server-entry-f978b3a5.js → server-entry-0e4f0637.js} +1 -2
- package/lib/{node/server-entry-df9eba5d.cjs → edge/server-entry-bcb725be.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/index.cjs +10 -12
- package/lib/node/index.mjs +369 -312
- package/lib/node/{server-entry-46908b1b.js → server-entry-9aa733e8.js} +1 -2
- package/lib/{edge/server-entry-df9eba5d.cjs → node/server-entry-bcb725be.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/blocks/button/button.types.d.ts +2 -1
- package/types/blocks/columns/columns.types.d.ts +3 -3
- package/types/blocks/symbol/symbol.types.d.ts +2 -2
- package/types/components/block/block.d.ts +1 -0
- package/types/components/block/components/block-wrapper.d.ts +1 -0
- package/types/components/block/components/component-ref/component-ref.helpers.d.ts +4 -1
- package/types/components/block/components/repeated-block.d.ts +3 -5
- package/types/components/blocks/blocks.types.d.ts +1 -0
- package/types/components/content-variants/content-variants.types.d.ts +6 -2
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/get-block-properties.d.ts +5 -1
- package/types/functions/get-class-prop-name.d.ts +1 -0
- package/types/functions/get-style.d.ts +12 -0
- package/types/functions/transform-block-properties.d.ts +7 -5
- package/types/functions/transform-style-property.d.ts +7 -0
- package/types/helpers/omit.d.ts +1 -0
- package/types/types/builder-block.d.ts +1 -0
- package/types/types/builder-props.d.ts +3 -0
package/lib/edge/index.cjs
CHANGED
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
|
|
3
|
-
}`})]})}const Lt=k.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}}),zn=k.createContext({registeredComponents:{}});function Pr(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const Xn=({builder:e,context:t,event:r,state:n})=>Object.entries({state:n,Builder:e,builder:e,context:t,event:r}),Nr=()=>({isEditing:y.isEditing(),isBrowser:y.isBrowser(),isServer:!y.isBrowser(),getUserAttributes:()=>y.getUserAttributes()}),Fr=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Br=({code:e,builder:t,context:r,event:n,localState:i,rootSetState:a,rootState:s})=>{const d=Xn({builder:t,context:r,event:n,state:Mr(s,i,a)});return new Function(...d.map(([h])=>h),e)(...d.map(([,h])=>h))};function Mr(e,t,r){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(n,i)=>t&&i in t?t[i]:e[i],set:(n,i,a)=>{if(t&&i in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[i]=a,r==null||r(e),!0}})}const Yn=(e,t,r)=>{if(Object(e)!==e)return e;const n=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((i,a,s)=>Object(i[a])===i[a]?i[a]:i[a]=Math.abs(Number(n[s+1]))>>0===+n[s+1]?[]:{},e)[n[n.length-1]]=r,e};var W,Ur=function(e){function t(o){return 48>o?o===36:58>o?!0:65>o?!1:91>o?!0:97>o?o===95:123>o?!0:170<=o&&Rr.test(String.fromCharCode(o))}function r(o){return 65>o?o===36:91>o?!0:97>o?o===95:123>o?!0:170<=o&&On.test(String.fromCharCode(o))}function n(o,l){for(var c=S,p=1,O=0;;){st.lastIndex=O;var J=st.exec(c);if(J&&J.index<o)++p,O=J.index+J[0].length;else break}throw c={line:p,ab:o-O},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=o,l.X=c,l.o=f,l}function i(o){o=o.split(" ");for(var l=Object.create(null),c=0;c<o.length;c++)l[o[c]]=!0;return function(p){return l[p]||!1}}function a(){this.line=ke,this.ab=f-de}function s(o,l){Ie=f,N.C&&(St=new a),R=o,h(),se=l,Ue=o.m}function d(){for(var o=f,l=N.va&&N.C&&new a,c=S.charCodeAt(f+=2);f<je&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=S.charCodeAt(f);N.va&&N.va(!1,S.slice(o+2,f),o,f,l,N.C&&new a)}function h(){for(;f<je;){var o=S.charCodeAt(f);if(o===32)++f;else if(o===13)++f,o=S.charCodeAt(f),o===10&&++f,N.C&&(++ke,de=f);else if(o===10||o===8232||o===8233)++f,N.C&&(++ke,de=f);else if(8<o&&14>o)++f;else if(o===47)if(o=S.charCodeAt(f+1),o===42){o=void 0;var l=N.va&&N.C&&new a,c=f,p=S.indexOf("*/",f+=2);if(p===-1&&n(f-2,"Unterminated comment"),f=p+2,N.C)for(st.lastIndex=c;(o=st.exec(S))&&o.index<f;)++ke,de=o.index+o[0].length;N.va&&N.va(!0,S.slice(c+2,p),c,f,l,N.C&&new a)}else if(o===47)d();else break;else if(o===160)++f;else if(5760<=o&&Ar.test(String.fromCharCode(o)))++f;else break}}function m(o){switch(o){case 46:o=S.charCodeAt(f+1),48<=o&&57>=o?P(!0):(++f,s(kn));return;case 40:return++f,s(fe);case 41:return++f,s(ce);case 59:return++f,s(he);case 44:return++f,s(xe);case 91:return++f,s(Ot);case 93:return++f,s(Pt);case 123:return++f,s(We);case 125:return++f,s(Ae);case 58:return++f,s(Ve);case 63:return++f,s(Cn);case 48:if(o=S.charCodeAt(f+1),o===120||o===88){f+=2,o=M(16),o===null&&n(X+2,"Expected hexadecimal number"),r(S.charCodeAt(f))&&n(f,"Identifier directly after number"),s(_e,o);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return P(!1);case 34:case 39:f++;for(var l="";;){f>=je&&n(X,"Unterminated string constant");var c=S.charCodeAt(f);if(c===o){++f,s(rt,l);break}if(c===92){c=S.charCodeAt(++f);var p=/^[0-7]+/.exec(S.slice(f,f+3));for(p&&(p=p[0]);p&&255<parseInt(p,8);)p=p.slice(0,-1);if(p==="0"&&(p=null),++f,p)oe&&n(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),f+=p.length-1;else switch(c){case 110:l+=`
|
|
4
|
-
`;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(F(2));break;case 117:l+=String.fromCharCode(F(4));break;case 85:l+=String.fromCharCode(F(8));break;case 116:l+=" ";break;case 98:l+="\b";break;case 118:l+="\v";break;case 102:l+="\f";break;case 48:l+="\0";break;case 13:S.charCodeAt(f)===10&&++f;case 10:N.C&&(de=f,++ke);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||n(X,"Unterminated string constant"),l+=String.fromCharCode(c),++f}return;case 47:o=S.charCodeAt(f+1),Ue?(++f,D()):o===61?x(Ce,2):x(En,1);return;case 37:case 42:S.charCodeAt(f+1)===61?x(Ce,2):x(jr,1);return;case 124:case 38:l=S.charCodeAt(f+1),l===o?x(o===124?Tn:An,2):l===61?x(Ce,2):x(o===124?xr:Sr,1);return;case 94:S.charCodeAt(f+1)===61?x(Ce,2):x(br,1);return;case 43:case 45:l=S.charCodeAt(f+1),l===o?l===45&&S.charCodeAt(f+2)===62&&at.test(S.slice(ve,f))?(f+=3,d(),h(),v()):x(vr,2):l===61?x(Ce,2):x(Er,1);return;case 60:case 62:l=S.charCodeAt(f+1),c=1,l===o?(c=o===62&&S.charCodeAt(f+2)===62?3:2,S.charCodeAt(f+c)===61?x(Ce,c+1):x(Cr,c)):l===33&&o===60&&S.charCodeAt(f+2)===45&&S.charCodeAt(f+3)===45?(f+=4,d(),h(),v()):(l===61&&(c=S.charCodeAt(f+2)===61?3:2),x(kr,c));return;case 61:case 33:S.charCodeAt(f+1)===61?x(wr,S.charCodeAt(f+2)===61?3:2):x(o===61?jn:In,1);return;case 126:return x(In,1)}return!1}function v(o){if(o?f=X+1:X=f,N.C&&(bt=new a),o)return D();if(f>=je)return s(Ct);if(o=S.charCodeAt(f),r(o)||o===92)return Y();if(m(o)===!1){if(o=String.fromCharCode(o),o==="\\"||On.test(o))return Y();n(f,"Unexpected character '"+o+"'")}}function x(o,l){var c=S.slice(f,f+l);f+=l,s(o,c)}function D(){for(var o,l,c=f;;){f>=je&&n(c,"Unterminated regexp");var p=S.charAt(f);if(at.test(p)&&n(c,"Unterminated regexp"),o)o=!1;else{if(p==="[")l=!0;else if(p==="]"&&l)l=!1;else if(p==="/"&&!l)break;o=p==="\\"}++f}o=S.slice(c,f),++f,(l=L())&&!/^[gmi]*$/.test(l)&&n(c,"Invalid regexp flag");try{var O=new RegExp(o,l)}catch(J){throw J instanceof SyntaxError&&n(c,J.message),J}s(rn,O)}function M(o,l){for(var c=f,p=0,O=l===void 0?1/0:l,J=0;J<O;++J){var ne=S.charCodeAt(f);if(ne=97<=ne?ne-97+10:65<=ne?ne-65+10:48<=ne&&57>=ne?ne-48:1/0,ne>=o)break;++f,p=p*o+ne}return f===c||l!==void 0&&f-c!==l?null:p}function P(o){var l=f,c=!1,p=S.charCodeAt(f)===48;o||M(10)!==null||n(l,"Invalid number"),S.charCodeAt(f)===46&&(++f,M(10),c=!0),o=S.charCodeAt(f),(o===69||o===101)&&(o=S.charCodeAt(++f),o!==43&&o!==45||++f,M(10)===null&&n(l,"Invalid number"),c=!0),r(S.charCodeAt(f))&&n(f,"Identifier directly after number"),o=S.slice(l,f);var O;c?O=parseFloat(o):p&&o.length!==1?/[89]/.test(o)||oe?n(l,"Invalid number"):O=parseInt(o,8):O=parseInt(o,10),s(_e,O)}function F(o){return o=M(16,o),o===null&&n(X,"Bad character escape sequence"),o}function L(){Re=!1;for(var o,l=!0,c=f;;){var p=S.charCodeAt(f);if(t(p))Re&&(o+=S.charAt(f)),++f;else if(p===92){Re||(o=S.slice(c,f)),Re=!0,S.charCodeAt(++f)!==117&&n(f,"Expecting Unicode escape sequence \\uXXXX"),++f,p=F(4);var O=String.fromCharCode(p);O||n(f-1,"Invalid Unicode escape"),(l?r(p):t(p))||n(f-4,"Invalid Unicode escape"),o+=O}else break;l=!1}return Re?o:S.slice(c,f)}function Y(){var o=L(),l=Te;!Re&&Tr(o)&&(l=yr[o]),s(l,o)}function b(){wt=X,ve=Ie,kt=St,v()}function K(o){if(oe=o,f=X,N.C)for(;f<de;)de=S.lastIndexOf(`
|
|
5
|
-
`,de-2)+1,--ke;h(),v()}function ee(){this.type=null,this.start=X,this.end=null}function ae(){this.start=bt,this.end=null,xt&&(this.source=xt)}function $(){var o=new ee;return N.C&&(o.X=new ae),N.vb&&(o.sourceFile=N.vb),N.Xa&&(o.j=[X,0]),o}function te(o){var l=new ee;return l.start=o.start,N.C&&(l.X=new ae,l.X.start=o.X.start),N.Xa&&(l.j=[o.j[0],0]),l}function I(o,l){return o.type=l,o.end=ve,N.C&&(o.X.end=kt),N.Xa&&(o.j[1]=ve),o}function Ee(o){return o.type==="ExpressionStatement"&&o.la.type==="Literal"&&o.la.value==="use strict"}function V(o){return R===o?(b(),!0):!1}function Se(){return!N.fc&&(R===Ct||R===Ae||at.test(S.slice(ve,X)))}function le(){V(he)||Se()||E()}function H(o){R===o?b():E()}function E(){n(X,"Unexpected token")}function T(o){o.type!=="Identifier"&&o.type!=="MemberExpression"&&n(o.start,"Assigning to rvalue"),oe&&o.type==="Identifier"&&ot(o.name)&&n(o.start,"Assigning to "+o.name+" in strict mode")}function A(){(R===En||R===Ce&&se==="/=")&&v(!0);var o=R,l=$();switch(o){case Et:case an:b();var c=o===Et;V(he)||Se()?l.label=null:R!==Te?E():(l.label=ue(),le());for(var p=0;p<z.length;++p){var O=z[p];if((l.label===null||O.name===l.label.name)&&(O.kind!==null&&(c||O.kind==="loop")||l.label&&c))break}return p===z.length&&n(l.start,"Unsyntactic "+o.l),I(l,c?"BreakStatement":"ContinueStatement");case sn:return b(),le(),I(l,"DebuggerStatement");case cn:return b(),z.push(Nt),l.body=A(),z.pop(),H(Rt),l.test=B(),le(),I(l,"DoWhileStatement");case fn:return b(),z.push(Nt),H(fe),R===he?G(l,null):R===At?(o=$(),b(),tt(o,!0),I(o,"VariableDeclaration"),o.fa.length===1&&V(it)?we(l,o):G(l,o)):(o=Q(!1,!0),V(it)?(T(o),we(l,o)):G(l,o));case It:return b(),yt(l,!0);case hn:return b(),l.test=B(),l.da=A(),l.alternate=V(un)?A():null,I(l,"IfStatement");case pn:return De||N.Ib||n(X,"'return' outside of function"),b(),V(he)||Se()?l.K=null:(l.K=Q(),le()),I(l,"ReturnStatement");case Tt:for(b(),l.Qb=B(),l.tb=[],H(We),z.push(Or);R!==Ae;)R===jt||R===ln?(o=R===jt,p&&I(p,"SwitchCase"),l.tb.push(p=$()),p.da=[],b(),o?p.test=Q():(c&&n(wt,"Multiple default clauses"),c=!0,p.test=null),H(Ve)):(p||E(),p.da.push(A()));return p&&I(p,"SwitchCase"),b(),z.pop(),I(l,"SwitchStatement");case mn:return b(),at.test(S.slice(ve,X))&&n(ve,"Illegal newline after throw"),l.K=Q(),le(),I(l,"ThrowStatement");case gn:return b(),l.block=_(),l.Ea=null,R===on&&(o=$(),b(),H(fe),o.Ua=ue(),oe&&ot(o.Ua.name)&&n(o.Ua.start,"Binding "+o.Ua.name+" in strict mode"),H(ce),o.body=_(),l.Ea=I(o,"CatchClause")),l.fb=V(dn)?_():null,l.Ea||l.fb||n(l.start,"Missing catch or finally clause"),I(l,"TryStatement");case At:return b(),tt(l),le(),I(l,"VariableDeclaration");case Rt:return b(),l.test=B(),z.push(Nt),l.body=A(),z.pop(),I(l,"WhileStatement");case yn:return oe&&n(X,"'with' in strict mode"),b(),l.object=B(),l.body=A(),I(l,"WithStatement");case We:return _();case he:return b(),I(l,"EmptyStatement");default:if(c=se,O=Q(),o===Te&&O.type==="Identifier"&&V(Ve)){for(p=0;p<z.length;++p)z[p].name===c&&n(O.start,"Label '"+c+"' is already declared");return z.push({name:c,kind:R.W?"loop":R===Tt?"switch":null}),l.body=A(),z.pop(),l.label=O,I(l,"LabeledStatement")}return l.la=O,le(),I(l,"ExpressionStatement")}}function B(){H(fe);var o=Q();return H(ce),o}function _(o){var l=$(),c=!0,p=!1;for(l.body=[],H(We);!V(Ae);){var O=A();if(l.body.push(O),c&&o&&Ee(O)){var J=p;K(p=!0)}c=!1}return p&&!J&&K(!1),I(l,"BlockStatement")}function G(o,l){return o.ua=l,H(he),o.test=R===he?null:Q(),H(he),o.update=R===ce?null:Q(),H(ce),o.body=A(),z.pop(),I(o,"ForStatement")}function we(o,l){return o.left=l,o.right=Q(),H(ce),o.body=A(),z.pop(),I(o,"ForInStatement")}function tt(o,l){for(o.fa=[],o.kind="var";;){var c=$();if(c.id=ue(),oe&&ot(c.id.name)&&n(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=V(jn)?Q(!0,l):null,o.fa.push(I(c,"VariableDeclarator")),!V(xe))break}}function Q(o,l){var c=pt(l);if(!o&&R===xe){for(o=te(c),o.xb=[c];V(xe);)o.xb.push(pt(l));return I(o,"SequenceExpression")}return c}function pt(o){var l=mt(gt(),-1,o);if(V(Cn)){var c=te(l);c.test=l,c.da=Q(!0),H(Ve),c.alternate=Q(!0,o),l=I(c,"ConditionalExpression")}return R.Cb?(c=te(l),c.operator=se,c.left=l,b(),c.right=pt(o),T(l),I(c,"AssignmentExpression")):l}function mt(o,l,c){var p=R.L;if(p!==null&&(!c||R!==it)&&p>l){var O=te(o);return O.left=o,O.operator=se,o=R,b(),O.right=mt(gt(),p,c),p=I(O,o===Tn||o===An?"LogicalExpression":"BinaryExpression"),mt(p,l,c)}return o}function gt(){if(R.prefix){var o=$(),l=R.$b;return o.operator=se,Ue=o.prefix=!0,b(),o.K=gt(),l?T(o.K):oe&&o.operator==="delete"&&o.K.type==="Identifier"&&n(o.start,"Deleting local variable in strict mode"),I(o,l?"UpdateExpression":"UnaryExpression")}for(l=Me(nt());R.cc&&!Se();)o=te(l),o.operator=se,o.prefix=!1,o.K=l,T(l),b(),l=I(o,"UpdateExpression");return l}function Me(o,l){if(V(kn)){var c=te(o);return c.object=o,c.Wa=ue(!0),c.bb=!1,Me(I(c,"MemberExpression"),l)}return V(Ot)?(c=te(o),c.object=o,c.Wa=Q(),c.bb=!0,H(Pt),Me(I(c,"MemberExpression"),l)):!l&&V(fe)?(c=te(o),c.callee=o,c.arguments=vt(ce,!1),Me(I(c,"CallExpression"),l)):o}function nt(){switch(R){case xn:var o=$();return b(),I(o,"ThisExpression");case Te:return ue();case _e:case rt:case rn:return o=$(),o.value=se,o.raw=S.slice(X,Ie),b(),I(o,"Literal");case bn:case Sn:case wn:return o=$(),o.value=R.$a,o.raw=R.l,b(),I(o,"Literal");case fe:o=bt;var l=X;b();var c=Q();return c.start=l,c.end=Ie,N.C&&(c.X.start=o,c.X.end=St),N.Xa&&(c.j=[l,Ie]),H(ce),c;case Ot:return o=$(),b(),o.elements=vt(Pt,!0,!0),I(o,"ArrayExpression");case We:for(o=$(),l=!0,c=!1,o.h=[],b();!V(Ae);){if(l)l=!1;else if(H(xe),N.sb&&V(Ae))break;var p={key:R===_e||R===rt?nt():ue(!0)},O=!1;if(V(Ve)){p.value=Q(!0);var J=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?E():(O=c=!0,J=p.kind=p.key.name,p.key=R===_e||R===rt?nt():ue(!0),R!==fe&&E(),p.value=yt($(),!1));if(p.key.type==="Identifier"&&(oe||c))for(var ne=0;ne<o.h.length;++ne){var Oe=o.h[ne];if(Oe.key.name===p.key.name){var Ft=J===Oe.kind||O&&Oe.kind==="init"||J==="init"&&(Oe.kind==="get"||Oe.kind==="set");Ft&&!oe&&J==="init"&&Oe.kind==="init"&&(Ft=!1),Ft&&n(p.key.start,"Redefinition of property")}}o.h.push(p)}return I(o,"ObjectExpression");case It:return o=$(),b(),yt(o,!1);case vn:return o=$(),b(),o.callee=Me(nt(),!0),o.arguments=V(fe)?vt(ce,!1):gr,I(o,"NewExpression")}E()}function yt(o,l){R===Te?o.id=ue():l?E():o.id=null,o.oa=[];var c=!0;for(H(fe);!V(ce);)c?c=!1:H(xe),o.oa.push(ue());c=De;var p=z;if(De=!0,z=[],o.body=_(!0),De=c,z=p,oe||o.body.body.length&&Ee(o.body.body[0])){for(c=o.id?-1:0;c<o.oa.length;++c)if(p=0>c?o.id:o.oa[c],(Rn(p.name)||ot(p.name))&&n(p.start,"Defining '"+p.name+"' in strict mode"),0<=c)for(var O=0;O<c;++O)p.name===o.oa[O].name&&n(p.start,"Argument name clash in strict mode")}return I(o,l?"FunctionDeclaration":"FunctionExpression")}function vt(o,l,c){for(var p=[],O=!0;!V(o);){if(O)O=!1;else if(H(xe),l&&N.sb&&V(o))break;p.push(c&&R===xe?null:Q(!0))}return p}function ue(o){var l=$();return o&&N.yb==="everywhere"&&(o=!1),R===Te?(!o&&(N.yb&&Ir(se)||oe&&Rn(se))&&S.slice(X,Ie).indexOf("\\")===-1&&n(X,"The keyword '"+se+"' is reserved"),l.name=se):o&&R.l?l.name=R.l:E(),Ue=!1,b(),I(l,"Identifier")}e.version="0.5.0";var N,S="",je,xt;e.parse=function(o,l){S=String(o),je=S.length,N=l||{};for(var c in nn)Object.prototype.hasOwnProperty.call(N,c)||(N[c]=nn[c]);for(xt=N.sourceFile,ke=1,f=de=0,Ue=!0,h(),c=N.dc,wt=ve=f,N.C&&(kt=new a),De=oe=!1,z=[],v(),o=c||$(),l=!0,c||(o.body=[]);R!==Ct;)c=A(),o.body.push(c),l&&Ee(c)&&K(!0),l=!1;return I(o,"Program")};var nn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,X=0,Ie=0,bt,St,R,se,Ue,ke,de,wt=0,ve=0,kt,De,z,oe,gr=[],_e={type:"num"},rn={type:"regexp"},rt={type:"string"},Te={type:"name"},Ct={type:"eof"},Et={l:"break"},jt={l:"case",m:!0},on={l:"catch"},an={l:"continue"},sn={l:"debugger"},ln={l:"default"},cn={l:"do",W:!0},un={l:"else",m:!0},dn={l:"finally"},fn={l:"for",W:!0},It={l:"function"},hn={l:"if"},pn={l:"return",m:!0},Tt={l:"switch"},mn={l:"throw",m:!0},gn={l:"try"},At={l:"var"},Rt={l:"while",W:!0},yn={l:"with"},vn={l:"new",m:!0},xn={l:"this"},bn={l:"null",$a:null},Sn={l:"true",$a:!0},wn={l:"false",$a:!1},it={l:"in",L:7,m:!0},yr={break:Et,case:jt,catch:on,continue:an,debugger:sn,default:ln,do:cn,else:un,finally:dn,for:fn,function:It,if:hn,return:pn,switch:Tt,throw:mn,try:gn,var:At,while:Rt,with:yn,null:bn,true:Sn,false:wn,new:vn,in:it,instanceof:{l:"instanceof",L:7,m:!0},this:xn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Ot={type:"[",m:!0},Pt={type:"]"},We={type:"{",m:!0},Ae={type:"}"},fe={type:"(",m:!0},ce={type:")"},xe={type:",",m:!0},he={type:";",m:!0},Ve={type:":",m:!0},kn={type:"."},Cn={type:"?",m:!0},En={L:10,m:!0},jn={Cb:!0,m:!0},Ce={Cb:!0,m:!0},vr={cc:!0,prefix:!0,$b:!0},In={prefix:!0,m:!0},Tn={L:1,m:!0},An={L:2,m:!0},xr={L:3,m:!0},br={L:4,m:!0},Sr={L:5,m:!0},wr={L:6,m:!0},kr={L:7,m:!0},Cr={L:8,m:!0},Er={L:9,prefix:!0,m:!0},jr={L:10,m:!0},Ir=i("class enum extends super const export import"),Rn=i("implements interface let package private protected public static yield"),ot=i("eval arguments"),Tr=i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),Ar=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,On=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),Rr=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),at=/[\n\r\u2028\u2029]/,st=/\r\n|[\n\r\u2028\u2029]/g,Re,Nt={kind:"loop"},Or={kind:"switch"}},Dt=Dt=typeof globalThis=="undefined"?void 0:globalThis;Ur(Dt.j||(Dt.j={}));function g(e,t){typeof e=="string"&&(e=Ne(e,"code"));var r=e.constructor;this.ya=function(){return new r({options:{}})};var n=this.ya(),i;for(i in e)n[i]=i==="body"?e[i].slice():e[i];this.ra=n,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var a,s;for(s in this)typeof this[s]=="function"&&(a=s.match(e))&&(this.rb[a[1]]=this[s].bind(this));this.N=Wt(this,this.ra,null),this.Na=this.N.object,this.ra=Ne(this.ba.join(`
|
|
6
|
-
`),"polyfills"),this.ba=void 0,ut(this.ra),a=new C(this.ra,this.N),a.done=!1,this.o=[a],this.Eb(),this.value=void 0,this.ra=n,a=new C(this.ra,this.N),a.done=!1,this.o.length=0,this.o[0]=a}var Pn={C:!0,kc:5},$t={configurable:!0,enumerable:!0,writable:!1},w={configurable:!0,enumerable:!1,writable:!0},ie={configurable:!0,enumerable:!1,writable:!1},Le={configurable:!1,enumerable:!1,writable:!1},Nn={configurable:!1,enumerable:!0,writable:!0},Jn={STEP_ERROR:!0},Be={SCOPE_REFERENCE:!0},Ye={VALUE_IN_DESCRIPTOR:!0},Pe={REGEXP_TIMEOUT:!0},Fn=[],me=null,ze=null,be=typeof globalThis=="undefined"?void 0:globalThis,Dr=["onmessage = function(e) {","var result;","var data = e.data;","switch (data[0]) {","case 'split':","result = data[1].split(data[2], data[3]);","break;","case 'match':","result = data[1].match(data[2]);","break;","case 'search':","result = data[1].search(data[2]);","break;","case 'replace':","result = data[1].replace(data[2], data[3]);","break;","case 'exec':","var regexp = data[1];","regexp.lastIndex = data[2];","result = [regexp.exec(data[3]), data[1].lastIndex];","break;","default:","throw Error('Unknown RegExp operation: ' + data[0]);","}","postMessage(result);","close();","};"];function Ht(e){var t=e>>>0;return t===Number(e)?t:NaN}function Xe(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function ut(e,t,r){t?e.start=t:delete e.start,r?e.end=r:delete e.end;for(var n in e)if(n!=="loc"&&e.hasOwnProperty(n)){var i=e[n];i&&typeof i=="object"&&ut(i,t,r)}}g.prototype.REGEXP_MODE=2;g.prototype.REGEXP_THREAD_TIMEOUT=1e3;g.prototype.POLYFILL_TIMEOUT=1e3;W=g.prototype;W.P=!1;W.Ka=!1;W.Kb=0;W.ic=0;function Ne(e,t){var r={},n;for(n in Pn)r[n]=Pn[n];return r.sourceFile=t,be.j.parse(e,r)}W.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=Ne(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Je(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};W.lb=function(){var e=this.o,t;do{var r=e[e.length-1];if(this.za)break;if(!r||r.node.type==="Program"&&r.done){if(!this.ca.length)return!1;if(r=this.ca[0],!r||r.time>Date.now())r=null;else{this.ca.shift(),0<=r.interval&&Qn(this,r,r.interval);var n=new C(r.node,r.scope);r.zb&&(n.ia=2,n.B=this.Na,n.U=r.zb,n.Qa=!0,n.F=r.Lb),r=n}if(!r)break}n=r.node;var i=ze;ze=this;try{var a=this.rb[n.type](e,r,n)}catch(s){if(s!==Jn)throw this.value!==s&&(this.value=void 0),s}finally{ze=i}if(a&&e.push(a),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||n.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!n.end&&t>Date.now());return!0};W.Eb=function(){for(;!this.za&&this.lb(););return this.za};function _r(e,t){e.g(t,"NaN",NaN,Le),e.g(t,"Infinity",1/0,Le),e.g(t,"undefined",void 0,Le),e.g(t,"window",t,$t),e.g(t,"this",t,Le),e.g(t,"self",t),e.M=new U(null),e.Z=new U(e.M),Wr(e,t),Vr(e,t),t.xa=e.M,e.g(t,"constructor",e.v,w),Lr(e,t),$r(e,t),Hr(e,t),Kr(e,t),Gr(e,t),zr(e,t),Xr(e,t),Yr(e,t),Jr(e,t);var r=e.i(function(){throw EvalError("Can't happen")},!1);r.eval=!0,e.g(t,"eval",r,w),e.g(t,"parseInt",e.i(parseInt,!1),w),e.g(t,"parseFloat",e.i(parseFloat,!1),w),e.g(t,"isNaN",e.i(isNaN,!1),w),e.g(t,"isFinite",e.i(isFinite,!1),w);for(var n=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i<n.length;i++)r=function(a){return function(s){try{return a(s)}catch(d){j(e,e.Gb,d.message)}}}(n[i][0]),e.g(t,n[i][1],e.i(r,!1),w);r=function(a){return Bn(e,!1,arguments)},e.g(t,"setTimeout",e.i(r,!1),w),r=function(a){return Bn(e,!0,arguments)},e.g(t,"setInterval",e.i(r,!1),w),r=function(a){Mn(e,a)},e.g(t,"clearTimeout",e.i(r,!1),w),r=function(a){Mn(e,a)},e.g(t,"clearInterval",e.i(r,!1),w),e.OBJECT=e.v,e.OBJECT_PROTO=e.M,e.FUNCTION=e.O,e.FUNCTION_PROTO=e.Z,e.ARRAY=e.qa,e.ARRAY_PROTO=e.La,e.REGEXP=e.I,e.REGEXP_PROTO=e.Ma,e.DATE=e.$,e.DATE_PROTO=e.nb,e.qb&&e.qb(e,t)}W.Wb=0;function Wr(e,t){var r=/^[A-Za-z_$][\w$]*$/,n=function(i){var a=arguments.length?String(arguments[arguments.length-1]):"",s=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(s){s=s.split(/\s*,\s*/);for(var d=0;d<s.length;d++){var h=s[d];r.test(h)||j(e,e.T,"Invalid function argument: "+h)}s=s.join(", ")}try{var m=Ne("(function("+s+") {"+a+"})","function"+e.Wb++)}catch(v){j(e,e.T,"Invalid code: "+v.message)}return m.body.length!==1&&j(e,e.T,"Invalid code in function body"),zt(e,m.body[0].la,e.N,"anonymous")};e.O=e.i(n,!0),e.g(t,"Function",e.O,w),e.g(e.O,"prototype",e.Z,w),e.g(e.Z,"constructor",e.O,w),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,ie),e.Z.H="Function",n=function(i,a){var s=e.o[e.o.length-1];s.U=this,s.B=i,s.F=[],a!=null&&(a instanceof U?s.F=qn(e,a):j(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},q(e,e.O,"apply",n),n=function(i){var a=e.o[e.o.length-1];a.U=this,a.B=i,a.F=[];for(var s=1;s<arguments.length;s++)a.F.push(arguments[s]);a.eb=!1},q(e,e.O,"call",n),e.ba.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function bind(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');","}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});",""),n=function(){return String(this)},q(e,e.O,"toString",n),e.g(e.O,"toString",e.i(n,!1),w),n=function(){return this.valueOf()},q(e,e.O,"valueOf",n),e.g(e.O,"valueOf",e.i(n,!1),w)}function Vr(e,t){function r(i){i!=null||j(e,e.j,"Cannot convert '"+i+"' to object")}var n=function(i){if(i==null)return ye(e)?this:e.s(e.M);if(!(i instanceof U)){var a=e.s(ge(e,i));return a.data=i,a}return i};e.v=e.i(n,!0),e.g(e.v,"prototype",e.M,w),e.g(e.M,"constructor",e.v,w),e.g(t,"Object",e.v,w),n=function(i){return r(i),pe(e,Object.getOwnPropertyNames(i instanceof U?i.h:i))},e.g(e.v,"getOwnPropertyNames",e.i(n,!1),w),n=function(i){return r(i),i instanceof U&&(i=i.h),pe(e,Object.keys(i))},e.g(e.v,"keys",e.i(n,!1),w),n=function(i){return i===null?e.s(null):(i instanceof U||j(e,e.j,"Object prototype may only be an Object or null, not "+i),e.s(i))},e.g(e.v,"create",e.i(n,!1),w),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),n=function(i,a,s){return a=String(a),i instanceof U||j(e,e.j,"Object.defineProperty called on non-object: "+i),s instanceof U||j(e,e.j,"Property description must be an object"),!i.preventExtensions||a in i.h||j(e,e.j,"Can't define property '"+a+"', object is not extensible"),e.g(i,a,Ye,s.h),i},e.g(e.v,"defineProperty",e.i(n,!1),w),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),n=function(i,a){if(i instanceof U||j(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+i),a=String(a),a in i.h){var s=Object.getOwnPropertyDescriptor(i.h,a),d=i.V[a];return i=i.Y[a],a=e.s(e.M),d||i?(e.g(a,"get",d),e.g(a,"set",i)):(e.g(a,"value",s.value),e.g(a,"writable",s.writable)),e.g(a,"configurable",s.configurable),e.g(a,"enumerable",s.enumerable),a}},e.g(e.v,"getOwnPropertyDescriptor",e.i(n,!1),w),n=function(i){return r(i),ge(e,i)},e.g(e.v,"getPrototypeOf",e.i(n,!1),w),n=function(i){return!!i&&!i.preventExtensions},e.g(e.v,"isExtensible",e.i(n,!1),w),n=function(i){return i instanceof U&&(i.preventExtensions=!0),i},e.g(e.v,"preventExtensions",e.i(n,!1),w),q(e,e.v,"toString",U.prototype.toString),q(e,e.v,"toLocaleString",U.prototype.toString),q(e,e.v,"valueOf",U.prototype.valueOf),n=function(i){return r(this),this instanceof U?String(i)in this.h:this.hasOwnProperty(i)},q(e,e.v,"hasOwnProperty",n),n=function(i){return r(this),this instanceof U?Object.prototype.propertyIsEnumerable.call(this.h,i):this.propertyIsEnumerable(i)},q(e,e.v,"propertyIsEnumerable",n),n=function(i){for(;;){if(i=ge(e,i),!i)return!1;if(i===this)return!0}},q(e,e.v,"isPrototypeOf",n)}function Lr(e,t){var r=function(n){var i=ye(e)?this:Fe(e),a=arguments[0];if(arguments.length===1&&typeof a=="number")isNaN(Ht(a))&&j(e,e.ob,"Invalid array length: "+a),i.h.length=a;else{for(a=0;a<arguments.length;a++)i.h[a]=arguments[a];i.h.length=a}return i};e.qa=e.i(r,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,w),r=function(n){return n&&n.H==="Array"},e.g(e.qa,"isArray",e.i(r,!1),w),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.La.H="Array",e.ba.push("(function() {","function createArrayMethod_(f) {","Object.defineProperty(Array.prototype, f.name,","{configurable: true, writable: true, value: f});","}","createArrayMethod_(","function pop() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_(","function push(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_(","function shift() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_(","function unshift(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_(","function reverse() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_(","function indexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_(","function lastIndexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_(","function slice(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_(","function splice(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 1) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","o.length = len;","return removed;","}",");","createArrayMethod_(","function concat(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_(","function join(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_(","function every(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callbackfn.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_(","function filter(fun, var_args) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (fun.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_(","function forEach(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_(","function map(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_(","function reduce(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function reduceRight(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function some(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && fun.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_(","function sort(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_(","function toLocaleString() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")}function $r(e,t){var r=function(n){return n=arguments.length?be.String(n):"",ye(e)?(this.data=n,this):n};for(e.J=e.i(r,!0),e.g(t,"String",e.J,w),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),w),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),r=0;r<t.length;r++)q(e,e.J,t[r],String.prototype[t[r]]);r=function(n,i,a){i=e.R(i),a=e.R(a);try{return String(this).localeCompare(n,i,a)}catch(s){j(e,e.D,"localeCompare: "+s.message)}},q(e,e.J,"localeCompare",r),r=function(n,i,a){var s=String(this);if(i=i?Number(i):void 0,Z(e,n,e.I)&&(n=n.data,He(e,n,a),e.REGEXP_MODE===2)){if(me)n=$e(e,"string.split(separator, limit)",{string:s,separator:n,limit:i},n,a),n!==Pe&&a(pe(e,n));else{var d=e.ha(),h=Ke(e,n,d,a);d.onmessage=function(m){clearTimeout(h),a(pe(e,m.data))},d.postMessage(["split",s,n,i])}return}n=s.split(n,i),a(pe(e,n))},Ge(e,e.J,"split",r),r=function(n,i){var a=String(this);if(n=Z(e,n,e.I)?n.data:new RegExp(n),He(e,n,i),e.REGEXP_MODE===2)if(me)n=$e(e,"string.match(regexp)",{string:a,regexp:n},n,i),n!==Pe&&i(n&&pe(e,n));else{var s=e.ha(),d=Ke(e,n,s,i);s.onmessage=function(h){clearTimeout(d),i(h.data&&pe(e,h.data))},s.postMessage(["match",a,n])}else n=a.match(n),i(n&&pe(e,n))},Ge(e,e.J,"match",r),r=function(n,i){var a=String(this);if(Z(e,n,e.I)?n=n.data:n=new RegExp(n),He(e,n,i),e.REGEXP_MODE===2)if(me)n=$e(e,"string.search(regexp)",{string:a,regexp:n},n,i),n!==Pe&&i(n);else{var s=e.ha(),d=Ke(e,n,s,i);s.onmessage=function(h){clearTimeout(d),i(h.data)},s.postMessage(["search",a,n])}else i(a.search(n))},Ge(e,e.J,"search",r),r=function(n,i,a){var s=String(this);if(i=String(i),Z(e,n,e.I)&&(n=n.data,He(e,n,a),e.REGEXP_MODE===2)){if(me)n=$e(e,"string.replace(substr, newSubstr)",{string:s,substr:n,newSubstr:i},n,a),n!==Pe&&a(n);else{var d=e.ha(),h=Ke(e,n,d,a);d.onmessage=function(m){clearTimeout(h),a(m.data)},d.postMessage(["replace",s,n,i])}return}a(s.replace(n,i))},Ge(e,e.J,"replace",r),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function Hr(e,t){e.mb=e.i(function(r){return r=be.Boolean(r),ye(e)?(this.data=r,this):r},!0),e.g(t,"Boolean",e.mb,w)}function Kr(e,t){var r=function(n){return n=arguments.length?be.Number(n):0,ye(e)?(this.data=n,this):n};for(e.aa=e.i(r,!0),e.g(t,"Number",e.aa,w),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],r=0;r<t.length;r++)e.g(e.aa,t[r],Number[t[r]],Le);r=function(n){try{return Number(this).toExponential(n)}catch(i){j(e,e.D,i.message)}},q(e,e.aa,"toExponential",r),r=function(n){try{return Number(this).toFixed(n)}catch(i){j(e,e.D,i.message)}},q(e,e.aa,"toFixed",r),r=function(n){try{return Number(this).toPrecision(n)}catch(i){j(e,e.D,i.message)}},q(e,e.aa,"toPrecision",r),r=function(n){try{return Number(this).toString(n)}catch(i){j(e,e.D,i.message)}},q(e,e.aa,"toString",r),r=function(n,i){n=n?e.R(n):void 0,i=i?e.R(i):void 0;try{return Number(this).toLocaleString(n,i)}catch(a){j(e,e.D,"toLocaleString: "+a.message)}},q(e,e.aa,"toLocaleString",r)}function Gr(e,t){var r=function(i,a){if(!ye(e))return be.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(be.Date,s)),this};e.$=e.i(r,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,w),e.g(e.$,"now",e.i(Date.now,!1),w),e.g(e.$,"parse",e.i(Date.parse,!1),w),e.g(e.$,"UTC",e.i(Date.UTC,!1),w),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var n=0;n<t.length;n++)r=function(i){return function(a){var s=this.data;s instanceof Date||j(e,e.j,i+" not called on a Date");for(var d=[],h=0;h<arguments.length;h++)d[h]=e.R(arguments[h]);return s[i].apply(s,d)}}(t[n]),q(e,e.$,t[n],r)}function zr(e,t){var r=function(n,i){if(ye(e))var a=this;else{if(i===void 0&&Z(e,n,e.I))return n;a=e.s(e.Ma)}n=n===void 0?"":String(n),i=i?String(i):"",/^[gmi]*$/.test(i)||j(e,e.T,"Invalid regexp flag: "+i);try{var s=new be.RegExp(n,i)}catch(d){j(e,e.T,d.message)}return Kt(e,a,s),a};e.I=e.i(r,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,w),e.g(e.I.h.prototype,"global",void 0,ie),e.g(e.I.h.prototype,"ignoreCase",void 0,ie),e.g(e.I.h.prototype,"multiline",void 0,ie),e.g(e.I.h.prototype,"source","(?:)",ie),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),r=function(n,i){function a(v){if(v){var x=pe(e,v);return e.g(x,"index",v.index),e.g(x,"input",v.input),x}return null}var s=this.data;if(n=String(n),s.lastIndex=Number(e.G(this,"lastIndex")),He(e,s,i),e.REGEXP_MODE===2)if(me)n=$e(e,"regexp.exec(string)",{string:n,regexp:s},s,i),n!==Pe&&(e.g(this,"lastIndex",s.lastIndex),i(a(n)));else{var d=e.ha(),h=Ke(e,s,d,i),m=this;d.onmessage=function(v){clearTimeout(h),e.g(m,"lastIndex",v.data[1]),i(a(v.data[0]))},d.postMessage(["exec",s,s.lastIndex,n])}else n=s.exec(n),e.g(this,"lastIndex",s.lastIndex),i(a(n))},Ge(e,e.I,"exec",r)}function Xr(e,t){function r(n){var i=e.i(function(a){var s=ye(e)?this:e.Aa(i);return _t(e,s,a),s},!0);return e.g(i,"prototype",e.Aa(e.D),w),e.g(i.h.prototype,"name",n,w),e.g(t,n,i,w),i}e.D=e.i(function(n){var i=ye(e)?this:e.Aa(e.D);return _t(e,i,n),i},!0),e.g(t,"Error",e.D,w),e.g(e.D.h.prototype,"message","",w),e.g(e.D.h.prototype,"name","Error",w),r("EvalError"),e.ob=r("RangeError"),e.pb=r("ReferenceError"),e.T=r("SyntaxError"),e.j=r("TypeError"),e.Gb=r("URIError")}function Yr(e,t){var r=e.s(e.M);e.g(t,"Math",r,w);var n="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<n.length;t++)e.g(r,n[t],Math[n[t]],ie);for(n="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<n.length;t++)e.g(r,n[t],e.i(Math[n[t]],!1),w)}function Jr(e,t){var r=e.s(e.M);e.g(t,"JSON",r,w),t=function(n){try{var i=JSON.parse(String(n))}catch(a){j(e,e.T,a.message)}return e.Ia(i)},e.g(r,"parse",e.i(t,!1)),t=function(n,i,a){i&&i.H==="Function"?j(e,e.j,"Function replacer on JSON.stringify not supported"):i&&i.H==="Array"?(i=qn(e,i),i=i.filter(function(d){return typeof d=="string"||typeof d=="number"})):i=null,typeof a!="string"&&typeof a!="number"&&(a=void 0),n=e.R(n);try{var s=JSON.stringify(n,i,a)}catch(d){j(e,e.j,d.message)}return s},e.g(r,"stringify",e.i(t,!1))}function Z(e,t,r){if(t==null||!r)return!1;if(r=r.h.prototype,t===r)return!0;for(t=ge(e,t);t;){if(t===r)return!0;t=t.xa}return!1}function Kt(e,t,r){t.data=new RegExp(r.source,r.flags),e.g(t,"lastIndex",r.lastIndex,w),e.g(t,"source",r.source,ie),e.g(t,"global",r.global,ie),e.g(t,"ignoreCase",r.ignoreCase,ie),e.g(t,"multiline",r.multiline,ie)}function _t(e,t,r){r&&e.g(t,"message",String(r),w),r=[];for(var n=e.o.length-1;0<=n;n--){var i=e.o[n],a=i.node;a.type==="CallExpression"&&(i=i.U)&&r.length&&(r[r.length-1].Ob=e.G(i,"name")),!a.X||r.length&&a.type!=="CallExpression"||r.push({Nb:a.X})}for(n=String(e.G(t,"name")),a=String(e.G(t,"message")),a=n+": "+a+`
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),E=require("react"),y=require("./server-entry-bcb725be.cjs"),Br=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Mr=e=>typeof e=="string"&&Br.has(e.toLowerCase());function $t(e){return d.jsx(d.Fragment,{children:Mr(e.TagName)?d.jsx(d.Fragment,{children:d.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):d.jsx(d.Fragment,{children:typeof e.TagName=="string"?d.jsx(d.Fragment,{children:d.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})}):d.jsx(d.Fragment,{children:d.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})})}const Ye=()=>{switch(y.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":return"class"}};function Xn(e){return d.jsx($t,{TagName:e.link?e.builderLinkComponent||"a":"button",attributes:{...e.attributes,[Ye()]:`${e.link?"":"builder-button"} ${e.attributes[Ye()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}},actionAttributes:{},children:e.text})}const Ht=E.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}}),Yn=E.createContext({registeredComponents:{}});function Ur(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const qn=({builder:e,context:t,event:r,state:n})=>Object.entries({state:n,Builder:e,builder:e,context:t,event:r}),Dr=()=>({isEditing:y.isEditing(),isBrowser:y.isBrowser(),isServer:!y.isBrowser(),getUserAttributes:()=>y.getUserAttributes()}),_r=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Lr=({code:e,builder:t,context:r,event:n,localState:i,rootSetState:a,rootState:s})=>{const u=qn({builder:t,context:r,event:n,state:Wr(s,i,a)});return new Function(...u.map(([h])=>h),e)(...u.map(([,h])=>h))};function Wr(e,t,r){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(n,i)=>t&&i in t?t[i]:e[i],set:(n,i,a)=>{if(t&&i in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[i]=a,r==null||r(e),!0}})}const Jn=(e,t,r)=>{if(Object(e)!==e)return e;const n=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((i,a,s)=>Object(i[a])===i[a]?i[a]:i[a]=Math.abs(Number(n[s+1]))>>0===+n[s+1]?[]:{},e)[n[n.length-1]]=r,e};var L,Vr=function(e){function t(o){return 48>o?o===36:58>o?!0:65>o?!1:91>o?!0:97>o?o===95:123>o?!0:170<=o&&Nr.test(String.fromCharCode(o))}function r(o){return 65>o?o===36:91>o?!0:97>o?o===95:123>o?!0:170<=o&&Nn.test(String.fromCharCode(o))}function n(o,l){for(var c=S,m=1,P=0;;){lt.lastIndex=P;var q=lt.exec(c);if(q&&q.index<o)++m,P=q.index+q[0].length;else break}throw c={line:m,ab:o-P},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=o,l.X=c,l.o=f,l}function i(o){o=o.split(" ");for(var l=Object.create(null),c=0;c<o.length;c++)l[o[c]]=!0;return function(m){return l[m]||!1}}function a(){this.line=Ce,this.ab=f-de}function s(o,l){Ie=f,N.C&&(kt=new a),O=o,h(),se=l,Ue=o.m}function u(){for(var o=f,l=N.va&&N.C&&new a,c=S.charCodeAt(f+=2);f<je&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=S.charCodeAt(f);N.va&&N.va(!1,S.slice(o+2,f),o,f,l,N.C&&new a)}function h(){for(;f<je;){var o=S.charCodeAt(f);if(o===32)++f;else if(o===13)++f,o=S.charCodeAt(f),o===10&&++f,N.C&&(++Ce,de=f);else if(o===10||o===8232||o===8233)++f,N.C&&(++Ce,de=f);else if(8<o&&14>o)++f;else if(o===47)if(o=S.charCodeAt(f+1),o===42){o=void 0;var l=N.va&&N.C&&new a,c=f,m=S.indexOf("*/",f+=2);if(m===-1&&n(f-2,"Unterminated comment"),f=m+2,N.C)for(lt.lastIndex=c;(o=lt.exec(S))&&o.index<f;)++Ce,de=o.index+o[0].length;N.va&&N.va(!0,S.slice(c+2,m),c,f,l,N.C&&new a)}else if(o===47)u();else break;else if(o===160)++f;else if(5760<=o&&Pr.test(String.fromCharCode(o)))++f;else break}}function p(o){switch(o){case 46:o=S.charCodeAt(f+1),48<=o&&57>=o?T(!0):(++f,s(En));return;case 40:return++f,s(fe);case 41:return++f,s(ce);case 59:return++f,s(he);case 44:return++f,s(xe);case 91:return++f,s(Pt);case 93:return++f,s(Nt);case 123:return++f,s(Le);case 125:return++f,s(Ae);case 58:return++f,s(We);case 63:return++f,s(jn);case 48:if(o=S.charCodeAt(f+1),o===120||o===88){f+=2,o=B(16),o===null&&n(X+2,"Expected hexadecimal number"),r(S.charCodeAt(f))&&n(f,"Identifier directly after number"),s(_e,o);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return T(!1);case 34:case 39:f++;for(var l="";;){f>=je&&n(X,"Unterminated string constant");var c=S.charCodeAt(f);if(c===o){++f,s(it,l);break}if(c===92){c=S.charCodeAt(++f);var m=/^[0-7]+/.exec(S.slice(f,f+3));for(m&&(m=m[0]);m&&255<parseInt(m,8);)m=m.slice(0,-1);if(m==="0"&&(m=null),++f,m)ae&&n(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(m,8)),f+=m.length-1;else switch(c){case 110:l+=`
|
|
2
|
+
`;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(F(2));break;case 117:l+=String.fromCharCode(F(4));break;case 85:l+=String.fromCharCode(F(8));break;case 116:l+=" ";break;case 98:l+="\b";break;case 118:l+="\v";break;case 102:l+="\f";break;case 48:l+="\0";break;case 13:S.charCodeAt(f)===10&&++f;case 10:N.C&&(de=f,++Ce);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||n(X,"Unterminated string constant"),l+=String.fromCharCode(c),++f}return;case 47:o=S.charCodeAt(f+1),Ue?(++f,D()):o===61?b(Ee,2):b(In,1);return;case 37:case 42:S.charCodeAt(f+1)===61?b(Ee,2):b(Ar,1);return;case 124:case 38:l=S.charCodeAt(f+1),l===o?b(o===124?Rn:On,2):l===61?b(Ee,2):b(o===124?kr:Cr,1);return;case 94:S.charCodeAt(f+1)===61?b(Ee,2):b(wr,1);return;case 43:case 45:l=S.charCodeAt(f+1),l===o?l===45&&S.charCodeAt(f+2)===62&&st.test(S.slice(ve,f))?(f+=3,u(),h(),v()):b(Sr,2):l===61?b(Ee,2):b(Tr,1);return;case 60:case 62:l=S.charCodeAt(f+1),c=1,l===o?(c=o===62&&S.charCodeAt(f+2)===62?3:2,S.charCodeAt(f+c)===61?b(Ee,c+1):b(Ir,c)):l===33&&o===60&&S.charCodeAt(f+2)===45&&S.charCodeAt(f+3)===45?(f+=4,u(),h(),v()):(l===61&&(c=S.charCodeAt(f+2)===61?3:2),b(jr,c));return;case 61:case 33:S.charCodeAt(f+1)===61?b(Er,S.charCodeAt(f+2)===61?3:2):b(o===61?Tn:An,1);return;case 126:return b(An,1)}return!1}function v(o){if(o?f=X+1:X=f,N.C&&(St=new a),o)return D();if(f>=je)return s(Et);if(o=S.charCodeAt(f),r(o)||o===92)return Y();if(p(o)===!1){if(o=String.fromCharCode(o),o==="\\"||Nn.test(o))return Y();n(f,"Unexpected character '"+o+"'")}}function b(o,l){var c=S.slice(f,f+l);f+=l,s(o,c)}function D(){for(var o,l,c=f;;){f>=je&&n(c,"Unterminated regexp");var m=S.charAt(f);if(st.test(m)&&n(c,"Unterminated regexp"),o)o=!1;else{if(m==="[")l=!0;else if(m==="]"&&l)l=!1;else if(m==="/"&&!l)break;o=m==="\\"}++f}o=S.slice(c,f),++f,(l=$())&&!/^[gmi]*$/.test(l)&&n(c,"Invalid regexp flag");try{var P=new RegExp(o,l)}catch(q){throw q instanceof SyntaxError&&n(c,q.message),q}s(an,P)}function B(o,l){for(var c=f,m=0,P=l===void 0?1/0:l,q=0;q<P;++q){var re=S.charCodeAt(f);if(re=97<=re?re-97+10:65<=re?re-65+10:48<=re&&57>=re?re-48:1/0,re>=o)break;++f,m=m*o+re}return f===c||l!==void 0&&f-c!==l?null:m}function T(o){var l=f,c=!1,m=S.charCodeAt(f)===48;o||B(10)!==null||n(l,"Invalid number"),S.charCodeAt(f)===46&&(++f,B(10),c=!0),o=S.charCodeAt(f),(o===69||o===101)&&(o=S.charCodeAt(++f),o!==43&&o!==45||++f,B(10)===null&&n(l,"Invalid number"),c=!0),r(S.charCodeAt(f))&&n(f,"Identifier directly after number"),o=S.slice(l,f);var P;c?P=parseFloat(o):m&&o.length!==1?/[89]/.test(o)||ae?n(l,"Invalid number"):P=parseInt(o,8):P=parseInt(o,10),s(_e,P)}function F(o){return o=B(16,o),o===null&&n(X,"Bad character escape sequence"),o}function $(){Re=!1;for(var o,l=!0,c=f;;){var m=S.charCodeAt(f);if(t(m))Re&&(o+=S.charAt(f)),++f;else if(m===92){Re||(o=S.slice(c,f)),Re=!0,S.charCodeAt(++f)!==117&&n(f,"Expecting Unicode escape sequence \\uXXXX"),++f,m=F(4);var P=String.fromCharCode(m);P||n(f-1,"Invalid Unicode escape"),(l?r(m):t(m))||n(f-4,"Invalid Unicode escape"),o+=P}else break;l=!1}return Re?o:S.slice(c,f)}function Y(){var o=$(),l=Te;!Re&&Or(o)&&(l=br[o]),s(l,o)}function x(){wt=X,ve=Ie,Ct=kt,v()}function V(o){if(ae=o,f=X,N.C)for(;f<de;)de=S.lastIndexOf(`
|
|
3
|
+
`,de-2)+1,--Ce;h(),v()}function Z(){this.type=null,this.start=X,this.end=null}function te(){this.start=St,this.end=null,bt&&(this.source=bt)}function H(){var o=new Z;return N.C&&(o.X=new te),N.vb&&(o.sourceFile=N.vb),N.Xa&&(o.j=[X,0]),o}function ne(o){var l=new Z;return l.start=o.start,N.C&&(l.X=new te,l.X.start=o.X.start),N.Xa&&(l.j=[o.j[0],0]),l}function I(o,l){return o.type=l,o.end=ve,N.C&&(o.X.end=Ct),N.Xa&&(o.j[1]=ve),o}function Se(o){return o.type==="ExpressionStatement"&&o.la.type==="Literal"&&o.la.value==="use strict"}function W(o){return O===o?(x(),!0):!1}function ke(){return!N.fc&&(O===Et||O===Ae||st.test(S.slice(ve,X)))}function le(){W(he)||ke()||C()}function K(o){O===o?x():C()}function C(){n(X,"Unexpected token")}function A(o){o.type!=="Identifier"&&o.type!=="MemberExpression"&&n(o.start,"Assigning to rvalue"),ae&&o.type==="Identifier"&&at(o.name)&&n(o.start,"Assigning to "+o.name+" in strict mode")}function R(){(O===In||O===Ee&&se==="/=")&&v(!0);var o=O,l=H();switch(o){case jt:case ln:x();var c=o===jt;W(he)||ke()?l.label=null:O!==Te?C():(l.label=ue(),le());for(var m=0;m<z.length;++m){var P=z[m];if((l.label===null||P.name===l.label.name)&&(P.kind!==null&&(c||P.kind==="loop")||l.label&&c))break}return m===z.length&&n(l.start,"Unsyntactic "+o.l),I(l,c?"BreakStatement":"ContinueStatement");case cn:return x(),le(),I(l,"DebuggerStatement");case dn:return x(),z.push(Ft),l.body=R(),z.pop(),K(Ot),l.test=M(),le(),I(l,"DoWhileStatement");case mn:return x(),z.push(Ft),K(fe),O===he?G(l,null):O===Rt?(o=H(),x(),nt(o,!0),I(o,"VariableDeclaration"),o.fa.length===1&&W(ot)?we(l,o):G(l,o)):(o=ee(!1,!0),W(ot)?(A(o),we(l,o)):G(l,o));case Tt:return x(),vt(l,!0);case pn:return x(),l.test=M(),l.da=R(),l.alternate=W(fn)?R():null,I(l,"IfStatement");case gn:return De||N.Ib||n(X,"'return' outside of function"),x(),W(he)||ke()?l.K=null:(l.K=ee(),le()),I(l,"ReturnStatement");case At:for(x(),l.Qb=M(),l.tb=[],K(Le),z.push(Fr);O!==Ae;)O===It||O===un?(o=O===It,m&&I(m,"SwitchCase"),l.tb.push(m=H()),m.da=[],x(),o?m.test=ee():(c&&n(wt,"Multiple default clauses"),c=!0,m.test=null),K(We)):(m||C(),m.da.push(R()));return m&&I(m,"SwitchCase"),x(),z.pop(),I(l,"SwitchStatement");case yn:return x(),st.test(S.slice(ve,X))&&n(ve,"Illegal newline after throw"),l.K=ee(),le(),I(l,"ThrowStatement");case vn:return x(),l.block=_(),l.Ea=null,O===sn&&(o=H(),x(),K(fe),o.Ua=ue(),ae&&at(o.Ua.name)&&n(o.Ua.start,"Binding "+o.Ua.name+" in strict mode"),K(ce),o.body=_(),l.Ea=I(o,"CatchClause")),l.fb=W(hn)?_():null,l.Ea||l.fb||n(l.start,"Missing catch or finally clause"),I(l,"TryStatement");case Rt:return x(),nt(l),le(),I(l,"VariableDeclaration");case Ot:return x(),l.test=M(),z.push(Ft),l.body=R(),z.pop(),I(l,"WhileStatement");case xn:return ae&&n(X,"'with' in strict mode"),x(),l.object=M(),l.body=R(),I(l,"WithStatement");case Le:return _();case he:return x(),I(l,"EmptyStatement");default:if(c=se,P=ee(),o===Te&&P.type==="Identifier"&&W(We)){for(m=0;m<z.length;++m)z[m].name===c&&n(P.start,"Label '"+c+"' is already declared");return z.push({name:c,kind:O.W?"loop":O===At?"switch":null}),l.body=R(),z.pop(),l.label=P,I(l,"LabeledStatement")}return l.la=P,le(),I(l,"ExpressionStatement")}}function M(){K(fe);var o=ee();return K(ce),o}function _(o){var l=H(),c=!0,m=!1;for(l.body=[],K(Le);!W(Ae);){var P=R();if(l.body.push(P),c&&o&&Se(P)){var q=m;V(m=!0)}c=!1}return m&&!q&&V(!1),I(l,"BlockStatement")}function G(o,l){return o.ua=l,K(he),o.test=O===he?null:ee(),K(he),o.update=O===ce?null:ee(),K(ce),o.body=R(),z.pop(),I(o,"ForStatement")}function we(o,l){return o.left=l,o.right=ee(),K(ce),o.body=R(),z.pop(),I(o,"ForInStatement")}function nt(o,l){for(o.fa=[],o.kind="var";;){var c=H();if(c.id=ue(),ae&&at(c.id.name)&&n(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=W(Tn)?ee(!0,l):null,o.fa.push(I(c,"VariableDeclarator")),!W(xe))break}}function ee(o,l){var c=pt(l);if(!o&&O===xe){for(o=ne(c),o.xb=[c];W(xe);)o.xb.push(pt(l));return I(o,"SequenceExpression")}return c}function pt(o){var l=gt(yt(),-1,o);if(W(jn)){var c=ne(l);c.test=l,c.da=ee(!0),K(We),c.alternate=ee(!0,o),l=I(c,"ConditionalExpression")}return O.Cb?(c=ne(l),c.operator=se,c.left=l,x(),c.right=pt(o),A(l),I(c,"AssignmentExpression")):l}function gt(o,l,c){var m=O.L;if(m!==null&&(!c||O!==ot)&&m>l){var P=ne(o);return P.left=o,P.operator=se,o=O,x(),P.right=gt(yt(),m,c),m=I(P,o===Rn||o===On?"LogicalExpression":"BinaryExpression"),gt(m,l,c)}return o}function yt(){if(O.prefix){var o=H(),l=O.$b;return o.operator=se,Ue=o.prefix=!0,x(),o.K=yt(),l?A(o.K):ae&&o.operator==="delete"&&o.K.type==="Identifier"&&n(o.start,"Deleting local variable in strict mode"),I(o,l?"UpdateExpression":"UnaryExpression")}for(l=Me(rt());O.cc&&!ke();)o=ne(l),o.operator=se,o.prefix=!1,o.K=l,A(l),x(),l=I(o,"UpdateExpression");return l}function Me(o,l){if(W(En)){var c=ne(o);return c.object=o,c.Wa=ue(!0),c.bb=!1,Me(I(c,"MemberExpression"),l)}return W(Pt)?(c=ne(o),c.object=o,c.Wa=ee(),c.bb=!0,K(Nt),Me(I(c,"MemberExpression"),l)):!l&&W(fe)?(c=ne(o),c.callee=o,c.arguments=xt(ce,!1),Me(I(c,"CallExpression"),l)):o}function rt(){switch(O){case Sn:var o=H();return x(),I(o,"ThisExpression");case Te:return ue();case _e:case it:case an:return o=H(),o.value=se,o.raw=S.slice(X,Ie),x(),I(o,"Literal");case kn:case wn:case Cn:return o=H(),o.value=O.$a,o.raw=O.l,x(),I(o,"Literal");case fe:o=St;var l=X;x();var c=ee();return c.start=l,c.end=Ie,N.C&&(c.X.start=o,c.X.end=kt),N.Xa&&(c.j=[l,Ie]),K(ce),c;case Pt:return o=H(),x(),o.elements=xt(Nt,!0,!0),I(o,"ArrayExpression");case Le:for(o=H(),l=!0,c=!1,o.h=[],x();!W(Ae);){if(l)l=!1;else if(K(xe),N.sb&&W(Ae))break;var m={key:O===_e||O===it?rt():ue(!0)},P=!1;if(W(We)){m.value=ee(!0);var q=m.kind="init"}else m.key.type!=="Identifier"||m.key.name!=="get"&&m.key.name!=="set"?C():(P=c=!0,q=m.kind=m.key.name,m.key=O===_e||O===it?rt():ue(!0),O!==fe&&C(),m.value=vt(H(),!1));if(m.key.type==="Identifier"&&(ae||c))for(var re=0;re<o.h.length;++re){var Oe=o.h[re];if(Oe.key.name===m.key.name){var Bt=q===Oe.kind||P&&Oe.kind==="init"||q==="init"&&(Oe.kind==="get"||Oe.kind==="set");Bt&&!ae&&q==="init"&&Oe.kind==="init"&&(Bt=!1),Bt&&n(m.key.start,"Redefinition of property")}}o.h.push(m)}return I(o,"ObjectExpression");case Tt:return o=H(),x(),vt(o,!1);case bn:return o=H(),x(),o.callee=Me(rt(),!0),o.arguments=W(fe)?xt(ce,!1):xr,I(o,"NewExpression")}C()}function vt(o,l){O===Te?o.id=ue():l?C():o.id=null,o.oa=[];var c=!0;for(K(fe);!W(ce);)c?c=!1:K(xe),o.oa.push(ue());c=De;var m=z;if(De=!0,z=[],o.body=_(!0),De=c,z=m,ae||o.body.body.length&&Se(o.body.body[0])){for(c=o.id?-1:0;c<o.oa.length;++c)if(m=0>c?o.id:o.oa[c],(Pn(m.name)||at(m.name))&&n(m.start,"Defining '"+m.name+"' in strict mode"),0<=c)for(var P=0;P<c;++P)m.name===o.oa[P].name&&n(m.start,"Argument name clash in strict mode")}return I(o,l?"FunctionDeclaration":"FunctionExpression")}function xt(o,l,c){for(var m=[],P=!0;!W(o);){if(P)P=!1;else if(K(xe),l&&N.sb&&W(o))break;m.push(c&&O===xe?null:ee(!0))}return m}function ue(o){var l=H();return o&&N.yb==="everywhere"&&(o=!1),O===Te?(!o&&(N.yb&&Rr(se)||ae&&Pn(se))&&S.slice(X,Ie).indexOf("\\")===-1&&n(X,"The keyword '"+se+"' is reserved"),l.name=se):o&&O.l?l.name=O.l:C(),Ue=!1,x(),I(l,"Identifier")}e.version="0.5.0";var N,S="",je,bt;e.parse=function(o,l){S=String(o),je=S.length,N=l||{};for(var c in on)Object.prototype.hasOwnProperty.call(N,c)||(N[c]=on[c]);for(bt=N.sourceFile,Ce=1,f=de=0,Ue=!0,h(),c=N.dc,wt=ve=f,N.C&&(Ct=new a),De=ae=!1,z=[],v(),o=c||H(),l=!0,c||(o.body=[]);O!==Et;)c=R(),o.body.push(c),l&&Se(c)&&V(!0),l=!1;return I(o,"Program")};var on={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,X=0,Ie=0,St,kt,O,se,Ue,Ce,de,wt=0,ve=0,Ct,De,z,ae,xr=[],_e={type:"num"},an={type:"regexp"},it={type:"string"},Te={type:"name"},Et={type:"eof"},jt={l:"break"},It={l:"case",m:!0},sn={l:"catch"},ln={l:"continue"},cn={l:"debugger"},un={l:"default"},dn={l:"do",W:!0},fn={l:"else",m:!0},hn={l:"finally"},mn={l:"for",W:!0},Tt={l:"function"},pn={l:"if"},gn={l:"return",m:!0},At={l:"switch"},yn={l:"throw",m:!0},vn={l:"try"},Rt={l:"var"},Ot={l:"while",W:!0},xn={l:"with"},bn={l:"new",m:!0},Sn={l:"this"},kn={l:"null",$a:null},wn={l:"true",$a:!0},Cn={l:"false",$a:!1},ot={l:"in",L:7,m:!0},br={break:jt,case:It,catch:sn,continue:ln,debugger:cn,default:un,do:dn,else:fn,finally:hn,for:mn,function:Tt,if:pn,return:gn,switch:At,throw:yn,try:vn,var:Rt,while:Ot,with:xn,null:kn,true:wn,false:Cn,new:bn,in:ot,instanceof:{l:"instanceof",L:7,m:!0},this:Sn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Pt={type:"[",m:!0},Nt={type:"]"},Le={type:"{",m:!0},Ae={type:"}"},fe={type:"(",m:!0},ce={type:")"},xe={type:",",m:!0},he={type:";",m:!0},We={type:":",m:!0},En={type:"."},jn={type:"?",m:!0},In={L:10,m:!0},Tn={Cb:!0,m:!0},Ee={Cb:!0,m:!0},Sr={cc:!0,prefix:!0,$b:!0},An={prefix:!0,m:!0},Rn={L:1,m:!0},On={L:2,m:!0},kr={L:3,m:!0},wr={L:4,m:!0},Cr={L:5,m:!0},Er={L:6,m:!0},jr={L:7,m:!0},Ir={L:8,m:!0},Tr={L:9,prefix:!0,m:!0},Ar={L:10,m:!0},Rr=i("class enum extends super const export import"),Pn=i("implements interface let package private protected public static yield"),at=i("eval arguments"),Or=i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),Pr=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Nn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),Nr=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),st=/[\n\r\u2028\u2029]/,lt=/\r\n|[\n\r\u2028\u2029]/g,Re,Ft={kind:"loop"},Fr={kind:"switch"}},_t=_t=typeof globalThis=="undefined"?void 0:globalThis;Vr(_t.j||(_t.j={}));function g(e,t){typeof e=="string"&&(e=Ne(e,"code"));var r=e.constructor;this.ya=function(){return new r({options:{}})};var n=this.ya(),i;for(i in e)n[i]=i==="body"?e[i].slice():e[i];this.ra=n,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var a,s;for(s in this)typeof this[s]=="function"&&(a=s.match(e))&&(this.rb[a[1]]=this[s].bind(this));this.N=Wt(this,this.ra,null),this.Na=this.N.object,this.ra=Ne(this.ba.join(`
|
|
4
|
+
`),"polyfills"),this.ba=void 0,dt(this.ra),a=new w(this.ra,this.N),a.done=!1,this.o=[a],this.Eb(),this.value=void 0,this.ra=n,a=new w(this.ra,this.N),a.done=!1,this.o.length=0,this.o[0]=a}var Fn={C:!0,kc:5},Kt={configurable:!0,enumerable:!0,writable:!1},k={configurable:!0,enumerable:!1,writable:!0},oe={configurable:!0,enumerable:!1,writable:!1},Ve={configurable:!1,enumerable:!1,writable:!1},Bn={configurable:!1,enumerable:!0,writable:!0},Zn={STEP_ERROR:!0},Be={SCOPE_REFERENCE:!0},qe={VALUE_IN_DESCRIPTOR:!0},Pe={REGEXP_TIMEOUT:!0},Mn=[],pe=null,ze=null,be=typeof globalThis=="undefined"?void 0:globalThis,$r=["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 Gt(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 dt(e,t,r){t?e.start=t:delete e.start,r?e.end=r:delete e.end;for(var n in e)if(n!=="loc"&&e.hasOwnProperty(n)){var i=e[n];i&&typeof i=="object"&&dt(i,t,r)}}g.prototype.REGEXP_MODE=2;g.prototype.REGEXP_THREAD_TIMEOUT=1e3;g.prototype.POLYFILL_TIMEOUT=1e3;L=g.prototype;L.P=!1;L.Ka=!1;L.Kb=0;L.ic=0;function Ne(e,t){var r={},n;for(n in Fn)r[n]=Fn[n];return r.sourceFile=t,be.j.parse(e,r)}L.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=Ne(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Je(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};L.lb=function(){var e=this.o,t;do{var r=e[e.length-1];if(this.za)break;if(!r||r.node.type==="Program"&&r.done){if(!this.ca.length)return!1;if(r=this.ca[0],!r||r.time>Date.now())r=null;else{this.ca.shift(),0<=r.interval&&tr(this,r,r.interval);var n=new w(r.node,r.scope);r.zb&&(n.ia=2,n.B=this.Na,n.U=r.zb,n.Qa=!0,n.F=r.Lb),r=n}if(!r)break}n=r.node;var i=ze;ze=this;try{var a=this.rb[n.type](e,r,n)}catch(s){if(s!==Zn)throw this.value!==s&&(this.value=void 0),s}finally{ze=i}if(a&&e.push(a),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||n.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!n.end&&t>Date.now());return!0};L.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Hr(e,t){e.g(t,"NaN",NaN,Ve),e.g(t,"Infinity",1/0,Ve),e.g(t,"undefined",void 0,Ve),e.g(t,"window",t,Kt),e.g(t,"this",t,Ve),e.g(t,"self",t),e.M=new U(null),e.Z=new U(e.M),Kr(e,t),Gr(e,t),t.xa=e.M,e.g(t,"constructor",e.v,k),zr(e,t),Xr(e,t),Yr(e,t),qr(e,t),Jr(e,t),Zr(e,t),Qr(e,t),ei(e,t),ti(e,t);var r=e.i(function(){throw EvalError("Can't happen")},!1);r.eval=!0,e.g(t,"eval",r,k),e.g(t,"parseInt",e.i(parseInt,!1),k),e.g(t,"parseFloat",e.i(parseFloat,!1),k),e.g(t,"isNaN",e.i(isNaN,!1),k),e.g(t,"isFinite",e.i(isFinite,!1),k);for(var n=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i<n.length;i++)r=function(a){return function(s){try{return a(s)}catch(u){j(e,e.Gb,u.message)}}}(n[i][0]),e.g(t,n[i][1],e.i(r,!1),k);r=function(a){return Un(e,!1,arguments)},e.g(t,"setTimeout",e.i(r,!1),k),r=function(a){return Un(e,!0,arguments)},e.g(t,"setInterval",e.i(r,!1),k),r=function(a){Dn(e,a)},e.g(t,"clearTimeout",e.i(r,!1),k),r=function(a){Dn(e,a)},e.g(t,"clearInterval",e.i(r,!1),k),e.OBJECT=e.v,e.OBJECT_PROTO=e.M,e.FUNCTION=e.O,e.FUNCTION_PROTO=e.Z,e.ARRAY=e.qa,e.ARRAY_PROTO=e.La,e.REGEXP=e.I,e.REGEXP_PROTO=e.Ma,e.DATE=e.$,e.DATE_PROTO=e.nb,e.qb&&e.qb(e,t)}L.Wb=0;function Kr(e,t){var r=/^[A-Za-z_$][\w$]*$/,n=function(i){var a=arguments.length?String(arguments[arguments.length-1]):"",s=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(s){s=s.split(/\s*,\s*/);for(var u=0;u<s.length;u++){var h=s[u];r.test(h)||j(e,e.T,"Invalid function argument: "+h)}s=s.join(", ")}try{var p=Ne("(function("+s+") {"+a+"})","function"+e.Wb++)}catch(v){j(e,e.T,"Invalid code: "+v.message)}return p.body.length!==1&&j(e,e.T,"Invalid code in function body"),Yt(e,p.body[0].la,e.N,"anonymous")};e.O=e.i(n,!0),e.g(t,"Function",e.O,k),e.g(e.O,"prototype",e.Z,k),e.g(e.Z,"constructor",e.O,k),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,oe),e.Z.H="Function",n=function(i,a){var s=e.o[e.o.length-1];s.U=this,s.B=i,s.F=[],a!=null&&(a instanceof U?s.F=Qn(e,a):j(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},J(e,e.O,"apply",n),n=function(i){var a=e.o[e.o.length-1];a.U=this,a.B=i,a.F=[];for(var s=1;s<arguments.length;s++)a.F.push(arguments[s]);a.eb=!1},J(e,e.O,"call",n),e.ba.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function bind(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');","}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});",""),n=function(){return String(this)},J(e,e.O,"toString",n),e.g(e.O,"toString",e.i(n,!1),k),n=function(){return this.valueOf()},J(e,e.O,"valueOf",n),e.g(e.O,"valueOf",e.i(n,!1),k)}function Gr(e,t){function r(i){i!=null||j(e,e.j,"Cannot convert '"+i+"' to object")}var n=function(i){if(i==null)return ye(e)?this:e.s(e.M);if(!(i instanceof U)){var a=e.s(ge(e,i));return a.data=i,a}return i};e.v=e.i(n,!0),e.g(e.v,"prototype",e.M,k),e.g(e.M,"constructor",e.v,k),e.g(t,"Object",e.v,k),n=function(i){return r(i),me(e,Object.getOwnPropertyNames(i instanceof U?i.h:i))},e.g(e.v,"getOwnPropertyNames",e.i(n,!1),k),n=function(i){return r(i),i instanceof U&&(i=i.h),me(e,Object.keys(i))},e.g(e.v,"keys",e.i(n,!1),k),n=function(i){return i===null?e.s(null):(i instanceof U||j(e,e.j,"Object prototype may only be an Object or null, not "+i),e.s(i))},e.g(e.v,"create",e.i(n,!1),k),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),n=function(i,a,s){return a=String(a),i instanceof U||j(e,e.j,"Object.defineProperty called on non-object: "+i),s instanceof U||j(e,e.j,"Property description must be an object"),!i.preventExtensions||a in i.h||j(e,e.j,"Can't define property '"+a+"', object is not extensible"),e.g(i,a,qe,s.h),i},e.g(e.v,"defineProperty",e.i(n,!1),k),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),n=function(i,a){if(i instanceof U||j(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+i),a=String(a),a in i.h){var s=Object.getOwnPropertyDescriptor(i.h,a),u=i.V[a];return i=i.Y[a],a=e.s(e.M),u||i?(e.g(a,"get",u),e.g(a,"set",i)):(e.g(a,"value",s.value),e.g(a,"writable",s.writable)),e.g(a,"configurable",s.configurable),e.g(a,"enumerable",s.enumerable),a}},e.g(e.v,"getOwnPropertyDescriptor",e.i(n,!1),k),n=function(i){return r(i),ge(e,i)},e.g(e.v,"getPrototypeOf",e.i(n,!1),k),n=function(i){return!!i&&!i.preventExtensions},e.g(e.v,"isExtensible",e.i(n,!1),k),n=function(i){return i instanceof U&&(i.preventExtensions=!0),i},e.g(e.v,"preventExtensions",e.i(n,!1),k),J(e,e.v,"toString",U.prototype.toString),J(e,e.v,"toLocaleString",U.prototype.toString),J(e,e.v,"valueOf",U.prototype.valueOf),n=function(i){return r(this),this instanceof U?String(i)in this.h:this.hasOwnProperty(i)},J(e,e.v,"hasOwnProperty",n),n=function(i){return r(this),this instanceof U?Object.prototype.propertyIsEnumerable.call(this.h,i):this.propertyIsEnumerable(i)},J(e,e.v,"propertyIsEnumerable",n),n=function(i){for(;;){if(i=ge(e,i),!i)return!1;if(i===this)return!0}},J(e,e.v,"isPrototypeOf",n)}function zr(e,t){var r=function(n){var i=ye(e)?this:Fe(e),a=arguments[0];if(arguments.length===1&&typeof a=="number")isNaN(Gt(a))&&j(e,e.ob,"Invalid array length: "+a),i.h.length=a;else{for(a=0;a<arguments.length;a++)i.h[a]=arguments[a];i.h.length=a}return i};e.qa=e.i(r,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,k),r=function(n){return n&&n.H==="Array"},e.g(e.qa,"isArray",e.i(r,!1),k),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.La.H="Array",e.ba.push("(function() {","function createArrayMethod_(f) {","Object.defineProperty(Array.prototype, f.name,","{configurable: true, writable: true, value: f});","}","createArrayMethod_(","function pop() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_(","function push(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_(","function shift() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_(","function unshift(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_(","function reverse() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_(","function indexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_(","function lastIndexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_(","function slice(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_(","function splice(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 1) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","o.length = len;","return removed;","}",");","createArrayMethod_(","function concat(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_(","function join(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_(","function every(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callbackfn.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_(","function filter(fun, var_args) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (fun.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_(","function forEach(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_(","function map(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_(","function reduce(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function reduceRight(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function some(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && fun.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_(","function sort(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_(","function toLocaleString() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")}function Xr(e,t){var r=function(n){return n=arguments.length?be.String(n):"",ye(e)?(this.data=n,this):n};for(e.J=e.i(r,!0),e.g(t,"String",e.J,k),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),k),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),r=0;r<t.length;r++)J(e,e.J,t[r],String.prototype[t[r]]);r=function(n,i,a){i=e.R(i),a=e.R(a);try{return String(this).localeCompare(n,i,a)}catch(s){j(e,e.D,"localeCompare: "+s.message)}},J(e,e.J,"localeCompare",r),r=function(n,i,a){var s=String(this);if(i=i?Number(i):void 0,Q(e,n,e.I)&&(n=n.data,He(e,n,a),e.REGEXP_MODE===2)){if(pe)n=$e(e,"string.split(separator, limit)",{string:s,separator:n,limit:i},n,a),n!==Pe&&a(me(e,n));else{var u=e.ha(),h=Ke(e,n,u,a);u.onmessage=function(p){clearTimeout(h),a(me(e,p.data))},u.postMessage(["split",s,n,i])}return}n=s.split(n,i),a(me(e,n))},Ge(e,e.J,"split",r),r=function(n,i){var a=String(this);if(n=Q(e,n,e.I)?n.data:new RegExp(n),He(e,n,i),e.REGEXP_MODE===2)if(pe)n=$e(e,"string.match(regexp)",{string:a,regexp:n},n,i),n!==Pe&&i(n&&me(e,n));else{var s=e.ha(),u=Ke(e,n,s,i);s.onmessage=function(h){clearTimeout(u),i(h.data&&me(e,h.data))},s.postMessage(["match",a,n])}else n=a.match(n),i(n&&me(e,n))},Ge(e,e.J,"match",r),r=function(n,i){var a=String(this);if(Q(e,n,e.I)?n=n.data:n=new RegExp(n),He(e,n,i),e.REGEXP_MODE===2)if(pe)n=$e(e,"string.search(regexp)",{string:a,regexp:n},n,i),n!==Pe&&i(n);else{var s=e.ha(),u=Ke(e,n,s,i);s.onmessage=function(h){clearTimeout(u),i(h.data)},s.postMessage(["search",a,n])}else i(a.search(n))},Ge(e,e.J,"search",r),r=function(n,i,a){var s=String(this);if(i=String(i),Q(e,n,e.I)&&(n=n.data,He(e,n,a),e.REGEXP_MODE===2)){if(pe)n=$e(e,"string.replace(substr, newSubstr)",{string:s,substr:n,newSubstr:i},n,a),n!==Pe&&a(n);else{var u=e.ha(),h=Ke(e,n,u,a);u.onmessage=function(p){clearTimeout(h),a(p.data)},u.postMessage(["replace",s,n,i])}return}a(s.replace(n,i))},Ge(e,e.J,"replace",r),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function Yr(e,t){e.mb=e.i(function(r){return r=be.Boolean(r),ye(e)?(this.data=r,this):r},!0),e.g(t,"Boolean",e.mb,k)}function qr(e,t){var r=function(n){return n=arguments.length?be.Number(n):0,ye(e)?(this.data=n,this):n};for(e.aa=e.i(r,!0),e.g(t,"Number",e.aa,k),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],r=0;r<t.length;r++)e.g(e.aa,t[r],Number[t[r]],Ve);r=function(n){try{return Number(this).toExponential(n)}catch(i){j(e,e.D,i.message)}},J(e,e.aa,"toExponential",r),r=function(n){try{return Number(this).toFixed(n)}catch(i){j(e,e.D,i.message)}},J(e,e.aa,"toFixed",r),r=function(n){try{return Number(this).toPrecision(n)}catch(i){j(e,e.D,i.message)}},J(e,e.aa,"toPrecision",r),r=function(n){try{return Number(this).toString(n)}catch(i){j(e,e.D,i.message)}},J(e,e.aa,"toString",r),r=function(n,i){n=n?e.R(n):void 0,i=i?e.R(i):void 0;try{return Number(this).toLocaleString(n,i)}catch(a){j(e,e.D,"toLocaleString: "+a.message)}},J(e,e.aa,"toLocaleString",r)}function Jr(e,t){var r=function(i,a){if(!ye(e))return be.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(be.Date,s)),this};e.$=e.i(r,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,k),e.g(e.$,"now",e.i(Date.now,!1),k),e.g(e.$,"parse",e.i(Date.parse,!1),k),e.g(e.$,"UTC",e.i(Date.UTC,!1),k),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var n=0;n<t.length;n++)r=function(i){return function(a){var s=this.data;s instanceof Date||j(e,e.j,i+" not called on a Date");for(var u=[],h=0;h<arguments.length;h++)u[h]=e.R(arguments[h]);return s[i].apply(s,u)}}(t[n]),J(e,e.$,t[n],r)}function Zr(e,t){var r=function(n,i){if(ye(e))var a=this;else{if(i===void 0&&Q(e,n,e.I))return n;a=e.s(e.Ma)}n=n===void 0?"":String(n),i=i?String(i):"",/^[gmi]*$/.test(i)||j(e,e.T,"Invalid regexp flag: "+i);try{var s=new be.RegExp(n,i)}catch(u){j(e,e.T,u.message)}return zt(e,a,s),a};e.I=e.i(r,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,k),e.g(e.I.h.prototype,"global",void 0,oe),e.g(e.I.h.prototype,"ignoreCase",void 0,oe),e.g(e.I.h.prototype,"multiline",void 0,oe),e.g(e.I.h.prototype,"source","(?:)",oe),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),r=function(n,i){function a(v){if(v){var b=me(e,v);return e.g(b,"index",v.index),e.g(b,"input",v.input),b}return null}var s=this.data;if(n=String(n),s.lastIndex=Number(e.G(this,"lastIndex")),He(e,s,i),e.REGEXP_MODE===2)if(pe)n=$e(e,"regexp.exec(string)",{string:n,regexp:s},s,i),n!==Pe&&(e.g(this,"lastIndex",s.lastIndex),i(a(n)));else{var u=e.ha(),h=Ke(e,s,u,i),p=this;u.onmessage=function(v){clearTimeout(h),e.g(p,"lastIndex",v.data[1]),i(a(v.data[0]))},u.postMessage(["exec",s,s.lastIndex,n])}else n=s.exec(n),e.g(this,"lastIndex",s.lastIndex),i(a(n))},Ge(e,e.I,"exec",r)}function Qr(e,t){function r(n){var i=e.i(function(a){var s=ye(e)?this:e.Aa(i);return Lt(e,s,a),s},!0);return e.g(i,"prototype",e.Aa(e.D),k),e.g(i.h.prototype,"name",n,k),e.g(t,n,i,k),i}e.D=e.i(function(n){var i=ye(e)?this:e.Aa(e.D);return Lt(e,i,n),i},!0),e.g(t,"Error",e.D,k),e.g(e.D.h.prototype,"message","",k),e.g(e.D.h.prototype,"name","Error",k),r("EvalError"),e.ob=r("RangeError"),e.pb=r("ReferenceError"),e.T=r("SyntaxError"),e.j=r("TypeError"),e.Gb=r("URIError")}function ei(e,t){var r=e.s(e.M);e.g(t,"Math",r,k);var n="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<n.length;t++)e.g(r,n[t],Math[n[t]],oe);for(n="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<n.length;t++)e.g(r,n[t],e.i(Math[n[t]],!1),k)}function ti(e,t){var r=e.s(e.M);e.g(t,"JSON",r,k),t=function(n){try{var i=JSON.parse(String(n))}catch(a){j(e,e.T,a.message)}return e.Ia(i)},e.g(r,"parse",e.i(t,!1)),t=function(n,i,a){i&&i.H==="Function"?j(e,e.j,"Function replacer on JSON.stringify not supported"):i&&i.H==="Array"?(i=Qn(e,i),i=i.filter(function(u){return typeof u=="string"||typeof u=="number"})):i=null,typeof a!="string"&&typeof a!="number"&&(a=void 0),n=e.R(n);try{var s=JSON.stringify(n,i,a)}catch(u){j(e,e.j,u.message)}return s},e.g(r,"stringify",e.i(t,!1))}function Q(e,t,r){if(t==null||!r)return!1;if(r=r.h.prototype,t===r)return!0;for(t=ge(e,t);t;){if(t===r)return!0;t=t.xa}return!1}function zt(e,t,r){t.data=new RegExp(r.source,r.flags),e.g(t,"lastIndex",r.lastIndex,k),e.g(t,"source",r.source,oe),e.g(t,"global",r.global,oe),e.g(t,"ignoreCase",r.ignoreCase,oe),e.g(t,"multiline",r.multiline,oe)}function Lt(e,t,r){r&&e.g(t,"message",String(r),k),r=[];for(var n=e.o.length-1;0<=n;n--){var i=e.o[n],a=i.node;a.type==="CallExpression"&&(i=i.U)&&r.length&&(r[r.length-1].Ob=e.G(i,"name")),!a.X||r.length&&a.type!=="CallExpression"||r.push({Nb:a.X})}for(n=String(e.G(t,"name")),a=String(e.G(t,"message")),a=n+": "+a+`
|
|
7
5
|
`,n=0;n<r.length;n++){var s=r[n].Nb;i=r[n].Ob,s=s.source+":"+s.start.line+":"+s.start.ab,a=i?a+(" at "+i+" ("+s+`)
|
|
8
6
|
`):a+(" at "+s+`
|
|
9
|
-
`)}e.g(t,"stack",a.trim(),
|
|
10
|
-
`)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function $e(e,t,r,n,i){var a={timeout:e.REGEXP_THREAD_TIMEOUT};try{return me.runInNewContext(t,r,a)}catch{i(null),j(e,e.D,"RegExp Timeout: "+n)}return Pe}function He(e,t,r){if(e.REGEXP_MODE===0)var n=!1;else if(e.REGEXP_MODE===1)n=!0;else if(me)n=!0;else if(typeof Worker=="function"&&typeof URL=="function")n=!0;else if(typeof require=="function"){try{me=require("vm")}catch{}n=!!me}else n=!1;n||(r(null),j(e,e.D,"Regular expressions not supported: "+t))}function Ke(e,t,r,n){return setTimeout(function(){r.terminate(),n(null);try{j(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}W.Aa=function(e){return this.s(e&&e.h.prototype)};W.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new U(e),Z(this,e,this.D)&&(e.H="Error"),e};function Fe(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function Gt(e,t,r){var n=e.s(e.Z);return r?(r=e.s(e.M),e.g(n,"prototype",r,w),e.g(r,"constructor",n,w)):n.Ab=!0,e.g(n,"length",t,ie),n.H="Function",n}function zt(e,t,r,n){var i=Gt(e,t.oa.length,!0);return i.Va=r,i.node=t,e.g(i,"name",t.id?String(t.id.name):n||"",ie),i}W.i=function(e,t){return t=Gt(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,ie),t};W.ub=function(e){var t=Gt(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,ie),t};W.Ia=function(e){if(e instanceof U)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return Kt(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var r=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var i=Array.prototype.slice.call(arguments).map(function(a){return r.R(a)});return i=e.apply(r,i),r.Ia(i)},!!t)}if(Array.isArray(e)){t=Fe(this);for(var n=0;n<e.length;n++)n in e&&this.g(t,n,this.Ia(e[n]));return t}t=this.s(this.M);for(n in e)this.g(t,n,this.Ia(e[n]));return t};W.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof U))throw Error("Object is not pseudo");if(Z(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(Z(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var r=t.hb.indexOf(e);if(r!==-1)return t.Sa[r];if(t.hb.push(e),Z(this,e,this.qa)){r=[],t.Sa.push(r);for(var n=this.G(e,"length"),i=0;i<n;i++)dt(this,e,i)&&(r[i]=this.R(this.G(e,i),t))}else for(n in r={},t.Sa.push(r),e.h)i=this.R(e.h[n],t),Object.defineProperty(r,n,{value:i,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),r};function pe(e,t){for(var r=Fe(e),n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++)e.g(r,n[i],t[n[i]]);return r}function qn(e,t){var r=[],n;for(n in t.h)r[n]=e.G(t,n);return r.length=Ht(e.G(t,"length"))||0,r}function ge(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}W.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||j(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof U))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(Z(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&Z(this,e,this.J)){var r=Xe(t);if(!isNaN(r)&&r<String(e).length)return String(e)[r]}do if(e.h&&t in e.h)return(r=e.V[t])?(this.P=!0,r):e.h[t];while(e=ge(this,e))};function dt(e,t,r){if(!(t instanceof U))throw TypeError("Primitive data type has no properties");if(r=String(r),r==="length"&&Z(e,t,e.J))return!0;if(Z(e,t,e.J)){var n=Xe(r);if(!isNaN(n)&&n<String(t).length)return!0}do if(t.h&&r in t.h)return!0;while(t=ge(e,t));return!1}W.g=function(e,t,r,n){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||j(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof U))throw TypeError("Expecting native value or pseudo object");n&&("get"in n||"set"in n)&&("value"in n||"writable"in n)&&j(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var i=!this.o||Xt(this).S;if(e instanceof U){if(Z(this,e,this.J)){var a=Xe(t);if(t==="length"||!isNaN(a)&&a<String(e).length){i&&j(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(a=e.h.length,t==="length"){if(n){if(!("value"in n))return;r=n.value}if(r=Ht(r),isNaN(r)&&j(this,this.ob,"Invalid array length"),r<a)for(s in e.h){var s=Xe(s);!isNaN(s)&&r<=s&&delete e.h[s]}}else isNaN(s=Xe(t))||(e.h.length=Math.max(a,s+1));if(!e.preventExtensions||t in e.h)if(n){i={},"get"in n&&n.get&&(e.V[t]=n.get,i.get=this.g.ac),"set"in n&&n.set&&(e.Y[t]=n.set,i.set=this.g.bc),"configurable"in n&&(i.configurable=n.configurable),"enumerable"in n&&(i.enumerable=n.enumerable),"writable"in n&&(i.writable=n.writable,delete e.V[t],delete e.Y[t]),"value"in n?(i.value=n.value,delete e.V[t],delete e.Y[t]):r!==Ye&&(i.value=r,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,i)}catch{j(this,this.j,"Cannot redefine property: "+t)}"get"in n&&!n.get&&delete e.V[t],"set"in n&&!n.set&&delete e.Y[t]}else{if(r===Ye)throw ReferenceError("Value not specified");for(n=e;!(t in n.h);)if(n=ge(this,n),!n){n=e;break}if(n.Y&&n.Y[t])return this.Ka=!0,n.Y[t];if(n.V&&n.V[t])i&&j(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=r}catch{i&&j(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else i&&j(this,this.j,"Can't add property '"+t+"', object is not extensible")}else i&&j(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};W.g.ac=function(){throw Error("Placeholder getter")};W.g.bc=function(){throw Error("Placeholder setter")};function q(e,t,r,n){e.g(t.h.prototype,r,e.i(n,!1),w)}function Ge(e,t,r,n){e.g(t.h.prototype,r,e.ub(n),w)}function Xt(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Wt(e,t,r){var n=!1;if(r&&r.S)n=!0;else{var i=t.body&&t.body[0];i&&i.la&&i.la.type==="Literal"&&i.la.value==="use strict"&&(n=!0)}return i=e.s(null),n=new er(r,n,i),r||_r(e,n.object),Je(e,t,n),n}function Yt(e,t,r){if(!t)throw Error("parentScope required");return e=r||e.s(null),new er(t,t.S,e)}function Jt(e,t){for(var r=Xt(e);r&&r!==e.N;){if(t in r.object.h)return r.object.h[t];r=r.Va}if(r===e.N&&dt(e,r.object,t))return e.G(r.object,t);r=e.o[e.o.length-1].node,r.type==="UnaryExpression"&&r.operator==="typeof"||j(e,e.pb,t+" is not defined")}function Zn(e,t,r){for(var n=Xt(e),i=n.S;n&&n!==e.N;){if(t in n.object.h){try{n.object.h[t]=r}catch{i&&j(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}n=n.Va}if(n===e.N&&(!i||dt(e,n.object,t)))return e.g(n.object,t,r);j(e,e.pb,t+" is not defined")}function Je(e,t,r){if(t.jb)var n=t.jb;else{switch(n=Object.create(null),t.type){case"VariableDeclaration":for(var i=0;i<t.fa.length;i++)n[t.fa[i].id.name]=!0;break;case"FunctionDeclaration":n[t.id.name]=t;break;case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"Program":case"SwitchCase":case"SwitchStatement":case"TryStatement":case"WithStatement":case"WhileStatement":var a=t.constructor,s;for(s in t)if(s!=="loc"){var d=t[s];if(d&&typeof d=="object"){if(Array.isArray(d)){for(i=0;i<d.length;i++)if(d[i]&&d[i].constructor===a){var h=Je(e,d[i],r);for(s in h)n[s]=h[s]}}else if(d.constructor===a)for(s in h=Je(e,d,r),h)n[s]=h[s]}}}t.jb=n}for(s in n)n[s]===!0?e.g(r.object,s,void 0,Nn):e.g(r.object,s,zt(e,n[s],r),Nn);return n}function ye(e){return e.o[e.o.length-1].isConstructor}function qt(e,t){return t[0]===Be?Jt(e,t[1]):e.G(t[0],t[1])}function Zt(e,t,r){return t[0]===Be?Zn(e,t[1],r):e.g(t[0],t[1],r)}function j(e,t,r){throw e.N?(r!==void 0&&t instanceof U&&(t=e.Aa(t),_t(e,t,r)),Ze(e,4,t),Jn):r===void 0?t:r}function Ze(e,t,r,n){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var i=e.o;e:for(;0<i.length;i.pop()){var a=i[i.length-1];switch(a.node.type){case"TryStatement":a.ea={type:t,value:r,label:n};return;case"CallExpression":case"NewExpression":if(t===3){a.value=r;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":a.done=!0;break e}if(t===1){if(n?a.labels&&a.labels.indexOf(n)!==-1:a.W||a.Zb){i.pop();return}}else if(t===2&&(n?a.labels&&a.labels.indexOf(n)!==-1:a.W))return}throw Z(e,r,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},n=String(e.G(r,"name")),i=e.G(r,"message").valueOf(),t=(t[n]||Error)(i),t.stack=String(e.G(r,"stack"))):t=String(r),e.value=t,t}function re(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return re(e,t.left)+" "+t.operator+" "+re(e,t.right);case"CallExpression":return re(e,t.callee)+"(...)";case"ConditionalExpression":return re(e,t.test)+" ? "+re(e,t.da)+" : "+re(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var r=re(e,t.object);return e=re(e,t.Wa),t.bb?r+"["+e+"]":r+"."+e;case"NewExpression":return"new "+re(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+re(e,t.K);case"UpdateExpression":return r=re(e,t.K),t.prefix?t.operator+r:r+t.operator}return"???"}function Bn(e,t,r){var n=e.o[e.o.length-1],i=Array.from(r),a=i.shift();r=Math.max(Number(i.shift()||0),0);var s=e.ya();if(a instanceof U&&a.H==="Function"){var d=a;s.type="CallExpression",n=n.scope}else{try{var h=Ne(String(a),"taskCode"+e.ic++)}catch(m){j(e,e.T,"Invalid code: "+m.message)}s.type="EvalProgram_",s.body=h.body,n=n.node.arguments[0],ut(s,n?n.start:void 0,n?n.end:void 0),n=e.N,i.length=0}return t=new qr(d,i,n,s,t?r:-1),Qn(e,t,r),t.Db}function Qn(e,t,r){t.time=Date.now()+r,e.ca.push(t),e.ca.sort(function(n,i){return n.time-i.time})}function Mn(e,t){for(var r=0;r<e.ca.length;r++)if(e.ca[r].Db==t){e.ca.splice(r,1);break}}function Qe(e,t,r){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,r=Array.isArray(r)?r[0]:r;var n=e.ya();return n.type="CallExpression",e=new C(n,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[],e}function Qt(e,t,r,n){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,r=Array.isArray(r)?r[0]:e.Na;var i=e.ya();return i.type="CallExpression",e=new C(i,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[n],e}function Bt(e,t){return t==null?e.Na:t instanceof U?t:(e=e.s(ge(e,t)),e.data=t,e)}W.Xb=function(){return this.N};W.Yb=function(){return this.o};W.ec=function(e){this.o=e};function C(e,t){this.node=e,this.scope=t}function er(e,t,r){this.Va=e,this.S=t,this.object=r}function U(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}W=U.prototype;W.xa=null;W.H="Object";W.data=null;W.toString=function(){if(!ze)return"[object Interpreter.Object]";if(!(this instanceof U))return String(this);if(this.H==="Array"){var e=Fn;e.push(this);try{var t=[],r=this.h.length,n=!1;1024<r&&(r=1e3,n=!0);for(var i=0;i<r;i++){var a=this.h[i];t[i]=a instanceof U&&e.indexOf(a)!==-1?"...":a}n&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Fn,e.indexOf(this)!==-1)return"[object Error]";r=this;do if("name"in r.h){t=r.h.name;break}while(r=r.xa);r=this;do if("message"in r.h){n=r.h.message;break}while(r=r.xa);e.push(this);try{t=t&&String(t),n=n&&String(n)}finally{e.pop()}return n?t+": "+n:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};W.valueOf=function(){return!ze||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function qr(e,t,r,n,i){this.zb=e,this.Lb=t,this.scope=r,this.node=n,this.interval=i,this.Db=++Zr,this.time=0}var Zr=0;g.prototype.stepArrayExpression=function(e,t,r){r=r.elements;var n=t.A||0;for(t.Oa?(this.g(t.Oa,n,t.value),n++):(t.Oa=Fe(this),t.Oa.h.length=r.length);n<r.length;){if(r[n])return t.A=n,new C(r[n],t.scope);n++}e.pop(),e[e.length-1].value=t.Oa};g.prototype.stepAssignmentExpression=function(e,t,r){if(!t.ja)return t.ja=!0,t=new C(r.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&r.operator!=="="&&(e=qt(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,Qe(this,e,t.Fa)):(t.Da=!0,r.operator==="="&&r.left.type==="Identifier"&&(t.Pa=r.left.name),new C(r.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var n=t.ma,i=t.value;switch(r.operator){case"=":n=i;break;case"+=":n+=i;break;case"-=":n-=i;break;case"*=":n*=i;break;case"/=":n/=i;break;case"%=":n%=i;break;case"<<=":n<<=i;break;case">>=":n>>=i;break;case">>>=":n>>>=i;break;case"&=":n&=i;break;case"^=":n^=i;break;case"|=":n|=i;break;default:throw SyntaxError("Unknown assignment expression: "+r.operator)}if(r=Zt(this,t.Fa,n))return t.ta=!0,t.ib=n,Qt(this,r,t.Fa,n);e.pop(),e[e.length-1].value=n}};g.prototype.stepBinaryExpression=function(e,t,r){if(!t.ja)return t.ja=!0,new C(r.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new C(r.right,t.scope);e.pop();var n=t.ma;switch(t=t.value,r.operator){case"==":r=n==t;break;case"!=":r=n!=t;break;case"===":r=n===t;break;case"!==":r=n!==t;break;case">":r=n>t;break;case">=":r=n>=t;break;case"<":r=n<t;break;case"<=":r=n<=t;break;case"+":r=n+t;break;case"-":r=n-t;break;case"*":r=n*t;break;case"/":r=n/t;break;case"%":r=n%t;break;case"&":r=n&t;break;case"|":r=n|t;break;case"^":r=n^t;break;case"<<":r=n<<t;break;case">>":r=n>>t;break;case">>>":r=n>>>t;break;case"in":t instanceof U||j(this,this.j,"'in' expects an object, not '"+t+"'"),r=dt(this,t,n);break;case"instanceof":Z(this,t,this.O)||j(this,this.j,"'instanceof' expects an object, not '"+t+"'"),r=n instanceof U?Z(this,n,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+r.operator)}e[e.length-1].value=r};g.prototype.stepBlockStatement=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new C(r,t.scope);e.pop()};g.prototype.stepBreakStatement=function(e,t,r){Ze(this,1,void 0,r.label&&r.label.name)};g.prototype.Hb=0;g.prototype.stepCallExpression=function(e,t,r){if(!t.ia){t.ia=1;var n=new C(r.callee,t.scope);return n.sa=!0,n}if(t.ia===1){t.ia=2;var i=t.value;if(Array.isArray(i)){if(t.U=qt(this,i),i[0]===Be?t.Pb=i[1]==="eval":t.B=i[0],i=t.U,this.P)return t.ia=1,Qe(this,i,t.value)}else t.U=i;t.F=[],t.A=0}if(i=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),r.arguments[t.A])return new C(r.arguments[t.A++],t.scope);if(r.type==="NewExpression"){if(i instanceof U&&!i.Ab||j(this,this.j,re(this,r.callee)+" is not a constructor"),i===this.qa)t.B=Fe(this);else{var a=i.h.prototype;(typeof a!="object"||a===null)&&(a=this.M),t.B=this.s(a)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,i instanceof U||j(this,this.j,re(this,r.callee)+" is not a function"),e=i.node){for(r=Wt(this,e.body,i.Va),n=Fe(this),i=0;i<t.F.length;i++)this.g(n,i,t.F[i]);for(this.g(r.object,"arguments",n),i=0;i<e.oa.length;i++)this.g(r.object,e.oa[i].name,t.F.length>i?t.F[i]:void 0);return r.S||(t.B=Bt(this,t.B)),this.g(r.object,"this",t.B,$t),t.value=void 0,new C(e.body,r)}if(i.eval)if(i=t.F[0],typeof i!="string")t.value=i;else{try{n=Ne(String(i),"eval"+this.Hb++)}catch(d){j(this,this.T,"Invalid code: "+d.message)}return i=this.ya(),i.type="EvalProgram_",i.body=n.body,ut(i,r.start,r.end),r=t.Pb?t.scope:this.N,r.S?r=Wt(this,n,r):Je(this,n,r),this.value=void 0,new C(i,r)}else if(i.Ta)t.scope.S||(t.B=Bt(this,t.B)),t.value=i.Ta.apply(t.B,t.F);else if(i.Za){var s=this;n=i.Za.length-1,n=t.F.concat(Array(n)).slice(0,n),n.push(function(d){t.value=d,s.za=!1}),this.za=!0,t.scope.S||(t.B=Bt(this,t.B)),i.Za.apply(t.B,n)}else j(this,this.j,re(this,r.callee)+" is not callable")}};g.prototype.stepConditionalExpression=function(e,t,r){var n=t.na||0;if(n===0)return t.na=1,new C(r.test,t.scope);if(n===1){if(t.na=2,(n=!!t.value)&&r.da)return new C(r.da,t.scope);if(!n&&r.alternate)return new C(r.alternate,t.scope);this.value=void 0}e.pop(),r.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};g.prototype.stepContinueStatement=function(e,t,r){Ze(this,2,void 0,r.label&&r.label.name)};g.prototype.stepDebuggerStatement=function(e){e.pop()};g.prototype.stepDoWhileStatement=function(e,t,r){if(r.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new C(r.test,t.scope);if(!t.value)e.pop();else if(r.body)return t.ga=!1,t.W=!0,new C(r.body,t.scope)};g.prototype.stepEmptyStatement=function(e){e.pop()};g.prototype.stepEvalProgram_=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new C(r,t.scope);e.pop(),e[e.length-1].value=this.value};g.prototype.stepExpressionStatement=function(e,t,r){if(!t.ka)return this.value=void 0,t.ka=!0,new C(r.la,t.scope);e.pop(),this.value=t.value};g.prototype.stepForInStatement=function(e,t,r){if(!t.Ub&&(t.Ub=!0,r.left.fa&&r.left.fa[0].ua))return t.scope.S&&j(this,this.T,"for-in loop variable declaration may not have an initializer"),new C(r.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new C(r.right,t.scope);if(t.W||(t.W=!0,t.u=t.value,t.kb=Object.create(null)),t.Ra===void 0)e:for(;;){if(t.u instanceof U)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var n=t.wa.shift();if(n===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,n)&&!t.kb[n]&&(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,n))){t.Ra=n;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));n=t.wa.shift(),n!==void 0;)if(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u,n)){t.Ra=n;break e}}if(t.u=ge(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=r.left,e.type==="VariableDeclaration")t.pa=[Be,e.fa[0].id.name];else return t.pa=null,t=new C(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,n=Zt(this,t.pa,e)))return Qt(this,n,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,r.body)return new C(r.body,t.scope)};g.prototype.stepForStatement=function(e,t,r){switch(t.na){default:if(t.na=1,r.ua)return new C(r.ua,t.scope);break;case 1:if(t.na=2,r.test)return new C(r.test,t.scope);break;case 2:if(t.na=3,r.test&&!t.value)e.pop();else return t.W=!0,new C(r.body,t.scope);break;case 3:if(t.na=1,r.update)return new C(r.update,t.scope)}};g.prototype.stepFunctionDeclaration=function(e){e.pop()};g.prototype.stepFunctionExpression=function(e,t,r){e.pop(),t=e[e.length-1],e=t.scope,r.id&&(e=Yt(this,e)),t.value=zt(this,r,e,t.Pa),r.id&&this.g(e.object,r.id.name,t.value,$t)};g.prototype.stepIdentifier=function(e,t,r){if(e.pop(),t.sa)e[e.length-1].value=[Be,r.name];else{if(t=Jt(this,r.name),this.P)return Qe(this,t,this.Na);e[e.length-1].value=t}};g.prototype.stepIfStatement=g.prototype.stepConditionalExpression;g.prototype.stepLabeledStatement=function(e,t,r){return e.pop(),e=t.labels||[],e.push(r.label.name),t=new C(r.body,t.scope),t.labels=e,t};g.prototype.stepLiteral=function(e,t,r){e.pop(),t=r.value,t instanceof RegExp&&(r=this.s(this.Ma),Kt(this,r,t),t=r),e[e.length-1].value=t};g.prototype.stepLogicalExpression=function(e,t,r){if(r.operator!=="&&"&&r.operator!=="||")throw SyntaxError("Unknown logical operator: "+r.operator);if(!t.ja)return t.ja=!0,new C(r.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(r.operator==="&&"&&!t.value||r.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new C(r.right,t.scope)};g.prototype.stepMemberExpression=function(e,t,r){if(!t.Ca)return t.Ca=!0,new C(r.object,t.scope);if(r.bb)if(t.Vb)r=t.value;else return t.u=t.value,t.Vb=!0,new C(r.Wa,t.scope);else t.u=t.value,r=r.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,r];else{if(r=this.G(t.u,r),this.P)return Qe(this,r,t.u);e[e.length-1].value=r}};g.prototype.stepNewExpression=g.prototype.stepCallExpression;g.prototype.stepObjectExpression=function(e,t,r){var n=t.A||0,i=r.h[n];if(t.u){var a=t.Pa;t.Ja[a]||(t.Ja[a]={}),t.Ja[a][i.kind]=t.value,t.A=++n,i=r.h[n]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(i){var s=i.key;if(s.type==="Identifier")a=s.name;else if(s.type==="Literal")a=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=a,new C(i.value,t.scope)}for(s in t.Ja)r=t.Ja[s],"get"in r||"set"in r?this.g(t.u,s,Ye,{configurable:!0,enumerable:!0,get:r.get,set:r.set}):this.g(t.u,s,r.init);e.pop(),e[e.length-1].value=t.u};g.prototype.stepProgram=function(e,t,r){if(e=r.body.shift())return t.done=!1,new C(e,t.scope);t.done=!0};g.prototype.stepReturnStatement=function(e,t,r){if(r.K&&!t.ka)return t.ka=!0,new C(r.K,t.scope);Ze(this,3,t.value)};g.prototype.stepSequenceExpression=function(e,t,r){var n=t.A||0;if(r=r.xb[n])return t.A=n+1,new C(r,t.scope);e.pop(),e[e.length-1].value=t.value};g.prototype.stepSwitchStatement=function(e,t,r){if(!t.ga)return t.ga=1,new C(r.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var n=t.gb||0,i=r.tb[n];if(t.Ha||!i||i.test)if(i||t.Ha||t.cb===-1)if(i){if(!t.Ha&&!t.Fb&&i.test)return t.Fb=!0,new C(i.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var a=t.A||0;if(i.da[a])return t.Zb=!0,t.A=a+1,new C(i.da[a],t.scope)}t.Fb=!1,t.A=0,t.gb=n+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=n,t.gb=n+1}};g.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=Jt(this,"this")};g.prototype.stepThrowStatement=function(e,t,r){if(t.ka)j(this,t.value);else return t.ka=!0,new C(r.K,t.scope)};g.prototype.stepTryStatement=function(e,t,r){if(!t.Rb)return t.Rb=!0,new C(r.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&r.Ea)return t.Tb=!0,e=Yt(this,t.scope),this.g(e.object,r.Ea.Ua.name,t.ea.value),t.ea=void 0,new C(r.Ea.body,e);if(!t.Sb&&r.fb)return t.Sb=!0,new C(r.fb,t.scope);e.pop(),t.ea&&Ze(this,t.ea.type,t.ea.value,t.ea.label)};g.prototype.stepUnaryExpression=function(e,t,r){if(!t.ka)return t.ka=!0,e=new C(r.K,t.scope),e.sa=r.operator==="delete",e;e.pop();var n=t.value;switch(r.operator){case"-":n=-n;break;case"+":n=+n;break;case"!":n=!n;break;case"~":n=~n;break;case"delete":if(r=!0,Array.isArray(n)){var i=n[0];i===Be&&(i=t.scope),n=String(n[1]);try{delete i.h[n]}catch{t.scope.S?j(this,this.j,"Cannot delete property '"+n+"' of '"+i+"'"):r=!1}}n=r;break;case"typeof":n=n&&n.H==="Function"?"function":typeof n;break;case"void":n=void 0;break;default:throw SyntaxError("Unknown unary operator: "+r.operator)}e[e.length-1].value=n};g.prototype.stepUpdateExpression=function(e,t,r){if(!t.ja)return t.ja=!0,e=new C(r.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var n=qt(this,t.Ga);if(t.ma=n,this.P)return t.Ba=!0,Qe(this,n,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(n=Number(t.ma),r.operator==="++")var i=n+1;else if(r.operator==="--")i=n-1;else throw SyntaxError("Unknown update expression: "+r.operator);if(r=r.prefix?i:n,n=Zt(this,t.Ga,i))return t.ta=!0,t.ib=r,Qt(this,n,t.Ga,i);e.pop(),e[e.length-1].value=r}};g.prototype.stepVariableDeclaration=function(e,t,r){r=r.fa;var n=t.A||0,i=r[n];for(t.Bb&&i&&(Zn(this,i.id.name,t.value),t.Bb=!1,i=r[++n]);i;){if(i.ua)return t.A=n,t.Bb=!0,t.Pa=i.id.name,new C(i.ua,t.scope);i=r[++n]}e.pop()};g.prototype.stepWithStatement=function(e,t,r){return t.Ca?(e.pop(),e=Yt(this,t.scope,t.value),new C(r.body,e)):(t.Ca=!0,new C(r.object,t.scope))};g.prototype.stepWhileStatement=g.prototype.stepDoWhileStatement;be.Interpreter=g;g.prototype.step=g.prototype.lb;g.prototype.run=g.prototype.Eb;g.prototype.appendCode=g.prototype.Jb;g.prototype.createObject=g.prototype.Aa;g.prototype.createObjectProto=g.prototype.s;g.prototype.createAsyncFunction=g.prototype.ub;g.prototype.createNativeFunction=g.prototype.i;g.prototype.getProperty=g.prototype.G;g.prototype.setProperty=g.prototype.g;g.prototype.nativeToPseudo=g.prototype.Ia;g.prototype.pseudoToNative=g.prototype.R;g.prototype.getGlobalScope=g.prototype.Xb;g.prototype.getStateStack=g.prototype.Yb;g.prototype.setStateStack=g.prototype.ec;g.VALUE_IN_DESCRIPTOR=Ye;const Qr=e=>e.split(`
|
|
11
|
-
`).map(t=>{const r=t.trim();if(t.includes("__awaiter"))return;if(!r.startsWith("state."))return t;const[i,a]=r.split("="),
|
|
7
|
+
`)}e.g(t,"stack",a.trim(),k)}L.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([$r.join(`
|
|
8
|
+
`)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function $e(e,t,r,n,i){var a={timeout:e.REGEXP_THREAD_TIMEOUT};try{return pe.runInNewContext(t,r,a)}catch{i(null),j(e,e.D,"RegExp Timeout: "+n)}return Pe}function He(e,t,r){if(e.REGEXP_MODE===0)var n=!1;else if(e.REGEXP_MODE===1)n=!0;else if(pe)n=!0;else if(typeof Worker=="function"&&typeof URL=="function")n=!0;else if(typeof require=="function"){try{pe=require("vm")}catch{}n=!!pe}else n=!1;n||(r(null),j(e,e.D,"Regular expressions not supported: "+t))}function Ke(e,t,r,n){return setTimeout(function(){r.terminate(),n(null);try{j(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}L.Aa=function(e){return this.s(e&&e.h.prototype)};L.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new U(e),Q(this,e,this.D)&&(e.H="Error"),e};function Fe(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function Xt(e,t,r){var n=e.s(e.Z);return r?(r=e.s(e.M),e.g(n,"prototype",r,k),e.g(r,"constructor",n,k)):n.Ab=!0,e.g(n,"length",t,oe),n.H="Function",n}function Yt(e,t,r,n){var i=Xt(e,t.oa.length,!0);return i.Va=r,i.node=t,e.g(i,"name",t.id?String(t.id.name):n||"",oe),i}L.i=function(e,t){return t=Xt(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,oe),t};L.ub=function(e){var t=Xt(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,oe),t};L.Ia=function(e){if(e instanceof U)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return zt(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var r=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var i=Array.prototype.slice.call(arguments).map(function(a){return r.R(a)});return i=e.apply(r,i),r.Ia(i)},!!t)}if(Array.isArray(e)){t=Fe(this);for(var n=0;n<e.length;n++)n in e&&this.g(t,n,this.Ia(e[n]));return t}t=this.s(this.M);for(n in e)this.g(t,n,this.Ia(e[n]));return t};L.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof U))throw Error("Object is not pseudo");if(Q(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(Q(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var r=t.hb.indexOf(e);if(r!==-1)return t.Sa[r];if(t.hb.push(e),Q(this,e,this.qa)){r=[],t.Sa.push(r);for(var n=this.G(e,"length"),i=0;i<n;i++)ft(this,e,i)&&(r[i]=this.R(this.G(e,i),t))}else for(n in r={},t.Sa.push(r),e.h)i=this.R(e.h[n],t),Object.defineProperty(r,n,{value:i,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),r};function me(e,t){for(var r=Fe(e),n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++)e.g(r,n[i],t[n[i]]);return r}function Qn(e,t){var r=[],n;for(n in t.h)r[n]=e.G(t,n);return r.length=Gt(e.G(t,"length"))||0,r}function ge(e,t){switch(typeof t){case"number":return e.aa.h.prototype;case"boolean":return e.mb.h.prototype;case"string":return e.J.h.prototype}return t?t.xa:null}L.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||j(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof U))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(Q(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&Q(this,e,this.J)){var r=Xe(t);if(!isNaN(r)&&r<String(e).length)return String(e)[r]}do if(e.h&&t in e.h)return(r=e.V[t])?(this.P=!0,r):e.h[t];while(e=ge(this,e))};function ft(e,t,r){if(!(t instanceof U))throw TypeError("Primitive data type has no properties");if(r=String(r),r==="length"&&Q(e,t,e.J))return!0;if(Q(e,t,e.J)){var n=Xe(r);if(!isNaN(n)&&n<String(t).length)return!0}do if(t.h&&r in t.h)return!0;while(t=ge(e,t));return!1}L.g=function(e,t,r,n){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||j(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof U))throw TypeError("Expecting native value or pseudo object");n&&("get"in n||"set"in n)&&("value"in n||"writable"in n)&&j(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var i=!this.o||qt(this).S;if(e instanceof U){if(Q(this,e,this.J)){var a=Xe(t);if(t==="length"||!isNaN(a)&&a<String(e).length){i&&j(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(a=e.h.length,t==="length"){if(n){if(!("value"in n))return;r=n.value}if(r=Gt(r),isNaN(r)&&j(this,this.ob,"Invalid array length"),r<a)for(s in e.h){var s=Xe(s);!isNaN(s)&&r<=s&&delete e.h[s]}}else isNaN(s=Xe(t))||(e.h.length=Math.max(a,s+1));if(!e.preventExtensions||t in e.h)if(n){i={},"get"in n&&n.get&&(e.V[t]=n.get,i.get=this.g.ac),"set"in n&&n.set&&(e.Y[t]=n.set,i.set=this.g.bc),"configurable"in n&&(i.configurable=n.configurable),"enumerable"in n&&(i.enumerable=n.enumerable),"writable"in n&&(i.writable=n.writable,delete e.V[t],delete e.Y[t]),"value"in n?(i.value=n.value,delete e.V[t],delete e.Y[t]):r!==qe&&(i.value=r,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,i)}catch{j(this,this.j,"Cannot redefine property: "+t)}"get"in n&&!n.get&&delete e.V[t],"set"in n&&!n.set&&delete e.Y[t]}else{if(r===qe)throw ReferenceError("Value not specified");for(n=e;!(t in n.h);)if(n=ge(this,n),!n){n=e;break}if(n.Y&&n.Y[t])return this.Ka=!0,n.Y[t];if(n.V&&n.V[t])i&&j(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=r}catch{i&&j(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else i&&j(this,this.j,"Can't add property '"+t+"', object is not extensible")}else i&&j(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};L.g.ac=function(){throw Error("Placeholder getter")};L.g.bc=function(){throw Error("Placeholder setter")};function J(e,t,r,n){e.g(t.h.prototype,r,e.i(n,!1),k)}function Ge(e,t,r,n){e.g(t.h.prototype,r,e.ub(n),k)}function qt(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Wt(e,t,r){var n=!1;if(r&&r.S)n=!0;else{var i=t.body&&t.body[0];i&&i.la&&i.la.type==="Literal"&&i.la.value==="use strict"&&(n=!0)}return i=e.s(null),n=new nr(r,n,i),r||Hr(e,n.object),Je(e,t,n),n}function Jt(e,t,r){if(!t)throw Error("parentScope required");return e=r||e.s(null),new nr(t,t.S,e)}function Zt(e,t){for(var r=qt(e);r&&r!==e.N;){if(t in r.object.h)return r.object.h[t];r=r.Va}if(r===e.N&&ft(e,r.object,t))return e.G(r.object,t);r=e.o[e.o.length-1].node,r.type==="UnaryExpression"&&r.operator==="typeof"||j(e,e.pb,t+" is not defined")}function er(e,t,r){for(var n=qt(e),i=n.S;n&&n!==e.N;){if(t in n.object.h){try{n.object.h[t]=r}catch{i&&j(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}n=n.Va}if(n===e.N&&(!i||ft(e,n.object,t)))return e.g(n.object,t,r);j(e,e.pb,t+" is not defined")}function Je(e,t,r){if(t.jb)var n=t.jb;else{switch(n=Object.create(null),t.type){case"VariableDeclaration":for(var i=0;i<t.fa.length;i++)n[t.fa[i].id.name]=!0;break;case"FunctionDeclaration":n[t.id.name]=t;break;case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"Program":case"SwitchCase":case"SwitchStatement":case"TryStatement":case"WithStatement":case"WhileStatement":var a=t.constructor,s;for(s in t)if(s!=="loc"){var u=t[s];if(u&&typeof u=="object"){if(Array.isArray(u)){for(i=0;i<u.length;i++)if(u[i]&&u[i].constructor===a){var h=Je(e,u[i],r);for(s in h)n[s]=h[s]}}else if(u.constructor===a)for(s in h=Je(e,u,r),h)n[s]=h[s]}}}t.jb=n}for(s in n)n[s]===!0?e.g(r.object,s,void 0,Bn):e.g(r.object,s,Yt(e,n[s],r),Bn);return n}function ye(e){return e.o[e.o.length-1].isConstructor}function Qt(e,t){return t[0]===Be?Zt(e,t[1]):e.G(t[0],t[1])}function en(e,t,r){return t[0]===Be?er(e,t[1],r):e.g(t[0],t[1],r)}function j(e,t,r){throw e.N?(r!==void 0&&t instanceof U&&(t=e.Aa(t),Lt(e,t,r)),Qe(e,4,t),Zn):r===void 0?t:r}function Qe(e,t,r,n){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var i=e.o;e:for(;0<i.length;i.pop()){var a=i[i.length-1];switch(a.node.type){case"TryStatement":a.ea={type:t,value:r,label:n};return;case"CallExpression":case"NewExpression":if(t===3){a.value=r;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":a.done=!0;break e}if(t===1){if(n?a.labels&&a.labels.indexOf(n)!==-1:a.W||a.Zb){i.pop();return}}else if(t===2&&(n?a.labels&&a.labels.indexOf(n)!==-1:a.W))return}throw Q(e,r,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},n=String(e.G(r,"name")),i=e.G(r,"message").valueOf(),t=(t[n]||Error)(i),t.stack=String(e.G(r,"stack"))):t=String(r),e.value=t,t}function ie(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return ie(e,t.left)+" "+t.operator+" "+ie(e,t.right);case"CallExpression":return ie(e,t.callee)+"(...)";case"ConditionalExpression":return ie(e,t.test)+" ? "+ie(e,t.da)+" : "+ie(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var r=ie(e,t.object);return e=ie(e,t.Wa),t.bb?r+"["+e+"]":r+"."+e;case"NewExpression":return"new "+ie(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+ie(e,t.K);case"UpdateExpression":return r=ie(e,t.K),t.prefix?t.operator+r:r+t.operator}return"???"}function Un(e,t,r){var n=e.o[e.o.length-1],i=Array.from(r),a=i.shift();r=Math.max(Number(i.shift()||0),0);var s=e.ya();if(a instanceof U&&a.H==="Function"){var u=a;s.type="CallExpression",n=n.scope}else{try{var h=Ne(String(a),"taskCode"+e.ic++)}catch(p){j(e,e.T,"Invalid code: "+p.message)}s.type="EvalProgram_",s.body=h.body,n=n.node.arguments[0],dt(s,n?n.start:void 0,n?n.end:void 0),n=e.N,i.length=0}return t=new ni(u,i,n,s,t?r:-1),tr(e,t,r),t.Db}function tr(e,t,r){t.time=Date.now()+r,e.ca.push(t),e.ca.sort(function(n,i){return n.time-i.time})}function Dn(e,t){for(var r=0;r<e.ca.length;r++)if(e.ca[r].Db==t){e.ca.splice(r,1);break}}function et(e,t,r){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,r=Array.isArray(r)?r[0]:r;var n=e.ya();return n.type="CallExpression",e=new w(n,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[],e}function tn(e,t,r,n){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,r=Array.isArray(r)?r[0]:e.Na;var i=e.ya();return i.type="CallExpression",e=new w(i,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[n],e}function Mt(e,t){return t==null?e.Na:t instanceof U?t:(e=e.s(ge(e,t)),e.data=t,e)}L.Xb=function(){return this.N};L.Yb=function(){return this.o};L.ec=function(e){this.o=e};function w(e,t){this.node=e,this.scope=t}function nr(e,t,r){this.Va=e,this.S=t,this.object=r}function U(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}L=U.prototype;L.xa=null;L.H="Object";L.data=null;L.toString=function(){if(!ze)return"[object Interpreter.Object]";if(!(this instanceof U))return String(this);if(this.H==="Array"){var e=Mn;e.push(this);try{var t=[],r=this.h.length,n=!1;1024<r&&(r=1e3,n=!0);for(var i=0;i<r;i++){var a=this.h[i];t[i]=a instanceof U&&e.indexOf(a)!==-1?"...":a}n&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Mn,e.indexOf(this)!==-1)return"[object Error]";r=this;do if("name"in r.h){t=r.h.name;break}while(r=r.xa);r=this;do if("message"in r.h){n=r.h.message;break}while(r=r.xa);e.push(this);try{t=t&&String(t),n=n&&String(n)}finally{e.pop()}return n?t+": "+n:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};L.valueOf=function(){return!ze||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function ni(e,t,r,n,i){this.zb=e,this.Lb=t,this.scope=r,this.node=n,this.interval=i,this.Db=++ri,this.time=0}var ri=0;g.prototype.stepArrayExpression=function(e,t,r){r=r.elements;var n=t.A||0;for(t.Oa?(this.g(t.Oa,n,t.value),n++):(t.Oa=Fe(this),t.Oa.h.length=r.length);n<r.length;){if(r[n])return t.A=n,new w(r[n],t.scope);n++}e.pop(),e[e.length-1].value=t.Oa};g.prototype.stepAssignmentExpression=function(e,t,r){if(!t.ja)return t.ja=!0,t=new w(r.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&r.operator!=="="&&(e=Qt(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,et(this,e,t.Fa)):(t.Da=!0,r.operator==="="&&r.left.type==="Identifier"&&(t.Pa=r.left.name),new w(r.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var n=t.ma,i=t.value;switch(r.operator){case"=":n=i;break;case"+=":n+=i;break;case"-=":n-=i;break;case"*=":n*=i;break;case"/=":n/=i;break;case"%=":n%=i;break;case"<<=":n<<=i;break;case">>=":n>>=i;break;case">>>=":n>>>=i;break;case"&=":n&=i;break;case"^=":n^=i;break;case"|=":n|=i;break;default:throw SyntaxError("Unknown assignment expression: "+r.operator)}if(r=en(this,t.Fa,n))return t.ta=!0,t.ib=n,tn(this,r,t.Fa,n);e.pop(),e[e.length-1].value=n}};g.prototype.stepBinaryExpression=function(e,t,r){if(!t.ja)return t.ja=!0,new w(r.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new w(r.right,t.scope);e.pop();var n=t.ma;switch(t=t.value,r.operator){case"==":r=n==t;break;case"!=":r=n!=t;break;case"===":r=n===t;break;case"!==":r=n!==t;break;case">":r=n>t;break;case">=":r=n>=t;break;case"<":r=n<t;break;case"<=":r=n<=t;break;case"+":r=n+t;break;case"-":r=n-t;break;case"*":r=n*t;break;case"/":r=n/t;break;case"%":r=n%t;break;case"&":r=n&t;break;case"|":r=n|t;break;case"^":r=n^t;break;case"<<":r=n<<t;break;case">>":r=n>>t;break;case">>>":r=n>>>t;break;case"in":t instanceof U||j(this,this.j,"'in' expects an object, not '"+t+"'"),r=ft(this,t,n);break;case"instanceof":Q(this,t,this.O)||j(this,this.j,"'instanceof' expects an object, not '"+t+"'"),r=n instanceof U?Q(this,n,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+r.operator)}e[e.length-1].value=r};g.prototype.stepBlockStatement=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new w(r,t.scope);e.pop()};g.prototype.stepBreakStatement=function(e,t,r){Qe(this,1,void 0,r.label&&r.label.name)};g.prototype.Hb=0;g.prototype.stepCallExpression=function(e,t,r){if(!t.ia){t.ia=1;var n=new w(r.callee,t.scope);return n.sa=!0,n}if(t.ia===1){t.ia=2;var i=t.value;if(Array.isArray(i)){if(t.U=Qt(this,i),i[0]===Be?t.Pb=i[1]==="eval":t.B=i[0],i=t.U,this.P)return t.ia=1,et(this,i,t.value)}else t.U=i;t.F=[],t.A=0}if(i=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),r.arguments[t.A])return new w(r.arguments[t.A++],t.scope);if(r.type==="NewExpression"){if(i instanceof U&&!i.Ab||j(this,this.j,ie(this,r.callee)+" is not a constructor"),i===this.qa)t.B=Fe(this);else{var a=i.h.prototype;(typeof a!="object"||a===null)&&(a=this.M),t.B=this.s(a)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,i instanceof U||j(this,this.j,ie(this,r.callee)+" is not a function"),e=i.node){for(r=Wt(this,e.body,i.Va),n=Fe(this),i=0;i<t.F.length;i++)this.g(n,i,t.F[i]);for(this.g(r.object,"arguments",n),i=0;i<e.oa.length;i++)this.g(r.object,e.oa[i].name,t.F.length>i?t.F[i]:void 0);return r.S||(t.B=Mt(this,t.B)),this.g(r.object,"this",t.B,Kt),t.value=void 0,new w(e.body,r)}if(i.eval)if(i=t.F[0],typeof i!="string")t.value=i;else{try{n=Ne(String(i),"eval"+this.Hb++)}catch(u){j(this,this.T,"Invalid code: "+u.message)}return i=this.ya(),i.type="EvalProgram_",i.body=n.body,dt(i,r.start,r.end),r=t.Pb?t.scope:this.N,r.S?r=Wt(this,n,r):Je(this,n,r),this.value=void 0,new w(i,r)}else if(i.Ta)t.scope.S||(t.B=Mt(this,t.B)),t.value=i.Ta.apply(t.B,t.F);else if(i.Za){var s=this;n=i.Za.length-1,n=t.F.concat(Array(n)).slice(0,n),n.push(function(u){t.value=u,s.za=!1}),this.za=!0,t.scope.S||(t.B=Mt(this,t.B)),i.Za.apply(t.B,n)}else j(this,this.j,ie(this,r.callee)+" is not callable")}};g.prototype.stepConditionalExpression=function(e,t,r){var n=t.na||0;if(n===0)return t.na=1,new w(r.test,t.scope);if(n===1){if(t.na=2,(n=!!t.value)&&r.da)return new w(r.da,t.scope);if(!n&&r.alternate)return new w(r.alternate,t.scope);this.value=void 0}e.pop(),r.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};g.prototype.stepContinueStatement=function(e,t,r){Qe(this,2,void 0,r.label&&r.label.name)};g.prototype.stepDebuggerStatement=function(e){e.pop()};g.prototype.stepDoWhileStatement=function(e,t,r){if(r.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new w(r.test,t.scope);if(!t.value)e.pop();else if(r.body)return t.ga=!1,t.W=!0,new w(r.body,t.scope)};g.prototype.stepEmptyStatement=function(e){e.pop()};g.prototype.stepEvalProgram_=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new w(r,t.scope);e.pop(),e[e.length-1].value=this.value};g.prototype.stepExpressionStatement=function(e,t,r){if(!t.ka)return this.value=void 0,t.ka=!0,new w(r.la,t.scope);e.pop(),this.value=t.value};g.prototype.stepForInStatement=function(e,t,r){if(!t.Ub&&(t.Ub=!0,r.left.fa&&r.left.fa[0].ua))return t.scope.S&&j(this,this.T,"for-in loop variable declaration may not have an initializer"),new w(r.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new w(r.right,t.scope);if(t.W||(t.W=!0,t.u=t.value,t.kb=Object.create(null)),t.Ra===void 0)e:for(;;){if(t.u instanceof U)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var n=t.wa.shift();if(n===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,n)&&!t.kb[n]&&(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,n))){t.Ra=n;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));n=t.wa.shift(),n!==void 0;)if(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u,n)){t.Ra=n;break e}}if(t.u=ge(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=r.left,e.type==="VariableDeclaration")t.pa=[Be,e.fa[0].id.name];else return t.pa=null,t=new w(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,n=en(this,t.pa,e)))return tn(this,n,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,r.body)return new w(r.body,t.scope)};g.prototype.stepForStatement=function(e,t,r){switch(t.na){default:if(t.na=1,r.ua)return new w(r.ua,t.scope);break;case 1:if(t.na=2,r.test)return new w(r.test,t.scope);break;case 2:if(t.na=3,r.test&&!t.value)e.pop();else return t.W=!0,new w(r.body,t.scope);break;case 3:if(t.na=1,r.update)return new w(r.update,t.scope)}};g.prototype.stepFunctionDeclaration=function(e){e.pop()};g.prototype.stepFunctionExpression=function(e,t,r){e.pop(),t=e[e.length-1],e=t.scope,r.id&&(e=Jt(this,e)),t.value=Yt(this,r,e,t.Pa),r.id&&this.g(e.object,r.id.name,t.value,Kt)};g.prototype.stepIdentifier=function(e,t,r){if(e.pop(),t.sa)e[e.length-1].value=[Be,r.name];else{if(t=Zt(this,r.name),this.P)return et(this,t,this.Na);e[e.length-1].value=t}};g.prototype.stepIfStatement=g.prototype.stepConditionalExpression;g.prototype.stepLabeledStatement=function(e,t,r){return e.pop(),e=t.labels||[],e.push(r.label.name),t=new w(r.body,t.scope),t.labels=e,t};g.prototype.stepLiteral=function(e,t,r){e.pop(),t=r.value,t instanceof RegExp&&(r=this.s(this.Ma),zt(this,r,t),t=r),e[e.length-1].value=t};g.prototype.stepLogicalExpression=function(e,t,r){if(r.operator!=="&&"&&r.operator!=="||")throw SyntaxError("Unknown logical operator: "+r.operator);if(!t.ja)return t.ja=!0,new w(r.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(r.operator==="&&"&&!t.value||r.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new w(r.right,t.scope)};g.prototype.stepMemberExpression=function(e,t,r){if(!t.Ca)return t.Ca=!0,new w(r.object,t.scope);if(r.bb)if(t.Vb)r=t.value;else return t.u=t.value,t.Vb=!0,new w(r.Wa,t.scope);else t.u=t.value,r=r.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,r];else{if(r=this.G(t.u,r),this.P)return et(this,r,t.u);e[e.length-1].value=r}};g.prototype.stepNewExpression=g.prototype.stepCallExpression;g.prototype.stepObjectExpression=function(e,t,r){var n=t.A||0,i=r.h[n];if(t.u){var a=t.Pa;t.Ja[a]||(t.Ja[a]={}),t.Ja[a][i.kind]=t.value,t.A=++n,i=r.h[n]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(i){var s=i.key;if(s.type==="Identifier")a=s.name;else if(s.type==="Literal")a=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=a,new w(i.value,t.scope)}for(s in t.Ja)r=t.Ja[s],"get"in r||"set"in r?this.g(t.u,s,qe,{configurable:!0,enumerable:!0,get:r.get,set:r.set}):this.g(t.u,s,r.init);e.pop(),e[e.length-1].value=t.u};g.prototype.stepProgram=function(e,t,r){if(e=r.body.shift())return t.done=!1,new w(e,t.scope);t.done=!0};g.prototype.stepReturnStatement=function(e,t,r){if(r.K&&!t.ka)return t.ka=!0,new w(r.K,t.scope);Qe(this,3,t.value)};g.prototype.stepSequenceExpression=function(e,t,r){var n=t.A||0;if(r=r.xb[n])return t.A=n+1,new w(r,t.scope);e.pop(),e[e.length-1].value=t.value};g.prototype.stepSwitchStatement=function(e,t,r){if(!t.ga)return t.ga=1,new w(r.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var n=t.gb||0,i=r.tb[n];if(t.Ha||!i||i.test)if(i||t.Ha||t.cb===-1)if(i){if(!t.Ha&&!t.Fb&&i.test)return t.Fb=!0,new w(i.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var a=t.A||0;if(i.da[a])return t.Zb=!0,t.A=a+1,new w(i.da[a],t.scope)}t.Fb=!1,t.A=0,t.gb=n+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=n,t.gb=n+1}};g.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=Zt(this,"this")};g.prototype.stepThrowStatement=function(e,t,r){if(t.ka)j(this,t.value);else return t.ka=!0,new w(r.K,t.scope)};g.prototype.stepTryStatement=function(e,t,r){if(!t.Rb)return t.Rb=!0,new w(r.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&r.Ea)return t.Tb=!0,e=Jt(this,t.scope),this.g(e.object,r.Ea.Ua.name,t.ea.value),t.ea=void 0,new w(r.Ea.body,e);if(!t.Sb&&r.fb)return t.Sb=!0,new w(r.fb,t.scope);e.pop(),t.ea&&Qe(this,t.ea.type,t.ea.value,t.ea.label)};g.prototype.stepUnaryExpression=function(e,t,r){if(!t.ka)return t.ka=!0,e=new w(r.K,t.scope),e.sa=r.operator==="delete",e;e.pop();var n=t.value;switch(r.operator){case"-":n=-n;break;case"+":n=+n;break;case"!":n=!n;break;case"~":n=~n;break;case"delete":if(r=!0,Array.isArray(n)){var i=n[0];i===Be&&(i=t.scope),n=String(n[1]);try{delete i.h[n]}catch{t.scope.S?j(this,this.j,"Cannot delete property '"+n+"' of '"+i+"'"):r=!1}}n=r;break;case"typeof":n=n&&n.H==="Function"?"function":typeof n;break;case"void":n=void 0;break;default:throw SyntaxError("Unknown unary operator: "+r.operator)}e[e.length-1].value=n};g.prototype.stepUpdateExpression=function(e,t,r){if(!t.ja)return t.ja=!0,e=new w(r.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var n=Qt(this,t.Ga);if(t.ma=n,this.P)return t.Ba=!0,et(this,n,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(n=Number(t.ma),r.operator==="++")var i=n+1;else if(r.operator==="--")i=n-1;else throw SyntaxError("Unknown update expression: "+r.operator);if(r=r.prefix?i:n,n=en(this,t.Ga,i))return t.ta=!0,t.ib=r,tn(this,n,t.Ga,i);e.pop(),e[e.length-1].value=r}};g.prototype.stepVariableDeclaration=function(e,t,r){r=r.fa;var n=t.A||0,i=r[n];for(t.Bb&&i&&(er(this,i.id.name,t.value),t.Bb=!1,i=r[++n]);i;){if(i.ua)return t.A=n,t.Bb=!0,t.Pa=i.id.name,new w(i.ua,t.scope);i=r[++n]}e.pop()};g.prototype.stepWithStatement=function(e,t,r){return t.Ca?(e.pop(),e=Jt(this,t.scope,t.value),new w(r.body,e)):(t.Ca=!0,new w(r.object,t.scope))};g.prototype.stepWhileStatement=g.prototype.stepDoWhileStatement;be.Interpreter=g;g.prototype.step=g.prototype.lb;g.prototype.run=g.prototype.Eb;g.prototype.appendCode=g.prototype.Jb;g.prototype.createObject=g.prototype.Aa;g.prototype.createObjectProto=g.prototype.s;g.prototype.createAsyncFunction=g.prototype.ub;g.prototype.createNativeFunction=g.prototype.i;g.prototype.getProperty=g.prototype.G;g.prototype.setProperty=g.prototype.g;g.prototype.nativeToPseudo=g.prototype.Ia;g.prototype.pseudoToNative=g.prototype.R;g.prototype.getGlobalScope=g.prototype.Xb;g.prototype.getStateStack=g.prototype.Yb;g.prototype.setStateStack=g.prototype.ec;g.VALUE_IN_DESCRIPTOR=qe;const ii=e=>e.split(`
|
|
9
|
+
`).map(t=>{const r=t.trim();if(t.includes("__awaiter"))return;if(!r.startsWith("state."))return t;const[i,a]=r.split("="),u=`setRootState('${i.replace("state.","").trim()}', ${a.trim()})`;return`
|
|
12
10
|
${t}
|
|
13
|
-
${
|
|
11
|
+
${u}
|
|
14
12
|
`}).filter(Boolean).join(`
|
|
15
|
-
`),
|
|
16
|
-
`),v=
|
|
13
|
+
`),_n=e=>e+"JSON",oi=({builder:e,context:t,event:r,rootState:n,localState:i,rootSetState:a,code:s})=>{const u={...n,...i},h=qn({builder:e,context:t,event:r,state:u}),p=h.map(([T])=>{const F=_n(T);return`var ${T} = ${F} === undefined ? undefined : JSON.parse(${F});`}).join(`
|
|
14
|
+
`),v=ii(s);if(v===""){y.logger.warn("Skipping evaluation of empty code block.");return}const b=`
|
|
17
15
|
function theFunction() {
|
|
18
|
-
${
|
|
16
|
+
${p}
|
|
19
17
|
|
|
20
18
|
${v}
|
|
21
19
|
}
|
|
22
20
|
theFunction();
|
|
23
|
-
`,D=(
|
|
21
|
+
`,D=(T,F)=>{const $=Jn(u,T,F);a==null||a($)},B=function(T,F){h.forEach(([$,Y])=>{const x=JSON.stringify(Y);T.setProperty(F,_n($),x)}),T.setProperty(F,"setRootState",T.createNativeFunction(D))};try{const T=new g(b,B);return T.run(),T.pseudoToNative(T.value)}catch(T){y.logger.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.",{e:T});return}},ai=e=>y.isBrowser()?Lr(e):oi(e);function Ze({code:e,context:t,localState:r,rootState:n,rootSetState:i,event:a,isExpression:s=!0}){if(e===""){y.logger.warn("Skipping evaluation of empty code block.");return}const u={code:_r(e,{isExpression:s}),builder:Dr(),context:t,event:a,rootSetState:i,rootState:n,localState:r};try{return ai(u)}catch(h){y.logger.error("Failed code evaluation: "+h.message,{code:e});return}}const si=({block:e,context:t,localState:r,rootState:n,rootSetState:i})=>{if(!e.bindings)return e;const a=y.fastClone(e),s={...a,properties:{...a.properties},actions:{...a.actions}};for(const u in e.bindings){const h=e.bindings[u],p=Ze({code:h,localState:r,rootState:n,rootSetState:i,context:t});Jn(s,u,p)}return s};function ut({block:e,context:t,shouldEvaluateBindings:r,localState:n,rootState:i,rootSetState:a}){const s=e;return r?si({block:s,localState:n,rootState:i,rootSetState:a,context:t}):s}const li=({block:e,context:t,registeredComponents:r})=>{var a;const n=(a=ut({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:a.name;if(!n)return null;const i=r[n];if(i)return i;console.warn(`
|
|
24
22
|
Could not find a registered component named "${n}".
|
|
25
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`)},
|
|
26
|
-
`),
|
|
27
|
-
${
|
|
23
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},ci=({block:e,context:t})=>{const{repeat:r,...n}=e;if(!(r!=null&&r.collection))return;const i=Ze({code:r.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(i))return;const a=r.collection.split(".").pop(),s=r.itemName||(a?a+"Item":"item");return i.map((h,p)=>({context:{...t,localState:{...t.localState,$index:p,$item:h,[s]:h,[`$${s}Index`]:p}},block:n}))},rr={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Ln=(e,t=rr)=>`@media (max-width: ${t[e].max}px)`,ir=({small:e,medium:t})=>{const r=y.fastClone(rr);if(!e||!t)return r;const n=Math.floor(e/2);r.small={max:e,min:n,default:n+1};const i=r.small.max+1;r.medium={max:t,min:i,default:i+1};const a=r.medium.max+1;return r.large={max:2e3,min:a,default:a+1},r},ui=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),or=e=>Object.entries(e).map(([r,n])=>{if(typeof n=="string")return`${ui(r)}: ${n};`}).filter(y.checkIsDefined),di=e=>or(e).join(`
|
|
24
|
+
`),Ut=({mediaQuery:e,className:t,styles:r})=>{const n=`.${t} {
|
|
25
|
+
${di(r)}
|
|
28
26
|
}`;return e?`${e} {
|
|
29
27
|
${n}
|
|
30
|
-
}`:n};function
|
|
28
|
+
}`:n};function ht(e){return d.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},id:e.id})}function fi(e){function t(){const n=ut({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return y.checkIsDefined(n.hide)?!n.hide:y.checkIsDefined(n.show)?n.show:!0}function r(){var T;const n=ut({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),i=n.responsiveStyles,a=e.context.content,s=ir(((T=a==null?void 0:a.meta)==null?void 0:T.breakpoints)||{}),u=i==null?void 0:i.large,h=i==null?void 0:i.medium,p=i==null?void 0:i.small,v=n.id;if(!v)return"";const b=u?Ut({className:v,styles:u}):"",D=h?Ut({className:v,styles:h,mediaQuery:Ln("medium",s)}):"",B=p?Ut({className:v,styles:p,mediaQuery:Ln("small",s)}):"";return[b,D,B].join(" ")}return d.jsx(d.Fragment,{children:r()&&t()?d.jsx(d.Fragment,{children:d.jsx(ht,{styles:r()})}):null})}function hi(e){return e.charAt(0).toUpperCase()+e.slice(1)}const mi=e=>`on${hi(e)}`,pi=(e,t)=>r=>Ze({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function ar(e){var n;const t={},r=(n=e.block.actions)!=null?n:{};for(const i in r){if(!r.hasOwnProperty(i))continue;const a=r[i];let s=mi(i);if(e.stripPrefix)switch(y.TARGET){case"vue":s=s.replace("v-on:","");break;case"svelte":s=s.replace("on:","");break}t[s]=pi(a,e)}return t}function gi({style:e}){return e}const yi=({block:e,context:t})=>sr(gi({style:e.style||{},context:t,block:e}));function sr(e){switch(y.TARGET){case"svelte":case"vue":case"solid":return or(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}function vi({properties:e}){return e}const xi=e=>({href:e.href});function nn({block:e,context:t}){var n;const r={...xi(e),...e.properties,"builder-id":e.id,style:yi({block:e,context:t}),[Ye()]:[e.id,"builder-block",e.class,(n=e.properties)==null?void 0:n.class].filter(Boolean).join(" ")};return vi({properties:r,context:t,block:e})}function bi(e){return d.jsx($t,{TagName:e.Wrapper,attributes:nn({block:e.block,context:e.context}),actionAttributes:ar({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function Si(e){return d.jsx(e.Wrapper,{...e.wrapperProps,attributes:e.includeBlockProps?{...nn({block:e.block,context:e.context}),...ar({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{},children:e.children})}const ki=({componentOptions:e,builderBlock:t,context:r,componentRef:n,includeBlockProps:i,isInteractive:a,contextValue:s})=>{const u={...e,...i?{attributes:nn({block:t,context:s})}:{}};return a?{Wrapper:n,block:t,context:r,wrapperProps:e,includeBlockProps:i}:u};function Wn(e){var n;const[t,r]=E.useState(()=>e.isInteractive?Si:e.componentRef);return d.jsx(d.Fragment,{children:e.componentRef?d.jsx(d.Fragment,{children:d.jsx(t,{...ki({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(n=e.blockChildren)==null?void 0:n.map(i=>d.jsx(mt,{block:i,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},i.id))})}):null})}function wi(e){const[t,r]=E.useState(()=>e.repeatContext);return d.jsx(Ht.Provider,{value:t,children:d.jsx(mt,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})})}function mt(e){var v,b,D;function t(){return li({block:e.block,context:e.context,registeredComponents:e.registeredComponents})}function r(){return ci({block:e.block,context:e.context})}function n(){var B;return(B=e.block.repeat)!=null&&B.collection?e.block:ut({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})}function i(){var T;return e.block.tagName==="a"||((T=n().properties)==null?void 0:T.href)||n().href?e.linkComponent||"a":e.block.tagName||"div"}function a(){var F,$;if((F=e.block.repeat)!=null&&F.collection)return!!(($=r==null?void 0:r())!=null&&$.length);const B="hide"in n()?n().hide:!1;return("show"in n()?n().show:!0)&&!B}function s(){var T,F;return!((T=t==null?void 0:t())!=null&&T.component)&&!r()?(F=n().children)!=null?F:[]:[]}function u(){var B,T,F,$,Y,x,V,Z,te;return{blockChildren:(B=n().children)!=null?B:[],componentRef:(T=t==null?void 0:t())==null?void 0:T.component,componentOptions:{...Ur(n()),builderContext:e.context,...((F=t==null?void 0:t())==null?void 0:F.name)==="Core:Button"||(($=t==null?void 0:t())==null?void 0:$.name)==="Symbol"||((Y=t==null?void 0:t())==null?void 0:Y.name)==="Columns"?{builderLinkComponent:e.linkComponent}:{},...((x=t==null?void 0:t())==null?void 0:x.name)==="Symbol"||((V=t==null?void 0:t())==null?void 0:V.name)==="Columns"?{builderComponents:e.registeredComponents}:{}},context:h,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:n(),includeBlockProps:((Z=t==null?void 0:t())==null?void 0:Z.noWrap)===!0,isInteractive:!((te=t==null?void 0:t())!=null&&te.isRSC)}}const[h,p]=E.useState(()=>e.context);return d.jsx(d.Fragment,{children:a()?d.jsxs(d.Fragment,{children:[d.jsx(fi,{block:e.block,context:e.context}),(v=t==null?void 0:t())!=null&&v.noWrap?d.jsx(d.Fragment,{children:d.jsx(Wn,{componentRef:u().componentRef,componentOptions:u().componentOptions,blockChildren:u().blockChildren,context:u().context,registeredComponents:u().registeredComponents,linkComponent:u().linkComponent,builderBlock:u().builderBlock,includeBlockProps:u().includeBlockProps,isInteractive:u().isInteractive})}):d.jsx(d.Fragment,{children:r()?d.jsx(d.Fragment,{children:(D=r())==null?void 0:D.map((B,T)=>d.jsx(wi,{repeatContext:B.context,block:B.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},T))}):d.jsx(d.Fragment,{children:d.jsxs(bi,{Wrapper:i(),block:n(),context:e.context,linkComponent:e.linkComponent,children:[d.jsx(Wn,{componentRef:u().componentRef,componentOptions:u().componentOptions,blockChildren:u().blockChildren,context:u().context,registeredComponents:u().registeredComponents,linkComponent:u().linkComponent,builderBlock:u().builderBlock,includeBlockProps:u().includeBlockProps,isInteractive:u().isInteractive}),(b=s())==null?void 0:b.map(B=>d.jsx(mt,{block:B,context:h,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},B.id))]})})})]}):null})}function Ci(e){function t(){var i;return"builder-blocks"+((i=e.blocks)!=null&&i.length?"":" no-blocks")}function r(){var i,a;y.isEditing()&&!((i=e.blocks)!=null&&i.length)&&((a=window.parent)==null||a.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function n(){var i,a;y.isEditing()&&!((i=e.blocks)!=null&&i.length)&&((a=window.parent)==null||a.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return d.jsxs(d.Fragment,{children:[d.jsx(e.BlocksWrapper,{className:t()+" props-blocks-wrapper-4f2c12d8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:i=>r(),onMouseEnter:i=>n(),onKeyPress:i=>r(),...e.BlocksWrapperProps,children:e.children}),d.jsx("style",{children:`.props-blocks-wrapper-4f2c12d8 {
|
|
31
29
|
display: flex;
|
|
32
30
|
flex-direction: column;
|
|
33
31
|
align-items: stretch;
|
|
34
|
-
}`})]})}function
|
|
32
|
+
}`})]})}function tt(e){var n,i,a;const t=E.useContext(Ht),r=E.useContext(Yn);return d.jsx(Ci,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(n=e.context)==null?void 0:n.BlocksWrapper,BlocksWrapperProps:(i=e.context)==null?void 0:i.BlocksWrapperProps,children:e.blocks?d.jsx(d.Fragment,{children:(a=e.blocks)==null?void 0:a.map(s=>d.jsx(mt,{block:s,linkComponent:e.linkComponent,context:e.context||t,registeredComponents:e.registeredComponents||r.registeredComponents},s.id))}):null})}function lr(e){var Y;const[t,r]=E.useState(()=>typeof e.space=="number"?e.space||0:20),[n,i]=E.useState(()=>e.columns||[]),[a,s]=E.useState(()=>e.stackColumnsAt||"tablet");function u(x){var V;return((V=n[x])==null?void 0:V.width)||100/n.length}function h(x){const V=t*(n.length-1)/n.length;return`calc(${u(x)}% - ${V}px)`}function p({stackedStyle:x,desktopStyle:V}){return a==="tablet"?x:V}function v({stackedStyle:x,desktopStyle:V}){return a==="never"?V:x}const[b,D]=E.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function B(){return{"--flex-dir":b,"--flex-dir-tablet":p({stackedStyle:b,desktopStyle:"row"})}}function T(x){const V=x===0?0:t,Z=h(x),te=`${V}px`,H="100%",ne=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:Z,["marginLeft"]:te,"--column-width-mobile":v({stackedStyle:H,desktopStyle:Z}),"--column-margin-left-mobile":v({stackedStyle:ne,desktopStyle:te}),"--column-width-tablet":p({stackedStyle:H,desktopStyle:Z}),"--column-margin-left-tablet":p({stackedStyle:ne,desktopStyle:te})}}function F(x){var Z,te;return ir(((te=(Z=e.builderContext.content)==null?void 0:Z.meta)==null?void 0:te.breakpoints)||{})[x].max}function $(){return`
|
|
35
33
|
@media (max-width: ${F("medium")}px) {
|
|
36
34
|
.${e.builderBlock.id}-breakpoints {
|
|
37
35
|
flex-direction: var(--flex-dir-tablet);
|
|
@@ -55,14 +53,10 @@ theFunction();
|
|
|
55
53
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
56
54
|
}
|
|
57
55
|
},
|
|
58
|
-
`}return
|
|
56
|
+
`}return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:`builder-columns ${e.builderBlock.id}-breakpoints div-6f826264`,style:B(),children:[d.jsx(d.Fragment,{children:d.jsx(ht,{styles:$()})}),(Y=e.columns)==null?void 0:Y.map((x,V)=>d.jsx($t,{TagName:x.link?e.builderLinkComponent||"a":"div",actionAttributes:{},attributes:{...x.link?{href:x.link}:{},[Ye()]:"builder-column",style:sr(T(V))},children:d.jsx(tt,{path:`component.options.columns.${V}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:x.blocks})},V))]}),d.jsx("style",{children:`.div-6f826264 {
|
|
59
57
|
display: flex;
|
|
60
58
|
line-height: normal;
|
|
61
|
-
}.div-
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: stretch;
|
|
65
|
-
}`})]})}function ar(e){return u.jsx("span",{children:e.children})}function Wn(e){return e.replace(/http(s)?:/,"")}function wi(e="",t,r){const n=new RegExp("([?&])"+t+"=.*?(&|$)","i"),i=e.indexOf("?")!==-1?"&":"?";return e.match(n)?e.replace(n,"$1"+t+"="+encodeURIComponent(r)+"$2"):e+i+t+"="+encodeURIComponent(r)}function ki(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return Wn(e);const r=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(r){const n=e.split(r[0]),i=r[3],a=t.match("x")?t:`${t}x`;return Wn(`${n[0]}_${a}${i}`)}return null}function Ut(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let r=e;const n=Number(e.split("?width=")[1]);return isNaN(n)||(r=`${r} ${n}w`),t.filter(i=>i!==n).map(i=>`${wi(e,"width",i)} ${i}w`).concat([r]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(r=>[ki(e,`${r}x${r}`),r]).filter(([r])=>!!r).map(([r,n])=>`${r} ${n}w`).concat([e]).join(", "):e}function sr(e){var i,a,s,d;function t(){var v;const m=e.image||e.src;if(!m||!(m.match(/builder\.io/)||m.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((v=e.image)!=null&&v.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),Ut(m)}else if(e.image&&!e.srcset)return Ut(m);return Ut(m)}function r(){var h;return(h=t==null?void 0:t())!=null&&h.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function n(){const h={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?h:void 0}return u.jsxs(u.Fragment,{children:[u.jsxs(u.Fragment,{children:[u.jsxs("picture",{children:[r()?u.jsx(u.Fragment,{children:u.jsx("source",{type:"image/webp",srcSet:r()})}):null,u.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...n()},className:"builder-image"+(e.className?" "+e.className:"")+" img-40c70c9b",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length&&e.fitContent)?u.jsx(u.Fragment,{children:u.jsx("div",{className:"builder-image-sizer div-40c70c9b",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(d=(s=e.builderBlock)==null?void 0:s.children)!=null&&d.length&&e.fitContent?u.jsx(u.Fragment,{children:e.children}):null,!e.fitContent&&e.children?u.jsx(u.Fragment,{children:u.jsx("div",{className:"div-40c70c9b-2",children:e.children})}):null]}),u.jsx("style",{children:`.img-40c70c9b {
|
|
59
|
+
}`})]})}function cr(e){return d.jsx("span",{children:e.children})}function Vn(e){return e.replace(/http(s)?:/,"")}function Ei(e="",t,r){const n=new RegExp("([?&])"+t+"=.*?(&|$)","i"),i=e.indexOf("?")!==-1?"&":"?";return e.match(n)?e.replace(n,"$1"+t+"="+encodeURIComponent(r)+"$2"):e+i+t+"="+encodeURIComponent(r)}function ji(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return Vn(e);const r=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(r){const n=e.split(r[0]),i=r[3],a=t.match("x")?t:`${t}x`;return Vn(`${n[0]}_${a}${i}`)}return null}function Dt(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let r=e;const n=Number(e.split("?width=")[1]);return isNaN(n)||(r=`${r} ${n}w`),t.filter(i=>i!==n).map(i=>`${Ei(e,"width",i)} ${i}w`).concat([r]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(r=>[ji(e,`${r}x${r}`),r]).filter(([r])=>!!r).map(([r,n])=>`${r} ${n}w`).concat([e]).join(", "):e}function ur(e){var i,a,s,u;function t(){var v;const p=e.image||e.src;if(!p||!(p.match(/builder\.io/)||p.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((v=e.image)!=null&&v.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),Dt(p)}else if(e.image&&!e.srcset)return Dt(p);return Dt(p)}function r(){var h;return(h=t==null?void 0:t())!=null&&h.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function n(){const h={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?h:void 0}return d.jsxs(d.Fragment,{children:[d.jsxs(d.Fragment,{children:[d.jsxs("picture",{children:[r()?d.jsx(d.Fragment,{children:d.jsx("source",{type:"image/webp",srcSet:r()})}):null,d.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...n()},className:"builder-image"+(e.className?" "+e.className:"")+" img-40c70c9b",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length&&e.fitContent)?d.jsx(d.Fragment,{children:d.jsx("div",{className:"builder-image-sizer div-40c70c9b",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(u=(s=e.builderBlock)==null?void 0:s.children)!=null&&u.length&&e.fitContent?d.jsx(d.Fragment,{children:e.children}):null,!e.fitContent&&e.children?d.jsx(d.Fragment,{children:d.jsx("div",{className:"div-40c70c9b-2",children:e.children})}):null]}),d.jsx("style",{children:`.img-40c70c9b {
|
|
66
60
|
opacity: 1;
|
|
67
61
|
transition: opacity 0.2s ease-in-out;
|
|
68
62
|
}.div-40c70c9b {
|
|
@@ -78,7 +72,7 @@ theFunction();
|
|
|
78
72
|
left: 0;
|
|
79
73
|
width: 100%;
|
|
80
74
|
height: 100%;
|
|
81
|
-
}`})]})}function lr(e){return u.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}const Ci={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},Ei={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){r.forEach(n=>{n.delete("width")})}const r=e.get("columns");Array.isArray(r)&&r.find(i=>i.get("width"))&&(r.find(a=>!a.get("width"))||r.reduce((d,h)=>d+h.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},ji={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]};function Ii(e){const t=k.useRef(null),[r,n]=k.useState(()=>[]),[i,a]=k.useState(()=>[]);return k.useEffect(()=>{var d;if(!((d=t.current)!=null&&d.getElementsByTagName)||typeof window=="undefined")return;const s=t.current.getElementsByTagName("script");for(let h=0;h<s.length;h++){const m=s[h];if(m.src){if(r.includes(m.src))continue;r.push(m.src);const v=document.createElement("script");v.async=!0,v.src=m.src,document.head.appendChild(v)}else if(!m.type||["text/javascript","application/javascript","application/ecmascript"].includes(m.type)){if(i.includes(m.innerText))continue;try{i.push(m.innerText),new Function(m.innerText)()}catch(v){console.warn("`CustomCode`: Error running script:",v)}}}},[]),u.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const Ti={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(n=>n.json()).then(n=>{e.get("url")===t&&(n.html?e.set("content",n.html):e.set("content","Invalid url, please try another"))}).catch(n=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},Ai=["text/javascript","application/javascript","application/ecmascript"],Ri=e=>Ai.includes(e.type);function Oi(e){const t=k.useRef(null),[r,n]=k.useState(()=>[]),[i,a]=k.useState(()=>[]),[s,d]=k.useState(()=>!1);function h(){if(!t.current||!t.current.getElementsByTagName)return;const m=t.current.getElementsByTagName("script");for(let v=0;v<m.length;v++){const x=m[v];if(x.src&&!r.includes(x.src)){r.push(x.src);const D=document.createElement("script");D.async=!0,D.src=x.src,document.head.appendChild(D)}else if(Ri(x)&&!i.includes(x.innerText))try{i.push(x.innerText),new Function(x.innerText)()}catch(D){console.warn("`Embed`: Error running script:",D)}}}return k.useEffect(()=>{t.current&&!s&&(d(!0),h())},[t.current,s]),u.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const Pi={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Ni={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function r(s,d=6e4){return new Promise((h,m)=>{const v=document.createElement("img");let x=!1;v.onload=()=>{x=!0,h(v)},v.addEventListener("error",D=>{console.warn("Image load failed",D.error),m(D.error)}),v.src=s,setTimeout(()=>{x||m(new Error("Image load timed out"))},d)})}function n(s){return Math.round(s*1e3)/1e3}const i=e.get("image"),a=e.get("aspectRatio");if(fetch(i).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),i&&(!a||a===.7041))return r(i).then(s=>{const d=e.get("aspectRatio");e.get("image")===i&&(!d||d===.7041)&&s.width&&s.height&&(e.set("aspectRatio",n(s.height/s.width)),e.set("height",s.height),e.set("width",s.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},Fi={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0};function Bi(e){return u.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},y.isEditing()&&e.imgSrc||"default-key")}const Mi={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>"}}}]},Ui={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]};function Di(e){var t,r,n;return u.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:u.jsx(et,{parent:(r=e.builderContext.context)==null?void 0:r.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(n=e.builderContext.rootState)==null?void 0:n[e.name]})})}const _i={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"}]},Wi={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}};function cr(e){var t;return u.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Vi={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]};function ur(e){var n,i,a,s,d,h,m;function t(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function r(){return{...t()}}return u.jsxs("div",{style:{position:"relative"},children:[u.jsx("video",{className:"builder-video",...r(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(n=e.attributes)==null?void 0:n.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:u.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length))?u.jsx(u.Fragment,{children:u.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}})}):null,(d=(s=e.builderBlock)==null?void 0:s.children)!=null&&d.length&&e.fitContent?u.jsx(u.Fragment,{children:u.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children})}):null,(m=(h=e.builderBlock)==null?void 0:h.children)!=null&&m.length&&!e.fitContent?u.jsx(u.Fragment,{children:u.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children})}):null]})}const Vn=()=>[{component:Gn,...Ci},{component:or,...Ei},{component:Ii,...ji},{component:Oi,...Ti},{component:ar,...Pi},{component:sr,...Ni},{component:Bi,...Fi},{component:lr,...Mi},{component:mr,..._i},{component:cr,...Wi},{component:ur,...Vi},{component:Di,...Ui}],Li=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
75
|
+
}`})]})}function dr(e){return d.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}const Ii={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},Ti={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){r.forEach(n=>{n.delete("width")})}const r=e.get("columns");Array.isArray(r)&&r.find(i=>i.get("width"))&&(r.find(a=>!a.get("width"))||r.reduce((u,h)=>u+h.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},Ai={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]};function Ri(e){const t=E.useRef(null),[r,n]=E.useState(()=>[]),[i,a]=E.useState(()=>[]);return E.useEffect(()=>{var u;if(!((u=t.current)!=null&&u.getElementsByTagName)||typeof window=="undefined")return;const s=t.current.getElementsByTagName("script");for(let h=0;h<s.length;h++){const p=s[h];if(p.src){if(r.includes(p.src))continue;r.push(p.src);const v=document.createElement("script");v.async=!0,v.src=p.src,document.head.appendChild(v)}else if(!p.type||["text/javascript","application/javascript","application/ecmascript"].includes(p.type)){if(i.includes(p.innerText))continue;try{i.push(p.innerText),new Function(p.innerText)()}catch(v){console.warn("`CustomCode`: Error running script:",v)}}}},[]),d.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const Oi={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(n=>n.json()).then(n=>{e.get("url")===t&&(n.html?e.set("content",n.html):e.set("content","Invalid url, please try another"))}).catch(n=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},Pi=["text/javascript","application/javascript","application/ecmascript"],Ni=e=>Pi.includes(e.type);function Fi(e){const t=E.useRef(null),[r,n]=E.useState(()=>[]),[i,a]=E.useState(()=>[]),[s,u]=E.useState(()=>!1);function h(){if(!t.current||!t.current.getElementsByTagName)return;const p=t.current.getElementsByTagName("script");for(let v=0;v<p.length;v++){const b=p[v];if(b.src&&!r.includes(b.src)){r.push(b.src);const D=document.createElement("script");D.async=!0,D.src=b.src,document.head.appendChild(D)}else if(Ni(b)&&!i.includes(b.innerText))try{i.push(b.innerText),new Function(b.innerText)()}catch(D){console.warn("`Embed`: Error running script:",D)}}}return E.useEffect(()=>{t.current&&!s&&(u(!0),h())},[t.current,s]),d.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const Bi={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Mi={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function r(s,u=6e4){return new Promise((h,p)=>{const v=document.createElement("img");let b=!1;v.onload=()=>{b=!0,h(v)},v.addEventListener("error",D=>{console.warn("Image load failed",D.error),p(D.error)}),v.src=s,setTimeout(()=>{b||p(new Error("Image load timed out"))},u)})}function n(s){return Math.round(s*1e3)/1e3}const i=e.get("image"),a=e.get("aspectRatio");if(fetch(i).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),i&&(!a||a===.7041))return r(i).then(s=>{const u=e.get("aspectRatio");e.get("image")===i&&(!u||u===.7041)&&s.width&&s.height&&(e.set("aspectRatio",n(s.height/s.width)),e.set("height",s.height),e.set("width",s.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},Ui={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0};function Di(e){return d.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},y.isEditing()&&e.imgSrc||"default-key")}const _i={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},Li={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]};function Wi(e){var t,r,n;return d.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:d.jsx(tt,{parent:(r=e.builderContext.context)==null?void 0:r.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(n=e.builderContext.rootState)==null?void 0:n[e.name]})})}const Vi={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"}]},$i={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}};function fr(e){var t;return d.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Hi={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]};function hr(e){var n,i,a,s,u,h,p;function t(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function r(){return{...t()}}return d.jsxs("div",{style:{position:"relative"},children:[d.jsx("video",{className:"builder-video",...r(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(n=e.attributes)==null?void 0:n.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:d.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length))?d.jsx(d.Fragment,{children:d.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}})}):null,(u=(s=e.builderBlock)==null?void 0:s.children)!=null&&u.length&&e.fitContent?d.jsx(d.Fragment,{children:d.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children})}):null,(p=(h=e.builderBlock)==null?void 0:h.children)!=null&&p.length&&!e.fitContent?d.jsx(d.Fragment,{children:d.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children})}):null]})}const $n=()=>[{component:Xn,...Ii},{component:lr,...Ti},{component:Ri,...Ai},{component:Fi,...Oi},{component:cr,...Bi},{component:ur,...Mi},{component:Di,...Ui},{component:dr,..._i},{component:vr,...Vi},{component:fr,...$i},{component:hr,...Hi},{component:Wi,...Li}],Ki=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
82
76
|
function getAndSetVariantId() {
|
|
83
77
|
function setCookie(name, value, days) {
|
|
84
78
|
let expires = '';
|
|
@@ -134,7 +128,7 @@ theFunction();
|
|
|
134
128
|
}).join('');
|
|
135
129
|
styleEl.innerHTML = newStyleStr;
|
|
136
130
|
}
|
|
137
|
-
}
|
|
131
|
+
}`,Gi=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
138
132
|
if (!navigator.cookieEnabled) {
|
|
139
133
|
return;
|
|
140
134
|
}
|
|
@@ -168,31 +162,35 @@ theFunction();
|
|
|
168
162
|
thisScriptEl?.remove();
|
|
169
163
|
}
|
|
170
164
|
return;
|
|
171
|
-
}`,
|
|
172
|
-
window.${
|
|
173
|
-
window.${
|
|
174
|
-
`,
|
|
175
|
-
window.${
|
|
176
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
177
|
-
)`,
|
|
178
|
-
"${t}", "${e}", ${
|
|
179
|
-
)`;function Vt(e){return
|
|
165
|
+
}`,mr="builderIoAbTest",pr="builderIoRenderContent",ct=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),zi=({canTrack:e,content:t})=>!(!(ct(t).length>0)||!e||y.isBrowser()),Xi=e=>e==="react"||e==="reactNative",gr=Xi(y.TARGET),Yi=()=>`
|
|
166
|
+
window.${mr} = ${Ki}
|
|
167
|
+
window.${pr} = ${Gi}
|
|
168
|
+
`,qi=(e,t)=>`
|
|
169
|
+
window.${mr}(
|
|
170
|
+
"${t}",${JSON.stringify(e)}, ${gr}
|
|
171
|
+
)`,Ji=({contentId:e,variationId:t})=>`window.${pr}(
|
|
172
|
+
"${t}", "${e}", ${gr}
|
|
173
|
+
)`;function Vt(e){return d.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id||""})}const Zi=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function yr(e,t){const r=new URL(t.origin),n=r.hostname;return(e||Zi).findIndex(i=>i.startsWith("*.")?n.endsWith(i.slice(1)):i===n)>-1}function Hn(e){return Math.round(e*1e3)/1e3}const Qi=(e,t,r=!0)=>{if(!(e instanceof HTMLElement))return null;let n=r?e:e.parentElement;do{if(!n)return null;if(t(n))return n}while(n=n.parentElement);return null},eo=e=>Qi(e,t=>{const r=t.getAttribute("builder-id")||t.id;return(r==null?void 0:r.indexOf("builder-"))===0}),Kn=({event:e,target:t})=>{const r=t.getBoundingClientRect(),n=e.clientX-r.left,i=e.clientY-r.top,a=Hn(n/r.width),s=Hn(i/r.height);return{x:a,y:s}},to=e=>{const t=e.target,r=t&&eo(t),n=(r==null?void 0:r.getAttribute("builder-id"))||(r==null?void 0:r.id);return{targetBuilderElement:n||void 0,metadata:{targetOffset:t?Kn({event:e,target:t}):void 0,builderTargetOffset:r?Kn({event:e,target:r}):void 0,builderElementIndex:r&&n?[].slice.call(document.getElementsByClassName(n)).indexOf(r):void 0}}},no="0.12.4",ro=()=>{y.register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let Gn=!1;const io=(e={})=>{var t,r;Gn||(Gn=!0,y.isBrowser()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:y.TARGET,version:no,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(r=window.parent)==null||r.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",n=>{var a,s;if(!yr(e.trustedHosts,n))return;const{data:i}=n;if(i!=null&&i.type)switch(i.type){case"builder.evaluate":{const u=i.data.text,h=i.data.arguments||[],p=i.data.id,v=new Function(u);let b,D=null;try{b=v.apply(null,h)}catch(B){D=B}D?(a=window.parent)==null||a.postMessage({type:"builder.evaluateError",data:{id:p,error:D.message}},"*"):b&&typeof b.then=="function"?b.then(B=>{var T;(T=window.parent)==null||T.postMessage({type:"builder.evaluateResult",data:{id:p,result:B}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:b,id:p}},"*");break}}})))};function oo(e){var ne,I,Se,W,ke,le,K;const t=E.useRef(null),[r,n]=E.useState(()=>0);E.useState(()=>!0);function i(C){var R,M;const A={...e.builderContextSignal.rootState,...C};e.builderContextSignal.rootSetState?(M=(R=e.builderContextSignal).rootSetState)==null||M.call(R,A):e.setBuilderContextSignal(_=>({..._,rootState:A}))}function a(C){var R,M,_,G,we;const A={...e.builderContextSignal.content,...C,data:{...(R=e.builderContextSignal.content)==null?void 0:R.data,...C==null?void 0:C.data},meta:{...(M=e.builderContextSignal.content)==null?void 0:M.meta,...C==null?void 0:C.meta,breakpoints:((_=C==null?void 0:C.meta)==null?void 0:_.breakpoints)||((we=(G=e.builderContextSignal.content)==null?void 0:G.meta)==null?void 0:we.breakpoints)}};e.setBuilderContextSignal(nt=>({...nt,content:A}))}E.useState(()=>0);const[s,u]=E.useState(()=>!1),[h,p]=E.useState(()=>e.contentWrapper||"div");function v(C){var R;if(!yr(e.trustedHosts,C))return;const{data:A}=C;if(A)switch(A.type){case"builder.configureSdk":{const M=A.data,{breakpoints:_,contentId:G}=M;if(!G||G!==((R=e.builderContextSignal.content)==null?void 0:R.id))return;_&&a({meta:{breakpoints:_}}),n(r+1);break}case"builder.contentUpdate":{const M=A.data,_=M.key||M.alias||M.entry||M.modelName,G=M.data;_===e.model&&(a(G),n(r+1));break}}}function b(){var A,R;const C=(R=(A=e.builderContextSignal.content)==null?void 0:A.data)==null?void 0:R.jsCode;C&&Ze({code:C,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[D,B]=E.useState(()=>({})),[T,F]=E.useState(()=>!1);function $(C){var A,R;if(e.builderContextSignal.content){const M=(A=e.builderContextSignal.content)==null?void 0:A.testVariationId,_=(R=e.builderContextSignal.content)==null?void 0:R.id;y._track({type:"click",canTrack:y.getDefaultCanTrack(e.canTrack),contentId:_,apiKey:e.apiKey,variationId:M!==_?M:void 0,...to(C),unique:!T})}T||F(!0)}function Y(C){return C.replace(/{{([^}]+)}}/g,(A,R)=>Ze({code:R,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function x({url:C,key:A}){y.fetch(C).then(R=>R.json()).then(R=>{var _,G;const M={...e.builderContextSignal.rootState,[A]:R};(G=(_=e.builderContextSignal).rootSetState)==null||G.call(_,M),D[A]=!0}).catch(R=>{console.error("error fetching dynamic data",C,R)})}function V(){var A,R,M;const C=(M=(R=(A=e.builderContextSignal.content)==null?void 0:A.data)==null?void 0:R.httpRequests)!=null?M:{};Object.entries(C).forEach(([_,G])=>{if(G&&(!D[_]||y.isEditing())){const we=Y(G);x({url:we,key:_})}})}function Z(){y.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:y.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function te(C){n(r+1),window.addEventListener("message",v),ro(),io({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(A=>{var M;const R=y.createRegisterComponentMessage(A);(M=window.parent)==null||M.postMessage(R,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",Z)}function H(C){const A=new URL(location.href).searchParams,R=A.get("builder.preview"),M=A.get(`builder.preview.${R}`),_=A.get("apiKey")||A.get("builder.space");R===e.model&&_===e.apiKey&&(!e.content||M===e.content.id)&&y.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(G=>{G&&a(G)})}return E.useEffect(()=>{var C;return(C=t.current)==null||C.addEventListener("initeditingbldr",te),()=>{var A;return(A=t.current)==null?void 0:A.removeEventListener("initeditingbldr",te)}},[]),E.useEffect(()=>{var C;return(C=t.current)==null||C.addEventListener("initpreviewingbldr",H),()=>{var A;return(A=t.current)==null?void 0:A.removeEventListener("initpreviewingbldr",H)}},[]),E.useEffect(()=>{var C,A;if(y.isBrowser()){if(y.isEditing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&y.getDefaultCanTrack(e.canTrack)){const M=(C=e.builderContextSignal.content)==null?void 0:C.testVariationId,_=(A=e.builderContextSignal.content)==null?void 0:A.id,G=e.apiKey;y._track({type:"impression",canTrack:!0,contentId:_,apiKey:G,variationId:M!==_?M:void 0})}y.isPreviewing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"))}},[]),E.useEffect(()=>{e.apiKey||y.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),b(),V(),Z()},[]),E.useEffect(()=>{e.content&&a(e.content)},[e.content]),E.useEffect(()=>{},[s]),E.useEffect(()=>{b()},[(I=(ne=e.builderContextSignal.content)==null?void 0:ne.data)==null?void 0:I.jsCode,e.builderContextSignal.rootState]),E.useEffect(()=>{V()},[(W=(Se=e.builderContextSignal.content)==null?void 0:Se.data)==null?void 0:W.httpRequests]),E.useEffect(()=>{Z()},[e.builderContextSignal.rootState]),E.useEffect(()=>{e.data&&i(e.data)},[e.data]),E.useEffect(()=>{e.locale&&i({locale:e.locale})},[e.locale]),E.useEffect(()=>()=>{y.isBrowser()&&(window.removeEventListener("message",v),window.removeEventListener("builder:component:stateChangeListenerActivated",Z))},[]),d.jsx(Ht.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?d.jsx(d.Fragment,{children:E.createElement(h,{key:r,ref:t,onClick:C=>$(C),"builder-content-id":(ke=e.builderContextSignal.content)==null?void 0:ke.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps,className:`variant-${((le=e.content)==null?void 0:le.testVariationId)||((K=e.content)==null?void 0:K.id)}`},e.children)}):null})}const ao=e=>{var a,s;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),r=t.split(",")[0],n=(s=e.fileUrl)!=null?s:(a=e==null?void 0:e.files)==null?void 0:a.regular;let i="";if(n&&t&&r&&(i+=`
|
|
180
174
|
@font-face {
|
|
181
175
|
font-family: "${t}";
|
|
182
176
|
src: local("${r}"), url('${n}') format('woff2');
|
|
183
177
|
font-display: fallback;
|
|
184
178
|
font-weight: 400;
|
|
185
179
|
}
|
|
186
|
-
`.trim()),e.files)for(const
|
|
180
|
+
`.trim()),e.files)for(const u in e.files){if(!(String(Number(u))===u))continue;const p=e.files[u];p&&p!==n&&(i+=`
|
|
187
181
|
@font-face {
|
|
188
182
|
font-family: "${t}";
|
|
189
|
-
src: url('${
|
|
183
|
+
src: url('${p}') format('woff2');
|
|
190
184
|
font-display: fallback;
|
|
191
|
-
font-weight: ${
|
|
185
|
+
font-weight: ${u};
|
|
186
|
+
}
|
|
187
|
+
`.trim())}return i},so=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(r=>ao(r)))==null?void 0:t.join(" "))||""},lo=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"";function co(e){const[t,r]=E.useState(()=>`
|
|
188
|
+
${lo({cssCode:e.cssCode,contentId:e.contentId})}
|
|
189
|
+
${so({customFonts:e.customFonts})}
|
|
190
|
+
|
|
191
|
+
.builder-button {
|
|
192
|
+
all: unset;
|
|
192
193
|
}
|
|
193
|
-
`.trim())}return i},io=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(r=>ro(r)))==null?void 0:t.join(" "))||""},oo=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"";function ao(e){const[t,r]=k.useState(()=>`
|
|
194
|
-
${oo({cssCode:e.cssCode,contentId:e.contentId})}
|
|
195
|
-
${io({customFonts:e.customFonts})}
|
|
196
194
|
|
|
197
195
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
198
196
|
margin: 0;
|
|
@@ -206,4 +204,4 @@ ${io({customFonts:e.customFonts})}
|
|
|
206
204
|
text-align: inherit;
|
|
207
205
|
font-family: inherit;
|
|
208
206
|
}
|
|
209
|
-
`.trim());return
|
|
207
|
+
`.trim());return d.jsx(ht,{styles:t})}const uo=({content:e,data:t,locale:r})=>{var a,s,u;const n={},i=((a=e==null?void 0:e.data)==null?void 0:a.state)||{};return(u=(s=e==null?void 0:e.data)==null?void 0:s.inputs)==null||u.forEach(h=>{h.name&&h.defaultValue!==void 0&&(n[h.name]=h.defaultValue)}),{...n,...i,...t,...r?{locale:r}:{}}},fo=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function zn(e){var h,p,v,b,D,B,T;const[t,r]=E.useState(()=>{var F,$;return Ji({variationId:(F=e.content)==null?void 0:F.testVariationId,contentId:($=e.content)==null?void 0:$.id})});function n(F){u($=>({...$,rootState:F}))}const[i,a]=E.useState(()=>[...$n(),...y.components,...e.customComponents||[]].reduce((F,{component:$,...Y})=>({...F,[Y.name]:{component:$,...y.serializeComponentInfo(Y)}}),{})),[s,u]=E.useState(()=>({content:fo({content:e.content,data:e.data}),localState:void 0,rootState:uo({content:e.content,data:e.data,locale:e.locale}),rootSetState:n,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...$n(),...y.components,...e.customComponents||[]].reduce((F,{component:$,...Y})=>({...F,[Y.name]:y.serializeComponentInfo(Y)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}}));return d.jsx(Yn.Provider,{value:{registeredComponents:i},children:d.jsxs(oo,{content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,showContent:e.showContent,builderContextSignal:s,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,linkComponent:e.linkComponent,trustedHosts:e.trustedHosts,setBuilderContextSignal:u,children:[e.isSsrAbTest?d.jsx(d.Fragment,{children:d.jsx(Vt,{scriptStr:t})}):null,d.jsx(d.Fragment,{children:d.jsx(co,{contentId:(h=s.content)==null?void 0:h.id,cssCode:(v=(p=s.content)==null?void 0:p.data)==null?void 0:v.cssCode,customFonts:(D=(b=s.content)==null?void 0:b.data)==null?void 0:D.customFonts})}),d.jsx(tt,{blocks:(T=(B=s.content)==null?void 0:B.data)==null?void 0:T.blocks,context:s,registeredComponents:i,linkComponent:e.linkComponent})]})})}function rn(e){var s,u;const[t,r]=E.useState(()=>zi({canTrack:y.getDefaultCanTrack(e.canTrack),content:e.content}));function n(){var h;return qi(ct(e.content).map(p=>({id:p.testVariationId,testRatio:p.testRatio})),((h=e.content)==null?void 0:h.id)||"")}function i(){return ct(e.content).map(h=>`.variant-${h.testVariationId} { display: none; } `).join("")}function a(){var h;return t?{...e.content,testVariationId:(h=e.content)==null?void 0:h.id}:y.handleABTestingSync({item:e.content,canTrack:y.getDefaultCanTrack(e.canTrack)})}return E.useEffect(()=>{},[]),d.jsxs(d.Fragment,{children:[!e.__isNestedRender&&y.TARGET!=="reactNative"?d.jsx(d.Fragment,{children:d.jsx(Vt,{scriptStr:Yi()})}):null,t?d.jsxs(d.Fragment,{children:[d.jsx(ht,{id:`variants-styles-${(s=e.content)==null?void 0:s.id}`,styles:i()}),d.jsx(Vt,{scriptStr:n()}),(u=ct(e.content))==null?void 0:u.map(h=>d.jsx(zn,{content:h,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,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},h.testVariationId))]}):null,d.jsx(zn,{content:a(),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,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}const ho=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return y.fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(r=>{y.logger.error("Could not fetch symbol content: ",r)})};function vr(e){var a,s,u,h;function t(){var p,v;return[e.attributes[Ye()],"builder-symbol",(p=e.symbol)!=null&&p.inline?"builder-inline-symbol":void 0,(v=e.symbol)!=null&&v.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")}const[r,n]=E.useState(()=>{var p;return(p=e.symbol)==null?void 0:p.content});function i(){r||ho({symbol:e.symbol,builderContextValue:e.builderContext}).then(p=>{p&&n(p)})}return E.useEffect(()=>{},[]),E.useEffect(()=>{i()},[e.symbol]),d.jsx("div",{...e.attributes,className:t(),children:d.jsx(rn,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(a=e.builderBlock)==null?void 0:a.id},customComponents:Object.values(e.builderComponents),data:{...(s=e.symbol)==null?void 0:s.data,...e.builderContext.localState,...(u=r==null?void 0:r.data)==null?void 0:u.state},model:(h=e.symbol)==null?void 0:h.model,content:r,linkComponent:e.builderLinkComponent})})}const mo=tt,po=rn;exports._processContentResult=y._processContentResult;exports.createRegisterComponentMessage=y.createRegisterComponentMessage;exports.fetchBuilderProps=y.fetchBuilderProps;exports.fetchEntries=y.fetchEntries;exports.fetchOneEntry=y.fetchOneEntry;exports.getAllContent=y.getAllContent;exports.getBuilderSearchParams=y.getBuilderSearchParams;exports.getContent=y.getContent;exports.isEditing=y.isEditing;exports.isPreviewing=y.isPreviewing;exports.register=y.register;exports.setEditorSettings=y.setEditorSettings;exports.track=y.track;exports.Blocks=tt;exports.Button=Xn;exports.Columns=lr;exports.Content=rn;exports.Fragment=cr;exports.Image=ur;exports.RenderBlocks=mo;exports.RenderContent=po;exports.Section=dr;exports.Symbol=vr;exports.Text=fr;exports.Video=hr;
|