@builder.io/sdk-react-nextjs 0.14.19 → 0.14.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/lib/{node/USE_CLIENT_BUNDLE-e4c15aa7.js → browser/USE_CLIENT_BUNDLE-b0af90c6.js} +2 -2
  2. package/lib/browser/{USE_CLIENT_BUNDLE-a0af5379.cjs → USE_CLIENT_BUNDLE-eb52194d.cjs} +1 -1
  3. package/lib/{edge/USE_SERVER_BUNDLE-7acc7eaf.cjs → browser/USE_SERVER_BUNDLE-719f53b1.cjs} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-90c6ce15.js → browser/USE_SERVER_BUNDLE-d83b7d23.js} +1 -1
  5. package/lib/browser/{bundle-9732e1d3.cjs → bundle-12d2c3ee.cjs} +2 -2
  6. package/lib/browser/{bundle-edd2e835.js → bundle-83df769b.js} +2 -2
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{browser/USE_CLIENT_BUNDLE-b63f19ab.js → edge/USE_CLIENT_BUNDLE-2d9b453e.js} +2 -2
  10. package/lib/{node/USE_CLIENT_BUNDLE-8a32af0d.cjs → edge/USE_CLIENT_BUNDLE-47285217.cjs} +1 -1
  11. package/lib/{node/USE_SERVER_BUNDLE-d6552b77.cjs → edge/USE_SERVER_BUNDLE-9e66cbc6.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-4fd50e3b.js → edge/USE_SERVER_BUNDLE-c879ad04.js} +1 -1
  13. package/lib/edge/{bundle-e86f8464.js → bundle-73367f5c.js} +2 -2
  14. package/lib/edge/{bundle-af88805d.cjs → bundle-8a8fdc14.cjs} +2 -2
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-8bf08d5b.js → node/USE_CLIENT_BUNDLE-68277019.js} +2 -2
  18. package/lib/{edge/USE_CLIENT_BUNDLE-0a51f6af.cjs → node/USE_CLIENT_BUNDLE-8d2c6823.cjs} +1 -1
  19. package/lib/{browser/USE_SERVER_BUNDLE-60e66f1c.js → node/USE_SERVER_BUNDLE-84ab22ef.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-c0e4ee23.cjs → node/USE_SERVER_BUNDLE-a4d10e9b.cjs} +1 -1
  21. package/lib/node/{bundle-1280dc1a.js → bundle-08369562.js} +2 -2
  22. package/lib/node/{bundle-23855e1a.cjs → bundle-832f5a95.cjs} +2 -2
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +1 -1
  26. package/types/cjs/constants/sdk-version.d.ts +1 -1
  27. package/types/esm/constants/sdk-version.d.ts +1 -1
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as a, Fragment as E, jsxs as I } from "react/jsx-runtime";
3
- import { i as Z, g as H, a as $, b as O, c as w, d as R, e as p, f as _, h as V, _ as D, j as ee, l as te, k as ne, m as ie, t as ae, n as U, o as ce, p as re, q as le, r as oe, s as de, u as se, v as ue } from "./bundle-1280dc1a.js";
3
+ import { i as Z, g as H, a as $, b as O, c as w, d as R, e as p, f as _, h as V, _ as D, j as ee, l as te, k as ne, m as ie, t as ae, n as U, o as ce, p as re, q as le, r as oe, s as de, u as se, v as ue } from "./bundle-83df769b.js";
4
4
  import { useRef as T, useState as C, useEffect as f, createContext as me } from "react";
5
- import { p as ge } from "./USE_SERVER_BUNDLE-4fd50e3b.js";
5
+ import { p as ge } from "./USE_SERVER_BUNDLE-d83b7d23.js";
6
6
  import { useRouter as be } from "next/navigation";
