@builder.io/sdk-react 4.0.5 → 4.0.6
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/blocks-exports.cjs +1 -1
- package/lib/browser/blocks-exports.mjs +2 -2
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-5449a575.cjs +2 -0
- package/lib/browser/{server-entry-a14e875b.js → server-entry-79285592.js} +24 -24
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-fc5895b3.js → accordion-87ad8263.js} +1 -1
- package/lib/edge/{accordion-7bf0ff52.cjs → accordion-f7e030d5.cjs} +1 -1
- package/lib/edge/{blocks-52d6c5f1.cjs → blocks-31199191.cjs} +1 -1
- package/lib/edge/{blocks-7de3c1bb.js → blocks-a066bb29.js} +2 -2
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-ae68e3ea.js → button-1d265b68.js} +2 -2
- package/lib/edge/{button-b71ce341.cjs → button-45c9b994.cjs} +1 -1
- package/lib/edge/{columns-2eadfbdb.cjs → columns-2282e71d.cjs} +1 -1
- package/lib/edge/{columns-34c30ac0.js → columns-6f323a60.js} +3 -3
- package/lib/edge/{content-variants-0bbaf095.js → content-variants-ddc4462d.js} +12 -12
- package/lib/edge/{content-variants-ed4c0d09.cjs → content-variants-ea56e041.cjs} +1 -1
- package/lib/edge/{custom-code-436cb5b5.cjs → custom-code-046c9e54.cjs} +1 -1
- package/lib/edge/{custom-code-366f612e.js → custom-code-27f3a9d0.js} +1 -1
- package/lib/edge/{embed-c6833cd7.js → embed-962809ed.js} +1 -1
- package/lib/edge/{embed-7c75778e.cjs → embed-a90e1ebf.cjs} +1 -1
- package/lib/edge/{form-268c6d7a.cjs → form-2112cb80.cjs} +1 -1
- package/lib/edge/{form-c946b554.js → form-4fc6f70a.js} +3 -3
- package/lib/edge/{get-class-prop-name-33e113fc.js → get-class-prop-name-03e66a61.js} +1 -1
- package/lib/edge/{get-class-prop-name-ff751f68.cjs → get-class-prop-name-77a0b81b.cjs} +1 -1
- package/lib/edge/{img-468b2c5a.cjs → img-5850d9d8.cjs} +1 -1
- package/lib/edge/{img-fae48c58.js → img-95c678b5.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-7ddc0bdd.cjs → input-3937aa23.cjs} +1 -1
- package/lib/edge/{input-7477c1ba.js → input-7d147e6f.js} +1 -1
- package/lib/edge/{personalization-container-5f45f9fa.cjs → personalization-container-aff166ba.cjs} +1 -1
- package/lib/edge/{personalization-container-a316285a.js → personalization-container-d687ea13.js} +4 -4
- package/lib/edge/{select-64516839.cjs → select-5bdfe568.cjs} +1 -1
- package/lib/edge/{select-1cc6458e.js → select-bfca657e.js} +1 -1
- package/lib/edge/{server-entry-b0ba438a.js → server-entry-1d157602.js} +25 -25
- package/lib/edge/server-entry-e8854034.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-61b75e8e.cjs → slot-a4c97369.cjs} +1 -1
- package/lib/edge/{slot-e2c0521b.js → slot-acb2aa8e.js} +3 -3
- package/lib/edge/{symbol-7fdb1286.cjs → symbol-33b65252.cjs} +1 -1
- package/lib/edge/{symbol-ab8b1dc8.js → symbol-cc7e6b66.js} +2 -2
- package/lib/edge/{tabs-65969ff0.cjs → tabs-900d88a9.cjs} +1 -1
- package/lib/edge/{tabs-1faf3b62.js → tabs-9cbb5615.js} +3 -3
- package/lib/node/blocks-exports.cjs +1 -1
- package/lib/node/blocks-exports.mjs +4 -4
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/server-entry-0dcb0303.cjs +2 -0
- package/lib/node/{server-entry-922dcbdc.js → server-entry-ee54171f.js} +25 -25
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-2b3e3bab.js → setIvm-b773f3ba.js} +1 -1
- package/lib/node/{setIvm-7ec43953.cjs → setIvm-d479356f.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-f382a7f3.cjs → should-force-browser-runtime-in-node-364ee049.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-7796759e.js → should-force-browser-runtime-in-node-bdb5bf58.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/preview-lru-cache/set.d.ts +3 -4
- package/lib/browser/server-entry-d084d6c0.cjs +0 -2
- package/lib/edge/server-entry-6bf98a1a.cjs +0 -2
- package/lib/node/server-entry-e00081d3.cjs +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./server-entry-d084d6c0.cjs"),s=require("react/jsx-runtime"),f=require("react");function _e(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const qe=_e(f),Me=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),He=e=>typeof e=="string"&&Me.has(e.toLowerCase());function te(e){return s.jsx(s.Fragment,{children:He(e.TagName)?s.jsx(s.Fragment,{children:s.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):s.jsx(s.Fragment,{children:typeof e.TagName=="string"?s.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):s.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}const $=()=>{switch(h.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function be(e){function t(){return{...e.attributes,[$()]:`${e.link?"":"builder-button"} ${e.attributes[$()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return s.jsx(te,{attributes:t(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}const M=f.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:"",model:""}),pe=f.createContext({registeredComponents:{}}),ye=(e,t,n)=>{const i=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((a,r)=>a!=null?a[r]:a,e);return i===void 0||i===e?n:i},ze=({builder:e,context:t,event:n,state:i})=>Object.entries({state:i,Builder:e,builder:e,context:t,event:n}),Ke=()=>({isEditing:h.isEditing(),isBrowser:h.isBrowser(),isServer:!h.isBrowser(),getUserAttributes:()=>h.getUserAttributes()}),Je=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function xe({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(i,a)=>{if(t&&a in t)return t[a];const r=i[a];return typeof r=="object"&&r!==null?xe({rootState:r,localState:void 0,rootSetState:n?o=>{i[a]=o,n(i)}:void 0}):r},set:(i,a,r)=>{if(t&&a in t)throw new Error("Writing to local state is not allowed as it is read-only.");return i[a]=r,n==null||n(i),!0}})}const oe=({code:e,builder:t,context:n,event:i,localState:a,rootSetState:r,rootState:o})=>{const l=ze({builder:t,context:n,event:i,state:xe({rootState:o,localState:a,rootSetState:r})});return new Function(...l.map(([d])=>d),e)(...l.map(([,d])=>d))};function Ge(){var e;return typeof process!="undefined"&&h.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const Qe=({shouldLogWarning:e})=>{var a;if(!Ge())return!1;const t=process.arch==="arm64",n=process.version.startsWith("v20"),i=(a=process.env.NODE_OPTIONS)==null?void 0:a.includes("--no-node-snapshot");return t&&n&&!i?(e&&h.logger.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1},Ye=e=>(h.isBrowser()||Qe({shouldLogWarning:!0}),oe(e)),Xe=/^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/,Ze=/(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/,et=e=>{var t,n,i,a,r,o;return((i=(n=(t=Xe.exec(e.trim()))==null?void 0:t.groups)==null?void 0:n.getPath)==null?void 0:i.slice(1))||((o=(r=(a=Ze.exec(e.trim()))==null?void 0:a.groups)==null?void 0:r.getPath)==null?void 0:o.slice(1))};function F({code:e,context:t,localState:n,rootState:i,rootSetState:a,event:r,isExpression:o=!0}){if(e.trim()==="")return;const l=et(e.trim());if(l)return ye({...i,...n},l);const d={code:Je(e,{isExpression:o}),builder:Ke(),context:t,event:r,rootSetState:a,rootState:i,localState:n};try{return Ye(d)}catch(u){h.logger.error("Failed code evaluation: "+u.message,{code:e});return}}function tt(e,t){var n;return{...(n=e.component)==null?void 0:n.options,...e.options,...nt(e,t)}}const nt=(e,t)=>{var n,i;if(((n=e.component)==null?void 0:n.name)==="Text"&&((i=e.component.options)!=null&&i.text)&&typeof e.component.options.text=="string")return{...e.component.options,text:e.component.options.text.replace(/{{([^}]+)}}/g,(a,r)=>F({code:r,context:t,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState}))}};function it(e,...t){const n=Object.assign({},e);for(const i of t)delete n[i];return n}function _(e,t,n=null,i=null,a=new WeakSet){if(e==null||typeof e!="object"){t(e,r=>{n!==null&&i!==null&&(n[i]=r)});return}a.has(e)||(a.add(e),Array.isArray(e)?e.forEach((r,o)=>{t(r,d=>{e[o]=d}),_(r,t,e,o,a)}):Object.entries(e).forEach(([r,o])=>{t(o,d=>{e[r]=d}),_(o,t,e,r,a)}))}function ve(e){return e&&typeof e=="object"&&e["@type"]==="@builder.io/core:LocalizedValue"}function at(e){if(!e||!Object.getOwnPropertyNames(e).length)return!1;let t=!1;return _(e,n=>{if(ve(n)){t=!0;return}}),t}function rt(e,t){return!e||!Object.getOwnPropertyNames(e).length?{}:(_(e,(n,i)=>{var a;ve(n)&&i((a=n[t])!=null?a:void 0)}),e)}function ot(e,t){var n,i;return(n=e.component)!=null&&n.options&&at((i=e.component)==null?void 0:i.options)&&(t||console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"),e.component.options=rt(e.component.options,t!=null?t:"Default")),e}const ne=e=>JSON.parse(JSON.stringify(e)),Se=(e,t,n)=>{if(Object(e)!==e)return e;const i=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return i.slice(0,-1).reduce((a,r,o)=>Object(a[r])===a[r]?a[r]:a[r]=Math.abs(Number(i[o+1]))>>0===+i[o+1]?[]:{},e)[i[i.length-1]]=n,e};function ee(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>ee(n));if(e["@type"]==="@builder.io/sdk:Element")return e;const t={};for(const n in e)n!=="meta"&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=ee(e[n]));return t}const st=["svelte","vue","angular","qwik","solid"].includes(h.TARGET),lt=e=>{if(st){const t=ne(e);return{...t,properties:{...t.properties},actions:{...t.actions}}}else{const t=ee(it(e,"children","meta"));return{...t,properties:{...t.properties},actions:{...t.actions},children:e.children,meta:e.meta}}},ct=({block:e,context:t,localState:n,rootState:i,rootSetState:a})=>{if(!e.bindings)return e;const r=lt(e);for(const o in e.bindings){const l=e.bindings[o],d=F({code:l,localState:n,rootState:i,rootSetState:a,context:t});Se(r,o,d)}return r};function ut({block:e,context:t,localState:n,rootState:i,rootSetState:a}){let r=ot(e,i.locale);return r=r,ct({block:r,localState:n,rootState:i,rootSetState:a,context:t})}const H=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"";function dt(e,t,n={}){let i,a,r,o=null,l=0;const d=function(){l=n.leading===!1?0:Date.now(),o=null,r=e.apply(i,a),o||(i=a=null)};return function(){const u=Date.now();!l&&n.leading===!1&&(l=u);const b=t-(u-l);return i=this,a=arguments,b<=0||b>t?(o&&(clearTimeout(o),o=null),l=u,r=e.apply(i,a),o||(i=a=null)):!o&&n.trailing!==!1&&(o=setTimeout(d,b)),r}}function D(e,...t){const n=Object(e);for(let i=1;i<arguments.length;i++){const a=arguments[i];if(a!=null)for(const r in a)Object.prototype.hasOwnProperty.call(a,r)&&(n[r]=a[r])}return n}function mt(e){for(const t of e)switch(t.trigger){case"pageLoad":Te(t);break;case"scrollInView":gt(t);break}}function ke(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function Ce(e,t){const n=ft(e),i=getComputedStyle(t),a=e.steps[0].styles,r=e.steps[e.steps.length-1].styles,o=[a,r];for(const l of o)for(const d of n)d in l||(l[d]=i[d])}function ft(e){const t=[];for(const n of e.steps)for(const i in n.styles)t.indexOf(i)===-1&&t.push(i);return t}function Te(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){ke(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ce(e,n),n.style.transition="none",n.style.transitionDelay="0",D(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${H(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),D(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function gt(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){ke(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ce(e,n);let i=!1,a=!1;function r(){!i&&l(n)?(i=!0,a=!0,setTimeout(()=>{D(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",o),setTimeout(()=>{a=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&i&&!a&&!l(n)&&(i=!1,D(n.style,e.steps[0].styles))}const o=dt(r,200,{leading:!1});function l(b){const p=b.getBoundingClientRect(),c=window.innerHeight,g=(e.thresholdPercent||0)/100*c;return p.bottom>g&&p.top<c-g}const d=e.steps[0].styles;function u(){D(n.style,d)}u(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${H(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",o,{capture:!0,passive:!0}),r()})}const we=e=>Object.entries(e).map(([n,i])=>{if(typeof i=="string")return`${H(n)}: ${i};`}).filter(h.checkIsDefined),ht=e=>we(e).join(`
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./server-entry-5449a575.cjs"),s=require("react/jsx-runtime"),f=require("react");function _e(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const qe=_e(f),Me=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),He=e=>typeof e=="string"&&Me.has(e.toLowerCase());function te(e){return s.jsx(s.Fragment,{children:He(e.TagName)?s.jsx(s.Fragment,{children:s.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):s.jsx(s.Fragment,{children:typeof e.TagName=="string"?s.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):s.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}const $=()=>{switch(h.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function be(e){function t(){return{...e.attributes,[$()]:`${e.link?"":"builder-button"} ${e.attributes[$()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return s.jsx(te,{attributes:t(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}const M=f.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:"",model:""}),pe=f.createContext({registeredComponents:{}}),ye=(e,t,n)=>{const i=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((a,r)=>a!=null?a[r]:a,e);return i===void 0||i===e?n:i},ze=({builder:e,context:t,event:n,state:i})=>Object.entries({state:i,Builder:e,builder:e,context:t,event:n}),Ke=()=>({isEditing:h.isEditing(),isBrowser:h.isBrowser(),isServer:!h.isBrowser(),getUserAttributes:()=>h.getUserAttributes()}),Je=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function xe({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(i,a)=>{if(t&&a in t)return t[a];const r=i[a];return typeof r=="object"&&r!==null?xe({rootState:r,localState:void 0,rootSetState:n?o=>{i[a]=o,n(i)}:void 0}):r},set:(i,a,r)=>{if(t&&a in t)throw new Error("Writing to local state is not allowed as it is read-only.");return i[a]=r,n==null||n(i),!0}})}const oe=({code:e,builder:t,context:n,event:i,localState:a,rootSetState:r,rootState:o})=>{const l=ze({builder:t,context:n,event:i,state:xe({rootState:o,localState:a,rootSetState:r})});return new Function(...l.map(([d])=>d),e)(...l.map(([,d])=>d))};function Ge(){var e;return typeof process!="undefined"&&h.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const Qe=({shouldLogWarning:e})=>{var a;if(!Ge())return!1;const t=process.arch==="arm64",n=process.version.startsWith("v20"),i=(a=process.env.NODE_OPTIONS)==null?void 0:a.includes("--no-node-snapshot");return t&&n&&!i?(e&&h.logger.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1},Ye=e=>(h.isBrowser()||Qe({shouldLogWarning:!0}),oe(e)),Xe=/^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/,Ze=/(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/,et=e=>{var t,n,i,a,r,o;return((i=(n=(t=Xe.exec(e.trim()))==null?void 0:t.groups)==null?void 0:n.getPath)==null?void 0:i.slice(1))||((o=(r=(a=Ze.exec(e.trim()))==null?void 0:a.groups)==null?void 0:r.getPath)==null?void 0:o.slice(1))};function F({code:e,context:t,localState:n,rootState:i,rootSetState:a,event:r,isExpression:o=!0}){if(e.trim()==="")return;const l=et(e.trim());if(l)return ye({...i,...n},l);const d={code:Je(e,{isExpression:o}),builder:Ke(),context:t,event:r,rootSetState:a,rootState:i,localState:n};try{return Ye(d)}catch(u){h.logger.error("Failed code evaluation: "+u.message,{code:e});return}}function tt(e,t){var n;return{...(n=e.component)==null?void 0:n.options,...e.options,...nt(e,t)}}const nt=(e,t)=>{var n,i;if(((n=e.component)==null?void 0:n.name)==="Text"&&((i=e.component.options)!=null&&i.text)&&typeof e.component.options.text=="string")return{...e.component.options,text:e.component.options.text.replace(/{{([^}]+)}}/g,(a,r)=>F({code:r,context:t,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState}))}};function it(e,...t){const n=Object.assign({},e);for(const i of t)delete n[i];return n}function _(e,t,n=null,i=null,a=new WeakSet){if(e==null||typeof e!="object"){t(e,r=>{n!==null&&i!==null&&(n[i]=r)});return}a.has(e)||(a.add(e),Array.isArray(e)?e.forEach((r,o)=>{t(r,d=>{e[o]=d}),_(r,t,e,o,a)}):Object.entries(e).forEach(([r,o])=>{t(o,d=>{e[r]=d}),_(o,t,e,r,a)}))}function ve(e){return e&&typeof e=="object"&&e["@type"]==="@builder.io/core:LocalizedValue"}function at(e){if(!e||!Object.getOwnPropertyNames(e).length)return!1;let t=!1;return _(e,n=>{if(ve(n)){t=!0;return}}),t}function rt(e,t){return!e||!Object.getOwnPropertyNames(e).length?{}:(_(e,(n,i)=>{var a;ve(n)&&i((a=n[t])!=null?a:void 0)}),e)}function ot(e,t){var n,i;return(n=e.component)!=null&&n.options&&at((i=e.component)==null?void 0:i.options)&&(t||console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"),e.component.options=rt(e.component.options,t!=null?t:"Default")),e}const ne=e=>JSON.parse(JSON.stringify(e)),Se=(e,t,n)=>{if(Object(e)!==e)return e;const i=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return i.slice(0,-1).reduce((a,r,o)=>Object(a[r])===a[r]?a[r]:a[r]=Math.abs(Number(i[o+1]))>>0===+i[o+1]?[]:{},e)[i[i.length-1]]=n,e};function ee(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>ee(n));if(e["@type"]==="@builder.io/sdk:Element")return e;const t={};for(const n in e)n!=="meta"&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=ee(e[n]));return t}const st=["svelte","vue","angular","qwik","solid"].includes(h.TARGET),lt=e=>{if(st){const t=ne(e);return{...t,properties:{...t.properties},actions:{...t.actions}}}else{const t=ee(it(e,"children","meta"));return{...t,properties:{...t.properties},actions:{...t.actions},children:e.children,meta:e.meta}}},ct=({block:e,context:t,localState:n,rootState:i,rootSetState:a})=>{if(!e.bindings)return e;const r=lt(e);for(const o in e.bindings){const l=e.bindings[o],d=F({code:l,localState:n,rootState:i,rootSetState:a,context:t});Se(r,o,d)}return r};function ut({block:e,context:t,localState:n,rootState:i,rootSetState:a}){let r=ot(e,i.locale);return r=r,ct({block:r,localState:n,rootState:i,rootSetState:a,context:t})}const H=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"";function dt(e,t,n={}){let i,a,r,o=null,l=0;const d=function(){l=n.leading===!1?0:Date.now(),o=null,r=e.apply(i,a),o||(i=a=null)};return function(){const u=Date.now();!l&&n.leading===!1&&(l=u);const b=t-(u-l);return i=this,a=arguments,b<=0||b>t?(o&&(clearTimeout(o),o=null),l=u,r=e.apply(i,a),o||(i=a=null)):!o&&n.trailing!==!1&&(o=setTimeout(d,b)),r}}function D(e,...t){const n=Object(e);for(let i=1;i<arguments.length;i++){const a=arguments[i];if(a!=null)for(const r in a)Object.prototype.hasOwnProperty.call(a,r)&&(n[r]=a[r])}return n}function mt(e){for(const t of e)switch(t.trigger){case"pageLoad":Te(t);break;case"scrollInView":gt(t);break}}function ke(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function Ce(e,t){const n=ft(e),i=getComputedStyle(t),a=e.steps[0].styles,r=e.steps[e.steps.length-1].styles,o=[a,r];for(const l of o)for(const d of n)d in l||(l[d]=i[d])}function ft(e){const t=[];for(const n of e.steps)for(const i in n.styles)t.indexOf(i)===-1&&t.push(i);return t}function Te(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){ke(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ce(e,n),n.style.transition="none",n.style.transitionDelay="0",D(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${H(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),D(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function gt(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){ke(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ce(e,n);let i=!1,a=!1;function r(){!i&&l(n)?(i=!0,a=!0,setTimeout(()=>{D(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",o),setTimeout(()=>{a=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&i&&!a&&!l(n)&&(i=!1,D(n.style,e.steps[0].styles))}const o=dt(r,200,{leading:!1});function l(b){const p=b.getBoundingClientRect(),c=window.innerHeight,g=(e.thresholdPercent||0)/100*c;return p.bottom>g&&p.top<c-g}const d=e.steps[0].styles;function u(){D(n.style,d)}u(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${H(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",o,{capture:!0,passive:!0}),r()})}const we=e=>Object.entries(e).map(([n,i])=>{if(typeof i=="string")return`${H(n)}: ${i};`}).filter(h.checkIsDefined),ht=e=>we(e).join(`
|
|
2
2
|
`),W=({mediaQuery:e,className:t,styles:n})=>{const i=`.${t} {
|
|
3
3
|
${ht(n)}
|
|
4
4
|
}`;return e?`${e} {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as L, isEditing as A, isBrowser as U, getUserAttributes as Ye, checkIsDefined as Q, logger as _, isPreviewing as Z, userAttributesService as be, getDefaultCanTrack as j, logFetch as Ve, registerInsertMenu as Xe, setupBrowserForEditing as Ze, createRegisterComponentMessage as et, getCookieSync as tt, _track as pe, fetchOneEntry as Be, createEditorListener as nt, serializeIncludingFunctions as ye, handleABTestingSync as it } from "./server-entry-
|
|
3
|
-
import { setClientUserAttributes as Ei } from "./server-entry-
|
|
2
|
+
import { TARGET as L, isEditing as A, isBrowser as U, getUserAttributes as Ye, checkIsDefined as Q, logger as _, isPreviewing as Z, userAttributesService as be, getDefaultCanTrack as j, logFetch as Ve, registerInsertMenu as Xe, setupBrowserForEditing as Ze, createRegisterComponentMessage as et, getCookieSync as tt, _track as pe, fetchOneEntry as Be, createEditorListener as nt, serializeIncludingFunctions as ye, handleABTestingSync as it } from "./server-entry-79285592.js";
|
|
3
|
+
import { setClientUserAttributes as Ei } from "./server-entry-79285592.js";
|
|
4
4
|
import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
|
|
5
5
|
import * as at from "react";
|
|
6
6
|
import { createContext as Ae, useEffect as V, useState as I, useRef as O, useContext as ve, createElement as Ne } from "react";
|
package/lib/browser/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./blocks-exports.cjs"),e=require("./server-entry-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./blocks-exports.cjs"),e=require("./server-entry-5449a575.cjs");require("react/jsx-runtime");require("react");exports.Blocks=t.Blocks;exports.BuilderContext=t.BuilderContext;exports.Button=t.Button;exports.Columns=t.Columns;exports.Content=t.Content;exports.Fragment=t.Fragment;exports.Image=t.Image;exports.Section=t.Section;exports.Symbol=t.Symbol;exports.Text=t.Text;exports.Video=t.Video;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setClientUserAttributes=e.setClientUserAttributes;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/browser/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Blocks as o, BuilderContext as s, Button as n, Columns as c, Content as m, Fragment as g, Image as a, Section as l, Symbol as u, Text as d, Video as p } from "./blocks-exports.mjs";
|
|
2
|
-
import { _processContentResult as f, createRegisterComponentMessage as B, fetchBuilderProps as E, fetchEntries as b, fetchOneEntry as h, getBuilderSearchParams as x, isEditing as S, isPreviewing as P, register as k, setClientUserAttributes as y, setEditorSettings as R, subscribeToEditor as T, track as v } from "./server-entry-
|
|
2
|
+
import { _processContentResult as f, createRegisterComponentMessage as B, fetchBuilderProps as E, fetchEntries as b, fetchOneEntry as h, getBuilderSearchParams as x, isEditing as S, isPreviewing as P, register as k, setClientUserAttributes as y, setEditorSettings as R, subscribeToEditor as T, track as v } from "./server-entry-79285592.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
export {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const y="react",E="[Builder.io]: ",d={log:(...e)=>console.log(E,...e),error:(...e)=>console.error(E,...e),warn:(...e)=>console.warn(E,...e),debug:(...e)=>console.debug(E,...e)};function c(){return typeof window!="undefined"&&typeof document!="undefined"}const me=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},j=e=>e instanceof URLSearchParams?me(e):e,W=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function be(){return c()&&window.self!==window.top}function $(e){return be()&&W(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const ye=()=>{if(c()){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},Se=()=>typeof navigator=="object"&&navigator.userAgent||"",G=()=>{const e=Se(),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()||y==="reactNative"}},n=e.match(/Tablet|iPad/i),r=ye();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"}},p=e=>e!=null;function we(e){const t=e||(c()?window.location.search:void 0);return t?W(t).indexOf("builder.preview=")!==-1:!1}const ve=e=>({type:"builder.registerComponent",data:C(e)}),ke=e=>{const t=e.toString().trim(),n=/^[a-zA-Z0-9_]+\s*=>/i.test(t);return`return (${!t.startsWith("function")&&!t.startsWith("async")&&!t.startsWith("(")&&!n?"function ":""}${t}).apply(this, arguments)`};function C(e){return JSON.parse(JSON.stringify(e,(t,n)=>typeof n=="function"?ke(n):n))}const F={};function J(e,t){e==="plugin"&&(t=C(t));let n=F[e];if(n||(n=F[e]=[]),n.push(t),c()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(s){console.debug("Could not postmessage",s)}}}const V={};function Ee(e){if(c()){Object.assign(V,e);const t={type:"builder.settingsChange",data:V};parent.postMessage(t,"*")}}const D="builder.",Ie="options.",P=e=>{if(!e)return{};const t=j(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(D)){const s=r.replace(D,"").replace(Ie,"");n[s]=t[r]}}),n},Ae=()=>{if(!c())return{};const e=new URLSearchParams(window.location.search);return P(e)},z="4.0.6",X=()=>({"X-Builder-SDK":y,"X-Builder-SDK-GEN":"2","X-Builder-SDK-Version":z}),Oe=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},I=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){d.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},H=async e=>I(e),Ce=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(p).join("; "),Pe=[["secure",""],["SameSite","None"]],Ue=({name:e,value:t,expires:n})=>{const s=(c()?location.protocol==="https:":!0)?Pe:[[]],o=n?[["expires",n.toUTCString()]]:[[]],i=[[e,t],...o,["path","/"],["domain",Oe(window.location.hostname)],...s];return Ce(i)},U=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const s=Ue({name:e,value:t,expires:n});document.cookie=s}catch(s){d.warn("[COOKIE] SET error: ",(s==null?void 0:s.message)||s)}};function Te(){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 Q(){return Te().replace(/-/g,"")}const Y="builderSessionId",Be=async({canTrack:e})=>{if(!e)return;const t=await H({name:Y,canTrack:e});if(p(t))return t;{const n=xe();return Re({id:n,canTrack:e}),n}},xe=()=>Q(),Re=({id:e,canTrack:t})=>U({name:Y,value:e,canTrack:t}),Z=()=>c()&&typeof localStorage!="undefined"?localStorage:void 0,Le=({key:e,canTrack:t})=>{var n;try{return t?(n=Z())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Ne=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Z())==null||r.setItem(e,n))}catch(s){console.debug("[LocalStorage] SET error: ",s)}},q="builderVisitorId",Fe=({canTrack:e})=>{if(!e)return;const t=Le({key:q,canTrack:e});if(p(t))return t;{const n=Ve();return De({id:n,canTrack:e}),n}},Ve=()=>Q(),De=({id:e,canTrack:t})=>Ne({key:q,value:e,canTrack:t});function ee(e){var t;typeof process!="undefined"&&((t=process.env)!=null&&t.DEBUG)&&String(process.env.DEBUG)=="true"&&d.log(e)}const Me=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Be({canTrack:e}),n=Fe({canTrack:e});return{sessionId:t,visitorId:n}},Ke=async({type:e,canTrack:t,apiKey:n,metadata:r,...s})=>({type:e,data:{...s,metadata:{url:location.href,...r},...await Me({canTrack:t}),userAttributes:G(),ownerId:n}});async function te({apiHost:e,...t}){if(!t.apiKey){d.error("Missing API key for track call. Please provide your API key.");return}if(!t.canTrack||$()||!(c()||y==="reactNative"))return;const r=`${e||"https://cdn.builder.io"}/api/v1/track`;return ee(r),fetch(r,{method:"POST",body:JSON.stringify({events:[await Ke(t)]}),headers:{"content-type":"application/json",...X()},mode:"cors"}).catch(s=>{console.error("Failed to track: ",s)})}const _e=e=>te({...e,canTrack:!0}),je=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function ne(e,t){if(!t.origin.startsWith("http")&&!t.origin.startsWith("https"))return!1;const n=new URL(t.origin),r=n.hostname;return(e||je).findIndex(s=>s.startsWith("*.")?r.endsWith(s.slice(1)):s===r)>-1}const We=()=>{J("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 M=!1;const re=e=>{var t,n;M||(M=!0,c()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:y,version:z,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0,modelName:e.modelName,apiKey:e.apiKey,supportsXSmallBreakpoint:!0,blockLevelPersonalization:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var o,i;if(!ne(e.trustedHosts,r))return;const{data:s}=r;if(s!=null&&s.type)switch(s.type){case"builder.evaluate":{const u=s.data.text,S=s.data.arguments||[],m=s.data.id,w=new Function(u);let l,g=null;try{l=w.apply(null,S)}catch(h){g=h}g?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:m,error:g.message}},"*"):l&&typeof l.then=="function"?l.then(h=>{var v;(v=window.parent)==null||v.postMessage({type:"builder.evaluateResult",data:{id:m,result:h}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:l,id:m}},"*");break}}})))},se=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!ne(t,r))return;const{data:s}=r;if(s)switch(s.type){case"builder.configureSdk":{n.configureSdk(s.data);break}case"builder.triggerAnimation":{n.animation(s.data);break}case"builder.resetState":{const o=s.data,i=o.model,u=o==null?void 0:o.state;i===e&&u&&n.stateUpdate(u);break}case"builder.contentUpdate":{const o=s.data,i=o.key||o.alias||o.entry||o.modelName,u=o.data;i===e&&n.contentUpdate(u);break}}},$e=({model:e,apiKey:t,callback:n,trustedHosts:r})=>{if(!c)return d.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};re({modelName:e,apiKey:t});const s=se({callbacks:{contentUpdate:n,animation:()=>{},configureSdk:()=>{},stateUpdate:()=>{}},model:e,trustedHosts:r});return window.addEventListener("message",s),()=>{window.removeEventListener("message",s)}},Ge="builder.tests",T=e=>`${Ge}.${e}`,Je=({contentId:e})=>H({name:T(e),canTrack:!0}),ze=({contentId:e})=>I({name:T(e),canTrack:!0}),Xe=({contentId:e,value:t})=>U({name:T(e),value:t,canTrack:!0}),oe=e=>p(e.id)&&p(e.variations)&&Object.keys(e.variations).length>0,He=({id:e,variations:t})=>{var s;let n=0;const r=Math.random();for(const o in t){const i=(s=t[o])==null?void 0:s.testRatio;if(n+=i,r<n)return o}return e},ie=e=>{const t=He(e);return Xe({contentId:e.id,value:t}).catch(n=>{d.error("could not store A/B test variation: ",n)}),t},ae=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},Qe=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!oe(e))return e;const n=ze({contentId:e.id})||ie({variations:e.variations,id:e.id}),r=ae({item:e,testGroupId:n});return{...e,...r}},Ye=async({item:e,canTrack:t})=>{if(!t||!oe(e))return e;const r=await Je({contentId:e.id})||ie({variations:e.variations,id:e.id}),s=ae({item:e,testGroupId:r});return{...e,...s}},K="builder.userAttributes";function Ze(){let e=!0;const t=new Set;return{setUserAttributes(n){if(!c())return;const r={...this.getUserAttributes(),...n};U({name:K,value:JSON.stringify(r),canTrack:e}),t.forEach(s=>s(r))},getUserAttributes(){return c()?JSON.parse(I({name:K,canTrack:e})||"{}"):{}},subscribeOnUserAttributesChange(n){return t.add(n),()=>{t.delete(n)}},setCanTrack(n){e=n}}}const B=Ze(),qe=e=>{B.setUserAttributes(e)},ce=e=>{const t=p(e)?e:!0;return B.setCanTrack(t),t};function et(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:globalThis}function tt(){const e=et().fetch;if(typeof e=="undefined")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2
|
+
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 nt=tt();function O(e,t=null,n="."){return Object.keys(e).reduce((r,s)=>{const o=e[s],i=[t,s].filter(Boolean).join(n);return[typeof o=="object",o!==null,!(Array.isArray(o)&&o.length===0)].every(Boolean)?{...r,...O(o,i,n)}:{...r,[i]:o}},{})}function ue(e,t,n={}){for(const r in e){const s=e[r],o=t?t+"."+r:r;s&&typeof s=="object"&&!Array.isArray(s)&&!Object.keys(s).find(i=>i.startsWith("$"))?ue(s,o,n):n[o]=s}return n}function rt(e){const t={};for(const n in e){const r=n.split(".");let s=t;for(let o=0;o<r.length;o++){const i=r[o];o===r.length-1?s[i]=e[n]:(s[i]=s[i]||{},s=s[i])}}return t}const st="v3",_=e=>typeof e=="number"&&!isNaN(e)&&e>=0,x=e=>{const{limit:t=30,userAttributes:n,query:r,model:s,apiKey:o,enrich:i,locale:u,apiVersion:S=st,fields:m,omit:w,offset:l,cacheSeconds:g,staleCacheSeconds:h,sort:v,includeUnpublished:R,apiHost:ge}=e;if(!o)throw new Error("Missing API key");if(!["v3"].includes(S))throw new Error(`Invalid apiVersion: expected 'v3', received '${S}'`);const he=t!==1,pe=ge||"https://cdn.builder.io",a=new URL(`${pe}/api/${S}/content/${s}`);a.searchParams.set("apiKey",o),a.searchParams.set("limit",String(t)),a.searchParams.set("noTraverse",String(he)),a.searchParams.set("includeRefs",String(!0));const A=u||(n==null?void 0:n.locale);let b=n||{};if(A&&(a.searchParams.set("locale",A),b={locale:A,...b}),i&&a.searchParams.set("enrich",String(i)),a.searchParams.set("omit",w!=null?w:"meta.componentsUsed"),m&&a.searchParams.set("fields",m),Number.isFinite(l)&&l>-1&&a.searchParams.set("offset",String(Math.floor(l))),typeof R=="boolean"&&a.searchParams.set("includeUnpublished",String(R)),g&&_(g)&&a.searchParams.set("cacheSeconds",String(g)),h&&_(h)&&a.searchParams.set("staleCacheSeconds",String(h)),v){const f=O({sort:v});for(const k in f)a.searchParams.set(k,JSON.stringify(f[k]))}const L={...Ae(),...j(e.options||{})};b={...b,...it(L)};const N=O(L);for(const f in N)a.searchParams.set(f,String(N[f]));if(Object.keys(b).length>0&&a.searchParams.set("userAttributes",JSON.stringify(b)),r){const f=ue({query:r});for(const k in f)a.searchParams.set(k,JSON.stringify(f[k]))}return a},ot=e=>{const t={};for(const n in e)n.startsWith("userAttributes.")&&(t[n]=e[n],delete e[n]);return t},it=e=>{if(c()&&e.preview==="BUILDER_STUDIO"){e["userAttributes.urlPath"]=window.location.pathname,e["userAttributes.host"]=window.location.host;const t=ot(e),{userAttributes:n}=rt(t);return n}return{}},at=e=>"results"in e;async function le(e){const t=await fe({...e,limit:1});return t&&t[0]||null}const ct=async e=>{var i,u;const t=x(e),n=(i=e.fetch)!=null?i:nt,r={...e.fetchOptions,headers:{...(u=e.fetchOptions)==null?void 0:u.headers,...X()}};return await(await n(t.href,r)).json()},de=async(e,t,n=x(e))=>{const r=ce(e.canTrack);if(n.search.includes("preview="),!r||!(c()||y==="reactNative"))return t.results;try{const s=[];for(const o of t.results)s.push(await Ye({item:o,canTrack:r}));t.results=s}catch(s){d.error("Could not process A/B tests. ",s)}return t.results};async function fe(e){const t=x(e),n=await ct(e);if(!at(n))throw d.error("Error fetching data. ",{url:t,content:n,options:e}),n;return de(e,n)}const ut=async e=>{var r,s,o;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((s=e.userAttributes)==null?void 0:s.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:P(e.searchParams||((o=e.url)==null?void 0:o.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await le(n)}};exports.TARGET=y;exports._processContentResult=de;exports._track=te;exports.checkIsDefined=p;exports.createEditorListener=se;exports.createRegisterComponentMessage=ve;exports.fetchBuilderProps=ut;exports.fetchEntries=fe;exports.fetchOneEntry=le;exports.getBuilderSearchParams=P;exports.getCookieSync=I;exports.getDefaultCanTrack=ce;exports.getUserAttributes=G;exports.handleABTestingSync=Qe;exports.isBrowser=c;exports.isEditing=$;exports.isPreviewing=we;exports.logFetch=ee;exports.logger=d;exports.register=J;exports.registerInsertMenu=We;exports.serializeIncludingFunctions=C;exports.setClientUserAttributes=qe;exports.setEditorSettings=Ee;exports.setupBrowserForEditing=re;exports.subscribeToEditor=$e;exports.track=_e;exports.userAttributesService=B;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
log: (...t) => console.log(
|
|
3
|
-
error: (...t) => console.error(
|
|
4
|
-
warn: (...t) => console.warn(
|
|
5
|
-
debug: (...t) => console.debug(
|
|
1
|
+
const I = "react", k = "[Builder.io]: ", f = {
|
|
2
|
+
log: (...t) => console.log(k, ...t),
|
|
3
|
+
error: (...t) => console.error(k, ...t),
|
|
4
|
+
warn: (...t) => console.warn(k, ...t),
|
|
5
|
+
debug: (...t) => console.debug(k, ...t)
|
|
6
6
|
};
|
|
7
7
|
function c() {
|
|
8
8
|
return typeof window != "undefined" && typeof document != "undefined";
|
|
@@ -44,7 +44,7 @@ const ct = () => {
|
|
|
44
44
|
return t.match(/IEMobile/i) || t.match(/WPDesktop/i);
|
|
45
45
|
},
|
|
46
46
|
any() {
|
|
47
|
-
return e.Android() || e.BlackBerry() || e.iOS() || e.Opera() || e.Windows() ||
|
|
47
|
+
return e.Android() || e.BlackBerry() || e.iOS() || e.Opera() || e.Windows() || I === "reactNative";
|
|
48
48
|
}
|
|
49
49
|
}, n = t.match(/Tablet|iPad/i), r = ct();
|
|
50
50
|
return {
|
|
@@ -112,8 +112,8 @@ const N = "builder.", ht = "options.", W = (t) => {
|
|
|
112
112
|
return {};
|
|
113
113
|
const t = new URLSearchParams(window.location.search);
|
|
114
114
|
return W(t);
|
|
115
|
-
}, _ = "4.0.
|
|
116
|
-
"X-Builder-SDK":
|
|
115
|
+
}, _ = "4.0.6", $ = () => ({
|
|
116
|
+
"X-Builder-SDK": I,
|
|
117
117
|
"X-Builder-SDK-GEN": "2",
|
|
118
118
|
"X-Builder-SDK-Version": _
|
|
119
119
|
}), pt = (t) => {
|
|
@@ -290,7 +290,7 @@ async function xt({
|
|
|
290
290
|
f.error("Missing API key for track call. Please provide your API key.");
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
|
-
if (!e.canTrack || at() || !(c() ||
|
|
293
|
+
if (!e.canTrack || at() || !(c() || I === "reactNative"))
|
|
294
294
|
return;
|
|
295
295
|
const r = `${t || "https://cdn.builder.io"}/api/v1/track`;
|
|
296
296
|
return Ct(r), fetch(r, {
|
|
@@ -346,7 +346,7 @@ const Rt = (t) => {
|
|
|
346
346
|
V || (V = !0, c() && ((e = window.parent) == null || e.postMessage({
|
|
347
347
|
type: "builder.sdkInfo",
|
|
348
348
|
data: {
|
|
349
|
-
target:
|
|
349
|
+
target: I,
|
|
350
350
|
version: _,
|
|
351
351
|
supportsPatchUpdates: !1,
|
|
352
352
|
// Supports builder-model="..." attribute which is needed to
|
|
@@ -373,10 +373,10 @@ const Rt = (t) => {
|
|
|
373
373
|
if (s != null && s.type)
|
|
374
374
|
switch (s.type) {
|
|
375
375
|
case "builder.evaluate": {
|
|
376
|
-
const u = s.data.text, b = s.data.arguments || [], p = s.data.id,
|
|
376
|
+
const u = s.data.text, b = s.data.arguments || [], p = s.data.id, S = new Function(u);
|
|
377
377
|
let l, h = null;
|
|
378
378
|
try {
|
|
379
|
-
l =
|
|
379
|
+
l = S.apply(null, b);
|
|
380
380
|
} catch (g) {
|
|
381
381
|
h = g;
|
|
382
382
|
}
|
|
@@ -387,8 +387,8 @@ const Rt = (t) => {
|
|
|
387
387
|
error: h.message
|
|
388
388
|
}
|
|
389
389
|
}, "*") : l && typeof l.then == "function" ? l.then((g) => {
|
|
390
|
-
var
|
|
391
|
-
(
|
|
390
|
+
var w;
|
|
391
|
+
(w = window.parent) == null || w.postMessage({
|
|
392
392
|
type: "builder.evaluateResult",
|
|
393
393
|
data: {
|
|
394
394
|
id: p,
|
|
@@ -653,11 +653,11 @@ const Xt = "v3", D = (t) => typeof t == "number" && !isNaN(t) && t >= 0, U = (t)
|
|
|
653
653
|
locale: u,
|
|
654
654
|
apiVersion: b = Xt,
|
|
655
655
|
fields: p,
|
|
656
|
-
omit:
|
|
656
|
+
omit: S,
|
|
657
657
|
offset: l,
|
|
658
658
|
cacheSeconds: h,
|
|
659
659
|
staleCacheSeconds: g,
|
|
660
|
-
sort:
|
|
660
|
+
sort: w,
|
|
661
661
|
includeUnpublished: T,
|
|
662
662
|
apiHost: nt
|
|
663
663
|
} = t;
|
|
@@ -672,12 +672,12 @@ const Xt = "v3", D = (t) => typeof t == "number" && !isNaN(t) && t >= 0, U = (t)
|
|
|
672
672
|
if (A && (a.searchParams.set("locale", A), m = {
|
|
673
673
|
locale: A,
|
|
674
674
|
...m
|
|
675
|
-
}), i && a.searchParams.set("enrich", String(i)), a.searchParams.set("omit",
|
|
675
|
+
}), i && a.searchParams.set("enrich", String(i)), a.searchParams.set("omit", S != null ? S : "meta.componentsUsed"), p && a.searchParams.set("fields", p), Number.isFinite(l) && l > -1 && a.searchParams.set("offset", String(Math.floor(l))), typeof T == "boolean" && a.searchParams.set("includeUnpublished", String(T)), h && D(h) && a.searchParams.set("cacheSeconds", String(h)), g && D(g) && a.searchParams.set("staleCacheSeconds", String(g)), w) {
|
|
676
676
|
const d = E({
|
|
677
|
-
sort:
|
|
677
|
+
sort: w
|
|
678
678
|
});
|
|
679
|
-
for (const
|
|
680
|
-
a.searchParams.set(
|
|
679
|
+
for (const v in d)
|
|
680
|
+
a.searchParams.set(v, JSON.stringify(d[v]));
|
|
681
681
|
}
|
|
682
682
|
const x = {
|
|
683
683
|
...gt(),
|
|
@@ -694,8 +694,8 @@ const Xt = "v3", D = (t) => typeof t == "number" && !isNaN(t) && t >= 0, U = (t)
|
|
|
694
694
|
const d = et({
|
|
695
695
|
query: r
|
|
696
696
|
});
|
|
697
|
-
for (const
|
|
698
|
-
a.searchParams.set(
|
|
697
|
+
for (const v in d)
|
|
698
|
+
a.searchParams.set(v, JSON.stringify(d[v]));
|
|
699
699
|
}
|
|
700
700
|
return a;
|
|
701
701
|
}, zt = (t) => {
|
|
@@ -732,7 +732,7 @@ const Zt = async (t) => {
|
|
|
732
732
|
return await (await n(e.href, r)).json();
|
|
733
733
|
}, qt = async (t, e, n = U(t)) => {
|
|
734
734
|
const r = Wt(t.canTrack);
|
|
735
|
-
if (n.search.includes("preview="), !r || !(c() ||
|
|
735
|
+
if (n.search.includes("preview="), !r || !(c() || I === "reactNative"))
|
|
736
736
|
return e.results;
|
|
737
737
|
try {
|
|
738
738
|
const s = [];
|
|
@@ -778,7 +778,7 @@ const ue = async (t) => {
|
|
|
778
778
|
};
|
|
779
779
|
};
|
|
780
780
|
export {
|
|
781
|
-
|
|
781
|
+
I as TARGET,
|
|
782
782
|
qt as _processContentResult,
|
|
783
783
|
xt as _track,
|
|
784
784
|
y as checkIsDefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./server-entry-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./server-entry-5449a575.cjs");exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _processContentResult as r, createRegisterComponentMessage as s, fetchBuilderProps as i, fetchEntries as n, fetchOneEntry as o, getBuilderSearchParams as c, isEditing as g, isPreviewing as a, register as d, setEditorSettings as E, subscribeToEditor as f, track as h } from "./server-entry-
|
|
1
|
+
import { _processContentResult as r, createRegisterComponentMessage as s, fetchBuilderProps as i, fetchEntries as n, fetchOneEntry as o, getBuilderSearchParams as c, isEditing as g, isPreviewing as a, register as d, setEditorSettings as E, subscribeToEditor as f, track as h } from "./server-entry-79285592.js";
|
|
2
2
|
export {
|
|
3
3
|
r as _processContentResult,
|
|
4
4
|
s as createRegisterComponentMessage,
|
|
@@ -2,7 +2,7 @@ import { jsx as l, jsxs as j } from "react/jsx-runtime";
|
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import { useState as x } from "react";
|
|
4
4
|
import { Blocks as g } from "./blocks-exports.mjs";
|
|
5
|
-
import "./server-entry-
|
|
5
|
+
import "./server-entry-1d157602.js";
|
|
6
6
|
const y = (t) => t.toString();
|
|
7
7
|
function B(t) {
|
|
8
8
|
var a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),j=require("react"),g=require("./blocks-exports.cjs");require("./server-entry-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),j=require("react"),g=require("./blocks-exports.cjs");require("./server-entry-e8854034.cjs");function S(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(i,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return i.default=e,Object.freeze(i)}const v=S(j),y=e=>e.toString();function p(e){var u;const[i,r]=j.useState(()=>[]);function s(){return!!(e.grid||e.oneAtATime)}function O(){return{display:"flex",alignItems:"stretch",flexDirection:"column",...e.grid&&{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap"}}}function C(){const n={...{display:"flex",flexDirection:"column"},alignItems:"stretch",cursor:"pointer"};return Object.fromEntries(Object.entries(n).filter(([l,a])=>a!==void 0))}function h(t){return`builder-accordion-title builder-accordion-title-${i.includes(t)?"open":"closed"}`}function k(t){return`builder-accordion-detail builder-accordion-detail-${i.includes(t)?"open":"closed"}`}function d(){let t=null;if(e.grid&&i.length&&document){const l=i[0];let o=document.querySelector(`.builder-accordion-title[data-index="${l}"]`);if(t=l,o){let m=o.getBoundingClientRect();for(;o=o&&o.nextElementSibling;)if(o){if(o.classList.contains("builder-accordion-detail"))continue;const f=o.getBoundingClientRect();if(f.left>m.left){const b=parseInt(o.getAttribute("data-index")||"",10);isNaN(b)||(m=f,t=b)}else break}}}return typeof t=="number"&&(t=t+1),t}function I(){const t={order:typeof d()=="number"?d():void 0,...e.grid&&{width:"100%"}};return Object.fromEntries(Object.entries(t).filter(([n,l])=>l!==void 0))}function x(t){i.includes(t)?r(s()?[]:i.filter(n=>n!==t)):r(s()?[t]:i.concat(t))}return c.jsx("div",{className:"builder-accordion",style:O(),children:(u=e.items)==null?void 0:u.map((t,n)=>c.jsxs(v.Fragment,{children:[c.jsx("div",{className:h(n),style:{...C(),...e.grid&&{width:e.gridRowWidth,order:d()!==null?y(n):y(n+1)}},"data-index":n,onClick:l=>x(n),children:c.jsx(g.Blocks,{blocks:t.title,path:`items.${n}.title`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}),i.includes(n)?c.jsx("div",{className:k(n),style:I(),children:c.jsx(g.Blocks,{blocks:t.detail,path:`items.${n}.detail`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]},n))})}exports.default=p;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const w=require("react/jsx-runtime"),H=require("react"),Ur=require("./blocks-exports.cjs"),W=require("./server-entry-
|
|
1
|
+
"use strict";const w=require("react/jsx-runtime"),H=require("react"),Ur=require("./blocks-exports.cjs"),W=require("./server-entry-e8854034.cjs"),kn=require("./get-class-prop-name-77a0b81b.cjs"),Cn=require("./dynamic-renderer-b29b45ca.cjs"),Fr=H.createContext({registeredComponents:{}}),Lr=(e,t,n)=>{const r=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((o,s)=>o!=null?o[s]:o,e);return r===void 0||r===e?n:r},Wr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),jn=()=>({isEditing:W.isEditing(),isBrowser:W.isBrowser(),isServer:!W.isBrowser(),getUserAttributes:()=>W.getUserAttributes()}),On=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function Ft({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const s=r[o];return typeof s=="object"&&s!==null?Ft({rootState:s,localState:void 0,rootSetState:n?a=>{r[o]=a,n(r)}:void 0}):s},set:(r,o,s)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=s,n==null||n(r),!0}})}const An=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:s,rootState:a})=>{const f=Wr({builder:t,context:n,event:r,state:Ft({rootState:a,localState:o,rootSetState:s})});return new Function(...f.map(([d])=>d),e)(...f.map(([,d])=>d))};var R,In=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&&Sn.test(String.fromCharCode(i))}function n(i){return 65>i?i===36:91>i?!0:97>i?i===95:123>i?!0:170<=i&&Tr.test(String.fromCharCode(i))}function r(i,l){for(var u=g,p=1,k=0;;){ot.lastIndex=k;var F=ot.exec(u);if(F&&F.index<i)++p,k=F.index+F[0].length;else break}throw u={line:p,ab:i-k},l+=" ("+u.line+":"+u.ab+")",l=new SyntaxError(l),l.j=i,l.X=u,l.o=c,l}function o(i){i=i.split(" ");for(var l=Object.create(null),u=0;u<i.length;u++)l[i[u]]=!0;return function(p){return l[p]||!1}}function s(){this.line=ge,this.ab=c-ne}function a(i,l){ve=c,j.C&&(xt=new s),E=i,d(),Z=l,be=i.m}function f(){for(var i=c,l=j.va&&j.C&&new s,u=g.charCodeAt(c+=2);c<me&&u!==10&&u!==13&&u!==8232&&u!==8233;)++c,u=g.charCodeAt(c);j.va&&j.va(!1,g.slice(i+2,c),i,c,l,j.C&&new s)}function d(){for(;c<me;){var i=g.charCodeAt(c);if(i===32)++c;else if(i===13)++c,i=g.charCodeAt(c),i===10&&++c,j.C&&(++ge,ne=c);else if(i===10||i===8232||i===8233)++c,j.C&&(++ge,ne=c);else if(8<i&&14>i)++c;else if(i===47)if(i=g.charCodeAt(c+1),i===42){i=void 0;var l=j.va&&j.C&&new s,u=c,p=g.indexOf("*/",c+=2);if(p===-1&&r(c-2,"Unterminated comment"),c=p+2,j.C)for(ot.lastIndex=u;(i=ot.exec(g))&&i.index<c;)++ge,ne=i.index+i[0].length;j.va&&j.va(!0,g.slice(u+2,p),u,c,l,j.C&&new s)}else if(i===47)f();else break;else if(i===160)++c;else if(5760<=i&&wn.test(String.fromCharCode(i)))++c;else break}}function v(i){switch(i){case 46:i=g.charCodeAt(c+1),48<=i&&57>=i?P(!0):(++c,a(Sr));return;case 40:return++c,a(oe);case 41:return++c,a(ee);case 59:return++c,a(ie);case 44:return++c,a(pe);case 91:return++c,a(Tt);case 93:return++c,a(Pt);case 123:return++c,a(Me);case 125:return++c,a(we);case 58:return++c,a(De);case 63:return++c,a(Er);case 48:if(i=g.charCodeAt(c+1),i===120||i===88){c+=2,i=X(16),i===null&&r(U+2,"Expected hexadecimal number"),n(g.charCodeAt(c))&&r(c,"Identifier directly after number"),a(Be,i);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:c++;for(var l="";;){c>=me&&r(U,"Unterminated string constant");var u=g.charCodeAt(c);if(u===i){++c,a(et,l);break}if(u===92){u=g.charCodeAt(++c);var p=/^[0-7]+/.exec(g.slice(c,c+3));for(p&&(p=p[0]);p&&255<parseInt(p,8);)p=p.slice(0,-1);if(p==="0"&&(p=null),++c,p)Y&&r(c-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),c+=p.length-1;else switch(u){case 110:l+=`
|
|
2
2
|
`;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(O(2));break;case 117:l+=String.fromCharCode(O(4));break;case 85:l+=String.fromCharCode(O(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(c)===10&&++c;case 10:j.C&&(ne=c,++ge);break;default:l+=String.fromCharCode(u)}}else u!==13&&u!==10&&u!==8232&&u!==8233||r(U,"Unterminated string constant"),l+=String.fromCharCode(u),++c}return;case 47:i=g.charCodeAt(c+1),be?(++c,G()):i===61?I(ye,2):I(kr,1);return;case 37:case 42:g.charCodeAt(c+1)===61?I(ye,2):I(mn,1);return;case 124:case 38:l=g.charCodeAt(c+1),l===i?I(i===124?Or:Ar,2):l===61?I(ye,2):I(i===124?cn:pn,1);return;case 94:g.charCodeAt(c+1)===61?I(ye,2):I(fn,1);return;case 43:case 45:l=g.charCodeAt(c+1),l===i?l===45&&g.charCodeAt(c+2)===62&&nt.test(g.slice(fe,c))?(c+=3,f(),d(),T()):I(un,2):l===61?I(ye,2):I(yn,1);return;case 60:case 62:l=g.charCodeAt(c+1),u=1,l===i?(u=i===62&&g.charCodeAt(c+2)===62?3:2,g.charCodeAt(c+u)===61?I(ye,u+1):I(gn,u)):l===33&&i===60&&g.charCodeAt(c+2)===45&&g.charCodeAt(c+3)===45?(c+=4,f(),d(),T()):(l===61&&(u=g.charCodeAt(c+2)===61?3:2),I(dn,u));return;case 61:case 33:g.charCodeAt(c+1)===61?I(hn,g.charCodeAt(c+2)===61?3:2):I(i===61?Cr:jr,1);return;case 126:return I(jr,1)}return!1}function T(i){if(i?c=U+1:U=c,j.C&&(vt=new s),i)return G();if(c>=me)return a(Et);if(i=g.charCodeAt(c),n(i)||i===92)return _();if(v(i)===!1){if(i=String.fromCharCode(i),i==="\\"||Tr.test(i))return _();r(c,"Unexpected character '"+i+"'")}}function I(i,l){var u=g.slice(c,c+l);c+=l,a(i,u)}function G(){for(var i,l,u=c;;){c>=me&&r(u,"Unterminated regexp");var p=g.charAt(c);if(nt.test(p)&&r(u,"Unterminated regexp"),i)i=!1;else{if(p==="[")l=!0;else if(p==="]"&&l)l=!1;else if(p==="/"&&!l)break;i=p==="\\"}++c}i=g.slice(u,c),++c,(l=N())&&!/^[gmi]*$/.test(l)&&r(u,"Invalid regexp flag");try{var k=new RegExp(i,l)}catch(F){throw F instanceof SyntaxError&&r(u,F.message),F}a(rr,k)}function X(i,l){for(var u=c,p=0,k=l===void 0?1/0:l,F=0;F<k;++F){var z=g.charCodeAt(c);if(z=97<=z?z-97+10:65<=z?z-65+10:48<=z&&57>=z?z-48:1/0,z>=i)break;++c,p=p*i+z}return c===u||l!==void 0&&c-u!==l?null:p}function P(i){var l=c,u=!1,p=g.charCodeAt(c)===48;i||X(10)!==null||r(l,"Invalid number"),g.charCodeAt(c)===46&&(++c,X(10),u=!0),i=g.charCodeAt(c),(i===69||i===101)&&(i=g.charCodeAt(++c),i!==43&&i!==45||++c,X(10)===null&&r(l,"Invalid number"),u=!0),n(g.charCodeAt(c))&&r(c,"Identifier directly after number"),i=g.slice(l,c);var k;u?k=parseFloat(i):p&&i.length!==1?/[89]/.test(i)||Y?r(l,"Invalid number"):k=parseInt(i,8):k=parseInt(i,10),a(Be,k)}function O(i){return i=X(16,i),i===null&&r(U,"Bad character escape sequence"),i}function N(){Se=!1;for(var i,l=!0,u=c;;){var p=g.charCodeAt(c);if(t(p))Se&&(i+=g.charAt(c)),++c;else if(p===92){Se||(i=g.slice(u,c)),Se=!0,g.charCodeAt(++c)!==117&&r(c,"Expecting Unicode escape sequence \\uXXXX"),++c,p=O(4);var k=String.fromCharCode(p);k||r(c-1,"Invalid Unicode escape"),(l?n(p):t(p))||r(c-4,"Invalid Unicode escape"),i+=k}else break;l=!1}return Se?i:g.slice(u,c)}function _(){var i=N(),l=xe;!Se&&xn(i)&&(l=ln[i]),a(l,i)}function C(){wt=U,fe=ve,St=xt,T()}function ce(i){if(Y=i,c=U,j.C)for(;c<ne;)ne=g.lastIndexOf(`
|
|
3
3
|
`,ne-2)+1,--ge;d(),T()}function Ae(){this.type=null,this.start=U,this.end=null}function Ie(){this.start=vt,this.end=null,mt&&(this.source=mt)}function B(){var i=new Ae;return j.C&&(i.X=new Ie),j.vb&&(i.sourceFile=j.vb),j.Xa&&(i.j=[U,0]),i}function q(i){var l=new Ae;return l.start=i.start,j.C&&(l.X=new Ie,l.X.start=i.X.start),j.Xa&&(l.j=[i.j[0],0]),l}function S(i,l){return i.type=l,i.end=fe,j.C&&(i.X.end=St),j.Xa&&(i.j[1]=fe),i}function ct(i){return i.type==="ExpressionStatement"&&i.la.type==="Literal"&&i.la.value==="use strict"}function b(i){return E===i?(C(),!0):!1}function Ze(){return!j.fc&&(E===Et||E===we||nt.test(g.slice(fe,U)))}function de(){b(ie)||Ze()||te()}function M(i){E===i?C():te()}function te(){r(U,"Unexpected token")}function qe(i){i.type!=="Identifier"&&i.type!=="MemberExpression"&&r(i.start,"Assigning to rvalue"),Y&&i.type==="Identifier"&&rt(i.name)&&r(i.start,"Assigning to "+i.name+" in strict mode")}function Q(){(E===kr||E===ye&&Z==="/=")&&T(!0);var i=E,l=B();switch(i){case kt:case or:C();var u=i===kt;b(ie)||Ze()?l.label=null:E!==xe?te():(l.label=re(),de());for(var p=0;p<D.length;++p){var k=D[p];if((l.label===null||k.name===l.label.name)&&(k.kind!==null&&(u||k.kind==="loop")||l.label&&u))break}return p===D.length&&r(l.start,"Unsyntactic "+i.l),S(l,u?"BreakStatement":"ContinueStatement");case ir:return C(),de(),S(l,"DebuggerStatement");case ar:return C(),D.push(Rt),l.body=Q(),D.pop(),M(It),l.test=Te(),de(),S(l,"DoWhileStatement");case cr:return C(),D.push(Rt),M(oe),E===ie?ft(l,null):E===At?(i=B(),C(),er(i,!0),S(i,"VariableDeclaration"),i.fa.length===1&&b(tt)?Qt(l,i):ft(l,i)):(i=V(!1,!0),b(tt)?(qe(i),Qt(l,i)):ft(l,i));case jt:return C(),gt(l,!0);case fr:return C(),l.test=Te(),l.da=Q(),l.alternate=b(lr)?Q():null,S(l,"IfStatement");case pr:return Ne||j.Ib||r(U,"'return' outside of function"),C(),b(ie)||Ze()?l.K=null:(l.K=V(),de()),S(l,"ReturnStatement");case Ot:for(C(),l.Qb=Te(),l.tb=[],M(Me),D.push(En);E!==we;)E===Ct||E===sr?(i=E===Ct,p&&S(p,"SwitchCase"),l.tb.push(p=B()),p.da=[],C(),i?p.test=V():(u&&r(wt,"Multiple default clauses"),u=!0,p.test=null),M(De)):(p||te(),p.da.push(Q()));return p&&S(p,"SwitchCase"),C(),D.pop(),S(l,"SwitchStatement");case hr:return C(),nt.test(g.slice(fe,U))&&r(fe,"Illegal newline after throw"),l.K=V(),de(),S(l,"ThrowStatement");case dr:return C(),l.block=Pe(),l.Ea=null,E===nr&&(i=B(),C(),M(oe),i.Ua=re(),Y&&rt(i.Ua.name)&&r(i.Ua.start,"Binding "+i.Ua.name+" in strict mode"),M(ee),i.body=Pe(),l.Ea=S(i,"CatchClause")),l.fb=b(ur)?Pe():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),S(l,"TryStatement");case At:return C(),er(l),de(),S(l,"VariableDeclaration");case It:return C(),l.test=Te(),D.push(Rt),l.body=Q(),D.pop(),S(l,"WhileStatement");case gr:return Y&&r(U,"'with' in strict mode"),C(),l.object=Te(),l.body=Q(),S(l,"WithStatement");case Me:return Pe();case ie:return C(),S(l,"EmptyStatement");default:if(u=Z,k=V(),i===xe&&k.type==="Identifier"&&b(De)){for(p=0;p<D.length;++p)D[p].name===u&&r(k.start,"Label '"+u+"' is already declared");return D.push({name:u,kind:E.W?"loop":E===Ot?"switch":null}),l.body=Q(),D.pop(),l.label=k,S(l,"LabeledStatement")}return l.la=k,de(),S(l,"ExpressionStatement")}}function Te(){M(oe);var i=V();return M(ee),i}function Pe(i){var l=B(),u=!0,p=!1;for(l.body=[],M(Me);!b(we);){var k=Q();if(l.body.push(k),u&&i&&ct(k)){var F=p;ce(p=!0)}u=!1}return p&&!F&&ce(!1),S(l,"BlockStatement")}function ft(i,l){return i.ua=l,M(ie),i.test=E===ie?null:V(),M(ie),i.update=E===ee?null:V(),M(ee),i.body=Q(),D.pop(),S(i,"ForStatement")}function Qt(i,l){return i.left=l,i.right=V(),M(ee),i.body=Q(),D.pop(),S(i,"ForInStatement")}function er(i,l){for(i.fa=[],i.kind="var";;){var u=B();if(u.id=re(),Y&&rt(u.id.name)&&r(u.id.start,"Binding "+u.id.name+" in strict mode"),u.ua=b(Cr)?V(!0,l):null,i.fa.push(S(u,"VariableDeclarator")),!b(pe))break}}function V(i,l){var u=pt(l);if(!i&&E===pe){for(i=q(u),i.xb=[u];b(pe);)i.xb.push(pt(l));return S(i,"SequenceExpression")}return u}function pt(i){var l=ht(dt(),-1,i);if(b(Er)){var u=q(l);u.test=l,u.da=V(!0),M(De),u.alternate=V(!0,i),l=S(u,"ConditionalExpression")}return E.Cb?(u=q(l),u.operator=Z,u.left=l,C(),u.right=pt(i),qe(l),S(u,"AssignmentExpression")):l}function ht(i,l,u){var p=E.L;if(p!==null&&(!u||E!==tt)&&p>l){var k=q(i);return k.left=i,k.operator=Z,i=E,C(),k.right=ht(dt(),p,u),p=S(k,i===Or||i===Ar?"LogicalExpression":"BinaryExpression"),ht(p,l,u)}return i}function dt(){if(E.prefix){var i=B(),l=E.$b;return i.operator=Z,be=i.prefix=!0,C(),i.K=dt(),l?qe(i.K):Y&&i.operator==="delete"&&i.K.type==="Identifier"&&r(i.start,"Deleting local variable in strict mode"),S(i,l?"UpdateExpression":"UnaryExpression")}for(l=Re(Qe());E.cc&&!Ze();)i=q(l),i.operator=Z,i.prefix=!1,i.K=l,qe(l),C(),l=S(i,"UpdateExpression");return l}function Re(i,l){if(b(Sr)){var u=q(i);return u.object=i,u.Wa=re(!0),u.bb=!1,Re(S(u,"MemberExpression"),l)}return b(Tt)?(u=q(i),u.object=i,u.Wa=V(),u.bb=!0,M(Pt),Re(S(u,"MemberExpression"),l)):!l&&b(oe)?(u=q(i),u.callee=i,u.arguments=yt(ee,!1),Re(S(u,"CallExpression"),l)):i}function Qe(){switch(E){case mr:var i=B();return C(),S(i,"ThisExpression");case xe:return re();case Be:case et:case rr:return i=B(),i.value=Z,i.raw=g.slice(U,ve),C(),S(i,"Literal");case vr:case xr:case wr:return i=B(),i.value=E.$a,i.raw=E.l,C(),S(i,"Literal");case oe:i=vt;var l=U;C();var u=V();return u.start=l,u.end=ve,j.C&&(u.X.start=i,u.X.end=xt),j.Xa&&(u.j=[l,ve]),M(ee),u;case Tt:return i=B(),C(),i.elements=yt(Pt,!0,!0),S(i,"ArrayExpression");case Me:for(i=B(),l=!0,u=!1,i.h=[],C();!b(we);){if(l)l=!1;else if(M(pe),j.sb&&b(we))break;var p={key:E===Be||E===et?Qe():re(!0)},k=!1;if(b(De)){p.value=V(!0);var F=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?te():(k=u=!0,F=p.kind=p.key.name,p.key=E===Be||E===et?Qe():re(!0),E!==oe&&te(),p.value=gt(B(),!1));if(p.key.type==="Identifier"&&(Y||u))for(var z=0;z<i.h.length;++z){var Ee=i.h[z];if(Ee.key.name===p.key.name){var bt=F===Ee.kind||k&&Ee.kind==="init"||F==="init"&&(Ee.kind==="get"||Ee.kind==="set");bt&&!Y&&F==="init"&&Ee.kind==="init"&&(bt=!1),bt&&r(p.key.start,"Redefinition of property")}}i.h.push(p)}return S(i,"ObjectExpression");case jt:return i=B(),C(),gt(i,!1);case yr:return i=B(),C(),i.callee=Re(Qe(),!0),i.arguments=b(oe)?yt(ee,!1):an,S(i,"NewExpression")}te()}function gt(i,l){E===xe?i.id=re():l?te():i.id=null,i.oa=[];var u=!0;for(M(oe);!b(ee);)u?u=!1:M(pe),i.oa.push(re());u=Ne;var p=D;if(Ne=!0,D=[],i.body=Pe(!0),Ne=u,D=p,Y||i.body.body.length&&ct(i.body.body[0])){for(u=i.id?-1:0;u<i.oa.length;++u)if(p=0>u?i.id:i.oa[u],(Ir(p.name)||rt(p.name))&&r(p.start,"Defining '"+p.name+"' in strict mode"),0<=u)for(var k=0;k<u;++k)p.name===i.oa[k].name&&r(p.start,"Argument name clash in strict mode")}return S(i,l?"FunctionDeclaration":"FunctionExpression")}function yt(i,l,u){for(var p=[],k=!0;!b(i);){if(k)k=!1;else if(M(pe),l&&j.sb&&b(i))break;p.push(u&&E===pe?null:V(!0))}return p}function re(i){var l=B();return i&&j.yb==="everywhere"&&(i=!1),E===xe?(!i&&(j.yb&&vn(Z)||Y&&Ir(Z))&&g.slice(U,ve).indexOf("\\")===-1&&r(U,"The keyword '"+Z+"' is reserved"),l.name=Z):i&&E.l?l.name=E.l:te(),be=!1,C(),S(l,"Identifier")}e.version="0.5.0";var j,g="",me,mt;e.parse=function(i,l){g=String(i),me=g.length,j=l||{};for(var u in tr)Object.prototype.hasOwnProperty.call(j,u)||(j[u]=tr[u]);for(mt=j.sourceFile,ge=1,c=ne=0,be=!0,d(),u=j.dc,wt=fe=c,j.C&&(St=new s),Ne=Y=!1,D=[],T(),i=u||B(),l=!0,u||(i.body=[]);E!==Et;)u=Q(),i.body.push(u),l&&ct(u)&&ce(!0),l=!1;return S(i,"Program")};var tr={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},c=0,U=0,ve=0,vt,xt,E,Z,be,ge,ne,wt=0,fe=0,St,Ne,D,Y,an=[],Be={type:"num"},rr={type:"regexp"},et={type:"string"},xe={type:"name"},Et={type:"eof"},kt={l:"break"},Ct={l:"case",m:!0},nr={l:"catch"},or={l:"continue"},ir={l:"debugger"},sr={l:"default"},ar={l:"do",W:!0},lr={l:"else",m:!0},ur={l:"finally"},cr={l:"for",W:!0},jt={l:"function"},fr={l:"if"},pr={l:"return",m:!0},Ot={l:"switch"},hr={l:"throw",m:!0},dr={l:"try"},At={l:"var"},It={l:"while",W:!0},gr={l:"with"},yr={l:"new",m:!0},mr={l:"this"},vr={l:"null",$a:null},xr={l:"true",$a:!0},wr={l:"false",$a:!1},tt={l:"in",L:7,m:!0},ln={break:kt,case:Ct,catch:nr,continue:or,debugger:ir,default:sr,do:ar,else:lr,finally:ur,for:cr,function:jt,if:fr,return:pr,switch:Ot,throw:hr,try:dr,var:At,while:It,with:gr,null:vr,true:xr,false:wr,new:yr,in:tt,instanceof:{l:"instanceof",L:7,m:!0},this:mr,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Tt={type:"[",m:!0},Pt={type:"]"},Me={type:"{",m:!0},we={type:"}"},oe={type:"(",m:!0},ee={type:")"},pe={type:",",m:!0},ie={type:";",m:!0},De={type:":",m:!0},Sr={type:"."},Er={type:"?",m:!0},kr={L:10,m:!0},Cr={Cb:!0,m:!0},ye={Cb:!0,m:!0},un={cc:!0,prefix:!0,$b:!0},jr={prefix:!0,m:!0},Or={L:1,m:!0},Ar={L:2,m:!0},cn={L:3,m:!0},fn={L:4,m:!0},pn={L:5,m:!0},hn={L:6,m:!0},dn={L:7,m:!0},gn={L:8,m:!0},yn={L:9,prefix:!0,m:!0},mn={L:10,m:!0},vn=o("class enum extends super const export import"),Ir=o("implements interface let package private protected public static yield"),rt=o("eval arguments"),xn=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"),wn=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Tr=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),Sn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),nt=/[\n\r\u2028\u2029]/,ot=/\r\n|[\n\r\u2028\u2029]/g,Se,Rt={kind:"loop"},En={kind:"switch"}},Mt=Mt=typeof globalThis=="undefined"?void 0:globalThis;In(Mt.j||(Mt.j={}));function h(e,t){typeof e=="string"&&(e=Ce(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 s,a;for(a in this)typeof this[a]=="function"&&(s=a.match(e))&&(this.rb[s[1]]=this[a].bind(this));this.N=_t(this,this.ra,null),this.Na=this.N.object,this.ra=Ce(this.ba.join(`
|
|
4
4
|
`),"polyfills"),this.ba=void 0,st(this.ra),s=new m(this.ra,this.N),s.done=!1,this.o=[s],this.Eb(),this.value=void 0,this.ra=r,s=new m(this.ra,this.N),s.done=!1,this.o.length=0,this.o[0]=s}var Pr={C:!0,kc:5},Lt={configurable:!0,enumerable:!0,writable:!1},y={configurable:!0,enumerable:!1,writable:!0},K={configurable:!0,enumerable:!1,writable:!1},Ue={configurable:!1,enumerable:!1,writable:!1},Rr={configurable:!1,enumerable:!0,writable:!0},Gr={STEP_ERROR:!0},Oe={SCOPE_REFERENCE:!0},He={VALUE_IN_DESCRIPTOR:!0},ke={REGEXP_TIMEOUT:!0},br=[],ae=null,$e=null,he=typeof globalThis=="undefined"?void 0:globalThis,Tn=["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 Wt(e){var t=e>>>0;return t===Number(e)?t:NaN}function Ve(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function st(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"&&st(o,t,n)}}h.prototype.REGEXP_MODE=2;h.prototype.REGEXP_THREAD_TIMEOUT=1e3;h.prototype.POLYFILL_TIMEOUT=1e3;R=h.prototype;R.P=!1;R.Ka=!1;R.Kb=0;R.ic=0;function Ce(e,t){var n={},r;for(r in Pr)n[r]=Pr[r];return n.sourceFile=t,he.j.parse(e,n)}R.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=Ce(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");ze(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};R.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&&Xr(this,n,n.interval);var r=new m(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=$e;$e=this;try{var s=this.rb[r.type](e,n,r)}catch(a){if(a!==Gr)throw this.value!==a&&(this.value=void 0),a}finally{$e=o}if(s&&e.push(s),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};R.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Pn(e,t){e.g(t,"NaN",NaN,Ue),e.g(t,"Infinity",1/0,Ue),e.g(t,"undefined",void 0,Ue),e.g(t,"window",t,Lt),e.g(t,"this",t,Ue),e.g(t,"self",t),e.M=new A(null),e.Z=new A(e.M),Rn(e,t),bn(e,t),t.xa=e.M,e.g(t,"constructor",e.v,y),Nn(e,t),Bn(e,t),Mn(e,t),Dn(e,t),_n(e,t),Un(e,t),Fn(e,t),Ln(e,t),Wn(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,y),e.g(t,"parseInt",e.i(parseInt,!1),y),e.g(t,"parseFloat",e.i(parseFloat,!1),y),e.g(t,"isNaN",e.i(isNaN,!1),y),e.g(t,"isFinite",e.i(isFinite,!1),y);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(s){return function(a){try{return s(a)}catch(f){x(e,e.Gb,f.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),y);n=function(s){return Nr(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),y),n=function(s){return Nr(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),y),n=function(s){Br(e,s)},e.g(t,"clearTimeout",e.i(n,!1),y),n=function(s){Br(e,s)},e.g(t,"clearInterval",e.i(n,!1),y),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)}R.Wb=0;function Rn(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var s=arguments.length?String(arguments[arguments.length-1]):"",a=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(a){a=a.split(/\s*,\s*/);for(var f=0;f<a.length;f++){var d=a[f];n.test(d)||x(e,e.T,"Invalid function argument: "+d)}a=a.join(", ")}try{var v=Ce("(function("+a+") {"+s+"})","function"+e.Wb++)}catch(T){x(e,e.T,"Invalid code: "+T.message)}return v.body.length!==1&&x(e,e.T,"Invalid code in function body"),Vt(e,v.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,y),e.g(e.O,"prototype",e.Z,y),e.g(e.Z,"constructor",e.O,y),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,K),e.Z.H="Function",r=function(o,s){var a=e.o[e.o.length-1];a.U=this,a.B=o,a.F=[],s!=null&&(s instanceof A?a.F=$r(e,s):x(e,e.j,"CreateListFromArrayLike called on non-object")),a.eb=!1},L(e,e.O,"apply",r),r=function(o){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[];for(var a=1;a<arguments.length;a++)s.F.push(arguments[a]);s.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),y),r=function(){return this.valueOf()},L(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),y)}function bn(e,t){function n(o){o!=null||x(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 A)){var s=e.s(le(e,o));return s.data=o,s}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,y),e.g(e.M,"constructor",e.v,y),e.g(t,"Object",e.v,y),r=function(o){return n(o),se(e,Object.getOwnPropertyNames(o instanceof A?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),y),r=function(o){return n(o),o instanceof A&&(o=o.h),se(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),y),r=function(o){return o===null?e.s(null):(o instanceof A||x(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),y),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,s,a){return s=String(s),o instanceof A||x(e,e.j,"Object.defineProperty called on non-object: "+o),a instanceof A||x(e,e.j,"Property description must be an object"),!o.preventExtensions||s in o.h||x(e,e.j,"Can't define property '"+s+"', object is not extensible"),e.g(o,s,He,a.h),o},e.g(e.v,"defineProperty",e.i(r,!1),y),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,s){if(o instanceof A||x(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),s=String(s),s in o.h){var a=Object.getOwnPropertyDescriptor(o.h,s),f=o.V[s];return o=o.Y[s],s=e.s(e.M),f||o?(e.g(s,"get",f),e.g(s,"set",o)):(e.g(s,"value",a.value),e.g(s,"writable",a.writable)),e.g(s,"configurable",a.configurable),e.g(s,"enumerable",a.enumerable),s}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),y),r=function(o){return n(o),le(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),y),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),y),r=function(o){return o instanceof A&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),y),L(e,e.v,"toString",A.prototype.toString),L(e,e.v,"toLocaleString",A.prototype.toString),L(e,e.v,"valueOf",A.prototype.valueOf),r=function(o){return n(this),this instanceof A?String(o)in this.h:this.hasOwnProperty(o)},L(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof A?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},L(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=le(e,o),!o)return!1;if(o===this)return!0}},L(e,e.v,"isPrototypeOf",r)}function Nn(e,t){var n=function(r){var o=ue(e)?this:je(e),s=arguments[0];if(arguments.length===1&&typeof s=="number")isNaN(Wt(s))&&x(e,e.ob,"Invalid array length: "+s),o.h.length=s;else{for(s=0;s<arguments.length;s++)o.h[s]=arguments[s];o.h.length=s}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,y),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),y),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 Bn(e,t){var n=function(r){return r=arguments.length?he.String(r):"",ue(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,y),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),y),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,s){o=e.R(o),s=e.R(s);try{return String(this).localeCompare(r,o,s)}catch(a){x(e,e.D,"localeCompare: "+a.message)}},L(e,e.J,"localeCompare",n),n=function(r,o,s){var a=String(this);if(o=o?Number(o):void 0,$(e,r,e.I)&&(r=r.data,Le(e,r,s),e.REGEXP_MODE===2)){if(ae)r=Fe(e,"string.split(separator, limit)",{string:a,separator:r,limit:o},r,s),r!==ke&&s(se(e,r));else{var f=e.ha(),d=We(e,r,f,s);f.onmessage=function(v){clearTimeout(d),s(se(e,v.data))},f.postMessage(["split",a,r,o])}return}r=a.split(r,o),s(se(e,r))},Ge(e,e.J,"split",n),n=function(r,o){var s=String(this);if(r=$(e,r,e.I)?r.data:new RegExp(r),Le(e,r,o),e.REGEXP_MODE===2)if(ae)r=Fe(e,"string.match(regexp)",{string:s,regexp:r},r,o),r!==ke&&o(r&&se(e,r));else{var a=e.ha(),f=We(e,r,a,o);a.onmessage=function(d){clearTimeout(f),o(d.data&&se(e,d.data))},a.postMessage(["match",s,r])}else r=s.match(r),o(r&&se(e,r))},Ge(e,e.J,"match",n),n=function(r,o){var s=String(this);if($(e,r,e.I)?r=r.data:r=new RegExp(r),Le(e,r,o),e.REGEXP_MODE===2)if(ae)r=Fe(e,"string.search(regexp)",{string:s,regexp:r},r,o),r!==ke&&o(r);else{var a=e.ha(),f=We(e,r,a,o);a.onmessage=function(d){clearTimeout(f),o(d.data)},a.postMessage(["search",s,r])}else o(s.search(r))},Ge(e,e.J,"search",n),n=function(r,o,s){var a=String(this);if(o=String(o),$(e,r,e.I)&&(r=r.data,Le(e,r,s),e.REGEXP_MODE===2)){if(ae)r=Fe(e,"string.replace(substr, newSubstr)",{string:a,substr:r,newSubstr:o},r,s),r!==ke&&s(r);else{var f=e.ha(),d=We(e,r,f,s);f.onmessage=function(v){clearTimeout(d),s(v.data)},f.postMessage(["replace",a,r,o])}return}s(a.replace(r,o))},Ge(e,e.J,"replace",n),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function Mn(e,t){e.mb=e.i(function(n){return n=he.Boolean(n),ue(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,y)}function Dn(e,t){var n=function(r){return r=arguments.length?he.Number(r):0,ue(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,y),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]],Ue);n=function(r){try{return Number(this).toExponential(r)}catch(o){x(e,e.D,o.message)}},L(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){x(e,e.D,o.message)}},L(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){x(e,e.D,o.message)}},L(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){x(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(s){x(e,e.D,"toLocaleString: "+s.message)}},L(e,e.aa,"toLocaleString",n)}function _n(e,t){var n=function(o,s){if(!ue(e))return he.Date();var a=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(he.Date,a)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,y),e.g(e.$,"now",e.i(Date.now,!1),y),e.g(e.$,"parse",e.i(Date.parse,!1),y),e.g(e.$,"UTC",e.i(Date.UTC,!1),y),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(s){var a=this.data;a instanceof Date||x(e,e.j,o+" not called on a Date");for(var f=[],d=0;d<arguments.length;d++)f[d]=e.R(arguments[d]);return a[o].apply(a,f)}}(t[r]),L(e,e.$,t[r],n)}function Un(e,t){var n=function(r,o){if(ue(e))var s=this;else{if(o===void 0&&$(e,r,e.I))return r;s=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||x(e,e.T,"Invalid regexp flag: "+o);try{var a=new he.RegExp(r,o)}catch(f){x(e,e.T,f.message)}return Gt(e,s,a),s};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,y),e.g(e.I.h.prototype,"global",void 0,K),e.g(e.I.h.prototype,"ignoreCase",void 0,K),e.g(e.I.h.prototype,"multiline",void 0,K),e.g(e.I.h.prototype,"source","(?:)",K),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 s(T){if(T){var I=se(e,T);return e.g(I,"index",T.index),e.g(I,"input",T.input),I}return null}var a=this.data;if(r=String(r),a.lastIndex=Number(e.G(this,"lastIndex")),Le(e,a,o),e.REGEXP_MODE===2)if(ae)r=Fe(e,"regexp.exec(string)",{string:r,regexp:a},a,o),r!==ke&&(e.g(this,"lastIndex",a.lastIndex),o(s(r)));else{var f=e.ha(),d=We(e,a,f,o),v=this;f.onmessage=function(T){clearTimeout(d),e.g(v,"lastIndex",T.data[1]),o(s(T.data[0]))},f.postMessage(["exec",a,a.lastIndex,r])}else r=a.exec(r),e.g(this,"lastIndex",a.lastIndex),o(s(r))},Ge(e,e.I,"exec",n)}function Fn(e,t){function n(r){var o=e.i(function(s){var a=ue(e)?this:e.Aa(o);return Dt(e,a,s),a},!0);return e.g(o,"prototype",e.Aa(e.D),y),e.g(o.h.prototype,"name",r,y),e.g(t,r,o,y),o}e.D=e.i(function(r){var o=ue(e)?this:e.Aa(e.D);return Dt(e,o,r),o},!0),e.g(t,"Error",e.D,y),e.g(e.D.h.prototype,"message","",y),e.g(e.D.h.prototype,"name","Error",y),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function Ln(e,t){var n=e.s(e.M);e.g(t,"Math",n,y);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]],K);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),y)}function Wn(e,t){var n=e.s(e.M);e.g(t,"JSON",n,y),t=function(r){try{var o=JSON.parse(String(r))}catch(s){x(e,e.T,s.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,s){o&&o.H==="Function"?x(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=$r(e,o),o=o.filter(function(f){return typeof f=="string"||typeof f=="number"})):o=null,typeof s!="string"&&typeof s!="number"&&(s=void 0),r=e.R(r);try{var a=JSON.stringify(r,o,s)}catch(f){x(e,e.j,f.message)}return a},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=le(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Gt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,y),e.g(t,"source",n.source,K),e.g(t,"global",n.global,K),e.g(t,"ignoreCase",n.ignoreCase,K),e.g(t,"multiline",n.multiline,K)}function Dt(e,t,n){n&&e.g(t,"message",String(n),y),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],s=o.node;s.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!s.X||n.length&&s.type!=="CallExpression"||n.push({Nb:s.X})}for(r=String(e.G(t,"name")),s=String(e.G(t,"message")),s=r+": "+s+`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as T, Fragment as J, jsxs as Ut } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as kn, useEffect as ke, useState as He, useRef as Cn, useContext as Mr } from "react";
|
|
3
3
|
import { BuilderContext as Vr } from "./blocks-exports.mjs";
|
|
4
|
-
import { isEditing as Lt, isBrowser as Ft, getUserAttributes as On, checkIsDefined as it, logger as Xr, TARGET as at, isPreviewing as jn } from "./server-entry-
|
|
5
|
-
import { getClassPropName as An } from "./get-class-prop-name-
|
|
4
|
+
import { isEditing as Lt, isBrowser as Ft, getUserAttributes as On, checkIsDefined as it, logger as Xr, TARGET as at, isPreviewing as jn } from "./server-entry-1d157602.js";
|
|
5
|
+
import { getClassPropName as An } from "./get-class-prop-name-03e66a61.js";
|
|
6
6
|
import { DynamicRenderer as In } from "./dynamic-renderer-8b343325.js";
|
|
7
7
|
const Tn = kn({ registeredComponents: {} }), Pn = (e, t, n) => {
|
|
8
8
|
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, s) => o != null ? o[s] : o, e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./server-entry-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./server-entry-e8854034.cjs"),e=require("react"),r=e.lazy(()=>Promise.resolve().then(()=>require("./button-45c9b994.cjs"))),n=e.lazy(()=>Promise.resolve().then(()=>require("./columns-2282e71d.cjs"))),s=e.lazy(()=>Promise.resolve().then(()=>require("./fragment-b6e3a326.cjs"))),i=e.lazy(()=>Promise.resolve().then(()=>require("./image-a6fbd15b.cjs"))),l=e.lazy(()=>Promise.resolve().then(()=>require("./section-d655ea14.cjs"))),c=e.lazy(()=>Promise.resolve().then(()=>require("./symbol-33b65252.cjs"))),a=e.lazy(()=>Promise.resolve().then(()=>require("./text-e6dbb721.cjs"))),u=e.lazy(()=>Promise.resolve().then(()=>require("./video-cc58dd83.cjs"))),m=e.lazy(()=>Promise.resolve().then(()=>require("./blocks-31199191.cjs")).then(t=>t.blocks)),y=e.lazy(()=>Promise.resolve().then(()=>require("./content-variants-ea56e041.cjs")).then(t=>t.contentVariants)),v=e.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:"",model:""});exports.setClientUserAttributes=o.setClientUserAttributes;exports.Blocks=m;exports.BuilderContext=v;exports.Button=r;exports.Columns=n;exports.Content=y;exports.Fragment=s;exports.Image=i;exports.Section=l;exports.Symbol=c;exports.Text=a;exports.Video=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { setClientUserAttributes as C } from "./server-entry-
|
|
2
|
+
import { setClientUserAttributes as C } from "./server-entry-1d157602.js";
|
|
3
3
|
import { lazy as t, createContext as e } from "react";
|
|
4
|
-
const s = t(() => import("./button-
|
|
4
|
+
const s = t(() => import("./button-1d265b68.js")), r = t(() => import("./columns-6f323a60.js")), i = t(() => import("./fragment-1492bc7f.js")), a = t(() => import("./image-1729f079.js")), c = t(() => import("./section-d83e2dd3.js")), m = t(() => import("./symbol-cc7e6b66.js")), l = t(() => import("./text-5915f038.js")), p = t(() => import("./video-52df64e2.js")), u = t(() => import("./blocks-a066bb29.js").then((o) => o.blocks)), d = t(() => import("./content-variants-ddc4462d.js").then((o) => o.contentVariants)), x = e({
|
|
5
5
|
content: null,
|
|
6
6
|
context: {},
|
|
7
7
|
localState: void 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { DynamicRenderer as r } from "./dynamic-renderer-8b343325.js";
|
|
3
|
-
import { getClassPropName as n } from "./get-class-prop-name-
|
|
4
|
-
import "./server-entry-
|
|
3
|
+
import { getClassPropName as n } from "./get-class-prop-name-03e66a61.js";
|
|
4
|
+
import "./server-entry-1d157602.js";
|
|
5
5
|
function b(t) {
|
|
6
6
|
function e() {
|
|
7
7
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),r=require("./dynamic-renderer-b29b45ca.cjs"),t=require("./get-class-prop-name-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),r=require("./dynamic-renderer-b29b45ca.cjs"),t=require("./get-class-prop-name-77a0b81b.cjs");require("./server-entry-e8854034.cjs");function u(e){function n(){return{...e.attributes,[t.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[t.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return i.jsx(r.DynamicRenderer,{attributes:n(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}exports.default=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("./blocks-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("./blocks-31199191.cjs"),j=require("./dynamic-renderer-b29b45ca.cjs"),B=require("./get-class-prop-name-77a0b81b.cjs");require("react");require("./blocks-exports.cjs");require("./server-entry-e8854034.cjs");const q=t=>`builder-columns ${t}-breakpoints`;function p(t){var f,k;function a(){return typeof t.space=="number"?t.space||0:20}function s(){return t.columns||[]}function u(){return t.stackColumnsAt||"tablet"}function y(e){return e.link?t.builderLinkComponent||"a":"div"}function x(e){var n;return((n=s()[e])==null?void 0:n.width)||100/s().length}function S(e){const n=x(e),i=a()*(s().length-1)*(n/100);return`calc(${n}% - ${i}px)`}function c({stackedStyle:e,desktopStyle:n}){return u()==="tablet"?e:n}function d({stackedStyle:e,desktopStyle:n}){return u()==="never"?n:e}function m(){return t.stackColumnsAt==="never"?"row":t.reverseColumnsWhenStacked?"column-reverse":"column"}function C(){return{"--flex-dir":m(),"--flex-dir-tablet":c({stackedStyle:m(),desktopStyle:"row"})}}function v(e){const n=e===0?0:a(),i=S(e),r=`${n}px`,g="100%",h=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:i,["marginLeft"]:r,"--column-width-mobile":d({stackedStyle:g,desktopStyle:i}),"--column-margin-left-mobile":d({stackedStyle:h,desktopStyle:r}),"--column-width-tablet":c({stackedStyle:g,desktopStyle:i}),"--column-margin-left-tablet":c({stackedStyle:h,desktopStyle:r})}}function b(e){var i,r;return o.getSizesForBreakpoints(((r=(i=t.builderContext.content)==null?void 0:i.meta)==null?void 0:r.breakpoints)||{})[e].max}function w(){const e=`.${t.builderBlock.id}-breakpoints > .builder-column`;return`
|
|
2
2
|
@media (max-width: ${b("medium")}px) {
|
|
3
3
|
.${t.builderBlock.id}-breakpoints {
|
|
4
4
|
flex-direction: var(--flex-dir-tablet);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as g, Fragment as $, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { InlinedStyles as B, Blocks as L, mapStyleObjToStrIfNeeded as W, getSizesForBreakpoints as z } from "./blocks-
|
|
2
|
+
import { InlinedStyles as B, Blocks as L, mapStyleObjToStrIfNeeded as W, getSizesForBreakpoints as z } from "./blocks-a066bb29.js";
|
|
3
3
|
import { DynamicRenderer as A } from "./dynamic-renderer-8b343325.js";
|
|
4
|
-
import { getClassPropName as N } from "./get-class-prop-name-
|
|
4
|
+
import { getClassPropName as N } from "./get-class-prop-name-03e66a61.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "./blocks-exports.mjs";
|
|
7
|
-
import "./server-entry-
|
|
7
|
+
import "./server-entry-1d157602.js";
|
|
8
8
|
const D = (e) => `builder-columns ${e}-breakpoints`;
|
|
9
9
|
function O(e) {
|
|
10
10
|
var b, f;
|