@builder.io/sdk-react-nextjs 0.12.2 → 0.12.3

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.
Files changed (27) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-4b1b3c99.cjs → USE_CLIENT_BUNDLE-64b6ec10.cjs} +3 -5
  2. package/lib/{node/USE_CLIENT_BUNDLE-d30db795.js → browser/USE_CLIENT_BUNDLE-e89d3175.js} +76 -80
  3. package/lib/{edge/USE_SERVER_BUNDLE-70c27ea1.js → browser/USE_SERVER_BUNDLE-d6bec4ec.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-f0eeb33e.cjs → browser/USE_SERVER_BUNDLE-f34c0814.cjs} +1 -1
  5. package/lib/browser/{bundle-1d763be7.cjs → bundle-50ff23eb.cjs} +6 -2
  6. package/lib/browser/{bundle-d905bf70.js → bundle-f3e8cd29.js} +6 -2
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{node/USE_CLIENT_BUNDLE-def5165a.cjs → edge/USE_CLIENT_BUNDLE-2aed408a.cjs} +3 -5
  10. package/lib/{browser/USE_CLIENT_BUNDLE-550679f9.js → edge/USE_CLIENT_BUNDLE-a3258a60.js} +76 -80
  11. package/lib/{node/USE_SERVER_BUNDLE-610c83b3.js → edge/USE_SERVER_BUNDLE-4e9af8f5.js} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-a5db98bc.cjs → edge/USE_SERVER_BUNDLE-e79e6b55.cjs} +1 -1
  13. package/lib/edge/{bundle-834dbf29.js → bundle-cb191300.js} +6 -2
  14. package/lib/edge/{bundle-25fa71b1.cjs → bundle-d4f509a3.cjs} +6 -2
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-aa38a343.js → node/USE_CLIENT_BUNDLE-98a4fbf4.js} +76 -80
  18. package/lib/{edge/USE_CLIENT_BUNDLE-edb18eb8.cjs → node/USE_CLIENT_BUNDLE-990b655a.cjs} +3 -5
  19. package/lib/{browser/USE_SERVER_BUNDLE-464dccd7.js → node/USE_SERVER_BUNDLE-b231d861.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-6234c5ea.cjs → node/USE_SERVER_BUNDLE-c86a1fb8.cjs} +1 -1
  21. package/lib/node/{bundle-1f73ead0.js → bundle-11daeaca.js} +6 -2
  22. package/lib/node/{bundle-4efd9623.cjs → bundle-b2d68b60.cjs} +6 -2
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +1 -1
  26. package/types/cjs/constants/sdk-version.d.ts +1 -1
  27. package/types/esm/constants/sdk-version.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";const io=require("lru-cache"),m=require("react/jsx-runtime"),ao=require("react"),Q=require("./USE_CLIENT_BUNDLE-edb18eb8.cjs");require("next/navigation");function so(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const st="[Builder.io]: ",Y={log:(...e)=>console.log(st,...e),error:(...e)=>console.error(st,...e),warn:(...e)=>console.warn(st,...e),debug:(...e)=>console.debug(st,...e)};function K(){return typeof window<"u"&&typeof document<"u"}const ve="rsc";function lo(){return K()&&window.self!==window.top}function pt(){return lo()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const co=()=>{if(K()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},uo=()=>typeof navigator=="object"&&navigator.userAgent||"",lr=()=>{const e=uo(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||ve==="reactNative"}},n=e.match(/Tablet|iPad/i),r=co();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},cr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),fo=()=>({isEditing:pt(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>lr()}),po=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,ho=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:a,rootState:s})=>{const u=cr({builder:t,context:n,event:r,state:mo(s,o,a)});return new Function(...u.map(([d])=>d),e)(...u.map(([,d])=>d))};function mo(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(r,o)=>t&&o in t?t[o]:e[o],set:(r,o,a)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[o]=a,n==null||n(e),!0}})}const ur=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,a,s)=>Object(o[a])===o[a]?o[a]:o[a]=Math.abs(Number(r[s+1]))>>0===+r[s+1]?[]:{},e)[r[r.length-1]]=n,e};var N,go=function(e){function t(i){return 48>i?i===36:58>i?!0:65>i?!1:91>i?!0:97>i?i===95:123>i?!0:170<=i&&ro.test(String.fromCharCode(i))}function n(i){return 65>i?i===36:91>i?!0:97>i?i===95:123>i?!0:170<=i&&Wn.test(String.fromCharCode(i))}function r(i,l){for(var c=g,p=1,j=0;;){at.lastIndex=j;var D=at.exec(c);if(D&&D.index<i)++p,j=D.index+D[0].length;else break}throw c={line:p,ab:i-j},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=i,l.X=c,l.o=f,l}function o(i){i=i.split(" ");for(var l=Object.create(null),c=0;c<i.length;c++)l[i[c]]=!0;return function(p){return l[p]||!1}}function a(){this.line=be,this.ab=f-oe}function s(i,l){ke=f,A.C&&(Tt=new a),I=i,d(),Z=l,Be=i.m}function u(){for(var i=f,l=A.va&&A.C&&new a,c=g.charCodeAt(f+=2);f<we&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=g.charCodeAt(f);A.va&&A.va(!1,g.slice(i+2,f),i,f,l,A.C&&new a)}function d(){for(;f<we;){var i=g.charCodeAt(f);if(i===32)++f;else if(i===13)++f,i=g.charCodeAt(f),i===10&&++f,A.C&&(++be,oe=f);else if(i===10||i===8232||i===8233)++f,A.C&&(++be,oe=f);else if(8<i&&14>i)++f;else if(i===47)if(i=g.charCodeAt(f+1),i===42){i=void 0;var l=A.va&&A.C&&new a,c=f,p=g.indexOf("*/",f+=2);if(p===-1&&r(f-2,"Unterminated comment"),f=p+2,A.C)for(at.lastIndex=c;(i=at.exec(g))&&i.index<f;)++be,oe=i.index+i[0].length;A.va&&A.va(!0,g.slice(c+2,p),c,f,l,A.C&&new a)}else if(i===47)u();else break;else if(i===160)++f;else if(5760<=i&&no.test(String.fromCharCode(i)))++f;else break}}function k(i){switch(i){case 46:i=g.charCodeAt(f+1),48<=i&&57>=i?C(!0):(++f,s(Fn));return;case 40:return++f,s(ie);case 41:return++f,s(te);case 59:return++f,s(ae);case 44:return++f,s(ge);case 91:return++f,s(Vt);case 93:return++f,s(_t);case 123:return++f,s(Ve);case 125:return++f,s(Ee);case 58:return++f,s(_e);case 63:return++f,s(Bn);case 48:if(i=g.charCodeAt(f+1),i===120||i===88){f+=2,i=O(16),i===null&&r(_+2,"Expected hexadecimal number"),n(g.charCodeAt(f))&&r(f,"Identifier directly after number"),s(Ue,i);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return C(!1);case 34:case 39:f++;for(var l="";;){f>=we&&r(_,"Unterminated string constant");var c=g.charCodeAt(f);if(c===i){++f,s(nt,l);break}if(c===92){c=g.charCodeAt(++f);var p=/^[0-7]+/.exec(g.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)z&&r(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),f+=p.length-1;else switch(c){case 110:l+=`