7
7
  function J(e) {
8
8
  return /* @__PURE__ */ a(E, { children: Z(e.TagName) ? /* @__PURE__ */ a(E, { children: /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ a(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const t=require("react/jsx-runtime"),n=require("./bundle-9732e1d3.cjs"),l=require("react"),D=require("./USE_SERVER_BUNDLE-c0e4ee23.cjs"),H=require("next/navigation");function j(e){return t.jsx(t.Fragment,{children:n.isEmptyElement(e.TagName)?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):t.jsx(t.Fragment,{children:typeof e.TagName=="string"?t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}function V(e){function c(){return{...e.attributes,[n.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[n.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return t.jsx(j,{attributes:c(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}function U(e){return t.jsx(j,{TagName:e.Wrapper,attributes:n.getBlockProperties({block:e.block,context:e.context}),actionAttributes:n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function O(e){function c(){return e.includeBlockProps?{...n.getBlockProperties({block:e.block,context:e.context}),...n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:c(),children:e.children})}function $(e){function c(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function g(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function S(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:c()+" props-blocks-wrapper-7cd1560e","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>g(),onMouseEnter:o=>S(),onKeyPress:o=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-7cd1560e {
1
+ "use client";"use strict";const t=require("react/jsx-runtime"),n=require("./bundle-12d2c3ee.cjs"),l=require("react"),D=require("./USE_SERVER_BUNDLE-719f53b1.cjs"),H=require("next/navigation");function j(e){return t.jsx(t.Fragment,{children:n.isEmptyElement(e.TagName)?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):t.jsx(t.Fragment,{children:typeof e.TagName=="string"?t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}function V(e){function c(){return{...e.attributes,[n.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[n.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return t.jsx(j,{attributes:c(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}function U(e){return t.jsx(j,{TagName:e.Wrapper,attributes:n.getBlockProperties({block:e.block,context:e.context}),actionAttributes:n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function O(e){function c(){return e.includeBlockProps?{...n.getBlockProperties({block:e.block,context:e.context}),...n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:c(),children:e.children})}function $(e){function c(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function g(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function S(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:c()+" props-blocks-wrapper-7cd1560e","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>g(),onMouseEnter:o=>S(),onKeyPress:o=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-7cd1560e {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -1 +1 @@
1
- "use server";"use strict";const n=require("./bundle-af88805d.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
1
+ "use server";"use strict";const n=require("./bundle-12d2c3ee.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { w as s } from "./bundle-e86f8464.js";
2
+ import { w as s } from "./bundle-83df769b.js";
3
3
  async function n({
4
4
  key: t,
5
5
  value: r
@@ -1,4 +1,4 @@
1
- "use strict";const c=require("react/jsx-runtime");require("react");const Je=require("lru-cache"),k=require("./USE_CLIENT_BUNDLE-a0af5379.cjs");require("next/navigation");const Ye=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Ge=e=>typeof e=="string"&&Ye.has(e.toLowerCase()),E="rsc",O=()=>{switch(E){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function Qe(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const A="[Builder.io]: ",C={log:(...e)=>console.log(A,...e),error:(...e)=>console.error(A,...e),warn:(...e)=>console.warn(A,...e),debug:(...e)=>console.debug(A,...e)};function v(){return typeof window<"u"&&typeof document<"u"}const Xe=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},me=e=>e instanceof URLSearchParams?Xe(e):e,fe=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function Ze(){return v()&&window.self!==window.top}function H(e){return Ze()&&fe(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const et=()=>{if(v()){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},tt=()=>typeof navigator=="object"&&navigator.userAgent||"",he=()=>{const e=tt(),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()||E==="reactNative"}},n=e.match(/Tablet|iPad/i),o=et();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},nt=({builder:e,context:t,event:n,state:o})=>Object.entries({state:o,Builder:e,builder:e,context:t,event:n}),ot=()=>({isEditing:H(),isBrowser:v(),isServer:!v(),getUserAttributes:()=>he()}),it=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,X=({code:e,builder:t,context:n,event:o,localState:i,rootSetState:r,rootState:a})=>{const s=nt({builder:t,context:n,event:o,state:pe({rootState:a,localState:i,rootSetState:r})});return new Function(...s.map(([l])=>l),e)(...s.map(([,l])=>l))};function pe({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(o,i)=>{if(t&&i in t)return t[i];const r=o[i];return typeof r=="object"&&r!==null?pe({rootState:r,localState:void 0,rootSetState:n?a=>{o[i]=a,n(o)}:void 0}):r},set:(o,i,r)=>{if(t&&i in t)throw new Error("Writing to local state is not allowed as it is read-only.");return o[i]=r,n==null||n(o),!0}})}const I=e=>e!=null;function rt(){var e;return typeof process<"u"&&I((e=process==null?void 0:process.versions)==null?void 0:e.node)}const at=()=>{var o;if(!rt())return!1;const e=process.arch==="arm64",t=process.version.startsWith("v20"),n=(o=process.env.NODE_OPTIONS)==null?void 0:o.includes("--no-node-snapshot");return e&&t&&!n?(C.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},st=e=>(v()||at(),X(e)),K=class R{static getCacheKey(t){return JSON.stringify({...t,event:t.event?Math.random():void 0})}static getCachedValue(t){return R.cache.get(t)}static setCachedValue(t,n){R.cache.size>20&&R.cache.delete(R.cache.keys().next().value),R.cache.set(t,{value:n})}};K.cacheLimit=20;K.cache=new Map;let B=K;function $({code:e,context:t,localState:n,rootState:o,rootSetState:i,event:r,isExpression:a=!0,enableCache:s}){if(e==="")return;const l={code:it(e,{isExpression:a}),builder:ot(),context:t,event:r,rootSetState:i,rootState:o,localState:n};if(s){const u=B.getCacheKey(l),h=B.getCachedValue(u);if(h)return h.value}try{const u=st(l);if(s){const h=B.getCacheKey(l);B.setCachedValue(h,u)}return u}catch(u){C.error("Failed code evaluation: "+u.message,{code:e});return}}const P=e=>JSON.parse(JSON.stringify(e)),ct=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((i,r,a)=>Object(i[r])===i[r]?i[r]:i[r]=Math.abs(Number(o[a+1]))>>0===+o[a+1]?[]:{},e)[o[o.length-1]]=n,e};const lt=({block:e,context:t,localState:n,rootState:o,rootSetState:i})=>{if(!e.bindings)return e;const r=P(e),a={...r,properties:{...r.properties},actions:{...r.actions}};for(const s in e.bindings){const l=e.bindings[s],u=$({code:l,localState:n,rootState:o,rootSetState:i,context:t,enableCache:!0});ct(a,s,u)}return a};function j({block:e,context:t,shouldEvaluateBindings:n,localState:o,rootState:i,rootSetState:r}){const a=e;return n?lt({block:a,localState:o,rootState:i,rootSetState:r,context:t}):a}const dt=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),ge=e=>Object.entries(e).map(([n,o])=>{if(typeof o=="string")return`${dt(n)}: ${o};`}).filter(I),ut=e=>ge(e).join(`
1
+ "use strict";const c=require("react/jsx-runtime");require("react");const Je=require("lru-cache"),k=require("./USE_CLIENT_BUNDLE-eb52194d.cjs");require("next/navigation");const Ye=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Ge=e=>typeof e=="string"&&Ye.has(e.toLowerCase()),E="rsc",O=()=>{switch(E){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function Qe(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const A="[Builder.io]: ",C={log:(...e)=>console.log(A,...e),error:(...e)=>console.error(A,...e),warn:(...e)=>console.warn(A,...e),debug:(...e)=>console.debug(A,...e)};function v(){return typeof window<"u"&&typeof document<"u"}const Xe=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},me=e=>e instanceof URLSearchParams?Xe(e):e,fe=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function Ze(){return v()&&window.self!==window.top}function H(e){return Ze()&&fe(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const et=()=>{if(v()){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},tt=()=>typeof navigator=="object"&&navigator.userAgent||"",he=()=>{const e=tt(),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()||E==="reactNative"}},n=e.match(/Tablet|iPad/i),o=et();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},nt=({builder:e,context:t,event:n,state:o})=>Object.entries({state:o,Builder:e,builder:e,context:t,event:n}),ot=()=>({isEditing:H(),isBrowser:v(),isServer:!v(),getUserAttributes:()=>he()}),it=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,X=({code:e,builder:t,context:n,event:o,localState:i,rootSetState:r,rootState:a})=>{const s=nt({builder:t,context:n,event:o,state:pe({rootState:a,localState:i,rootSetState:r})});return new Function(...s.map(([l])=>l),e)(...s.map(([,l])=>l))};function pe({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(o,i)=>{if(t&&i in t)return t[i];const r=o[i];return typeof r=="object"&&r!==null?pe({rootState:r,localState:void 0,rootSetState:n?a=>{o[i]=a,n(o)}:void 0}):r},set:(o,i,r)=>{if(t&&i in t)throw new Error("Writing to local state is not allowed as it is read-only.");return o[i]=r,n==null||n(o),!0}})}const I=e=>e!=null;function rt(){var e;return typeof process<"u"&&I((e=process==null?void 0:process.versions)==null?void 0:e.node)}const at=()=>{var o;if(!rt())return!1;const e=process.arch==="arm64",t=process.version.startsWith("v20"),n=(o=process.env.NODE_OPTIONS)==null?void 0:o.includes("--no-node-snapshot");return e&&t&&!n?(C.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},st=e=>(v()||at(),X(e)),K=class R{static getCacheKey(t){return JSON.stringify({...t,event:t.event?Math.random():void 0})}static getCachedValue(t){return R.cache.get(t)}static setCachedValue(t,n){R.cache.size>20&&R.cache.delete(R.cache.keys().next().value),R.cache.set(t,{value:n})}};K.cacheLimit=20;K.cache=new Map;let B=K;function $({code:e,context:t,localState:n,rootState:o,rootSetState:i,event:r,isExpression:a=!0,enableCache:s}){if(e==="")return;const l={code:it(e,{isExpression:a}),builder:ot(),context:t,event:r,rootSetState:i,rootState:o,localState:n};if(s){const u=B.getCacheKey(l),h=B.getCachedValue(u);if(h)return h.value}try{const u=st(l);if(s){const h=B.getCacheKey(l);B.setCachedValue(h,u)}return u}catch(u){C.error("Failed code evaluation: "+u.message,{code:e});return}}const P=e=>JSON.parse(JSON.stringify(e)),ct=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((i,r,a)=>Object(i[r])===i[r]?i[r]:i[r]=Math.abs(Number(o[a+1]))>>0===+o[a+1]?[]:{},e)[o[o.length-1]]=n,e};const lt=({block:e,context:t,localState:n,rootState:o,rootSetState:i})=>{if(!e.bindings)return e;const r=P(e),a={...r,properties:{...r.properties},actions:{...r.actions}};for(const s in e.bindings){const l=e.bindings[s],u=$({code:l,localState:n,rootState:o,rootSetState:i,context:t,enableCache:!0});ct(a,s,u)}return a};function j({block:e,context:t,shouldEvaluateBindings:n,localState:o,rootState:i,rootSetState:r}){const a=e;return n?lt({block:a,localState:o,rootState:i,rootSetState:r,context:t}):a}const dt=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),ge=e=>Object.entries(e).map(([n,o])=>{if(typeof o=="string")return`${dt(n)}: ${o};`}).filter(I),ut=e=>ge(e).join(`
2
2
  `),V=({mediaQuery:e,className:t,styles:n})=>{const o=`.${t} {
3
3
  ${ut(n)}
4
4
  }`;return e?`${e} {
@@ -131,7 +131,7 @@
131
131
  )`,yn=({contentId:e,variationId:t})=>`window.${Be}(
132
132
  "${t}", "${e}", ${Ve}
133
133
  )`;function M(e){return c.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}const Sn=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||C.warn("No previewed ID found in search params."),n};function We(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new Je.LRUCache({max:500,ttl:1e3*60*5}))}function xn(e){We();const t=Sn(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function vn(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function kn(){const e=vn().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
134
- 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 Ne=kn();function N(e,t=null,n="."){return Object.keys(e).reduce((o,i)=>{const r=e[i],a=[t,i].filter(Boolean).join(n);return[typeof r=="object",r!==null,!(Array.isArray(r)&&r.length===0)].every(Boolean)?{...o,...N(r,a,n)}:{...o,[a]:r}},{})}const Cn="v3",ie="builder.",wn="options.",q=e=>{if(!e)return{};const t=me(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(ie)){const i=o.replace(ie,"").replace(wn,"");n[i]=t[o]}}),n},In=()=>{if(!v())return{};const e=new URLSearchParams(window.location.search);return q(e)},re=e=>typeof e=="number"&&!isNaN(e)&&e>=0,J=e=>{const{limit:t=30,userAttributes:n,query:o,model:i,apiKey:r,enrich:a,locale:s,apiVersion:l=Cn,fields:u,omit:h,offset:d,cacheSeconds:f,staleCacheSeconds:g,sort:x,includeUnpublished:b}=e;if(!r)throw new Error("Missing API key");if(!["v3"].includes(l))throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);const T=t!==1,m=new URL(`https://cdn.builder.io/api/${l}/content/${i}`);if(m.searchParams.set("apiKey",r),m.searchParams.set("limit",String(t)),m.searchParams.set("noTraverse",String(T)),m.searchParams.set("includeRefs",String(!0)),s&&m.searchParams.set("locale",s),a&&m.searchParams.set("enrich",String(a)),m.searchParams.set("omit",h||"meta.componentsUsed"),u&&m.searchParams.set("fields",u),Number.isFinite(d)&&d>-1&&m.searchParams.set("offset",String(Math.floor(d))),typeof b=="boolean"&&m.searchParams.set("includeUnpublished",String(b)),f&&re(f)&&m.searchParams.set("cacheSeconds",String(f)),g&&re(g)&&m.searchParams.set("staleCacheSeconds",String(g)),x){const S=N({sort:x});for(const w in S)m.searchParams.set(w,JSON.stringify(S[w]))}const p={...In(),...me(e.options||{})},y=N(p);for(const S in y)m.searchParams.set(S,String(y[S]));if(n&&m.searchParams.set("userAttributes",JSON.stringify(n)),o){const S=N({query:o});for(const w in S)m.searchParams.set(w,JSON.stringify(S[w]))}return m},En=e=>"results"in e;async function Y(e){const t=await Fe({...e,limit:1});return t&&t[0]||null}const Tn=async e=>{const t=J(e);return await(await(e.fetch??Ne)(t.href,e.fetchOptions)).json()},je=async(e,t,n=J(e))=>{const o=F(e.canTrack);if(n.search.includes("preview=")){const r=[];for(const a of t.results){const s=xn(n.searchParams);r.push(s||a)}t.results=r}if(!o||!(v()||E==="reactNative"))return t.results;try{const r=[];for(const a of t.results)r.push(await Kt({item:a,canTrack:o}));t.results=r}catch(r){C.error("Could not process A/B tests. ",r)}return t.results};async function Fe(e){try{const t=J(e),n=await Tn(e);return En(n)?je(e,n):(C.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return C.error("Error fetching data. ",t),null}}function Rn(e){const t=e||(v()?window.location.search:void 0);return t?fe(t).indexOf("builder.preview=")!==-1:!1}function Pn(){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 Oe(){return Pn().replace(/-/g,"")}const $e="builderSessionId",An=async({canTrack:e})=>{if(!e)return;const t=await we({name:$e,canTrack:e});if(I(t))return t;{const n=Bn();return Vn({id:n,canTrack:e}),n}},Bn=()=>Oe(),Vn=({id:e,canTrack:t})=>Ie({name:$e,value:e,canTrack:t}),Le=()=>v()&&typeof localStorage<"u"?localStorage:void 0,Wn=({key:e,canTrack:t})=>{var n;try{return t?(n=Le())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},Nn=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=Le())==null||o.setItem(e,n))}catch(i){console.debug("[LocalStorage] SET error: ",i)}},Ue="builderVisitorId",jn=({canTrack:e})=>{if(!e)return;const t=Wn({key:Ue,canTrack:e});if(I(t))return t;{const n=Fn();return On({id:n,canTrack:e}),n}},Fn=()=>Oe(),On=({id:e,canTrack:t})=>Nn({key:Ue,value:e,canTrack:t}),$n=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await An({canTrack:e}),n=jn({canTrack:e});return{sessionId:t,visitorId:n}},Ln=async({type:e,canTrack:t,apiKey:n,metadata:o,...i})=>({type:e,data:{...i,metadata:{url:location.href,...o},...await $n({canTrack:t}),userAttributes:he(),ownerId:n}});async function De(e){if(!e.apiKey){C.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!H()&&(v()||E==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await Ln(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Un=e=>De({...e,canTrack:!0});function ae(e){return Math.round(e*1e3)/1e3}const Dn=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},_n=e=>Dn(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),se=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,i=e.clientY-n.top,r=ae(o/n.width),a=ae(i/n.height);return{x:r,y:a}},Mn=e=>{const t=e.target,n=t&&_n(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?se({event:e,target:t}):void 0,builderTargetOffset:n?se({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},Hn=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function _e(e,t){const n=new URL(t.origin),o=n.hostname;return(e||Hn).findIndex(i=>i.startsWith("*.")?o.endsWith(i.slice(1)):i===o)>-1}const Kn="0.14.19",ce={};function Me(e,t){let n=ce[e];if(n||(n=ce[e]=[]),n.push(t),v()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(i){console.debug("Could not postmessage",i)}}}const zn=()=>{Me("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 le=!1;const He=(e={})=>{var t,n;le||(le=!0,v()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:E,version:Kn,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",o=>{var r,a;if(!_e(e.trustedHosts,o))return;const{data:i}=o;if(i!=null&&i.type)switch(i.type){case"builder.evaluate":{const s=i.data.text,l=i.data.arguments||[],u=i.data.id,h=new Function(s);let d,f=null;try{d=h.apply(null,l)}catch(g){f=g}f?(r=window.parent)==null||r.postMessage({type:"builder.evaluateError",data:{id:u,error:f.message}},"*"):d&&typeof d.then=="function"?d.then(g=>{var x;(x=window.parent)==null||x.postMessage({type:"builder.evaluateResult",data:{id:u,result:g}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:d,id:u}},"*");break}}})))},Ke=({model:e,trustedHosts:t,callbacks:n})=>o=>{if(!_e(t,o))return;const{data:i}=o;if(i)switch(i.type){case"builder.configureSdk":{n.configureSdk(i.data);break}case"builder.triggerAnimation":{n.animation(i.data);break}case"builder.contentUpdate":{const r=i.data,a=r.key||r.alias||r.entry||r.modelName,s=r.data;a===e&&n.contentUpdate(s);break}}},qn=(e,t,n)=>{if(!v)return C.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};He();const o=Ke({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},Jn=e=>{var r;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],o=e.fileUrl??((r=e==null?void 0:e.files)==null?void 0:r.regular);let i="";if(o&&t&&n&&(i+=`
134
+ 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 Ne=kn();function N(e,t=null,n="."){return Object.keys(e).reduce((o,i)=>{const r=e[i],a=[t,i].filter(Boolean).join(n);return[typeof r=="object",r!==null,!(Array.isArray(r)&&r.length===0)].every(Boolean)?{...o,...N(r,a,n)}:{...o,[a]:r}},{})}const Cn="v3",ie="builder.",wn="options.",q=e=>{if(!e)return{};const t=me(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(ie)){const i=o.replace(ie,"").replace(wn,"");n[i]=t[o]}}),n},In=()=>{if(!v())return{};const e=new URLSearchParams(window.location.search);return q(e)},re=e=>typeof e=="number"&&!isNaN(e)&&e>=0,J=e=>{const{limit:t=30,userAttributes:n,query:o,model:i,apiKey:r,enrich:a,locale:s,apiVersion:l=Cn,fields:u,omit:h,offset:d,cacheSeconds:f,staleCacheSeconds:g,sort:x,includeUnpublished:b}=e;if(!r)throw new Error("Missing API key");if(!["v3"].includes(l))throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);const T=t!==1,m=new URL(`https://cdn.builder.io/api/${l}/content/${i}`);if(m.searchParams.set("apiKey",r),m.searchParams.set("limit",String(t)),m.searchParams.set("noTraverse",String(T)),m.searchParams.set("includeRefs",String(!0)),s&&m.searchParams.set("locale",s),a&&m.searchParams.set("enrich",String(a)),m.searchParams.set("omit",h||"meta.componentsUsed"),u&&m.searchParams.set("fields",u),Number.isFinite(d)&&d>-1&&m.searchParams.set("offset",String(Math.floor(d))),typeof b=="boolean"&&m.searchParams.set("includeUnpublished",String(b)),f&&re(f)&&m.searchParams.set("cacheSeconds",String(f)),g&&re(g)&&m.searchParams.set("staleCacheSeconds",String(g)),x){const S=N({sort:x});for(const w in S)m.searchParams.set(w,JSON.stringify(S[w]))}const p={...In(),...me(e.options||{})},y=N(p);for(const S in y)m.searchParams.set(S,String(y[S]));if(n&&m.searchParams.set("userAttributes",JSON.stringify(n)),o){const S=N({query:o});for(const w in S)m.searchParams.set(w,JSON.stringify(S[w]))}return m},En=e=>"results"in e;async function Y(e){const t=await Fe({...e,limit:1});return t&&t[0]||null}const Tn=async e=>{const t=J(e);return await(await(e.fetch??Ne)(t.href,e.fetchOptions)).json()},je=async(e,t,n=J(e))=>{const o=F(e.canTrack);if(n.search.includes("preview=")){const r=[];for(const a of t.results){const s=xn(n.searchParams);r.push(s||a)}t.results=r}if(!o||!(v()||E==="reactNative"))return t.results;try{const r=[];for(const a of t.results)r.push(await Kt({item:a,canTrack:o}));t.results=r}catch(r){C.error("Could not process A/B tests. ",r)}return t.results};async function Fe(e){try{const t=J(e),n=await Tn(e);return En(n)?je(e,n):(C.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return C.error("Error fetching data. ",t),null}}function Rn(e){const t=e||(v()?window.location.search:void 0);return t?fe(t).indexOf("builder.preview=")!==-1:!1}function Pn(){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 Oe(){return Pn().replace(/-/g,"")}const $e="builderSessionId",An=async({canTrack:e})=>{if(!e)return;const t=await we({name:$e,canTrack:e});if(I(t))return t;{const n=Bn();return Vn({id:n,canTrack:e}),n}},Bn=()=>Oe(),Vn=({id:e,canTrack:t})=>Ie({name:$e,value:e,canTrack:t}),Le=()=>v()&&typeof localStorage<"u"?localStorage:void 0,Wn=({key:e,canTrack:t})=>{var n;try{return t?(n=Le())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},Nn=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=Le())==null||o.setItem(e,n))}catch(i){console.debug("[LocalStorage] SET error: ",i)}},Ue="builderVisitorId",jn=({canTrack:e})=>{if(!e)return;const t=Wn({key:Ue,canTrack:e});if(I(t))return t;{const n=Fn();return On({id:n,canTrack:e}),n}},Fn=()=>Oe(),On=({id:e,canTrack:t})=>Nn({key:Ue,value:e,canTrack:t}),$n=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await An({canTrack:e}),n=jn({canTrack:e});return{sessionId:t,visitorId:n}},Ln=async({type:e,canTrack:t,apiKey:n,metadata:o,...i})=>({type:e,data:{...i,metadata:{url:location.href,...o},...await $n({canTrack:t}),userAttributes:he(),ownerId:n}});async function De(e){if(!e.apiKey){C.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!H()&&(v()||E==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await Ln(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Un=e=>De({...e,canTrack:!0});function ae(e){return Math.round(e*1e3)/1e3}const Dn=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},_n=e=>Dn(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),se=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,i=e.clientY-n.top,r=ae(o/n.width),a=ae(i/n.height);return{x:r,y:a}},Mn=e=>{const t=e.target,n=t&&_n(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?se({event:e,target:t}):void 0,builderTargetOffset:n?se({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},Hn=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function _e(e,t){const n=new URL(t.origin),o=n.hostname;return(e||Hn).findIndex(i=>i.startsWith("*.")?o.endsWith(i.slice(1)):i===o)>-1}const Kn="0.14.20",ce={};function Me(e,t){let n=ce[e];if(n||(n=ce[e]=[]),n.push(t),v()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(i){console.debug("Could not postmessage",i)}}}const zn=()=>{Me("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 le=!1;const He=(e={})=>{var t,n;le||(le=!0,v()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:E,version:Kn,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",o=>{var r,a;if(!_e(e.trustedHosts,o))return;const{data:i}=o;if(i!=null&&i.type)switch(i.type){case"builder.evaluate":{const s=i.data.text,l=i.data.arguments||[],u=i.data.id,h=new Function(s);let d,f=null;try{d=h.apply(null,l)}catch(g){f=g}f?(r=window.parent)==null||r.postMessage({type:"builder.evaluateError",data:{id:u,error:f.message}},"*"):d&&typeof d.then=="function"?d.then(g=>{var x;(x=window.parent)==null||x.postMessage({type:"builder.evaluateResult",data:{id:u,result:g}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:d,id:u}},"*");break}}})))},Ke=({model:e,trustedHosts:t,callbacks:n})=>o=>{if(!_e(t,o))return;const{data:i}=o;if(i)switch(i.type){case"builder.configureSdk":{n.configureSdk(i.data);break}case"builder.triggerAnimation":{n.animation(i.data);break}case"builder.contentUpdate":{const r=i.data,a=r.key||r.alias||r.entry||r.modelName,s=r.data;a===e&&n.contentUpdate(s);break}}},qn=(e,t,n)=>{if(!v)return C.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};He();const o=Ke({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},Jn=e=>{var r;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],o=e.fileUrl??((r=e==null?void 0:e.files)==null?void 0:r.regular);let i="";if(o&&t&&n&&(i+=`
135
135
  @font-face {
136
136
  font-family: "${t}";
137
137
  src: local("${n}"), url('${o}') format('woff2');
@@ -1,7 +1,7 @@
1
1
  import { jsx as l, Fragment as C, jsxs as R } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { LRUCache as Oe } from "lru-cache";
4
- import { I as Fe, B as Le, a as Ue, D as De, C as _e, E as Me, b as je, V as He, c as Ke, F as ze, d as qe, S as Ye, e as Ge } from "./USE_CLIENT_BUNDLE-b63f19ab.js";
4
+ import { I as Fe, B as Le, a as Ue, D as De, C as _e, E as Me, b as je, V as He, c as Ke, F as ze, d as qe, S as Ye, e as Ge } from "./USE_CLIENT_BUNDLE-b0af90c6.js";
5
5
  import "next/navigation";
6
6
  const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ho = (e) => typeof e == "string" && Je.has(e.toLowerCase()), T = "rsc", M = () => {
7
7
  switch (T) {
@@ -2241,7 +2241,7 @@ function Ne(e, t) {
2241
2241
  const n = new URL(t.origin), o = n.hostname;
2242
2242
  return (e || Hn).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
2243
2243
  }
2244
- const Kn = "0.14.19", ae = {};
2244
+ const Kn = "0.14.20", ae = {};
2245
2245
  function zn(e, t) {
2246
2246
  let n = ae[e];
2247
2247
  if (n || (n = ae[e] = []), n.push(t), k()) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./USE_CLIENT_BUNDLE-a0af5379.cjs"),e=require("./bundle-9732e1d3.cjs");require("react/jsx-runtime");require("react");require("./USE_SERVER_BUNDLE-c0e4ee23.cjs");require("next/navigation");require("lru-cache");exports.BuilderContext=t.builderContext;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./USE_CLIENT_BUNDLE-eb52194d.cjs"),e=require("./bundle-12d2c3ee.cjs");require("react/jsx-runtime");require("react");require("./USE_SERVER_BUNDLE-719f53b1.cjs");require("next/navigation");require("lru-cache");exports.BuilderContext=t.builderContext;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.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,8 +1,8 @@
1
- import { f as n, c as m, F as c, d as p, S as g, V as d } from "./USE_CLIENT_BUNDLE-b63f19ab.js";
2
- import { B as l, C as f, x as B, S as C, T as E, G as S, u as x, F as h, H as b, v as y, A as F, c as P, j as T, y as k, z as v, E as R, D as V } from "./bundle-edd2e835.js";
1
+ import { f as n, c as m, F as c, d as p, S as g, V as d } from "./USE_CLIENT_BUNDLE-b0af90c6.js";
2
+ import { B as l, C as f, x as B, S as C, T as E, G as S, u as x, F as h, H as b, v as y, A as F, c as P, j as T, y as k, z as v, E as R, D as V } from "./bundle-83df769b.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
- import "./USE_SERVER_BUNDLE-60e66f1c.js";
5
+ import "./USE_SERVER_BUNDLE-d83b7d23.js";
6
6
  import "next/navigation";
7
7
  import "lru-cache";
8
8
  export {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as a, Fragment as E, jsxs as I } from "react/jsx-runtime";
3
- import { i as Z, g as H, a as $, b as O, c as w, d as R, e as p, f as _, h as V, _ as D, j as ee, l as te, k as ne, m as ie, t as ae, n as U, o as ce, p as re, q as le, r as oe, s as de, u as se, v as ue } from "./bundle-edd2e835.js";
3
+ import { i as Z, g as H, a as $, b as O, c as w, d as R, e as p, f as _, h as V, _ as D, j as ee, l as te, k as ne, m as ie, t as ae, n as U, o as ce, p as re, q as le, r as oe, s as de, u as se, v as ue } from "./bundle-73367f5c.js";
4
4
  import { useRef as T, useState as C, useEffect as f, createContext as me } from "react";
5
- import { p as ge } from "./USE_SERVER_BUNDLE-60e66f1c.js";
5
+ import { p as ge } from "./USE_SERVER_BUNDLE-c879ad04.js";
6
6
  import { useRouter as be } from "next/navigation";
7
7
  function J(e) {
8
8
  return /* @__PURE__ */ a(E, { children: Z(e.TagName) ? /* @__PURE__ */ a(E, { children: /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ a(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const t=require("react/jsx-runtime"),n=require("./bundle-23855e1a.cjs"),l=require("react"),D=require("./USE_SERVER_BUNDLE-d6552b77.cjs"),H=require("next/navigation");function j(e){return t.jsx(t.Fragment,{children:n.isEmptyElement(e.TagName)?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):t.jsx(t.Fragment,{children:typeof e.TagName=="string"?t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}function V(e){function c(){return{...e.attributes,[n.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[n.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return t.jsx(j,{attributes:c(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}function U(e){return t.jsx(j,{TagName:e.Wrapper,attributes:n.getBlockProperties({block:e.block,context:e.context}),actionAttributes:n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function O(e){function c(){return e.includeBlockProps?{...n.getBlockProperties({block:e.block,context:e.context}),...n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:c(),children:e.children})}function $(e){function c(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function g(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function S(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:c()+" props-blocks-wrapper-7cd1560e","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>g(),onMouseEnter:o=>S(),onKeyPress:o=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-7cd1560e {
1
+ "use client";"use strict";const t=require("react/jsx-runtime"),n=require("./bundle-8a8fdc14.cjs"),l=require("react"),D=require("./USE_SERVER_BUNDLE-9e66cbc6.cjs"),H=require("next/navigation");function j(e){return t.jsx(t.Fragment,{children:n.isEmptyElement(e.TagName)?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):t.jsx(t.Fragment,{children:typeof e.TagName=="string"?t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}function V(e){function c(){return{...e.attributes,[n.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[n.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return t.jsx(j,{attributes:c(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}function U(e){return t.jsx(j,{TagName:e.Wrapper,attributes:n.getBlockProperties({block:e.block,context:e.context}),actionAttributes:n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function O(e){function c(){return e.includeBlockProps?{...n.getBlockProperties({block:e.block,context:e.context}),...n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:c(),children:e.children})}function $(e){function c(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function g(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function S(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:c()+" props-blocks-wrapper-7cd1560e","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>g(),onMouseEnter:o=>S(),onKeyPress:o=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-7cd1560e {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -1 +1 @@
1
- "use server";"use strict";const n=require("./bundle-23855e1a.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
1
+ "use server";"use strict";const n=require("./bundle-8a8fdc14.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { w as s } from "./bundle-1280dc1a.js";
2
+ import { w as s } from "./bundle-73367f5c.js";
3
3
  async function n({
4
4
  key: t,
5
5
  value: r
@@ -1,7 +1,7 @@
1
1
  import { jsx as I, Fragment as ee, jsxs as xe } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { LRUCache as ro } from "lru-cache";
4
- import { I as oo, B as io, a as ao, D as so, C as lo, E as co, b as uo, V as fo, c as po, F as ho, d as mo, S as go, e as yo } from "./USE_CLIENT_BUNDLE-8bf08d5b.js";
4
+ import { I as oo, B as io, a as ao, D as so, C as lo, E as co, b as uo, V as fo, c as po, F as ho, d as mo, S as go, e as yo } from "./USE_CLIENT_BUNDLE-2d9b453e.js";
5
5
  import "next/navigation";
6
6
  const vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ja = (e) => typeof e == "string" && vo.has(e.toLowerCase()), me = "rsc", Yt = () => {
7
7
  switch (me) {
@@ -4714,7 +4714,7 @@ function Lr(e, t) {
4714
4714
  const n = new URL(t.origin), r = n.hostname;
4715
4715
  return (e || Aa).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
4716
4716
  }
4717
- const Oa = "0.14.19", or = {};
4717
+ const Oa = "0.14.20", or = {};
4718
4718
  function ja(e, t) {
4719
4719
  let n = or[e];
4720
4720
  if (n || (n = or[e] = []), n.push(t), G()) {
@@ -1,4 +1,4 @@
1
- "use strict";const y=require("react/jsx-runtime");require("react");const go=require("lru-cache"),ee=require("./USE_CLIENT_BUNDLE-0a51f6af.cjs");require("next/navigation");const yo=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),vo=e=>typeof e=="string"&&yo.has(e.toLowerCase()),me="rsc",mt=()=>{switch(me){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function bo(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const lt="[Builder.io]: ",J={log:(...e)=>console.log(lt,...e),error:(...e)=>console.error(lt,...e),warn:(...e)=>console.warn(lt,...e),debug:(...e)=>console.debug(lt,...e)};function K(){return typeof window<"u"&&typeof document<"u"}const xo=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},ur=e=>e instanceof URLSearchParams?xo(e):e,fr=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function So(){return K()&&window.self!==window.top}function zt(e){return So()&&fr(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const wo=()=>{if(K()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},ko=()=>typeof navigator=="object"&&navigator.userAgent||"",dr=()=>{const e=ko(),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()||me==="reactNative"}},n=e.match(/Tablet|iPad/i),r=wo();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"}},pr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),Co=()=>({isEditing:zt(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>dr()}),Eo=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Io=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:s})=>{const u=pr({builder:t,context:n,event:r,state:hr({rootState:s,localState:o,rootSetState:i})});return new Function(...u.map(([p])=>p),e)(...u.map(([,p])=>p))};function hr({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const i=r[o];return typeof i=="object"&&i!==null?hr({rootState:i,localState:void 0,rootSetState:n?s=>{r[o]=s,n(r)}:void 0}):i},set:(r,o,i)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=i,n==null||n(r),!0}})}const mr=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,i,s)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[s+1]))>>0===+r[s+1]?[]:{},e)[r[r.length-1]]=n,e};var F,jo=function(e){function t(a){return 48>a?a===36:58>a?!0:65>a?!1:91>a?!0:97>a?a===95:123>a?!0:170<=a&&ho.test(String.fromCharCode(a))}function n(a){return 65>a?a===36:91>a?!0:97>a?a===95:123>a?!0:170<=a&&Hn.test(String.fromCharCode(a))}function r(a,l){for(var c=v,d=1,E=0;;){st.lastIndex=E;var W=st.exec(c);if(W&&W.index<a)++d,E=W.index+W[0].length;else break}throw c={line:d,ab:a-E},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=a,l.X=c,l.o=f,l}function o(a){a=a.split(" ");for(var l=Object.create(null),c=0;c<a.length;c++)l[a[c]]=!0;return function(d){return l[d]||!1}}function i(){this.line=xe,this.ab=f-le}function s(a,l){ke=f,T.C&&(Ot=new i),C=a,p(),te=l,Ue=a.m}function u(){for(var a=f,l=T.va&&T.C&&new i,c=v.charCodeAt(f+=2);f<we&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=v.charCodeAt(f);T.va&&T.va(!1,v.slice(a+2,f),a,f,l,T.C&&new i)}function p(){for(;f<we;){var a=v.charCodeAt(f);if(a===32)++f;else if(a===13)++f,a=v.charCodeAt(f),a===10&&++f,T.C&&(++xe,le=f);else if(a===10||a===8232||a===8233)++f,T.C&&(++xe,le=f);else if(8<a&&14>a)++f;else if(a===47)if(a=v.charCodeAt(f+1),a===42){a=void 0;var l=T.va&&T.C&&new i,c=f,d=v.indexOf("*/",f+=2);if(d===-1&&r(f-2,"Unterminated comment"),f=d+2,T.C)for(st.lastIndex=c;(a=st.exec(v))&&a.index<f;)++xe,le=a.index+a[0].length;T.va&&T.va(!0,v.slice(c+2,d),c,f,l,T.C&&new i)}else if(a===47)u();else break;else if(a===160)++f;else if(5760<=a&&po.test(String.fromCharCode(a)))++f;else break}}function x(a){switch(a){case 46:a=v.charCodeAt(f+1),48<=a&&57>=a?O(!0):(++f,s(Un));return;case 40:return++f,s(ce);case 41:return++f,s(oe);case 59:return++f,s(ue);case 44:return++f,s(ye);case 91:return++f,s(Dt);case 93:return++f,s(_t);case 123:return++f,s(Le);case 125:return++f,s(Ee);case 58:return++f,s(De);case 63:return++f,s(Mn);case 48:if(a=v.charCodeAt(f+1),a===120||a===88){f+=2,a=N(16),a===null&&r(_+2,"Expected hexadecimal number"),n(v.charCodeAt(f))&&r(f,"Identifier directly after number"),s(Ve,a);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return O(!1);case 34:case 39:f++;for(var l="";;){f>=we&&r(_,"Unterminated string constant");var c=v.charCodeAt(f);if(c===a){++f,s(rt,l);break}if(c===92){c=v.charCodeAt(++f);var d=/^[0-7]+/.exec(v.slice(f,f+3));for(d&&(d=d[0]);d&&255<parseInt(d,8);)d=d.slice(0,-1);if(d==="0"&&(d=null),++f,d)Q&&r(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(d,8)),f+=d.length-1;else switch(c){case 110:l+=`
1
+ "use strict";const y=require("react/jsx-runtime");require("react");const go=require("lru-cache"),ee=require("./USE_CLIENT_BUNDLE-47285217.cjs");require("next/navigation");const yo=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),vo=e=>typeof e=="string"&&yo.has(e.toLowerCase()),me="rsc",mt=()=>{switch(me){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function bo(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const lt="[Builder.io]: ",J={log:(...e)=>console.log(lt,...e),error:(...e)=>console.error(lt,...e),warn:(...e)=>console.warn(lt,...e),debug:(...e)=>console.debug(lt,...e)};function K(){return typeof window<"u"&&typeof document<"u"}const xo=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},ur=e=>e instanceof URLSearchParams?xo(e):e,fr=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function So(){return K()&&window.self!==window.top}function zt(e){return So()&&fr(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const wo=()=>{if(K()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},ko=()=>typeof navigator=="object"&&navigator.userAgent||"",dr=()=>{const e=ko(),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()||me==="reactNative"}},n=e.match(/Tablet|iPad/i),r=wo();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"}},pr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),Co=()=>({isEditing:zt(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>dr()}),Eo=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Io=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:s})=>{const u=pr({builder:t,context:n,event:r,state:hr({rootState:s,localState:o,rootSetState:i})});return new Function(...u.map(([p])=>p),e)(...u.map(([,p])=>p))};function hr({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const i=r[o];return typeof i=="object"&&i!==null?hr({rootState:i,localState:void 0,rootSetState:n?s=>{r[o]=s,n(r)}:void 0}):i},set:(r,o,i)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=i,n==null||n(r),!0}})}const mr=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,i,s)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[s+1]))>>0===+r[s+1]?[]:{},e)[r[r.length-1]]=n,e};var F,jo=function(e){function t(a){return 48>a?a===36:58>a?!0:65>a?!1:91>a?!0:97>a?a===95:123>a?!0:170<=a&&ho.test(String.fromCharCode(a))}function n(a){return 65>a?a===36:91>a?!0:97>a?a===95:123>a?!0:170<=a&&Hn.test(String.fromCharCode(a))}function r(a,l){for(var c=v,d=1,E=0;;){st.lastIndex=E;var W=st.exec(c);if(W&&W.index<a)++d,E=W.index+W[0].length;else break}throw c={line:d,ab:a-E},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=a,l.X=c,l.o=f,l}function o(a){a=a.split(" ");for(var l=Object.create(null),c=0;c<a.length;c++)l[a[c]]=!0;return function(d){return l[d]||!1}}function i(){this.line=xe,this.ab=f-le}function s(a,l){ke=f,T.C&&(Ot=new i),C=a,p(),te=l,Ue=a.m}function u(){for(var a=f,l=T.va&&T.C&&new i,c=v.charCodeAt(f+=2);f<we&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=v.charCodeAt(f);T.va&&T.va(!1,v.slice(a+2,f),a,f,l,T.C&&new i)}function p(){for(;f<we;){var a=v.charCodeAt(f);if(a===32)++f;else if(a===13)++f,a=v.charCodeAt(f),a===10&&++f,T.C&&(++xe,le=f);else if(a===10||a===8232||a===8233)++f,T.C&&(++xe,le=f);else if(8<a&&14>a)++f;else if(a===47)if(a=v.charCodeAt(f+1),a===42){a=void 0;var l=T.va&&T.C&&new i,c=f,d=v.indexOf("*/",f+=2);if(d===-1&&r(f-2,"Unterminated comment"),f=d+2,T.C)for(st.lastIndex=c;(a=st.exec(v))&&a.index<f;)++xe,le=a.index+a[0].length;T.va&&T.va(!0,v.slice(c+2,d),c,f,l,T.C&&new i)}else if(a===47)u();else break;else if(a===160)++f;else if(5760<=a&&po.test(String.fromCharCode(a)))++f;else break}}function x(a){switch(a){case 46:a=v.charCodeAt(f+1),48<=a&&57>=a?O(!0):(++f,s(Un));return;case 40:return++f,s(ce);case 41:return++f,s(oe);case 59:return++f,s(ue);case 44:return++f,s(ye);case 91:return++f,s(Dt);case 93:return++f,s(_t);case 123:return++f,s(Le);case 125:return++f,s(Ee);case 58:return++f,s(De);case 63:return++f,s(Mn);case 48:if(a=v.charCodeAt(f+1),a===120||a===88){f+=2,a=N(16),a===null&&r(_+2,"Expected hexadecimal number"),n(v.charCodeAt(f))&&r(f,"Identifier directly after number"),s(Ve,a);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return O(!1);case 34:case 39:f++;for(var l="";;){f>=we&&r(_,"Unterminated string constant");var c=v.charCodeAt(f);if(c===a){++f,s(rt,l);break}if(c===92){c=v.charCodeAt(++f);var d=/^[0-7]+/.exec(v.slice(f,f+3));for(d&&(d=d[0]);d&&255<parseInt(d,8);)d=d.slice(0,-1);if(d==="0"&&(d=null),++f,d)Q&&r(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(d,8)),f+=d.length-1;else switch(c){case 110:l+=`
2
2
  `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(R(2));break;case 117:l+=String.fromCharCode(R(4));break;case 85:l+=String.fromCharCode(R(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:v.charCodeAt(f)===10&&++f;case 10:T.C&&(le=f,++xe);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||r(_,"Unterminated string constant"),l+=String.fromCharCode(c),++f}return;case 47:a=v.charCodeAt(f+1),Ue?(++f,A()):a===61?m(Se,2):m(Vn,1);return;case 37:case 42:v.charCodeAt(f+1)===61?m(Se,2):m(co,1);return;case 124:case 38:l=v.charCodeAt(f+1),l===a?m(a===124?_n:Wn,2):l===61?m(Se,2):m(a===124?no:oo,1);return;case 94:v.charCodeAt(f+1)===61?m(Se,2):m(ro,1);return;case 43:case 45:l=v.charCodeAt(f+1),l===a?l===45&&v.charCodeAt(f+2)===62&&at.test(v.slice(ge,f))?(f+=3,u(),p(),k()):m(to,2):l===61?m(Se,2):m(lo,1);return;case 60:case 62:l=v.charCodeAt(f+1),c=1,l===a?(c=a===62&&v.charCodeAt(f+2)===62?3:2,v.charCodeAt(f+c)===61?m(Se,c+1):m(so,c)):l===33&&a===60&&v.charCodeAt(f+2)===45&&v.charCodeAt(f+3)===45?(f+=4,u(),p(),k()):(l===61&&(c=v.charCodeAt(f+2)===61?3:2),m(ao,c));return;case 61:case 33:v.charCodeAt(f+1)===61?m(io,v.charCodeAt(f+2)===61?3:2):m(a===61?Ln:Dn,1);return;case 126:return m(Dn,1)}return!1}function k(a){if(a?f=_+1:_=f,T.C&&(At=new i),a)return A();if(f>=we)return s(Nt);if(a=v.charCodeAt(f),n(a)||a===92)return j();if(x(a)===!1){if(a=String.fromCharCode(a),a==="\\"||Hn.test(a))return j();r(f,"Unexpected character '"+a+"'")}}function m(a,l){var c=v.slice(f,f+l);f+=l,s(a,c)}function A(){for(var a,l,c=f;;){f>=we&&r(c,"Unterminated regexp");var d=v.charAt(f);if(at.test(d)&&r(c,"Unterminated regexp"),a)a=!1;else{if(d==="[")l=!0;else if(d==="]"&&l)l=!1;else if(d==="/"&&!l)break;a=d==="\\"}++f}a=v.slice(c,f),++f,(l=Y())&&!/^[gmi]*$/.test(l)&&r(c,"Invalid regexp flag");try{var E=new RegExp(a,l)}catch(W){throw W instanceof SyntaxError&&r(c,W.message),W}s(yn,E)}function N(a,l){for(var c=f,d=0,E=l===void 0?1/0:l,W=0;W<E;++W){var z=v.charCodeAt(f);if(z=97<=z?z-97+10:65<=z?z-65+10:48<=z&&57>=z?z-48:1/0,z>=a)break;++f,d=d*a+z}return f===c||l!==void 0&&f-c!==l?null:d}function O(a){var l=f,c=!1,d=v.charCodeAt(f)===48;a||N(10)!==null||r(l,"Invalid number"),v.charCodeAt(f)===46&&(++f,N(10),c=!0),a=v.charCodeAt(f),(a===69||a===101)&&(a=v.charCodeAt(++f),a!==43&&a!==45||++f,N(10)===null&&r(l,"Invalid number"),c=!0),n(v.charCodeAt(f))&&r(f,"Identifier directly after number"),a=v.slice(l,f);var E;c?E=parseFloat(a):d&&a.length!==1?/[89]/.test(a)||Q?r(l,"Invalid number"):E=parseInt(a,8):E=parseInt(a,10),s(Ve,E)}function R(a){return a=N(16,a),a===null&&r(_,"Bad character escape sequence"),a}function Y(){Ie=!1;for(var a,l=!0,c=f;;){var d=v.charCodeAt(f);if(t(d))Ie&&(a+=v.charAt(f)),++f;else if(d===92){Ie||(a=v.slice(c,f)),Ie=!0,v.charCodeAt(++f)!==117&&r(f,"Expecting Unicode escape sequence \\uXXXX"),++f,d=R(4);var E=String.fromCharCode(d);E||r(f-1,"Invalid Unicode escape"),(l?n(d):t(d))||r(f-4,"Invalid Unicode escape"),a+=E}else break;l=!1}return Ie?a:v.slice(c,f)}function j(){var a=Y(),l=Ce;!Ie&&fo(a)&&(l=eo[a]),s(l,a)}function g(){Rt=_,ge=ke,Pt=Ot,k()}function B(a){if(Q=a,f=_,T.C)for(;f<le;)le=v.lastIndexOf(`
3
3
  `,le-2)+1,--xe;p(),k()}function M(){this.type=null,this.start=_,this.end=null}function X(){this.start=At,this.end=null,Tt&&(this.source=Tt)}function V(){var a=new M;return T.C&&(a.X=new X),T.vb&&(a.sourceFile=T.vb),T.Xa&&(a.j=[_,0]),a}function ne(a){var l=new M;return l.start=a.start,T.C&&(l.X=new X,l.X.start=a.X.start),T.Xa&&(l.j=[a.j[0],0]),l}function I(a,l){return a.type=l,a.end=ge,T.C&&(a.X.end=Pt),T.Xa&&(a.j[1]=ge),a}function Qe(a){return a.type==="ExpressionStatement"&&a.la.type==="Literal"&&a.la.value==="use strict"}function U(a){return C===a?(g(),!0):!1}function et(){return!T.fc&&(C===Nt||C===Ee||at.test(v.slice(ge,_)))}function be(){U(ue)||et()||ae()}function L(a){C===a?g():ae()}function ae(){r(_,"Unexpected token")}function tt(a){a.type!=="Identifier"&&a.type!=="MemberExpression"&&r(a.start,"Assigning to rvalue"),Q&&a.type==="Identifier"&&it(a.name)&&r(a.start,"Assigning to "+a.name+" in strict mode")}function re(){(C===Vn||C===Se&&te==="/=")&&k(!0);var a=C,l=V();switch(a){case Ft:case bn:g();var c=a===Ft;U(ue)||et()?l.label=null:C!==Ce?ae():(l.label=se(),be());for(var d=0;d<D.length;++d){var E=D[d];if((l.label===null||E.name===l.label.name)&&(E.kind!==null&&(c||E.kind==="loop")||l.label&&c))break}return d===D.length&&r(l.start,"Unsyntactic "+a.l),I(l,c?"BreakStatement":"ContinueStatement");case xn:return g(),be(),I(l,"DebuggerStatement");case wn:return g(),D.push(Wt),l.body=re(),D.pop(),L(Lt),l.test=Ne(),be(),I(l,"DoWhileStatement");case En:return g(),D.push(Wt),L(ce),C===ue?wt(l,null):C===Vt?(a=V(),g(),mn(a,!0),I(a,"VariableDeclaration"),a.fa.length===1&&U(ot)?hn(l,a):wt(l,a)):(a=G(!1,!0),U(ot)?(tt(a),hn(l,a)):wt(l,a));case Ut:return g(),It(l,!0);case In:return g(),l.test=Ne(),l.da=re(),l.alternate=U(kn)?re():null,I(l,"IfStatement");case jn:return Me||T.Ib||r(_,"'return' outside of function"),g(),U(ue)||et()?l.K=null:(l.K=G(),be()),I(l,"ReturnStatement");case Mt:for(g(),l.Qb=Ne(),l.tb=[],L(Le),D.push(mo);C!==Ee;)C===Bt||C===Sn?(a=C===Bt,d&&I(d,"SwitchCase"),l.tb.push(d=V()),d.da=[],g(),a?d.test=G():(c&&r(Rt,"Multiple default clauses"),c=!0,d.test=null),L(De)):(d||ae(),d.da.push(re()));return d&&I(d,"SwitchCase"),g(),D.pop(),I(l,"SwitchStatement");case Tn:return g(),at.test(v.slice(ge,_))&&r(ge,"Illegal newline after throw"),l.K=G(),be(),I(l,"ThrowStatement");case An:return g(),l.block=Fe(),l.Ea=null,C===vn&&(a=V(),g(),L(ce),a.Ua=se(),Q&&it(a.Ua.name)&&r(a.Ua.start,"Binding "+a.Ua.name+" in strict mode"),L(oe),a.body=Fe(),l.Ea=I(a,"CatchClause")),l.fb=U(Cn)?Fe():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),I(l,"TryStatement");case Vt:return g(),mn(l),be(),I(l,"VariableDeclaration");case Lt:return g(),l.test=Ne(),D.push(Wt),l.body=re(),D.pop(),I(l,"WhileStatement");case On:return Q&&r(_,"'with' in strict mode"),g(),l.object=Ne(),l.body=re(),I(l,"WithStatement");case Le:return Fe();case ue:return g(),I(l,"EmptyStatement");default:if(c=te,E=G(),a===Ce&&E.type==="Identifier"&&U(De)){for(d=0;d<D.length;++d)D[d].name===c&&r(E.start,"Label '"+c+"' is already declared");return D.push({name:c,kind:C.W?"loop":C===Mt?"switch":null}),l.body=re(),D.pop(),l.label=E,I(l,"LabeledStatement")}return l.la=E,be(),I(l,"ExpressionStatement")}}function Ne(){L(ce);var a=G();return L(oe),a}function Fe(a){var l=V(),c=!0,d=!1;for(l.body=[],L(Le);!U(Ee);){var E=re();if(l.body.push(E),c&&a&&Qe(E)){var W=d;B(d=!0)}c=!1}return d&&!W&&B(!1),I(l,"BlockStatement")}function wt(a,l){return a.ua=l,L(ue),a.test=C===ue?null:G(),L(ue),a.update=C===oe?null:G(),L(oe),a.body=re(),D.pop(),I(a,"ForStatement")}function hn(a,l){return a.left=l,a.right=G(),L(oe),a.body=re(),D.pop(),I(a,"ForInStatement")}function mn(a,l){for(a.fa=[],a.kind="var";;){var c=V();if(c.id=se(),Q&&it(c.id.name)&&r(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=U(Ln)?G(!0,l):null,a.fa.push(I(c,"VariableDeclarator")),!U(ye))break}}function G(a,l){var c=kt(l);if(!a&&C===ye){for(a=ne(c),a.xb=[c];U(ye);)a.xb.push(kt(l));return I(a,"SequenceExpression")}return c}function kt(a){var l=Ct(Et(),-1,a);if(U(Mn)){var c=ne(l);c.test=l,c.da=G(!0),L(De),c.alternate=G(!0,a),l=I(c,"ConditionalExpression")}return C.Cb?(c=ne(l),c.operator=te,c.left=l,g(),c.right=kt(a),tt(l),I(c,"AssignmentExpression")):l}function Ct(a,l,c){var d=C.L;if(d!==null&&(!c||C!==ot)&&d>l){var E=ne(a);return E.left=a,E.operator=te,a=C,g(),E.right=Ct(Et(),d,c),d=I(E,a===_n||a===Wn?"LogicalExpression":"BinaryExpression"),Ct(d,l,c)}return a}function Et(){if(C.prefix){var a=V(),l=C.$b;return a.operator=te,Ue=a.prefix=!0,g(),a.K=Et(),l?tt(a.K):Q&&a.operator==="delete"&&a.K.type==="Identifier"&&r(a.start,"Deleting local variable in strict mode"),I(a,l?"UpdateExpression":"UnaryExpression")}for(l=Be(nt());C.cc&&!et();)a=ne(l),a.operator=te,a.prefix=!1,a.K=l,tt(l),g(),l=I(a,"UpdateExpression");return l}function Be(a,l){if(U(Un)){var c=ne(a);return c.object=a,c.Wa=se(!0),c.bb=!1,Be(I(c,"MemberExpression"),l)}return U(Dt)?(c=ne(a),c.object=a,c.Wa=G(),c.bb=!0,L(_t),Be(I(c,"MemberExpression"),l)):!l&&U(ce)?(c=ne(a),c.callee=a,c.arguments=jt(oe,!1),Be(I(c,"CallExpression"),l)):a}function nt(){switch(C){case Pn:var a=V();return g(),I(a,"ThisExpression");case Ce:return se();case Ve:case rt:case yn:return a=V(),a.value=te,a.raw=v.slice(_,ke),g(),I(a,"Literal");case Nn:case Fn:case Bn:return a=V(),a.value=C.$a,a.raw=C.l,g(),I(a,"Literal");case ce:a=At;var l=_;g();var c=G();return c.start=l,c.end=ke,T.C&&(c.X.start=a,c.X.end=Ot),T.Xa&&(c.j=[l,ke]),L(oe),c;case Dt:return a=V(),g(),a.elements=jt(_t,!0,!0),I(a,"ArrayExpression");case Le:for(a=V(),l=!0,c=!1,a.h=[],g();!U(Ee);){if(l)l=!1;else if(L(ye),T.sb&&U(Ee))break;var d={key:C===Ve||C===rt?nt():se(!0)},E=!1;if(U(De)){d.value=G(!0);var W=d.kind="init"}else d.key.type!=="Identifier"||d.key.name!=="get"&&d.key.name!=="set"?ae():(E=c=!0,W=d.kind=d.key.name,d.key=C===Ve||C===rt?nt():se(!0),C!==ce&&ae(),d.value=It(V(),!1));if(d.key.type==="Identifier"&&(Q||c))for(var z=0;z<a.h.length;++z){var je=a.h[z];if(je.key.name===d.key.name){var $t=W===je.kind||E&&je.kind==="init"||W==="init"&&(je.kind==="get"||je.kind==="set");$t&&!Q&&W==="init"&&je.kind==="init"&&($t=!1),$t&&r(d.key.start,"Redefinition of property")}}a.h.push(d)}return I(a,"ObjectExpression");case Ut:return a=V(),g(),It(a,!1);case Rn:return a=V(),g(),a.callee=Be(nt(),!0),a.arguments=U(ce)?jt(oe,!1):Qr,I(a,"NewExpression")}ae()}function It(a,l){C===Ce?a.id=se():l?ae():a.id=null,a.oa=[];var c=!0;for(L(ce);!U(oe);)c?c=!1:L(ye),a.oa.push(se());c=Me;var d=D;if(Me=!0,D=[],a.body=Fe(!0),Me=c,D=d,Q||a.body.body.length&&Qe(a.body.body[0])){for(c=a.id?-1:0;c<a.oa.length;++c)if(d=0>c?a.id:a.oa[c],($n(d.name)||it(d.name))&&r(d.start,"Defining '"+d.name+"' in strict mode"),0<=c)for(var E=0;E<c;++E)d.name===a.oa[E].name&&r(d.start,"Argument name clash in strict mode")}return I(a,l?"FunctionDeclaration":"FunctionExpression")}function jt(a,l,c){for(var d=[],E=!0;!U(a);){if(E)E=!1;else if(L(ye),l&&T.sb&&U(a))break;d.push(c&&C===ye?null:G(!0))}return d}function se(a){var l=V();return a&&T.yb==="everywhere"&&(a=!1),C===Ce?(!a&&(T.yb&&uo(te)||Q&&$n(te))&&v.slice(_,ke).indexOf("\\")===-1&&r(_,"The keyword '"+te+"' is reserved"),l.name=te):a&&C.l?l.name=C.l:ae(),Ue=!1,g(),I(l,"Identifier")}e.version="0.5.0";var T,v="",we,Tt;e.parse=function(a,l){v=String(a),we=v.length,T=l||{};for(var c in gn)Object.prototype.hasOwnProperty.call(T,c)||(T[c]=gn[c]);for(Tt=T.sourceFile,xe=1,f=le=0,Ue=!0,p(),c=T.dc,Rt=ge=f,T.C&&(Pt=new i),Me=Q=!1,D=[],k(),a=c||V(),l=!0,c||(a.body=[]);C!==Nt;)c=re(),a.body.push(c),l&&Qe(c)&&B(!0),l=!1;return I(a,"Program")};var gn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,_=0,ke=0,At,Ot,C,te,Ue,xe,le,Rt=0,ge=0,Pt,Me,D,Q,Qr=[],Ve={type:"num"},yn={type:"regexp"},rt={type:"string"},Ce={type:"name"},Nt={type:"eof"},Ft={l:"break"},Bt={l:"case",m:!0},vn={l:"catch"},bn={l:"continue"},xn={l:"debugger"},Sn={l:"default"},wn={l:"do",W:!0},kn={l:"else",m:!0},Cn={l:"finally"},En={l:"for",W:!0},Ut={l:"function"},In={l:"if"},jn={l:"return",m:!0},Mt={l:"switch"},Tn={l:"throw",m:!0},An={l:"try"},Vt={l:"var"},Lt={l:"while",W:!0},On={l:"with"},Rn={l:"new",m:!0},Pn={l:"this"},Nn={l:"null",$a:null},Fn={l:"true",$a:!0},Bn={l:"false",$a:!1},ot={l:"in",L:7,m:!0},eo={break:Ft,case:Bt,catch:vn,continue:bn,debugger:xn,default:Sn,do:wn,else:kn,finally:Cn,for:En,function:Ut,if:In,return:jn,switch:Mt,throw:Tn,try:An,var:Vt,while:Lt,with:On,null:Nn,true:Fn,false:Bn,new:Rn,in:ot,instanceof:{l:"instanceof",L:7,m:!0},this:Pn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Dt={type:"[",m:!0},_t={type:"]"},Le={type:"{",m:!0},Ee={type:"}"},ce={type:"(",m:!0},oe={type:")"},ye={type:",",m:!0},ue={type:";",m:!0},De={type:":",m:!0},Un={type:"."},Mn={type:"?",m:!0},Vn={L:10,m:!0},Ln={Cb:!0,m:!0},Se={Cb:!0,m:!0},to={cc:!0,prefix:!0,$b:!0},Dn={prefix:!0,m:!0},_n={L:1,m:!0},Wn={L:2,m:!0},no={L:3,m:!0},ro={L:4,m:!0},oo={L:5,m:!0},io={L:6,m:!0},ao={L:7,m:!0},so={L:8,m:!0},lo={L:9,prefix:!0,m:!0},co={L:10,m:!0},uo=o("class enum extends super const export import"),$n=o("implements interface let package private protected public static yield"),it=o("eval arguments"),fo=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"),po=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Hn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),ho=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),at=/[\n\r\u2028\u2029]/,st=/\r\n|[\n\r\u2028\u2029]/g,Ie,Wt={kind:"loop"},mo={kind:"switch"}},Kt=Kt=typeof globalThis>"u"?void 0:globalThis;jo(Kt.j||(Kt.j={}));function h(e,t){typeof e=="string"&&(e=Oe(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var i,s;for(s in this)typeof this[s]=="function"&&(i=s.match(e))&&(this.rb[i[1]]=this[s].bind(this));this.N=Xt(this,this.ra,null),this.Na=this.N.object,this.ra=Oe(this.ba.join(`
4
4
  `),"polyfills"),this.ba=void 0,gt(this.ra),i=new S(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new S(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var Kn={C:!0,kc:5},qt={configurable:!0,enumerable:!0,writable:!1},b={configurable:!0,enumerable:!1,writable:!0},Z={configurable:!0,enumerable:!1,writable:!1},_e={configurable:!1,enumerable:!1,writable:!1},Gn={configurable:!1,enumerable:!0,writable:!0},gr={STEP_ERROR:!0},Pe={SCOPE_REFERENCE:!0},Je={VALUE_IN_DESCRIPTOR:!0},Ae={REGEXP_TIMEOUT:!0},Xn=[],de=null,Ge=null,ve=typeof globalThis>"u"?void 0:globalThis,To=["onmessage = function(e) {","var result;","var data = e.data;","switch (data[0]) {","case 'split':","result = data[1].split(data[2], data[3]);","break;","case 'match':","result = data[1].match(data[2]);","break;","case 'search':","result = data[1].search(data[2]);","break;","case 'replace':","result = data[1].replace(data[2], data[3]);","break;","case 'exec':","var regexp = data[1];","regexp.lastIndex = data[2];","result = [regexp.exec(data[3]), data[1].lastIndex];","break;","default:","throw Error('Unknown RegExp operation: ' + data[0]);","}","postMessage(result);","close();","};"];function Zt(e){var t=e>>>0;return t===Number(e)?t:NaN}function Xe(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function gt(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"&&gt(o,t,n)}}h.prototype.REGEXP_MODE=2;h.prototype.REGEXP_THREAD_TIMEOUT=1e3;h.prototype.POLYFILL_TIMEOUT=1e3;F=h.prototype;F.P=!1;F.Ka=!1;F.Kb=0;F.ic=0;function Oe(e,t){var n={},r;for(r in Kn)n[r]=Kn[r];return n.sourceFile=t,ve.j.parse(e,n)}F.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=Oe(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Ye(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};F.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&&br(this,n,n.interval);var r=new S(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=Ge;Ge=this;try{var i=this.rb[r.type](e,n,r)}catch(s){if(s!==gr)throw this.value!==s&&(this.value=void 0),s}finally{Ge=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};F.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Ao(e,t){e.g(t,"NaN",NaN,_e),e.g(t,"Infinity",1/0,_e),e.g(t,"undefined",void 0,_e),e.g(t,"window",t,qt),e.g(t,"this",t,_e),e.g(t,"self",t),e.M=new P(null),e.Z=new P(e.M),Oo(e,t),Ro(e,t),t.xa=e.M,e.g(t,"constructor",e.v,b),Po(e,t),No(e,t),Fo(e,t),Bo(e,t),Uo(e,t),Mo(e,t),Vo(e,t),Lo(e,t),Do(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,b),e.g(t,"parseInt",e.i(parseInt,!1),b),e.g(t,"parseFloat",e.i(parseFloat,!1),b),e.g(t,"isNaN",e.i(isNaN,!1),b),e.g(t,"isFinite",e.i(isFinite,!1),b);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(s){try{return i(s)}catch(u){w(e,e.Gb,u.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),b);n=function(i){return Jn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),b),n=function(i){return Jn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),b),n=function(i){Yn(e,i)},e.g(t,"clearTimeout",e.i(n,!1),b),n=function(i){Yn(e,i)},e.g(t,"clearInterval",e.i(n,!1),b),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)}F.Wb=0;function Oo(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",s=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(s){s=s.split(/\s*,\s*/);for(var u=0;u<s.length;u++){var p=s[u];n.test(p)||w(e,e.T,"Invalid function argument: "+p)}s=s.join(", ")}try{var x=Oe("(function("+s+") {"+i+"})","function"+e.Wb++)}catch(k){w(e,e.T,"Invalid code: "+k.message)}return x.body.length!==1&&w(e,e.T,"Invalid code in function body"),tn(e,x.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,b),e.g(e.O,"prototype",e.Z,b),e.g(e.Z,"constructor",e.O,b),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,Z),e.Z.H="Function",r=function(o,i){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[],i!=null&&(i instanceof P?s.F=yr(e,i):w(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},$(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var s=1;s<arguments.length;s++)i.F.push(arguments[s]);i.eb=!1},$(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)},$(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),b),r=function(){return this.valueOf()},$(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),b)}function Ro(e,t){function n(o){o!=null||w(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return he(e)?this:e.s(e.M);if(!(o instanceof P)){var i=e.s(pe(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,b),e.g(e.M,"constructor",e.v,b),e.g(t,"Object",e.v,b),r=function(o){return n(o),fe(e,Object.getOwnPropertyNames(o instanceof P?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),b),r=function(o){return n(o),o instanceof P&&(o=o.h),fe(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),b),r=function(o){return o===null?e.s(null):(o instanceof P||w(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(r,!1),b),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),r=function(o,i,s){return i=String(i),o instanceof P||w(e,e.j,"Object.defineProperty called on non-object: "+o),s instanceof P||w(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||w(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,Je,s.h),o},e.g(e.v,"defineProperty",e.i(r,!1),b),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),r=function(o,i){if(o instanceof P||w(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var s=Object.getOwnPropertyDescriptor(o.h,i),u=o.V[i];return o=o.Y[i],i=e.s(e.M),u||o?(e.g(i,"get",u),e.g(i,"set",o)):(e.g(i,"value",s.value),e.g(i,"writable",s.writable)),e.g(i,"configurable",s.configurable),e.g(i,"enumerable",s.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),b),r=function(o){return n(o),pe(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),b),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),b),r=function(o){return o instanceof P&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),b),$(e,e.v,"toString",P.prototype.toString),$(e,e.v,"toLocaleString",P.prototype.toString),$(e,e.v,"valueOf",P.prototype.valueOf),r=function(o){return n(this),this instanceof P?String(o)in this.h:this.hasOwnProperty(o)},$(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof P?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},$(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=pe(e,o),!o)return!1;if(o===this)return!0}},$(e,e.v,"isPrototypeOf",r)}function Po(e,t){var n=function(r){var o=he(e)?this:Re(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(Zt(i))&&w(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,b),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),b),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 No(e,t){var n=function(r){return r=arguments.length?ve.String(r):"",he(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,b),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),b),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)$(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(s){w(e,e.D,"localeCompare: "+s.message)}},$(e,e.J,"localeCompare",n),n=function(r,o,i){var s=String(this);if(o=o?Number(o):void 0,H(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(de)r=We(e,"string.split(separator, limit)",{string:s,separator:r,limit:o},r,i),r!==Ae&&i(fe(e,r));else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(x){clearTimeout(p),i(fe(e,x.data))},u.postMessage(["split",s,r,o])}return}r=s.split(r,o),i(fe(e,r))},Ke(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=H(e,r,e.I)?r.data:new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(de)r=We(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r&&fe(e,r));else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data&&fe(e,p.data))},s.postMessage(["match",i,r])}else r=i.match(r),o(r&&fe(e,r))},Ke(e,e.J,"match",n),n=function(r,o){var i=String(this);if(H(e,r,e.I)?r=r.data:r=new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(de)r=We(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r);else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data)},s.postMessage(["search",i,r])}else o(i.search(r))},Ke(e,e.J,"search",n),n=function(r,o,i){var s=String(this);if(o=String(o),H(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(de)r=We(e,"string.replace(substr, newSubstr)",{string:s,substr:r,newSubstr:o},r,i),r!==Ae&&i(r);else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(x){clearTimeout(p),i(x.data)},u.postMessage(["replace",s,r,o])}return}i(s.replace(r,o))},Ke(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 Fo(e,t){e.mb=e.i(function(n){return n=ve.Boolean(n),he(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,b)}function Bo(e,t){var n=function(r){return r=arguments.length?ve.Number(r):0,he(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,b),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],n=0;n<t.length;n++)e.g(e.aa,t[n],Number[t[n]],_e);n=function(r){try{return Number(this).toExponential(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){w(e,e.D,o.message)}},$(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(i){w(e,e.D,"toLocaleString: "+i.message)}},$(e,e.aa,"toLocaleString",n)}function Uo(e,t){var n=function(o,i){if(!he(e))return ve.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(ve.Date,s)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,b),e.g(e.$,"now",e.i(Date.now,!1),b),e.g(e.$,"parse",e.i(Date.parse,!1),b),e.g(e.$,"UTC",e.i(Date.UTC,!1),b),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var s=this.data;s instanceof Date||w(e,e.j,o+" not called on a Date");for(var u=[],p=0;p<arguments.length;p++)u[p]=e.R(arguments[p]);return s[o].apply(s,u)}}(t[r]),$(e,e.$,t[r],n)}function Mo(e,t){var n=function(r,o){if(he(e))var i=this;else{if(o===void 0&&H(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||w(e,e.T,"Invalid regexp flag: "+o);try{var s=new ve.RegExp(r,o)}catch(u){w(e,e.T,u.message)}return Qt(e,i,s),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,b),e.g(e.I.h.prototype,"global",void 0,Z),e.g(e.I.h.prototype,"ignoreCase",void 0,Z),e.g(e.I.h.prototype,"multiline",void 0,Z),e.g(e.I.h.prototype,"source","(?:)",Z),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(k){if(k){var m=fe(e,k);return e.g(m,"index",k.index),e.g(m,"input",k.input),m}return null}var s=this.data;if(r=String(r),s.lastIndex=Number(e.G(this,"lastIndex")),$e(e,s,o),e.REGEXP_MODE===2)if(de)r=We(e,"regexp.exec(string)",{string:r,regexp:s},s,o),r!==Ae&&(e.g(this,"lastIndex",s.lastIndex),o(i(r)));else{var u=e.ha(),p=He(e,s,u,o),x=this;u.onmessage=function(k){clearTimeout(p),e.g(x,"lastIndex",k.data[1]),o(i(k.data[0]))},u.postMessage(["exec",s,s.lastIndex,r])}else r=s.exec(r),e.g(this,"lastIndex",s.lastIndex),o(i(r))},Ke(e,e.I,"exec",n)}function Vo(e,t){function n(r){var o=e.i(function(i){var s=he(e)?this:e.Aa(o);return Gt(e,s,i),s},!0);return e.g(o,"prototype",e.Aa(e.D),b),e.g(o.h.prototype,"name",r,b),e.g(t,r,o,b),o}e.D=e.i(function(r){var o=he(e)?this:e.Aa(e.D);return Gt(e,o,r),o},!0),e.g(t,"Error",e.D,b),e.g(e.D.h.prototype,"message","",b),e.g(e.D.h.prototype,"name","Error",b),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function Lo(e,t){var n=e.s(e.M);e.g(t,"Math",n,b);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]],Z);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),b)}function Do(e,t){var n=e.s(e.M);e.g(t,"JSON",n,b),t=function(r){try{var o=JSON.parse(String(r))}catch(i){w(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?w(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=yr(e,o),o=o.filter(function(u){return typeof u=="string"||typeof u=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var s=JSON.stringify(r,o,i)}catch(u){w(e,e.j,u.message)}return s},e.g(n,"stringify",e.i(t,!1))}function H(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=pe(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Qt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,b),e.g(t,"source",n.source,Z),e.g(t,"global",n.global,Z),e.g(t,"ignoreCase",n.ignoreCase,Z),e.g(t,"multiline",n.multiline,Z)}function Gt(e,t,n){n&&e.g(t,"message",String(n),b),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;i.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!i.X||n.length&&i.type!=="CallExpression"||n.push({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
@@ -151,7 +151,7 @@ theFunction();
151
151
  )`,na=({contentId:e,variationId:t})=>`window.${Ur}(
152
152
  "${t}", "${e}", ${Mr}
153
153
  )`;function Yt(e){return y.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}const ra=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||J.warn("No previewed ID found in search params."),n};function Vr(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new go.LRUCache({max:500,ttl:1e3*60*5}))}function oa(e){Vr();const t=ra(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function ia(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function aa(){const e=ia().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
154
- 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 Lr=aa();function dt(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],s=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...dt(i,s,n)}:{...r,[s]:i}},{})}const sa="v3",nr="builder.",la="options.",fn=e=>{if(!e)return{};const t=ur(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(nr)){const o=r.replace(nr,"").replace(la,"");n[o]=t[r]}}),n},ca=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return fn(e)},rr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,dn=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:i,enrich:s,locale:u,apiVersion:p=sa,fields:x,omit:k,offset:m,cacheSeconds:A,staleCacheSeconds:N,sort:O,includeUnpublished:R}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(p))throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);const Y=t!==1,j=new URL(`https://cdn.builder.io/api/${p}/content/${o}`);if(j.searchParams.set("apiKey",i),j.searchParams.set("limit",String(t)),j.searchParams.set("noTraverse",String(Y)),j.searchParams.set("includeRefs",String(!0)),u&&j.searchParams.set("locale",u),s&&j.searchParams.set("enrich",String(s)),j.searchParams.set("omit",k||"meta.componentsUsed"),x&&j.searchParams.set("fields",x),Number.isFinite(m)&&m>-1&&j.searchParams.set("offset",String(Math.floor(m))),typeof R=="boolean"&&j.searchParams.set("includeUnpublished",String(R)),A&&rr(A)&&j.searchParams.set("cacheSeconds",String(A)),N&&rr(N)&&j.searchParams.set("staleCacheSeconds",String(N)),O){const M=dt({sort:O});for(const X in M)j.searchParams.set(X,JSON.stringify(M[X]))}const g={...ca(),...ur(e.options||{})},B=dt(g);for(const M in B)j.searchParams.set(M,String(B[M]));if(n&&j.searchParams.set("userAttributes",JSON.stringify(n)),r){const M=dt({query:r});for(const X in M)j.searchParams.set(X,JSON.stringify(M[X]))}return j},ua=e=>"results"in e;async function pn(e){const t=await _r({...e,limit:1});return t&&t[0]||null}const fa=async e=>{const t=dn(e);return await(await(e.fetch??Lr)(t.href,e.fetchOptions)).json()},Dr=async(e,t,n=dn(e))=>{const r=ht(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const s of t.results){const u=oa(n.searchParams);i.push(u||s)}t.results=i}if(!r||!(K()||me==="reactNative"))return t.results;try{const i=[];for(const s of t.results)i.push(await Oi({item:s,canTrack:r}));t.results=i}catch(i){J.error("Could not process A/B tests. ",i)}return t.results};async function _r(e){try{const t=dn(e),n=await fa(e);return ua(n)?Dr(e,n):(J.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return J.error("Error fetching data. ",t),null}}function da(e){const t=e||(K()?window.location.search:void 0);return t?fr(t).indexOf("builder.preview=")!==-1:!1}function pa(){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 Wr(){return pa().replace(/-/g,"")}const $r="builderSessionId",ha=async({canTrack:e})=>{if(!e)return;const t=await Ar({name:$r,canTrack:e});if(ie(t))return t;{const n=ma();return ga({id:n,canTrack:e}),n}},ma=()=>Wr(),ga=({id:e,canTrack:t})=>Or({name:$r,value:e,canTrack:t}),Hr=()=>K()&&typeof localStorage<"u"?localStorage:void 0,ya=({key:e,canTrack:t})=>{var n;try{return t?(n=Hr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},va=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Hr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},Kr="builderVisitorId",ba=({canTrack:e})=>{if(!e)return;const t=ya({key:Kr,canTrack:e});if(ie(t))return t;{const n=xa();return Sa({id:n,canTrack:e}),n}},xa=()=>Wr(),Sa=({id:e,canTrack:t})=>va({key:Kr,value:e,canTrack:t}),wa=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await ha({canTrack:e}),n=ba({canTrack:e});return{sessionId:t,visitorId:n}},ka=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await wa({canTrack:t}),userAttributes:dr(),ownerId:n}});async function Gr(e){if(!e.apiKey){J.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!zt()&&(K()||me==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await ka(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Ca=e=>Gr({...e,canTrack:!0});function or(e){return Math.round(e*1e3)/1e3}const Ea=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},Ia=e=>Ea(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ir=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=or(r/n.width),s=or(o/n.height);return{x:i,y:s}},ja=e=>{const t=e.target,n=t&&Ia(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?ir({event:e,target:t}):void 0,builderTargetOffset:n?ir({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},Ta=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function Xr(e,t){const n=new URL(t.origin),r=n.hostname;return(e||Ta).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}const Aa="0.14.19",ar={};function Jr(e,t){let n=ar[e];if(n||(n=ar[e]=[]),n.push(t),K()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const Oa=()=>{Jr("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 sr=!1;const Yr=(e={})=>{var t,n;sr||(sr=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:me,version:Aa,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var i,s;if(!Xr(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const u=o.data.text,p=o.data.arguments||[],x=o.data.id,k=new Function(u);let m,A=null;try{m=k.apply(null,p)}catch(N){A=N}A?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:x,error:A.message}},"*"):m&&typeof m.then=="function"?m.then(N=>{var O;(O=window.parent)==null||O.postMessage({type:"builder.evaluateResult",data:{id:x,result:N}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:m,id:x}},"*");break}}})))},zr=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!Xr(t,r))return;const{data:o}=r;if(o)switch(o.type){case"builder.configureSdk":{n.configureSdk(o.data);break}case"builder.triggerAnimation":{n.animation(o.data);break}case"builder.contentUpdate":{const i=o.data,s=i.key||i.alias||i.entry||i.modelName,u=i.data;s===e&&n.contentUpdate(u);break}}},Ra=(e,t,n)=>{if(!K)return J.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};Yr();const r=zr({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},Pa=e=>{var i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=e.fileUrl??((i=e==null?void 0:e.files)==null?void 0:i.regular);let o="";if(r&&t&&n&&(o+=`
154
+ 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 Lr=aa();function dt(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],s=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...dt(i,s,n)}:{...r,[s]:i}},{})}const sa="v3",nr="builder.",la="options.",fn=e=>{if(!e)return{};const t=ur(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(nr)){const o=r.replace(nr,"").replace(la,"");n[o]=t[r]}}),n},ca=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return fn(e)},rr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,dn=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:i,enrich:s,locale:u,apiVersion:p=sa,fields:x,omit:k,offset:m,cacheSeconds:A,staleCacheSeconds:N,sort:O,includeUnpublished:R}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(p))throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);const Y=t!==1,j=new URL(`https://cdn.builder.io/api/${p}/content/${o}`);if(j.searchParams.set("apiKey",i),j.searchParams.set("limit",String(t)),j.searchParams.set("noTraverse",String(Y)),j.searchParams.set("includeRefs",String(!0)),u&&j.searchParams.set("locale",u),s&&j.searchParams.set("enrich",String(s)),j.searchParams.set("omit",k||"meta.componentsUsed"),x&&j.searchParams.set("fields",x),Number.isFinite(m)&&m>-1&&j.searchParams.set("offset",String(Math.floor(m))),typeof R=="boolean"&&j.searchParams.set("includeUnpublished",String(R)),A&&rr(A)&&j.searchParams.set("cacheSeconds",String(A)),N&&rr(N)&&j.searchParams.set("staleCacheSeconds",String(N)),O){const M=dt({sort:O});for(const X in M)j.searchParams.set(X,JSON.stringify(M[X]))}const g={...ca(),...ur(e.options||{})},B=dt(g);for(const M in B)j.searchParams.set(M,String(B[M]));if(n&&j.searchParams.set("userAttributes",JSON.stringify(n)),r){const M=dt({query:r});for(const X in M)j.searchParams.set(X,JSON.stringify(M[X]))}return j},ua=e=>"results"in e;async function pn(e){const t=await _r({...e,limit:1});return t&&t[0]||null}const fa=async e=>{const t=dn(e);return await(await(e.fetch??Lr)(t.href,e.fetchOptions)).json()},Dr=async(e,t,n=dn(e))=>{const r=ht(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const s of t.results){const u=oa(n.searchParams);i.push(u||s)}t.results=i}if(!r||!(K()||me==="reactNative"))return t.results;try{const i=[];for(const s of t.results)i.push(await Oi({item:s,canTrack:r}));t.results=i}catch(i){J.error("Could not process A/B tests. ",i)}return t.results};async function _r(e){try{const t=dn(e),n=await fa(e);return ua(n)?Dr(e,n):(J.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return J.error("Error fetching data. ",t),null}}function da(e){const t=e||(K()?window.location.search:void 0);return t?fr(t).indexOf("builder.preview=")!==-1:!1}function pa(){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 Wr(){return pa().replace(/-/g,"")}const $r="builderSessionId",ha=async({canTrack:e})=>{if(!e)return;const t=await Ar({name:$r,canTrack:e});if(ie(t))return t;{const n=ma();return ga({id:n,canTrack:e}),n}},ma=()=>Wr(),ga=({id:e,canTrack:t})=>Or({name:$r,value:e,canTrack:t}),Hr=()=>K()&&typeof localStorage<"u"?localStorage:void 0,ya=({key:e,canTrack:t})=>{var n;try{return t?(n=Hr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},va=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Hr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},Kr="builderVisitorId",ba=({canTrack:e})=>{if(!e)return;const t=ya({key:Kr,canTrack:e});if(ie(t))return t;{const n=xa();return Sa({id:n,canTrack:e}),n}},xa=()=>Wr(),Sa=({id:e,canTrack:t})=>va({key:Kr,value:e,canTrack:t}),wa=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await ha({canTrack:e}),n=ba({canTrack:e});return{sessionId:t,visitorId:n}},ka=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await wa({canTrack:t}),userAttributes:dr(),ownerId:n}});async function Gr(e){if(!e.apiKey){J.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!zt()&&(K()||me==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await ka(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Ca=e=>Gr({...e,canTrack:!0});function or(e){return Math.round(e*1e3)/1e3}const Ea=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},Ia=e=>Ea(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ir=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=or(r/n.width),s=or(o/n.height);return{x:i,y:s}},ja=e=>{const t=e.target,n=t&&Ia(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?ir({event:e,target:t}):void 0,builderTargetOffset:n?ir({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},Ta=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function Xr(e,t){const n=new URL(t.origin),r=n.hostname;return(e||Ta).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}const Aa="0.14.20",ar={};function Jr(e,t){let n=ar[e];if(n||(n=ar[e]=[]),n.push(t),K()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const Oa=()=>{Jr("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 sr=!1;const Yr=(e={})=>{var t,n;sr||(sr=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:me,version:Aa,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var i,s;if(!Xr(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const u=o.data.text,p=o.data.arguments||[],x=o.data.id,k=new Function(u);let m,A=null;try{m=k.apply(null,p)}catch(N){A=N}A?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:x,error:A.message}},"*"):m&&typeof m.then=="function"?m.then(N=>{var O;(O=window.parent)==null||O.postMessage({type:"builder.evaluateResult",data:{id:x,result:N}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:m,id:x}},"*");break}}})))},zr=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!Xr(t,r))return;const{data:o}=r;if(o)switch(o.type){case"builder.configureSdk":{n.configureSdk(o.data);break}case"builder.triggerAnimation":{n.animation(o.data);break}case"builder.contentUpdate":{const i=o.data,s=i.key||i.alias||i.entry||i.modelName,u=i.data;s===e&&n.contentUpdate(u);break}}},Ra=(e,t,n)=>{if(!K)return J.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};Yr();const r=zr({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},Pa=e=>{var i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=e.fileUrl??((i=e==null?void 0:e.files)==null?void 0:i.regular);let o="";if(r&&t&&n&&(o+=`
155
155
  @font-face {
156
156
  font-family: "${t}";
157
157
  src: local("${n}"), url('${r}') format('woff2');
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./USE_CLIENT_BUNDLE-0a51f6af.cjs"),e=require("./bundle-af88805d.cjs");require("react/jsx-runtime");require("react");require("./USE_SERVER_BUNDLE-7acc7eaf.cjs");require("next/navigation");require("lru-cache");exports.BuilderContext=t.builderContext;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./USE_CLIENT_BUNDLE-47285217.cjs"),e=require("./bundle-8a8fdc14.cjs");require("react/jsx-runtime");require("react");require("./USE_SERVER_BUNDLE-9e66cbc6.cjs");require("next/navigation");require("lru-cache");exports.BuilderContext=t.builderContext;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.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,8 +1,8 @@
1
- import { f as n, c as m, F as c, d as p, S as g, V as d } from "./USE_CLIENT_BUNDLE-8bf08d5b.js";
2
- import { B as l, C as f, x as B, S as C, T as E, G as S, u as x, F as h, H as b, v as y, A as F, c as P, j as T, y as k, z as v, E as R, D as V } from "./bundle-e86f8464.js";
1
+ import { f as n, c as m, F as c, d as p, S as g, V as d } from "./USE_CLIENT_BUNDLE-2d9b453e.js";
2
+ import { B as l, C as f, x as B, S as C, T as E, G as S, u as x, F as h, H as b, v as y, A as F, c as P, j as T, y as k, z as v, E as R, D as V } from "./bundle-73367f5c.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
- import "./USE_SERVER_BUNDLE-90c6ce15.js";
5
+ import "./USE_SERVER_BUNDLE-c879ad04.js";
6
6
  import "next/navigation";
7
7
  import "lru-cache";
8
8
  export {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as a, Fragment as E, jsxs as I } from "react/jsx-runtime";
3
- import { i as Z, g as H, a as $, b as O, c as w, d as R, e as p, f as _, h as V, _ as D, j as ee, l as te, k as ne, m as ie, t as ae, n as U, o as ce, p as re, q as le, r as oe, s as de, u as se, v as ue } from "./bundle-e86f8464.js";
3
+ import { i as Z, g as H, a as $, b as O, c as w, d as R, e as p, f as _, h as V, _ as D, j as ee, l as te, k as ne, m as ie, t as ae, n as U, o as ce, p as re, q as le, r as oe, s as de, u as se, v as ue } from "./bundle-08369562.js";
4
4
  import { useRef as T, useState as C, useEffect as f, createContext as me } from "react";
5
- import { p as ge } from "./USE_SERVER_BUNDLE-90c6ce15.js";
5
+ import { p as ge } from "./USE_SERVER_BUNDLE-84ab22ef.js";
6
6
  import { useRouter as be } from "next/navigation";
7
7
  function J(e) {
8
8
  return /* @__PURE__ */ a(E, { children: Z(e.TagName) ? /* @__PURE__ */ a(E, { children: /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ a(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const t=require("react/jsx-runtime"),n=require("./bundle-af88805d.cjs"),l=require("react"),D=require("./USE_SERVER_BUNDLE-7acc7eaf.cjs"),H=require("next/navigation");function j(e){return t.jsx(t.Fragment,{children:n.isEmptyElement(e.TagName)?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):t.jsx(t.Fragment,{children:typeof e.TagName=="string"?t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}function V(e){function c(){return{...e.attributes,[n.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[n.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return t.jsx(j,{attributes:c(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}function U(e){return t.jsx(j,{TagName:e.Wrapper,attributes:n.getBlockProperties({block:e.block,context:e.context}),actionAttributes:n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function O(e){function c(){return e.includeBlockProps?{...n.getBlockProperties({block:e.block,context:e.context}),...n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:c(),children:e.children})}function $(e){function c(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function g(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function S(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:c()+" props-blocks-wrapper-7cd1560e","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>g(),onMouseEnter:o=>S(),onKeyPress:o=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-7cd1560e {
1
+ "use client";"use strict";const t=require("react/jsx-runtime"),n=require("./bundle-832f5a95.cjs"),l=require("react"),D=require("./USE_SERVER_BUNDLE-a4d10e9b.cjs"),H=require("next/navigation");function j(e){return t.jsx(t.Fragment,{children:n.isEmptyElement(e.TagName)?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):t.jsx(t.Fragment,{children:typeof e.TagName=="string"?t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}function V(e){function c(){return{...e.attributes,[n.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[n.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return t.jsx(j,{attributes:c(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}function U(e){return t.jsx(j,{TagName:e.Wrapper,attributes:n.getBlockProperties({block:e.block,context:e.context}),actionAttributes:n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function O(e){function c(){return e.includeBlockProps?{...n.getBlockProperties({block:e.block,context:e.context}),...n.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:c(),children:e.children})}function $(e){function c(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function g(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function S(){var o,b;n.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((b=window.parent)==null||b.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:c()+" props-blocks-wrapper-7cd1560e","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>g(),onMouseEnter:o=>S(),onKeyPress:o=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-7cd1560e {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { w as s } from "./bundle-edd2e835.js";
2
+ import { w as s } from "./bundle-08369562.js";
3
3
  async function n({
4
4
  key: t,
5
5
  value: r
@@ -1 +1 @@
1
- "use server";"use strict";const n=require("./bundle-9732e1d3.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
1
+ "use server";"use strict";const n=require("./bundle-832f5a95.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1,7 +1,7 @@
1
1
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { LRUCache } from "lru-cache";
4
- import { I as InteractiveElement, B as BlockWrapper, a as BlocksWrapper, D as DynamicRenderer, C as CustomCode, E as Embed, b as ImgComponent, V as Video, c as Button, F as FragmentComponent, d as Image, S as SectionComponent, e as EnableEditor } from "./USE_CLIENT_BUNDLE-e4c15aa7.js";
4
+ import { I as InteractiveElement, B as BlockWrapper, a as BlocksWrapper, D as DynamicRenderer, C as CustomCode, E as Embed, b as ImgComponent, V as Video, c as Button, F as FragmentComponent, d as Image, S as SectionComponent, e as EnableEditor } from "./USE_CLIENT_BUNDLE-68277019.js";
5
5
  import "next/navigation";
6
6
  const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), isEmptyElement = (e) => typeof e == "string" && EMPTY_HTML_ELEMENTS.has(e.toLowerCase()), TARGET = "rsc", getClassPropName = () => {
7
7
  switch (TARGET) {
@@ -2362,7 +2362,7 @@ function isFromTrustedHost(e, t) {
2362
2362
  const n = new URL(t.origin), o = n.hostname;
2363
2363
  return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
2364
2364
  }
2365
- const SDK_VERSION = "0.14.19", registry = {};
2365
+ const SDK_VERSION = "0.14.20", registry = {};
2366
2366
  function register(e, t) {
2367
2367
  let n = registry[e];
2368
2368
  if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
@@ -1,4 +1,4 @@
1
- "use strict";const jsxRuntime=require("react/jsx-runtime");require("react");const lruCache=require("lru-cache"),USE_CLIENT_BUNDLE=require("./USE_CLIENT_BUNDLE-8a32af0d.cjs");require("next/navigation");const EMPTY_HTML_ELEMENTS=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),isEmptyElement=e=>typeof e=="string"&&EMPTY_HTML_ELEMENTS.has(e.toLowerCase()),TARGET="rsc",getClassPropName=()=>{switch(TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function getBlockComponentOptions(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const MSG_PREFIX="[Builder.io]: ",logger={log:(...e)=>console.log(MSG_PREFIX,...e),error:(...e)=>console.error(MSG_PREFIX,...e),warn:(...e)=>console.warn(MSG_PREFIX,...e),debug:(...e)=>console.debug(MSG_PREFIX,...e)};function isBrowser(){return typeof window<"u"&&typeof document<"u"}const convertSearchParamsToQueryObject=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},normalizeSearchParams=e=>e instanceof URLSearchParams?convertSearchParamsToQueryObject(e):e,getSearchString=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function isIframe(){return isBrowser()&&window.self!==window.top}function isEditing(e){return isIframe()&&getSearchString(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const getLocation=()=>{if(isBrowser()){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},getUserAgent=()=>typeof navigator=="object"&&navigator.userAgent||"",getUserAttributes=()=>{const e=getUserAgent(),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()||TARGET==="reactNative"}},n=e.match(/Tablet|iPad/i),o=getLocation();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},getFunctionArguments=({builder:e,context:t,event:n,state:o})=>Object.entries({state:o,Builder:e,builder:e,context:t,event:n}),getBuilderGlobals=()=>({isEditing:isEditing(),isBrowser:isBrowser(),isServer:!isBrowser(),getUserAttributes:()=>getUserAttributes()}),parseCode=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,runInBrowser=({code:e,builder:t,context:n,event:o,localState:r,rootSetState:i,rootState:a})=>{const s=getFunctionArguments({builder:t,context:n,event:o,state:flattenState({rootState:a,localState:r,rootSetState:i})});return new Function(...s.map(([c])=>c),e)(...s.map(([,c])=>c))};function flattenState({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(o,r)=>{if(t&&r in t)return t[r];const i=o[r];return typeof i=="object"&&i!==null?flattenState({rootState:i,localState:void 0,rootSetState:n?a=>{o[r]=a,n(o)}:void 0}):i},set:(o,r,i)=>{if(t&&r in t)throw new Error("Writing to local state is not allowed as it is read-only.");return o[r]=i,n==null||n(o),!0}})}const fastClone=e=>JSON.parse(JSON.stringify(e)),set=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((r,i,a)=>Object(r[i])===r[i]?r[i]:r[i]=Math.abs(Number(o[a+1]))>>0===+o[a+1]?[]:{},e)[o[o.length-1]]=n,e},noop=()=>{};let safeDynamicRequire=noop;try{safeDynamicRequire=eval("require")}catch(e){}const getSyncValName=e=>`bldr_${e}_sync`,BUILDER_SET_STATE_NAME="BUILDER_SET_STATE",INJECTED_IVM_GLOBAL="BUILDER_IVM",REF_TO_PROXY_FN=`
1
+ "use strict";const jsxRuntime=require("react/jsx-runtime");require("react");const lruCache=require("lru-cache"),USE_CLIENT_BUNDLE=require("./USE_CLIENT_BUNDLE-8d2c6823.cjs");require("next/navigation");const EMPTY_HTML_ELEMENTS=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),isEmptyElement=e=>typeof e=="string"&&EMPTY_HTML_ELEMENTS.has(e.toLowerCase()),TARGET="rsc",getClassPropName=()=>{switch(TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function getBlockComponentOptions(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const MSG_PREFIX="[Builder.io]: ",logger={log:(...e)=>console.log(MSG_PREFIX,...e),error:(...e)=>console.error(MSG_PREFIX,...e),warn:(...e)=>console.warn(MSG_PREFIX,...e),debug:(...e)=>console.debug(MSG_PREFIX,...e)};function isBrowser(){return typeof window<"u"&&typeof document<"u"}const convertSearchParamsToQueryObject=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},normalizeSearchParams=e=>e instanceof URLSearchParams?convertSearchParamsToQueryObject(e):e,getSearchString=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function isIframe(){return isBrowser()&&window.self!==window.top}function isEditing(e){return isIframe()&&getSearchString(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const getLocation=()=>{if(isBrowser()){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},getUserAgent=()=>typeof navigator=="object"&&navigator.userAgent||"",getUserAttributes=()=>{const e=getUserAgent(),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()||TARGET==="reactNative"}},n=e.match(/Tablet|iPad/i),o=getLocation();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},getFunctionArguments=({builder:e,context:t,event:n,state:o})=>Object.entries({state:o,Builder:e,builder:e,context:t,event:n}),getBuilderGlobals=()=>({isEditing:isEditing(),isBrowser:isBrowser(),isServer:!isBrowser(),getUserAttributes:()=>getUserAttributes()}),parseCode=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,runInBrowser=({code:e,builder:t,context:n,event:o,localState:r,rootSetState:i,rootState:a})=>{const s=getFunctionArguments({builder:t,context:n,event:o,state:flattenState({rootState:a,localState:r,rootSetState:i})});return new Function(...s.map(([c])=>c),e)(...s.map(([,c])=>c))};function flattenState({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(o,r)=>{if(t&&r in t)return t[r];const i=o[r];return typeof i=="object"&&i!==null?flattenState({rootState:i,localState:void 0,rootSetState:n?a=>{o[r]=a,n(o)}:void 0}):i},set:(o,r,i)=>{if(t&&r in t)throw new Error("Writing to local state is not allowed as it is read-only.");return o[r]=i,n==null||n(o),!0}})}const fastClone=e=>JSON.parse(JSON.stringify(e)),set=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((r,i,a)=>Object(r[i])===r[i]?r[i]:r[i]=Math.abs(Number(o[a+1]))>>0===+o[a+1]?[]:{},e)[o[o.length-1]]=n,e},noop=()=>{};let safeDynamicRequire=noop;try{safeDynamicRequire=eval("require")}catch(e){}const getSyncValName=e=>`bldr_${e}_sync`,BUILDER_SET_STATE_NAME="BUILDER_SET_STATE",INJECTED_IVM_GLOBAL="BUILDER_IVM",REF_TO_PROXY_FN=`
2
2
  var refToProxy = (obj) => {
3
3
  if (typeof obj !== 'object' || obj === null) {
4
4
  return obj;
@@ -178,7 +178,7 @@ if (typeof output === 'object' && output !== null) {
178
178
  )`,getUpdateVariantVisibilityScript=({contentId:e,variationId:t})=>`window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME}(
179
179
  "${t}", "${e}", ${isHydrationTarget}
180
180
  )`;function InlinedScript(e){return jsxRuntime.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}const getIdFromSearchParams=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||logger.warn("No previewed ID found in search params."),n};function init(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new lruCache.LRUCache({max:500,ttl:1e3*60*5}))}function getPreviewContent(e){init();const t=getIdFromSearchParams(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function getGlobalThis(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function getFetch(){const e=getGlobalThis().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
181
- 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 fetch$1=getFetch();function flatten(e,t=null,n="."){return Object.keys(e).reduce((o,r)=>{const i=e[r],a=[t,r].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...o,...flatten(i,a,n)}:{...o,[a]:i}},{})}const DEFAULT_API_VERSION="v3",BUILDER_SEARCHPARAMS_PREFIX="builder.",BUILDER_OPTIONS_PREFIX="options.",getBuilderSearchParams=e=>{if(!e)return{};const t=normalizeSearchParams(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(BUILDER_SEARCHPARAMS_PREFIX)){const r=o.replace(BUILDER_SEARCHPARAMS_PREFIX,"").replace(BUILDER_OPTIONS_PREFIX,"");n[r]=t[o]}}),n},getBuilderSearchParamsFromWindow=()=>{if(!isBrowser())return{};const e=new URLSearchParams(window.location.search);return getBuilderSearchParams(e)},isPositiveNumber=e=>typeof e=="number"&&!isNaN(e)&&e>=0,generateContentUrl=e=>{const{limit:t=30,userAttributes:n,query:o,model:r,apiKey:i,enrich:a,locale:s,apiVersion:c=DEFAULT_API_VERSION,fields:u,omit:f,offset:l,cacheSeconds:d,staleCacheSeconds:g,sort:b,includeUnpublished:p}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(c))throw new Error(`Invalid apiVersion: expected 'v3', received '${c}'`);const C=t!==1,m=new URL(`https://cdn.builder.io/api/${c}/content/${r}`);if(m.searchParams.set("apiKey",i),m.searchParams.set("limit",String(t)),m.searchParams.set("noTraverse",String(C)),m.searchParams.set("includeRefs",String(!0)),s&&m.searchParams.set("locale",s),a&&m.searchParams.set("enrich",String(a)),m.searchParams.set("omit",f||"meta.componentsUsed"),u&&m.searchParams.set("fields",u),Number.isFinite(l)&&l>-1&&m.searchParams.set("offset",String(Math.floor(l))),typeof p=="boolean"&&m.searchParams.set("includeUnpublished",String(p)),d&&isPositiveNumber(d)&&m.searchParams.set("cacheSeconds",String(d)),g&&isPositiveNumber(g)&&m.searchParams.set("staleCacheSeconds",String(g)),b){const S=flatten({sort:b});for(const x in S)m.searchParams.set(x,JSON.stringify(S[x]))}const h={...getBuilderSearchParamsFromWindow(),...normalizeSearchParams(e.options||{})},y=flatten(h);for(const S in y)m.searchParams.set(S,String(y[S]));if(n&&m.searchParams.set("userAttributes",JSON.stringify(n)),o){const S=flatten({query:o});for(const x in S)m.searchParams.set(x,JSON.stringify(S[x]))}return m},checkContentHasResults=e=>"results"in e;async function fetchOneEntry(e){const t=await fetchEntries({...e,limit:1});return t&&t[0]||null}const _fetchContent=async e=>{const t=generateContentUrl(e);return await(await(e.fetch??fetch$1)(t.href,e.fetchOptions)).json()},_processContentResult=async(e,t,n=generateContentUrl(e))=>{const o=getDefaultCanTrack(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const a of t.results){const s=getPreviewContent(n.searchParams);i.push(s||a)}t.results=i}if(!o||!(isBrowser()||TARGET==="reactNative"))return t.results;try{const i=[];for(const a of t.results)i.push(await handleABTesting({item:a,canTrack:o}));t.results=i}catch(i){logger.error("Could not process A/B tests. ",i)}return t.results};async function fetchEntries(e){try{const t=generateContentUrl(e),n=await _fetchContent(e);return checkContentHasResults(n)?_processContentResult(e,n):(logger.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return logger.error("Error fetching data. ",t),null}}function isPreviewing(e){const t=e||(isBrowser()?window.location.search:void 0);return t?getSearchString(t).indexOf("builder.preview=")!==-1:!1}function uuidv4(){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 uuid(){return uuidv4().replace(/-/g,"")}const SESSION_LOCAL_STORAGE_KEY="builderSessionId",getSessionId=async({canTrack:e})=>{if(!e)return;const t=await getCookie({name:SESSION_LOCAL_STORAGE_KEY,canTrack:e});if(checkIsDefined(t))return t;{const n=createSessionId();return setSessionId({id:n,canTrack:e}),n}},createSessionId=()=>uuid(),setSessionId=({id:e,canTrack:t})=>setCookie({name:SESSION_LOCAL_STORAGE_KEY,value:e,canTrack:t}),getLocalStorage=()=>isBrowser()&&typeof localStorage<"u"?localStorage:void 0,getLocalStorageItem=({key:e,canTrack:t})=>{var n;try{return t?(n=getLocalStorage())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},setLocalStorageItem=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=getLocalStorage())==null||o.setItem(e,n))}catch(r){console.debug("[LocalStorage] SET error: ",r)}},VISITOR_LOCAL_STORAGE_KEY="builderVisitorId",getVisitorId=({canTrack:e})=>{if(!e)return;const t=getLocalStorageItem({key:VISITOR_LOCAL_STORAGE_KEY,canTrack:e});if(checkIsDefined(t))return t;{const n=createVisitorId();return setVisitorId({id:n,canTrack:e}),n}},createVisitorId=()=>uuid(),setVisitorId=({id:e,canTrack:t})=>setLocalStorageItem({key:VISITOR_LOCAL_STORAGE_KEY,value:e,canTrack:t}),getTrackingEventData=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await getSessionId({canTrack:e}),n=getVisitorId({canTrack:e});return{sessionId:t,visitorId:n}},createEvent=async({type:e,canTrack:t,apiKey:n,metadata:o,...r})=>({type:e,data:{...r,metadata:{url:location.href,...o},...await getTrackingEventData({canTrack:t}),userAttributes:getUserAttributes(),ownerId:n}});async function _track(e){if(!e.apiKey){logger.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!isEditing()&&(isBrowser()||TARGET==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await createEvent(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const track=e=>_track({...e,canTrack:!0});function round(e){return Math.round(e*1e3)/1e3}const findParentElement=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},findBuilderParent=e=>findParentElement(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),computeOffset=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,i=round(o/n.width),a=round(r/n.height);return{x:i,y:a}},getInteractionPropertiesForEvent=e=>{const t=e.target,n=t&&findBuilderParent(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?computeOffset({event:e,target:t}):void 0,builderTargetOffset:n?computeOffset({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},DEFAULT_TRUSTED_HOSTS=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function isFromTrustedHost(e,t){const n=new URL(t.origin),o=n.hostname;return(e||DEFAULT_TRUSTED_HOSTS).findIndex(r=>r.startsWith("*.")?o.endsWith(r.slice(1)):r===o)>-1}const SDK_VERSION="0.14.19",registry={};function register(e,t){let n=registry[e];if(n||(n=registry[e]=[]),n.push(t),isBrowser()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(r){console.debug("Could not postmessage",r)}}}const registerInsertMenu=()=>{register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let isSetupForEditing=!1;const setupBrowserForEditing=(e={})=>{var t,n;isSetupForEditing||(isSetupForEditing=!0,isBrowser()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:TARGET,version:SDK_VERSION,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",o=>{var i,a;if(!isFromTrustedHost(e.trustedHosts,o))return;const{data:r}=o;if(r!=null&&r.type)switch(r.type){case"builder.evaluate":{const s=r.data.text,c=r.data.arguments||[],u=r.data.id,f=new Function(s);let l,d=null;try{l=f.apply(null,c)}catch(g){d=g}d?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:u,error:d.message}},"*"):l&&typeof l.then=="function"?l.then(g=>{var b;(b=window.parent)==null||b.postMessage({type:"builder.evaluateResult",data:{id:u,result:g}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:l,id:u}},"*");break}}})))},createEditorListener=({model:e,trustedHosts:t,callbacks:n})=>o=>{if(!isFromTrustedHost(t,o))return;const{data:r}=o;if(r)switch(r.type){case"builder.configureSdk":{n.configureSdk(r.data);break}case"builder.triggerAnimation":{n.animation(r.data);break}case"builder.contentUpdate":{const i=r.data,a=i.key||i.alias||i.entry||i.modelName,s=i.data;a===e&&n.contentUpdate(s);break}}},subscribeToEditor=(e,t,n)=>{if(!isBrowser)return logger.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};setupBrowserForEditing();const o=createEditorListener({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},getCssFromFont=e=>{var i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],o=e.fileUrl??((i=e==null?void 0:e.files)==null?void 0:i.regular);let r="";if(o&&t&&n&&(r+=`
181
+ 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 fetch$1=getFetch();function flatten(e,t=null,n="."){return Object.keys(e).reduce((o,r)=>{const i=e[r],a=[t,r].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...o,...flatten(i,a,n)}:{...o,[a]:i}},{})}const DEFAULT_API_VERSION="v3",BUILDER_SEARCHPARAMS_PREFIX="builder.",BUILDER_OPTIONS_PREFIX="options.",getBuilderSearchParams=e=>{if(!e)return{};const t=normalizeSearchParams(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(BUILDER_SEARCHPARAMS_PREFIX)){const r=o.replace(BUILDER_SEARCHPARAMS_PREFIX,"").replace(BUILDER_OPTIONS_PREFIX,"");n[r]=t[o]}}),n},getBuilderSearchParamsFromWindow=()=>{if(!isBrowser())return{};const e=new URLSearchParams(window.location.search);return getBuilderSearchParams(e)},isPositiveNumber=e=>typeof e=="number"&&!isNaN(e)&&e>=0,generateContentUrl=e=>{const{limit:t=30,userAttributes:n,query:o,model:r,apiKey:i,enrich:a,locale:s,apiVersion:c=DEFAULT_API_VERSION,fields:u,omit:f,offset:l,cacheSeconds:d,staleCacheSeconds:g,sort:b,includeUnpublished:p}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(c))throw new Error(`Invalid apiVersion: expected 'v3', received '${c}'`);const C=t!==1,m=new URL(`https://cdn.builder.io/api/${c}/content/${r}`);if(m.searchParams.set("apiKey",i),m.searchParams.set("limit",String(t)),m.searchParams.set("noTraverse",String(C)),m.searchParams.set("includeRefs",String(!0)),s&&m.searchParams.set("locale",s),a&&m.searchParams.set("enrich",String(a)),m.searchParams.set("omit",f||"meta.componentsUsed"),u&&m.searchParams.set("fields",u),Number.isFinite(l)&&l>-1&&m.searchParams.set("offset",String(Math.floor(l))),typeof p=="boolean"&&m.searchParams.set("includeUnpublished",String(p)),d&&isPositiveNumber(d)&&m.searchParams.set("cacheSeconds",String(d)),g&&isPositiveNumber(g)&&m.searchParams.set("staleCacheSeconds",String(g)),b){const S=flatten({sort:b});for(const x in S)m.searchParams.set(x,JSON.stringify(S[x]))}const h={...getBuilderSearchParamsFromWindow(),...normalizeSearchParams(e.options||{})},y=flatten(h);for(const S in y)m.searchParams.set(S,String(y[S]));if(n&&m.searchParams.set("userAttributes",JSON.stringify(n)),o){const S=flatten({query:o});for(const x in S)m.searchParams.set(x,JSON.stringify(S[x]))}return m},checkContentHasResults=e=>"results"in e;async function fetchOneEntry(e){const t=await fetchEntries({...e,limit:1});return t&&t[0]||null}const _fetchContent=async e=>{const t=generateContentUrl(e);return await(await(e.fetch??fetch$1)(t.href,e.fetchOptions)).json()},_processContentResult=async(e,t,n=generateContentUrl(e))=>{const o=getDefaultCanTrack(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const a of t.results){const s=getPreviewContent(n.searchParams);i.push(s||a)}t.results=i}if(!o||!(isBrowser()||TARGET==="reactNative"))return t.results;try{const i=[];for(const a of t.results)i.push(await handleABTesting({item:a,canTrack:o}));t.results=i}catch(i){logger.error("Could not process A/B tests. ",i)}return t.results};async function fetchEntries(e){try{const t=generateContentUrl(e),n=await _fetchContent(e);return checkContentHasResults(n)?_processContentResult(e,n):(logger.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return logger.error("Error fetching data. ",t),null}}function isPreviewing(e){const t=e||(isBrowser()?window.location.search:void 0);return t?getSearchString(t).indexOf("builder.preview=")!==-1:!1}function uuidv4(){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 uuid(){return uuidv4().replace(/-/g,"")}const SESSION_LOCAL_STORAGE_KEY="builderSessionId",getSessionId=async({canTrack:e})=>{if(!e)return;const t=await getCookie({name:SESSION_LOCAL_STORAGE_KEY,canTrack:e});if(checkIsDefined(t))return t;{const n=createSessionId();return setSessionId({id:n,canTrack:e}),n}},createSessionId=()=>uuid(),setSessionId=({id:e,canTrack:t})=>setCookie({name:SESSION_LOCAL_STORAGE_KEY,value:e,canTrack:t}),getLocalStorage=()=>isBrowser()&&typeof localStorage<"u"?localStorage:void 0,getLocalStorageItem=({key:e,canTrack:t})=>{var n;try{return t?(n=getLocalStorage())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},setLocalStorageItem=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=getLocalStorage())==null||o.setItem(e,n))}catch(r){console.debug("[LocalStorage] SET error: ",r)}},VISITOR_LOCAL_STORAGE_KEY="builderVisitorId",getVisitorId=({canTrack:e})=>{if(!e)return;const t=getLocalStorageItem({key:VISITOR_LOCAL_STORAGE_KEY,canTrack:e});if(checkIsDefined(t))return t;{const n=createVisitorId();return setVisitorId({id:n,canTrack:e}),n}},createVisitorId=()=>uuid(),setVisitorId=({id:e,canTrack:t})=>setLocalStorageItem({key:VISITOR_LOCAL_STORAGE_KEY,value:e,canTrack:t}),getTrackingEventData=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await getSessionId({canTrack:e}),n=getVisitorId({canTrack:e});return{sessionId:t,visitorId:n}},createEvent=async({type:e,canTrack:t,apiKey:n,metadata:o,...r})=>({type:e,data:{...r,metadata:{url:location.href,...o},...await getTrackingEventData({canTrack:t}),userAttributes:getUserAttributes(),ownerId:n}});async function _track(e){if(!e.apiKey){logger.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!isEditing()&&(isBrowser()||TARGET==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await createEvent(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const track=e=>_track({...e,canTrack:!0});function round(e){return Math.round(e*1e3)/1e3}const findParentElement=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},findBuilderParent=e=>findParentElement(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),computeOffset=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,i=round(o/n.width),a=round(r/n.height);return{x:i,y:a}},getInteractionPropertiesForEvent=e=>{const t=e.target,n=t&&findBuilderParent(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?computeOffset({event:e,target:t}):void 0,builderTargetOffset:n?computeOffset({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},DEFAULT_TRUSTED_HOSTS=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function isFromTrustedHost(e,t){const n=new URL(t.origin),o=n.hostname;return(e||DEFAULT_TRUSTED_HOSTS).findIndex(r=>r.startsWith("*.")?o.endsWith(r.slice(1)):r===o)>-1}const SDK_VERSION="0.14.20",registry={};function register(e,t){let n=registry[e];if(n||(n=registry[e]=[]),n.push(t),isBrowser()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(r){console.debug("Could not postmessage",r)}}}const registerInsertMenu=()=>{register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let isSetupForEditing=!1;const setupBrowserForEditing=(e={})=>{var t,n;isSetupForEditing||(isSetupForEditing=!0,isBrowser()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:TARGET,version:SDK_VERSION,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",o=>{var i,a;if(!isFromTrustedHost(e.trustedHosts,o))return;const{data:r}=o;if(r!=null&&r.type)switch(r.type){case"builder.evaluate":{const s=r.data.text,c=r.data.arguments||[],u=r.data.id,f=new Function(s);let l,d=null;try{l=f.apply(null,c)}catch(g){d=g}d?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:u,error:d.message}},"*"):l&&typeof l.then=="function"?l.then(g=>{var b;(b=window.parent)==null||b.postMessage({type:"builder.evaluateResult",data:{id:u,result:g}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:l,id:u}},"*");break}}})))},createEditorListener=({model:e,trustedHosts:t,callbacks:n})=>o=>{if(!isFromTrustedHost(t,o))return;const{data:r}=o;if(r)switch(r.type){case"builder.configureSdk":{n.configureSdk(r.data);break}case"builder.triggerAnimation":{n.animation(r.data);break}case"builder.contentUpdate":{const i=r.data,a=i.key||i.alias||i.entry||i.modelName,s=i.data;a===e&&n.contentUpdate(s);break}}},subscribeToEditor=(e,t,n)=>{if(!isBrowser)return logger.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};setupBrowserForEditing();const o=createEditorListener({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},getCssFromFont=e=>{var i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],o=e.fileUrl??((i=e==null?void 0:e.files)==null?void 0:i.regular);let r="";if(o&&t&&n&&(r+=`
182
182
  @font-face {
183
183
  font-family: "${t}";
184
184
  src: local("${n}"), url('${o}') format('woff2');
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./USE_CLIENT_BUNDLE-8a32af0d.cjs"),e=require("./bundle-23855e1a.cjs");require("react/jsx-runtime");require("react");require("./USE_SERVER_BUNDLE-d6552b77.cjs");require("next/navigation");require("lru-cache");exports.BuilderContext=t.builderContext;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./USE_CLIENT_BUNDLE-8d2c6823.cjs"),e=require("./bundle-832f5a95.cjs");require("react/jsx-runtime");require("react");require("./USE_SERVER_BUNDLE-a4d10e9b.cjs");require("next/navigation");require("lru-cache");exports.BuilderContext=t.builderContext;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.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,8 +1,8 @@
1
- import { f as n, c as m, F as c, d as p, S as g, V as d } from "./USE_CLIENT_BUNDLE-e4c15aa7.js";
2
- import { B as l, C as f, x as B, S as C, T as E, G as S, u as x, F as h, H as b, v as y, A as F, c as P, j as T, y as k, z as v, E as R, D as V } from "./bundle-1280dc1a.js";
1
+ import { f as n, c as m, F as c, d as p, S as g, V as d } from "./USE_CLIENT_BUNDLE-68277019.js";
2
+ import { B as l, C as f, x as B, S as C, T as E, G as S, u as x, F as h, H as b, v as y, A as F, c as P, j as T, y as k, z as v, E as R, D as V } from "./bundle-08369562.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
- import "./USE_SERVER_BUNDLE-4fd50e3b.js";
5
+ import "./USE_SERVER_BUNDLE-84ab22ef.js";
6
6
  import "next/navigation";
7
7
  import "lru-cache";
8
8
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-react-nextjs",
3
3
  "description": "Builder.io RSC SDK for NextJS App Directory",
4
- "version": "0.14.19",
4
+ "version": "0.14.20",
5
5
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/nextjs",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.19";
1
+ export declare const SDK_VERSION = "0.14.20";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.19";
1
+ export declare const SDK_VERSION = "0.14.20";