1
+ "use strict";const io=require("lru-cache"),m=require("react/jsx-runtime"),ao=require("react"),Q=require("./USE_CLIENT_BUNDLE-2aed408a.cjs");require("next/navigation");function so(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const st="[Builder.io]: ",Y={log:(...e)=>console.log(st,...e),error:(...e)=>console.error(st,...e),warn:(...e)=>console.warn(st,...e),debug:(...e)=>console.debug(st,...e)};function K(){return typeof window<"u"&&typeof document<"u"}const ve="rsc";function lo(){return K()&&window.self!==window.top}function pt(){return lo()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const co=()=>{if(K()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},uo=()=>typeof navigator=="object"&&navigator.userAgent||"",lr=()=>{const e=uo(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||ve==="reactNative"}},n=e.match(/Tablet|iPad/i),r=co();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},cr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),fo=()=>({isEditing:pt(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>lr()}),po=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,ho=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:a,rootState:s})=>{const u=cr({builder:t,context:n,event:r,state:mo(s,o,a)});return new Function(...u.map(([d])=>d),e)(...u.map(([,d])=>d))};function mo(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(r,o)=>t&&o in t?t[o]:e[o],set:(r,o,a)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[o]=a,n==null||n(e),!0}})}const ur=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,a,s)=>Object(o[a])===o[a]?o[a]:o[a]=Math.abs(Number(r[s+1]))>>0===+r[s+1]?[]:{},e)[r[r.length-1]]=n,e};var N,go=function(e){function t(i){return 48>i?i===36:58>i?!0:65>i?!1:91>i?!0:97>i?i===95:123>i?!0:170<=i&&ro.test(String.fromCharCode(i))}function n(i){return 65>i?i===36:91>i?!0:97>i?i===95:123>i?!0:170<=i&&Wn.test(String.fromCharCode(i))}function r(i,l){for(var c=g,p=1,j=0;;){at.lastIndex=j;var D=at.exec(c);if(D&&D.index<i)++p,j=D.index+D[0].length;else break}throw c={line:p,ab:i-j},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=i,l.X=c,l.o=f,l}function o(i){i=i.split(" ");for(var l=Object.create(null),c=0;c<i.length;c++)l[i[c]]=!0;return function(p){return l[p]||!1}}function a(){this.line=be,this.ab=f-oe}function s(i,l){ke=f,A.C&&(Tt=new a),I=i,d(),Z=l,Be=i.m}function u(){for(var i=f,l=A.va&&A.C&&new a,c=g.charCodeAt(f+=2);f<we&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=g.charCodeAt(f);A.va&&A.va(!1,g.slice(i+2,f),i,f,l,A.C&&new a)}function d(){for(;f<we;){var i=g.charCodeAt(f);if(i===32)++f;else if(i===13)++f,i=g.charCodeAt(f),i===10&&++f,A.C&&(++be,oe=f);else if(i===10||i===8232||i===8233)++f,A.C&&(++be,oe=f);else if(8<i&&14>i)++f;else if(i===47)if(i=g.charCodeAt(f+1),i===42){i=void 0;var l=A.va&&A.C&&new a,c=f,p=g.indexOf("*/",f+=2);if(p===-1&&r(f-2,"Unterminated comment"),f=p+2,A.C)for(at.lastIndex=c;(i=at.exec(g))&&i.index<f;)++be,oe=i.index+i[0].length;A.va&&A.va(!0,g.slice(c+2,p),c,f,l,A.C&&new a)}else if(i===47)u();else break;else if(i===160)++f;else if(5760<=i&&no.test(String.fromCharCode(i)))++f;else break}}function k(i){switch(i){case 46:i=g.charCodeAt(f+1),48<=i&&57>=i?C(!0):(++f,s(Fn));return;case 40:return++f,s(ie);case 41:return++f,s(te);case 59:return++f,s(ae);case 44:return++f,s(ge);case 91:return++f,s(Vt);case 93:return++f,s(_t);case 123:return++f,s(Ve);case 125:return++f,s(Ee);case 58:return++f,s(_e);case 63:return++f,s(Bn);case 48:if(i=g.charCodeAt(f+1),i===120||i===88){f+=2,i=O(16),i===null&&r(_+2,"Expected hexadecimal number"),n(g.charCodeAt(f))&&r(f,"Identifier directly after number"),s(Ue,i);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return C(!1);case 34:case 39:f++;for(var l="";;){f>=we&&r(_,"Unterminated string constant");var c=g.charCodeAt(f);if(c===i){++f,s(nt,l);break}if(c===92){c=g.charCodeAt(++f);var p=/^[0-7]+/.exec(g.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)z&&r(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),f+=p.length-1;else switch(c){case 110:l+=`
2
2
  `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(w(2));break;case 117:l+=String.fromCharCode(w(4));break;case 85:l+=String.fromCharCode(w(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:g.charCodeAt(f)===10&&++f;case 10:A.C&&(oe=f,++be);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||r(_,"Unterminated string constant"),l+=String.fromCharCode(c),++f}return;case 47:i=g.charCodeAt(f+1),Be?(++f,P()):i===61?b(Se,2):b(Mn,1);return;case 37:case 42:g.charCodeAt(f+1)===61?b(Se,2):b(Qr,1);return;case 124:case 38:l=g.charCodeAt(f+1),l===i?b(i===124?_n:Dn,2):l===61?b(Se,2):b(i===124?Gr:Jr,1);return;case 94:g.charCodeAt(f+1)===61?b(Se,2):b(Xr,1);return;case 43:case 45:l=g.charCodeAt(f+1),l===i?l===45&&g.charCodeAt(f+2)===62&&it.test(g.slice(me,f))?(f+=3,u(),d(),E()):b(Kr,2):l===61?b(Se,2):b(Zr,1);return;case 60:case 62:l=g.charCodeAt(f+1),c=1,l===i?(c=i===62&&g.charCodeAt(f+2)===62?3:2,g.charCodeAt(f+c)===61?b(Se,c+1):b(qr,c)):l===33&&i===60&&g.charCodeAt(f+2)===45&&g.charCodeAt(f+3)===45?(f+=4,u(),d(),E()):(l===61&&(c=g.charCodeAt(f+2)===61?3:2),b(zr,c));return;case 61:case 33:g.charCodeAt(f+1)===61?b(Yr,g.charCodeAt(f+2)===61?3:2):b(i===61?Un:Vn,1);return;case 126:return b(Vn,1)}return!1}function E(i){if(i?f=_+1:_=f,A.C&&(jt=new a),i)return P();if(f>=we)return s(Rt);if(i=g.charCodeAt(f),n(i)||i===92)return W();if(k(i)===!1){if(i=String.fromCharCode(i),i==="\\"||Wn.test(i))return W();r(f,"Unexpected character '"+i+"'")}}function b(i,l){var c=g.slice(f,f+l);f+=l,s(i,c)}function P(){for(var i,l,c=f;;){f>=we&&r(c,"Unterminated regexp");var p=g.charAt(f);if(it.test(p)&&r(c,"Unterminated regexp"),i)i=!1;else{if(p==="[")l=!0;else if(p==="]"&&l)l=!1;else if(p==="/"&&!l)break;i=p==="\\"}++f}i=g.slice(c,f),++f,(l=F())&&!/^[gmi]*$/.test(l)&&r(c,"Invalid regexp flag");try{var j=new RegExp(i,l)}catch(D){throw D instanceof SyntaxError&&r(c,D.message),D}s(mn,j)}function O(i,l){for(var c=f,p=0,j=l===void 0?1/0:l,D=0;D<j;++D){var G=g.charCodeAt(f);if(G=97<=G?G-97+10:65<=G?G-65+10:48<=G&&57>=G?G-48:1/0,G>=i)break;++f,p=p*i+G}return f===c||l!==void 0&&f-c!==l?null:p}function C(i){var l=f,c=!1,p=g.charCodeAt(f)===48;i||O(10)!==null||r(l,"Invalid number"),g.charCodeAt(f)===46&&(++f,O(10),c=!0),i=g.charCodeAt(f),(i===69||i===101)&&(i=g.charCodeAt(++f),i!==43&&i!==45||++f,O(10)===null&&r(l,"Invalid number"),c=!0),n(g.charCodeAt(f))&&r(f,"Identifier directly after number"),i=g.slice(l,f);var j;c?j=parseFloat(i):p&&i.length!==1?/[89]/.test(i)||z?r(l,"Invalid number"):j=parseInt(i,8):j=parseInt(i,10),s(Ue,j)}function w(i){return i=O(16,i),i===null&&r(_,"Bad character escape sequence"),i}function F(){Ie=!1;for(var i,l=!0,c=f;;){var p=g.charCodeAt(f);if(t(p))Ie&&(i+=g.charAt(f)),++f;else if(p===92){Ie||(i=g.slice(c,f)),Ie=!0,g.charCodeAt(++f)!==117&&r(f,"Expecting Unicode escape sequence \\uXXXX"),++f,p=w(4);var j=String.fromCharCode(p);j||r(f-1,"Invalid Unicode escape"),(l?n(p):t(p))||r(f-4,"Invalid Unicode escape"),i+=j}else break;l=!1}return Ie?i:g.slice(c,f)}function W(){var i=F(),l=Ce;!Ie&&to(i)&&(l=Hr[i]),s(l,i)}function y(){At=_,me=ke,Ot=Tt,E()}function pe(i){if(z=i,f=_,A.C)for(;f<oe;)oe=g.lastIndexOf(`
3
3
  `,oe-2)+1,--be;d(),E()}function de(){this.type=null,this.start=_,this.end=null}function q(){this.start=jt,this.end=null,It&&(this.source=It)}function B(){var i=new de;return A.C&&(i.X=new q),A.vb&&(i.sourceFile=A.vb),A.Xa&&(i.j=[_,0]),i}function he(i){var l=new de;return l.start=i.start,A.C&&(l.X=new q,l.X.start=i.X.start),A.Xa&&(l.j=[i.j[0],0]),l}function T(i,l){return i.type=l,i.end=me,A.C&&(i.X.end=Ot),A.Xa&&(i.j[1]=me),i}function xt(i){return i.type==="ExpressionStatement"&&i.la.type==="Literal"&&i.la.value==="use strict"}function M(i){return I===i?(y(),!0):!1}function Qe(){return!A.fc&&(I===Rt||I===Ee||it.test(g.slice(me,_)))}function xe(){M(ae)||Qe()||ne()}function U(i){I===i?y():ne()}function ne(){r(_,"Unexpected token")}function et(i){i.type!=="Identifier"&&i.type!=="MemberExpression"&&r(i.start,"Assigning to rvalue"),z&&i.type==="Identifier"&&ot(i.name)&&r(i.start,"Assigning to "+i.name+" in strict mode")}function ee(){(I===Mn||I===Se&&Z==="/=")&&E(!0);var i=I,l=B();switch(i){case Pt:case yn:y();var c=i===Pt;M(ae)||Qe()?l.label=null:I!==Ce?ne():(l.label=re(),xe());for(var p=0;p<V.length;++p){var j=V[p];if((l.label===null||j.name===l.label.name)&&(j.kind!==null&&(c||j.kind==="loop")||l.label&&c))break}return p===V.length&&r(l.start,"Unsyntactic "+i.l),T(l,c?"BreakStatement":"ContinueStatement");case vn:return y(),xe(),T(l,"DebuggerStatement");case bn:return y(),V.push(Dt),l.body=ee(),V.pop(),U(Ut),l.test=Pe(),xe(),T(l,"DoWhileStatement");case kn:return y(),V.push(Dt),U(ie),I===ae?bt(l,null):I===Mt?(i=B(),y(),dn(i,!0),T(i,"VariableDeclaration"),i.fa.length===1&&M(rt)?pn(l,i):bt(l,i)):(i=H(!1,!0),M(rt)?(et(i),pn(l,i)):bt(l,i));case Ft:return y(),Ct(l,!0);case Cn:return y(),l.test=Pe(),l.da=ee(),l.alternate=M(Sn)?ee():null,T(l,"IfStatement");case En:return Me||A.Ib||r(_,"'return' outside of function"),y(),M(ae)||Qe()?l.K=null:(l.K=H(),xe()),T(l,"ReturnStatement");case Bt:for(y(),l.Qb=Pe(),l.tb=[],U(Ve),V.push(oo);I!==Ee;)I===Nt||I===xn?(i=I===Nt,p&&T(p,"SwitchCase"),l.tb.push(p=B()),p.da=[],y(),i?p.test=H():(c&&r(At,"Multiple default clauses"),c=!0,p.test=null),U(_e)):(p||ne(),p.da.push(ee()));return p&&T(p,"SwitchCase"),y(),V.pop(),T(l,"SwitchStatement");case In:return y(),it.test(g.slice(me,_))&&r(me,"Illegal newline after throw"),l.K=H(),xe(),T(l,"ThrowStatement");case jn:return y(),l.block=Ne(),l.Ea=null,I===gn&&(i=B(),y(),U(ie),i.Ua=re(),z&&ot(i.Ua.name)&&r(i.Ua.start,"Binding "+i.Ua.name+" in strict mode"),U(te),i.body=Ne(),l.Ea=T(i,"CatchClause")),l.fb=M(wn)?Ne():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),T(l,"TryStatement");case Mt:return y(),dn(l),xe(),T(l,"VariableDeclaration");case Ut:return y(),l.test=Pe(),V.push(Dt),l.body=ee(),V.pop(),T(l,"WhileStatement");case Tn:return z&&r(_,"'with' in strict mode"),y(),l.object=Pe(),l.body=ee(),T(l,"WithStatement");case Ve:return Ne();case ae:return y(),T(l,"EmptyStatement");default:if(c=Z,j=H(),i===Ce&&j.type==="Identifier"&&M(_e)){for(p=0;p<V.length;++p)V[p].name===c&&r(j.start,"Label '"+c+"' is already declared");return V.push({name:c,kind:I.W?"loop":I===Bt?"switch":null}),l.body=ee(),V.pop(),l.label=j,T(l,"LabeledStatement")}return l.la=j,xe(),T(l,"ExpressionStatement")}}function Pe(){U(ie);var i=H();return U(te),i}function Ne(i){var l=B(),c=!0,p=!1;for(l.body=[],U(Ve);!M(Ee);){var j=ee();if(l.body.push(j),c&&i&&xt(j)){var D=p;pe(p=!0)}c=!1}return p&&!D&&pe(!1),T(l,"BlockStatement")}function bt(i,l){return i.ua=l,U(ae),i.test=I===ae?null:H(),U(ae),i.update=I===te?null:H(),U(te),i.body=ee(),V.pop(),T(i,"ForStatement")}function pn(i,l){return i.left=l,i.right=H(),U(te),i.body=ee(),V.pop(),T(i,"ForInStatement")}function dn(i,l){for(i.fa=[],i.kind="var";;){var c=B();if(c.id=re(),z&&ot(c.id.name)&&r(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=M(Un)?H(!0,l):null,i.fa.push(T(c,"VariableDeclarator")),!M(ge))break}}function H(i,l){var c=St(l);if(!i&&I===ge){for(i=he(c),i.xb=[c];M(ge);)i.xb.push(St(l));return T(i,"SequenceExpression")}return c}function St(i){var l=wt(kt(),-1,i);if(M(Bn)){var c=he(l);c.test=l,c.da=H(!0),U(_e),c.alternate=H(!0,i),l=T(c,"ConditionalExpression")}return I.Cb?(c=he(l),c.operator=Z,c.left=l,y(),c.right=St(i),et(l),T(c,"AssignmentExpression")):l}function wt(i,l,c){var p=I.L;if(p!==null&&(!c||I!==rt)&&p>l){var j=he(i);return j.left=i,j.operator=Z,i=I,y(),j.right=wt(kt(),p,c),p=T(j,i===_n||i===Dn?"LogicalExpression":"BinaryExpression"),wt(p,l,c)}return i}function kt(){if(I.prefix){var i=B(),l=I.$b;return i.operator=Z,Be=i.prefix=!0,y(),i.K=kt(),l?et(i.K):z&&i.operator==="delete"&&i.K.type==="Identifier"&&r(i.start,"Deleting local variable in strict mode"),T(i,l?"UpdateExpression":"UnaryExpression")}for(l=Fe(tt());I.cc&&!Qe();)i=he(l),i.operator=Z,i.prefix=!1,i.K=l,et(l),y(),l=T(i,"UpdateExpression");return l}function Fe(i,l){if(M(Fn)){var c=he(i);return c.object=i,c.Wa=re(!0),c.bb=!1,Fe(T(c,"MemberExpression"),l)}return M(Vt)?(c=he(i),c.object=i,c.Wa=H(),c.bb=!0,U(_t),Fe(T(c,"MemberExpression"),l)):!l&&M(ie)?(c=he(i),c.callee=i,c.arguments=Et(te,!1),Fe(T(c,"CallExpression"),l)):i}function tt(){switch(I){case On:var i=B();return y(),T(i,"ThisExpression");case Ce:return re();case Ue:case nt:case mn:return i=B(),i.value=Z,i.raw=g.slice(_,ke),y(),T(i,"Literal");case Rn:case Pn:case Nn:return i=B(),i.value=I.$a,i.raw=I.l,y(),T(i,"Literal");case ie:i=jt;var l=_;y();var c=H();return c.start=l,c.end=ke,A.C&&(c.X.start=i,c.X.end=Tt),A.Xa&&(c.j=[l,ke]),U(te),c;case Vt:return i=B(),y(),i.elements=Et(_t,!0,!0),T(i,"ArrayExpression");case Ve:for(i=B(),l=!0,c=!1,i.h=[],y();!M(Ee);){if(l)l=!1;else if(U(ge),A.sb&&M(Ee))break;var p={key:I===Ue||I===nt?tt():re(!0)},j=!1;if(M(_e)){p.value=H(!0);var D=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?ne():(j=c=!0,D=p.kind=p.key.name,p.key=I===Ue||I===nt?tt():re(!0),I!==ie&&ne(),p.value=Ct(B(),!1));if(p.key.type==="Identifier"&&(z||c))for(var G=0;G<i.h.length;++G){var je=i.h[G];if(je.key.name===p.key.name){var Lt=D===je.kind||j&&je.kind==="init"||D==="init"&&(je.kind==="get"||je.kind==="set");Lt&&!z&&D==="init"&&je.kind==="init"&&(Lt=!1),Lt&&r(p.key.start,"Redefinition of property")}}i.h.push(p)}return T(i,"ObjectExpression");case Ft:return i=B(),y(),Ct(i,!1);case An:return i=B(),y(),i.callee=Fe(tt(),!0),i.arguments=M(ie)?Et(te,!1):$r,T(i,"NewExpression")}ne()}function Ct(i,l){I===Ce?i.id=re():l?ne():i.id=null,i.oa=[];var c=!0;for(U(ie);!M(te);)c?c=!1:U(ge),i.oa.push(re());c=Me;var p=V;if(Me=!0,V=[],i.body=Ne(!0),Me=c,V=p,z||i.body.body.length&&xt(i.body.body[0])){for(c=i.id?-1:0;c<i.oa.length;++c)if(p=0>c?i.id:i.oa[c],(Ln(p.name)||ot(p.name))&&r(p.start,"Defining '"+p.name+"' in strict mode"),0<=c)for(var j=0;j<c;++j)p.name===i.oa[j].name&&r(p.start,"Argument name clash in strict mode")}return T(i,l?"FunctionDeclaration":"FunctionExpression")}function Et(i,l,c){for(var p=[],j=!0;!M(i);){if(j)j=!1;else if(U(ge),l&&A.sb&&M(i))break;p.push(c&&I===ge?null:H(!0))}return p}function re(i){var l=B();return i&&A.yb==="everywhere"&&(i=!1),I===Ce?(!i&&(A.yb&&eo(Z)||z&&Ln(Z))&&g.slice(_,ke).indexOf("\\")===-1&&r(_,"The keyword '"+Z+"' is reserved"),l.name=Z):i&&I.l?l.name=I.l:ne(),Be=!1,y(),T(l,"Identifier")}e.version="0.5.0";var A,g="",we,It;e.parse=function(i,l){g=String(i),we=g.length,A=l||{};for(var c in hn)Object.prototype.hasOwnProperty.call(A,c)||(A[c]=hn[c]);for(It=A.sourceFile,be=1,f=oe=0,Be=!0,d(),c=A.dc,At=me=f,A.C&&(Ot=new a),Me=z=!1,V=[],E(),i=c||B(),l=!0,c||(i.body=[]);I!==Rt;)c=ee(),i.body.push(c),l&&xt(c)&&pe(!0),l=!1;return T(i,"Program")};var hn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,_=0,ke=0,jt,Tt,I,Z,Be,be,oe,At=0,me=0,Ot,Me,V,z,$r=[],Ue={type:"num"},mn={type:"regexp"},nt={type:"string"},Ce={type:"name"},Rt={type:"eof"},Pt={l:"break"},Nt={l:"case",m:!0},gn={l:"catch"},yn={l:"continue"},vn={l:"debugger"},xn={l:"default"},bn={l:"do",W:!0},Sn={l:"else",m:!0},wn={l:"finally"},kn={l:"for",W:!0},Ft={l:"function"},Cn={l:"if"},En={l:"return",m:!0},Bt={l:"switch"},In={l:"throw",m:!0},jn={l:"try"},Mt={l:"var"},Ut={l:"while",W:!0},Tn={l:"with"},An={l:"new",m:!0},On={l:"this"},Rn={l:"null",$a:null},Pn={l:"true",$a:!0},Nn={l:"false",$a:!1},rt={l:"in",L:7,m:!0},Hr={break:Pt,case:Nt,catch:gn,continue:yn,debugger:vn,default:xn,do:bn,else:Sn,finally:wn,for:kn,function:Ft,if:Cn,return:En,switch:Bt,throw:In,try:jn,var:Mt,while:Ut,with:Tn,null:Rn,true:Pn,false:Nn,new:An,in:rt,instanceof:{l:"instanceof",L:7,m:!0},this:On,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Vt={type:"[",m:!0},_t={type:"]"},Ve={type:"{",m:!0},Ee={type:"}"},ie={type:"(",m:!0},te={type:")"},ge={type:",",m:!0},ae={type:";",m:!0},_e={type:":",m:!0},Fn={type:"."},Bn={type:"?",m:!0},Mn={L:10,m:!0},Un={Cb:!0,m:!0},Se={Cb:!0,m:!0},Kr={cc:!0,prefix:!0,$b:!0},Vn={prefix:!0,m:!0},_n={L:1,m:!0},Dn={L:2,m:!0},Gr={L:3,m:!0},Xr={L:4,m:!0},Jr={L:5,m:!0},Yr={L:6,m:!0},zr={L:7,m:!0},qr={L:8,m:!0},Zr={L:9,prefix:!0,m:!0},Qr={L:10,m:!0},eo=o("class enum extends super const export import"),Ln=o("implements interface let package private protected public static yield"),ot=o("eval arguments"),to=o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),no=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Wn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),ro=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),it=/[\n\r\u2028\u2029]/,at=/\r\n|[\n\r\u2028\u2029]/g,Ie,Dt={kind:"loop"},oo={kind:"switch"}},Ht=Ht=typeof globalThis>"u"?void 0:globalThis;go(Ht.j||(Ht.j={}));function h(e,t){typeof e=="string"&&(e=Ae(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var a,s;for(s in this)typeof this[s]=="function"&&(a=s.match(e))&&(this.rb[a[1]]=this[s].bind(this));this.N=Gt(this,this.ra,null),this.Na=this.N.object,this.ra=Ae(this.ba.join(`
4
4
  `),"polyfills"),this.ba=void 0,dt(this.ra),a=new x(this.ra,this.N),a.done=!1,this.o=[a],this.Eb(),this.value=void 0,this.ra=r,a=new x(this.ra,this.N),a.done=!1,this.o.length=0,this.o[0]=a}var $n={C:!0,kc:5},Yt={configurable:!0,enumerable:!0,writable:!1},v={configurable:!0,enumerable:!1,writable:!0},J={configurable:!0,enumerable:!1,writable:!1},De={configurable:!1,enumerable:!1,writable:!1},Hn={configurable:!1,enumerable:!0,writable:!0},fr={STEP_ERROR:!0},Re={SCOPE_REFERENCE:!0},Xe={VALUE_IN_DESCRIPTOR:!0},Te={REGEXP_TIMEOUT:!0},Kn=[],le=null,Ke=null,ye=typeof globalThis>"u"?void 0:globalThis,yo=["onmessage = function(e) {","var result;","var data = e.data;","switch (data[0]) {","case 'split':","result = data[1].split(data[2], data[3]);","break;","case 'match':","result = data[1].match(data[2]);","break;","case 'search':","result = data[1].search(data[2]);","break;","case 'replace':","result = data[1].replace(data[2], data[3]);","break;","case 'exec':","var regexp = data[1];","regexp.lastIndex = data[2];","result = [regexp.exec(data[3]), data[1].lastIndex];","break;","default:","throw Error('Unknown RegExp operation: ' + data[0]);","}","postMessage(result);","close();","};"];function zt(e){var t=e>>>0;return t===Number(e)?t:NaN}function Ge(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function dt(e,t,n){t?e.start=t:delete e.start,n?e.end=n:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var o=e[r];o&&typeof o=="object"&&dt(o,t,n)}}h.prototype.REGEXP_MODE=2;h.prototype.REGEXP_THREAD_TIMEOUT=1e3;h.prototype.POLYFILL_TIMEOUT=1e3;N=h.prototype;N.P=!1;N.Ka=!1;N.Kb=0;N.ic=0;function Ae(e,t){var n={},r;for(r in $n)n[r]=$n[r];return n.sourceFile=t,ye.j.parse(e,n)}N.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=Ae(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};N.lb=function(){var e=this.o,t;do{var n=e[e.length-1];if(this.za)break;if(!n||n.node.type==="Program"&&n.done){if(!this.ca.length)return!1;if(n=this.ca[0],!n||n.time>Date.now())n=null;else{this.ca.shift(),0<=n.interval&&hr(this,n,n.interval);var r=new x(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=Ke;Ke=this;try{var a=this.rb[r.type](e,n,r)}catch(s){if(s!==fr)throw this.value!==s&&(this.value=void 0),s}finally{Ke=o}if(a&&e.push(a),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};N.Eb=function(){for(;!this.za&&this.lb(););return this.za};function vo(e,t){e.g(t,"NaN",NaN,De),e.g(t,"Infinity",1/0,De),e.g(t,"undefined",void 0,De),e.g(t,"window",t,Yt),e.g(t,"this",t,De),e.g(t,"self",t),e.M=new R(null),e.Z=new R(e.M),xo(e,t),bo(e,t),t.xa=e.M,e.g(t,"constructor",e.v,v),So(e,t),wo(e,t),ko(e,t),Co(e,t),Eo(e,t),Io(e,t),jo(e,t),To(e,t),Ao(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,v),e.g(t,"parseInt",e.i(parseInt,!1),v),e.g(t,"parseFloat",e.i(parseFloat,!1),v),e.g(t,"isNaN",e.i(isNaN,!1),v),e.g(t,"isFinite",e.i(isFinite,!1),v);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(a){return function(s){try{return a(s)}catch(u){S(e,e.Gb,u.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),v);n=function(a){return Gn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),v),n=function(a){return Gn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),v),n=function(a){Xn(e,a)},e.g(t,"clearTimeout",e.i(n,!1),v),n=function(a){Xn(e,a)},e.g(t,"clearInterval",e.i(n,!1),v),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)}N.Wb=0;function xo(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){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 d=s[u];n.test(d)||S(e,e.T,"Invalid function argument: "+d)}s=s.join(", ")}try{var k=Ae("(function("+s+") {"+a+"})","function"+e.Wb++)}catch(E){S(e,e.T,"Invalid code: "+E.message)}return k.body.length!==1&&S(e,e.T,"Invalid code in function body"),Qt(e,k.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,v),e.g(e.O,"prototype",e.Z,v),e.g(e.Z,"constructor",e.O,v),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,J),e.Z.H="Function",r=function(o,a){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[],a!=null&&(a instanceof R?s.F=pr(e,a):S(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},L(e,e.O,"apply",r),r=function(o){var a=e.o[e.o.length-1];a.U=this,a.B=o,a.F=[];for(var s=1;s<arguments.length;s++)a.F.push(arguments[s]);a.eb=!1},L(e,e.O,"call",r),e.ba.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function bind(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');","}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});",""),r=function(){return String(this)},L(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),v),r=function(){return this.valueOf()},L(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),v)}function bo(e,t){function n(o){o!=null||S(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return ue(e)?this:e.s(e.M);if(!(o instanceof R)){var a=e.s(ce(e,o));return a.data=o,a}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,v),e.g(e.M,"constructor",e.v,v),e.g(t,"Object",e.v,v),r=function(o){return n(o),se(e,Object.getOwnPropertyNames(o instanceof R?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),v),r=function(o){return n(o),o instanceof R&&(o=o.h),se(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),v),r=function(o){return o===null?e.s(null):(o instanceof R||S(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(r,!1),v),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),r=function(o,a,s){return a=String(a),o instanceof R||S(e,e.j,"Object.defineProperty called on non-object: "+o),s instanceof R||S(e,e.j,"Property description must be an object"),!o.preventExtensions||a in o.h||S(e,e.j,"Can't define property '"+a+"', object is not extensible"),e.g(o,a,Xe,s.h),o},e.g(e.v,"defineProperty",e.i(r,!1),v),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),r=function(o,a){if(o instanceof R||S(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),a=String(a),a in o.h){var s=Object.getOwnPropertyDescriptor(o.h,a),u=o.V[a];return o=o.Y[a],a=e.s(e.M),u||o?(e.g(a,"get",u),e.g(a,"set",o)):(e.g(a,"value",s.value),e.g(a,"writable",s.writable)),e.g(a,"configurable",s.configurable),e.g(a,"enumerable",s.enumerable),a}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),v),r=function(o){return n(o),ce(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),v),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),v),r=function(o){return o instanceof R&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),v),L(e,e.v,"toString",R.prototype.toString),L(e,e.v,"toLocaleString",R.prototype.toString),L(e,e.v,"valueOf",R.prototype.valueOf),r=function(o){return n(this),this instanceof R?String(o)in this.h:this.hasOwnProperty(o)},L(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof R?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},L(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=ce(e,o),!o)return!1;if(o===this)return!0}},L(e,e.v,"isPrototypeOf",r)}function So(e,t){var n=function(r){var o=ue(e)?this:Oe(e),a=arguments[0];if(arguments.length===1&&typeof a=="number")isNaN(zt(a))&&S(e,e.ob,"Invalid array length: "+a),o.h.length=a;else{for(a=0;a<arguments.length;a++)o.h[a]=arguments[a];o.h.length=a}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,v),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),v),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 wo(e,t){var n=function(r){return r=arguments.length?ye.String(r):"",ue(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,v),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),v),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)L(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,a){o=e.R(o),a=e.R(a);try{return String(this).localeCompare(r,o,a)}catch(s){S(e,e.D,"localeCompare: "+s.message)}},L(e,e.J,"localeCompare",n),n=function(r,o,a){var s=String(this);if(o=o?Number(o):void 0,$(e,r,e.I)&&(r=r.data,We(e,r,a),e.REGEXP_MODE===2)){if(le)r=Le(e,"string.split(separator, limit)",{string:s,separator:r,limit:o},r,a),r!==Te&&a(se(e,r));else{var u=e.ha(),d=$e(e,r,u,a);u.onmessage=function(k){clearTimeout(d),a(se(e,k.data))},u.postMessage(["split",s,r,o])}return}r=s.split(r,o),a(se(e,r))},He(e,e.J,"split",n),n=function(r,o){var a=String(this);if(r=$(e,r,e.I)?r.data:new RegExp(r),We(e,r,o),e.REGEXP_MODE===2)if(le)r=Le(e,"string.match(regexp)",{string:a,regexp:r},r,o),r!==Te&&o(r&&se(e,r));else{var s=e.ha(),u=$e(e,r,s,o);s.onmessage=function(d){clearTimeout(u),o(d.data&&se(e,d.data))},s.postMessage(["match",a,r])}else r=a.match(r),o(r&&se(e,r))},He(e,e.J,"match",n),n=function(r,o){var a=String(this);if($(e,r,e.I)?r=r.data:r=new RegExp(r),We(e,r,o),e.REGEXP_MODE===2)if(le)r=Le(e,"string.search(regexp)",{string:a,regexp:r},r,o),r!==Te&&o(r);else{var s=e.ha(),u=$e(e,r,s,o);s.onmessage=function(d){clearTimeout(u),o(d.data)},s.postMessage(["search",a,r])}else o(a.search(r))},He(e,e.J,"search",n),n=function(r,o,a){var s=String(this);if(o=String(o),$(e,r,e.I)&&(r=r.data,We(e,r,a),e.REGEXP_MODE===2)){if(le)r=Le(e,"string.replace(substr, newSubstr)",{string:s,substr:r,newSubstr:o},r,a),r!==Te&&a(r);else{var u=e.ha(),d=$e(e,r,u,a);u.onmessage=function(k){clearTimeout(d),a(k.data)},u.postMessage(["replace",s,r,o])}return}a(s.replace(r,o))},He(e,e.J,"replace",n),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function ko(e,t){e.mb=e.i(function(n){return n=ye.Boolean(n),ue(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,v)}function Co(e,t){var n=function(r){return r=arguments.length?ye.Number(r):0,ue(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,v),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],n=0;n<t.length;n++)e.g(e.aa,t[n],Number[t[n]],De);n=function(r){try{return Number(this).toExponential(r)}catch(o){S(e,e.D,o.message)}},L(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){S(e,e.D,o.message)}},L(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){S(e,e.D,o.message)}},L(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){S(e,e.D,o.message)}},L(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(a){S(e,e.D,"toLocaleString: "+a.message)}},L(e,e.aa,"toLocaleString",n)}function Eo(e,t){var n=function(o,a){if(!ue(e))return ye.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(ye.Date,s)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,v),e.g(e.$,"now",e.i(Date.now,!1),v),e.g(e.$,"parse",e.i(Date.parse,!1),v),e.g(e.$,"UTC",e.i(Date.UTC,!1),v),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var r=0;r<t.length;r++)n=function(o){return function(a){var s=this.data;s instanceof Date||S(e,e.j,o+" not called on a Date");for(var u=[],d=0;d<arguments.length;d++)u[d]=e.R(arguments[d]);return s[o].apply(s,u)}}(t[r]),L(e,e.$,t[r],n)}function Io(e,t){var n=function(r,o){if(ue(e))var a=this;else{if(o===void 0&&$(e,r,e.I))return r;a=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||S(e,e.T,"Invalid regexp flag: "+o);try{var s=new ye.RegExp(r,o)}catch(u){S(e,e.T,u.message)}return qt(e,a,s),a};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,v),e.g(e.I.h.prototype,"global",void 0,J),e.g(e.I.h.prototype,"ignoreCase",void 0,J),e.g(e.I.h.prototype,"multiline",void 0,J),e.g(e.I.h.prototype,"source","(?:)",J),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function a(E){if(E){var b=se(e,E);return e.g(b,"index",E.index),e.g(b,"input",E.input),b}return null}var s=this.data;if(r=String(r),s.lastIndex=Number(e.G(this,"lastIndex")),We(e,s,o),e.REGEXP_MODE===2)if(le)r=Le(e,"regexp.exec(string)",{string:r,regexp:s},s,o),r!==Te&&(e.g(this,"lastIndex",s.lastIndex),o(a(r)));else{var u=e.ha(),d=$e(e,s,u,o),k=this;u.onmessage=function(E){clearTimeout(d),e.g(k,"lastIndex",E.data[1]),o(a(E.data[0]))},u.postMessage(["exec",s,s.lastIndex,r])}else r=s.exec(r),e.g(this,"lastIndex",s.lastIndex),o(a(r))},He(e,e.I,"exec",n)}function jo(e,t){function n(r){var o=e.i(function(a){var s=ue(e)?this:e.Aa(o);return Kt(e,s,a),s},!0);return e.g(o,"prototype",e.Aa(e.D),v),e.g(o.h.prototype,"name",r,v),e.g(t,r,o,v),o}e.D=e.i(function(r){var o=ue(e)?this:e.Aa(e.D);return Kt(e,o,r),o},!0),e.g(t,"Error",e.D,v),e.g(e.D.h.prototype,"message","",v),e.g(e.D.h.prototype,"name","Error",v),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function To(e,t){var n=e.s(e.M);e.g(t,"Math",n,v);var r="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<r.length;t++)e.g(n,r[t],Math[r[t]],J);for(r="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<r.length;t++)e.g(n,r[t],e.i(Math[r[t]],!1),v)}function Ao(e,t){var n=e.s(e.M);e.g(t,"JSON",n,v),t=function(r){try{var o=JSON.parse(String(r))}catch(a){S(e,e.T,a.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,a){o&&o.H==="Function"?S(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=pr(e,o),o=o.filter(function(u){return typeof u=="string"||typeof u=="number"})):o=null,typeof a!="string"&&typeof a!="number"&&(a=void 0),r=e.R(r);try{var s=JSON.stringify(r,o,a)}catch(u){S(e,e.j,u.message)}return s},e.g(n,"stringify",e.i(t,!1))}function $(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=ce(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function qt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,v),e.g(t,"source",n.source,J),e.g(t,"global",n.global,J),e.g(t,"ignoreCase",n.ignoreCase,J),e.g(t,"multiline",n.multiline,J)}function Kt(e,t,n){n&&e.g(t,"message",String(n),v),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],a=o.node;a.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!a.X||n.length&&a.type!=="CallExpression"||n.push({Nb:a.X})}for(r=String(e.G(t,"name")),a=String(e.G(t,"message")),a=r+": "+a+`
@@ -155,7 +155,7 @@ theFunction();
155
155
  )`,Mi=({contentId:e,variationId:t})=>`window.${Ar}(
156
156
  "${t}", "${e}", ${Or}
157
157
  )`;function Jt(e){return m.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id||""})}const Ui=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||Y.warn("No previewed ID found in search params."),n};function Rr(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new io.LRUCache({max:500,ttl:1e3*60*5}))}function Vi(e){Rr();const t=Ui(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function _i(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function Di(){const e=_i().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
158
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Pr=Di();function ct(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const a=e[o],s=[t,o].filter(Boolean).join(n);return[typeof a=="object",a!==null,!(Array.isArray(a)&&a.length===0)].every(Boolean)?{...r,...ct(a,s,n)}:{...r,[s]:a}},{})}const Li="v3",er="builder.",Wi="options.",$i=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},ln=e=>{if(!e)return{};const t=Nr(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(er)){const o=r.replace(er,"").replace(Wi,"");n[o]=t[r]}}),n},Hi=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return ln(e)},Nr=e=>e instanceof URLSearchParams?$i(e):e,tr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,cn=e=>{let{noTraverse:t=!1}=e;const{limit:n=30,userAttributes:r,query:o,model:a,apiKey:s,includeRefs:u=!0,enrich:d,locale:k,apiVersion:E=Li,fields:b,omit:P,offset:O,cacheSeconds:C,staleCacheSeconds:w,sort:F,includeUnpublished:W}=e;if(!s)throw new Error("Missing API key");if(!["v2","v3"].includes(E))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${E}'`);(e.limit===void 0||e.limit>1)&&!("noTraverse"in e)&&(t=!0);const y=new URL(`https://cdn.builder.io/api/${E}/content/${a}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${k?`&locale=${k}`:""}${d?`&enrich=${d}`:""}`);if(y.searchParams.set("omit",P||"meta.componentsUsed"),b&&y.searchParams.set("fields",b),Number.isFinite(O)&&O>-1&&y.searchParams.set("offset",String(Math.floor(O))),typeof W=="boolean"&&y.searchParams.set("includeUnpublished",String(W)),C&&tr(C)&&y.searchParams.set("cacheSeconds",String(C)),w&&tr(w)&&y.searchParams.set("staleCacheSeconds",String(w)),F){const q=ct({sort:F});for(const B in q)y.searchParams.set(B,JSON.stringify(q[B]))}const pe={...Hi(),...Nr(e.options||{})},de=ct(pe);for(const q in de)y.searchParams.set(q,String(de[q]));if(r&&y.searchParams.set("userAttributes",JSON.stringify(r)),o){const q=ct({query:o});for(const B in q)y.searchParams.set(B,JSON.stringify(q[B]))}return y},Ki=e=>"results"in e;async function vt(e){const t=await un({...e,limit:1});return t&&t[0]||null}const Gi=vt,Xi=async e=>{const t=cn(e);return await(await Pr(t.href)).json()},Fr=async(e,t,n=cn(e))=>{const r=ft(e.canTrack);if(n.search.includes("preview=")){const a=[];for(const s of t.results){const u=Vi(n.searchParams);a.push(u||s)}t.results=a}if(!r||!(K()||ve==="reactNative"))return t.results;try{const a=[];for(const s of t.results)a.push(await fi({item:s,canTrack:r}));t.results=a}catch(a){Y.error("Could not process A/B tests. ",a)}return t.results};async function un(e){try{const t=cn(e),n=await Xi(e);return Ki(n)?Fr(e,n):(Y.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return Y.error("Error fetching data. ",t),null}}const Ji=un,Yi=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function Br(e,t){const n=new URL(t.origin),r=n.hostname;return(e||Yi).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}function zi(){return!K()||pt()?!1:location.search.indexOf("builder.preview=")!==-1}function qi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function Mr(){return qi().replace(/-/g,"")}const Ur="builderSessionId",Zi=async({canTrack:e})=>{if(!e)return;const t=await wr({name:Ur,canTrack:e});if(fe(t))return t;{const n=Qi();return ea({id:n,canTrack:e}),n}},Qi=()=>Mr(),ea=({id:e,canTrack:t})=>kr({name:Ur,value:e,canTrack:t}),Vr=()=>K()&&typeof localStorage<"u"?localStorage:void 0,ta=({key:e,canTrack:t})=>{var n;try{return t?(n=Vr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},na=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Vr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},_r="builderVisitorId",ra=({canTrack:e})=>{if(!e)return;const t=ta({key:_r,canTrack:e});if(fe(t))return t;{const n=oa();return ia({id:n,canTrack:e}),n}},oa=()=>Mr(),ia=({id:e,canTrack:t})=>na({key:_r,value:e,canTrack:t}),aa=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Zi({canTrack:e}),n=ra({canTrack:e});return{sessionId:t,visitorId:n}},sa=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await aa({canTrack:t}),userAttributes:lr(),ownerId:n}});async function Dr(e){if(!e.apiKey){Y.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!pt()&&(K()||ve==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await sa(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const la=e=>Dr({...e,canTrack:!0});function nr(e){return Math.round(e*1e3)/1e3}const ca=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},ua=e=>ca(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),rr=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,a=nr(r/n.width),s=nr(o/n.height);return{x:a,y:s}},fa=e=>{const t=e.target,n=t&&ua(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?rr({event:e,target:t}):void 0,builderTargetOffset:n?rr({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},pa="0.12.2",or={};function Lr(e,t){let n=or[e];if(n||(n=or[e]=[]),n.push(t),K()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const da=()=>{Lr("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 ir=!1;const ha=(e={})=>{var t,n;ir||(ir=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:ve,version:pa,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var a,s;if(!Br(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const u=o.data.text,d=o.data.arguments||[],k=o.data.id,E=new Function(u);let b,P=null;try{b=E.apply(null,d)}catch(O){P=O}P?(a=window.parent)==null||a.postMessage({type:"builder.evaluateError",data:{id:k,error:P.message}},"*"):b&&typeof b.then=="function"?b.then(O=>{var C;(C=window.parent)==null||C.postMessage({type:"builder.evaluateResult",data:{id:k,result:O}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:b,id:k}},"*");break}}})))},ma=e=>{var a;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=e.fileUrl??((a=e==null?void 0:e.files)==null?void 0:a.regular);let o="";if(r&&t&&n&&(o+=`
158
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Pr=Di();function ct(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const a=e[o],s=[t,o].filter(Boolean).join(n);return[typeof a=="object",a!==null,!(Array.isArray(a)&&a.length===0)].every(Boolean)?{...r,...ct(a,s,n)}:{...r,[s]:a}},{})}const Li="v3",er="builder.",Wi="options.",$i=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},ln=e=>{if(!e)return{};const t=Nr(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(er)){const o=r.replace(er,"").replace(Wi,"");n[o]=t[r]}}),n},Hi=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return ln(e)},Nr=e=>e instanceof URLSearchParams?$i(e):e,tr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,cn=e=>{let{noTraverse:t=!1}=e;const{limit:n=30,userAttributes:r,query:o,model:a,apiKey:s,includeRefs:u=!0,enrich:d,locale:k,apiVersion:E=Li,fields:b,omit:P,offset:O,cacheSeconds:C,staleCacheSeconds:w,sort:F,includeUnpublished:W}=e;if(!s)throw new Error("Missing API key");if(!["v2","v3"].includes(E))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${E}'`);(e.limit===void 0||e.limit>1)&&!("noTraverse"in e)&&(t=!0);const y=new URL(`https://cdn.builder.io/api/${E}/content/${a}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${k?`&locale=${k}`:""}${d?`&enrich=${d}`:""}`);if(y.searchParams.set("omit",P||"meta.componentsUsed"),b&&y.searchParams.set("fields",b),Number.isFinite(O)&&O>-1&&y.searchParams.set("offset",String(Math.floor(O))),typeof W=="boolean"&&y.searchParams.set("includeUnpublished",String(W)),C&&tr(C)&&y.searchParams.set("cacheSeconds",String(C)),w&&tr(w)&&y.searchParams.set("staleCacheSeconds",String(w)),F){const q=ct({sort:F});for(const B in q)y.searchParams.set(B,JSON.stringify(q[B]))}const pe={...Hi(),...Nr(e.options||{})},de=ct(pe);for(const q in de)y.searchParams.set(q,String(de[q]));if(r&&y.searchParams.set("userAttributes",JSON.stringify(r)),o){const q=ct({query:o});for(const B in q)y.searchParams.set(B,JSON.stringify(q[B]))}return y},Ki=e=>"results"in e;async function vt(e){const t=await un({...e,limit:1});return t&&t[0]||null}const Gi=vt,Xi=async e=>{const t=cn(e);return await(await Pr(t.href)).json()},Fr=async(e,t,n=cn(e))=>{const r=ft(e.canTrack);if(n.search.includes("preview=")){const a=[];for(const s of t.results){const u=Vi(n.searchParams);a.push(u||s)}t.results=a}if(!r||!(K()||ve==="reactNative"))return t.results;try{const a=[];for(const s of t.results)a.push(await fi({item:s,canTrack:r}));t.results=a}catch(a){Y.error("Could not process A/B tests. ",a)}return t.results};async function un(e){try{const t=cn(e),n=await Xi(e);return Ki(n)?Fr(e,n):(Y.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return Y.error("Error fetching data. ",t),null}}const Ji=un,Yi=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function Br(e,t){const n=new URL(t.origin),r=n.hostname;return(e||Yi).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}function zi(){return!K()||pt()?!1:location.search.indexOf("builder.preview=")!==-1}function qi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function Mr(){return qi().replace(/-/g,"")}const Ur="builderSessionId",Zi=async({canTrack:e})=>{if(!e)return;const t=await wr({name:Ur,canTrack:e});if(fe(t))return t;{const n=Qi();return ea({id:n,canTrack:e}),n}},Qi=()=>Mr(),ea=({id:e,canTrack:t})=>kr({name:Ur,value:e,canTrack:t}),Vr=()=>K()&&typeof localStorage<"u"?localStorage:void 0,ta=({key:e,canTrack:t})=>{var n;try{return t?(n=Vr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},na=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Vr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},_r="builderVisitorId",ra=({canTrack:e})=>{if(!e)return;const t=ta({key:_r,canTrack:e});if(fe(t))return t;{const n=oa();return ia({id:n,canTrack:e}),n}},oa=()=>Mr(),ia=({id:e,canTrack:t})=>na({key:_r,value:e,canTrack:t}),aa=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Zi({canTrack:e}),n=ra({canTrack:e});return{sessionId:t,visitorId:n}},sa=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await aa({canTrack:t}),userAttributes:lr(),ownerId:n}});async function Dr(e){if(!e.apiKey){Y.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!pt()&&(K()||ve==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await sa(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const la=e=>Dr({...e,canTrack:!0});function nr(e){return Math.round(e*1e3)/1e3}const ca=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},ua=e=>ca(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),rr=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,a=nr(r/n.width),s=nr(o/n.height);return{x:a,y:s}},fa=e=>{const t=e.target,n=t&&ua(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?rr({event:e,target:t}):void 0,builderTargetOffset:n?rr({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},pa="0.12.3",or={};function Lr(e,t){let n=or[e];if(n||(n=or[e]=[]),n.push(t),K()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const da=()=>{Lr("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 ir=!1;const ha=(e={})=>{var t,n;ir||(ir=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:ve,version:pa,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var a,s;if(!Br(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const u=o.data.text,d=o.data.arguments||[],k=o.data.id,E=new Function(u);let b,P=null;try{b=E.apply(null,d)}catch(O){P=O}P?(a=window.parent)==null||a.postMessage({type:"builder.evaluateError",data:{id:k,error:P.message}},"*"):b&&typeof b.then=="function"?b.then(O=>{var C;(C=window.parent)==null||C.postMessage({type:"builder.evaluateResult",data:{id:k,result:O}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:b,id:k}},"*");break}}})))},ma=e=>{var a;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=e.fileUrl??((a=e==null?void 0:e.files)==null?void 0:a.regular);let o="";if(r&&t&&n&&(o+=`
159
159
  @font-face {
160
160
  font-family: "${t}";
161
161
  src: local("${n}"), url('${r}') format('woff2');
@@ -173,6 +173,10 @@ font-weight: ${s};
173
173
  ${ya({cssCode:e.cssCode,contentId:e.contentId})}
174
174
  ${ga({customFonts:e.customFonts})}
175
175
 
176
+ .builder-button {
177
+ all: unset;
178
+ }
179
+
176
180
  .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
177
181
  margin: 0;
178
182
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-25fa71b1.cjs"),t=require("./USE_CLIENT_BUNDLE-edb18eb8.cjs");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-f0eeb33e.cjs");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-d4f509a3.cjs"),t=require("./USE_CLIENT_BUNDLE-2aed408a.cjs");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-e79e6b55.cjs");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
@@ -1,10 +1,10 @@
1
- import { B as i, v as m, C as c, R as g, u as p, S as l, T as C, y as d, o as u, G as B, z as S, p as f, A as h, E, D as R, b as x, h as b, w as k, x as y, F } from "./bundle-834dbf29.js";
2
- import { b as v, F as w, c as A, S as T, V } from "./USE_CLIENT_BUNDLE-aa38a343.js";
1
+ import { B as i, v as m, C as c, R as g, u as p, S as l, T as C, y as d, o as u, G as B, z as S, p as f, A as h, E, D as R, b as x, h as b, w as k, x as y, F } from "./bundle-cb191300.js";
2
+ import { b as v, F as w, c as A, S as T, V } from "./USE_CLIENT_BUNDLE-a3258a60.js";
3
3
  import "lru-cache";
4
4
  import "react/jsx-runtime";
5
5
  import "react";
6
6
  import "next/navigation";
7
- import "./USE_SERVER_BUNDLE-70c27ea1.js";
7
+ import "./USE_SERVER_BUNDLE-4e9af8f5.js";
8
8
  export {
9
9
  i as Blocks,
10
10
  v as Button,
@@ -1,33 +1,29 @@
1
1
  "use client";
2
- import { jsxs as w, Fragment as s, jsx as t } from "react/jsx-runtime";
3
- import { i as Y, g as U, a as O, b as E, c as R, d as Z, e as P, f as H, _ as V, h as p, l as ee, j as te, k as D, m as ne, n as ie, r as ae, s as ce, o as le, p as re, q as oe } from "./bundle-834dbf29.js";
2
+ import { jsx as t, Fragment as s, jsxs as E } from "react/jsx-runtime";
3
+ import { i as Y, g as U, a as O, b as w, c as R, d as Z, e as P, f as H, _ as V, h as p, l as ee, j as te, k as D, m as ne, n as ie, r as ae, s as ce, o as re, p as le, q as oe } from "./bundle-11daeaca.js";
4
4
  import { useRef as T, useState as x, useEffect as f, createContext as de, createElement as se } from "react";
5
- import { p as ue } from "./USE_SERVER_BUNDLE-70c27ea1.js";
5
+ import { p as ue } from "./USE_SERVER_BUNDLE-b231d861.js";
6
6
  import { useRouter as me } from "next/navigation";
7
7
  function ke(e) {
8
- return /* @__PURE__ */ w(s, { children: [
9
- e.link ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(
10
- "a",
11
- {
12
- ...e.attributes,
13
- href: e.link,
14
- target: e.openLinkInNewTab ? "_blank" : void 0,
15
- role: "button",
16
- children: e.text
17
- }
18
- ) }) : /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(
19
- "button",
20
- {
21
- ...e.attributes,
22
- style: e.attributes.style,
23
- className: e.attributes.className + " button-fdf49de0",
24
- children: e.text
25
- }
26
- ) }),
27
- /* @__PURE__ */ t("style", { children: `.button-fdf49de0 {
28
- all: unset;
29
- }` })
30
- ] });
8
+ return /* @__PURE__ */ t(s, { children: e.link ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(
9
+ "a",
10
+ {
11
+ ...e.attributes,
12
+ href: e.link,
13
+ target: e.openLinkInNewTab ? "_blank" : void 0,
14
+ role: "button",
15
+ children: e.text
16
+ }
17
+ ) }) : /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(
18
+ "button",
19
+ {
20
+ role: "button",
21
+ ...e.attributes,
22
+ className: `builder-button ${e.attributes.className}`,
23
+ style: e.attributes.style,
24
+ children: e.text
25
+ }
26
+ ) }) });
31
27
  }
32
28
  function ge(e) {
33
29
  return /* @__PURE__ */ t(s, { children: Y(e.TagName) ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ t(s, { children: typeof e.TagName == "string" ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
@@ -77,12 +73,12 @@ function we(e) {
77
73
  }
78
74
  function Ee(e) {
79
75
  function c() {
80
- var r;
81
- return "builder-blocks" + ((r = e.blocks) != null && r.length ? "" : " no-blocks");
76
+ var l;
77
+ return "builder-blocks" + ((l = e.blocks) != null && l.length ? "" : " no-blocks");
82
78
  }
83
79
  function u() {
84
- var r, m;
85
- E() && !((r = e.blocks) != null && r.length) && ((m = window.parent) == null || m.postMessage(
80
+ var l, m;
81
+ w() && !((l = e.blocks) != null && l.length) && ((m = window.parent) == null || m.postMessage(
86
82
  {
87
83
  type: "builder.clickEmptyBlocks",
88
84
  data: {
@@ -94,8 +90,8 @@ function Ee(e) {
94
90
  ));
95
91
  }
96
92
  function v() {
97
- var r, m;
98
- E() && !((r = e.blocks) != null && r.length) && ((m = window.parent) == null || m.postMessage(
93
+ var l, m;
94
+ w() && !((l = e.blocks) != null && l.length) && ((m = window.parent) == null || m.postMessage(
99
95
  {
100
96
  type: "builder.hoverEmptyBlocks",
101
97
  data: {
@@ -106,7 +102,7 @@ function Ee(e) {
106
102
  "*"
107
103
  ));
108
104
  }
109
- return /* @__PURE__ */ w(s, { children: [
105
+ return /* @__PURE__ */ E(s, { children: [
110
106
  /* @__PURE__ */ t(
111
107
  e.BlocksWrapper,
112
108
  {
@@ -114,9 +110,9 @@ function Ee(e) {
114
110
  "builder-path": e.path,
115
111
  "builder-parent-id": e.parent,
116
112
  style: e.styleProp,
117
- onClick: (r) => u(),
118
- onMouseEnter: (r) => v(),
119
- onKeyPress: (r) => u(),
113
+ onClick: (l) => u(),
114
+ onMouseEnter: (l) => v(),
115
+ onKeyPress: (l) => u(),
120
116
  ...e.BlocksWrapperProps,
121
117
  children: e.children
122
118
  }
@@ -132,7 +128,7 @@ function Ie(e) {
132
128
  return /* @__PURE__ */ t("span", { children: e.children });
133
129
  }
134
130
  function Re(e) {
135
- var r, m, S, y;
131
+ var l, m, S, y;
136
132
  function c() {
137
133
  var g;
138
134
  const o = e.image || e.src;
@@ -161,9 +157,9 @@ function Re(e) {
161
157
  };
162
158
  return e.aspectRatio ? b : void 0;
163
159
  }
164
- return /* @__PURE__ */ w(s, { children: [
165
- /* @__PURE__ */ w(s, { children: [
166
- /* @__PURE__ */ w("picture", { children: [
160
+ return /* @__PURE__ */ E(s, { children: [
161
+ /* @__PURE__ */ E(s, { children: [
162
+ /* @__PURE__ */ E("picture", { children: [
167
163
  u() ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t("source", { type: "image/webp", srcSet: u() }) }) : null,
168
164
  /* @__PURE__ */ t(
169
165
  "img",
@@ -183,7 +179,7 @@ function Re(e) {
183
179
  }
184
180
  )
185
181
  ] }),
186
- e.aspectRatio && !((m = (r = e.builderBlock) == null ? void 0 : r.children) != null && m.length && e.fitContent) ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(
182
+ e.aspectRatio && !((m = (l = e.builderBlock) == null ? void 0 : l.children) != null && m.length && e.fitContent) ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(
187
183
  "div",
188
184
  {
189
185
  className: "builder-image-sizer div-40c70c9b",
@@ -236,7 +232,7 @@ function Pe(e) {
236
232
  );
237
233
  }
238
234
  function Te(e) {
239
- const c = T(null), [u, v] = x(() => []), [r, m] = x(() => []);
235
+ const c = T(null), [u, v] = x(() => []), [l, m] = x(() => []);
240
236
  return f(() => {
241
237
  var y;
242
238
  if (!((y = c.current) != null && y.getElementsByTagName) || typeof window > "u")
@@ -255,10 +251,10 @@ function Te(e) {
255
251
  "application/javascript",
256
252
  "application/ecmascript"
257
253
  ].includes(o.type)) {
258
- if (r.includes(o.innerText))
254
+ if (l.includes(o.innerText))
259
255
  continue;
260
256
  try {
261
- r.push(o.innerText), new Function(o.innerText)();
257
+ l.push(o.innerText), new Function(o.innerText)();
262
258
  } catch (g) {
263
259
  console.warn("`CustomCode`: Error running script:", g);
264
260
  }
@@ -274,7 +270,7 @@ function Te(e) {
274
270
  );
275
271
  }
276
272
  function Ne(e) {
277
- const c = T(null), [u, v] = x(() => []), [r, m] = x(() => []), [S, y] = x(() => !1);
273
+ const c = T(null), [u, v] = x(() => []), [l, m] = x(() => []), [S, y] = x(() => !1);
278
274
  function b() {
279
275
  if (!c.current || !c.current.getElementsByTagName)
280
276
  return;
@@ -285,9 +281,9 @@ function Ne(e) {
285
281
  u.push(k.src);
286
282
  const C = document.createElement("script");
287
283
  C.async = !0, C.src = k.src, document.head.appendChild(C);
288
- } else if (Z(k) && !r.includes(k.innerText))
284
+ } else if (Z(k) && !l.includes(k.innerText))
289
285
  try {
290
- r.push(k.innerText), new Function(k.innerText)();
286
+ l.push(k.innerText), new Function(k.innerText)();
291
287
  } catch (C) {
292
288
  console.warn("`Embed`: Error running script:", C);
293
289
  }
@@ -316,11 +312,11 @@ function Be(e) {
316
312
  src: e.imgSrc || e.image,
317
313
  ...e.attributes
318
314
  },
319
- E() && e.imgSrc || "default-key"
315
+ w() && e.imgSrc || "default-key"
320
316
  );
321
317
  }
322
318
  function Le(e) {
323
- var v, r, m, S, y, b, o;
319
+ var v, l, m, S, y, b, o;
324
320
  function c() {
325
321
  return {
326
322
  ...e.autoPlay === !0 ? {
@@ -345,7 +341,7 @@ function Le(e) {
345
341
  ...c()
346
342
  };
347
343
  }
348
- return /* @__PURE__ */ w(
344
+ return /* @__PURE__ */ E(
349
345
  "div",
350
346
  {
351
347
  style: {
@@ -377,7 +373,7 @@ function Le(e) {
377
373
  children: e.lazyLoad ? null : /* @__PURE__ */ t("source", { type: "video/mp4", src: e.video })
378
374
  }
379
375
  ),
380
- e.aspectRatio && !(e.fitContent && ((m = (r = e.builderBlock) == null ? void 0 : r.children) != null && m.length)) ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(
376
+ e.aspectRatio && !(e.fitContent && ((m = (l = e.builderBlock) == null ? void 0 : l.children) != null && m.length)) ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(
381
377
  "div",
382
378
  {
383
379
  style: {
@@ -438,16 +434,16 @@ function je(e) {
438
434
  var W, F, K, z, A, M, _;
439
435
  const c = T(null), [u, v] = x(() => 0);
440
436
  x(() => !0);
441
- function r(n) {
442
- var a, l;
437
+ function l(n) {
438
+ var a, r;
443
439
  const i = {
444
440
  ...e.builderContextSignal.rootState,
445
441
  ...n
446
442
  };
447
- e.builderContextSignal.rootSetState ? (l = (a = e.builderContextSignal).rootSetState) == null || l.call(a, i) : e.builderContextSignal.rootState = i;
443
+ e.builderContextSignal.rootSetState ? (r = (a = e.builderContextSignal).rootSetState) == null || r.call(a, i) : e.builderContextSignal.rootState = i;
448
444
  }
449
445
  function m(n) {
450
- var a, l, d, h, q;
446
+ var a, r, d, h, q;
451
447
  const i = {
452
448
  ...e.builderContextSignal.content,
453
449
  ...n,
@@ -456,7 +452,7 @@ function je(e) {
456
452
  ...n == null ? void 0 : n.data
457
453
  },
458
454
  meta: {
459
- ...(l = e.builderContextSignal.content) == null ? void 0 : l.meta,
455
+ ...(r = e.builderContextSignal.content) == null ? void 0 : r.meta,
460
456
  ...n == null ? void 0 : n.meta,
461
457
  breakpoints: ((d = n == null ? void 0 : n.meta) == null ? void 0 : d.breakpoints) || ((q = (h = e.builderContextSignal.content) == null ? void 0 : h.meta) == null ? void 0 : q.breakpoints)
462
458
  }
@@ -482,7 +478,7 @@ function je(e) {
482
478
  if (i)
483
479
  switch (i.type) {
484
480
  case "builder.configureSdk": {
485
- const l = i.data, { breakpoints: d, contentId: h } = l;
481
+ const r = i.data, { breakpoints: d, contentId: h } = r;
486
482
  if (!h || h !== ((a = e.builderContextSignal.content) == null ? void 0 : a.id))
487
483
  return;
488
484
  d && m({
@@ -493,7 +489,7 @@ function je(e) {
493
489
  break;
494
490
  }
495
491
  case "builder.contentUpdate": {
496
- const l = i.data, d = l.key || l.alias || l.entry || l.modelName, h = l.data;
492
+ const r = i.data, d = r.key || r.alias || r.entry || r.modelName, h = r.data;
497
493
  d === e.model && (m(h), v(u + 1));
498
494
  break;
499
495
  }
@@ -510,22 +506,22 @@ function je(e) {
510
506
  rootSetState: e.builderContextSignal.rootSetState
511
507
  });
512
508
  }
513
- const [C, be] = x(() => ({})), [N, J] = x(() => !1);
514
- function $(n) {
509
+ const [C, be] = x(() => ({})), [N, $] = x(() => !1);
510
+ function J(n) {
515
511
  var i, a;
516
512
  if (e.builderContextSignal.content) {
517
- const l = (i = e.builderContextSignal.content) == null ? void 0 : i.testVariationId, d = (a = e.builderContextSignal.content) == null ? void 0 : a.id;
513
+ const r = (i = e.builderContextSignal.content) == null ? void 0 : i.testVariationId, d = (a = e.builderContextSignal.content) == null ? void 0 : a.id;
518
514
  V({
519
515
  type: "click",
520
516
  canTrack: H(e.canTrack),
521
517
  contentId: d,
522
518
  apiKey: e.apiKey,
523
- variationId: l !== d ? l : void 0,
519
+ variationId: r !== d ? r : void 0,
524
520
  ...ne(n),
525
521
  unique: !N
526
522
  });
527
523
  }
528
- N || J(!0);
524
+ N || $(!0);
529
525
  }
530
526
  function G(n) {
531
527
  return n.replace(
@@ -542,11 +538,11 @@ function je(e) {
542
538
  function Q({ url: n, key: i }) {
543
539
  oe(n).then((a) => a.json()).then((a) => {
544
540
  var d, h;
545
- const l = {
541
+ const r = {
546
542
  ...e.builderContextSignal.rootState,
547
543
  [i]: a
548
544
  };
549
- (h = (d = e.builderContextSignal).rootSetState) == null || h.call(d, l), C[i] = !0;
545
+ (h = (d = e.builderContextSignal).rootSetState) == null || h.call(d, r), C[i] = !0;
550
546
  }).catch((a) => {
551
547
  console.error("error fetching dynamic data", n, a);
552
548
  });
@@ -554,18 +550,18 @@ function je(e) {
554
550
  function B() {
555
551
  var i, a;
556
552
  const n = ((a = (i = e.builderContextSignal.content) == null ? void 0 : i.data) == null ? void 0 : a.httpRequests) ?? {};
557
- Object.entries(n).forEach(([l, d]) => {
558
- if (d && (!C[l] || E())) {
553
+ Object.entries(n).forEach(([r, d]) => {
554
+ if (d && (!C[r] || w())) {
559
555
  const h = G(d);
560
556
  Q({
561
557
  url: h,
562
- key: l
558
+ key: r
563
559
  });
564
560
  }
565
561
  });
566
562
  }
567
563
  function I() {
568
- E() && window.dispatchEvent(
564
+ w() && window.dispatchEvent(
569
565
  new CustomEvent(
570
566
  "builder:component:stateChange",
571
567
  {
@@ -596,19 +592,19 @@ function je(e) {
596
592
  }), Object.values(
597
593
  e.builderContextSignal.componentInfos
598
594
  ).forEach((i) => {
599
- var l;
600
- const a = le(i);
601
- (l = window.parent) == null || l.postMessage(a, "*");
595
+ var r;
596
+ const a = re(i);
597
+ (r = window.parent) == null || r.postMessage(a, "*");
602
598
  }), window.addEventListener(
603
599
  "builder:component:stateChangeListenerActivated",
604
600
  I
605
601
  );
606
602
  }
607
603
  function j(n) {
608
- const i = new URL(location.href).searchParams, a = i.get("builder.preview"), l = i.get(
604
+ const i = new URL(location.href).searchParams, a = i.get("builder.preview"), r = i.get(
609
605
  `builder.preview.${a}`
610
606
  ), d = i.get("apiKey") || i.get("builder.space");
611
- a === e.model && d === e.apiKey && (!e.content || l === e.content.id) && re({
607
+ a === e.model && d === e.apiKey && (!e.content || r === e.content.id) && le({
612
608
  model: e.model,
613
609
  apiKey: e.apiKey,
614
610
  apiVersion: e.builderContextSignal.apiVersion
@@ -644,14 +640,14 @@ function je(e) {
644
640
  }, []), f(() => {
645
641
  var n, i;
646
642
  if (P()) {
647
- if (E() && c.current && c.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && H(e.canTrack)) {
648
- const l = (n = e.builderContextSignal.content) == null ? void 0 : n.testVariationId, d = (i = e.builderContextSignal.content) == null ? void 0 : i.id, h = e.apiKey;
643
+ if (w() && c.current && c.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && H(e.canTrack)) {
644
+ const r = (n = e.builderContextSignal.content) == null ? void 0 : n.testVariationId, d = (i = e.builderContextSignal.content) == null ? void 0 : i.id, h = e.apiKey;
649
645
  V({
650
646
  type: "impression",
651
647
  canTrack: !0,
652
648
  contentId: d,
653
649
  apiKey: h,
654
- variationId: l !== d ? l : void 0
650
+ variationId: r !== d ? r : void 0
655
651
  });
656
652
  }
657
653
  p() && c.current;
@@ -673,9 +669,9 @@ function je(e) {
673
669
  }, [(z = (K = e.builderContextSignal.content) == null ? void 0 : K.data) == null ? void 0 : z.httpRequests]), f(() => {
674
670
  I();
675
671
  }, [e.builderContextSignal.rootState]), f(() => {
676
- e.data && r(e.data);
672
+ e.data && l(e.data);
677
673
  }, [e.data]), f(() => {
678
- e.locale && r({
674
+ e.locale && l({
679
675
  locale: e.locale
680
676
  });
681
677
  }, [e.locale]), f(() => () => {
@@ -688,7 +684,7 @@ function je(e) {
688
684
  {
689
685
  key: u,
690
686
  ref: c,
691
- onClick: (n) => $(n),
687
+ onClick: (n) => J(n),
692
688
  "builder-content-id": (A = e.builderContextSignal.content) == null ? void 0 : A.id,
693
689
  "builder-model": e.model,
694
690
  ...e.showContent ? {} : {