pagepilot-visual-editor 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -1
- package/dist/blocks-internal/block-button/src/index.d.ts +10 -10
- package/dist/blocks-internal/block-columns-container/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-container/src/index.d.ts +8 -8
- package/dist/blocks-internal/block-grid/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-heading/src/index.d.ts +7 -7
- package/dist/blocks-internal/block-html/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-iframe/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-image/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-list/src/index.d.ts +6 -6
- package/dist/blocks-internal/block-logo/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-stepper/src/index.d.ts +5 -5
- package/dist/blocks-internal/block-text/src/index.d.ts +4 -4
- package/dist/blocks-internal/block-video/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-youtube-url/src/index.d.ts +3 -3
- package/dist/editor/renderSections.d.ts +2 -68
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +2 -39
- package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +8 -8
- package/dist/editor-sample/documents/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/Rating/RatingPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +3 -3
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +2 -2
- package/dist/editor-sample/documents/editor/core.d.ts +85 -85
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +4 -75
- package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +8 -8
- package/dist/email-builder-core/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +4 -4
- package/dist/email-builder-core/blocks/Pagination/PaginationPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Rating/RatingPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/SkipLink/SkipLinkPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Table/TablePropsSchema.d.ts +2 -2
- package/dist/index.cjs +167 -167
- package/dist/index.js +7746 -7691
- package/dist/render-core/collectSubtreeIds.d.ts +1 -0
- package/dist/render-core/combineSections.d.ts +37 -0
- package/dist/render-core/stubs/editorContext.d.ts +10 -0
- package/dist/render-core/stubs/usePreviewScreen.d.ts +7 -0
- package/dist/render-core/templateBaking.d.ts +35 -0
- package/dist/render-core/templateEnvelope.d.ts +11 -0
- package/dist/render.cjs +726 -0
- package/dist/render.d.ts +4 -0
- package/dist/render.js +15085 -0
- package/dist/renderToStaticHtml.d.ts +1 -1
- package/package.json +11 -3
package/dist/render.cjs
ADDED
|
@@ -0,0 +1,726 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),Tl=require("react-dom/server"),G=require("react");var Co;function R(e,t,n){function r(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const c=a.prototype,u=Object.keys(c);for(let m=0;m<u.length;m++){const d=u[m];d in l||(l[d]=c[d].bind(l))}}const o=(n==null?void 0:n.Parent)??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(l){var s;const c=n!=null&&n.Parent?new i:this;r(c,l),(s=c._zod).deferred??(s.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var s,c;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(c=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:c.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class St extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ta extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Co=globalThis).__zod_globalConfig??(Co.__zod_globalConfig={});const eo=globalThis.__zod_globalConfig;function Ve(e){return eo}function na(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Sr(e,t){return typeof t=="bigint"?t.toString():t}function In(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function to(e){return e==null}function no(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Ml(e,t){const n=e/t,r=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}const Ao=Symbol("evaluating");function q(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Ao)return r===void 0&&(r=Ao,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function ct(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function nt(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function yo(e){return JSON.stringify(e)}function Ll(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const ra="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ut(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const zl=In(()=>{var e;if(eo.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function wt(e){if(Ut(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ut(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function oa(e){return wt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const jl=new Set(["string","number","symbol"]);function kt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function rt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function j(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Bl(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Dl={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Hl(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=nt(e._zod.def,{get shape(){const a={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return ct(this,"shape",a),a},checks:[]});return rt(e,i)}function Fl(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=nt(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return ct(this,"shape",a),a},checks:[]});return rt(e,i)}function Gl(e,t){if(!wt(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=nt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return ct(this,"shape",i),i}});return rt(e,o)}function Ul(e,t){if(!wt(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=nt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return ct(this,"shape",r),r}});return rt(e,n)}function Zl(e,t){var r;if((r=e._zod.def.checks)!=null&&r.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=nt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return ct(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return rt(e,n)}function Wl(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=nt(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const c in n){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(const c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return ct(this,"shape",s),s},checks:[]});return rt(t,a)}function Vl(e,t,n){const r=nt(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(const a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return ct(this,"shape",i),i}});return rt(t,r)}function bt(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function ql(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function et(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ln(e){return typeof e=="string"?e:e==null?void 0:e.message}function qe(e,t,n){var s,c,u,m,d,h;const r=e.message?e.message:ln((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??ln((m=t==null?void 0:t.error)==null?void 0:m.call(t,e))??ln((d=n.customError)==null?void 0:d.call(n,e))??ln((h=n.localeError)==null?void 0:h.call(n,e))??"Invalid input",{inst:o,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=r,t!=null&&t.reportInput&&(l.input=a),l}function ro(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Zt(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const ia=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Sr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},aa=R("$ZodError",ia),la=R("$ZodError",ia,{Parent:Error});function Kl(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Yl(e,t=n=>n.message){const n={_errors:[]},r=(o,i=[])=>{for(const a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>r({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...i,...a.path]);else{const l=[...i,...a.path];if(l.length===0)n._errors.push(t(a));else{let s=n,c=0;for(;c<l.length;){const u=l[c];c===l.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(a))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}}};return r(e),n}const oo=e=>(t,n,r,o)=>{const i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new St;if(a.issues.length){const l=new((o==null?void 0:o.Err)??e)(a.issues.map(s=>qe(s,i,Ve())));throw ra(l,o==null?void 0:o.callee),l}return a.value},io=e=>async(t,n,r,o)=>{const i=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((o==null?void 0:o.Err)??e)(a.issues.map(s=>qe(s,i,Ve())));throw ra(l,o==null?void 0:o.callee),l}return a.value},Pn=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new St;return i.issues.length?{success:!1,error:new(e??aa)(i.issues.map(a=>qe(a,o,Ve())))}:{success:!0,data:i.value}},Jl=Pn(la),On=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>qe(a,o,Ve())))}:{success:!0,data:i.value}},Xl=On(la),Ql=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return oo(e)(t,n,o)},es=e=>(t,n,r)=>oo(e)(t,n,r),ts=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return io(e)(t,n,o)},ns=e=>async(t,n,r)=>io(e)(t,n,r),rs=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return Pn(e)(t,n,o)},os=e=>(t,n,r)=>Pn(e)(t,n,r),is=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return On(e)(t,n,o)},as=e=>async(t,n,r)=>On(e)(t,n,r),ls=/^[cC][0-9a-z]{6,}$/,ss=/^[0-9a-z]+$/,cs=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,us=/^[0-9a-vA-V]{20}$/,ds=/^[A-Za-z0-9]{27}$/,hs=/^[a-zA-Z0-9_-]{21}$/,fs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,gs=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,No=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ms=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ps="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function bs(){return new RegExp(ps,"u")}const vs=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,xs=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ss=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,_s=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ws=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,sa=/^[A-Za-z0-9_-]*$/,ks=/^https?$/,$s=/^\+[1-9]\d{6,14}$/,ca="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Cs=new RegExp(`^${ca}$`);function ua(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function As(e){return new RegExp(`^${ua(e)}$`)}function ys(e){const t=ua({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${ca}T(?:${r})$`)}const Ns=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Rs=/^-?\d+$/,da=/^-?\d+(?:\.\d+)?$/,Es=/^(?:true|false)$/i,Is=/^[^A-Z]*$/,Ps=/^[^a-z]*$/,ke=R("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ha={number:"number",bigint:"bigint",object:"date"},fa=R("$ZodCheckLessThan",(e,t)=>{ke.init(e,t);const n=ha[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ga=R("$ZodCheckGreaterThan",(e,t)=>{ke.init(e,t);const n=ha[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Os=R("$ZodCheckMultipleOf",(e,t)=>{ke.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Ml(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ts=R("$ZodCheckNumberFormat",(e,t)=>{var a;ke.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),r=n?"int":"number",[o,i]=Dl[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=o,s.maximum=i,n&&(s.pattern=Rs)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<o&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>i&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Ms=R("$ZodCheckMaxLength",(e,t)=>{var n;ke.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!to(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const a=ro(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ls=R("$ZodCheckMinLength",(e,t)=>{var n;ke.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!to(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const a=ro(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),zs=R("$ZodCheckLengthEquals",(e,t)=>{var n;ke.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!to(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,i=o.length;if(i===t.length)return;const a=ro(o),l=i>t.length;r.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Tn=R("$ZodCheckStringFormat",(e,t)=>{var n,r;ke.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),js=R("$ZodCheckRegex",(e,t)=>{Tn.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Bs=R("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Is),Tn.init(e,t)}),Ds=R("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ps),Tn.init(e,t)}),Hs=R("$ZodCheckIncludes",(e,t)=>{ke.init(e,t);const n=kt(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Fs=R("$ZodCheckStartsWith",(e,t)=>{ke.init(e,t);const n=new RegExp(`^${kt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Gs=R("$ZodCheckEndsWith",(e,t)=>{ke.init(e,t);const n=new RegExp(`.*${kt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Us=R("$ZodCheckOverwrite",(e,t)=>{ke.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Zs{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
2
|
+
`).filter(a=>a),o=Math.min(...r.map(a=>a.length-a.trimStart().length)),i=r.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,o.join(`
|
|
3
|
+
`))}}const Ws={major:4,minor:4,patch:3},oe=R("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ws;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const a of i._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=bt(l),m;for(const d of s){if(d._zod.def.when){if(ql(l)||!d._zod.def.when(l))continue}else if(u)continue;const h=l.issues.length,f=d._zod.check(l);if(f instanceof Promise&&(c==null?void 0:c.async)===!1)throw new St;if(m||f instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await f,l.issues.length!==h&&(u||(u=bt(l,h)))});else{if(l.issues.length===h)continue;u||(u=bt(l,h))}}return m?m.then(()=>l):l},a=(l,s,c)=>{if(bt(l))return l.aborted=!0,l;const u=i(s,r,c);if(u instanceof Promise){if(c.async===!1)throw new St;return u.then(m=>e._zod.parse(m,c))}return e._zod.parse(u,c)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const u=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(m=>a(m,l,s)):a(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new St;return c.then(u=>i(u,r,s))}return i(c,r,s)}}q(e,"~standard",()=>({validate:i=>{var a;try{const l=Jl(e,i);return l.success?{value:l.data}:{issues:(a=l.error)==null?void 0:a.issues}}catch{return Xl(e,i).then(s=>{var c;return s.success?{value:s.data}:{issues:(c=s.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}))}),ao=R("$ZodString",(e,t)=>{var n;oe.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Ns(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ue=R("$ZodStringFormat",(e,t)=>{Tn.init(e,t),ao.init(e,t)}),Vs=R("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=gs),ue.init(e,t)}),qs=R("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=No(r))}else t.pattern??(t.pattern=No());ue.init(e,t)}),Ks=R("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ms),ue.init(e,t)}),Ys=R("$ZodURL",(e,t)=>{ue.init(e,t),e._zod.check=n=>{var r;try{const o=n.value.trim();if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===ks.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Js=R("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=bs()),ue.init(e,t)}),Xs=R("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=hs),ue.init(e,t)}),Qs=R("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ls),ue.init(e,t)}),ec=R("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ss),ue.init(e,t)}),tc=R("$ZodULID",(e,t)=>{t.pattern??(t.pattern=cs),ue.init(e,t)}),nc=R("$ZodXID",(e,t)=>{t.pattern??(t.pattern=us),ue.init(e,t)}),rc=R("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ds),ue.init(e,t)}),oc=R("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ys(t)),ue.init(e,t)}),ic=R("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Cs),ue.init(e,t)}),ac=R("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=As(t)),ue.init(e,t)}),lc=R("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=fs),ue.init(e,t)}),sc=R("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=vs),ue.init(e,t),e._zod.bag.format="ipv4"}),cc=R("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=xs),ue.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),uc=R("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ss),ue.init(e,t)}),dc=R("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=_s),ue.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,i]=r;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ma(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const hc=R("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ws),ue.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ma(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function fc(e){if(!sa.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ma(n)}const gc=R("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=sa),ue.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{fc(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),mc=R("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$s),ue.init(e,t)});function pc(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const bc=R("$ZodJWT",(e,t)=>{ue.init(e,t),e._zod.check=n=>{pc(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),pa=R("$ZodNumber",(e,t)=>{oe.init(e,t),e._zod.pattern=e._zod.bag.pattern??da,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),vc=R("$ZodNumberFormat",(e,t)=>{Ts.init(e,t),pa.init(e,t)}),xc=R("$ZodBoolean",(e,t)=>{oe.init(e,t),e._zod.pattern=Es,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Sc=R("$ZodAny",(e,t)=>{oe.init(e,t),e._zod.parse=n=>n}),_c=R("$ZodUnknown",(e,t)=>{oe.init(e,t),e._zod.parse=n=>n}),wc=R("$ZodNever",(e,t)=>{oe.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Ro(e,t,n){e.issues.length&&t.issues.push(...et(n,e.issues)),t.value[n]=e.value}const kc=R("$ZodArray",(e,t)=>{oe.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const i=[];for(let a=0;a<o.length;a++){const l=o[a],s=t.element._zod.run({value:l,issues:[]},r);s instanceof Promise?i.push(s.then(c=>Ro(c,n,a))):Ro(s,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function wn(e,t,n,r,o,i){const a=n in r;if(e.issues.length){if(o&&i&&!a)return;t.issues.push(...et(n,e.issues))}if(!a&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function ba(e){var r,o,i,a;const t=Object.keys(e.shape);for(const l of t)if(!((a=(i=(o=(r=e.shape)==null?void 0:r[l])==null?void 0:o._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Bl(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function va(e,t,n,r,o,i){const a=[],l=o.keySet,s=o.catchall._zod,c=s.def.type,u=s.optin==="optional",m=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(c==="never"){a.push(d);continue}const h=s.run({value:t[d],issues:[]},r);h instanceof Promise?e.push(h.then(f=>wn(f,n,d,t,u,m))):wn(h,n,d,t,u,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const $c=R("$ZodObject",(e,t)=>{oe.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}const r=In(()=>ba(t));q(e._zod,"propValues",()=>{const l=t.shape,s={};for(const c in l){const u=l[c]._zod;if(u.values){s[c]??(s[c]=new Set);for(const m of u.values)s[c].add(m)}}return s});const o=Ut,i=t.catchall;let a;e._zod.parse=(l,s)=>{a??(a=r.value);const c=l.value;if(!o(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],m=a.shape;for(const d of a.keys){const h=m[d],f=h._zod.optin==="optional",b=h._zod.optout==="optional",v=h._zod.run({value:c[d],issues:[]},s);v instanceof Promise?u.push(v.then(S=>wn(S,l,d,c,f,b))):wn(v,l,d,c,f,b)}return i?va(u,c,l,s,r.value,e):u.length?Promise.all(u).then(()=>l):l}}),Cc=R("$ZodObjectJIT",(e,t)=>{$c.init(e,t);const n=e._zod.parse,r=In(()=>ba(t)),o=d=>{var A,x;const h=new Zs(["shape","payload","ctx"]),f=r.value,b=k=>{const N=yo(k);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};h.write("const input = payload.value;");const v=Object.create(null);let S=0;for(const k of f.keys)v[k]=`key_${S++}`;h.write("const newResult = {};");for(const k of f.keys){const N=v[k],C=yo(k),y=d[k],I=((A=y==null?void 0:y._zod)==null?void 0:A.optin)==="optional",T=((x=y==null?void 0:y._zod)==null?void 0:x.optout)==="optional";h.write(`const ${N} = ${b(k)};`),I&&T?h.write(`
|
|
4
|
+
if (${N}.issues.length) {
|
|
5
|
+
if (${C} in input) {
|
|
6
|
+
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
7
|
+
...iss,
|
|
8
|
+
path: iss.path ? [${C}, ...iss.path] : [${C}]
|
|
9
|
+
})));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (${N}.value === undefined) {
|
|
14
|
+
if (${C} in input) {
|
|
15
|
+
newResult[${C}] = undefined;
|
|
16
|
+
}
|
|
17
|
+
} else {
|
|
18
|
+
newResult[${C}] = ${N}.value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
`):I?h.write(`
|
|
22
|
+
if (${N}.issues.length) {
|
|
23
|
+
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
24
|
+
...iss,
|
|
25
|
+
path: iss.path ? [${C}, ...iss.path] : [${C}]
|
|
26
|
+
})));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (${N}.value === undefined) {
|
|
30
|
+
if (${C} in input) {
|
|
31
|
+
newResult[${C}] = undefined;
|
|
32
|
+
}
|
|
33
|
+
} else {
|
|
34
|
+
newResult[${C}] = ${N}.value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
`):h.write(`
|
|
38
|
+
const ${N}_present = ${C} in input;
|
|
39
|
+
if (${N}.issues.length) {
|
|
40
|
+
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
41
|
+
...iss,
|
|
42
|
+
path: iss.path ? [${C}, ...iss.path] : [${C}]
|
|
43
|
+
})));
|
|
44
|
+
}
|
|
45
|
+
if (!${N}_present && !${N}.issues.length) {
|
|
46
|
+
payload.issues.push({
|
|
47
|
+
code: "invalid_type",
|
|
48
|
+
expected: "nonoptional",
|
|
49
|
+
input: undefined,
|
|
50
|
+
path: [${C}]
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (${N}_present) {
|
|
55
|
+
if (${N}.value === undefined) {
|
|
56
|
+
newResult[${C}] = undefined;
|
|
57
|
+
} else {
|
|
58
|
+
newResult[${C}] = ${N}.value;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
`)}h.write("payload.value = newResult;"),h.write("return payload;");const _=h.compile();return(k,N)=>_(d,k,N)};let i;const a=Ut,l=!eo.jitless,c=l&&zl.value,u=t.catchall;let m;e._zod.parse=(d,h)=>{m??(m=r.value);const f=d.value;return a(f)?l&&c&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(i||(i=o(t.shape)),d=i(d,h),u?va([],f,d,h,m,e):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),d)}});function Eo(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!bt(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>qe(a,r,Ve())))}),t)}const xa=R("$ZodUnion",(e,t)=>{oe.init(e,t),q(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),q(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),q(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),q(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>no(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1;const a=[];for(const l of t.options){const s=l._zod.run({value:r.value,issues:[]},o);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>Eo(l,r,e,o)):Eo(a,r,e,o)}}),Ac=R("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,xa.init(e,t);const n=e._zod.parse;q(e._zod,"propValues",()=>{const o={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[l,s]of Object.entries(a)){o[l]||(o[l]=new Set);for(const c of s)o[l].add(c)}}return o});const r=In(()=>{var a;const o=t.options,i=new Map;for(const l of o){const s=(a=l._zod.propValues)==null?void 0:a[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,l)}}return i});e._zod.parse=(o,i)=>{const a=o.value;if(!Ut(a))return o.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),o;const l=r.value.get(a==null?void 0:a[t.discriminator]);return l?l._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:a,path:[t.discriminator],inst:e}),o)}}),yc=R("$ZodIntersection",(e,t)=>{oe.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,i=t.left._zod.run({value:o,issues:[]},r),a=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Io(n,s,c)):Io(n,i,a)}});function _r(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(wt(e)&&wt(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};for(const i of r){const a=_r(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[r],a=_r(o,i);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Io(e,t,n){const r=new Map;let o;for(const l of t.issues)if(l.code==="unrecognized_keys"){o??(o=l);for(const s of l.keys)r.has(s)||r.set(s,{}),r.get(s).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const s of l.keys)r.has(s)||r.set(s,{}),r.get(s).r=!0;else e.issues.push(l);const i=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&o&&e.issues.push({...o,keys:i}),bt(e))return e;const a=_r(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const Nc=R("$ZodTuple",(e,t)=>{oe.init(e,t);const n=t.items;e._zod.parse=(r,o)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const a=[],l=Po(n,"optin"),s=Po(n,"optout");if(!t.rest){if(i.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),r;i.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}const c=new Array(n.length);for(let u=0;u<n.length;u++){const m=n[u]._zod.run({value:i[u],issues:[]},o);m instanceof Promise?a.push(m.then(d=>{c[u]=d})):c[u]=m}if(t.rest){let u=n.length-1;const m=i.slice(n.length);for(const d of m){u++;const h=t.rest._zod.run({value:d,issues:[]},o);h instanceof Promise?a.push(h.then(f=>Oo(f,r,u))):Oo(h,r,u)}}return a.length?Promise.all(a).then(()=>To(c,r,n,i,s)):To(c,r,n,i,s)}});function Po(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function Oo(e,t,n){e.issues.length&&t.issues.push(...et(n,e.issues)),t.value[n]=e.value}function To(e,t,n,r,o){for(let i=0;i<n.length;i++){const a=e[i],l=i<r.length;if(a.issues.length){if(!l&&i>=o){t.value.length=i;break}t.issues.push(...et(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=r.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}const Rc=R("$ZodRecord",(e,t)=>{oe.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!wt(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const i=[],a=t.keyType._zod.values;if(a){n.value={};const l=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);const u=t.keyType._zod.run({value:c,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(h=>qe(h,r,Ve())),input:c,path:[c],inst:e});continue}const m=u.value,d=t.valueType._zod.run({value:o[c],issues:[]},r);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&n.issues.push(...et(c,h.issues)),n.value[m]=h.value})):(d.issues.length&&n.issues.push(...et(c,d.issues)),n.value[m]=d.value)}let s;for(const c in o)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(o)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&da.test(l)&&s.issues.length){const m=t.keyType._zod.run({value:Number(l),issues:[]},r);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(s=m)}if(s.issues.length){t.mode==="loose"?n.value[l]=o[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(m=>qe(m,r,Ve())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:o[l],issues:[]},r);u instanceof Promise?i.push(u.then(m=>{m.issues.length&&n.issues.push(...et(l,m.issues)),n.value[s.value]=m.value})):(u.issues.length&&n.issues.push(...et(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Ec=R("$ZodEnum",(e,t)=>{oe.init(e,t);const n=na(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>jl.has(typeof o)).map(o=>typeof o=="string"?kt(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const a=o.value;return r.has(a)||o.issues.push({code:"invalid_value",values:n,input:a,inst:e}),o}}),Ic=R("$ZodLiteral",(e,t)=>{if(oe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?kt(r):r?kt(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),Pc=R("$ZodTransform",(e,t)=>{oe.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new ta(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(n.value=a,n.fallback=!0,n));if(o instanceof Promise)throw new St;return n.value=o,n.fallback=!0,n}});function Mo(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Sa=R("$ZodOptional",(e,t)=>{oe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),q(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${no(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=n.value,i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>Mo(a,o)):Mo(i,o)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Oc=R("$ZodExactOptional",(e,t)=>{Sa.init(e,t),q(e._zod,"values",()=>t.innerType._zod.values),q(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Tc=R("$ZodNullable",(e,t)=>{oe.init(e,t),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${no(n.source)}|null)$`):void 0}),q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Mc=R("$ZodDefault",(e,t)=>{oe.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Lo(i,t)):Lo(o,t)}});function Lo(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Lc=R("$ZodPrefault",(e,t)=>{oe.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),zc=R("$ZodNonOptional",(e,t)=>{oe.init(e,t),q(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>zo(i,e)):zo(o,e)}});function zo(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const jc=R("$ZodCatch",(e,t)=>{oe.init(e,t),e._zod.optin="optional",q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>qe(a,r,Ve()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>qe(i,r,Ve()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Bc=R("$ZodPipe",(e,t)=>{oe.init(e,t),q(e._zod,"values",()=>t.in._zod.values),q(e._zod,"optin",()=>t.in._zod.optin),q(e._zod,"optout",()=>t.out._zod.optout),q(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(a=>sn(a,t.in,r)):sn(i,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>sn(i,t.out,r)):sn(o,t.out,r)}});function sn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const Dc=R("$ZodReadonly",(e,t)=>{oe.init(e,t),q(e._zod,"propValues",()=>t.innerType._zod.propValues),q(e._zod,"values",()=>t.innerType._zod.values),q(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),q(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(jo):jo(o)}});function jo(e){return e.value=Object.freeze(e.value),e}const Hc=R("$ZodLazy",(e,t)=>{oe.init(e,t),q(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),q(e._zod,"pattern",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.pattern}),q(e._zod,"propValues",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.propValues}),q(e._zod,"optin",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optin)??void 0}),q(e._zod,"optout",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optout)??void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Fc=R("$ZodCustom",(e,t)=>{ke.init(e,t),oe.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>Bo(i,n,r,e));Bo(o,n,r,e)}});function Bo(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Zt(o))}}var Do;class Gc{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Uc(){return new Gc}(Do=globalThis).__zod_globalRegistry??(Do.__zod_globalRegistry=Uc());const Dt=globalThis.__zod_globalRegistry;function Zc(e,t){return new e({type:"string",...j(t)})}function Wc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...j(t)})}function Ho(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...j(t)})}function Vc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...j(t)})}function qc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(t)})}function Kc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(t)})}function Yc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(t)})}function Jc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...j(t)})}function Xc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...j(t)})}function Qc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(t)})}function eu(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...j(t)})}function tu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(t)})}function nu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...j(t)})}function ru(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...j(t)})}function ou(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(t)})}function iu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(t)})}function au(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(t)})}function lu(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(t)})}function su(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(t)})}function cu(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...j(t)})}function uu(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...j(t)})}function du(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...j(t)})}function hu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...j(t)})}function fu(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(t)})}function gu(e,t){return new e({type:"string",format:"date",check:"string_format",...j(t)})}function mu(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...j(t)})}function pu(e,t){return new e({type:"string",format:"duration",check:"string_format",...j(t)})}function bu(e,t){return new e({type:"number",checks:[],...j(t)})}function vu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...j(t)})}function xu(e,t){return new e({type:"boolean",...j(t)})}function Su(e){return new e({type:"any"})}function _u(e){return new e({type:"unknown"})}function wu(e,t){return new e({type:"never",...j(t)})}function Fo(e,t){return new fa({check:"less_than",...j(t),value:e,inclusive:!1})}function Hn(e,t){return new fa({check:"less_than",...j(t),value:e,inclusive:!0})}function Go(e,t){return new ga({check:"greater_than",...j(t),value:e,inclusive:!1})}function Fn(e,t){return new ga({check:"greater_than",...j(t),value:e,inclusive:!0})}function Uo(e,t){return new Os({check:"multiple_of",...j(t),value:e})}function _a(e,t){return new Ms({check:"max_length",...j(t),maximum:e})}function kn(e,t){return new Ls({check:"min_length",...j(t),minimum:e})}function wa(e,t){return new zs({check:"length_equals",...j(t),length:e})}function ku(e,t){return new js({check:"string_format",format:"regex",...j(t),pattern:e})}function $u(e){return new Bs({check:"string_format",format:"lowercase",...j(e)})}function Cu(e){return new Ds({check:"string_format",format:"uppercase",...j(e)})}function Au(e,t){return new Hs({check:"string_format",format:"includes",...j(t),includes:e})}function yu(e,t){return new Fs({check:"string_format",format:"starts_with",...j(t),prefix:e})}function Nu(e,t){return new Gs({check:"string_format",format:"ends_with",...j(t),suffix:e})}function yt(e){return new Us({check:"overwrite",tx:e})}function Ru(e){return yt(t=>t.normalize(e))}function Eu(){return yt(e=>e.trim())}function Iu(){return yt(e=>e.toLowerCase())}function Pu(){return yt(e=>e.toUpperCase())}function Ou(){return yt(e=>Ll(e))}function Tu(e,t,n){return new e({type:"array",element:t,...j(n)})}function Mu(e,t,n){return new e({type:"custom",check:"custom",fn:t,...j(n)})}function Lu(e,t){const n=zu(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Zt(o,r.value,n._zod.def));else{const i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(Zt(i))}},e(r.value,r)),t);return n}function zu(e,t){const n=new ke({check:"custom",...j(t)});return n._zod.check=e,n}function ka(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Dt,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function de(e,t,n={path:[],schemaPath:[]}){var u,m;var r;const o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const l=(m=(u=e._zod).toJSONSchema)==null?void 0:m.call(u);if(l)a.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{const f=a.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,f,d)}const h=e._zod.parent;h&&(a.ref||(a.ref=h),de(h,t,d),t.seen.get(h).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&we(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function $a(e,t){var a,l,s,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const u of e.seen.entries()){const m=(a=e.metadataRegistry.get(u[0]))==null?void 0:a.id;if(m){const d=r.get(m);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${m}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(m,u[0])}}const o=u=>{var b;const m=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=(b=e.external.registry.get(u[0]))==null?void 0:b.id,S=e.external.uri??(A=>A);if(v)return{ref:S(v)};const _=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=_,{defId:_,ref:`${S("__shared")}#/${m}/${_}`}}if(u[1]===n)return{ref:"#"};const h=`#/${m}/`,f=u[1].schema.id??`__schema${e.counter++}`;return{defId:f,ref:h+f}},i=u=>{if(u[1].schema.$ref)return;const m=u[1],{ref:d,defId:h}=o(u);m.def={...m.schema},h&&(m.defId=h);const f=m.schema;for(const b in f)delete f[b];f.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const m=u[1];if(m.cycle)throw new Error(`Cycle detected: #/${(l=m.cycle)==null?void 0:l.join("/")}/<root>
|
|
63
|
+
|
|
64
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const m=u[1];if(t===u[0]){i(u);continue}if(e.external){const h=(s=e.external.registry.get(u[0]))==null?void 0:s.id;if(t!==u[0]&&h){i(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){i(u);continue}if(m.cycle){i(u);continue}if(m.count>1&&e.reused==="ref"){i(u);continue}}}function Ca(e,t){var l,s,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=m=>{const d=e.seen.get(m);if(d.ref===null)return;const h=d.def??d.schema,f={...h},b=d.ref;if(d.ref=null,b){r(b);const S=e.seen.get(b),_=S.schema;if(_.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(_)):Object.assign(h,_),Object.assign(h,f),m._zod.parent===b)for(const x in h)x==="$ref"||x==="allOf"||x in f||delete h[x];if(_.$ref&&S.def)for(const x in h)x==="$ref"||x==="allOf"||x in S.def&&JSON.stringify(h[x])===JSON.stringify(S.def[x])&&delete h[x]}const v=m._zod.parent;if(v&&v!==b){r(v);const S=e.seen.get(v);if(S!=null&&S.schema.$ref&&(h.$ref=S.schema.$ref,S.def))for(const _ in h)_==="$ref"||_==="allOf"||_ in S.def&&JSON.stringify(h[_])===JSON.stringify(S.def[_])&&delete h[_]}e.override({zodSchema:m,jsonSchema:h,path:d.path??[]})};for(const m of[...e.seen.entries()].reverse())r(m[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const m=(s=e.external.registry.get(t))==null?void 0:s.id;if(!m)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(m)}Object.assign(o,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&o.id===i&&delete o.id;const a=((u=e.external)==null?void 0:u.defs)??{};for(const m of e.seen.entries()){const d=m[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,a[d.defId]=d.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?o.$defs=a:o.definitions=a);try{const m=JSON.parse(JSON.stringify(o));return Object.defineProperty(m,"~standard",{value:{...t["~standard"],jsonSchema:{input:$n(t,"input",e.processors),output:$n(t,"output",e.processors)}},enumerable:!1,writable:!1}),m}catch{throw new Error("Error converting schema to JSON.")}}function we(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return we(r.element,n);if(r.type==="set")return we(r.valueType,n);if(r.type==="lazy")return we(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return we(r.innerType,n);if(r.type==="intersection")return we(r.left,n)||we(r.right,n);if(r.type==="record"||r.type==="map")return we(r.keyType,n)||we(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:we(r.in,n)||we(r.out,n);if(r.type==="object"){for(const o in r.shape)if(we(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(we(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(we(o,n))return!0;return!!(r.rest&&we(r.rest,n))}return!1}const ju=(e,t={})=>n=>{const r=ka({...n,processors:t});return de(e,r),$a(r,e),Ca(r,e)},$n=(e,t,n={})=>r=>{const{libraryOptions:o,target:i}=r??{},a=ka({...o??{},target:i,io:t,processors:n});return de(e,a),$a(a,e),Ca(a,e)},Bu={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Du=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),l&&(o.format=Bu[l]??l,o.format===""&&delete o.format,l==="time"&&delete o.format),c&&(o.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?o.pattern=u[0].source:u.length>1&&(o.allOf=[...u.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},Hu=(e,t,n,r)=>{const o=n,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number";const m=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";m?h?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),d?h?(o.maximum=c,o.exclusiveMaximum=!0):o.exclusiveMaximum=c:typeof a=="number"&&(o.maximum=a),typeof s=="number"&&(o.multipleOf=s)},Fu=(e,t,n,r)=>{n.type="boolean"},Gu=(e,t,n,r)=>{n.not={}},Uu=(e,t,n,r)=>{},Zu=(e,t,n,r)=>{},Wu=(e,t,n,r)=>{const o=e._zod.def,i=na(o.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},Vu=(e,t,n,r)=>{const o=e._zod.def,i=[];for(const a of o.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){const a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},qu=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Ku=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Yu=(e,t,n,r)=>{const o=n,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=de(i.element,t,{...r,path:[...r.path,"items"]})},Ju=(e,t,n,r)=>{var c;const o=n,i=e._zod.def;o.type="object",o.properties={};const a=i.shape;for(const u in a)o.properties[u]=de(a[u],t,{...r,path:[...r.path,"properties",u]});const l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{const m=i.shape[u]._zod;return t.io==="input"?m.optin===void 0:m.optout===void 0}));s.size>0&&(o.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=de(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},Xu=(e,t,n,r)=>{const o=e._zod.def,i=o.inclusive===!1,a=o.options.map((l,s)=>de(l,t,{...r,path:[...r.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=a:n.anyOf=a},Qu=(e,t,n,r)=>{const o=e._zod.def,i=de(o.left,t,{...r,path:[...r.path,"allOf",0]}),a=de(o.right,t,{...r,path:[...r.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];n.allOf=s},ed=(e,t,n,r)=>{const o=n,i=e._zod.def;o.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((d,h)=>de(d,t,{...r,path:[...r.path,a,h]})),c=i.rest?de(i.rest,t,{...r,path:[...r.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=s,c&&(o.items=c)):t.target==="openapi-3.0"?(o.items={anyOf:s},c&&o.items.anyOf.push(c),o.minItems=s.length,c||(o.maxItems=s.length)):(o.items=s,c&&(o.additionalItems=c));const{minimum:u,maximum:m}=e._zod.bag;typeof u=="number"&&(o.minItems=u),typeof m=="number"&&(o.maxItems=m)},td=(e,t,n,r)=>{const o=n,i=e._zod.def;o.type="object";const a=i.keyType,l=a._zod.bag,s=l==null?void 0:l.patterns;if(i.mode==="loose"&&s&&s.size>0){const u=de(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const m of s)o.patternProperties[m.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=de(i.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=de(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const c=a._zod.values;if(c){const u=[...c].filter(m=>typeof m=="string"||typeof m=="number");u.length>0&&(o.required=u)}},nd=(e,t,n,r)=>{const o=e._zod.def,i=de(o.innerType,t,r),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},rd=(e,t,n,r)=>{const o=e._zod.def;de(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType},od=(e,t,n,r)=>{const o=e._zod.def;de(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},id=(e,t,n,r)=>{const o=e._zod.def;de(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},ad=(e,t,n,r)=>{const o=e._zod.def;de(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},ld=(e,t,n,r)=>{const o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?o.out:o.in:o.out;de(a,t,r);const l=t.seen.get(e);l.ref=a},sd=(e,t,n,r)=>{const o=e._zod.def;de(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},Aa=(e,t,n,r)=>{const o=e._zod.def;de(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType},cd=(e,t,n,r)=>{const o=e._zod.innerType;de(o,t,r);const i=t.seen.get(e);i.ref=o},ud=R("ZodISODateTime",(e,t)=>{oc.init(e,t),he.init(e,t)});function dd(e){return fu(ud,e)}const hd=R("ZodISODate",(e,t)=>{ic.init(e,t),he.init(e,t)});function fd(e){return gu(hd,e)}const gd=R("ZodISOTime",(e,t)=>{ac.init(e,t),he.init(e,t)});function md(e){return mu(gd,e)}const pd=R("ZodISODuration",(e,t)=>{lc.init(e,t),he.init(e,t)});function bd(e){return pu(pd,e)}const vd=(e,t)=>{aa.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Yl(e,n)},flatten:{value:n=>Kl(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Sr,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Sr,2)}},isEmpty:{get(){return e.issues.length===0}}})},Re=R("ZodError",vd,{Parent:Error}),xd=oo(Re),Sd=io(Re),_d=Pn(Re),wd=On(Re),kd=Ql(Re),$d=es(Re),Cd=ts(Re),Ad=ns(Re),yd=rs(Re),Nd=os(Re),Rd=is(Re),Ed=as(Re),Zo=new WeakMap;function Yt(e,t,n){const r=Object.getPrototypeOf(e);let o=Zo.get(r);if(o||(o=new Set,Zo.set(r,o)),!o.has(t)){o.add(t);for(const i in n){const a=n[i];Object.defineProperty(r,i,{configurable:!0,enumerable:!1,get(){const l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const le=R("ZodType",(e,t)=>(oe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:$n(e,"input"),output:$n(e,"output")}}),e.toJSONSchema=ju(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>xd(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>_d(e,n,r),e.parseAsync=async(n,r)=>Sd(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>wd(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>kd(e,n,r),e.decode=(n,r)=>$d(e,n,r),e.encodeAsync=async(n,r)=>Cd(e,n,r),e.decodeAsync=async(n,r)=>Ad(e,n,r),e.safeEncode=(n,r)=>yd(e,n,r),e.safeDecode=(n,r)=>Nd(e,n,r),e.safeEncodeAsync=async(n,r)=>Rd(e,n,r),e.safeDecodeAsync=async(n,r)=>Ed(e,n,r),Yt(e,"ZodType",{check(...n){const r=this.def;return this.clone(nt(r,{checks:[...r.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return rt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(yh(n,r))},superRefine(n,r){return this.check(Nh(n,r))},overwrite(n){return this.check(yt(n))},optional(){return Yo(this)},exactOptional(){return hh(this)},nullable(){return Jo(this)},nullish(){return Yo(Jo(this))},nonoptional(n){return vh(this,n)},array(){return Z(this)},or(n){return D([this,n])},and(n){return ah(this,n)},transform(n){return Xo(this,uh(n))},default(n){return mh(this,n)},prefault(n){return bh(this,n)},catch(n){return Sh(this,n)},pipe(n){return Xo(this,n)},readonly(){return kh(this)},describe(n){const r=this.clone();return Dt.add(r,{description:n}),r},meta(...n){if(n.length===0)return Dt.get(this);const r=this.clone();return Dt.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=Dt.get(e))==null?void 0:n.description},configurable:!0}),e)),ya=R("_ZodString",(e,t)=>{ao.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Du(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Yt(e,"_ZodString",{regex(...r){return this.check(ku(...r))},includes(...r){return this.check(Au(...r))},startsWith(...r){return this.check(yu(...r))},endsWith(...r){return this.check(Nu(...r))},min(...r){return this.check(kn(...r))},max(...r){return this.check(_a(...r))},length(...r){return this.check(wa(...r))},nonempty(...r){return this.check(kn(1,...r))},lowercase(r){return this.check($u(r))},uppercase(r){return this.check(Cu(r))},trim(){return this.check(Eu())},normalize(...r){return this.check(Ru(...r))},toLowerCase(){return this.check(Iu())},toUpperCase(){return this.check(Pu())},slugify(){return this.check(Ou())}})}),Id=R("ZodString",(e,t)=>{ao.init(e,t),ya.init(e,t),e.email=n=>e.check(Wc(Pd,n)),e.url=n=>e.check(Jc(Od,n)),e.jwt=n=>e.check(hu(qd,n)),e.emoji=n=>e.check(Xc(Td,n)),e.guid=n=>e.check(Ho(Wo,n)),e.uuid=n=>e.check(Vc(cn,n)),e.uuidv4=n=>e.check(qc(cn,n)),e.uuidv6=n=>e.check(Kc(cn,n)),e.uuidv7=n=>e.check(Yc(cn,n)),e.nanoid=n=>e.check(Qc(Md,n)),e.guid=n=>e.check(Ho(Wo,n)),e.cuid=n=>e.check(eu(Ld,n)),e.cuid2=n=>e.check(tu(zd,n)),e.ulid=n=>e.check(nu(jd,n)),e.base64=n=>e.check(cu(Zd,n)),e.base64url=n=>e.check(uu(Wd,n)),e.xid=n=>e.check(ru(Bd,n)),e.ksuid=n=>e.check(ou(Dd,n)),e.ipv4=n=>e.check(iu(Hd,n)),e.ipv6=n=>e.check(au(Fd,n)),e.cidrv4=n=>e.check(lu(Gd,n)),e.cidrv6=n=>e.check(su(Ud,n)),e.e164=n=>e.check(du(Vd,n)),e.datetime=n=>e.check(dd(n)),e.date=n=>e.check(fd(n)),e.time=n=>e.check(md(n)),e.duration=n=>e.check(bd(n))});function w(e){return Zc(Id,e)}const he=R("ZodStringFormat",(e,t)=>{ue.init(e,t),ya.init(e,t)}),Pd=R("ZodEmail",(e,t)=>{Ks.init(e,t),he.init(e,t)}),Wo=R("ZodGUID",(e,t)=>{Vs.init(e,t),he.init(e,t)}),cn=R("ZodUUID",(e,t)=>{qs.init(e,t),he.init(e,t)}),Od=R("ZodURL",(e,t)=>{Ys.init(e,t),he.init(e,t)}),Td=R("ZodEmoji",(e,t)=>{Js.init(e,t),he.init(e,t)}),Md=R("ZodNanoID",(e,t)=>{Xs.init(e,t),he.init(e,t)}),Ld=R("ZodCUID",(e,t)=>{Qs.init(e,t),he.init(e,t)}),zd=R("ZodCUID2",(e,t)=>{ec.init(e,t),he.init(e,t)}),jd=R("ZodULID",(e,t)=>{tc.init(e,t),he.init(e,t)}),Bd=R("ZodXID",(e,t)=>{nc.init(e,t),he.init(e,t)}),Dd=R("ZodKSUID",(e,t)=>{rc.init(e,t),he.init(e,t)}),Hd=R("ZodIPv4",(e,t)=>{sc.init(e,t),he.init(e,t)}),Fd=R("ZodIPv6",(e,t)=>{cc.init(e,t),he.init(e,t)}),Gd=R("ZodCIDRv4",(e,t)=>{uc.init(e,t),he.init(e,t)}),Ud=R("ZodCIDRv6",(e,t)=>{dc.init(e,t),he.init(e,t)}),Zd=R("ZodBase64",(e,t)=>{hc.init(e,t),he.init(e,t)}),Wd=R("ZodBase64URL",(e,t)=>{gc.init(e,t),he.init(e,t)}),Vd=R("ZodE164",(e,t)=>{mc.init(e,t),he.init(e,t)}),qd=R("ZodJWT",(e,t)=>{bc.init(e,t),he.init(e,t)}),Na=R("ZodNumber",(e,t)=>{pa.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Hu(e,r,o),Yt(e,"ZodNumber",{gt(r,o){return this.check(Go(r,o))},gte(r,o){return this.check(Fn(r,o))},min(r,o){return this.check(Fn(r,o))},lt(r,o){return this.check(Fo(r,o))},lte(r,o){return this.check(Hn(r,o))},max(r,o){return this.check(Hn(r,o))},int(r){return this.check(Vo(r))},safe(r){return this.check(Vo(r))},positive(r){return this.check(Go(0,r))},nonnegative(r){return this.check(Fn(0,r))},negative(r){return this.check(Fo(0,r))},nonpositive(r){return this.check(Hn(0,r))},multipleOf(r,o){return this.check(Uo(r,o))},step(r,o){return this.check(Uo(r,o))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function g(e){return bu(Na,e)}const Kd=R("ZodNumberFormat",(e,t)=>{vc.init(e,t),Na.init(e,t)});function Vo(e){return vu(Kd,e)}const Yd=R("ZodBoolean",(e,t)=>{xc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Fu(e,n,r)});function z(e){return xu(Yd,e)}const Jd=R("ZodAny",(e,t)=>{Sc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Uu()});function Wt(){return Su(Jd)}const Xd=R("ZodUnknown",(e,t)=>{_c.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Zu()});function qo(){return _u(Xd)}const Qd=R("ZodNever",(e,t)=>{wc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gu(e,n,r)});function eh(e){return wu(Qd,e)}const th=R("ZodArray",(e,t)=>{kc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yu(e,n,r,o),e.element=t.element,Yt(e,"ZodArray",{min(n,r){return this.check(kn(n,r))},nonempty(n){return this.check(kn(1,n))},max(n,r){return this.check(_a(n,r))},length(n,r){return this.check(wa(n,r))},unwrap(){return this.element}})});function Z(e,t){return Tu(th,e,t)}const nh=R("ZodObject",(e,t)=>{Cc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ju(e,n,r,o),q(e,"shape",()=>t.shape),Yt(e,"ZodObject",{keyof(){return E(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:qo()})},loose(){return this.clone({...this._zod.def,catchall:qo()})},strict(){return this.clone({...this._zod.def,catchall:eh()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Gl(this,n)},safeExtend(n){return Ul(this,n)},merge(n){return Zl(this,n)},pick(n){return Hl(this,n)},omit(n){return Fl(this,n)},partial(...n){return Wl(Ia,this,n[0])},required(...n){return Vl(Pa,this,n[0])}})});function $(e,t){const n={type:"object",shape:e??{},...j(t)};return new nh(n)}const Ra=R("ZodUnion",(e,t)=>{xa.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xu(e,n,r,o),e.options=t.options});function D(e,t){return new Ra({type:"union",options:e,...j(t)})}const rh=R("ZodDiscriminatedUnion",(e,t)=>{Ra.init(e,t),Ac.init(e,t)});function oh(e,t,n){return new rh({type:"union",options:t,discriminator:e,...j(n)})}const ih=R("ZodIntersection",(e,t)=>{yc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qu(e,n,r,o)});function ah(e,t){return new ih({type:"intersection",left:e,right:t})}const lh=R("ZodTuple",(e,t)=>{Nc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ed(e,n,r,o),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Ea(e,t,n){const r=t instanceof oe,o=r?n:t,i=r?t:null;return new lh({type:"tuple",items:e,rest:i,...j(o)})}const Ko=R("ZodRecord",(e,t)=>{Rc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>td(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function $t(e,t,n){return!t||!t._zod?new Ko({type:"record",keyType:w(),valueType:e,...j(t)}):new Ko({type:"record",keyType:e,valueType:t,...j(n)})}const wr=R("ZodEnum",(e,t)=>{Ec.init(e,t),le.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Wu(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const i={};for(const a of r)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new wr({...t,checks:[],...j(o),entries:i})},e.exclude=(r,o)=>{const i={...t.entries};for(const a of r)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new wr({...t,checks:[],...j(o),entries:i})}});function E(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new wr({type:"enum",entries:n,...j(t)})}const sh=R("ZodLiteral",(e,t)=>{Ic.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vu(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ee(e,t){return new sh({type:"literal",values:Array.isArray(e)?e:[e],...j(t)})}const ch=R("ZodTransform",(e,t)=>{Pc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ku(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new ta(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(Zt(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(Zt(a))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}});function uh(e){return new ch({type:"transform",transform:e})}const Ia=R("ZodOptional",(e,t)=>{Sa.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Aa(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Yo(e){return new Ia({type:"optional",innerType:e})}const dh=R("ZodExactOptional",(e,t)=>{Oc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Aa(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function hh(e){return new dh({type:"optional",innerType:e})}const fh=R("ZodNullable",(e,t)=>{Tc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>nd(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Jo(e){return new fh({type:"nullable",innerType:e})}const gh=R("ZodDefault",(e,t)=>{Mc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>od(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mh(e,t){return new gh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():oa(t)}})}const ph=R("ZodPrefault",(e,t)=>{Lc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>id(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function bh(e,t){return new ph({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():oa(t)}})}const Pa=R("ZodNonOptional",(e,t)=>{zc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rd(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function vh(e,t){return new Pa({type:"nonoptional",innerType:e,...j(t)})}const xh=R("ZodCatch",(e,t)=>{jc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ad(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Sh(e,t){return new xh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const _h=R("ZodPipe",(e,t)=>{Bc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ld(e,n,r,o),e.in=t.in,e.out=t.out});function Xo(e,t){return new _h({type:"pipe",in:e,out:t})}const wh=R("ZodReadonly",(e,t)=>{Dc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sd(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function kh(e){return new wh({type:"readonly",innerType:e})}const $h=R("ZodLazy",(e,t)=>{Hc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cd(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function Ch(e){return new $h({type:"lazy",getter:e})}const Ah=R("ZodCustom",(e,t)=>{Fc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qu(e,n)});function yh(e,t={}){return Mu(Ah,e,t)}function Nh(e,t){return Lu(e,t)}var Rh=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Eh=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Qo=$({style:$({textAlign:E(["left","center","right"]).optional().nullable(),padding:Rh}).optional().nullable(),props:$({size:g().gt(0).optional().nullable(),shape:E(["circle","square","rounded"]).optional().nullable(),imageUrl:w().optional().nullable(),alt:w().optional().nullable()}).optional().nullable()});function Ih(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var un={size:64,imageUrl:"",alt:"",shape:"square"};function ei({style:e,props:t}){var n,r,o,i,a;const l=(n=t==null?void 0:t.size)!=null?n:un.size,s=(r=t==null?void 0:t.imageUrl)!=null?r:un.imageUrl,c=(o=t==null?void 0:t.alt)!=null?o:un.alt,u=(i=t==null?void 0:t.shape)!=null?i:un.shape,m={textAlign:(a=e==null?void 0:e.textAlign)!=null?a:void 0,padding:Eh(e==null?void 0:e.padding)};return G.createElement("div",{style:m},G.createElement("img",{alt:c,src:s,height:l,width:l,style:{outline:"none",border:"none",textDecoration:"none",objectFit:"cover",height:l,width:l,maxWidth:"100%",display:"inline-block",verticalAlign:"middle",textAlign:"center",borderRadius:Ih(u,l)}}))}const Ht={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},lo=Object.values(Ht);function Oa(){return"desktop"}const Ee=1024,Me=640,Ge=`@media (max-width: ${Ee}px)`,ye=`@media (max-width: ${Me}px)`,Ta=`@media (min-width: ${Me+1}px) and (max-width: ${Ee}px)`,Ph=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Oh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Th=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Mh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Lh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},zh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},jh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Bh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Dh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Hh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Fh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Gh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Uh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Zh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Wh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Vh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},qh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Kh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:p.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function Je(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return p.jsx(Ph,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return p.jsx(Lh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return p.jsx(Hh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return p.jsx(zh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return p.jsx(Oh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return p.jsx(Th,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return p.jsx(Mh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return p.jsx(jh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return p.jsx(Bh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return p.jsx(Dh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return p.jsx(Uh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return p.jsx(Wh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return p.jsx(qh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return p.jsx(Fh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return p.jsx(Zh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return p.jsx(Vh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return p.jsx(Kh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return p.jsx(Gh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const Yh=E(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Gn(e){if(!e)return"inherit";switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}return"inherit"}const Jh=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Xh=w().regex(/^rgba?\([^\)]+\)$/i),Qh=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ef=ee("transparent"),mt=D([Jh,Xh,Qh,ef]).nullable().optional(),tf=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),nf=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),rf=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),of=D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),af=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,lf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,sf=$({style:$({backgroundColor:mt,fontSize:g().min(0).optional().nullable(),fontFamily:Yh,fontWeight:E(["bold","normal",...lo]).optional().nullable(),textAlign:E(["left","center","right"]).optional().nullable(),buttonTextAlign:E(["left","center","right"]).optional().nullable(),padding:tf,margin:nf}).optional().nullable(),props:$({buttonBackground:mt,hoverBackground:mt,hoverTextColor:mt,borderRadius:of,borderWidth:rf,borderColor:mt,buttonTextColor:mt,fullWidth:z().optional().nullable(),widthType:E(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:E(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:E(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:E(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),size:E(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:E(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:E(["x-small","small","large","medium"]).optional().nullable(),text:w().optional().nullable(),url:w().optional().nullable(),action:E(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:z().optional().nullable(),customAction:w().optional().nullable(),actionPayload:$t(w(),Wt()).optional().nullable(),iconEnabled:z().optional().nullable(),iconName:w().optional().nullable(),iconAlignment:E(["left","right"]).optional().nullable(),ariaLabel:w().optional().nullable(),goToStep:w().optional().nullable(),postMessageEvent:w().optional().nullable()}).optional().nullable()});function ti(e){switch(e){case"x-small":return[4,8];case"small":return[8,12];case"large":return[16,32];case"medium":default:return[12,20]}}const me={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",buttonTextColor:"",buttonBackground:"",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:""};function cf({style:e,props:t}){const r=`bh-${G.useId().replace(/:/g,"")}`,o=(t==null?void 0:t.text)??me.text,i=(t==null?void 0:t.url)??me.url,a=(t==null?void 0:t.fullWidth)??me.fullWidth,l=(t==null?void 0:t.widthType)??me.widthType,s=(t==null?void 0:t.width)??me.width,c=(t==null?void 0:t.widthUnit)??me.widthUnit,u=(t==null?void 0:t.widthTablet)??null,m=(t==null?void 0:t.widthMobile)??null,d=u??s,h=m??d,f=(t==null?void 0:t.widthTypeTablet)??l,b=(t==null?void 0:t.widthTypeMobile)??f,v=(t==null?void 0:t.size)??me.size,S=(t==null?void 0:t.sizeTablet)??v,_=(t==null?void 0:t.sizeMobile)??S,A=l,x=s,k=(t==null?void 0:t.buttonTextColor)??me.buttonTextColor,N=(t==null?void 0:t.buttonBackground)??me.buttonBackground,C=(t==null?void 0:t.iconEnabled)??me.iconEnabled,y=(t==null?void 0:t.iconName)??me.iconName,I=(t==null?void 0:t.iconAlignment)??me.iconAlignment,T=(t==null?void 0:t.ariaLabel)??null,M=typeof o=="string"&&o.trim().length>0,L=T&&T.trim().length>0?T:!M&&C&&y?y:void 0,F=(t==null?void 0:t.action)??me.action,P=(t==null?void 0:t.openInNewTab)??me.openInNewTab,B=((t==null?void 0:t.customAction)??me.customAction)||F,Q=(t==null?void 0:t.actionPayload)??me.actionPayload,ne=(t==null?void 0:t.goToStep)??me.goToStep,te=(t==null?void 0:t.postMessageEvent)??me.postMessageEvent,ie=Q||(B==="goToStep"?{goToStep:ne||""}:null)||(B==="postMessageEvent"?{postMessageEvent:te||""}:null),ce=ie?JSON.stringify(ie):void 0,ve=(t==null?void 0:t.borderRadius)??me.borderRadius,Y=(t==null?void 0:t.borderWidth)??me.borderWidth,ae=(t==null?void 0:t.borderColor)??me.borderColor,xe=(t==null?void 0:t.hoverBackground)??null,ge=(t==null?void 0:t.hoverTextColor)??null,fe=ti(v),U=_e=>typeof _e=="number"?`${_e}px`:`${_e.topLeft}px ${_e.topRight}px ${_e.bottomRight}px ${_e.bottomLeft}px`,J=(_e,Ye)=>{if(typeof _e=="number")return`${Math.max(0,_e-Ye)}px`;const Bn=Math.max(0,(_e.topLeft||0)-Ye),Dn=Math.max(0,(_e.topRight||0)-Ye),ft=Math.max(0,(_e.bottomRight||0)-Ye),gt=Math.max(0,(_e.bottomLeft||0)-Ye);return`${Bn}px ${Dn}px ${ft}px ${gt}px`},X=ae&&(ae.includes("linear-gradient")||ae.includes("radial-gradient")||ae.includes("repeating-linear-gradient")),re=Y&&((Y.top??0)>0||(Y.right??0)>0||(Y.bottom??0)>0||(Y.left??0)>0),K={top:(Y==null?void 0:Y.top)??0,right:(Y==null?void 0:Y.right)??0,bottom:(Y==null?void 0:Y.bottom)??0,left:(Y==null?void 0:Y.left)??0},Ce=(()=>{if(a)return"100%";switch(A){case"fill":return"100%";case"fixed":return`${x}${c}`;case"fit":default:return"auto"}})(),Le=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",ze=Le==="center"?"center":Le==="right"?"flex-end":"flex-start",it=()=>!ae||ae==="transparent"||!re?{border:"none"}:X?{borderTop:`${K.top}px solid transparent`,borderRight:`${K.right}px solid transparent`,borderBottom:`${K.bottom}px solid transparent`,borderLeft:`${K.left}px solid transparent`,borderImage:`${ae} `,borderRadius:"0px"}:{borderTop:`${K.top}px solid ${ae}`,borderRight:`${K.right}px solid ${ae}`,borderBottom:`${K.bottom}px solid ${ae}`,borderLeft:`${K.left}px solid ${ae}`},V=N&&(N.includes("linear-gradient")||N.includes("radial-gradient")||N.includes("repeating-linear-gradient")),H=k&&(k.includes("linear-gradient")||k.includes("radial-gradient")||k.includes("repeating-linear-gradient")),Se=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),Ae={backgroundColor:Se?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:Se?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:af(e==null?void 0:e.padding),margin:lf(e==null?void 0:e.margin)},dt=it(),ht=H?{backgroundImage:k,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:k||void 0},nn=H?"transparent":V?void 0:N,zn=H?void 0:V?N:void 0,Ue=(e==null?void 0:e.fontSize)??16,jn=`${Ue}px`,So={fontSize:jn,fontFamily:Gn(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??Ht.REGULAR,backgroundColor:nn,backgroundImage:zn,borderRadius:X?"0px":U(ve),...dt,display:Ce==="100%"?"block":"inline-block",width:Ce,padding:`${fe[0]}px ${fe[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:ze},Il=X&&re?p.jsx("div",{style:{display:Ce==="100%"?"block":"inline-block",padding:`${K.top}px ${K.right}px ${K.bottom}px ${K.left}px`,background:ae,borderRadius:U(ve),width:Ce,boxSizing:"border-box"},children:p.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:J(ve,Math.max(K.top,K.right,K.bottom,K.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??Ht.REGULAR,fontFamily:Gn(e==null?void 0:e.fontFamily),backgroundImage:zn??(V?N:"#fffff"),backgroundColor:nn??(V?"#ffffff":N),textAlign:Le,textDecoration:"none",fontSize:jn,padding:`${fe[0]}px ${fe[1]}px`,boxSizing:"border-box"},"data-action":B,"data-action-payload":ce,"data-goto-step":B==="goToStep"&&ne?ne:void 0,"data-post-message-event":B==="postMessageEvent"&&te?te:void 0,type:"button","aria-label":L,children:[C&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:Je(y,{strokeColor:H?void 0:k,fontSize:Ue})}):null,p.jsx("span",{style:{...ht,pointerEvents:"none"},"data-action":B,children:o}),C&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:Je(y,{strokeColor:H?void 0:k,fontSize:Ue})}):null]})}):p.jsxs("button",{style:{cursor:"pointer",...dt,borderRadius:U(ve),width:Ce,fontWeight:(e==null?void 0:e.fontWeight)??Ht.REGULAR,fontFamily:Gn(e==null?void 0:e.fontFamily),backgroundColor:nn??(V?"":N),backgroundImage:zn??(V?N:""),textAlign:Le,textDecoration:"none",fontSize:jn,padding:`${fe[0]}px ${fe[1]}px`,boxSizing:"border-box"},"data-action":B,"data-action-payload":ce,"data-goto-step":B==="goToStep"&&ne?ne:void 0,"data-post-message-event":B==="postMessageEvent"&&te?te:void 0,type:"button","aria-label":L,children:[C&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:Je(y,{strokeColor:H?void 0:k,fontSize:Ue})}):null,p.jsx("span",{style:{...ht,pointerEvents:"none"},"data-action":B,children:o}),C&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:Je(y,{strokeColor:H?void 0:k,fontSize:Ue})}):null]}),rn=[];xe&&rn.push(`background-color: ${xe} !important; background-image: none !important;`),ge&&rn.push(`color: ${ge} !important;`);const on=rn.length>0?`#${r} a:hover, #${r} button:hover { ${rn.join(" ")} transition: background-color 150ms ease, color 150ms ease; } #${r} a:hover span, #${r} button:hover span { ${ge?`color: ${ge} !important; -webkit-text-fill-color: ${ge} !important;`:""} }`:null,_o=(_e,Ye,Bn,Dn)=>{const ft=[],gt=a||Ye==="fill"?"100%":Ye==="fixed"?`${Bn}${c}`:"auto";ft.push(`width: ${gt} !important;`,"max-width: 100% !important;"),ft.push(`display: ${gt==="100%"?"block":"inline-block"} !important;`);const[$o,Ol]=ti(Dn);return ft.push(`padding: ${$o}px ${Ol}px !important;`),`${_e} { #${r} a, #${r} button { ${ft.join(" ")} } #${r} > div { width: ${gt} !important; max-width: 100% !important; display: ${gt==="100%"?"block":"inline-block"} !important; } }`},wo=f!==l||S!==v||f==="fixed"&&d!==s,ko=b!==l||_!==v||b==="fixed"&&h!==s,an=wo||ko?[wo?_o(Ge,f,d,S):"",ko?_o(ye,b,h,_):""].filter(Boolean).join(`
|
|
65
|
+
`):null;if(F!=="link")return p.jsxs("div",{id:r,className:"button-block",style:Ae,children:[on&&p.jsx("style",{children:on}),an&&p.jsx("style",{children:an}),Il]});const Pl=X&&re?p.jsx("div",{style:{display:Ce==="100%"?"block":"inline-block",padding:`${K.top}px ${K.right}px ${K.bottom}px ${K.left}px`,background:ae,borderRadius:U(ve),width:Ce,boxSizing:"border-box"},children:p.jsxs("a",{href:i,style:{...So,border:"none",borderRadius:J(ve,Math.max(K.top,K.right,K.bottom,K.left)),width:"100%",display:"inline-flex",alignItems:"center",justifyContent:ze},target:P?"_blank":void 0,rel:P?"noopener noreferrer":void 0,"aria-label":L,children:[C&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:Je(y,{strokeColor:H?void 0:k,fontSize:Ue})}):null,p.jsx("span",{style:{...ht,pointerEvents:"none"},children:o}),C&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:Je(y,{strokeColor:H?void 0:k,fontSize:Ue})}):null]})}):p.jsxs("a",{href:i,style:{...So,borderRadius:U(ve),display:"inline-flex",alignItems:"center",justifyContent:ze},target:P?"_blank":void 0,rel:P?"noopener noreferrer":void 0,"aria-label":L,children:[C&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:Je(y,{strokeColor:H?void 0:k,fontSize:Ue})}):null,p.jsx("span",{style:{...ht,pointerEvents:"none"},children:o}),C&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:Je(y,{strokeColor:H?void 0:k,fontSize:Ue})}):null]});return p.jsxs("div",{id:r,className:"button-block",style:Ae,children:[on&&p.jsx("style",{children:on}),an&&p.jsx("style",{children:an}),Pl]})}const uf=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),df=w().regex(/^rgba?\([^\)]+\)$/i),hf=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ff=ee("transparent"),ni=D([uf,df,hf,ff]).nullable().optional(),gf=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),mf=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),pf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,bf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,vf=$({style:$({backgroundColor:ni,padding:gf,margin:mf}).optional().nullable(),props:$({lineColor:ni,lineHeight:g().optional().nullable()}).optional().nullable()}),ri={lineHeight:1,lineColor:"#333333"};function xf({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??ri.lineHeight,r=(t==null?void 0:t.lineColor)??ri.lineColor,o={padding:pf(e==null?void 0:e.padding),margin:bf(e==null?void 0:e.margin),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,"--ahd-divider-thickness":`${n}px`};return p.jsx("div",{className:"divider-block",style:o,children:p.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:r,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const Sf=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),_f=w().regex(/^rgba?\([^\)]+\)$/i),wf=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),kf=ee("transparent"),Un=D([Sf,_f,wf,kf]).nullable().optional(),$f=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Cf=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Af=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,yf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Nf=E(["inherit","MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Rf(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const Ef=$({props:$({text:w().optional().nullable(),level:E(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:E(["text","link"]).optional().nullable(),url:w().optional().nullable(),openInNewTab:z().optional().nullable()}).optional().nullable(),style:$({color:Un,textColor:Un,backgroundColor:Un,fontFamily:Nf,fontSize:g().optional().nullable(),fontWeight:E(["bold","normal",...lo]).optional().nullable(),fontStyle:E(["italic","normal"]).optional().nullable(),textDecoration:E(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:E(["left","center","right"]).optional().nullable(),padding:$f,margin:Cf}).optional().nullable()}),It={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function If({props:e,style:t}){const n=(e==null?void 0:e.level)??It.level,r=(e==null?void 0:e.text)??It.text,o=(e==null?void 0:e.linkType)??It.linkType,i=(e==null?void 0:e.url)??It.url,a=(e==null?void 0:e.openInNewTab)??It.openInNewTab,l=o==="link"&&i,s=(t==null?void 0:t.fontSize)??Pf(n),c=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),u=c&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(c),m={fontWeight:(t==null?void 0:t.fontWeight)??Ht.REGULAR,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:(t==null?void 0:t.textDecoration)??"none",margin:0,fontFamily:Rf(t==null?void 0:t.fontFamily),fontSize:s},d=u?{backgroundImage:c,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:c??void 0},h=(t==null?void 0:t.backgroundColor)??void 0,f=typeof h=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(h),b={padding:Af(t==null?void 0:t.padding),margin:yf(t==null?void 0:t.margin),display:"block",width:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...f?{backgroundImage:h,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:h}},v=n,S=p.jsx(v,{className:"heading-block",style:m,children:p.jsx("span",{style:d,children:r})});return p.jsx("div",{className:"heading-block-wrapper",style:b,children:l?p.jsx("a",{href:i,target:a?"_blank":void 0,rel:a?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!u&&c?c:void 0},children:S}):S})}function Pf(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 20;case"h4":return 18;case"h5":return 16;case"h6":return 14}}var Ma="comm",La="rule",za="decl",Of="@import",Tf="@namespace",Mf="@keyframes",Lf="@layer",zf=Math.abs,Ft=String.fromCharCode;function ja(e){return e.trim()}function kr(e,t,n){return e.replace(t,n)}function _t(e,t){return e.charCodeAt(t)|0}function Ct(e,t,n){return e.slice(t,n)}function Fe(e){return e.length}function jf(e){return e.length}function dn(e,t){return t.push(e),e}var Mn=1,At=1,Ba=0,Ne=0,be=0,Nt="";function so(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Mn,column:At,length:a,return:"",siblings:l}}function Bf(){return be}function Df(){return be=Ne>0?_t(Nt,--Ne):0,At--,be===10&&(At=1,Mn--),be}function Te(){return be=Ne<Ba?_t(Nt,Ne++):0,At++,be===10&&(At=1,Mn++),be}function tt(){return _t(Nt,Ne)}function bn(){return Ne}function Ln(e,t){return Ct(Nt,e,t)}function Vt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Hf(e){return Mn=At=1,Ba=Fe(Nt=e),Ne=0,[]}function Ff(e){return Nt="",e}function Zn(e){return ja(Ln(Ne-1,$r(e===91?e+2:e===40?e+1:e)))}function Gf(e){for(;(be=tt())&&be<33;)Te();return Vt(e)>2||Vt(be)>3?"":" "}function Uf(e,t){for(;--t&&Te()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Ln(e,bn()+(t<6&&tt()==32&&Te()==32))}function $r(e){for(;Te();)switch(be){case e:return Ne;case 34:case 39:e!==34&&e!==39&&$r(be);break;case 40:e===41&&$r(e);break;case 92:Te();break}return Ne}function Zf(e,t){for(;Te()&&e+be!==57;)if(e+be===84&&tt()===47)break;return"/*"+Ln(t,Ne-1)+"*"+Ft(e===47?e:Te())}function Wf(e){for(;!Vt(tt());)Te();return Ln(e,Ne)}function Vf(e){return Ff(vn("",null,null,null,[""],e=Hf(e),0,[0],e))}function vn(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,m=a,d=0,h=0,f=0,b=1,v=1,S=1,_=0,A=0,x="",k=o,N=i,C=r,y=x;v;)switch(f=A,A=Te()){case 40:f!=108&&_t(y,m-1)==58?(_++,y+="("):y+=Zn(A);break;case 41:_--,y+=")";break;case 34:case 39:case 91:y+=Zn(A);break;case 9:case 10:case 13:case 32:if(_>0){y+=Ft(A);break}y+=Gf(f);break;case 92:y+=Uf(bn()-1,7);continue;case 47:switch(tt()){case 42:case 47:dn(qf(Zf(Te(),bn()),t,n,s),s),(Vt(f||1)==5||Vt(tt()||1)==5)&&Fe(y)&&Ct(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*b:l[c++]=Fe(y)*S;case 125*b:case 59:case 0:if(_>0&&A){y+=Ft(A);break}switch(A){case 0:case 125:v=0;case 59+u:S==-1&&(y=kr(y,/\f/g,"")),h>0&&(Fe(y)-m||b===0)&&dn(h>32?ii(y+";",r,n,m-1,s):ii(kr(y," ","")+";",r,n,m-2,s),s);break;case 59:y+=";";default:if(dn(C=oi(y,t,n,c,u,o,l,x,k=[],N=[],m,i),i),A===123)if(u===0)vn(y,t,C,C,k,i,m,l,N);else{switch(d){case 99:if(_t(y,3)===110)break;case 108:if(_t(y,2)===97)break;default:u=0;case 100:case 109:case 115:}u?vn(e,C,C,r&&dn(oi(e,C,C,0,0,o,l,x,o,k=[],m,N),N),o,N,m,l,r?k:N):vn(y,C,C,C,[""],N,0,l,N)}}c=u=h=0,b=S=1,x=y="",m=a;break;case 58:m=1+Fe(y),h=f;default:if(b<1){if(A==123)--b;else if(A==125&&b++==0&&Df()==125)continue}switch(y+=Ft(A),A*b){case 38:S=u>0?1:(y+="\f",-1);break;case 44:if(_>0)break;l[c++]=(Fe(y)-1)*S,S=1;break;case 64:tt()===45&&(y+=Zn(Te())),d=tt(),u=m=Fe(x=y+=Wf(bn())),A++;break;case 45:f===45&&Fe(y)==2&&(b=0)}}return i}function oi(e,t,n,r,o,i,a,l,s,c,u,m){for(var d=o-1,h=o===0?i:[""],f=jf(h),b=0,v=0,S=0;b<r;++b)for(var _=0,A=Ct(e,d+1,d=zf(v=a[b])),x=e;_<f;++_)(x=ja(v>0?h[_]+" "+A:kr(A,/&\f/g,h[_])))&&(s[S++]=x);return so(e,t,n,o===0?La:l,s,c,u,m)}function qf(e,t,n,r){return so(e,t,n,Ma,Ft(Bf()),Ct(e,2,-2),0,r)}function ii(e,t,n,r,o){return so(e,t,n,za,Ct(e,0,r),Ct(e,r+1,-1),r,o)}function Cr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Kf(e,t,n,r){switch(e.type){case Lf:if(e.children.length)break;case Of:case Tf:case za:return e.return=e.return||e.value;case Ma:return"";case Mf:return e.return=e.value+"{"+Cr(e.children,r)+"}";case La:if(!Fe(e.value=e.props.join(",")))return""}return Fe(n=Cr(e.children,r))?e.return=e.value+"{"+n+"}":""}const Yf=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Jf=w().regex(/^rgba?\([^\)]+\)$/i),Xf=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Qf=ee("transparent"),ai=D([Yf,Jf,Xf,Qf]).nullable().optional(),eg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ng=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rg=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,og=E(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function ig(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const ag=$({style:$({color:ai,backgroundColor:ai,fontFamily:og,fontSize:g().min(0).optional().nullable(),textAlign:E(["left","right","center"]).optional().nullable(),padding:eg,margin:tg}).optional().nullable(),props:$({contents:w().optional().nullable()}).optional().nullable()}),lg=/<style[^>]*>([\s\S]*?)<\/style>/gi;function sg(e,t){let n="";const r=e.replace(lg,(i,a)=>(n+=a,""));if(!n.trim())return{markup:r,css:""};const o=Cr(Vf(`[${t}]{${n}}`),Kf);return{markup:r,css:o}}function cg({style:e,props:t}){const n=t==null?void 0:t.contents,[r,o]=G.useState(!1),a=`data-html-scope-${G.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=G.useMemo(()=>n?sg(n,a):{markup:"",css:""},[n,a]),c={color:(e==null?void 0:e.color)??void 0,backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,fontFamily:ig(e==null?void 0:e.fontFamily),fontSize:(e==null?void 0:e.fontSize)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:ng(e==null?void 0:e.padding),margin:rg(e==null?void 0:e.margin)},u=G.useRef(null);G.useEffect(()=>{const f=u.current;if(!f)return;f.querySelectorAll("iframe").forEach(v=>{try{v.style.pointerEvents=r?"auto":"none"}catch{}})},[n,r]);const m=f=>{r||o(!0)},d=()=>{o(!1)};if(!n)return p.jsx("div",{ref:u,className:"html-block",style:c});const h=s?`<style>${s}</style>${l}`:l;return p.jsx("div",{ref:u,className:"html-block",style:c,onClick:m,onBlur:d,tabIndex:0,[a]:"",dangerouslySetInnerHTML:{__html:h}})}const ug=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),dg=w().regex(/^rgba?\([^\)]+\)$/i),hg=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),fg=ee("transparent"),gg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),mg=D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Wn=D([ug,dg,hg,fg]).nullable().optional(),pg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),bg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function vg(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function xg(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const Sg=$({style:$({padding:gg,backgroundColor:Wn.default(null),textAlign:E(["center","left","right"]).optional().nullable()}).optional().nullable(),props:$({width:g().optional().nullable(),widthUnit:E(["px","%"]).optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),height:g().optional().nullable(),heightTablet:g().positive().optional().nullable(),heightMobile:g().positive().optional().nullable(),widthType:E(["fixed","fill","fit"]).optional().nullable(),url:w().optional().nullable(),urlTablet:w().optional().nullable(),urlMobile:w().optional().nullable(),alt:w().optional().nullable(),decorative:z().optional().nullable(),linkHref:w().optional().nullable(),contentAlignment:E(["top","middle","bottom"]).optional().nullable(),borderRadius:mg,borderColor:Wn.default(null),borderWidth:pg,rotation:g().min(0).max(360).optional().nullable(),rotationTablet:g().min(0).max(360).optional().nullable(),rotationMobile:g().min(0).max(360).optional().nullable(),iconName:w().optional().nullable(),iconFillColor:Wn.default(null)}).optional().nullable()}),$e={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,linkHref:null,contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,rotation:0};let _g=0;function wg({style:e,props:t}){const n=G.useMemo(()=>`ahd-img-${++_g}`,[]),r=(e==null?void 0:e.textAlign)??void 0,o=r==="center"?"center":r==="right"?"flex-end":"flex-start",i={padding:bg(e==null?void 0:e.padding),...vg(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:o,width:"100%",boxSizing:"border-box"},a=(t==null?void 0:t.linkHref)??$e.linkHref,l=(t==null?void 0:t.widthType)??$e.widthType,s=(t==null?void 0:t.width)??$e.width,c=(t==null?void 0:t.widthUnit)??$e.widthUnit,u=(t==null?void 0:t.widthTablet)??null,m=(t==null?void 0:t.widthMobile)??null,d=u??s,h=m??d,f=(t==null?void 0:t.height)??$e.height,b=(t==null?void 0:t.heightTablet)??null,v=(t==null?void 0:t.heightMobile)??null,S=b??f,_=v??S,A=f,x=(t==null?void 0:t.url)??$e.url,k=(t==null?void 0:t.urlTablet)??null,N=(t==null?void 0:t.urlMobile)??null,C=!a&&((t==null?void 0:t.decorative)??$e.decorative),y=C?"":(t==null?void 0:t.alt)??$e.alt,I=C?{role:"presentation","aria-hidden":!0}:{},T=(t==null?void 0:t.contentAlignment)??$e.contentAlignment,M=(t==null?void 0:t.borderRadius)??$e.borderRadius,L=(t==null?void 0:t.borderColor)??$e.borderColor,F=(t==null?void 0:t.borderWidth)??$e.borderWidth,P=(t==null?void 0:t.rotation)??$e.rotation,O=(t==null?void 0:t.rotationTablet)??null,B=(t==null?void 0:t.rotationMobile)??null,Q=O??P,ne=B??Q,te=V=>{const H=V*Math.PI/180,Se=V%180!==0?1/(Math.abs(Math.cos(H))+Math.abs(Math.sin(H))):1;return`rotate(${V}deg) scale(${Se})`},ie=P,ce=ie?{transform:te(ie),transformOrigin:"center"}:{},Y=O!=null||B!=null?`
|
|
66
|
+
${Ge} { .${n} img, .${n} > div { transform: ${te(Q)} !important; transform-origin: center !important; } }
|
|
67
|
+
${ye} { .${n} img, .${n} > div { transform: ${te(ne)} !important; transform-origin: center !important; } }
|
|
68
|
+
`.trim():null,ae=xg(L,F),xe=V=>typeof V=="number"?`${V}px`:`${V.topLeft}px ${V.topRight}px ${V.bottomRight}px ${V.bottomLeft}px`,ge=(V,H)=>{const Se=Math.max((H==null?void 0:H.top)||0,(H==null?void 0:H.right)||0,(H==null?void 0:H.bottom)||0,(H==null?void 0:H.left)||0);if(typeof V=="number")return`${Math.max(0,V-Se)}px`;const Ae=Math.max(0,(V.topLeft||0)-Se),dt=Math.max(0,(V.topRight||0)-Se),Et=Math.max(0,(V.bottomRight||0)-Se),ht=Math.max(0,(V.bottomLeft||0)-Se);return`${Ae}px ${dt}px ${Et}px ${ht}px`},U=(()=>{switch(l){case"fill":return"100%";case"fixed":return s;case"fit":default:return}})(),J=l==="fixed"?`${s}${c}`:void 0,X=x,re=l==="fixed"?`
|
|
69
|
+
${Ge} { .${n} img { width: ${d}${c} !important; max-width: 100% !important; } }
|
|
70
|
+
${ye} { .${n} img { width: ${h}${c} !important; max-width: 100% !important; } }
|
|
71
|
+
`.trim():null,K=b!=null||v!=null?`
|
|
72
|
+
${Ge} { .${n} img { height: ${S?`${S}px`:"auto"} !important; } }
|
|
73
|
+
${ye} { .${n} img { height: ${_?`${_}px`:"auto"} !important; } }
|
|
74
|
+
`.trim():null,W=[re,K,Y].filter(Boolean).join(`
|
|
75
|
+
`)||null,Ce=L&&(L.includes("linear-gradient")||L.includes("radial-gradient")||L.includes("repeating-linear-gradient")),Le=(N||k)&&p.jsxs(p.Fragment,{children:[N&&p.jsx("source",{media:ye.replace("@media ",""),srcSet:N}),(k??N)&&p.jsx("source",{media:Ge.replace("@media ",""),srcSet:k??N??x})]}),ze=p.jsxs("picture",{children:[Le,p.jsx("img",{alt:y,...I,src:X,width:typeof U=="number"&&c==="px"?U:void 0,height:A!==null?A:void 0,style:{width:J??(U==="100%"?"100%":typeof U=="number"?`${U}${c}`:"auto"),height:A?`${A}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:T,display:l==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:M?xe(M):void 0}})]}),it=Ce?p.jsx("div",{style:{borderRadius:M?xe(M):void 0,...ae,...ce},children:p.jsxs("picture",{children:[Le,p.jsx("img",{alt:y,...I,src:X,width:typeof U=="number"&&c==="px"?U:void 0,height:A!==null?A:void 0,style:{width:"100%",height:A?`${A}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:T,display:"block",maxWidth:J??(typeof U=="number"?`${U}${c}`:"auto"),boxSizing:"border-box",borderRadius:M?ge(M,F):void 0}})]})}):L?p.jsx("div",{style:{borderRadius:M?xe(M):void 0,...ae,...ce},children:ze}):G.cloneElement(ze,{children:G.Children.map(ze.props.children,V=>(V==null?void 0:V.type)==="img"?G.cloneElement(V,{style:{...V.props.style,...ce}}):V)});return a?p.jsxs("div",{className:`image-block ${n}`,style:i,children:[W&&p.jsx("style",{dangerouslySetInnerHTML:{__html:W}}),p.jsx("a",{href:a,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:it})]}):p.jsxs("div",{className:`image-block ${n}`,style:i,children:[W&&p.jsx("style",{dangerouslySetInnerHTML:{__html:W}}),it]})}const kg=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),$g=w().regex(/^rgba?\([^\)]+\)$/i),Cg=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ag=ee("transparent"),Pt=D([kg,$g,Cg,Ag]).nullable().optional(),yg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ng=D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Rg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Eg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Ig(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Pg(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}}const li=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,Og=$({style:$({padding:yg,backgroundColor:Pt.default(null),textAlign:E(["center","left","right"]).optional().nullable()}).optional().nullable(),props:$({url:w().optional().nullable(),urlTablet:w().optional().nullable(),urlMobile:w().optional().nullable(),alt:w().optional().nullable(),decorative:z().optional().nullable(),linkHref:w().optional().nullable(),width:g().positive().optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),borderRadius:Ng,borderColor:Pt.default(null),borderWidth:Rg,iconName:w().optional().nullable(),iconNameTablet:w().optional().nullable(),iconNameMobile:w().optional().nullable(),iconFillColor:Pt.default(null),iconFillColorTablet:Pt.default(null),iconFillColorMobile:Pt.default(null)}).optional().nullable()}),Xe={url:"",alt:"Logo",decorative:!1,linkHref:"https://pagepilot.fabbuilder.com/",width:160,borderRadius:0,borderColor:null,borderWidth:null};let Tg=0;function Mg({style:e,props:t}){const n=(t==null?void 0:t.url)??Xe.url,r=(t==null?void 0:t.urlTablet)??null,o=(t==null?void 0:t.urlMobile)??null,i=(t==null?void 0:t.linkHref)??Xe.linkHref,a=!i&&((t==null?void 0:t.decorative)??Xe.decorative),l=a?"":(t==null?void 0:t.alt)??Xe.alt,s=a?{role:"presentation","aria-hidden":!0}:{},c=(t==null?void 0:t.width)??Xe.width,u=(t==null?void 0:t.widthTablet)??null,m=(t==null?void 0:t.widthMobile)??null,d=(t==null?void 0:t.borderRadius)??Xe.borderRadius,h=(t==null?void 0:t.borderColor)??Xe.borderColor,f=(t==null?void 0:t.borderWidth)??Xe.borderWidth,b=u??c,v=m??b,S=c,_=n,A=`ahd-logo-${++Tg}`,x=`
|
|
76
|
+
${Ge} { .${A} img { width: ${b}px !important; max-width: 100% !important; } }
|
|
77
|
+
${ye} { .${A} img { width: ${v}px !important; max-width: 100% !important; } }
|
|
78
|
+
`.trim(),k={padding:Eg(e==null?void 0:e.padding),...Ig(e==null?void 0:e.backgroundColor),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},N={width:`${S}px`,height:"auto",maxWidth:"100%",display:"inline-block",verticalAlign:"top",boxSizing:"border-box",border:"none",outline:"none",textDecoration:"none",borderRadius:d?li(d):void 0},C=p.jsxs("picture",{children:[o&&p.jsx("source",{media:ye.replace("@media ",""),srcSet:o}),r&&p.jsx("source",{media:Ge.replace("@media ",""),srcSet:r}),p.jsx("img",{alt:l,...s,src:_,width:S,style:N})]}),y=h&&h!=="transparent"?p.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:d?li(d):void 0,...Pg(h,f)},children:C}):C;return i?p.jsxs("div",{className:`logo-block ${A}`,style:k,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),p.jsx("a",{href:i,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:"_blank",rel:"noopener noreferrer","aria-label":a?"Logo":l||"Logo",children:y})]}):p.jsxs("div",{className:`logo-block ${A}`,style:k,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),y]})}const Lg=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),zg=w().regex(/^rgba?\([^\)]+\)$/i),jg=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Bg=ee("transparent"),Dg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Hg=D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Fg=D([Lg,zg,jg,Bg]).nullable().optional(),Gg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ug=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Zg(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Wg(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const Vg=$({style:$({padding:Dg,backgroundColor:w().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:E(["center","left","right"]).optional().nullable()}).optional().nullable(),props:$({width:D([g(),w()]).optional().nullable(),height:D([g(),w()]).optional().nullable(),widthTablet:D([g(),w()]).optional().nullable(),widthMobile:D([g(),w()]).optional().nullable(),heightTablet:D([g(),w()]).optional().nullable(),heightMobile:D([g(),w()]).optional().nullable(),url:w().optional().nullable(),alt:w().optional().nullable(),linkHref:w().optional().nullable(),contentAlignment:E(["top","middle","bottom"]).optional().nullable(),name:w().optional().nullable(),borderRadius:Hg,borderColor:Fg.default(null),borderWidth:Gg}).optional().nullable()});function qg(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function Kg(e){if(!e)return null;try{const t=new URL(e);return t.hostname==="youtu.be"?`https://www.youtube.com/embed/${t.pathname.slice(1)}`:t.hostname.includes("youtube.com")&&t.searchParams.get("v")?`https://www.youtube.com/embed/${t.searchParams.get("v")}`:t.pathname.startsWith("/embed/")?e:null}catch{return null}}let Yg=0;function Jg({style:e,props:t}){const n=`ahd-video-${++Yg}`,r=(e==null?void 0:e.textAlign)??"left",o={padding:Ug(e==null?void 0:e.padding),...Zg(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:qg(r),textAlign:r},i=(t==null?void 0:t.width)??"inherit",a=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=(t==null?void 0:t.heightTablet)??null,u=(t==null?void 0:t.heightMobile)??null,m=l??i,d=s??m,h=c??a,f=u??h,b=i,v=a,S=P=>P==null?void 0:typeof P=="number"?`${P}px`:P,_=`
|
|
79
|
+
${Ge} { .${n} video, .${n} iframe { ${S(m)?`width: ${S(m)} !important;`:""} ${S(h)?`height: ${S(h)} !important;`:""} max-width: 100% !important; } }
|
|
80
|
+
${ye} { .${n} video, .${n} iframe { ${S(d)?`width: ${S(d)} !important;`:""} ${S(f)?`height: ${S(f)} !important;`:""} max-width: 100% !important; } }
|
|
81
|
+
`.trim(),A=(t==null?void 0:t.linkHref)??null,x=(t==null?void 0:t.borderRadius)??0,k=P=>typeof P=="number"?`${P}px`:`${P.topLeft}px ${P.topRight}px ${P.bottomRight}px ${P.bottomLeft}px`,N=(P,O)=>{const B=Math.max((O==null?void 0:O.top)||0,(O==null?void 0:O.right)||0,(O==null?void 0:O.bottom)||0,(O==null?void 0:O.left)||0);if(typeof P=="number")return`${Math.max(0,P-B)}px`;const Q=Math.max(0,(P.topLeft||0)-B),ne=Math.max(0,(P.topRight||0)-B),te=Math.max(0,(P.bottomRight||0)-B),ie=Math.max(0,(P.bottomLeft||0)-B);return`${Q}px ${ne}px ${te}px ${ie}px`},C=(t==null?void 0:t.borderColor)??null,y=(t==null?void 0:t.borderWidth)??null,I=Wg(C,y),T=C&&(C.includes("linear-gradient")||C.includes("radial-gradient")||C.includes("repeating-linear-gradient")),M=Kg(t==null?void 0:t.url),L=M?p.jsx("iframe",{width:b,height:v,src:M,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:k(x)}},M):p.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??(t==null?void 0:t.name)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:v,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:k(x),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),F=T?p.jsx("div",{style:{borderRadius:x?k(x):void 0,...I},children:M?p.jsx("iframe",{width:b,height:v,src:M,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:N(x,y)}},M):p.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:b,height:v,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:N(x,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):C?p.jsx("div",{style:{borderRadius:x?k(x):void 0,...I},children:L}):L;return A?p.jsxs("div",{className:`video-block ${n}`,style:o,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),p.jsx("a",{href:A,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:F})]}):p.jsxs("div",{className:`video-block ${n}`,style:o,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),F]})}var Xg=$({props:$({height:g().gte(0).optional().nullish()}).optional().nullable()}),Qg={height:16};function em({props:e}){var t;const n={height:(t=e==null?void 0:e.height)!=null?t:Qg.height};return G.createElement("div",{style:n})}const tm=E(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function nm(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const rm=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),om=w().regex(/^rgba?\([^\)]+\)$/i),im=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),am=ee("transparent"),si=D([rm,om,im,am]).nullable().optional(),lm=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),sm=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,um=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,dm=$({style:$({color:si,backgroundColor:si,fontSize:g().gte(0).optional().nullable(),fontFamily:tm,fontWeight:E(["bold","normal",...lo]).optional().nullable(),textAlign:E(["left","center","right"]).optional().nullable(),padding:lm,margin:sm}).optional().nullable(),props:$({text:w().optional().nullable(),editorType:E(["summernote","quill"]).optional().nullable()}).optional().nullable()}),hm={text:""};function fm({style:e,props:t}){const n={color:(e==null?void 0:e.color)??void 0,background:(e==null?void 0:e.backgroundColor)??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:nm(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:cm(e==null?void 0:e.padding),margin:um(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},r=(t==null?void 0:t.text)??hm.text;return p.jsxs("div",{className:"text-block",style:n,children:[p.jsx("style",{children:".text-block ul,.text-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}.text-block li{display:list-item}"}),p.jsx("div",{dangerouslySetInnerHTML:{__html:r}})]})}const gm=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),mm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,pm=$({style:$({padding:gm,backgroundColor:w().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:E(["center","left","right"]).optional().nullable()}).optional().nullable(),props:$({width:g().optional().nullable(),height:g().optional().nullable(),widthTablet:D([g(),w()]).optional().nullable(),widthMobile:D([g(),w()]).optional().nullable(),heightTablet:D([g(),w()]).optional().nullable(),heightMobile:D([g(),w()]).optional().nullable(),url:w().optional().nullable(),alt:w().optional().nullable(),linkHref:w().optional().nullable(),contentAlignment:E(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let bm=0;function vm({style:e,props:t}){const n=`ahd-youtube-url-${++bm}`,r={padding:mm(e==null?void 0:e.padding),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0},o=(t==null?void 0:t.linkHref)??null,i=(t==null?void 0:t.width)??void 0,a=(t==null?void 0:t.height)??void 0,l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=(t==null?void 0:t.heightTablet)??null,u=(t==null?void 0:t.heightMobile)??null,m=l??i,d=s??m,h=c??a,f=u??h,b=i,v=a,S=x=>x==null?void 0:typeof x=="number"?`${x}px`:x,_=`
|
|
82
|
+
${Ge} { .${n} video { ${S(m)?`width: ${S(m)} !important;`:""} ${S(h)?`height: ${S(h)} !important;`:""} max-width: 100% !important; } }
|
|
83
|
+
${ye} { .${n} video { ${S(d)?`width: ${S(d)} !important;`:""} ${S(f)?`height: ${S(f)} !important;`:""} max-width: 100% !important; } }
|
|
84
|
+
`.trim(),A=p.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:v,style:{width:b,height:v,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return o?p.jsxs("div",{className:`youtube-url-block ${n}`,style:r,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),p.jsx("a",{href:o,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:A})]}):p.jsxs("div",{className:`youtube-url-block ${n}`,style:r,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),A]})}const xm=["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","lineHeight","textAlign","buttonTextAlign","padding","margin","marginBottom","width","height","borderRadius","activeFontSize","showActiveBorder","tabGap","contentGap","starSize","starGap","itemGap","arrowSize","dotSize","slideGap","buttonSize","buttonGap","buttonRadius","controlGap","backgroundImage","backgroundSize","backgroundRepeat"],Ke=$({tablet:$t(w(),Wt()).optional().nullable(),mobile:$t(w(),Wt()).optional().nullable()}).optional().nullable(),Sm=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),_m=$({responsive:Ke,style:$({padding:Sm,textAlign:E(["left","center","right"]).optional().nullable()}).optional().nullable(),props:$({src:w().optional().nullable(),width:w().optional().nullable(),height:w().optional().nullable(),title:w().optional().nullable(),allowFullscreen:z().optional().nullable()}).optional().nullable()}),wm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function km({style:e,props:t}){const n=(t==null?void 0:t.src)??"",r=(t==null?void 0:t.width)??"100%",o=t==null?void 0:t.height,i=!o||/^\s*(0|0px|100vh)\s*$/i.test(o)?"800px":o,a=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=G.useRef(null),c={padding:wm(e==null?void 0:e.padding),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"},u={width:`var(--ahd-iframe-width,${r})`,height:`var(--ahd-iframe-height,${i})`,minHeight:`var(--ahd-iframe-height,${i})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?p.jsx("div",{className:"iframe-block",style:c,children:p.jsx("iframe",{ref:s,src:n,title:a,style:u,allowFullScreen:l})}):p.jsx("div",{className:"iframe-block",style:{...c,backgroundColor:"#F5F5F5",padding:"24px",textAlign:"center",color:"#888",fontSize:"14px"},children:"IFrame — enter a URL in the panel"})}const $m=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Cm=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Am=$({responsive:Ke,style:$({padding:$m,margin:Cm,textAlign:E(["left","center","right"]).optional().nullable()}).optional().nullable(),props:$({src:w().optional().nullable(),width:w().optional().nullable(),height:w().optional().nullable(),title:w().optional().nullable(),allowFullscreen:z().optional().nullable()}).optional().nullable()}),ym=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},Nm=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},Rm=({props:e,style:t})=>{var u,m;const{src:n,width:r,height:o,title:i,allowFullscreen:a=!0}=e??{};if(!n)return p.jsx(p.Fragment,{});const l=(((u=t==null?void 0:t.margin)==null?void 0:u.left)??0)+(((m=t==null?void 0:t.margin)==null?void 0:m.right)??0),s=t??{},c={width:l>0?`calc(100% - ${l}px)`:"100%",padding:ym(s.padding),margin:Nm(s.margin),textAlign:s.textAlign||void 0};return p.jsx("div",{className:"calendly-block",style:c,children:p.jsx("iframe",{src:n,title:i||"Calendly scheduling",allowFullScreen:a??!0,style:{width:`var(--ahd-calendly-width,${r||"100%"})`,height:`var(--ahd-calendly-height,${o||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var Em=Object.defineProperty,ci=Object.getOwnPropertySymbols,Im=Object.prototype.hasOwnProperty,Pm=Object.prototype.propertyIsEnumerable,ui=(e,t,n)=>t in e?Em(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Om=(e,t)=>{for(var n in t||(t={}))Im.call(t,n)&&ui(e,n,t[n]);if(ci)for(var n of ci(t))Pm.call(t,n)&&ui(e,n,t[n]);return e};function Tm(e){return function({type:n,data:r}){const o=e[n].Component;return G.createElement(o,Om({},r))}}function Mm(e){const t=Object.keys(e).map(n=>$({type:ee(n),data:e[n].schema}));return oh("type",t).transform(n=>n)}const Lm=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),zm=w().regex(/^rgba?\([^\)]+\)$/i),jm=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Bm=ee("transparent"),Dm=D([Lm,zm,jm,Bm]).nullable().optional(),Hm=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Fm=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Vn=Ea([g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish()]).optional().nullable(),qn=E(["fixed","fill","fit"]).optional().nullable(),Gm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Um=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Da=$({style:$({backgroundColor:Dm,padding:Hm,margin:Fm}).optional().nullable(),props:$({widthType:qn,widthTypeTablet:qn,widthTypeMobile:qn,fixedWidths:Vn,fixedWidthsTablet:Vn,fixedWidthsMobile:Vn,columnsCount:D([ee(2),ee(3),ee(4),ee(5)]).optional().nullable(),columnsGap:g().optional().nullable(),columnsGapTablet:g().optional().nullable(),columnsGapMobile:g().optional().nullable(),columnsDirection:E(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:E(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:E(["horizontal","vertical"]).optional().nullable(),contentAlignment:E(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:E(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:E(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),st={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function di(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
|
|
85
|
+
${e} table { table-layout: auto !important; }
|
|
86
|
+
${e} td { box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; vertical-align: top !important; }
|
|
87
|
+
${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function hi(e){return`${e} table { display: table !important; table-layout: fixed !important; }
|
|
88
|
+
${e} tbody { display: table-row-group !important; }
|
|
89
|
+
${e} tr { display: table-row !important; width: auto !important; }
|
|
90
|
+
${e} td { display: table-cell !important; width: auto !important; }
|
|
91
|
+
${e} td + td { margin-top: 0 !important; }`}function fi(e,t,n,r,o,i){const a=[];for(let l=0;l<t;l+=1){const s=`${e} td:nth-child(${l+1})`,c=l===0?0:n/2,u=l===t-1?0:n/2,m=[`padding-left: ${c}px !important`,`padding-right: ${u}px !important`];r==="fixed"&&(o==null?void 0:o[l])!=null?m.push(`width: ${o[l]}px !important`):m.push("width: auto !important"),a.push(`${s} { ${m.join("; ")}; }`)}return a.join(`
|
|
92
|
+
`)}function Zm(e,t){const n=`.${e}.columns-container`,r=(o,i)=>!i&&o?`${n} td { vertical-align: ${o} !important; }`:"";return`
|
|
93
|
+
@media (max-width: ${Ee}px) {
|
|
94
|
+
${n} { --columns-gap: ${t.tabletGap}px; }
|
|
95
|
+
${t.tabletVertical?di(n):hi(n)}
|
|
96
|
+
${t.tabletVertical?"":fi(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
|
|
97
|
+
${r(t.tabletAlign,t.tabletVertical)}
|
|
98
|
+
}
|
|
99
|
+
@media (max-width: ${Me}px) {
|
|
100
|
+
${n} { --columns-gap: ${t.mobileGap}px; }
|
|
101
|
+
${t.mobileVertical?di(n):hi(n)}
|
|
102
|
+
${t.mobileVertical?"":fi(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
|
|
103
|
+
${r(t.mobileAlign,t.mobileVertical)}
|
|
104
|
+
}
|
|
105
|
+
`.trim()}let Wm=0;function Vm({style:e,columns:t,props:n}){const r=(n==null?void 0:n.widthType)??st.widthType,o=(n==null?void 0:n.widthTypeTablet)??r,i=(n==null?void 0:n.widthTypeMobile)??o,a=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??a,s=(n==null?void 0:n.fixedWidthsMobile)??l,c=(n==null?void 0:n.columnsGap)??st.columnsGap,u=(n==null?void 0:n.columnsGapTablet)??c,m=(n==null?void 0:n.columnsGapMobile)??u,d=(n==null?void 0:n.columnsDirection)??st.columnsDirection,h=(n==null?void 0:n.columnsDirectionTablet)??d,f=(n==null?void 0:n.columnsDirectionMobile)??h,b=(n==null?void 0:n.contentAlignment)??st.contentAlignment,v=(n==null?void 0:n.contentAlignmentTablet)??b,S=(n==null?void 0:n.contentAlignmentMobile)??v,_=(n==null?void 0:n.columnsCount)??st.columnsCount,A=r,x=a,k=c,N=d,y={widthType:A,columnsCount:_,columnsGap:k,columnsDirection:N,contentAlignment:b,fixedWidths:x},I=N==="vertical",T=G.useMemo(()=>`ahd-cc-${Wm+=1}`,[]),M=Zm(T,{tabletVertical:h==="vertical",mobileVertical:f==="vertical",columnsCount:_,tabletGap:u,mobileGap:m,tabletWidthType:o,mobileWidthType:i,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:v,mobileAlign:S}),L={background:(e==null?void 0:e.backgroundColor)??void 0,padding:Gm(e==null?void 0:e.padding),margin:Um(e==null?void 0:e.margin),"--columns-gap":`${k}px`};return p.jsxs("div",{className:`columns-container ${T}${I?" is-stacked":""}`,style:L,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:M}}),p.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:I||A==="fit"?"auto":"fixed",borderCollapse:"collapse",...I?{display:"block",width:"100%"}:{}},children:p.jsx("tbody",{style:{width:"100%",...I?{display:"block"}:{}},children:p.jsxs("tr",{style:{width:"100%",...I?{display:"block"}:{}},children:[p.jsx(Ot,{index:0,props:y,columns:t}),p.jsx(Ot,{index:1,props:y,columns:t}),p.jsx(Ot,{index:2,props:y,columns:t}),p.jsx(Ot,{index:3,props:y,columns:t}),p.jsx(Ot,{index:4,props:y,columns:t})]})})})]})}function Ot({index:e,props:t,columns:n}){var m;const r=(t==null?void 0:t.columnsCount)??st.columnsCount;if(e>=r)return null;const o=t.columnsDirection==="vertical",i=o?0:qm(e,t),a=o?0:Km(e,t),l=(m=t.fixedWidths)==null?void 0:m[e],s={boxSizing:o?"border-box":"content-box",verticalAlign:o?"top":(t==null?void 0:t.contentAlignment)??st.contentAlignment,paddingLeft:i?`${i}px`:0,paddingRight:a?`${a}px`:0,width:t.widthType==="fixed"&&!o&&l!=null?`${l}px`:void 0,...o?{display:"block",width:"100%",marginTop:e>0?`${t.columnsGap}px`:void 0}:{}},c=(n==null?void 0:n[e])??null,u=t.widthType==="fixed"&&l!=null?l:void 0;return p.jsx("td",{style:s,width:u,children:c})}function qm(e,{columnsGap:t}){return e===0?0:t/2}function Km(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const Ym=Da.shape.props.unwrap().unwrap().shape,Jm=Da.shape.style.unwrap().unwrap().shape,Xm=$({style:$({...Jm,borderRadius:D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:w().optional().nullable(),borderWidth:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:$({...Ym,columns:Ea([$({childrenIds:Z(w())}),$({childrenIds:Z(w())}),$({childrenIds:Z(w())})])}).optional().nullable()});function Qm(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function ep({style:e,props:t}){const{columns:n,...r}=t??{};let o;n&&(o=n.map(d=>((d==null?void 0:d.childrenIds)??[]).map(h=>p.jsx(pe,{id:h},h))));const{borderRadius:i,borderColor:a,borderWidth:l,...s}=e??{},c={};if(i!=null&&(c.borderRadius=Qm(i)),a){const d=l??{top:1,right:1,bottom:1,left:1};c.borderStyle="solid",c.borderColor=a,c.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}c.overflow="hidden";const u=i!=null||!!a,m=p.jsx(Vm,{props:r,columns:o,style:s});return u?p.jsx("div",{style:c,children:m}):p.jsx(p.Fragment,{children:m})}const tp=$({style:$({backgroundColor:w().optional().nullable(),padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:w().optional().nullable(),borderWidth:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:$({columnsCount:g().int().min(2).optional().nullable(),columnsGap:g().optional().nullable(),wrap:z().optional().nullable(),desktopLayout:E(["wrap","row"]).optional().nullable(),mobileLayout:E(["wrap","row"]).optional().nullable(),tabletLayout:E(["wrap","row"]).optional().nullable(),columnShrink:Z(z()).optional().nullable(),columnShrinkTablet:Z(z()).optional().nullable(),columnShrinkMobile:Z(z()).optional().nullable(),equalColumns:z().optional().nullable(),columns:Z($({childrenIds:Z(w())})).optional().nullable(),align:E(["flex-start","center","flex-end","stretch"]).optional().nullable(),reverseColumns:z().optional().nullable(),repeatableEnabled:z().optional().nullable()}).optional().nullable()});function np(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function rp(e){var o,i;const t=e??{},n=(((o=t.margin)==null?void 0:o.left)??0)+(((i=t.margin)==null?void 0:i.right)??0),r={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.padding){const a=t.padding;r.padding=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.margin){const a=t.margin;r.margin=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.borderRadius!=null&&(r.borderRadius=np(t.borderRadius),r.overflow="hidden"),t.borderColor){const a=t.borderWidth??{top:1,right:1,bottom:1,left:1};r.borderStyle="solid",r.borderColor=t.borderColor,r.borderWidth=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}return r}function Kn(e,t,n){const r=e??{},o=r.desktopLayout??(r.wrap?"wrap":"row"),i=r.tabletLayout??o,a=r.mobileLayout??"wrap",l=r.columnShrink??[],s=r.columnShrinkTablet??l,c=r.columnShrinkMobile??s,u={desktop:{layout:o,shrink:l},tablet:{layout:i,shrink:s},mobile:{layout:a,shrink:c}}[t];return{layout:u.layout,shrink:Array.from({length:n},(m,d)=>u.shrink[d]===!0),equalColumns:r.equalColumns===!0,reverseColumns:r.reverseColumns===!0}}function op(e){switch(e){case"shrink":return"flex: 0 0 auto; width: auto;";case"equal":return"flex: 1 1 0; width: 0;";default:return"flex: 1 1 auto; width: auto;"}}function ip(e,{shrink:t,equalColumns:n}){return t[e]?"shrink":n?"equal":"plain"}function Yn(e,t,n,r){const{layout:o,reverseColumns:i}=n,a=m=>m.map(d=>`${t}:nth-child(${d+1})`).join(", "),l=Array.from({length:r},(m,d)=>d);if(o==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; }`,`${a(l)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
|
|
106
|
+
`);const c=[`${e} { flex-direction: ${i?"row-reverse":"row"}; flex-wrap: nowrap; }`],u=new Map;for(const m of l){const d=ip(m,n);u.set(d,[...u.get(d)??[],m])}for(const[m,d]of u)c.push(`${a(d)} { ${op(m)} max-width: 100%; }`);return c.join(`
|
|
107
|
+
`)}function ap(e,t){const{columnsCount:n,desktop:r,tablet:o,mobile:i}=t,a=`.${e}.flex-columns-block > .fc-row`,l=`${a} > .fc-col`,s=[`${a} { display: flex; width: 100%; box-sizing: border-box; }`,`${l} { min-width: 0; box-sizing: border-box; }`,`${l} > * { max-width: 100%; }`,`${l} img { max-width: 100%; height: auto; }`].join(`
|
|
108
|
+
`),u=[r,o,i].some(d=>d.shrink.some(Boolean))?[r,o,i].flatMap(d=>d.shrink.map((h,f)=>h?f:-1).filter(h=>h>=0)).filter((d,h,f)=>f.indexOf(d)===h).map(d=>{const h=`${l}:nth-child(${d+1})`;return`${h} > *, ${h} .container-block { width: auto; max-width: 100%; }`}).join(`
|
|
109
|
+
`):"",m=(d,h)=>`@media (max-width: ${d}px) {
|
|
110
|
+
${h}
|
|
111
|
+
}
|
|
112
|
+
@container ahd-page (max-width: ${d}px) {
|
|
113
|
+
${h}
|
|
114
|
+
}`;return[s,u,Yn(a,l,r,n),m(Ee,Yn(a,l,o,n)),m(Me,Yn(a,l,i,n))].filter(Boolean).join(`
|
|
115
|
+
`)}let lp=0;function sp({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,r=(t==null?void 0:t.columnsGap)??16,o=(t==null?void 0:t.align)??"flex-start",i=(t==null?void 0:t.columns)??[],a=Array.from({length:n},(u,m)=>i[m]??{childrenIds:[]}),l=G.useMemo(()=>`ahd-fc-${lp+=1}`,[]),s=ap(l,{columnsCount:n,desktop:Kn(t,"desktop",n),tablet:Kn(t,"tablet",n),mobile:Kn(t,"mobile",n)}),c={gap:`${r}px`,alignItems:o};return p.jsxs("div",{className:`flex-columns-block ${l}`,style:rp(e),"data-cols":n,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),p.jsx("div",{className:"fc-row",style:c,children:a.map((u,m)=>p.jsx("div",{className:"fc-col",children:u.childrenIds.map(d=>p.jsx(pe,{id:d},d))},m))})]})}const cp=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),up=w().regex(/^rgba?\([^\)]+\)$/i),dp=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),hp=ee("transparent"),fp=D([cp,up,dp,hp]).nullable().optional(),gp=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),mp=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),pp=$({style:$({backgroundColor:fp,padding:gp,margin:mp}).optional().nullable(),props:$({columnsCount:g().int().min(1).optional().nullable(),columnsCountTablet:g().int().min(1).optional().nullable(),columnsCountMobile:g().int().min(1).optional().nullable(),rowsCount:g().int().min(1).optional().nullable(),columnsGap:g().optional().nullable(),rowsGap:g().optional().nullable(),contentAlignment:E(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),bp=pp.shape.props.unwrap().unwrap().shape,vp=$({backgroundColor:w().optional().nullable(),padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:w().optional().nullable(),borderWidth:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),xp=$({style:vp,props:$({...bp,cells:Z($({childrenIds:Z(w()),colStart:g().int().min(1).optional().nullable(),colSpan:g().int().min(1).optional().nullable(),rowStart:g().int().min(1).optional().nullable(),rowSpan:g().int().min(1).optional().nullable()})),columnsCountTablet:D([ee(1),ee(2),ee(3),ee(4),ee(5)]).optional().nullable(),columnsCountMobile:D([ee(1),ee(2),ee(3),ee(4),ee(5)]).optional().nullable(),contentAlignment:E(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:E(["left","center","right"]).optional().nullable()}).optional().nullable()}),Sp={top:"flex-start",middle:"center",bottom:"flex-end"},_p={left:"flex-start",center:"center",right:"flex-end"};let wp=0;function kp({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,r=(t==null?void 0:t.columnsCountTablet)??n,o=(t==null?void 0:t.columnsCountMobile)??1,i=(t==null?void 0:t.rowsCount)??2,a=(t==null?void 0:t.columnsGap)??0,l=(t==null?void 0:t.rowsGap)??0,s=(t==null?void 0:t.contentAlignment)??"middle",c=(t==null?void 0:t.horizontalAlignment)??"left",u=(t==null?void 0:t.cells)??[],d=u.some(y=>(y==null?void 0:y.colStart)!=null||(y==null?void 0:y.rowStart)!=null||(y==null?void 0:y.colSpan)!=null||(y==null?void 0:y.rowSpan)!=null)?u.length:n*i,h=G.useMemo(()=>`ahd-grid-${wp+=1}`,[]),f=Array.from({length:d},(y,I)=>u[I]??{childrenIds:[]}),b=e==null?void 0:e.padding,v=e==null?void 0:e.margin,S=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),_=S>0?`calc(100% - ${S}px)`:"100%",A={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,boxSizing:"border-box",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0,width:_,maxWidth:"100%"},x=e==null?void 0:e.borderRadius;if(x!=null&&(A.borderRadius=typeof x=="number"?`${x}px`:`${x.topLeft}px ${x.topRight}px ${x.bottomRight}px ${x.bottomLeft}px`,A.overflow="hidden"),e!=null&&e.borderColor){const y=e.borderWidth??{top:1,right:1,bottom:1,left:1};A.borderStyle="solid",A.borderColor=e.borderColor,A.borderWidth=`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`}const k={display:"grid",columnGap:`${a}px`,rowGap:`${l}px`,alignItems:Sp[s]??"center",justifyContent:_p[c]??"flex-start",width:"100%",boxSizing:"border-box"},N=`
|
|
116
|
+
.${h} > .grid-block-inner { grid-template-columns: repeat(${n}, minmax(0, 1fr)); }
|
|
117
|
+
@media (max-width: ${Ee}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${r}, minmax(0, 1fr)); } }
|
|
118
|
+
@media (max-width: ${Me}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }`.trim(),C=y=>{const I={minWidth:0,boxSizing:"border-box"};return y.colStart!=null&&y.colSpan!=null&&(I.gridColumn=`${y.colStart} / span ${y.colSpan}`),y.rowStart!=null&&y.rowSpan!=null&&(I.gridRow=`${y.rowStart} / span ${y.rowSpan}`),I};return p.jsxs("div",{className:`grid-block ${h}`,style:A,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:N}}),p.jsx("div",{className:"grid-block-inner",style:k,children:f.map((y,I)=>p.jsx("div",{className:"grid-cell",style:C(y),children:y.childrenIds.map(T=>p.jsx(pe,{id:T},T))},I))})]})}const $p=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Cp=w().regex(/^rgba?\([^\)]+\)$/i),Ap=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),yp=ee("transparent"),gi=D([$p,Cp,Ap,yp]).nullable().optional(),Np=w().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),Rp=w().regex(/^(auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),Ep=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ip=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Pp=D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Op=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),mi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,pi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Tp(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Mp(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}function Lp(e,t){const n=Math.max((t==null?void 0:t.top)||0,(t==null?void 0:t.right)||0,(t==null?void 0:t.bottom)||0,(t==null?void 0:t.left)||0);if(e==null)return;if(typeof e=="number")return`${Math.max(0,e-n)}px`;const r=Math.max(0,(e.topLeft||0)-n),o=Math.max(0,(e.topRight||0)-n),i=Math.max(0,(e.bottomRight||0)-n),a=Math.max(0,(e.bottomLeft||0)-n);return`${r}px ${o}px ${i}px ${a}px`}const zp=$({style:$({backgroundColor:gi,backgroundImage:Np,backgroundSize:Rp,backgroundRepeat:E(["repeat","no-repeat"]).optional().nullable(),borderColor:gi,borderRadius:Pp,padding:Ep,margin:Ip,borderWidth:Op}).optional().nullable(),props:$({fullWidth:z().optional().nullable(),widthType:E(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:E(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:E(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:E(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:g().min(0).optional().nullable(),heightMobile:g().min(0).optional().nullable(),overflow:z().optional().nullable(),alignment:E(["left","center","right"]).optional().nullable(),alignmentTablet:E(["left","center","right"]).optional().nullable(),alignmentMobile:E(["left","center","right"]).optional().nullable(),tag:E(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:w().optional().nullable(),elementId:w().optional().nullable(),showLink:z().optional().nullable(),linkHref:w().optional().nullable(),linkTarget:E(["_self","_blank"]).optional().nullable()}).optional().nullable()}),Tt={fullWidth:!1,widthType:"fit",width:300,widthUnit:"px",alignment:"left"};let jp=0;function Bp({style:e,props:t,children:n}){const r=Oa(),o=(t==null?void 0:t.fullWidth)??Tt.fullWidth,i=(t==null?void 0:t.widthType)??Tt.widthType,a=(t==null?void 0:t.widthTypeTablet)??null,l=(t==null?void 0:t.widthTypeMobile)??null,s=a??i,c=l??s,u=(t==null?void 0:t.width)??Tt.width,m=(t==null?void 0:t.widthUnit)??Tt.widthUnit,d=(t==null?void 0:t.widthTablet)??null,h=(t==null?void 0:t.widthMobile)??null,f=d??u,b=h??f,v=(t==null?void 0:t.height)??null,S=(t==null?void 0:t.heightTablet)??null,_=(t==null?void 0:t.heightMobile)??null,A=S??v,x=_??A,k=(t==null?void 0:t.overflow)===!0;(t==null?void 0:t.alignment)??Tt.alignment;const N=(t==null?void 0:t.alignmentTablet)??null,C=(t==null?void 0:t.alignmentMobile)??null,y=(t==null?void 0:t.ariaLabel)??void 0,I=(t==null?void 0:t.elementId)??void 0,T=!!(t!=null&&t.showLink),M=(t==null?void 0:t.linkHref)??null,L=T&&typeof M=="string"&&M.trim().length>0,F=(t==null?void 0:t.linkTarget)??"_blank",P=L?"a":(t==null?void 0:t.tag)??"div",O=L?{href:M,target:F,...F==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},B=(H,Se,Ae=!1)=>{if(Ae&&o)return"100%";switch(H){case"fill":return"100%";case"fixed":return`${Se}${m}`;case"fit":default:return"auto"}},Q=H=>((H==null?void 0:H.left)??0)+((H==null?void 0:H.right)??0),ne=(H,Se)=>{const Ae=Q(Se);return Ae<=0?H:H==="100%"?`calc(100% - ${Ae}px)`:H},te=i,ie=u,ce=v,ve=B(te,ie,r==="desktop"),Y=ne(ve,e==null?void 0:e.margin),ae=a!=null||l!=null||d!=null||h!=null||S!=null||_!=null||N!=null||C!=null,xe=ae?`ahd-cb-${++jp}`:"",ge=ae?`
|
|
119
|
+
${Ge} { .${xe} { width: ${ne(B(s,f),e==null?void 0:e.margin)} !important; ${A!=null?`height: ${A}px !important;`:""} max-width: 100% !important; } }
|
|
120
|
+
${ye} { .${xe} { width: ${ne(B(c,b),e==null?void 0:e.margin)} !important; ${x!=null?`height: ${x}px !important;`:""} max-width: 100% !important; } }
|
|
121
|
+
`.trim():null,fe=H=>{if(H!=null)return typeof H=="number"?`${H}px`:`${H.topLeft}px ${H.topRight}px ${H.bottomRight}px ${H.bottomLeft}px`},U=(e==null?void 0:e.borderColor)??null,J=(e==null?void 0:e.borderWidth)??null,X=Mp(U,J),re=Tp((e==null?void 0:e.backgroundColor)??""),K=U&&(U.includes("linear-gradient")||U.includes("radial-gradient")||U.includes("repeating-linear-gradient")),W=ce!=null,Ce=W?{"--ahd-cb-h":`${ce}px`}:{},Le=W?" container-block-has-height":"";if(K){const H={...X,borderRadius:fe(e==null?void 0:e.borderRadius),width:Y,maxWidth:"100%",height:W?`${ce}px`:void 0,boxSizing:"border-box",margin:pi(e==null?void 0:e.margin),...Ce},Se={...re,backgroundImage:e!=null&&e.backgroundImage?`url(${e.backgroundImage})`:void 0,backgroundSize:(e==null?void 0:e.backgroundSize)??void 0,backgroundRepeat:(e==null?void 0:e.backgroundRepeat)??"no-repeat",borderRadius:Lp((e==null?void 0:e.borderRadius)??0,J),overflow:k?"auto":"hidden",padding:mi(e==null?void 0:e.padding),width:"100%",height:W?"100%":void 0,boxSizing:"border-box"},Ae=`container-block${k?" container-block-overflow":""}${Le}${xe?` ${xe}`:""}`,dt=`container-block-inner${k?" container-block-overflow":""}`,Et=L?{...H,...O.style}:H;return n?p.jsxs(p.Fragment,{children:[ge&&p.jsx("style",{dangerouslySetInnerHTML:{__html:ge}}),p.jsx(P,{className:Ae,"aria-label":y,id:I,...O,style:Et,children:p.jsx("div",{className:dt,style:Se,children:n})})]}):p.jsxs(p.Fragment,{children:[ge&&p.jsx("style",{dangerouslySetInnerHTML:{__html:ge}}),p.jsx(P,{className:Ae,"aria-label":y,id:I,...O,style:Et})]})}const ze={...re,backgroundImage:e!=null&&e.backgroundImage?`url(${e.backgroundImage})`:void 0,backgroundSize:(e==null?void 0:e.backgroundSize)??void 0,backgroundRepeat:(e==null?void 0:e.backgroundRepeat)??"no-repeat",...X,borderRadius:fe(e==null?void 0:e.borderRadius),padding:mi(e==null?void 0:e.padding),margin:pi(e==null?void 0:e.margin),width:Y,maxWidth:"100%",height:W?`${ce}px`:void 0,overflow:k?"auto":void 0,boxSizing:"border-box",...Ce},it=`container-block${k?" container-block-overflow":""}${Le}${xe?` ${xe}`:""}`,V=L?{...ze,...O.style}:ze;return n?p.jsxs(p.Fragment,{children:[ge&&p.jsx("style",{dangerouslySetInnerHTML:{__html:ge}}),p.jsx(P,{className:it,"aria-label":y,id:I,...O,style:V,children:n})]}):p.jsxs(p.Fragment,{children:[ge&&p.jsx("style",{dangerouslySetInnerHTML:{__html:ge}}),p.jsx(P,{className:it,"aria-label":y,id:I,...O,style:V})]})}const Dp=$({style:zp.shape.style,responsive:Ke,props:$({childrenIds:Z(w()).optional().nullable(),fullWidth:z().optional().nullable(),widthType:E(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:E(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:E(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:E(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:g().min(0).optional().nullable(),heightMobile:g().min(0).optional().nullable(),overflow:z().optional().nullable(),alignment:E(["left","center","right"]).optional().nullable(),alignmentTablet:E(["left","center","right"]).optional().nullable(),alignmentMobile:E(["left","center","right"]).optional().nullable(),tag:E(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:w().optional().nullable(),elementId:w().optional().nullable(),showLink:z().optional().nullable(),linkHref:w().optional().nullable(),linkTarget:E(["_self","_blank"]).optional().nullable()}).optional().nullable()});function Hp({style:e,props:t}){const n=(t==null?void 0:t.childrenIds)??[];return p.jsx(Bp,{style:e,props:{fullWidth:(t==null?void 0:t.fullWidth)??void 0,widthType:(t==null?void 0:t.widthType)??void 0,widthTypeTablet:(t==null?void 0:t.widthTypeTablet)??void 0,widthTypeMobile:(t==null?void 0:t.widthTypeMobile)??void 0,width:(t==null?void 0:t.width)??void 0,widthUnit:(t==null?void 0:t.widthUnit)??void 0,widthTablet:(t==null?void 0:t.widthTablet)??void 0,widthMobile:(t==null?void 0:t.widthMobile)??void 0,height:(t==null?void 0:t.height)??void 0,heightTablet:(t==null?void 0:t.heightTablet)??void 0,heightMobile:(t==null?void 0:t.heightMobile)??void 0,overflow:(t==null?void 0:t.overflow)??void 0,alignment:(t==null?void 0:t.alignment)??void 0,alignmentTablet:(t==null?void 0:t.alignmentTablet)??void 0,alignmentMobile:(t==null?void 0:t.alignmentMobile)??void 0,tag:(t==null?void 0:t.tag)??void 0,ariaLabel:(t==null?void 0:t.ariaLabel)??void 0,elementId:(t==null?void 0:t.elementId)??void 0,showLink:(t==null?void 0:t.showLink)??void 0,linkHref:(t==null?void 0:t.linkHref)??void 0,linkTarget:(t==null?void 0:t.linkTarget)??void 0},children:n.map(r=>p.jsx(pe,{id:r},r))})}const Fp=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Gp=w().regex(/^rgba?\([^\)]+\)$/i),Up=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Zp=ee("transparent"),vt=D([Fp,Gp,Up,Zp]).nullable().optional(),Wp=E(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional(),Vp=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Jn=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Xn=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),qp=w().regex(/^(auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),Kp=$({color:vt,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:z().default(!1)}).partial().optional().nullable(),Yp=$({position:E(["top","top-left","top-right","top-center","bottom","bottom-left","bottom-right","bottom-center","center","left","left-center","right","right-center"]).optional().default("right"),isCaret:z().optional().default(!0),selector:w().optional().default(""),showCloseIcon:z().optional(),iconCloseColor:vt,closeIconPosition:E(["left","center","right"]).optional(),closeIconPaddingTop:g().optional(),closeIconPaddingLeft:g().optional(),closeIconPaddingRight:g().optional(),bannerSubType:w().optional()}).passthrough().optional().nullable(),Jp=Z($({id:w(),name:w(),type:w().optional().default("text"),value:w().optional()})).optional().nullable(),Xp=$({formFields:Jp,backdropColor:vt.default(null),borderColor:vt.default(null),borderRadius:g().optional().nullable(),canvasColor:vt.default(null),textColor:vt,fontFamily:Wp,childrenIds:Z(w()).optional().nullable(),maxWidth:w().default(""),maxHeight:w().default(""),top:w().default(""),left:w().default(""),padding:Jn,margin:Xn,maxWidthTablet:w().optional().nullable(),maxWidthMobile:w().optional().nullable(),maxHeightTablet:w().optional().nullable(),maxHeightMobile:w().optional().nullable(),paddingTablet:Jn,paddingMobile:Jn,marginTablet:Xn,marginMobile:Xn,borderWidth:Vp,boxShadow:Kp,behaviour:Yp,linkHref:w().optional().default(""),backgroundImage:w().default("").nullable().optional(),backgroundSize:qp,backgroundRepeat:E(["repeat","no-repeat"]).optional().nullable()});function pt(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function hn(e,t,n){const r=e??{},o=r[t];if(n==="desktop")return pt(o)?o:null;const i=r[`${t}Tablet`];if(n==="tablet")return pt(i)?i:pt(o)?o:null;const a=r[`${t}Mobile`];return pt(a)?a:pt(i)?i:pt(o)?o:null}function Qn(e,t){return{maxWidth:hn(e,"maxWidth",t)??null,maxHeight:hn(e,"maxHeight",t)??null,padding:hn(e,"padding",t)??null,margin:hn(e,"margin",t)??null}}function Qp(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function eb(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function er(e,t){const n=[];return t.maxWidth&&(n.push(`${e.width}{width:${t.maxWidth};max-width:100%;}`),n.push(`${e.table}{max-width:${t.maxWidth};min-width:0;}`)),t.maxHeight&&n.push(`${e.table}{height:${t.maxHeight};}`),t.padding&&n.push(`${e.padding}{padding:${Qp(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${eb(t.margin)};}`),n.join("")}function tb(e,t,n){const r=`.${e}`,o={width:`${r} .ahd-layout-sizer`,table:`${r} .ahd-layout-table`,padding:`${r} .email-layout-content`,margin:`${r} .email-layout-content`},i=Qn(t,"desktop"),a=er(o,{...i,maxWidth:i.maxWidth??n??null}),l=er(o,Qn(t,"tablet")),s=er(o,Qn(t,"mobile")),c=(u,m)=>m?`@media (max-width:${u}px){${m}}@container ahd-page (max-width:${u}px){${m}}`:"";return[a,c(Ee,l),c(Me,s)].filter(Boolean).join("")}const nb="Made with Page Pilot",rb="https://pagepilot.fabbuilder.com";let ob=0;function ib(e){switch(e??"MODERN_SANS"){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}function ab(e){const{borderColor:t,borderWidth:n,borderRadius:r}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const o=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=r??0,a=s=>typeof s=="number"?`${s}px`:`${s.topLeft}px ${s.topRight}px ${s.bottomRight}px ${s.bottomLeft}px`;if(((n==null?void 0:n.top)??0)+((n==null?void 0:n.right)??0)+((n==null?void 0:n.bottom)??0)+((n==null?void 0:n.left)??0)===0)return{borderRadius:i?a(i):void 0};if(o){const s=e.canvasColor,c=!s||s==="transparent"?"linear-gradient(transparent, transparent)":s.includes("gradient")?s:`linear-gradient(${s}, ${s})`;return{borderStyle:"solid",borderTopWidth:`${(n==null?void 0:n.top)??0}px`,borderRightWidth:`${(n==null?void 0:n.right)??0}px`,borderBottomWidth:`${(n==null?void 0:n.bottom)??0}px`,borderLeftWidth:`${(n==null?void 0:n.left)??0}px`,borderColor:"transparent",backgroundImage:`${c}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:i?a(i):void 0}}return{borderTop:`${(n==null?void 0:n.top)||0}px solid ${t}`,borderRight:`${(n==null?void 0:n.right)||0}px solid ${t}`,borderBottom:`${(n==null?void 0:n.bottom)||0}px solid ${t}`,borderLeft:`${(n==null?void 0:n.left)||0}px solid ${t}`,borderRadius:i?a(i):void 0}}function lb(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function bi(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:i=0,inset:a=!1}=e,l=lb(t);return{boxShadow:`${a?"inset ":""}${n}px ${r}px ${o}px ${i}px ${l}`}}function sb(e,t,n){return n==="appBanner"&&t?{backgroundColor:"transparent"}:!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function cb(e){switch(e){case"top":return"bottom";case"top-left":return"bottom-right";case"top-right":return"bottom-left";case"bottom":return"top";case"bottom-left":return"top-right";case"bottom-right":return"top-left";case"left":return"right";case"right":return"left";default:return e}}function ub(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function db(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=ub(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function hb({position:e,color:t}){const o="20px",i={position:"absolute",background:t,pointerEvents:"none",zIndex:2},a="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",c="polygon(0 0, 0 100%, 100% 50%)";let u;switch(e){case"top":u={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:a};break;case"top-left":u={top:-8,left:o,width:16,height:8,clipPath:a};break;case"top-right":u={top:-8,right:o,width:16,height:8,clipPath:a};break;case"bottom":u={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":u={bottom:-8,left:o,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:o,width:16,height:8,clipPath:l};break;case"left":u={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":u={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:c};break;default:return null}return p.jsx("div",{"aria-hidden":!0,style:{...i,...u}})}function fb({color:e,position:t,paddingTop:n,paddingLeft:r,paddingRight:o}){const i=e||"#262626",a=t??"right",l=typeof n=="number"?n:2,u=a==="left"?{left:typeof r=="number"?r:2}:a==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof o=="number"?o:2};return p.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...u,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:i,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none"},children:[p.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),p.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function gb(){return p.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:"#8a8a8a",marginTop:8},children:p.jsx("a",{href:rb,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:nb})})}function mb(e){var te,ie,ce,ve,Y,ae,xe,ge,fe,U,J,X,re,K;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",r=n.includes("page")?"page":"",o=n.includes("app-banner"),i=n.includes("demo"),a=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),c=l||s||i,u=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],m=o&&(((te=e.behaviour)==null?void 0:te.bannerSubType)==="floater"||u.includes((ie=e.behaviour)==null?void 0:ie.position)),d=o&&((ce=e.behaviour)==null?void 0:ce.bannerSubType)==="modal",h=(c||m||d)&&((ve=e.behaviour)==null?void 0:ve.showCloseIcon)!==!1,b=c&&!0,v=o&&e.linkHref?e.linkHref:null,S=G.useMemo(()=>`ahd-layout-${ob+=1}`,[]),A=tb(S,e,r==="page"||a?"100%":o&&!m?"900px":"320px"),x=(o||i)&&!!e.backgroundImage;e.borderRadius;const k=e.borderRadius??0,N=W=>typeof W=="number"?`${W}px`:`${W.topLeft}px ${W.topRight}px ${W.bottomRight}px ${W.bottomLeft}px`,y=(W=>W==null?!1:typeof W=="number"?W>0:(W.topLeft??0)>0||(W.topRight??0)>0||(W.bottomRight??0)>0||(W.bottomLeft??0)>0)(k),I=W=>v?p.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:W}):W,T=ab(e),M=o&&!!((Y=e.boxShadow)!=null&&Y.color)&&!!e.boxShadow.inset,L=o&&!M?bi(e.boxShadow):{},F=M?bi(e.boxShadow):{},P=cb(((ae=e.behaviour)==null?void 0:ae.position)??"right"),O=c&&!m&&!d&&((xe=e.behaviour)==null?void 0:xe.isCaret)!==!1,B=db(e.canvasColor,P),Q=(((ge=e.margin)==null?void 0:ge.left)??0)+(((fe=e.margin)==null?void 0:fe.right)??0),ne=Q>0?`calc(100% - ${Q}px)`:"100%";return I(p.jsxs("div",{className:S,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[A&&p.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),p.jsx("div",{style:{color:e.textColor??"#262626",fontFamily:ib(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:p.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...d||m?null:{maxWidth:"100%"}},children:[O&&p.jsx(hb,{position:P,color:B}),p.jsxs("div",{style:{position:"relative",borderRadius:N(k),overflow:y?"hidden":"visible",...L},children:[M&&p.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:N(k),zIndex:1,...F}}),h&&p.jsx(fb,{color:(U=e.behaviour)==null?void 0:U.iconCloseColor,position:(J=e.behaviour)==null?void 0:J.closeIconPosition,paddingTop:(X=e.behaviour)==null?void 0:X.closeIconPaddingTop,paddingLeft:(re=e.behaviour)==null?void 0:re.closeIconPaddingLeft,paddingRight:(K=e.behaviour)==null?void 0:K.closeIconPaddingRight}),p.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:ne,maxWidth:"100%",boxSizing:"border-box",flex:1,margin:e.margin?`${e.margin.top}px ${e.margin.right}px ${e.margin.bottom}px ${e.margin.left}px`:"0 auto",...d||m?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...sb(e.canvasColor,e.backgroundImage,o?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...T,borderRadius:N(k),overflow:"clip",...x?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:p.jsx("tbody",{children:p.jsx("tr",{style:{width:"100%"},children:p.jsxs("td",{className:"email-layout-content",children:[t.map(W=>p.jsx(pe,{id:W},W)),b&&p.jsx(gb,{})]})})})})]})]})})]}))}const pb=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),bb=w().regex(/^rgba?\([^\)]+\)$/i),vb=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),xb=ee("transparent"),fn=D([pb,bb,vb,xb]).nullable().optional(),Sb=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),_b=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),wb=E(["left","center","right"]).optional().nullable(),Cn={min:1,max:20},An={min:4,max:48},Ha=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),kb=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,$b=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Mt=(e,t,n)=>Math.min(Math.max(e,t),n),vi=e=>e?Ha(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Cb=$({style:$({backgroundColor:fn,textAlign:wb,padding:Sb,margin:_b}).optional().nullable(),props:$({stepperType:E(["dots","numeric","both"]).optional().nullable(),totalDots:g().min(Cn.min).max(Cn.max).optional().nullable(),activeIndex:g().min(1).optional().nullable(),activeColor:fn,inactiveColor:fn,dotSize:g().min(An.min).max(An.max).optional().nullable(),dotSpacing:g().min(0).max(40).optional().nullable(),numericColor:fn,numericFontSize:g().min(8).max(48).optional().nullable(),numericPosition:E(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),je={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Ab({style:e,props:t}){const r=Oa()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&r,a=Mt((t==null?void 0:t.totalDots)??je.totalDots,Cn.min,Cn.max),l=Mt((t==null?void 0:t.dotSize)??je.dotSize,An.min,An.max),s=Mt((t==null?void 0:t.dotSpacing)??je.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??je.activeIndex,u=Mt(c,1,a),m=(t==null?void 0:t.activeColor)??je.activeColor,d=(t==null?void 0:t.inactiveColor)??je.inactiveColor,h=(t==null?void 0:t.stepperType)??je.stepperType,f=h==="numeric"||h==="both",b=h==="dots"||h==="both",v=(t==null?void 0:t.numericColor)??je.numericColor,S=Mt((t==null?void 0:t.numericFontSize)??je.numericFontSize,8,48),_=(t==null?void 0:t.numericPosition)??je.numericPosition,x={...vi((e==null?void 0:e.backgroundColor)??void 0),padding:kb(e==null?void 0:e.padding,i),margin:$b(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},k=f&&b&&(_==="above"||_==="below"),N={display:"inline-flex",flexDirection:k?"column":"row",alignItems:"center",justifyContent:(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center",gap:k?"8px":b?`${s}px`:"0px"},C={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},y=`${u}/${a}`,I=Ha(v),T={fontSize:`${S}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...I?{backgroundImage:v,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:v??void 0}},M=()=>f?p.jsx("span",{style:T,children:y}):null,L=()=>p.jsx("div",{style:C,"aria-hidden":"true",children:Array.from({length:a}).map((F,P)=>{const O=P===u-1,B={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:O?"scale(1.1)":"scale(1)",...vi(O?m:d)};return p.jsx("span",{style:B,"data-active":O?"true":"false"},P)})});return p.jsx("div",{className:"stepper-block",style:x,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":a,"aria-valuetext":`Step ${u} of ${a}`,"aria-label":`Step ${u} of ${a}`,children:p.jsxs("div",{style:N,children:[f&&_==="above"&&M(),f&&_==="left"&&M(),b&&L(),f&&_==="right"&&M(),f&&_==="below"&&M()]})})}const yb=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Nb=w().regex(/^rgba?\([^\)]+\)$/i),Rb=ee("transparent"),tr=D([yb,Nb,Rb]).nullable().optional(),Fa=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Eb=Fa,Ib=E(["left","center","right"]).optional().nullable(),Pb=["disc","circle","square","dash","arrow","check","cross","none"],Ob=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],xi={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},Tb=$({text:w()}),Mb=$({style:$({color:tr,backgroundColor:tr,textAlign:Ib,fontSize:g().min(8).max(72).optional().nullable(),fontFamily:w().optional().nullable(),fontWeight:D([g(),w()]).optional().nullable(),lineHeight:g().min(1).max(3).optional().nullable(),padding:Fa,margin:Eb}).optional().nullable(),props:$({listType:E(["unordered","ordered"]).optional().nullable(),marker:E([...Pb,...Ob]).optional().nullable(),numberSuffix:E([".",")"]).optional().nullable(),startNumber:g().min(0).max(9999).optional().nullable(),markerColor:tr,markerSize:g().min(8).max(72).optional().nullable(),itemGap:g().min(0).max(64).optional().nullable(),items:Z(Tb).optional().nullable()}).optional().nullable(),responsive:Ke}),Qe={listType:"unordered",marker:"disc",numberSuffix:".",startNumber:1,markerColor:null,markerSize:16,itemGap:8,items:[{text:"First list item"},{text:"Second list item"},{text:"Third list item"}]},Si=(e,t,n)=>Math.min(Math.max(e,t),n),_i=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,wi=e=>{if(e<=0)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let n="",r=e;for(const[o,i]of t)for(;r>=o;)n+=i,r-=o;return n},ki=e=>{let t=e,n="";for(;t>0;){const r=(t-1)%26;n=String.fromCharCode(97+r)+n,t=Math.floor((t-1)/26)}return n||"a"},Lb=(e,t,n,r)=>{const o=n+t;switch(e){case"decimal-zero":return`${String(o).padStart(2,"0")}${r}`;case"lower-alpha":return`${ki(o)}${r}`;case"upper-alpha":return`${ki(o).toUpperCase()}${r}`;case"lower-roman":return`${wi(o).toLowerCase()}${r}`;case"upper-roman":return`${wi(o)}${r}`;case"decimal":default:return`${o}${r}`}};function zb({style:e,props:t}){var v;const r=((t==null?void 0:t.listType)??Qe.listType)==="ordered",o=(t==null?void 0:t.marker)??(r?"decimal":Qe.marker),i=(t==null?void 0:t.numberSuffix)??Qe.numberSuffix,a=(t==null?void 0:t.startNumber)??Qe.startNumber,l=(t==null?void 0:t.markerColor)??Qe.markerColor,s=Si((t==null?void 0:t.markerSize)??Qe.markerSize,8,72),c=Si((t==null?void 0:t.itemGap)??Qe.itemGap,0,64),u=(v=t==null?void 0:t.items)!=null&&v.length?t.items:Qe.items.map(S=>({...S})),m=(e==null?void 0:e.color)??void 0,d={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:_i(e==null?void 0:e.padding),margin:_i(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box"},h={color:m,textAlign:(e==null?void 0:e.textAlign)??"left",fontSize:e!=null&&e.fontSize?`${e.fontSize}px`:void 0,fontFamily:(e==null?void 0:e.fontFamily)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5},f={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:l??m,fontSize:`${s}px`,lineHeight:(e==null?void 0:e.lineHeight)??1.5},b=S=>o==="none"?null:r?Lb(o,S,a,i):xi[o]??xi.disc;return p.jsx("div",{className:"list-block",style:d,children:p.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:"100%"},children:p.jsx("tbody",{children:u.map((S,_)=>{const A=b(_);return p.jsxs("tr",{children:[o!=="none"&&p.jsx("td",{style:f,children:A}),p.jsx("td",{style:{...h,paddingBottom:_<u.length-1?`${c}px`:0,width:"100%"},children:S.text})]},_)})})})})}const jb=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Bb=w().regex(/^rgba?\([^\)]+\)$/i),Db=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Hb=ee("transparent"),Fb=D([jb,Bb,Db,Hb]).nullable().optional(),Gb=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ga=$({style:$({backgroundColor:Fb,padding:Gb}).optional().nullable(),props:$({direction:E(["row","column"]).optional().nullable(),directionTablet:E(["row","column"]).optional().nullable(),directionMobile:E(["row","column"]).optional().nullable(),gap:g().optional().nullable(),alignment:E(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:E(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:E(["start","center","end","space-between"]).optional().nullable(),wrap:z().optional().nullable(),ariaLabel:w().optional().nullable()}).optional().nullable()}),gn={direction:"row",gap:12,alignment:"start",wrap:!0},yn={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},Ub=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function $i(e,t,n){const r=e==="row"?yn[t]:"flex-start",o=e==="column"?yn[t]:"center";return`flex-direction:${e}!important;justify-content:${r}!important;align-items:${o}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;`}let Zb=0;function Wb({style:e,buttons:t,props:n}){const r=(n==null?void 0:n.direction)??gn.direction,o=(n==null?void 0:n.directionTablet)??r,i=(n==null?void 0:n.directionMobile)??o,a=(n==null?void 0:n.gap)??gn.gap,l=(n==null?void 0:n.alignment)??gn.alignment,s=(n==null?void 0:n.alignmentTablet)??l,c=(n==null?void 0:n.alignmentMobile)??s,u=(n==null?void 0:n.wrap)??gn.wrap,m=(n==null?void 0:n.ariaLabel)??void 0,d=r,h=l,f={display:"flex",flexDirection:d,gap:`${a}px`,justifyContent:d==="row"?yn[h]:"flex-start",alignItems:d==="column"?yn[h]:"center",flexWrap:d==="row"&&u?"wrap":"nowrap",background:(e==null?void 0:e.backgroundColor)??void 0,padding:Ub(e==null?void 0:e.padding),boxSizing:"border-box",width:"100%"},b=G.useMemo(()=>`ahd-bg-${Zb+=1}`,[]),v=G.useMemo(()=>{const S=`.${b}`;let _="";return(o!==r||s!==l)&&(_+=`@media (max-width:${Ee}px){${S}{${$i(o,s,u)}}}`),(i!==o||c!==s)&&(_+=`@media (max-width:${Me}px){${S}{${$i(i,c,u)}}}`),_},[b,r,o,i,l,s,c,u]);return p.jsxs("div",{className:`button-group ${b}`,style:f,role:"group","aria-label":m,children:[v&&p.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),t]})}const Vb=Ga.shape.props.unwrap().unwrap().shape,qb=$({style:Ga.shape.style,props:$({...Vb,childrenIds:Z(w()).optional().nullable()}).optional().nullable()});function Kb({style:e,props:t}){const{childrenIds:n,...r}=t??{},o=(n??[]).map(i=>p.jsx(pe,{id:i},i));return p.jsx(Wb,{style:e,props:r,buttons:o})}const Yb=$({titleChildrenIds:Z(w()).optional().nullable(),contentChildrenIds:Z(w()).optional().nullable()}),Jb=$({responsive:Ke,style:$({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderWidth:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:D([g(),w(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),marginBottom:g().optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:$({items:Z(Yb).min(1).max(25).optional().nullable(),iconColor:w().optional().nullable(),iconSize:g().optional().nullable(),defaultOpen:z().optional().nullable(),activeBorderColor:w().optional().nullable()}).optional().nullable()});function Xb(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Qb({style:e,props:t}){const n=G.useMemo(()=>{const f=t==null?void 0:t.items;return!f||f.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:f[0].titleChildrenIds??[],contentChildrenIds:f[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),r=G.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),o=`${r}-content`,i=e==null?void 0:e.padding,a=e==null?void 0:e.margin,l=((a==null?void 0:a.left)??0)+((a==null?void 0:a.right)??0),s={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,borderRadius:Xb(e==null?void 0:e.borderRadius),padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,margin:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(s.overflow="hidden");const c=t==null?void 0:t.activeBorderColor,u=e==null?void 0:e.borderColor,m=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},d=`${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`,h=[];return u&&h.push(`#${r} + .email-accordion-root { border-style:solid; border-color:${u}; border-width:${d}; }`),c&&h.push(`#${r}:checked + .email-accordion-root { border-style:solid; border-color:${c}; border-width:${d}; }`),p.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[p.jsx("style",{children:`
|
|
122
|
+
.email-accordion-root { width:100%; }
|
|
123
|
+
.email-accordion-toggle { display:none; }
|
|
124
|
+
.email-accordion-label { display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:pointer; padding:4px 12px; background:transparent; box-shadow:none; outline:none; }
|
|
125
|
+
.email-accordion-label .title { flex:1; }
|
|
126
|
+
.email-accordion-arrow { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; transition: transform 180ms ease; }
|
|
127
|
+
.email-accordion-content { display:none; padding:4px 12px; }
|
|
128
|
+
.email-accordion-toggle:checked + .email-accordion-root .email-accordion-content { display:block; }
|
|
129
|
+
.email-accordion-toggle:checked + .email-accordion-root .email-accordion-arrow { transform: rotate(180deg); }
|
|
130
|
+
${h.join(`
|
|
131
|
+
`)}
|
|
132
|
+
`}),p.jsx("input",{id:r,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":o,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),p.jsxs("div",{className:"email-accordion-root",style:s,children:[p.jsxs("label",{htmlFor:r,className:"email-accordion-label",children:[p.jsx("div",{className:"title",children:n.titleChildrenIds.map(f=>p.jsx(pe,{id:f},f))}),p.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:(t==null?void 0:t.iconColor)??void 0},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:(t==null?void 0:t.iconSize)??14,height:(t==null?void 0:t.iconSize)??14,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:p.jsx("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"})})})]}),p.jsx("div",{id:o,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(f=>p.jsx(pe,{id:f},f))})]})]})}const e0=$({label:w().optional().nullable(),cardChildrenIds:Z(w()).optional().nullable(),detailChildrenIds:Z(w()).optional().nullable()}),t0=$({style:$({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderWidth:g().optional().nullable(),borderRadius:D([g(),w(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cardGap:g().optional().nullable(),equalCardWidth:z().optional().nullable(),cardBgColor:w().optional().nullable(),cardBorderColor:w().optional().nullable(),cardBorderWidth:g().optional().nullable(),cardBorderRadius:g().optional().nullable(),cardPadding:g().optional().nullable(),cardShadow:w().optional().nullable(),cardTextColor:w().optional().nullable(),cardFontSize:g().optional().nullable(),cardFontFamily:w().optional().nullable(),cardFontWeight:w().optional().nullable(),cardTextAlign:E(["left","center","right"]).optional().nullable(),cardHoverBgColor:w().optional().nullable(),cardHoverShadow:w().optional().nullable(),activeCardBgColor:w().optional().nullable(),activeCardBorderColor:w().optional().nullable(),activeCardShadow:w().optional().nullable(),activeCardTextColor:w().optional().nullable(),arrowColor:w().optional().nullable(),arrowActiveColor:w().optional().nullable(),arrowSize:g().optional().nullable(),detailBgColor:w().optional().nullable(),detailBorderColor:w().optional().nullable(),detailBorderWidth:g().optional().nullable(),detailBorderRadius:g().optional().nullable(),detailPadding:g().optional().nullable(),detailShadow:w().optional().nullable(),detailGap:g().optional().nullable(),rightCardWidth:g().optional().nullable(),cardListWidth:g().optional().nullable(),panelGap:g().optional().nullable()}).optional().nullable(),props:$({items:Z(e0).min(1).max(10).optional().nullable(),defaultOpenIndex:g().optional().nullable(),accordionEnabled:z().optional().nullable(),detailPosition:E(["bottom","right"]).optional().nullable()}).optional().nullable()});function n0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function r0({style:e,props:t}){const n=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Plan 1",cardChildrenIds:[],detailChildrenIds:[]}],[t==null?void 0:t.items]),r=G.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.accordionEnabled)??!1,i=(t==null?void 0:t.defaultOpenIndex)??null,a=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,c=(e==null?void 0:e.cardBgColor)??"#ffffff",u=(e==null?void 0:e.cardBorderColor)??"rgba(0,0,0,0.12)",m=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,h=(e==null?void 0:e.cardPadding)??16,f=(e==null?void 0:e.cardShadow)??"none",b=(e==null?void 0:e.cardTextColor)??"inherit",v=(e==null?void 0:e.cardFontSize)??null,S=(e==null?void 0:e.cardFontFamily)??"inherit",_=(e==null?void 0:e.cardFontWeight)??"inherit",A=(e==null?void 0:e.cardTextAlign)??"left",x=(e==null?void 0:e.cardHoverBgColor)??null,k=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",N=(e==null?void 0:e.activeCardBgColor)??c,C=(e==null?void 0:e.activeCardBorderColor)??u,y=(e==null?void 0:e.activeCardShadow)??f,I=(e==null?void 0:e.activeCardTextColor)??b,T=(e==null?void 0:e.arrowColor)??"currentColor",M=(e==null?void 0:e.arrowActiveColor)??T,L=(e==null?void 0:e.arrowSize)??13,F=(e==null?void 0:e.detailBgColor)??"#f8fafc",P=(e==null?void 0:e.detailBorderColor)??"rgba(0,0,0,0.08)",O=(e==null?void 0:e.detailBorderWidth)??1,B=(e==null?void 0:e.detailBorderRadius)??12,Q=(e==null?void 0:e.detailPadding)??24,ne=(e==null?void 0:e.detailShadow)??"none",te=(e==null?void 0:e.detailGap)??12,ie=(e==null?void 0:e.rightCardWidth)??280,ce=e==null?void 0:e.padding,ve={width:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:n0(e==null?void 0:e.borderRadius),padding:ce?`${ce.top}px ${ce.right}px ${ce.bottom}px ${ce.left}px`:void 0},Y=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,ae=v?`${v}px`:"inherit";if(!o){const fe=`
|
|
133
|
+
.pacc-grid{display:grid;grid-template-columns:${Y};gap:${l}px;width:100%;box-sizing:border-box}
|
|
134
|
+
.pacc-grid-card{background:${c};border:${m}px solid ${u};border-radius:${d}px;padding:${h}px;box-sizing:border-box;box-shadow:${f};color:${b};font-size:${ae};font-family:${S};font-weight:${_};text-align:${A}}
|
|
135
|
+
${x?`.pacc-grid-card:hover{background:${x};box-shadow:${k}}`:`.pacc-grid-card:hover{box-shadow:${k}}`}
|
|
136
|
+
@media(max-width:640px){.pacc-grid{grid-template-columns:1fr}}
|
|
137
|
+
`;return p.jsxs("div",{style:ve,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:fe}}),p.jsx("div",{className:"pacc-grid",children:n.map((U,J)=>p.jsx("div",{className:"pacc-grid-card",children:(U.cardChildrenIds??[]).map(X=>p.jsx(pe,{id:X},X))},J))})]})}if(a==="bottom"){const fe=n.map((J,X)=>{const re=`#${r}-cb${X}:checked ~ .pacc-wrap`;return`${re}{grid-template-columns:1fr}`+n.map((K,W)=>W!==X?`${re} .pacc-item:nth-child(${W+1}){display:none}`:"").join("")+`${re} .pacc-item:nth-child(${X+1}){display:block}${re} .pacc-item:nth-child(${X+1}) .pacc-card{background:${N};border-color:${C};box-shadow:${y};color:${I}}${re} .pacc-item:nth-child(${X+1}) .pacc-arrow{transform:rotate(180deg);color:${M}}${re} .pacc-item:nth-child(${X+1}) .pacc-detail{display:block}`}).join(""),U=`
|
|
138
|
+
.pacc-cb{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
|
|
139
|
+
.pacc-wrap{display:grid;grid-template-columns:${Y};gap:${l}px;width:100%;box-sizing:border-box}
|
|
140
|
+
.pacc-item{box-sizing:border-box}
|
|
141
|
+
.pacc-card{background:${c};border:${m}px solid ${u};border-radius:${d}px;padding:${h}px;padding-right:${h+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${A};color:${b};font-size:${ae};font-family:${S};font-weight:${_};box-shadow:${f}}
|
|
142
|
+
${x?`.pacc-card:hover{background:${x};box-shadow:${k}}`:`.pacc-card:hover{box-shadow:${k}}`}
|
|
143
|
+
.pacc-arrow{position:absolute;top:14px;right:12px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;transition:transform 200ms ease,color 200ms ease;pointer-events:none;color:${T}}
|
|
144
|
+
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${L}px;line-height:1}
|
|
145
|
+
.pacc-detail{display:none;margin-top:${te}px;background:${F};border:${O}px solid ${P};border-radius:${B}px;padding:${Q}px;box-sizing:border-box;box-shadow:${ne}}
|
|
146
|
+
@media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}}
|
|
147
|
+
${fe}
|
|
148
|
+
`;return p.jsxs("div",{style:ve,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:U}}),n.map((J,X)=>p.jsx("input",{type:"radio",name:r,id:`${r}-cb${X}`,className:"pacc-cb",defaultChecked:X===i},X)),p.jsx("div",{className:"pacc-wrap",children:n.map((J,X)=>p.jsxs("div",{className:"pacc-item",children:[p.jsxs("label",{htmlFor:`${r}-cb${X}`,className:"pacc-card",children:[(J.cardChildrenIds??[]).map(re=>p.jsx(pe,{id:re},re)),p.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:p.jsx("i",{className:"bi bi-chevron-down"})})]}),p.jsx("div",{className:"pacc-detail",children:(J.detailChildrenIds??[]).map(re=>p.jsx(pe,{id:re},re))})]},X))})]})}const xe=n.map((fe,U)=>{const J=`#${r}-cb${U}:checked ~ .pacc-wrap`;return`${J}{grid-template-columns:1fr}`+n.map((X,re)=>re!==U?`${J} .pacc-item:nth-child(${re+1}){display:none}`:"").join("")+`${J} .pacc-item:nth-child(${U+1}){display:flex;flex-direction:row;gap:${te}px;align-items:flex-start}${J} .pacc-item:nth-child(${U+1}) .pacc-card{flex-shrink:0;width:${ie}px;background:${N};border-color:${C};box-shadow:${y};color:${I}}${J} .pacc-item:nth-child(${U+1}) .pacc-arrow{transform:rotate(90deg);color:${M}}${J} .pacc-item:nth-child(${U+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),ge=`
|
|
149
|
+
.pacc-cb{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
|
|
150
|
+
.pacc-wrap{display:grid;grid-template-columns:${Y};gap:${l}px;width:100%;box-sizing:border-box}
|
|
151
|
+
.pacc-item{box-sizing:border-box}
|
|
152
|
+
.pacc-card{background:${c};border:${m}px solid ${u};border-radius:${d}px;padding:${h}px;padding-right:${h+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${A};color:${b};font-size:${ae};font-family:${S};font-weight:${_};box-shadow:${f}}
|
|
153
|
+
${x?`.pacc-card:hover{background:${x};box-shadow:${k}}`:`.pacc-card:hover{box-shadow:${k}}`}
|
|
154
|
+
.pacc-arrow{position:absolute;top:14px;right:12px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;transition:transform 200ms ease,color 200ms ease;pointer-events:none;color:${T}}
|
|
155
|
+
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${L}px;line-height:1}
|
|
156
|
+
.pacc-detail{display:none;background:${F};border:${O}px solid ${P};border-radius:${B}px;padding:${Q}px;box-sizing:border-box;box-shadow:${ne}}
|
|
157
|
+
@media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}.pacc-item.pacc-item--open{flex-direction:column!important}.pacc-item.pacc-item--open .pacc-card{width:100%!important}}
|
|
158
|
+
${xe}
|
|
159
|
+
`;return p.jsxs("div",{style:ve,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:ge}}),n.map((fe,U)=>p.jsx("input",{type:"radio",name:r,id:`${r}-cb${U}`,className:"pacc-cb",defaultChecked:U===i},U)),p.jsx("div",{className:"pacc-wrap",children:n.map((fe,U)=>p.jsxs("div",{className:"pacc-item",children:[p.jsxs("label",{htmlFor:`${r}-cb${U}`,className:"pacc-card",children:[(fe.cardChildrenIds??[]).map(J=>p.jsx(pe,{id:J},J)),p.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:p.jsx("i",{className:"bi bi-chevron-right"})})]}),p.jsx("div",{className:"pacc-detail",children:(fe.detailChildrenIds??[]).map(J=>p.jsx(pe,{id:J},J))})]},U))})]})}const o0=$({label:w().optional().nullable(),contentChildrenIds:Z(w()).optional().nullable()}),i0=$({responsive:Ke,style:$({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderRadius:D([g(),w(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tabActiveColor:w().optional().nullable(),tabTextColor:w().optional().nullable(),tabBgColor:w().optional().nullable(),tabGap:g().optional().nullable(),contentGap:g().optional().nullable(),navBorderColor:w().optional().nullable(),fontSize:D([w(),g()]).optional().nullable(),activeFontSize:D([w(),g()]).optional().nullable(),showActiveBorder:z().optional().nullable(),fontFamily:w().optional().nullable(),fontWeight:w().optional().nullable()}).optional().nullable(),props:$({orientation:E(["horizontal","vertical"]).optional().nullable(),orientationTablet:E(["horizontal","vertical"]).optional().nullable(),orientationMobile:E(["horizontal","vertical"]).optional().nullable(),behavior:E(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),activeTabIndex:g().optional().nullable(),stickyNav:z().optional().nullable(),items:Z(o0).min(1).max(20).optional().nullable()}).optional().nullable()}),Jt=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Inter", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif'},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'},{key:"ROBOTO",label:"Roboto",value:'Roboto, "Helvetica Neue", Arial, sans-serif'},{key:"OPEN_SANS",label:"Open Sans",value:'"Open Sans", "Helvetica Neue", Arial, sans-serif'},{key:"LATO",label:"Lato",value:'Lato, "Helvetica Neue", Arial, sans-serif'},{key:"POPPINS",label:"Poppins",value:'Poppins, "Helvetica Neue", Arial, sans-serif'},{key:"INTER",label:"Inter",value:'Inter, "Helvetica Neue", Arial, sans-serif'},{key:"MONTSERRAT",label:"Montserrat",value:'Montserrat, "Helvetica Neue", Arial, sans-serif'},{key:"RALEWAY",label:"Raleway",value:'Raleway, "Helvetica Neue", Arial, sans-serif'},{key:"NUNITO",label:"Nunito",value:'Nunito, "Helvetica Neue", Arial, sans-serif'},{key:"PLAYFAIR_DISPLAY",label:"Playfair Display",value:'"Playfair Display", Georgia, serif'},{key:"MERRIWEATHER",label:"Merriweather",value:"Merriweather, Georgia, serif"},{key:"PT_SANS",label:"PT Sans",value:'"PT Sans", "Helvetica Neue", Arial, sans-serif'},{key:"OSWALD",label:"Oswald",value:'Oswald, "Helvetica Neue", Arial, sans-serif'},{key:"SOURCE_SANS_PRO",label:"Source Sans Pro",value:'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif'},{key:"RUBIK",label:"Rubik",value:'Rubik, "Helvetica Neue", Arial, sans-serif'},{key:"WORK_SANS",label:"Work Sans",value:'"Work Sans", "Helvetica Neue", Arial, sans-serif'},{key:"NOTO_SANS",label:"Noto Sans",value:'"Noto Sans", "Helvetica Neue", Arial, sans-serif'},{key:"DANCING_SCRIPT",label:"Dancing Script",value:'"Dancing Script", cursive, sans-serif'},{key:"PACIFICO",label:"Pacifico",value:"Pacifico, cursive, sans-serif"},{key:"LOBSTER",label:"Lobster",value:"Lobster, cursive, sans-serif"},{key:"BEBAS_NEUE",label:"Bebas Neue",value:'"Bebas Neue", cursive, sans-serif'}],a0={Inter:[400,500,600,700],Roboto:[400,500,700],"Open Sans":[400,500,600,700],Lato:[400,700],Poppins:[400,500,600,700],Montserrat:[400,500,600,700],Raleway:[400,500,600,700],Nunito:[400,500,600,700],"Playfair Display":[400,500,600,700],Merriweather:[400,700],"PT Sans":[400,700],Oswald:[400,500,600,700],"Source Sans Pro":[400,600,700],Rubik:[400,500,600,700],"Work Sans":[400,500,600,700],"Noto Sans":[400,500,600,700],"Titillium Web":[400,600,700],"Dancing Script":[400,500,600,700],Pacifico:[400],Lobster:[400],"Bebas Neue":[400],"Permanent Marker":[400],"Great Vibes":[400],"Libre Baskerville":[400,700],"EB Garamond":[400,500,700],Lora:[400,500,700]},l0=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(a0).map(([e,t])=>`family=${l0(e,t)}`).join("&")}`;const Ua=Jt.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Ua.map(e=>e.css);const s0=e=>e.replace(/"/g,'\\"');Ua.map(e=>{const t=s0(e.css);return`
|
|
160
|
+
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
|
|
161
|
+
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
|
|
162
|
+
content: '${e.label}';
|
|
163
|
+
font-family: ${e.css};
|
|
164
|
+
}`}).join(`
|
|
165
|
+
`);function c0(e){if(!e)return;const t=Jt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function u0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Ci(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const d0={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},h0={display:"inline-block"};function nr(e,t,n,r,o){return t==="horizontal"?`${e}{display:block}${e} .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${r};align-items:center;width:100%;border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent);border-right:0}${e} .ahd-tabs-label{display:inline-flex;border-bottom:3px solid transparent;border-left:0;margin-bottom:calc(-1 * ${n});margin-right:0}${e} .ahd-tabs-panels{width:100%;margin-top:${o};margin-left:0}`:`${e}{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:${o};align-items:start}${e} .ahd-tabs-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;grid-column:1;grid-row:1;align-self:start;width:auto;border-right:${n} solid var(--ahd-tabs-nav-border,transparent);border-bottom:0}${e} .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${r}}${e} .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function f0({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",r=(t==null?void 0:t.orientationTablet)??n,o=(t==null?void 0:t.orientationMobile)??r,a=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=G.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=(e==null?void 0:e.tabActiveColor)??void 0,m=(e==null?void 0:e.tabTextColor)??void 0,d=(e==null?void 0:e.tabBgColor)??"transparent",h=(e==null?void 0:e.navBorderColor)??void 0,f=h?"2px":"0px",b=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",v=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",S="var(--ahd-tabs-tab-gap,"+b+")",_="var(--ahd-tabs-content-gap,"+v+")",A=(e==null?void 0:e.activeFontSize)!=null?Ci(e.activeFontSize):void 0,k=(e==null?void 0:e.showActiveBorder)??!0?u||"currentColor":"transparent",N=e==null?void 0:e.padding,C=e==null?void 0:e.margin,y=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),I={width:y>0?`calc(100% - ${y}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:u0(e==null?void 0:e.borderRadius),padding:N?`${N.top}px ${N.right}px ${N.bottom}px ${N.left}px`:void 0,margin:C?`${C.top}px ${C.right}px ${C.bottom}px ${C.left}px`:void 0,fontFamily:c0(e==null?void 0:e.fontFamily),fontSize:Ci(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,color:m,"--ahd-tabs-nav-border":h??"transparent"},T=()=>s.map((P,O)=>p.jsx("input",{type:"radio",id:`${c}-r${O}`,name:c,className:"ahd-tabs-radio",defaultChecked:O===0,style:d0},O)),M=G.useMemo(()=>{const P=`.${c}`,O=u||"currentColor";let Q=`${P} .ahd-tabs-label{color:${m||"inherit"}}`+(a?"":`${P} .ahd-tabs-panel{display:none}`);return s.forEach((ne,te)=>{const ie=`#${c}-r${te}:checked`,ce=`${ie} ~ .ahd-tabs-nav .ahd-tabs-label:nth-of-type(${te+1})`,ve=`${ie} ~ .ahd-tabs-panels .ahd-tabs-panel:nth-of-type(${te+1})`,Y=`color:${O}!important;border-left-color:var(--ahd-tabs-active-border-color,${k})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${k})!important`;Q+=`${ce}{${Y}}`,Q+=`${ce} .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${A??"inherit"})!important}`,a||(Q+=`${ve}{display:block!important}`)}),Q+=nr(P,n,f,S,_),r!==n&&(Q+=`${g0}{${nr(P,r,f,S,_)}}`),o!==r&&(Q+=`${m0}{${nr(P,o,f,S,_)}}`),Q},[s,c,u,m,A,k,n,r,o,a,f,S,_]),L=P=>a?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:P===0?void 0:_}:{width:"100%",minWidth:0,overflow:"hidden"},F=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return p.jsxs("div",{className:`${c} ahd-tabs ${F}${l?" ahd-tabs-sticky":""}${a?" ahd-tabs-scroll-sections":""}`,style:I,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:M}}),T(),p.jsx("div",{className:"ahd-tabs-nav",style:{background:d,...l?{position:"sticky",top:0}:{}},children:s.map((P,O)=>p.jsx("label",{htmlFor:`${c}-r${O}`,className:"ahd-tabs-label","data-ahd-tab-index":O,style:{alignItems:"center",cursor:"pointer",lineHeight:1,padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative"},children:p.jsx("span",{className:"ahd-tabs-label-text",style:h0,children:P.label??`Tab ${O+1}`})},O))}),p.jsx("div",{className:"ahd-tabs-panels",children:s.map((P,O)=>p.jsx("div",{id:`${c}-panel-${O}`,className:"ahd-tabs-panel","data-ahd-tab-index":O,style:L(O),children:(P.contentChildrenIds??[]).map(B=>p.jsx(pe,{id:B},B))},O))})]})}const g0=`@media (max-width:${Ee}px)`,m0=`@media (max-width:${Me}px)`,p0=$({contentChildrenIds:Z(w()).optional().nullable()}),b0=$({style:$({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderRadius:D([g(),w(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),slideGap:g().optional().nullable(),arrowColor:w().optional().nullable(),arrowBgColor:w().optional().nullable(),arrowBorderColor:w().optional().nullable(),arrowSize:g().min(16).max(80).optional().nullable(),dotColor:w().optional().nullable(),dotActiveColor:w().optional().nullable(),dotSize:g().min(4).max(24).optional().nullable()}).optional().nullable(),props:$({slidesPerView:g().min(1).max(6).optional().nullable(),slidesPerViewTablet:g().min(1).max(6).optional().nullable(),slidesPerViewMobile:g().min(1).max(6).optional().nullable(),showArrows:z().optional().nullable(),showDots:z().optional().nullable(),autoplay:z().optional().nullable(),autoplayInterval:g().min(500).max(2e4).optional().nullable(),loop:z().optional().nullable(),transitionMs:g().min(0).max(3e3).optional().nullable(),items:Z(p0).min(1).max(20).optional().nullable()}).optional().nullable()});function v0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}const x0="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",S0="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Ai=({d:e,size:t=20})=>p.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:p.jsx("path",{d:e})});function _0({style:e,props:t}){const n=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),r=G.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),o=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(o,2)),a=Math.max(1,(t==null?void 0:t.slidesPerViewMobile)??1),l=(t==null?void 0:t.showArrows)??!0,s=(t==null?void 0:t.showDots)??!0,c=(t==null?void 0:t.autoplay)??!1,u=(t==null?void 0:t.autoplayInterval)??4e3,m=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,h=(e==null?void 0:e.slideGap)??16,f=(e==null?void 0:e.arrowColor)??"#262626",b=(e==null?void 0:e.arrowBgColor)??"#ffffff",v=(e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)",S=(e==null?void 0:e.arrowSize)??40,_=(e==null?void 0:e.dotColor)??"#d4d4d4",A=(e==null?void 0:e.dotActiveColor)??"#262626",x=(e==null?void 0:e.dotSize)??8,k=Math.max(12,Math.min(40,Math.round(S*.5))),N=e==null?void 0:e.padding,C=e==null?void 0:e.margin,y=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),I={width:y>0?`calc(100% - ${y}px)`:"100%",boxSizing:"border-box",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:v0(e==null?void 0:e.borderRadius),padding:N?`${N.top}px ${N.right}px ${N.bottom}px ${N.left}px`:void 0,margin:C?`${C.top}px ${C.right}px ${C.bottom}px ${C.left}px`:void 0},T=G.useMemo(()=>{const P=`.${r}`,O=B=>`calc((100% - ${h*(B-1)}px) / ${B})`;return`${P} .ahd-carousel-viewport{overflow:hidden;width:100%}${P} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${h}px);transition:transform ${d}ms ease;will-change:transform}${P} .ahd-carousel-slide{flex:0 0 ${O(o)};min-width:0;box-sizing:border-box}${P} .ahd-carousel-prev svg,${P} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${k}px);height:var(--ahd-carousel-chevron-size,${k}px)}@media (max-width:${Ee}px){${P} .ahd-carousel-slide{flex-basis:${O(i)}}}@media (max-width:${Me}px){${P} .ahd-carousel-slide{flex-basis:${O(a)}}}`},[r,h,d,o,i,a,k]),M={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${S}px)`,height:`var(--ahd-carousel-arrow-size, ${S}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${S}px)`,borderRadius:"50%",border:`1px solid ${v}`,backgroundColor:b,backgroundImage:"none",color:f,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},L=Math.min(o,i,a),F=Math.max(1,n.length-L+1);return p.jsxs("div",{className:`${r} ahd-carousel`,style:I,"data-per-view":o,"data-per-view-tablet":i,"data-per-view-mobile":a,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":m?"1":"0",children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:T}}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&p.jsx("button",{type:"button",className:"ahd-carousel-prev",style:M,"aria-label":"Previous slide",children:p.jsx(Ai,{d:x0,size:k})}),p.jsx("div",{className:"ahd-carousel-viewport",children:p.jsx("div",{className:"ahd-carousel-track",children:n.map((P,O)=>p.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":O,children:(P.contentChildrenIds??[]).map(B=>p.jsx(pe,{id:B},B))},O))})}),l&&p.jsx("button",{type:"button",className:"ahd-carousel-next",style:M,"aria-label":"Next slide",children:p.jsx(Ai,{d:S0,size:k})})]}),s&&F>1&&p.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":_,"data-dot-active-color":A,children:Array.from({length:F}).map((P,O)=>p.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":O,"aria-label":`Go to slide ${O+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${x}px)`,height:`var(--ahd-carousel-dot-size, ${x}px)`,minWidth:`var(--ahd-carousel-dot-size, ${x}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:O===0?A:_,backgroundImage:"none"}},O))})]})}const w0=$({style:$({starColor:w().optional().nullable(),starEmptyColor:w().optional().nullable(),starSize:g().min(8).max(80).optional().nullable(),starGap:g().min(0).max(40).optional().nullable(),textColor:w().optional().nullable(),fontSize:D([w(),g()]).optional().nullable(),fontFamily:w().optional().nullable(),fontWeight:w().optional().nullable(),textAlign:E(["left","center","right"]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:$({value:D([g(),w()]).optional().nullable(),max:D([g(),w()]).optional().nullable(),showValue:z().optional().nullable()}).optional().nullable()}),yi="M12 .587l3.668 7.431 8.2 1.193-5.934 5.787 1.401 8.168L12 18.896l-7.335 3.866 1.401-8.168L.132 9.211l8.2-1.193z";function k0(e){if(!e)return;const t=Jt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function $0(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function C0({fillPct:e,size:t,filledColor:n,emptyColor:r}){return p.jsxs("span",{className:"ahd-rating-star",style:{position:"relative",display:"inline-block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`,lineHeight:0},children:[p.jsx("svg",{viewBox:"0 0 24 24",fill:r,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:p.jsx("path",{d:yi})}),p.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:p.jsx("svg",{viewBox:"0 0 24 24",fill:n,style:{display:"block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`},"aria-hidden":"true",children:p.jsx("path",{d:yi})})})]})}function A0({style:e,props:t}){const n=G.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),r=(S,_)=>{if(typeof S=="number")return Number.isFinite(S)?S:_;const A=parseFloat(String(S??""));return Number.isFinite(A)?A:_},o=Math.max(1,Math.min(10,Math.round(r(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(o,r(t==null?void 0:t.value,0))),a=(t==null?void 0:t.showValue)??!0,l=(e==null?void 0:e.starColor)??"#facc15",s=(e==null?void 0:e.starEmptyColor)??"#e5e7eb",c=(e==null?void 0:e.starSize)??24,u=(e==null?void 0:e.starGap)??4,m=(e==null?void 0:e.textColor)??"#262626",d=(e==null?void 0:e.textAlign)??"left",h=e==null?void 0:e.padding,f=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${u}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:m,fontFamily:k0(e==null?void 0:e.fontFamily),fontSize:$0(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,boxSizing:"border-box"},v=S=>{const _=i-S;return _>=1?100:_>=.5?50:_>0?Math.round(_*100):0};return p.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[p.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${u}px)`},children:Array.from({length:o}).map((S,_)=>p.jsx(C0,{fillPct:v(_),size:c,filledColor:l,emptyColor:s},_))}),a&&p.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(i)?i:i.toFixed(1),p.jsxs("span",{style:{opacity:.55},children:["/",o]})]})]})}const y0=$({responsive:Ke,style:$({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderWidth:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),borderRadius:D([g(),w(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(200).optional().nullable()}).optional().nullable(),props:$({direction:E(["left","right","up","down"]).optional().nullable(),speed:g().min(5).max(200).optional().nullable(),pauseOnHover:z().optional().nullable(),repeat:g().min(2).max(6).optional().nullable(),fadeEdges:z().optional().nullable(),verticalAlign:E(["top","middle","bottom"]).optional().nullable(),items:Z($({contentChildrenIds:Z(w()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),N0=40,R0=32,Za=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,E0=e=>Math.max(2,Math.round(1200/e)),I0=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),Wa=e=>e==="up"||e==="down",P0=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",Nn=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function O0(e,t){return{speed:Za(t==null?void 0:t.speed,N0),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??R0}}function T0(e,t,n){var o,i,a,l;const r=e==null?void 0:e[t];return{speed:Za((o=r==null?void 0:r.props)==null?void 0:o.speed,n.speed),pauseOnHover:((i=r==null?void 0:r.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((a=r==null?void 0:r.props)==null?void 0:a.fadeEdges)??n.fadeEdges,itemGap:((l=r==null?void 0:r.style)==null?void 0:l.itemGap)??n.itemGap}}const M0=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Ni=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${E0(e.speed)}s;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,L0=(e,t)=>e.fadeEdges?`-webkit-mask-image:${Nn(t)}!important;mask-image:${Nn(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function z0({instanceId:e,direction:t,repeat:n,desktop:r,responsive:o,verticalAlign:i}){const a=`.${e}`,l=Wa(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":P0(i),m=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${m}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${m}%)}}`,h=(f,b)=>{if(!M0(o,b))return"";const v=T0(o,b,r);return`${f}{${a}{${Ni(v)};${L0(v,l)}}}`};return d+`${a}{${Ni(r)}}${a} .ahd-marquee-track{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);width:${l?"100%":"max-content"};animation:${e}-kf var(--ahd-mq-duration) linear infinite ${c};will-change:transform}${a} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${u}}${a} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${a}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+h(Ta,"tablet")+h(ye,"mobile")+`@media (prefers-reduced-motion: reduce){${a} .ahd-marquee-track{animation:none}}`}function j0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function B0(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,r=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:r>0?`${r}px solid ${e}`:void 0}}function D0({style:e,props:t,responsive:n}){const r=G.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),o=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",a=I0(t==null?void 0:t.repeat),l=Wa(i),s=O0(e,t),c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,m=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:m>0?`calc(100% - ${m}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,...B0(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:j0(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:void 0,margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:Nn(l),maskImage:Nn(l)}:{}},h=(t==null?void 0:t.verticalAlign)??"middle",f=G.useMemo(()=>z0({instanceId:r,direction:i,repeat:a,desktop:s,responsive:n,verticalAlign:h}),[r,i,a,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,n,h]),b=v=>p.jsx("div",{className:"ahd-marquee-group","aria-hidden":v>0?!0:void 0,children:o.map((S,_)=>p.jsx("div",{className:"ahd-marquee-item",children:(S.contentChildrenIds??[]).map(A=>p.jsx(pe,{id:A},A))},_))},v);return p.jsxs("div",{className:`${r} ahd-marquee`,style:d,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:f}}),p.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:a}).map((v,S)=>b(S))})]})}const H0=$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),F0=$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),G0=$({style:$({backgroundColor:w().optional().nullable(),textColor:w().optional().nullable(),accentColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderRadius:D([g(),w(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:H0,margin:F0}).optional().nullable(),props:$({layout:E(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:w().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:z().default(!0),expiredBehavior:E(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:w().default("Offer has ended")}).optional().nullable()});function U0(e){return String(Math.max(0,e)).padStart(2,"0")}function Z0({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:i,textColor:a}){const l=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:r,label:"Seconds"}];return p.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:l.map(s=>p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[p.jsx("div",{"data-ahd-timer-unit":s.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:i??"#1f1f1f",color:"#ffffff",fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:U0(s.value)}),o&&p.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:s.label})]},s.label))})}function W0(e){return String(Math.max(0,e)).padStart(2,"0")}const Ar=26,Ri=2*Math.PI*Ar;function V0({value:e,max:t,accentColor:n,unit:r}){const o=t>0?Math.min(1,Math.max(0,e/t)):0,i=Ri*(1-o);return p.jsxs("svg",{"data-ahd-timer-unit":r,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[p.jsx("circle",{cx:32,cy:32,r:Ar,fill:"none",stroke:"#e5e7eb",strokeWidth:5}),p.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Ar,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:Ri,strokeDashoffset:i,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),p.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:700,fill:"#1f1f1f",children:W0(e)})]})}function q0({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:i,textColor:a}){const l=i??"#7c3aed",s=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:r,max:60,label:"Seconds"}];return p.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:s.map(c=>p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[p.jsx(V0,{value:c.value,max:c.max,accentColor:l,unit:c.label.toLowerCase()}),o&&p.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:c.label})]},c.label))})}function at(e){return String(Math.max(0,e)).padStart(2,"0")}function K0({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:i,textColor:a}){const l=[{key:"days",text:o?`${e}d`:at(e)},{key:"hours",text:o?`${at(t)}h`:at(t)},{key:"minutes",text:o?`${at(n)}m`:at(n)},{key:"seconds",text:o?`${at(r)}s`:at(r)}],s=o?" ":" : ";return p.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":o?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:a??"#1f1f1f"},children:[p.jsx("span",{style:{color:i??"#7c3aed",marginRight:6},children:"Ends in"}),l.map((c,u)=>p.jsxs(G.Fragment,{children:[u>0&&s,p.jsx("span",{"data-ahd-timer-unit":c.key,children:c.text})]},c.key))]})}function Y0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function J0(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const r=Math.max(0,n-t),o=r<=0,i=Math.floor(r/1e3);return{days:Math.floor(i/86400),hours:Math.floor(i%86400/3600),minutes:Math.floor(i%3600/60),seconds:i%60,completed:o}}function X0({style:e,props:t}){const n=t??{},r=n.layout??"digitalFlip",o=n.showLabels??!0,i=n.expiredBehavior??"showMessage",a=n.expiredMessage||"Offer has ended",l=J0(n.targetDate),s=l.completed,c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,m=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:m>0?`calc(100% - ${m}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:Y0(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:"16px",margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0},h={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:o,accentColor:e==null?void 0:e.accentColor,textColor:e==null?void 0:e.textColor},f=s&&i==="showMessage",b=s&&i==="hide";return p.jsxs("div",{className:"ahd-timer","data-layout":r,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":i,"data-ahd-timer-expired-message":a,"data-ahd-timer-show-labels":o?"1":"0",style:{...d,display:b?"none":void 0},children:[p.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:(e==null?void 0:e.textColor)??"#1f1f1f",display:f?void 0:"none"},children:a}),p.jsxs("div",{"data-ahd-timer-body":!0,style:{display:f?"none":void 0},children:[r==="digitalFlip"&&p.jsx(Z0,{...h}),r==="circularProgress"&&p.jsx(q0,{...h}),r==="textInline"&&p.jsx(K0,{...h})]})]})}const Q0=E(["left","center","right","space-between"]),ev=$({contentChildrenIds:Z(w()).optional().nullable()}),tv=$({childrenIds:Z(w())}),nv=$({style:$({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderRadius:D([g(),w(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(120).optional().nullable(),columnsGap:g().min(0).max(120).optional().nullable(),rowsGap:g().min(0).max(120).optional().nullable(),controlGap:g().min(0).max(120).optional().nullable(),controlAlign:Q0.optional().nullable(),buttonSize:g().min(20).max(72).optional().nullable(),buttonGap:g().min(0).max(40).optional().nullable(),buttonRadius:g().min(0).max(999).optional().nullable(),buttonBg:w().optional().nullable(),buttonColor:w().optional().nullable(),buttonBorderColor:w().optional().nullable(),activeButtonBg:w().optional().nullable(),activeButtonColor:w().optional().nullable(),activeButtonBorderColor:w().optional().nullable(),arrowColor:w().optional().nullable(),fontSize:g().min(8).max(40).optional().nullable(),fontFamily:w().optional().nullable()}).optional().nullable(),props:$({items:Z(ev).min(1).max(50).optional().nullable(),cells:Z(tv).optional().nullable(),columnsCount:g().int().min(1).max(12).optional().nullable(),rowsCount:g().int().min(1).max(24).optional().nullable(),columnsCountTablet:g().int().min(1).max(12).optional().nullable(),columnsCountMobile:g().int().min(1).max(12).optional().nullable(),rowsCountTablet:g().int().min(1).max(24).optional().nullable(),rowsCountMobile:g().int().min(1).max(24).optional().nullable(),contentAlignment:E(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:E(["left","center","right"]).optional().nullable(),cellsPerPage:g().int().min(1).max(100).optional().nullable(),repeatableEnabled:z().optional().nullable(),pageParam:w().min(1).max(40).optional().nullable(),syncUrl:z().optional().nullable(),showNumbers:z().optional().nullable(),showPrevNext:z().optional().nullable(),showFirstLast:z().optional().nullable(),maxVisiblePages:g().min(0).max(50).optional().nullable(),prevLabel:w().max(24).optional().nullable(),nextLabel:w().max(24).optional().nullable(),firstLabel:w().max(24).optional().nullable(),lastLabel:w().max(24).optional().nullable(),scrollToTopOnChange:z().optional().nullable(),explicitFirstPage:z().optional().nullable()}).optional().nullable()}),yr={columnsCount:2,rowsCount:2};function rr(e,t="desktop"){const n=yr,r=(e==null?void 0:e.columnsCount)??n.columnsCount,o=(e==null?void 0:e.rowsCount)??n.rowsCount,i=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??r:r,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;let l;Array.isArray(e==null?void 0:e.cells)?l=e.cells:Array.isArray(e==null?void 0:e.items)?l=e.items.map(u=>({childrenIds:Array.isArray(u==null?void 0:u.contentChildrenIds)?u.contentChildrenIds:[]})):l=[];const s=Math.max(1,r*o,i*a,l.length),c=Array.from({length:s},(u,m)=>{var d;return{childrenIds:Array.isArray((d=l[m])==null?void 0:d.childrenIds)?l[m].childrenIds:[]}});return{columnsCount:i,rowsCount:a,cells:c}}function or(e,t="desktop"){if((e==null?void 0:e.cellsPerPage)!=null)return Math.max(1,e.cellsPerPage);const n=(e==null?void 0:e.columnsCount)??yr.columnsCount,r=(e==null?void 0:e.rowsCount)??yr.rowsCount,o=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;return Math.max(1,o*i)}function rv(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const r=[];for(let o=0;o<e.length;o+=n)r.push(e.slice(o,o+n));return r}const ov={pageParam:"page",syncUrl:!0,showNumbers:!0,showPrevNext:!0,showFirstLast:!1,maxVisiblePages:7,scrollToTopOnChange:!0,prevLabel:"‹",nextLabel:"›",firstLabel:"«",lastLabel:"»",itemGap:16,controlGap:24,controlAlign:"center",buttonSize:36,buttonGap:8,buttonRadius:8,buttonBg:"#ffffff",buttonColor:"#262626",buttonBorderColor:"rgba(0,0,0,.12)",activeButtonBg:"#5550ff",activeButtonColor:"#ffffff",activeButtonBorderColor:"#5550ff",arrowColor:"#262626",fontSize:14};function iv({style:e,props:t}){const n=ov;return{pageParam:((t==null?void 0:t.pageParam)??n.pageParam).trim()||n.pageParam,syncUrl:(t==null?void 0:t.syncUrl)??n.syncUrl,showNumbers:(t==null?void 0:t.showNumbers)??n.showNumbers,showPrevNext:(t==null?void 0:t.showPrevNext)??n.showPrevNext,showFirstLast:(t==null?void 0:t.showFirstLast)??n.showFirstLast,maxVisiblePages:(()=>{const r=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return r<=0?0:Math.max(5,r)})(),scrollToTopOnChange:(t==null?void 0:t.scrollToTopOnChange)??n.scrollToTopOnChange,explicitFirstPage:(t==null?void 0:t.syncUrl)??n.syncUrl,prevLabel:(t==null?void 0:t.prevLabel)??n.prevLabel,nextLabel:(t==null?void 0:t.nextLabel)??n.nextLabel,firstLabel:(t==null?void 0:t.firstLabel)??n.firstLabel,lastLabel:(t==null?void 0:t.lastLabel)??n.lastLabel,itemGap:(e==null?void 0:e.itemGap)??n.itemGap,controlGap:(e==null?void 0:e.controlGap)??n.controlGap,controlAlign:(e==null?void 0:e.controlAlign)??n.controlAlign,buttonSize:(e==null?void 0:e.buttonSize)??n.buttonSize,buttonGap:(e==null?void 0:e.buttonGap)??n.buttonGap,buttonRadius:(e==null?void 0:e.buttonRadius)??n.buttonRadius,buttonBg:(e==null?void 0:e.buttonBg)??n.buttonBg,buttonColor:(e==null?void 0:e.buttonColor)??n.buttonColor,buttonBorderColor:(e==null?void 0:e.buttonBorderColor)??n.buttonBorderColor,activeButtonBg:(e==null?void 0:e.activeButtonBg)??n.activeButtonBg,activeButtonColor:(e==null?void 0:e.activeButtonColor)??n.activeButtonColor,activeButtonBorderColor:(e==null?void 0:e.activeButtonBorderColor)??n.activeButtonBorderColor,arrowColor:(e==null?void 0:e.arrowColor)??n.arrowColor,fontSize:(e==null?void 0:e.fontSize)??n.fontSize,fontFamily:(e==null?void 0:e.fontFamily)??void 0}}function av(e){return Math.max(1,e)}function lv(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const r=[],o=Math.max(1,n-2),i=Math.floor(o/2);let a=Math.max(2,e-i),l=Math.min(t-1,a+o-1);a=Math.max(2,Math.min(a,l-o+1)),r.push(1),a>2&&r.push("ellipsis");for(let s=a;s<=l;s++)r.push(s);return l<t-1&&r.push("ellipsis"),r.push(t),r}function sv(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function cv({style:e,props:t}){const n=iv({style:e,props:t}),r=rr(t,"desktop"),o=rr(t,"tablet"),i=rr(t,"mobile"),a=Math.max(or(t,"desktop"),or(t,"tablet"),or(t,"mobile")),l=G.useMemo(()=>r.cells.length>=a?r.cells:Array.from({length:a},(C,y)=>r.cells[y]??{childrenIds:[]}),[r.cells,a]),s=G.useMemo(()=>rv(l,a),[l,a]),c=av(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,m=(e==null?void 0:e.rowsGap)??n.itemGap,d=G.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),h=G.useMemo(()=>lv(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),f=e==null?void 0:e.padding,b=e==null?void 0:e.margin,v=((b==null?void 0:b.left)??0)+((b==null?void 0:b.right)??0),S={width:v>0?`calc(100% - ${v}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:sv(e==null?void 0:e.borderRadius),padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,fontFamily:n.fontFamily},_=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",A={appearance:"none",WebkitAppearance:"none",minWidth:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,height:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,padding:"0 8px",borderRadius:`var(--ahd-pgn-btn-radius, ${n.buttonRadius}px)`,border:`1px solid ${n.buttonBorderColor}`,backgroundColor:n.buttonBg,backgroundImage:"none",color:n.buttonColor,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},x={...A,color:n.arrowColor},k=G.useMemo(()=>{const C=T=>`grid-template-columns:repeat(${T.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${T.rowsCount},auto)`,y=(T,M)=>{const L=Math.max(1,M.columnsCount*M.rowsCount);return L>=a?"":`${T} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${L+1}){display:none}`},I=`.${d}`;return`${I} .ahd-pgn-item{display:grid;${C(r)};column-gap:${u}px;row-gap:${m}px}${I} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+y(I,r)+`@media (max-width:${Ee}px){${I} .ahd-pgn-item{${C(o)}}${I} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(I,o)+`}@media (max-width:${Me}px){${I} .ahd-pgn-item{${C(i)}}${I} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(I,i)+"}"},[d,r,o,i,a,u,m,n.itemGap]),N=(C,y,I)=>p.jsx("button",{type:"button",className:`ahd-pgn-btn ${C}`,"data-ahd-page":I,style:x,"aria-label":y,children:y});return p.jsxs("div",{className:`${d} ahd-pagination`,style:S,"data-total-pages":c,"data-page-param":n.pageParam,"data-sync-url":n.syncUrl?"1":"0","data-explicit-first-page":n.explicitFirstPage?"1":"0","data-scroll-top":n.scrollToTopOnChange?"1":"0","data-max-visible":n.maxVisiblePages,"data-btn-bg":n.buttonBg,"data-btn-color":n.buttonColor,"data-btn-border":n.buttonBorderColor,"data-active-bg":n.activeButtonBg,"data-active-color":n.activeButtonColor,"data-active-border":n.activeButtonBorderColor,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),p.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((C,y)=>p.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":y,style:y===0?void 0:{display:"none"},children:C.map((I,T)=>p.jsx("div",{className:"ahd-pgn-cell",children:(I.childrenIds??[]).map(M=>p.jsx(pe,{id:M},M))},T))},y))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&p.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:_,marginTop:`var(--ahd-pgn-control-gap, ${n.controlGap}px)`,flexWrap:"wrap"},"data-show-numbers":n.showNumbers?"1":"0","data-show-prev-next":n.showPrevNext?"1":"0","data-show-first-last":n.showFirstLast?"1":"0",children:[n.showFirstLast&&N("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&N("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&p.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:h.map((C,y)=>C==="ellipsis"?p.jsx("span",{className:"ahd-pgn-ellipsis",style:{...A,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${y}`):p.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":C,"aria-label":`Page ${C}`,"aria-current":C===1?"true":void 0,style:C===1?{...A,backgroundColor:n.activeButtonBg,color:n.activeButtonColor,border:`1px solid ${n.activeButtonBorderColor}`}:A,children:C},C))}),n.showPrevNext&&N("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&N("ahd-pgn-last",n.lastLabel,c)]})]})}const uv=$({style:$({padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:E(["left","center","right"]).optional().nullable(),fontSize:g().optional().nullable(),fontFamily:w().optional().nullable(),color:w().optional().nullable(),backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderWidth:g().optional().nullable(),cellPadding:g().optional().nullable(),headerBackground:w().optional().nullable(),headerColor:w().optional().nullable()}).optional().nullable(),props:$({rows:g().int().min(1).max(50).optional().nullable(),columns:g().int().min(1).max(20).optional().nullable(),hasHeader:z().optional().nullable(),cells:Z(w()).optional().nullable(),caption:w().optional().nullable(),width:w().optional().nullable()}).optional().nullable()}),Be={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14};function co(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function uo(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function dv(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}function hv(e){if(!e)return;const t=Jt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}let fv=0;function Va(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Ei(e){return e?Va(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function ir(e){return e?Va(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function gv({style:e,props:t,renderCell:n}){const r=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??Be.rows)),o=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??Be.columns)),i=(t==null?void 0:t.hasHeader)??Be.hasHeader,a=(t==null?void 0:t.cells)??[],l=r*o,s=a.length===l?a:Array.from({length:l},(L,F)=>a[F]??""),c=(e==null?void 0:e.borderColor)??Be.borderColor,u=(e==null?void 0:e.borderWidth)??Be.borderWidth,m=(e==null?void 0:e.cellPadding)??Be.cellPadding,d=(e==null?void 0:e.headerBackground)??Be.headerBackground,h=(e==null?void 0:e.headerColor)??Be.headerColor,f=(e==null?void 0:e.color)??Be.color,b=(e==null?void 0:e.fontSize)??Be.fontSize,v=(e==null?void 0:e.backgroundColor)??null,S=`ahd-table-${++fv}`,_={padding:co(e==null?void 0:e.padding),margin:uo(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},A=hv(e==null?void 0:e.fontFamily),x={borderCollapse:"collapse",width:(t==null?void 0:t.width)||"100%",fontSize:b,textAlign:(e==null?void 0:e.textAlign)??void 0},k={border:`${u}px solid ${c}`,padding:m,verticalAlign:"top"},N=A?`.${S}, .${S} * { font-family: ${A} !important; }`:"",C=`
|
|
166
|
+
.${S} { ${Ei(v)} }
|
|
167
|
+
${N}
|
|
168
|
+
.${S} > tbody > tr > td > .ahd-table-cell-text { ${ir(f)} display: block; }
|
|
169
|
+
.${S} > thead > tr > th { ${Ei(d)} }
|
|
170
|
+
.${S} > thead > tr > th > .ahd-table-cell-text { ${ir(h)} display: block; }
|
|
171
|
+
.${S} > caption > .ahd-table-cell-text { ${ir(f)} display: block; }
|
|
172
|
+
`,y=Array.from({length:r},(L,F)=>F),I=Array.from({length:o},(L,F)=>F),T=L=>L.includes("<"),M=(L,F,P,O)=>n?n({row:L,col:F,value:P,isHeader:O}):T(P)?p.jsx("span",{dangerouslySetInnerHTML:{__html:P}}):P.split(`
|
|
173
|
+
`).map((B,Q,ne)=>p.jsxs(G.Fragment,{children:[B,Q<ne.length-1?p.jsx("br",{}):null]},Q));return p.jsxs("div",{className:"table-block",style:_,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),p.jsxs("table",{className:S,style:x,role:"table",children:[t!=null&&t.caption?p.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:p.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,i?p.jsx("thead",{children:p.jsx("tr",{children:I.map(L=>p.jsx("th",{scope:"col",style:{...k,fontWeight:600},children:p.jsx("div",{className:"ahd-table-cell-text",children:M(0,L,s[L]??"",!0)})},L))})}):null,p.jsx("tbody",{children:y.slice(i?1:0).map(L=>p.jsx("tr",{children:I.map(F=>p.jsx("td",{style:k,children:p.jsx("div",{className:"ahd-table-cell-text",children:M(L,F,s[L*o+F]??"",!1)})},F))},L))})]})]})}const Ii=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),mv=$({responsive:Ke,style:$({padding:Ii,margin:Ii,textAlign:E(["left","center","right"]).optional().nullable()}).optional().nullable(),props:$({demoId:w().default(""),iframeSrc:w().default(""),width:D([g(),w()]).optional().nullable(),height:D([g(),w()]).optional().nullable(),borderRadius:g().optional().nullable(),borderColor:w().optional().nullable(),borderWidth:g().optional().nullable()}).optional().nullable()}),Pi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,pv=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,ar=1440,lr=830,bv=({style:e,props:t})=>{const{demoId:n,iframeSrc:r,width:o,borderRadius:i,borderColor:a,borderWidth:l}=t??{},s={padding:Pi(e==null?void 0:e.padding),margin:Pi(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!r)return p.jsx(p.Fragment,{});const c=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return p.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:c},children:p.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${pv(o,"100%")})`,aspectRatio:`${ar} / ${lr}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:a?`${l??1}px solid ${a}`:"none"},children:p.jsx("div",{id:"demoScaler",style:{width:ar,height:lr,transformOrigin:"top left"},children:p.jsx("iframe",{src:r,style:{width:ar,height:lr,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},r)})})})},qa=Ch(()=>$({id:w().optional(),name:w().optional(),href:w().optional(),menuImage:w().optional(),children:Z(qa).optional()})),vv=$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),xv=$({menuId:w().default(""),useCustomMenu:z().default(!1),stickyNav:z().default(!1),position:E(["left","center","right"]).default("left"),orientation:E(["horizontal","vertical"]).default("horizontal"),menuItems:Z(qa).optional().nullable(),startChildrenIds:Z(w()).optional().nullable(),endChildrenIds:Z(w()).optional().nullable(),layout:E(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:w().default("transparent"),textColor:w().default("#000000"),fontSize:w().default("14px"),fontFamily:w().optional().nullable(),fontWeight:w().default("400"),padding:w().default("8px 16px"),blockPadding:vv,gap:w().default("16px"),showIcons:z().default(!0),iconSize:w().default("24px")}),Sv=$({style:$({}).passthrough().optional().nullable(),responsive:Ke,props:xv.optional().nullable()}),_v={left:"flex-start",center:"center",right:"flex-end"},wv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,kv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,$v=e=>e?e.left+e.right:0,Cv=(e,t,n=!1,r,o)=>{const i=$v(o);return{backgroundColor:e,width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:wv(r),margin:kv(o),justifyContent:n?"space-between":_v[t]||"flex-start"}},sr=(e,t=!1)=>({display:"flex",alignItems:"center",flex:t?"1 1 auto":"0 0 auto",justifyContent:e==="start"?"flex-start":e==="end"?"flex-end":"center",minWidth:0}),Av=(e,t,n)=>({listStyle:"none",margin:0,padding:0,display:e==="horizontal"&&t===0?"flex":"block",flexDirection:"row",flexWrap:"wrap",gap:e==="horizontal"&&t===0?n:"0"}),yv={position:"relative"},Nv=(e,t,n,r,o,i,a)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:n,fontSize:r,fontWeight:o,fontFamily:a||void 0,padding:i,textDecoration:"none",whiteSpace:"nowrap"}),Rv=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),Ev=e=>({paddingLeft:e===0?"0":"12px"}),Iv={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},Pv=e=>({color:e});function Ov(e,t){const n=`.ahd-menu-${e}`,r=(t==null?void 0:t.dropdownBackground)||"#fff",o=[`${n}{position:relative}`,`${n} .ahd-menu-toggle{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}`,`${n} .ahd-menu-burger{display:none;width:20px;height:16px;cursor:pointer;flex-direction:column;justify-content:space-between;padding:0;margin:8px 12px;background:transparent;border:0}`,`${n} .ahd-menu-burger>span{display:block;height:2px;width:100%;background:currentColor;border-radius:2px;transition:transform .2s ease,opacity .2s ease}`].join(""),i=[`${n}{flex-wrap:nowrap!important;align-items:center!important;min-height:48px}`,`${n} .ahd-menu-center{display:none!important}`,`${n} .ahd-menu-start{flex:0 0 auto!important}`,`${n} .ahd-menu-end{flex:0 0 auto!important;margin-left:auto!important}`,`${n} .ahd-menu-burger{display:flex!important;margin-left:0!important;margin-right:0!important;z-index:2}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center{display:flex!important;flex-direction:column!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;z-index:100;background:${r};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(1){transform:translateY(7px) rotate(45deg)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(2){opacity:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}`].join(""),a=`(max-width:${Ee}px)`;return o+`@media ${a}{${i}}@container ahd-page ${a}{${i}}`}const Tv=e=>{if(!e)return;const t=Jt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Ka=(e,t,n,r,o,i,a,l,s,c,u,m,d=0)=>!e||e.length===0?null:p.jsx("ul",{id:d===0?u:void 0,className:d===0?"ahd-menu-list":"ahd-menu-sublist",style:Av(i,d,a),children:e.map((h,f)=>p.jsxs("li",{style:yv,children:[p.jsx("label",{htmlFor:c,className:"ahd-menu-item-label",style:{display:"contents"},children:p.jsxs("a",{href:h.href||"#",style:Nv(l,!!h.menuImage,t,n,r,o,m),children:[l&&h.menuImage&&p.jsx("img",{src:h.menuImage,alt:"","aria-hidden":"true",style:Rv(s)}),h.name||h.label||""]})}),h.children&&h.children.length>0&&p.jsx("div",{style:Ev(d),children:Ka(h.children,t,n,r,o,"vertical",a,l,s,c,u,m,d+1)})]},h.id||f))}),Mv=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:r=!1,menuItems:o,startChildrenIds:i,endChildrenIds:a,layout:l="menu-only",position:s="left",orientation:c="horizontal",backgroundColor:u="transparent",textColor:m="#000000",fontSize:d="14px",fontFamily:h,fontWeight:f="400",padding:b="8px 16px",blockPadding:v,blockMargin:S,gap:_="16px",showIcons:A=!0,iconSize:x="24px",borderColor:k,borderWidth:N,borderRadius:C}=e??{};if(!(Array.isArray(o)&&o.length>0)||!n&&!t)return p.jsx(p.Fragment,{});const I=l==="logo-menu"||l==="logo-menu-cta",T=l==="menu-cta"||l==="logo-menu-cta",M=I||T,L=s==="right"?"end":s==="center"?"center":"start",F=G.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),P=t||F,O=`ahd-menu-toggle-${P}`,B=`ahd-menu-list-${P}`,Q=Tv(h),ne=r?`.ahd-menu-sticky-${P}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${P}){position:sticky;top:0;z-index:50}`:"",te=Ov(P,{dropdownBackground:u!=="transparent"?u:null});return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:te}}),ne&&p.jsx("style",{dangerouslySetInnerHTML:{__html:ne}}),p.jsxs("nav",{className:`ahd-menu ahd-menu-${P}${r?` ahd-menu-sticky-${P}`:""}`,"data-block":"menu","data-layout":l,style:{...Cv(u,s,M,v,S),...r?{position:"sticky",top:0,zIndex:50}:{},...k?{borderStyle:"solid",borderColor:k,borderWidth:N?`${N.top??1}px ${N.right??1}px ${N.bottom??1}px ${N.left??1}px`:"1px"}:{},...C!=null?{borderRadius:typeof C=="number"?`${C}px`:`${(C==null?void 0:C.topLeft)??0}px ${(C==null?void 0:C.topRight)??0}px ${(C==null?void 0:C.bottomRight)??0}px ${(C==null?void 0:C.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[p.jsx("input",{type:"checkbox",id:O,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":B,style:Iv}),I&&p.jsx("div",{className:"ahd-menu-start",style:sr("start"),children:(i??[]).map(ie=>p.jsx(pe,{id:ie},ie))}),p.jsx("div",{className:"ahd-menu-center",style:sr(L,M),children:Ka(o,m,d,f,b,c,_,A,x,O,B,Q)}),T&&p.jsx("div",{className:"ahd-menu-end",style:sr("end"),children:(a??[]).map(ie=>p.jsx(pe,{id:ie},ie))}),p.jsxs("label",{htmlFor:O,className:"ahd-menu-burger","aria-hidden":"true",style:Pv(m),children:[p.jsx("span",{}),p.jsx("span",{}),p.jsx("span",{})]})]})]})},Lv=$({style:$({}).passthrough().optional().nullable(),props:$({formId:w().default(""),formName:w().default(""),iframeSrc:w().default(""),width:w().default("100%"),height:w().default("500px"),heightTablet:w().optional(),heightMobile:w().optional(),alignment:E(["left","center","right"]).default("left")}).optional().nullable()}),zv=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},jv=({props:e,style:t})=>{const{formId:n,iframeSrc:r,width:o,height:i,heightTablet:a,heightMobile:l,alignment:s="left",formName:c}=e??{};if(!n||!r)return p.jsx(p.Fragment,{});const u=s==="center"?"center":s==="right"?"flex-end":"flex-start",m=t??{},d={display:"flex",justifyContent:u,width:"100%",padding:zv(m.padding),backgroundColor:m.backgroundColor||void 0,borderRadius:m.borderRadius||void 0},h=`form-${n}-${Math.random().toString(36).slice(2,9)}`,f=a||l?`
|
|
174
|
+
#${h} {
|
|
175
|
+
${a?`@media (max-width: ${Ee}px) { height: ${a} !important; }`:""}
|
|
176
|
+
${l?`@media (max-width: ${Me}px) { height: ${l} !important; }`:""}
|
|
177
|
+
}
|
|
178
|
+
`:"";return p.jsxs(p.Fragment,{children:[f&&p.jsx("style",{dangerouslySetInnerHTML:{__html:f}}),p.jsx("div",{style:d,children:p.jsx("iframe",{id:h,src:r,title:c||"Form",style:{width:o||"100%",height:i||"500px",border:"none",display:"block",borderRadius:m.borderRadius||void 0},loading:"lazy"})})]})},Bv=$({style:$({}).passthrough().optional().nullable(),props:$({bannerId:w().default(""),bannerName:w().optional().nullable(),contentDocument:$t(w(),Wt()).optional().nullable(),padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),Dv=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},Hv=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},Fv=({props:e})=>{const{bannerId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?n&&n.root?p.jsx("div",{className:"app-banner-picker-block",style:{...Dv(r),...Hv(o)},children:p.jsx(qt,{document:n,rootBlockId:"root"})}):p.jsx(p.Fragment,{}):p.jsx(p.Fragment,{})},Gv=$({style:$({}).passthrough().optional().nullable(),props:$({faqGroupId:w().default(""),faqGroupName:w().optional().nullable(),contentDocument:$t(w(),Wt()).optional().nullable(),padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),Uv=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},Zv=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},Wv=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?!n||!n.root?p.jsx(p.Fragment,{}):p.jsx("div",{className:"faq-picker-block",style:{...Uv(r),...Zv(o)},children:p.jsx(qt,{document:n,rootBlockId:"root"})}):p.jsx(p.Fragment,{})},Vv=$({style:$({padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:E(["left","center","right"]).optional().nullable()}).optional().nullable(),props:$({text:w().optional().nullable(),targetId:w().optional().nullable(),backgroundColor:w().optional().nullable(),textColor:w().optional().nullable(),fontSize:g().optional().nullable(),borderRadius:g().optional().nullable(),paddingX:g().optional().nullable(),paddingY:g().optional().nullable(),marginX:g().optional().nullable(),marginY:g().optional().nullable(),displayMode:E(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),De={text:"Skip to main content",targetId:"main-content",backgroundColor:"#000000",textColor:"#ffffff",fontSize:14,borderRadius:4,paddingX:12,paddingY:8,marginX:0,marginY:0};let qv=0;function Ya({style:e,props:t}){var S,_;const n=((S=t==null?void 0:t.text)==null?void 0:S.trim())||De.text,r=((_=t==null?void 0:t.targetId)==null?void 0:_.trim())||De.targetId,o=(t==null?void 0:t.backgroundColor)??De.backgroundColor,i=(t==null?void 0:t.textColor)??De.textColor,a=(t==null?void 0:t.fontSize)??De.fontSize,l=(t==null?void 0:t.borderRadius)??De.borderRadius,s=(t==null?void 0:t.paddingX)??De.paddingX,c=(t==null?void 0:t.paddingY)??De.paddingY,u=(t==null?void 0:t.marginX)??De.marginX,m=(t==null?void 0:t.marginY)??De.marginY,d="always-visible",h=`skip-link-${++qv}`,f={padding:co(e==null?void 0:e.padding),margin:uo(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
|
|
179
|
+
display:inline-block;
|
|
180
|
+
background:${o};
|
|
181
|
+
color:${i};
|
|
182
|
+
font-size:${a}px;
|
|
183
|
+
font-weight:600;
|
|
184
|
+
border-radius:${l}px;
|
|
185
|
+
padding:${c}px ${s}px;
|
|
186
|
+
margin:${m}px ${u}px;
|
|
187
|
+
text-decoration:none;
|
|
188
|
+
line-height:1.2;
|
|
189
|
+
font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
|
|
190
|
+
`,v=`.${h}{${b}}
|
|
191
|
+
.${h}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return p.jsxs("div",{className:"skip-link-block",style:f,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),p.jsx("a",{href:`#${r}`,className:h,"data-skip-link":d,children:n})]})}const Kv=$({style:$({padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:E(["left","center","right"]).optional().nullable()}).optional().nullable(),props:$({renderMode:E(["inline","floating"]).optional().nullable(),position:E(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:w().optional().nullable(),triggerText:w().optional().nullable(),showLabelText:z().optional().nullable(),triggerBg:w().optional().nullable(),triggerColor:w().optional().nullable(),triggerFontSize:g().optional().nullable(),triggerBorderRadius:g().optional().nullable(),triggerPadding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),triggerMargin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),icon:E(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:$({contrast:z().optional().nullable(),invert:z().optional().nullable(),saturation:z().optional().nullable(),highlightLinks:z().optional().nullable(),textSize:z().optional().nullable(),textSpacing:z().optional().nullable(),lineHeight:z().optional().nullable(),hideImages:z().optional().nullable(),bigCursor:z().optional().nullable(),reset:z().optional().nullable()}).optional().nullable()}).optional().nullable()}),He={renderMode:"floating",position:"top-right",triggerLabel:"Accessibility tools",triggerBg:"#2563eb",triggerColor:"#ffffff",triggerFontSize:13,triggerBorderRadius:999,triggerPadding:{top:8,right:14,bottom:8,left:14},triggerMargin:{top:0,right:0,bottom:0,left:0},icon:"accessibility"},cr={accessibility:"M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2zm-9 2.5c1.38 0 2.5-1.12 2.5-2.5S13.38 6.5 12 6.5 9.5 7.62 9.5 9s1.12 2.5 2.5 2.5z","universal-access":"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm5 5.2l-3.5.8v2l1.2 4.5-1.7.4-1-3.9-1 3.9-1.7-.4L9.5 13v-2L6 10.2l.3-1.5L12 10l5.7-1.3z",person:"M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-3.3 0-8 1.67-8 5v3h16v-3c0-3.33-4.7-5-8-5z",eye:"M12 5c-7 0-11 7-11 7s4 7 11 7 11-7 11-7-4-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",info:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 15h-2v-6h2zm0-8h-2V7h2z"};function Yv(e){return e&&cr[e]?cr[e]:cr.accessibility}function Jv(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${Yv(e)}"/></svg>`}const Xv={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function Qv(e){const t=e??"top-right";return{containerPos:t==="top-right"?"top:16px;right:16px;":t==="top-left"?"top:16px;left:16px;":t==="bottom-right"?"bottom:16px;right:16px;":"bottom:16px;left:16px;"}}function Ja(e){const{containerPos:t}=Qv(e.position);return`
|
|
192
|
+
/* Accessibility Tools widget */
|
|
193
|
+
.ahd-a11y-widget{position:relative;display:inline-block}
|
|
194
|
+
.ahd-a11y-widget.ahd-a11y-floating{position:fixed;${t}z-index:99999}
|
|
195
|
+
.ahd-a11y-trigger{display:inline-flex;align-items:center;gap:6px;border:none;background:#2563eb;color:#fff;border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,0.12);line-height:1.2;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
|
|
196
|
+
.ahd-a11y-trigger svg{width:18px;height:18px;fill:currentColor;flex:none}
|
|
197
|
+
.ahd-a11y-trigger:focus-visible{outline:3px solid #000;outline-offset:3px}
|
|
198
|
+
.ahd-a11y-panel{position:fixed;top:0;left:0;width:300px;max-width:calc(100vw - 32px);background:#fff;color:#111;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,0.2);padding:16px;display:none;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:14px;z-index:2147483000}
|
|
199
|
+
.ahd-a11y-panel[data-open="true"]{display:block}
|
|
200
|
+
.ahd-a11y-panel h2{margin:0 0 12px 0;font-size:15px;font-weight:600;border-bottom:1px solid #eee;padding-bottom:8px}
|
|
201
|
+
.ahd-a11y-group{margin-bottom:12px}
|
|
202
|
+
.ahd-a11y-group-title{font-size:12px;font-weight:600;color:#555;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
|
|
203
|
+
.ahd-a11y-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
|
|
204
|
+
.ahd-a11y-btn{border:1px solid #ddd;background:#fafafa;border-radius:8px;padding:8px 6px;font-size:12px;font-weight:500;cursor:pointer;text-align:center;color:inherit;line-height:1.2}
|
|
205
|
+
.ahd-a11y-btn:hover{background:#f0f0f0}
|
|
206
|
+
.ahd-a11y-btn[aria-pressed="true"]{background:#2563eb;color:#fff;border-color:#2563eb}
|
|
207
|
+
.ahd-a11y-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
|
|
208
|
+
.ahd-a11y-reset{width:100%;margin-top:8px;padding:10px;background:#111;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600}
|
|
209
|
+
|
|
210
|
+
/* Active feature classes applied to <html> */
|
|
211
|
+
html.a11y-contrast{filter:contrast(1.5) !important}
|
|
212
|
+
html.a11y-invert{filter:invert(1) hue-rotate(180deg) !important}
|
|
213
|
+
html.a11y-invert img,html.a11y-invert video,html.a11y-invert iframe{filter:invert(1) hue-rotate(180deg) !important}
|
|
214
|
+
html.a11y-desat{filter:grayscale(1) !important}
|
|
215
|
+
html.a11y-highlight-links a{background:#ffff00 !important;color:#000 !important;text-decoration:underline !important;outline:1px solid #000 !important}
|
|
216
|
+
html.a11y-text-lg .ahd-page-root{zoom:1.15;font-size:115% !important}
|
|
217
|
+
html.a11y-text-xl .ahd-page-root{zoom:1.3;font-size:130% !important}
|
|
218
|
+
html.a11y-text-sm .ahd-page-root{zoom:0.9;font-size:90% !important}
|
|
219
|
+
html.a11y-spacing,html.a11y-spacing *{letter-spacing:0.12em !important;word-spacing:0.16em !important}
|
|
220
|
+
html.a11y-lineheight,html.a11y-lineheight *{line-height:1.8 !important}
|
|
221
|
+
html.a11y-hide-images img,html.a11y-hide-images picture,html.a11y-hide-images video{visibility:hidden !important}
|
|
222
|
+
html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M4 2 L4 26 L10 20 L14 30 L18 28 L14 18 L22 18 Z" fill="black" stroke="white" stroke-width="1.5"/></svg>') 4 2, auto !important}
|
|
223
|
+
`.trim()}function Xa(e){const t={...Xv,...e.features??{}},n=(m,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${m}" aria-pressed="false">${d}</button>`,r=t.contrast||t.invert||t.saturation?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Color & Contrast</div><div class="ahd-a11y-row">${[t.contrast?n("contrast","High contrast"):"",t.invert?n("invert","Invert colors"):"",t.saturation?n("desat","Grayscale"):""].filter(Boolean).join("")}</div></div>`:"",o=t.textSize||t.textSpacing||t.lineHeight?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Text</div><div class="ahd-a11y-row">${[t.textSize?n("text-sm","A-"):"",t.textSize?n("text-lg","A+"):"",t.textSize?n("text-xl","A++"):"",t.textSpacing?n("spacing","Spacing"):"",t.lineHeight?n("lineheight","Line height"):"",t.highlightLinks?n("highlight-links","Highlight links"):""].filter(Boolean).join("")}</div></div>`:"",i=t.hideImages||t.bigCursor?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Other</div><div class="ahd-a11y-row">${[t.hideImages?n("hide-images","Hide images"):"",t.bigCursor?n("big-cursor","Big cursor"):""].filter(Boolean).join("")}</div></div>`:"",a=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=Jv(e.icon??"accessibility"),c=dv(e.triggerText,e.showLabelText!==!1,"Accessibility"),u=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
|
|
224
|
+
<div class="ahd-a11y-widget ahd-a11y-${l}">
|
|
225
|
+
<button type="button" class="ahd-a11y-trigger" aria-label="${u}" aria-expanded="false" aria-controls="ahd-a11y-panel">${s}${c!==null?`<span>${c}</span>`:""}</button>
|
|
226
|
+
<div class="ahd-a11y-panel" id="ahd-a11y-panel" role="dialog" aria-label="Accessibility tools" aria-hidden="true" data-open="false">
|
|
227
|
+
<h2>Accessibility Tools</h2>
|
|
228
|
+
${r}${o}${i}${a}
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
`.trim()}function Qa(){return`
|
|
232
|
+
(function(){
|
|
233
|
+
var STORAGE_KEY='ahdA11yPrefs';
|
|
234
|
+
// Classes that are mutually exclusive within their group
|
|
235
|
+
var EXCLUSIVE_GROUPS=[['text-sm','text-lg','text-xl']];
|
|
236
|
+
var ALL=['contrast','invert','desat','highlight-links','text-sm','text-lg','text-xl','spacing','lineheight','hide-images','big-cursor'];
|
|
237
|
+
|
|
238
|
+
function load(){try{return JSON.parse(localStorage.getItem(STORAGE_KEY)||'{}')||{}}catch(e){return {}}}
|
|
239
|
+
function save(state){try{localStorage.setItem(STORAGE_KEY,JSON.stringify(state))}catch(e){}}
|
|
240
|
+
function apply(state){
|
|
241
|
+
var html=document.documentElement;
|
|
242
|
+
ALL.forEach(function(c){html.classList.toggle('a11y-'+c,!!state[c])});
|
|
243
|
+
document.querySelectorAll('[data-a11y]').forEach(function(btn){
|
|
244
|
+
var action=btn.getAttribute('data-a11y');
|
|
245
|
+
btn.setAttribute('aria-pressed',state[action]?'true':'false');
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
function toggle(action){
|
|
249
|
+
var state=load();
|
|
250
|
+
state[action]=!state[action];
|
|
251
|
+
// Enforce exclusive groups
|
|
252
|
+
EXCLUSIVE_GROUPS.forEach(function(group){
|
|
253
|
+
if(group.indexOf(action)!==-1 && state[action]){
|
|
254
|
+
group.forEach(function(other){if(other!==action)state[other]=false});
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
save(state);
|
|
258
|
+
apply(state);
|
|
259
|
+
}
|
|
260
|
+
function reset(){save({});apply({})}
|
|
261
|
+
|
|
262
|
+
function positionPanel(trigger,panel){
|
|
263
|
+
var r=trigger.getBoundingClientRect();
|
|
264
|
+
var panelW=panel.offsetWidth||300;
|
|
265
|
+
var panelH=panel.offsetHeight||400;
|
|
266
|
+
var gap=8;
|
|
267
|
+
var vw=window.innerWidth;
|
|
268
|
+
var vh=window.innerHeight;
|
|
269
|
+
// Prefer below; flip up if not enough space
|
|
270
|
+
var top=r.bottom+gap;
|
|
271
|
+
if(top+panelH>vh-8)top=Math.max(8,r.top-gap-panelH);
|
|
272
|
+
// Align right edge with trigger's right; clamp to viewport
|
|
273
|
+
var left=r.right-panelW;
|
|
274
|
+
if(left<8)left=8;
|
|
275
|
+
if(left+panelW>vw-8)left=vw-8-panelW;
|
|
276
|
+
panel.style.top=top+'px';
|
|
277
|
+
panel.style.left=left+'px';
|
|
278
|
+
}
|
|
279
|
+
function openPanel(trigger,panel){
|
|
280
|
+
panel.setAttribute('data-open','true');
|
|
281
|
+
panel.setAttribute('aria-hidden','false');
|
|
282
|
+
trigger.setAttribute('aria-expanded','true');
|
|
283
|
+
// Panel must be display:block before measuring offsetWidth/Height
|
|
284
|
+
panel.style.display='block';
|
|
285
|
+
positionPanel(trigger,panel);
|
|
286
|
+
}
|
|
287
|
+
function closePanel(trigger,panel){
|
|
288
|
+
panel.setAttribute('data-open','false');
|
|
289
|
+
panel.setAttribute('aria-hidden','true');
|
|
290
|
+
trigger.setAttribute('aria-expanded','false');
|
|
291
|
+
panel.style.display='';
|
|
292
|
+
}
|
|
293
|
+
function init(){
|
|
294
|
+
if(window.__ahdA11yInit)return;
|
|
295
|
+
window.__ahdA11yInit=true;
|
|
296
|
+
apply(load());
|
|
297
|
+
var trigger=document.querySelector('.ahd-a11y-trigger');
|
|
298
|
+
var panel=document.getElementById('ahd-a11y-panel');
|
|
299
|
+
if(trigger&&panel){
|
|
300
|
+
trigger.addEventListener('click',function(e){
|
|
301
|
+
e.preventDefault();
|
|
302
|
+
e.stopPropagation();
|
|
303
|
+
var open=panel.getAttribute('data-open')==='true';
|
|
304
|
+
if(open)closePanel(trigger,panel);
|
|
305
|
+
else openPanel(trigger,panel);
|
|
306
|
+
});
|
|
307
|
+
document.addEventListener('click',function(e){
|
|
308
|
+
if(panel.getAttribute('data-open')!=='true')return;
|
|
309
|
+
if(!panel.contains(e.target)&&!trigger.contains(e.target)){
|
|
310
|
+
closePanel(trigger,panel);
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
document.addEventListener('keydown',function(e){
|
|
314
|
+
if(e.key==='Escape'&&panel.getAttribute('data-open')==='true'){
|
|
315
|
+
closePanel(trigger,panel);
|
|
316
|
+
trigger.focus();
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
window.addEventListener('resize',function(){
|
|
320
|
+
if(panel.getAttribute('data-open')==='true')positionPanel(trigger,panel);
|
|
321
|
+
});
|
|
322
|
+
window.addEventListener('scroll',function(){
|
|
323
|
+
if(panel.getAttribute('data-open')==='true')positionPanel(trigger,panel);
|
|
324
|
+
},true);
|
|
325
|
+
}
|
|
326
|
+
document.querySelectorAll('[data-a11y]').forEach(function(btn){
|
|
327
|
+
btn.addEventListener('click',function(){toggle(btn.getAttribute('data-a11y'))});
|
|
328
|
+
});
|
|
329
|
+
var resetBtn=document.querySelector('[data-a11y-reset]');
|
|
330
|
+
if(resetBtn)resetBtn.addEventListener('click',reset);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
if(document.readyState==='loading'){
|
|
334
|
+
document.addEventListener('DOMContentLoaded',init);
|
|
335
|
+
} else {
|
|
336
|
+
init();
|
|
337
|
+
}
|
|
338
|
+
})();
|
|
339
|
+
`.trim()}function el({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??He.renderMode,r=(t==null?void 0:t.position)??He.position,o=(t==null?void 0:t.features)??void 0,i=(t==null?void 0:t.triggerBg)??He.triggerBg,a=(t==null?void 0:t.triggerColor)??He.triggerColor,l=(t==null?void 0:t.triggerLabel)??He.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,c=(t==null?void 0:t.triggerFontSize)??He.triggerFontSize,u=(t==null?void 0:t.triggerBorderRadius)??He.triggerBorderRadius,m=(t==null?void 0:t.triggerPadding)??He.triggerPadding,d=(t==null?void 0:t.triggerMargin)??He.triggerMargin,h=(t==null?void 0:t.icon)??He.icon,f={padding:co(e==null?void 0:e.padding),margin:uo(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:r,features:o,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:h,triggerLabel:l},v=Ja(b),S=`.ahd-a11y-trigger{background:${i};color:${a};font-size:${c}px;border-radius:${u}px;padding:${m.top}px ${m.right}px ${m.bottom}px ${m.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,_=Xa(b),A=Qa();return p.jsxs("div",{className:"accessibility-tools-block",style:f,"data-a11y-instance":"1",children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:v+S}}),p.jsx("div",{dangerouslySetInnerHTML:{__html:_}}),p.jsx("script",{dangerouslySetInnerHTML:{__html:A}}),p.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}function ex(e,t,n){return e}function tx(e,t){return new Map}const nx=new Set(xm),rx=new Set(["fontWeight","lineHeight","opacity","zIndex"]),ox=new Set(["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","lineHeight","textAlign","padding","margin","marginBottom","width","height","borderRadius","backgroundImage","backgroundSize","backgroundRepeat"]);function ix(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function ax(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&("top"in e||"right"in e||"bottom"in e||"left"in e)}function lx(e,t){if(t==null)return null;if((e==="padding"||e==="margin")&&ax(t)){const n=t.top??0,r=t.right??0,o=t.bottom??0,i=t.left??0;return`${n}px ${r}px ${o}px ${i}px`}return typeof t=="number"?rx.has(e)?String(t):`${t}px`:typeof t=="string"?t:null}function sx(e){return e.replace(/([^a-zA-Z0-9_-])/g,"\\$1")}function Oi(e,t,n){if(!n)return"";const r=[];for(const o of Object.keys(n)){if(!nx.has(o)||!ox.has(o))continue;const i=lx(o,n[o]);i===null||i===""||r.push(`${ix(o)}:${i} !important`)}return r.length===0?"":`${t}{${e},${e}>*{${r.join(";")}}}`}function cx(e,t){var a,l;const n=t==null?void 0:t.responsive;if(!n)return"";const r=`#${sx(e)}`,o=Oi(r,Ta,(a=n.tablet)==null?void 0:a.style),i=Oi(r,ye,(l=n.mobile)==null?void 0:l.style);return o+i}const ux=Qo.extend({props:Qo.shape.props.unwrap().unwrap().extend({decorative:z().optional().nullable()}).optional().nullable()}),dx=e=>{var r,o;const t=!!((r=e==null?void 0:e.props)!=null&&r.decorative),n=((o=e==null?void 0:e.props)==null?void 0:o.alt)??"";return t?p.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:p.jsx(ei,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):p.jsx(ei,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},hx=e=>p.jsx("div",{"aria-hidden":"true",style:{display:"contents"},children:p.jsx(em,{...e})}),fx=mb,tl=G.createContext({});function nl(e){var n,r;const t=(r=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:r.formFields;return Array.isArray(t)?t:[]}const Ti=new WeakMap;function gx(e){if(!e||typeof e!="object")return new Map;let t=Ti.get(e);return t||(t=tx(e,nl(e)),Ti.set(e,t)),t}const rl=G.createContext({});function mx(){return G.useContext(tl)}function px(){return G.useContext(rl)}const ol={ColumnsContainer:{schema:Xm,Component:ep},FlexColumns:{schema:tp,Component:sp},Grid:{schema:xp,Component:kp},ButtonGroup:{schema:qb,Component:Kb},Container:{schema:Dp,Component:Hp},EmailLayout:{schema:Xp,Component:fx},Accordion:{schema:Jb,Component:Qb},PricingAccordion:{schema:t0,Component:r0},TabsBlock:{schema:i0,Component:f0},Carousel:{schema:b0,Component:_0},Rating:{schema:w0,Component:A0},Marquee:{schema:y0,Component:D0},Timer:{schema:G0,Component:X0},Pagination:{schema:nv,Component:cv},Table:{schema:uv,Component:gv},DemoPicker:{schema:mv,Component:e=>p.jsx(bv,{...e})},MenuPicker:{schema:Sv,Component:e=>p.jsx(Mv,{...e})},FormsPicker:{schema:Lv,Component:e=>p.jsx(jv,{...e})},AppBannerPicker:{schema:Bv,Component:e=>p.jsx(Fv,{...e})},FaqPicker:{schema:Gv,Component:e=>p.jsx(Wv,{...e})},Avatar:{schema:ux,Component:dx},Button:{schema:sf,Component:cf},Divider:{schema:vf,Component:xf},Heading:{schema:Ef,Component:If},Html:{schema:ag,Component:cg},Image:{schema:Sg,Component:wg},Logo:{schema:Og,Component:Mg},Video:{schema:Vg,Component:Jg},IFrame:{schema:_m,Component:km},Calendly:{schema:Am,Component:Rm},YouTubeUrl:{schema:pm,Component:vm},Spacer:{schema:Xg,Component:hx},SkipLink:{schema:Vv,Component:Ya},AccessibilityTools:{schema:Kv,Component:el},Stepper:{schema:Cb,Component:Ab},List:{schema:Mb,Component:zb},Text:{schema:dm,Component:fm}},il=Mm(ol),bx=$t(w(),il),vx=Tm(ol);function pe({id:e}){var f,b;const t=mx(),{staticRender:n,injectElementIds:r,mainBlockId:o,hoistedSkipLinkId:i,hoistedA11yToolsId:a}=px(),l=t[e];if(i&&e===i&&(l==null?void 0:l.type)==="SkipLink"||a&&e===a&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=o&&e===o&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((f=l.data)==null?void 0:f.props)??{},elementId:"main-content"}}}:l;nl(t),gx(t).get(e);const c=ex(s),u=p.jsx(vx,{...c});if(e==="root")return u;const m=!!((b=l==null?void 0:l.data)!=null&&b.hidden),d=n&&r?`ahd-${e}`:e,h=cx(d,l==null?void 0:l.data);return n&&r?p.jsxs("div",{id:`ahd-${e}`,className:"ahd-block-wrapper",style:m?{display:"none"}:void 0,children:[h?p.jsx("style",{dangerouslySetInnerHTML:{__html:h}}):null,u]}):p.jsxs("div",{id:e,style:{scrollMarginTop:"80px",...m?{display:"none"}:null},children:[h?p.jsx("style",{dangerouslySetInnerHTML:{__html:h}}):null,u]})}function qt({document:e,rootBlockId:t,staticRender:n,injectElementIds:r,isBanner:o,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}){const s=G.useMemo(()=>({staticRender:!!n,injectElementIds:!!r,isBanner:!!o,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}),[n,r,o,i,a,l]);return p.jsx(tl.Provider,{value:e,children:p.jsx(rl.Provider,{value:s,children:p.jsx(pe,{id:t})})})}function xx(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function Sx(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function _x(e,t){const n=new Set;function r(o){var s,c,u,m;if(n.has(o))return;n.add(o);const i=e[o];if(!i)return;if(i.type==="Container"&&((c=(s=i.data)==null?void 0:s.props)==null?void 0:c.tag)==="main")return o;const a=((u=i.data)==null?void 0:u.props)??{},l=[];Array.isArray(a.childrenIds)&&l.push(a.childrenIds),Array.isArray((m=i.data)==null?void 0:m.childrenIds)&&l.push(i.data.childrenIds),Array.isArray(a.columns)&&a.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const h of d){const f=r(h);if(f)return f}}return r(t)}const wx=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),kx=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),$x=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),Cx=()=>`
|
|
340
|
+
(function () {
|
|
341
|
+
var BASE_WIDTH = 1440;
|
|
342
|
+
var BASE_HEIGHT = 830;
|
|
343
|
+
|
|
344
|
+
function scaleIframe() {
|
|
345
|
+
var aspect = document.getElementById('demoAspect');
|
|
346
|
+
var scaler = document.getElementById('demoScaler');
|
|
347
|
+
if (!aspect || !scaler) return;
|
|
348
|
+
|
|
349
|
+
var cw = aspect.clientWidth;
|
|
350
|
+
var ch = aspect.clientHeight;
|
|
351
|
+
var scale = Math.min(cw / BASE_WIDTH, ch / BASE_HEIGHT);
|
|
352
|
+
|
|
353
|
+
scaler.style.transformOrigin = 'top left';
|
|
354
|
+
scaler.style.transform = 'scale(' + scale + ')';
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
function init() {
|
|
358
|
+
scaleIframe();
|
|
359
|
+
window.addEventListener('resize', scaleIframe);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (document.readyState === 'loading') {
|
|
363
|
+
document.addEventListener('DOMContentLoaded', init);
|
|
364
|
+
} else {
|
|
365
|
+
init();
|
|
366
|
+
}
|
|
367
|
+
})();
|
|
368
|
+
`,Ax=()=>`
|
|
369
|
+
(function () {
|
|
370
|
+
if (window.__ahdTabsBound) return;
|
|
371
|
+
window.__ahdTabsBound = true;
|
|
372
|
+
|
|
373
|
+
function byClass(parent, className) {
|
|
374
|
+
return Array.prototype.filter.call((parent && parent.children) || [], function (child) {
|
|
375
|
+
return child.classList && child.classList.contains(className);
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
function partsOf(root) {
|
|
380
|
+
var nav = byClass(root, 'ahd-tabs-nav')[0];
|
|
381
|
+
var panelsWrap = byClass(root, 'ahd-tabs-panels')[0];
|
|
382
|
+
if (!nav || !panelsWrap) return null;
|
|
383
|
+
return {
|
|
384
|
+
labels: byClass(nav, 'ahd-tabs-label'),
|
|
385
|
+
panels: byClass(panelsWrap, 'ahd-tabs-panel'),
|
|
386
|
+
inputs: byClass(root, 'ahd-tabs-radio'),
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
function setActive(root, index) {
|
|
391
|
+
var p = partsOf(root);
|
|
392
|
+
if (!p || !p.labels.length || !p.panels.length) return;
|
|
393
|
+
var scrollMode = root.classList.contains('ahd-tabs-scroll-sections');
|
|
394
|
+
var vertical = root.classList.contains('ahd-tabs-vertical');
|
|
395
|
+
var activeColor = root.getAttribute('data-active-color') || '';
|
|
396
|
+
var textColor = root.getAttribute('data-text-color') || '';
|
|
397
|
+
var showBorder = root.getAttribute('data-active-border') === '1';
|
|
398
|
+
var activeFont = root.getAttribute('data-active-font') || '';
|
|
399
|
+
|
|
400
|
+
for (var j = 0; j < p.labels.length; j++) {
|
|
401
|
+
var on = j === index;
|
|
402
|
+
var label = p.labels[j];
|
|
403
|
+
label.style.color = on ? (activeColor || textColor || '') : (textColor || '');
|
|
404
|
+
if (showBorder) {
|
|
405
|
+
if (vertical) {
|
|
406
|
+
label.style.borderLeftColor = on ? activeColor : 'transparent';
|
|
407
|
+
} else {
|
|
408
|
+
label.style.borderBottomColor = on ? activeColor : 'transparent';
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
var text = label.querySelector('.ahd-tabs-label-text');
|
|
412
|
+
if (text && activeFont) text.style.fontSize = on ? activeFont : '';
|
|
413
|
+
if (p.inputs[j]) p.inputs[j].checked = on;
|
|
414
|
+
label.setAttribute('aria-selected', on ? 'true' : 'false');
|
|
415
|
+
}
|
|
416
|
+
// In scroll mode every panel stays visible; only the highlight moves.
|
|
417
|
+
if (!scrollMode) {
|
|
418
|
+
for (var k = 0; k < p.panels.length; k++) {
|
|
419
|
+
p.panels[k].style.display = k === index ? 'block' : 'none';
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
return p;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// Delegated click — survives content that is injected via innerHTML after this
|
|
426
|
+
// script runs, and re-parsing, because the listener lives on document.
|
|
427
|
+
document.addEventListener('click', function (event) {
|
|
428
|
+
var target = event.target;
|
|
429
|
+
var label = target && target.closest ? target.closest('.ahd-tabs-label') : null;
|
|
430
|
+
if (!label) return;
|
|
431
|
+
var root = label.closest('.ahd-tabs');
|
|
432
|
+
if (!root) return;
|
|
433
|
+
var nav = label.parentNode;
|
|
434
|
+
var labels = byClass(nav, 'ahd-tabs-label');
|
|
435
|
+
var index = labels.indexOf(label);
|
|
436
|
+
if (index < 0) return;
|
|
437
|
+
event.preventDefault();
|
|
438
|
+
setActive(root, index);
|
|
439
|
+
if (root.classList.contains('ahd-tabs-scroll-sections')) {
|
|
440
|
+
var p = partsOf(root);
|
|
441
|
+
var panel = p && p.panels[index];
|
|
442
|
+
if (panel) {
|
|
443
|
+
window.requestAnimationFrame(function () {
|
|
444
|
+
var reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
445
|
+
panel.scrollIntoView({ behavior: reduce ? 'auto' : 'smooth', block: 'start' });
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
|
|
451
|
+
function initRoot(root) {
|
|
452
|
+
if (root.dataset.ahdTabsReady === 'true') return;
|
|
453
|
+
var p = partsOf(root);
|
|
454
|
+
if (!p || !p.labels.length || !p.panels.length) return;
|
|
455
|
+
root.dataset.ahdTabsReady = 'true';
|
|
456
|
+
|
|
457
|
+
var checkedIndex = p.inputs.findIndex(function (input) { return input.checked; });
|
|
458
|
+
setActive(root, checkedIndex >= 0 ? checkedIndex : 0);
|
|
459
|
+
|
|
460
|
+
if (root.classList.contains('ahd-tabs-scroll-sections') && 'IntersectionObserver' in window) {
|
|
461
|
+
var observer = new IntersectionObserver(function (entries) {
|
|
462
|
+
var visible = entries
|
|
463
|
+
.filter(function (entry) { return entry.isIntersecting; })
|
|
464
|
+
.sort(function (a, b) { return b.intersectionRatio - a.intersectionRatio; })[0];
|
|
465
|
+
if (!visible) return;
|
|
466
|
+
var idx = p.panels.indexOf(visible.target);
|
|
467
|
+
if (idx >= 0) setActive(root, idx);
|
|
468
|
+
}, { root: null, rootMargin: '-20% 0px -55% 0px', threshold: [0.1, 0.25, 0.5, 0.75] });
|
|
469
|
+
p.panels.forEach(function (panel) { observer.observe(panel); });
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
function initAll() {
|
|
474
|
+
document.querySelectorAll('.ahd-tabs').forEach(initRoot);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
// Initial pass plus retries, so late-injected tabs (innerHTML, async widgets)
|
|
478
|
+
// still get their starting active state and observers wired.
|
|
479
|
+
if (document.readyState === 'loading') {
|
|
480
|
+
document.addEventListener('DOMContentLoaded', initAll);
|
|
481
|
+
} else {
|
|
482
|
+
initAll();
|
|
483
|
+
}
|
|
484
|
+
if (typeof MutationObserver !== 'undefined') {
|
|
485
|
+
var mo = new MutationObserver(function () { initAll(); });
|
|
486
|
+
mo.observe(document.documentElement || document.body, { childList: true, subtree: true });
|
|
487
|
+
} else {
|
|
488
|
+
var tries = 0;
|
|
489
|
+
var timer = setInterval(function () { initAll(); if (++tries > 20) clearInterval(timer); }, 250);
|
|
490
|
+
}
|
|
491
|
+
})();
|
|
492
|
+
`,yx=()=>`
|
|
493
|
+
(function () {
|
|
494
|
+
if (window.__ahdCarouselBound) return;
|
|
495
|
+
window.__ahdCarouselBound = true;
|
|
496
|
+
|
|
497
|
+
function byClass(parent, className) {
|
|
498
|
+
return Array.prototype.filter.call((parent && parent.querySelectorAll('.' + className)) || [], function () { return true; });
|
|
499
|
+
}
|
|
500
|
+
function firstByClass(parent, className) {
|
|
501
|
+
return parent ? parent.querySelector('.' + className) : null;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
function partsOf(root) {
|
|
505
|
+
var viewport = firstByClass(root, 'ahd-carousel-viewport');
|
|
506
|
+
var track = firstByClass(root, 'ahd-carousel-track');
|
|
507
|
+
if (!viewport || !track) return null;
|
|
508
|
+
return {
|
|
509
|
+
viewport: viewport,
|
|
510
|
+
track: track,
|
|
511
|
+
slides: Array.prototype.slice.call(track.children),
|
|
512
|
+
dotsWrap: firstByClass(root, 'ahd-carousel-dots'),
|
|
513
|
+
prev: firstByClass(root, 'ahd-carousel-prev'),
|
|
514
|
+
next: firstByClass(root, 'ahd-carousel-next'),
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
function attrInt(root, name, fallback) {
|
|
519
|
+
var v = parseInt(root.getAttribute(name) || '', 10);
|
|
520
|
+
return Math.max(1, isNaN(v) ? fallback : v);
|
|
521
|
+
}
|
|
522
|
+
// Active slides-per-view must mirror the CSS @media breakpoints in
|
|
523
|
+
// CarouselReader (mobile <=600px, tablet <=1024px), otherwise the script
|
|
524
|
+
// pages against the desktop count and stops short on smaller screens.
|
|
525
|
+
function perViewOf(root) {
|
|
526
|
+
var desktop = attrInt(root, 'data-per-view', 1);
|
|
527
|
+
var w = (typeof window !== 'undefined' && window.innerWidth) || 0;
|
|
528
|
+
if (w && w <= 600) return attrInt(root, 'data-per-view-mobile', desktop);
|
|
529
|
+
if (w && w <= 1024) return attrInt(root, 'data-per-view-tablet', desktop);
|
|
530
|
+
return desktop;
|
|
531
|
+
}
|
|
532
|
+
function pageCountOf(root, p) {
|
|
533
|
+
return Math.max(1, p.slides.length - perViewOf(root) + 1);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
function render(root) {
|
|
537
|
+
var p = partsOf(root);
|
|
538
|
+
if (!p || !p.slides.length) return;
|
|
539
|
+
var index = parseInt(root.getAttribute('data-index') || '0', 10) || 0;
|
|
540
|
+
var pages = pageCountOf(root, p);
|
|
541
|
+
if (index < 0) index = 0;
|
|
542
|
+
if (index > pages - 1) index = pages - 1;
|
|
543
|
+
root.setAttribute('data-index', String(index));
|
|
544
|
+
|
|
545
|
+
var first = p.slides[0];
|
|
546
|
+
var slideW = first.getBoundingClientRect().width;
|
|
547
|
+
// The track lays out with CSS gap; read it so the offset matches the layout.
|
|
548
|
+
var trackStyle = window.getComputedStyle ? window.getComputedStyle(p.track) : null;
|
|
549
|
+
var gap = 0;
|
|
550
|
+
if (trackStyle) {
|
|
551
|
+
var g = parseFloat(trackStyle.columnGap || trackStyle.gap || '0');
|
|
552
|
+
if (!isNaN(g)) gap = g;
|
|
553
|
+
}
|
|
554
|
+
var offset = index * (slideW + gap);
|
|
555
|
+
p.track.style.transform = 'translateX(' + (-offset) + 'px)';
|
|
556
|
+
|
|
557
|
+
if (p.dotsWrap) {
|
|
558
|
+
var dotColor = p.dotsWrap.getAttribute('data-dot-color') || '';
|
|
559
|
+
var dotActive = p.dotsWrap.getAttribute('data-dot-active-color') || '';
|
|
560
|
+
var dots = byClass(p.dotsWrap, 'ahd-carousel-dot');
|
|
561
|
+
// The markup renders the max dots (smallest per-view); show only the dots
|
|
562
|
+
// the active breakpoint needs and hide the surplus.
|
|
563
|
+
for (var d = 0; d < dots.length; d++) {
|
|
564
|
+
dots[d].style.display = d < pages ? '' : 'none';
|
|
565
|
+
dots[d].style.backgroundColor = d === index ? dotActive : dotColor;
|
|
566
|
+
dots[d].setAttribute('aria-current', d === index ? 'true' : 'false');
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
var loop = root.getAttribute('data-loop') === '1';
|
|
570
|
+
if (p.prev) p.prev.style.opacity = (!loop && index <= 0) ? '0.4' : '1';
|
|
571
|
+
if (p.next) p.next.style.opacity = (!loop && index >= pages - 1) ? '0.4' : '1';
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
function go(root, target) {
|
|
575
|
+
var p = partsOf(root);
|
|
576
|
+
if (!p) return;
|
|
577
|
+
var pages = pageCountOf(root, p);
|
|
578
|
+
var loop = root.getAttribute('data-loop') === '1';
|
|
579
|
+
if (loop) {
|
|
580
|
+
target = (target % pages + pages) % pages;
|
|
581
|
+
} else {
|
|
582
|
+
target = Math.max(0, Math.min(pages - 1, target));
|
|
583
|
+
}
|
|
584
|
+
root.setAttribute('data-index', String(target));
|
|
585
|
+
render(root);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
document.addEventListener('click', function (event) {
|
|
589
|
+
var t = event.target;
|
|
590
|
+
if (!t || !t.closest) return;
|
|
591
|
+
var dot = t.closest('.ahd-carousel-dot');
|
|
592
|
+
if (dot) {
|
|
593
|
+
var root = dot.closest('.ahd-carousel');
|
|
594
|
+
if (root) { event.preventDefault(); go(root, parseInt(dot.getAttribute('data-ahd-dot-index') || '0', 10) || 0); }
|
|
595
|
+
return;
|
|
596
|
+
}
|
|
597
|
+
var prev = t.closest('.ahd-carousel-prev');
|
|
598
|
+
if (prev) {
|
|
599
|
+
var rp = prev.closest('.ahd-carousel');
|
|
600
|
+
if (rp) { event.preventDefault(); go(rp, (parseInt(rp.getAttribute('data-index') || '0', 10) || 0) - 1); }
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
var next = t.closest('.ahd-carousel-next');
|
|
604
|
+
if (next) {
|
|
605
|
+
var rn = next.closest('.ahd-carousel');
|
|
606
|
+
if (rn) { event.preventDefault(); go(rn, (parseInt(rn.getAttribute('data-index') || '0', 10) || 0) + 1); }
|
|
607
|
+
return;
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
|
|
611
|
+
function bindDrag(root) {
|
|
612
|
+
var p = partsOf(root);
|
|
613
|
+
if (!p) return;
|
|
614
|
+
var startX = 0, dragging = false;
|
|
615
|
+
function down(x) { startX = x; dragging = true; }
|
|
616
|
+
function up(x) {
|
|
617
|
+
if (!dragging) return;
|
|
618
|
+
dragging = false;
|
|
619
|
+
var dx = x - startX;
|
|
620
|
+
if (Math.abs(dx) < 40) return;
|
|
621
|
+
var cur = parseInt(root.getAttribute('data-index') || '0', 10) || 0;
|
|
622
|
+
go(root, cur + (dx < 0 ? 1 : -1));
|
|
623
|
+
}
|
|
624
|
+
p.viewport.addEventListener('touchstart', function (e) { down(e.touches[0].clientX); }, { passive: true });
|
|
625
|
+
p.viewport.addEventListener('touchend', function (e) { up((e.changedTouches[0] || {}).clientX || startX); }, { passive: true });
|
|
626
|
+
p.viewport.addEventListener('mousedown', function (e) { down(e.clientX); });
|
|
627
|
+
document.addEventListener('mouseup', function (e) { if (dragging) up(e.clientX); });
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
function startAutoplay(root) {
|
|
631
|
+
if (root.getAttribute('data-autoplay') !== '1') return;
|
|
632
|
+
var interval = parseInt(root.getAttribute('data-autoplay-interval') || '4000', 10) || 4000;
|
|
633
|
+
var paused = false;
|
|
634
|
+
root.addEventListener('mouseenter', function () { paused = true; });
|
|
635
|
+
root.addEventListener('mouseleave', function () { paused = false; });
|
|
636
|
+
setInterval(function () {
|
|
637
|
+
if (paused || document.hidden) return;
|
|
638
|
+
var cur = parseInt(root.getAttribute('data-index') || '0', 10) || 0;
|
|
639
|
+
go(root, cur + 1);
|
|
640
|
+
}, interval);
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
function initRoot(root) {
|
|
644
|
+
if (root.dataset.ahdCarouselReady === 'true') return;
|
|
645
|
+
var p = partsOf(root);
|
|
646
|
+
if (!p || !p.slides.length) return;
|
|
647
|
+
root.dataset.ahdCarouselReady = 'true';
|
|
648
|
+
if (!root.getAttribute('data-index')) root.setAttribute('data-index', '0');
|
|
649
|
+
render(root);
|
|
650
|
+
bindDrag(root);
|
|
651
|
+
startAutoplay(root);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
function initAll() {
|
|
655
|
+
document.querySelectorAll('.ahd-carousel').forEach(initRoot);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
if (document.readyState === 'loading') {
|
|
659
|
+
document.addEventListener('DOMContentLoaded', initAll);
|
|
660
|
+
} else {
|
|
661
|
+
initAll();
|
|
662
|
+
}
|
|
663
|
+
window.addEventListener('resize', function () {
|
|
664
|
+
document.querySelectorAll('.ahd-carousel').forEach(render);
|
|
665
|
+
});
|
|
666
|
+
if (typeof MutationObserver !== 'undefined') {
|
|
667
|
+
var mo = new MutationObserver(function () { initAll(); });
|
|
668
|
+
mo.observe(document.documentElement || document.body, { childList: true, subtree: true });
|
|
669
|
+
} else {
|
|
670
|
+
var tries = 0;
|
|
671
|
+
var timer = setInterval(function () { initAll(); if (++tries > 20) clearInterval(timer); }, 250);
|
|
672
|
+
}
|
|
673
|
+
})();
|
|
674
|
+
`,Nx=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Inter", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif'},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'},{key:"ROBOTO",label:"Roboto",value:'Roboto, "Helvetica Neue", Arial, sans-serif'},{key:"OPEN_SANS",label:"Open Sans",value:'"Open Sans", "Helvetica Neue", Arial, sans-serif'},{key:"LATO",label:"Lato",value:'Lato, "Helvetica Neue", Arial, sans-serif'},{key:"POPPINS",label:"Poppins",value:'Poppins, "Helvetica Neue", Arial, sans-serif'},{key:"INTER",label:"Inter",value:'Inter, "Helvetica Neue", Arial, sans-serif'},{key:"MONTSERRAT",label:"Montserrat",value:'Montserrat, "Helvetica Neue", Arial, sans-serif'},{key:"RALEWAY",label:"Raleway",value:'Raleway, "Helvetica Neue", Arial, sans-serif'},{key:"NUNITO",label:"Nunito",value:'Nunito, "Helvetica Neue", Arial, sans-serif'},{key:"PLAYFAIR_DISPLAY",label:"Playfair Display",value:'"Playfair Display", Georgia, serif'},{key:"MERRIWEATHER",label:"Merriweather",value:"Merriweather, Georgia, serif"},{key:"PT_SANS",label:"PT Sans",value:'"PT Sans", "Helvetica Neue", Arial, sans-serif'},{key:"OSWALD",label:"Oswald",value:'Oswald, "Helvetica Neue", Arial, sans-serif'},{key:"SOURCE_SANS_PRO",label:"Source Sans Pro",value:'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif'},{key:"RUBIK",label:"Rubik",value:'Rubik, "Helvetica Neue", Arial, sans-serif'},{key:"WORK_SANS",label:"Work Sans",value:'"Work Sans", "Helvetica Neue", Arial, sans-serif'},{key:"NOTO_SANS",label:"Noto Sans",value:'"Noto Sans", "Helvetica Neue", Arial, sans-serif'},{key:"DANCING_SCRIPT",label:"Dancing Script",value:'"Dancing Script", cursive, sans-serif'},{key:"PACIFICO",label:"Pacifico",value:"Pacifico, cursive, sans-serif"},{key:"LOBSTER",label:"Lobster",value:"Lobster, cursive, sans-serif"},{key:"BEBAS_NEUE",label:"Bebas Neue",value:'"Bebas Neue", cursive, sans-serif'}],Rx={Inter:[400,500,600,700],Roboto:[400,500,700],"Open Sans":[400,500,600,700],Lato:[400,700],Poppins:[400,500,600,700],Montserrat:[400,500,600,700],Raleway:[400,500,600,700],Nunito:[400,500,600,700],"Playfair Display":[400,500,600,700],Merriweather:[400,700],"PT Sans":[400,700],Oswald:[400,500,600,700],"Source Sans Pro":[400,600,700],Rubik:[400,500,600,700],"Work Sans":[400,500,600,700],"Noto Sans":[400,500,600,700],"Titillium Web":[400,600,700],"Dancing Script":[400,500,600,700],Pacifico:[400],Lobster:[400],"Bebas Neue":[400],"Permanent Marker":[400],"Great Vibes":[400],"Libre Baskerville":[400,700],"EB Garamond":[400,500,700],Lora:[400,500,700]},Ex=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},Ix=`https://fonts.googleapis.com/css2?${Object.entries(Rx).map(([e,t])=>`family=${Ex(e,t)}`).join("&")}&display=swap`,al=Nx.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));al.map(e=>e.css);const Px=e=>e.replace(/"/g,'\\"');al.map(e=>{const t=Px(e.css);return`
|
|
675
|
+
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
|
|
676
|
+
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
|
|
677
|
+
content: '${e.label}';
|
|
678
|
+
font-family: ${e.css};
|
|
679
|
+
}`}).join(`
|
|
680
|
+
`);const Ox=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(r,o,i)=>{t++;const a=String(i).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${o}>${a}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function ho(e,{rootBlockId:t,seo:n,injectElementIds:r,minifyCss:o,lang:i,skipLink:a,accessibilityTools:l,includePageCSS:s,headHtml:c,bodyBottomHtml:u,isBanner:m,injectTabsScrollSyncScript:d=!0,injectCarouselScript:h=!0,injectFontAssets:f=!0}){var P;const b=((P=e==null?void 0:e[t])==null?void 0:P.data)??{};i??b.lang;const v=a??b.skipLink??void 0,S=l??b.accessibilityTools??void 0,_=Object.values(e??{}).some(O=>(O==null?void 0:O.type)==="SkipLink"),A=Object.values(e??{}).some(O=>(O==null?void 0:O.type)==="AccessibilityTools");!_&&(v==null||v.enabled);const x=!A&&!!(S!=null&&S.enabled),k=x?Ja(S):"",N=x?Xa(S):"",C=x?Qa():"",y=d&&wx(e)?Ax():"",I=h&&$x(e)?yx():"",T=kx(e)?Cx():"",M=p.jsxs("div",{style:{margin:0,padding:0},children:[k&&p.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),m&&f&&p.jsx("link",{rel:"stylesheet",href:Ix}),p.jsx("style",{children:`.gc-tooltip * {
|
|
681
|
+
margin: 0;
|
|
682
|
+
padding: 0;
|
|
683
|
+
box-sizing: border-box;
|
|
684
|
+
}
|
|
685
|
+
.gc-tooltip .gc-close { display: none !important; }
|
|
686
|
+
.gc-tooltip .gc-copyright { display: none !important; }`}),N&&p.jsx("div",{dangerouslySetInnerHTML:{__html:N}}),C&&p.jsx("script",{dangerouslySetInnerHTML:{__html:C}}),(()=>{const O=xx(e),B=Sx(e),Q=_x(e,t),ne=O?e[O]:null,te=B?e[B]:null,ie=Q?p.jsx(qt,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!m,mainBlockId:Q,hoistedSkipLinkId:O,hoistedA11yToolsId:B}):p.jsx("main",{id:"main-content",tabIndex:-1,children:p.jsx(qt,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!m,hoistedSkipLinkId:O,hoistedA11yToolsId:B})});return p.jsxs(p.Fragment,{children:[ne&&p.jsx(Ya,{...ne.data??{}}),m?ie:p.jsx("div",{className:"ahd-page-root",children:ie}),te&&p.jsx(el,{...te.data??{}})]})})(),y&&p.jsx("script",{dangerouslySetInnerHTML:{__html:y}}),I&&p.jsx("script",{dangerouslySetInnerHTML:{__html:I}}),T&&p.jsx("script",{dangerouslySetInnerHTML:{__html:T}})]}),L=Tl.renderToStaticMarkup(M);let F=o?Ox(L):L;return c&&(F=F.replace("</head>",`${c}</head>`)),u&&(F=F.replace("</body>",`${u}</body>`)),F}function Mi(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function Tx(e,t={}){var o;if(!e)return"";const n=t.rootBlockId??"root",r=((o=e==null?void 0:e[n])==null?void 0:o.data)??{};try{return ho(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:r.lang,skipLink:r.skipLink,accessibilityTools:r.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner,seo:t.seo})}catch(i){return console.error("[PagePilotEditor] renderToStaticMarkup failed:",i),""}}function ur(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Mx(e,t={}){var S,_,A;const n=t.includeExternalSections??!0,r=t.wrapInDocumentShell??!0,o=[],i=e.map(x=>{var C;if(Mi(x))return n&&o.push(String((x==null?void 0:x.content)??"")),x;const k=(C=x==null?void 0:x.contentMetadata)==null?void 0:C.document;if(!k)return x!=null&&x.content&&o.push(String(x.content)),x;const N=Tx(k,t);return N&&o.push(N),{...x,content:N,contentMetadata:{...x.contentMetadata??{},document:k}}}),a=o.join(`
|
|
687
|
+
`);if(!r)return{html:a,sectionHtml:o,flushedSections:i};const l=e.find(x=>!Mi(x)),s=((A=(_=(S=l==null?void 0:l.contentMetadata)==null?void 0:S.document)==null?void 0:_.root)==null?void 0:A.data)??{},c=t.lang||s.lang||"en",u=t.canvasColor||s.canvasColor||"#FFFFFF",m=t.fontFamily||(typeof s.fontFamily=="string"?s.fontFamily:"Inter, system-ui, sans-serif"),d=t.seoTitle?`<title>${ur(t.seoTitle)}</title>`:"",h=t.seoDescription?`<meta name="description" content="${ur(t.seoDescription)}" />`:"",f=t.extraHead??"",b=t.extraBodyBottom??"";return{html:`<!doctype html>
|
|
688
|
+
<html lang="${ur(c)}">
|
|
689
|
+
<head>
|
|
690
|
+
<meta charset="utf-8" />
|
|
691
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
692
|
+
${d}
|
|
693
|
+
${h}
|
|
694
|
+
<style>
|
|
695
|
+
html, body { margin: 0; padding: 0; }
|
|
696
|
+
body { background: ${u}; font-family: ${m}; }
|
|
697
|
+
* { box-sizing: border-box; }
|
|
698
|
+
</style>
|
|
699
|
+
${f}
|
|
700
|
+
</head>
|
|
701
|
+
<body>
|
|
702
|
+
${a}
|
|
703
|
+
${b}
|
|
704
|
+
</body>
|
|
705
|
+
</html>`,sectionHtml:o,flushedSections:i}}function Lx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nr={exports:{}},Rr={exports:{}},Ie={},se={};se.__esModule=!0;se.extend=ll;se.indexOf=Hx;se.escapeExpression=Fx;se.isEmpty=Gx;se.createFrame=Ux;se.blockParams=Zx;se.appendContextPath=Wx;var zx={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},jx=/[&<>"'`=]/g,Bx=/[&<>"'`=]/;function Dx(e){return zx[e]}function ll(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var fo=Object.prototype.toString;se.toString=fo;var Er=function(t){return typeof t=="function"};Er(/x/)&&(se.isFunction=Er=function(e){return typeof e=="function"&&fo.call(e)==="[object Function]"});se.isFunction=Er;var sl=Array.isArray||function(e){return e&&typeof e=="object"?fo.call(e)==="[object Array]":!1};se.isArray=sl;function Hx(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Fx(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Bx.test(e)?e.replace(jx,Dx):e}function Gx(e){return!e&&e!==0?!0:!!(sl(e)&&e.length===0)}function Ux(e){var t=ll({},e);return t._parent=e,t}function Zx(e,t){return e.path=t,e}function Wx(e,t){return(e?e+".":"")+t}var Ir={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(o,i){var a=i&&i.loc,l=void 0,s=void 0,c=void 0,u=void 0;a&&(l=a.start.line,s=a.end.line,c=a.start.column,u=a.end.column,o+=" - "+l+":"+c);for(var m=Error.prototype.constructor.call(this,o),d=0;d<n.length;d++)this[n[d]]=m[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{a&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:c,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0})):(this.column=c,this.endColumn=u))}catch{}}r.prototype=new Error,t.default=r,e.exports=t.default})(Ir,Ir.exports);var Pe=Ir.exports,Xt={},Pr={exports:{}};(function(e,t){t.__esModule=!0;var n=se;t.default=function(r){r.registerHelper("blockHelperMissing",function(o,i){var a=i.inverse,l=i.fn;if(o===!0)return l(this);if(o===!1||o==null)return a(this);if(n.isArray(o))return o.length>0?(i.ids&&(i.ids=[i.name]),r.helpers.each(o,i)):a(this);if(i.data&&i.ids){var s=n.createFrame(i.data);s.contextPath=n.appendContextPath(i.data.contextPath,i.name),i={data:s}}return l(o,i)})},e.exports=t.default})(Pr,Pr.exports);var Vx=Pr.exports,Or={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var r=se,o=Pe,i=n(o);t.default=function(a){a.registerHelper("each",function(l,s){if(!s)throw new i.default("Must pass iterator to #each");var c=s.fn,u=s.inverse,m=0,d="",h=void 0,f=void 0;s.data&&s.ids&&(f=r.appendContextPath(s.data.contextPath,s.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),s.data&&(h=r.createFrame(s.data));function b(x,k,N){h&&(h.key=x,h.index=k,h.first=k===0,h.last=!!N,f&&(h.contextPath=f+x)),d=d+c(l[x],{data:h,blockParams:r.blockParams([l[x],x],[f+x,null])})}if(l&&typeof l=="object")if(r.isArray(l))for(var v=l.length;m<v;m++)m in l&&b(m,m,m===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var S=[],_=l[Symbol.iterator](),A=_.next();!A.done;A=_.next())S.push(A.value);l=S;for(var v=l.length;m<v;m++)b(m,m,m===l.length-1)}else(function(){var x=void 0;Object.keys(l).forEach(function(k){x!==void 0&&b(x,m-1),x=k,m++}),x!==void 0&&b(x,m-1,!0)})();return m===0&&(d=u(this)),d})},e.exports=t.default})(Or,Or.exports);var qx=Or.exports,Tr={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Pe,o=n(r);t.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(Tr,Tr.exports);var Kx=Tr.exports,Mr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var r=se,o=Pe,i=n(o);t.default=function(a){a.registerHelper("if",function(l,s){if(arguments.length!=2)throw new i.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||r.isEmpty(l)?s.inverse(this):s.fn(this)}),a.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new i.default("#unless requires exactly one argument");return a.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(Mr,Mr.exports);var Yx=Mr.exports,Lr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var r=[void 0],o=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)r.push(arguments[i]);var a=1;o.hash.level!=null?a=o.hash.level:o.data&&o.data.level!=null&&(a=o.data.level),r[0]=a,n.log.apply(n,r)})},e.exports=t.default})(Lr,Lr.exports);var Jx=Lr.exports,zr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(r,o,i){return r&&i.lookupProperty(r,o)})},e.exports=t.default})(zr,zr.exports);var Xx=zr.exports,jr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var r=se,o=Pe,i=n(o);t.default=function(a){a.registerHelper("with",function(l,s){if(arguments.length!=2)throw new i.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var c=s.fn;if(r.isEmpty(l))return s.inverse(this);var u=s.data;return s.data&&s.ids&&(u=r.createFrame(s.data),u.contextPath=r.appendContextPath(s.data.contextPath,s.ids[0])),c(l,{data:u,blockParams:r.blockParams([l],[u&&u.contextPath])})})},e.exports=t.default})(jr,jr.exports);var Qx=jr.exports;Xt.__esModule=!0;Xt.registerDefaultHelpers=g1;Xt.moveHelperToHooks=m1;function ut(e){return e&&e.__esModule?e:{default:e}}var e1=Vx,t1=ut(e1),n1=qx,r1=ut(n1),o1=Kx,i1=ut(o1),a1=Yx,l1=ut(a1),s1=Jx,c1=ut(s1),u1=Xx,d1=ut(u1),h1=Qx,f1=ut(h1);function g1(e){t1.default(e),r1.default(e),i1.default(e),l1.default(e),c1.default(e),d1.default(e),f1.default(e)}function m1(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var go={},Br={exports:{}};(function(e,t){t.__esModule=!0;var n=se;t.default=function(r){r.registerDecorator("inline",function(o,i,a,l){var s=o;return i.partials||(i.partials={},s=function(c,u){var m=a.partials;a.partials=n.extend({},m,i.partials);var d=o(c,u);return a.partials=m,d}),i.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Br,Br.exports);var p1=Br.exports;go.__esModule=!0;go.registerDefaultDecorators=S1;function b1(e){return e&&e.__esModule?e:{default:e}}var v1=p1,x1=b1(v1);function S1(e){x1.default(e)}var Dr={exports:{}};(function(e,t){t.__esModule=!0;var n=se,r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(i){if(typeof i=="string"){var a=n.indexOf(r.methodMap,i.toLowerCase());a>=0?i=a:i=parseInt(i,10)}return i},log:function(i){if(i=r.lookupLevel(i),typeof console<"u"&&r.lookupLevel(r.level)<=i){var a=r.methodMap[i];console[a]||(a="log");for(var l=arguments.length,s=Array(l>1?l-1:0),c=1;c<l;c++)s[c-1]=arguments[c];console[a].apply(console,s)}}};t.default=r,e.exports=t.default})(Dr,Dr.exports);var cl=Dr.exports,Rt={};Rt.__esModule=!0;Rt.createProtoAccessControl=$1;Rt.resultIsAllowed=C1;Rt.resetLoggedProperties=y1;function _1(e){return e&&e.__esModule?e:{default:e}}var Li=se,w1=cl,k1=_1(w1),Rn=Object.create(null);function $1(e){var t=Object.create(null);t.__proto__=!1,Li.extend(t,e.allowedProtoProperties);var n=Object.create(null);return n.constructor=!1,n.__defineGetter__=!1,n.__defineSetter__=!1,n.__lookupGetter__=!1,n.__lookupSetter__=!1,Li.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function C1(e,t,n){return zi(typeof e=="function"?t.methods:t.properties,n)}function zi(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(A1(t),!1)}function A1(e){Rn[e]!==!0&&(Rn[e]=!0,k1.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
706
|
+
You can add a runtime option to disable the check or this warning:
|
|
707
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function y1(){Object.keys(Rn).forEach(function(e){delete Rn[e]})}Ie.__esModule=!0;Ie.HandlebarsEnvironment=Hr;function ul(e){return e&&e.__esModule?e:{default:e}}var lt=se,N1=Pe,dr=ul(N1),R1=Xt,E1=go,I1=cl,En=ul(I1),P1=Rt,O1="4.7.9";Ie.VERSION=O1;var T1=8;Ie.COMPILER_REVISION=T1;var M1=7;Ie.LAST_COMPATIBLE_COMPILER_REVISION=M1;var L1={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Ie.REVISION_CHANGES=L1;var hr="[object Object]";function Hr(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},R1.registerDefaultHelpers(this),E1.registerDefaultDecorators(this)}Hr.prototype={constructor:Hr,logger:En.default,log:En.default.log,registerHelper:function(t,n){if(lt.toString.call(t)===hr){if(n)throw new dr.default("Arg not supported with multiple helpers");lt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(lt.toString.call(t)===hr)lt.extend(this.partials,t);else{if(typeof n>"u")throw new dr.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=n}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,n){if(lt.toString.call(t)===hr){if(n)throw new dr.default("Arg not supported with multiple decorators");lt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){P1.resetLoggedProperties()}};var z1=En.default.log;Ie.log=z1;Ie.createFrame=lt.createFrame;Ie.logger=En.default;var Fr={exports:{}};(function(e,t){t.__esModule=!0;function n(r){this.string=r}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Fr,Fr.exports);var j1=Fr.exports,ot={},mo={};mo.__esModule=!0;mo.wrapHelper=B1;function B1(e,t){if(typeof e!="function")return e;var n=function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=t(o),e.apply(this,arguments)};return n}ot.__esModule=!0;ot.checkRevision=Z1;ot.template=W1;ot.wrapProgram=xn;ot.resolvePartial=V1;ot.invokePartial=q1;ot.noop=dl;function D1(e){return e&&e.__esModule?e:{default:e}}function H1(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var F1=se,xt=H1(F1),G1=Pe,Ze=D1(G1),We=Ie,ji=Xt,U1=mo,Bi=Rt;function Z1(e){var t=e&&e[0]||1,n=We.COMPILER_REVISION;if(!(t>=We.LAST_COMPATIBLE_COMPILER_REVISION&&t<=We.COMPILER_REVISION))if(t<We.LAST_COMPATIBLE_COMPILER_REVISION){var r=We.REVISION_CHANGES[n],o=We.REVISION_CHANGES[t];throw new Ze.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}else throw new Ze.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}function W1(e,t){if(!t)throw new Ze.default("No environment passed to template");if(!e||!e.main)throw new Ze.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function r(a,l,s){s.hash&&(l=xt.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var c=t.VM.invokePartial.call(this,a,l,s);if(c==null&&t.compile&&(s.partials[s.name]=t.compile(a,e.compilerOptions,t),c=s.partials[s.name](l,s)),c!=null){if(s.indent){for(var u=c.split(`
|
|
708
|
+
`),m=0,d=u.length;m<d&&!(!u[m]&&m+1===d);m++)u[m]=s.indent+u[m];c=u.join(`
|
|
709
|
+
`)}return c}else throw new Ze.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var o={strict:function(l,s,c){if(!l||!(s in l))throw new Ze.default('"'+s+'" not defined in '+l,{loc:c});return o.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||Bi.resultIsAllowed(c,o.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var m=l[u]&&o.lookupProperty(l[u],s);if(m!=null)return m}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:xt.escapeExpression,invokePartial:r,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,m){var d=this.programs[l],h=this.fn(l);return s||m||u||c?d=xn(this,l,h,s,c,u,m):d||(d=this.programs[l]=xn(this,l,h)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var c=l||s;return l&&s&&l!==s&&(c=xt.extend({},s,l)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(a){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;i._setup(l),!l.partial&&e.useData&&(s=K1(a,s));var c=void 0,u=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?c=a!=l.depths[0]?[a].concat(l.depths):l.depths:c=[a]);function m(d){return""+e.main(o,d,o.helpers,o.partials,s,u,c)}return m=hl(e.main,m,o,l.depths||[],s,u),m(a,l)}return i.isTop=!0,i._setup=function(a){if(a.partial)o.protoAccessControl=a.protoAccessControl,o.helpers=a.helpers,o.partials=a.partials,o.decorators=a.decorators,o.hooks=a.hooks;else{var l={};Di(l,t.helpers,o),Di(l,a.helpers,o),o.helpers=l,e.usePartial&&(o.partials=o.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(o.decorators=xt.extend({},t.decorators,a.decorators)),o.hooks={},o.protoAccessControl=Bi.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||n;ji.moveHelperToHooks(o,"helperMissing",s),ji.moveHelperToHooks(o,"blockHelperMissing",s)}},i._child=function(a,l,s,c){if(e.useBlockParams&&!s)throw new Ze.default("must pass block params");if(e.useDepths&&!c)throw new Ze.default("must pass parent depths");return xn(o,a,e[a],l,0,s,c)},i}function xn(e,t,n,r,o,i,a){function l(s){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=a;return a&&s!=a[0]&&!(s===e.nullContext&&a[0]===null)&&(u=[s].concat(a)),n(e,s,e.helpers,e.partials,c.data||r,i&&[c.blockParams].concat(i),u)}return l=hl(n,l,e,a,r,i),l.program=t,l.depth=a?a.length:0,l.blockParams=o||0,l}function V1(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=Sn(n.partials,e)):n.name==="@partial-block"?e=Sn(n.data,"partial-block"):e=Sn(n.partials,n.name),e}function q1(e,t,n){var r=Sn(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;if(n.fn&&n.fn!==dl&&function(){n.data=We.createFrame(n.data);var i=n.fn;o=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=We.createFrame(s.data),s.data["partial-block"]=r,i(l,s)},i.partials&&(n.partials=xt.extend({},n.partials,i.partials))}(),e===void 0&&o&&(e=o),e===void 0)throw new Ze.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function dl(){return""}function Sn(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function K1(e,t){return(!t||!("root"in t))&&(t=t?We.createFrame(t):{},t.root=e),t}function hl(e,t,n,r,o,i){if(e.decorator){var a={};t=e.decorator(t,a,n,r&&r[0],o,i,r),xt.extend(t,a)}return t}function Di(e,t,n){t&&Object.keys(t).forEach(function(r){var o=t[r];e[r]=Y1(o,n)})}function Y1(e,t){var n=t.lookupProperty;return U1.wrapHelper(e,function(r){return r.lookupProperty=n,r})}var Gr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var r=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=r),n}},e.exports=t.default})(Gr,Gr.exports);var fl=Gr.exports;(function(e,t){t.__esModule=!0;function n(_){return _&&_.__esModule?_:{default:_}}function r(_){if(_&&_.__esModule)return _;var A={};if(_!=null)for(var x in _)Object.prototype.hasOwnProperty.call(_,x)&&(A[x]=_[x]);return A.default=_,A}var o=Ie,i=r(o),a=j1,l=n(a),s=Pe,c=n(s),u=se,m=r(u),d=ot,h=r(d),f=fl,b=n(f);function v(){var _=new i.HandlebarsEnvironment;return m.extend(_,i),_.SafeString=l.default,_.Exception=c.default,_.Utils=m,_.escapeExpression=m.escapeExpression,_.VM=h,_.template=function(A){return h.template(A,_)},_}var S=v();S.create=v,b.default(S),S.default=S,t.default=S,e.exports=t.default})(Rr,Rr.exports);var J1=Rr.exports,Ur={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!n.helpers.scopedId(o)&&!o.depth}}};t.default=n,e.exports=t.default})(Ur,Ur.exports);var gl=Ur.exports,Qt={},Zr={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var r={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(l,s,c,u,m,d,h){var f=d.length-1;switch(m){case 1:return d[f-1];case 2:this.$=u.prepareProgram(d[f]);break;case 3:this.$=d[f];break;case 4:this.$=d[f];break;case 5:this.$=d[f];break;case 6:this.$=d[f];break;case 7:this.$=d[f];break;case 8:this.$=d[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(d[f]),strip:u.stripFlags(d[f],d[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[f],value:d[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(d[f-2],d[f-1],d[f],this._$);break;case 12:this.$={path:d[f-3],params:d[f-2],hash:d[f-1]};break;case 13:this.$=u.prepareBlock(d[f-3],d[f-2],d[f-1],d[f],!1,this._$);break;case 14:this.$=u.prepareBlock(d[f-3],d[f-2],d[f-1],d[f],!0,this._$);break;case 15:this.$={open:d[f-5],path:d[f-4],params:d[f-3],hash:d[f-2],blockParams:d[f-1],strip:u.stripFlags(d[f-5],d[f])};break;case 16:this.$={path:d[f-4],params:d[f-3],hash:d[f-2],blockParams:d[f-1],strip:u.stripFlags(d[f-5],d[f])};break;case 17:this.$={path:d[f-4],params:d[f-3],hash:d[f-2],blockParams:d[f-1],strip:u.stripFlags(d[f-5],d[f])};break;case 18:this.$={strip:u.stripFlags(d[f-1],d[f-1]),program:d[f]};break;case 19:var b=u.prepareBlock(d[f-2],d[f-1],d[f],d[f],!1,this._$),v=u.prepareProgram([b],d[f-1].loc);v.chained=!0,this.$={strip:d[f-2].strip,program:v,chain:!0};break;case 20:this.$=d[f];break;case 21:this.$={path:d[f-1],strip:u.stripFlags(d[f-2],d[f])};break;case 22:this.$=u.prepareMustache(d[f-3],d[f-2],d[f-1],d[f-4],u.stripFlags(d[f-4],d[f]),this._$);break;case 23:this.$=u.prepareMustache(d[f-3],d[f-2],d[f-1],d[f-4],u.stripFlags(d[f-4],d[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[f-3],params:d[f-2],hash:d[f-1],indent:"",strip:u.stripFlags(d[f-4],d[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(d[f-2],d[f-1],d[f],this._$);break;case 26:this.$={path:d[f-3],params:d[f-2],hash:d[f-1],strip:u.stripFlags(d[f-4],d[f])};break;case 27:this.$=d[f];break;case 28:this.$=d[f];break;case 29:this.$={type:"SubExpression",path:d[f-3],params:d[f-2],hash:d[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[f-2]),value:d[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(d[f-1]);break;case 33:this.$=d[f];break;case 34:this.$=d[f];break;case 35:this.$={type:"StringLiteral",value:d[f],original:d[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[f]),original:Number(d[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[f]==="true",original:d[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=d[f];break;case 41:this.$=d[f];break;case 42:this.$=u.preparePath(!0,d[f],this._$);break;case 43:this.$=u.preparePath(!1,d[f],this._$);break;case 44:d[f-2].push({part:u.id(d[f]),original:d[f],separator:d[f-1]}),this.$=d[f-2];break;case 45:this.$=[{part:u.id(d[f]),original:d[f]}];break;case 46:this.$=[];break;case 47:d[f-1].push(d[f]);break;case 48:this.$=[];break;case 49:d[f-1].push(d[f]);break;case 50:this.$=[];break;case 51:d[f-1].push(d[f]);break;case 58:this.$=[];break;case 59:d[f-1].push(d[f]);break;case 64:this.$=[];break;case 65:d[f-1].push(d[f]);break;case 70:this.$=[];break;case 71:d[f-1].push(d[f]);break;case 78:this.$=[];break;case 79:d[f-1].push(d[f]);break;case 82:this.$=[];break;case 83:d[f-1].push(d[f]);break;case 86:this.$=[];break;case 87:d[f-1].push(d[f]);break;case 90:this.$=[];break;case 91:d[f-1].push(d[f]);break;case 94:this.$=[];break;case 95:d[f-1].push(d[f]);break;case 98:this.$=[d[f]];break;case 99:d[f-1].push(d[f]);break;case 100:this.$=[d[f]];break;case 101:d[f-1].push(d[f]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(l,s){throw new Error(l)},parse:function(l){var s=this,c=[0],u=[null],m=[],d=this.table,h="",f=0,b=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;m.push(v);var S=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function _(){var F;return F=s.lexer.lex()||1,typeof F!="number"&&(F=s.symbols_[F]||F),F}for(var A,x,k,N,C={},y,I,T,M;;){if(x=c[c.length-1],this.defaultActions[x]?k=this.defaultActions[x]:((A===null||typeof A>"u")&&(A=_()),k=d[x]&&d[x][A]),typeof k>"u"||!k.length||!k[0]){var L="";{M=[];for(y in d[x])this.terminals_[y]&&y>2&&M.push("'"+this.terminals_[y]+"'");this.lexer.showPosition?L="Parse error on line "+(f+1)+`:
|
|
710
|
+
`+this.lexer.showPosition()+`
|
|
711
|
+
Expecting `+M.join(", ")+", got '"+(this.terminals_[A]||A)+"'":L="Parse error on line "+(f+1)+": Unexpected "+(A==1?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(L,{text:this.lexer.match,token:this.terminals_[A]||A,line:this.lexer.yylineno,loc:v,expected:M})}}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+A);switch(k[0]){case 1:c.push(A),u.push(this.lexer.yytext),m.push(this.lexer.yylloc),c.push(k[1]),A=null,b=this.lexer.yyleng,h=this.lexer.yytext,f=this.lexer.yylineno,v=this.lexer.yylloc;break;case 2:if(I=this.productions_[k[1]][1],C.$=u[u.length-I],C._$={first_line:m[m.length-(I||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(I||1)].first_column,last_column:m[m.length-1].last_column},S&&(C._$.range=[m[m.length-(I||1)].range[0],m[m.length-1].range[1]]),N=this.performAction.call(C,h,b,f,this.yy,k[1],u,m),typeof N<"u")return N;I&&(c=c.slice(0,-1*I*2),u=u.slice(0,-1*I),m=m.slice(0,-1*I)),c.push(this.productions_[k[1]][0]),u.push(C.$),m.push(C._$),T=d[c[c.length-2]][c[c.length-1]],c.push(T);break;case 3:return!0}}return!0}},o=function(){var a={EOF:1,parseError:function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var c=s.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var c=s.length,u=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c-1),this.offset-=c;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===m.length?this.yylloc.first_column:0)+m[m.length-u.length].length-u[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-c]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),c=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
712
|
+
`+c+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,c,u,m,d;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),f=0;f<h.length&&(u=this._input.match(this.rules[h[f]]),!(u&&(!c||u[0].length>c[0].length)&&(c=u,m=f,!this.options.flex)));f++);return c?(d=c[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],s=this.performAction.call(this,this.yy,this,h[m],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
713
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return a.options={},a.performAction=function(s,c,u,m){function d(h,f){return c.yytext=c.yytext.substring(h,c.yyleng-f+h)}switch(u){case 0:if(c.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):c.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),c.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(d(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(c.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return c.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return c.yytext=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return c.yytext=c.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},a}();r.lexer=o;function i(){this.yy={}}return i.prototype=r,r.Parser=i,new i}();t.default=n,e.exports=t.default})(Zr,Zr.exports);var X1=Zr.exports,Wr={exports:{}},Vr={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var r=Pe,o=n(r);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,m){var d=this.accept(u[m]);if(this.mutating){if(d&&!i.prototype[d.type])throw new o.default('Unexpected node type "'+d.type+'" found when accepting '+m+" on "+u.type);u[m]=d}},acceptRequired:function(u,m){if(this.acceptKey(u,m),!u[m])throw new o.default(u.type+" requires "+m)},acceptArray:function(u){for(var m=0,d=u.length;m<d;m++)this.acceptKey(u,m),u[m]||(u.splice(m,1),m--,d--)},accept:function(u){if(u){if(!this[u.type])throw new o.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var m=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||m)return m;if(m!==!1)return u}},Program:function(u){this.acceptArray(u.body)},MustacheStatement:a,Decorator:a,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(u){s.call(this,u),this.acceptKey(u,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(u){this.acceptArray(u.pairs)},HashPair:function(u){this.acceptRequired(u,"value")}};function a(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function l(c){a.call(this,c),this.acceptKey(c,"program"),this.acceptKey(c,"inverse")}function s(c){this.acceptRequired(c,"name"),this.acceptArray(c.params),this.acceptKey(c,"hash")}t.default=i,e.exports=t.default})(Vr,Vr.exports);var ml=Vr.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var r=ml,o=n(r);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new o.default,i.prototype.Program=function(u){var m=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var h=u.body,f=0,b=h.length;f<b;f++){var v=h[f],S=this.accept(v);if(S){var _=a(h,f,d),A=l(h,f,d),x=S.openStandalone&&_,k=S.closeStandalone&&A,N=S.inlineStandalone&&_&&A;S.close&&s(h,f,!0),S.open&&c(h,f,!0),m&&N&&(s(h,f),c(h,f)&&v.type==="PartialStatement"&&(v.indent=/([ \t]+$)/.exec(h[f-1].original)[1])),m&&x&&(s((v.program||v.inverse).body),c(h,f)),m&&k&&(s(h,f),c((v.inverse||v.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var m=u.program||u.inverse,d=u.program&&u.inverse,h=d,f=d;if(d&&d.chained)for(h=d.body[0].program;f.chained;)f=f.body[f.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(m.body),closeStandalone:a((h||m).body)};if(u.openStrip.close&&s(m.body,null,!0),d){var v=u.inverseStrip;v.open&&c(m.body,null,!0),v.close&&s(h.body,null,!0),u.closeStrip.open&&c(f.body,null,!0),!this.options.ignoreStandalone&&a(m.body)&&l(h.body)&&(c(m.body),s(h.body))}else u.closeStrip.open&&c(m.body,null,!0);return b},i.prototype.Decorator=i.prototype.MustacheStatement=function(u){return u.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(u){var m=u.strip||{};return{inlineStandalone:!0,open:m.open,close:m.close}};function a(u,m,d){m===void 0&&(m=u.length);var h=u[m-1],f=u[m-2];if(!h)return d;if(h.type==="ContentStatement")return(f||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original)}function l(u,m,d){m===void 0&&(m=-1);var h=u[m+1],f=u[m+2];if(!h)return d;if(h.type==="ContentStatement")return(f||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original)}function s(u,m,d){var h=u[m==null?0:m+1];if(!(!h||h.type!=="ContentStatement"||!d&&h.rightStripped)){var f=h.value;h.value=h.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==f}}function c(u,m,d){var h=u[m==null?u.length-1:m-1];if(!(!h||h.type!=="ContentStatement"||!d&&h.leftStripped)){var f=h.value;return h.value=h.value.replace(d?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==f,h.leftStripped}}t.default=i,e.exports=t.default})(Wr,Wr.exports);var Q1=Wr.exports,Oe={};Oe.__esModule=!0;Oe.SourceLocation=nS;Oe.id=rS;Oe.stripFlags=oS;Oe.stripComment=iS;Oe.preparePath=aS;Oe.prepareMustache=lS;Oe.prepareRawBlock=sS;Oe.prepareBlock=cS;Oe.prepareProgram=uS;Oe.preparePartialBlock=dS;function eS(e){return e&&e.__esModule?e:{default:e}}var tS=Pe,po=eS(tS);function bo(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new po.default(e.path.original+" doesn't match "+t,n)}}function nS(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function rS(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function oS(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function iS(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function aS(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",o=[],i=0,a=0,l=t.length;a<l;a++){var s=t[a].part,c=t[a].original!==s;if(r+=(t[a].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(o.length>0)throw new po.default("Invalid path: "+r,{loc:n});s===".."&&i++}else o.push(s)}return{type:"PathExpression",data:e,depth:i,parts:o,original:r,loc:n}}function lS(e,t,n,r,o,i){var a=r.charAt(3)||r.charAt(2),l=a!=="{"&&a!=="&",s=/\*/.test(r);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:o,loc:this.locInfo(i)}}function sS(e,t,n,r){bo(e,n),r=this.locInfo(r);var o={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function cS(e,t,n,r,o,i){r&&r.path&&bo(e,r);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(a)throw new po.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),s=n.strip,l=n.program}return o&&(o=l,l=t,t=o),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:r&&r.strip,loc:this.locInfo(i)}}function uS(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function dS(e,t,n,r){return bo(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}}Qt.__esModule=!0;Qt.parseWithoutProcessing=pl;Qt.parse=SS;function hS(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function vo(e){return e&&e.__esModule?e:{default:e}}var fS=X1,qr=vo(fS),gS=Q1,mS=vo(gS),pS=Oe,bS=hS(pS),vS=Pe,Lt=vo(vS),xS=se;Qt.parser=qr.default;var _n={};xS.extend(_n,bS);function pl(e,t){if(e.type==="Program")return _S(e),e;qr.default.yy=_n,_n.locInfo=function(r){return new _n.SourceLocation(t&&t.srcName,r)};var n=qr.default.parse(e);return n}function SS(e,t){var n=pl(e,t),r=new mS.default(t);return r.accept(n)}function _S(e){Kr(e)}function Kr(e){if(e!=null){if(Array.isArray(e)){e.forEach(Kr);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!wS(e.depth))throw new Lt.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new Lt.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if(typeof e.parts[t]!="string")throw new Lt.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new Lt.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new Lt.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&Kr(e[n])})}}}function wS(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var en={};en.__esModule=!0;en.Compiler=Yr;en.precompile=AS;en.compile=yS;function bl(e){return e&&e.__esModule?e:{default:e}}var kS=Pe,Gt=bl(kS),Kt=se,$S=gl,zt=bl($S),CS=[].slice;function Yr(){}Yr.prototype={compiler:Yr,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var r=0;r<n;r++){var o=this.opcodes[r],i=t.opcodes[r];if(o.opcode!==i.opcode||!vl(o.args,i.args))return!1}n=this.children.length;for(var r=0;r<n;r++)if(!this.children[r].equals(t.children[r]))return!1;return!0},guid:0,compile:function(t,n){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[],n.knownHelpers=Kt.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n.knownHelpers),this.accept(t)},compileProgram:function(t){var n=new this.compiler,r=n.compile(t,this.options),o=this.guid++;return this.usePartial=this.usePartial||r.usePartial,this.children[o]=r,this.useDepths=this.useDepths||r.useDepths,o},accept:function(t){if(!this[t.type])throw new Gt.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var n=t.body,r=n.length,o=0;o<r;o++)this.accept(n[o]);return this.options.blockParams.shift(),this.isSimple=r===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){Hi(t);var n=t.program,r=t.inverse;n=n&&this.compileProgram(n),r=r&&this.compileProgram(r);var o=this.classifySexpr(t);o==="helper"?this.helperSexpr(t,n,r):o==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,r),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),r=this.setupFullMustacheParams(t,n,void 0),o=t.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,o.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var r=t.params;if(r.length>1)throw new Gt.default("Unsupported number of partial arguments: "+r.length,t);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var o=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",i,o,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){Hi(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,r){var o=t.path,i=o.parts[0],a=n!=null||r!=null;this.opcode("getContext",o.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",r),o.strict=!0,this.accept(o),this.opcode("invokeAmbiguous",i,a)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,r){var o=this.setupFullMustacheParams(t,n,r),i=t.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",o.length,a);else{if(this.options.knownHelpersOnly)throw new Gt.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",o.length,i.original,zt.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],r=zt.default.helpers.scopedId(t),o=!t.depth&&!r&&this.blockParamIndex(n);o?this.opcode("lookupBlockParam",o,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,r):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,r=0,o=n.length;for(this.opcode("pushHash");r<o;r++)this.pushParam(n[r].value);for(;r--;)this.opcode("assignToHash",n[r].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:CS.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=zt.default.helpers.simpleId(t.path),r=n&&!!this.blockParamIndex(t.path.parts[0]),o=!r&&zt.default.helpers.helperExpression(t),i=!r&&(o||n);if(i&&!o){var a=t.path.parts[0],l=this.options;l.knownHelpers[a]?o=!0:l.knownHelpersOnly&&(i=!1)}return o?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var n=0,r=t.length;n<r;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var r=void 0;if(t.parts&&!zt.default.helpers.scopedId(t)&&!t.depth&&(r=this.blockParamIndex(t.parts[0])),r){var o=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,o)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,r,o){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",n),this.opcode("pushProgram",r),t.hash?this.accept(t.hash):this.opcode("emptyHash",o),i},blockParamIndex:function(t){for(var n=0,r=this.options.blockParams.length;n<r;n++){var o=this.options.blockParams[n],i=o&&Kt.indexOf(o,t);if(o&&i>=0)return[n,i]}}};function AS(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Gt.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),o=new n.Compiler().compile(r,t);return new n.JavaScriptCompiler().compile(o,t)}function yS(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Gt.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Kt.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function o(){var a=n.parse(e,t),l=new n.Compiler().compile(a,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function i(a,l){return r||(r=o()),r.call(this,a,l)}return i._setup=function(a){return r||(r=o()),r._setup(a)},i._child=function(a,l,s,c){return r||(r=o()),r._child(a,l,s,c)},i}function vl(e,t){if(e===t)return!0;if(Kt.isArray(e)&&Kt.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!vl(e[n],t[n]))return!1;return!0}}function Hi(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}var Jr={exports:{}},Xr={exports:{}},jt={},fr={},mn={},pn={},Fi;function NS(){if(Fi)return pn;Fi=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return pn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},pn.decode=function(t){var n=65,r=90,o=97,i=122,a=48,l=57,s=43,c=47,u=26,m=52;return n<=t&&t<=r?t-n:o<=t&&t<=i?t-o+u:a<=t&&t<=l?t-a+m:t==s?62:t==c?63:-1},pn}var Gi;function xl(){if(Gi)return mn;Gi=1;var e=NS(),t=5,n=1<<t,r=n-1,o=n;function i(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var s=(l&1)===1,c=l>>1;return s?-c:c}return mn.encode=function(s){var c="",u,m=i(s);do u=m&r,m>>>=t,m>0&&(u|=o),c+=e.encode(u);while(m>0);return c},mn.decode=function(s,c,u){var m=s.length,d=0,h=0,f,b;do{if(c>=m)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(c++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(c-1));f=!!(b&o),b&=r,d=d+(b<<h),h+=t}while(f);u.value=a(d),u.rest=c},mn}var gr={},Ui;function tn(){return Ui||(Ui=1,function(e){function t(x,k,N){if(k in x)return x[k];if(arguments.length===3)return N;throw new Error('"'+k+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(x){var k=x.match(n);return k?{scheme:k[1],auth:k[2],host:k[3],port:k[4],path:k[5]}:null}e.urlParse=o;function i(x){var k="";return x.scheme&&(k+=x.scheme+":"),k+="//",x.auth&&(k+=x.auth+"@"),x.host&&(k+=x.host),x.port&&(k+=":"+x.port),x.path&&(k+=x.path),k}e.urlGenerate=i;function a(x){var k=x,N=o(x);if(N){if(!N.path)return x;k=N.path}for(var C=e.isAbsolute(k),y=k.split(/\/+/),I,T=0,M=y.length-1;M>=0;M--)I=y[M],I==="."?y.splice(M,1):I===".."?T++:T>0&&(I===""?(y.splice(M+1,T),T=0):(y.splice(M,2),T--));return k=y.join("/"),k===""&&(k=C?"/":"."),N?(N.path=k,i(N)):k}e.normalize=a;function l(x,k){x===""&&(x="."),k===""&&(k=".");var N=o(k),C=o(x);if(C&&(x=C.path||"/"),N&&!N.scheme)return C&&(N.scheme=C.scheme),i(N);if(N||k.match(r))return k;if(C&&!C.host&&!C.path)return C.host=k,i(C);var y=k.charAt(0)==="/"?k:a(x.replace(/\/+$/,"")+"/"+k);return C?(C.path=y,i(C)):y}e.join=l,e.isAbsolute=function(x){return x.charAt(0)==="/"||n.test(x)};function s(x,k){x===""&&(x="."),x=x.replace(/\/$/,"");for(var N=0;k.indexOf(x+"/")!==0;){var C=x.lastIndexOf("/");if(C<0||(x=x.slice(0,C),x.match(/^([^\/]+:\/)?\/*$/)))return k;++N}return Array(N+1).join("../")+k.substr(x.length+1)}e.relative=s;var c=function(){var x=Object.create(null);return!("__proto__"in x)}();function u(x){return x}function m(x){return h(x)?"$"+x:x}e.toSetString=c?u:m;function d(x){return h(x)?x.slice(1):x}e.fromSetString=c?u:d;function h(x){if(!x)return!1;var k=x.length;if(k<9||x.charCodeAt(k-1)!==95||x.charCodeAt(k-2)!==95||x.charCodeAt(k-3)!==111||x.charCodeAt(k-4)!==116||x.charCodeAt(k-5)!==111||x.charCodeAt(k-6)!==114||x.charCodeAt(k-7)!==112||x.charCodeAt(k-8)!==95||x.charCodeAt(k-9)!==95)return!1;for(var N=k-10;N>=0;N--)if(x.charCodeAt(N)!==36)return!1;return!0}function f(x,k,N){var C=v(x.source,k.source);return C!==0||(C=x.originalLine-k.originalLine,C!==0)||(C=x.originalColumn-k.originalColumn,C!==0||N)||(C=x.generatedColumn-k.generatedColumn,C!==0)||(C=x.generatedLine-k.generatedLine,C!==0)?C:v(x.name,k.name)}e.compareByOriginalPositions=f;function b(x,k,N){var C=x.generatedLine-k.generatedLine;return C!==0||(C=x.generatedColumn-k.generatedColumn,C!==0||N)||(C=v(x.source,k.source),C!==0)||(C=x.originalLine-k.originalLine,C!==0)||(C=x.originalColumn-k.originalColumn,C!==0)?C:v(x.name,k.name)}e.compareByGeneratedPositionsDeflated=b;function v(x,k){return x===k?0:x===null?1:k===null?-1:x>k?1:-1}function S(x,k){var N=x.generatedLine-k.generatedLine;return N!==0||(N=x.generatedColumn-k.generatedColumn,N!==0)||(N=v(x.source,k.source),N!==0)||(N=x.originalLine-k.originalLine,N!==0)||(N=x.originalColumn-k.originalColumn,N!==0)?N:v(x.name,k.name)}e.compareByGeneratedPositionsInflated=S;function _(x){return JSON.parse(x.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=_;function A(x,k,N){if(k=k||"",x&&(x[x.length-1]!=="/"&&k[0]!=="/"&&(x+="/"),k=x+k),N){var C=o(N);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var y=C.path.lastIndexOf("/");y>=0&&(C.path=C.path.substring(0,y+1))}k=l(i(C),k)}return a(k)}e.computeSourceURL=A}(gr)),gr}var mr={},Zi;function Sl(){if(Zi)return mr;Zi=1;var e=tn(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(i,a){for(var l=new r,s=0,c=i.length;s<c;s++)l.add(i[s],a);return l},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(i,a){var l=n?i:e.toSetString(i),s=n?this.has(i):t.call(this._set,l),c=this._array.length;(!s||a)&&this._array.push(i),s||(n?this._set.set(i,c):this._set[l]=c)},r.prototype.has=function(i){if(n)return this._set.has(i);var a=e.toSetString(i);return t.call(this._set,a)},r.prototype.indexOf=function(i){if(n){var a=this._set.get(i);if(a>=0)return a}else{var l=e.toSetString(i);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+i+'" is not in the set.')},r.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},r.prototype.toArray=function(){return this._array.slice()},mr.ArraySet=r,mr}var pr={},Wi;function RS(){if(Wi)return pr;Wi=1;var e=tn();function t(r,o){var i=r.generatedLine,a=o.generatedLine,l=r.generatedColumn,s=o.generatedColumn;return a>i||a==i&&s>=l||e.compareByGeneratedPositionsInflated(r,o)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(o,i){this._array.forEach(o,i)},n.prototype.add=function(o){t(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},pr.MappingList=n,pr}var Vi;function _l(){if(Vi)return fr;Vi=1;var e=xl(),t=tn(),n=Sl().ArraySet,r=RS().MappingList;function o(i){i||(i={}),this._file=t.getArg(i,"file",null),this._sourceRoot=t.getArg(i,"sourceRoot",null),this._skipValidation=t.getArg(i,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(a){var l=a.sourceRoot,s=new o({file:a.file,sourceRoot:l});return a.eachMapping(function(c){var u={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(u.source=c.source,l!=null&&(u.source=t.relative(l,u.source)),u.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(u.name=c.name)),s.addMapping(u)}),a.sources.forEach(function(c){var u=c;l!==null&&(u=t.relative(l,c)),s._sources.has(u)||s._sources.add(u);var m=a.sourceContentFor(c);m!=null&&s.setSourceContent(c,m)}),s},o.prototype.addMapping=function(a){var l=t.getArg(a,"generated"),s=t.getArg(a,"original",null),c=t.getArg(a,"source",null),u=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,s,c,u),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:c,name:u})},o.prototype.setSourceContent=function(a,l){var s=a;this._sourceRoot!=null&&(s=t.relative(this._sourceRoot,s)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(s)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(a,l,s){var c=l;if(l==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=a.file}var u=this._sourceRoot;u!=null&&(c=t.relative(u,c));var m=new n,d=new n;this._mappings.unsortedForEach(function(h){if(h.source===c&&h.originalLine!=null){var f=a.originalPositionFor({line:h.originalLine,column:h.originalColumn});f.source!=null&&(h.source=f.source,s!=null&&(h.source=t.join(s,h.source)),u!=null&&(h.source=t.relative(u,h.source)),h.originalLine=f.line,h.originalColumn=f.column,f.name!=null&&(h.name=f.name))}var b=h.source;b!=null&&!m.has(b)&&m.add(b);var v=h.name;v!=null&&!d.has(v)&&d.add(v)},this),this._sources=m,this._names=d,a.sources.forEach(function(h){var f=a.sourceContentFor(h);f!=null&&(s!=null&&(h=t.join(s,h)),u!=null&&(h=t.relative(u,h)),this.setSourceContent(h,f))},this)},o.prototype._validateMapping=function(a,l,s,c){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!l&&!s&&!c)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:s,original:l,name:c}))}},o.prototype._serializeMappings=function(){for(var a=0,l=1,s=0,c=0,u=0,m=0,d="",h,f,b,v,S=this._mappings.toArray(),_=0,A=S.length;_<A;_++){if(f=S[_],h="",f.generatedLine!==l)for(a=0;f.generatedLine!==l;)h+=";",l++;else if(_>0){if(!t.compareByGeneratedPositionsInflated(f,S[_-1]))continue;h+=","}h+=e.encode(f.generatedColumn-a),a=f.generatedColumn,f.source!=null&&(v=this._sources.indexOf(f.source),h+=e.encode(v-m),m=v,h+=e.encode(f.originalLine-1-c),c=f.originalLine-1,h+=e.encode(f.originalColumn-s),s=f.originalColumn,f.name!=null&&(b=this._names.indexOf(f.name),h+=e.encode(b-u),u=b)),d+=h}return d},o.prototype._generateSourcesContent=function(a,l){return a.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var c=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},o.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},fr.SourceMapGenerator=o,fr}var Bt={},br={},qi;function ES(){return qi||(qi=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,o,i,a,l){var s=Math.floor((r-n)/2)+n,c=a(o,i[s],!0);return c===0?s:c>0?r-s>1?t(s,r,o,i,a,l):l==e.LEAST_UPPER_BOUND?r<i.length?r:-1:s:s-n>1?t(n,s,o,i,a,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(r,o,i,a){if(o.length===0)return-1;var l=t(-1,o.length,r,o,i,a||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(o[l],o[l-1],!0)===0;)--l;return l}}(br)),br}var vr={},Ki;function IS(){if(Ki)return vr;Ki=1;function e(r,o,i){var a=r[o];r[o]=r[i],r[i]=a}function t(r,o){return Math.round(r+Math.random()*(o-r))}function n(r,o,i,a){if(i<a){var l=t(i,a),s=i-1;e(r,l,a);for(var c=r[a],u=i;u<a;u++)o(r[u],c)<=0&&(s+=1,e(r,s,u));e(r,s+1,u);var m=s+1;n(r,o,i,m-1),n(r,o,m+1,a)}}return vr.quickSort=function(r,o){n(r,o,0,r.length-1)},vr}var Yi;function PS(){if(Yi)return Bt;Yi=1;var e=tn(),t=ES(),n=Sl().ArraySet,r=xl(),o=IS().quickSort;function i(c,u){var m=c;return typeof c=="string"&&(m=e.parseSourceMapInput(c)),m.sections!=null?new s(m,u):new a(m,u)}i.fromSourceMap=function(c,u){return a.fromSourceMap(c,u)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,m){var d=u.charAt(m);return d===";"||d===","},i.prototype._parseMappings=function(u,m){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(u,m,d){var h=m||null,f=d||i.GENERATED_ORDER,b;switch(f){case i.GENERATED_ORDER:b=this._generatedMappings;break;case i.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var v=this.sourceRoot;b.map(function(S){var _=S.source===null?null:this._sources.at(S.source);return _=e.computeSourceURL(v,_,this._sourceMapURL),{source:_,generatedLine:S.generatedLine,generatedColumn:S.generatedColumn,originalLine:S.originalLine,originalColumn:S.originalColumn,name:S.name===null?null:this._names.at(S.name)}},this).forEach(u,h)},i.prototype.allGeneratedPositionsFor=function(u){var m=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:m,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var h=[],f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(f>=0){var b=this._originalMappings[f];if(u.column===void 0)for(var v=b.originalLine;b&&b.originalLine===v;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++f];else for(var S=b.originalColumn;b&&b.originalLine===m&&b.originalColumn==S;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++f]}return h},Bt.SourceMapConsumer=i;function a(c,u){var m=c;typeof c=="string"&&(m=e.parseSourceMapInput(c));var d=e.getArg(m,"version"),h=e.getArg(m,"sources"),f=e.getArg(m,"names",[]),b=e.getArg(m,"sourceRoot",null),v=e.getArg(m,"sourcesContent",null),S=e.getArg(m,"mappings"),_=e.getArg(m,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),h=h.map(String).map(e.normalize).map(function(A){return b&&e.isAbsolute(b)&&e.isAbsolute(A)?e.relative(b,A):A}),this._names=n.fromArray(f.map(String),!0),this._sources=n.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function(A){return e.computeSourceURL(b,A,u)}),this.sourceRoot=b,this.sourcesContent=v,this._mappings=S,this._sourceMapURL=u,this.file=_}a.prototype=Object.create(i.prototype),a.prototype.consumer=i,a.prototype._findSourceIndex=function(c){var u=c;if(this.sourceRoot!=null&&(u=e.relative(this.sourceRoot,u)),this._sources.has(u))return this._sources.indexOf(u);var m;for(m=0;m<this._absoluteSources.length;++m)if(this._absoluteSources[m]==c)return m;return-1},a.fromSourceMap=function(u,m){var d=Object.create(a.prototype),h=d._names=n.fromArray(u._names.toArray(),!0),f=d._sources=n.fromArray(u._sources.toArray(),!0);d.sourceRoot=u._sourceRoot,d.sourcesContent=u._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=u._file,d._sourceMapURL=m,d._absoluteSources=d._sources.toArray().map(function(N){return e.computeSourceURL(d.sourceRoot,N,m)});for(var b=u._mappings.toArray().slice(),v=d.__generatedMappings=[],S=d.__originalMappings=[],_=0,A=b.length;_<A;_++){var x=b[_],k=new l;k.generatedLine=x.generatedLine,k.generatedColumn=x.generatedColumn,x.source&&(k.source=f.indexOf(x.source),k.originalLine=x.originalLine,k.originalColumn=x.originalColumn,x.name&&(k.name=h.indexOf(x.name)),S.push(k)),v.push(k)}return o(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(u,m){for(var d=1,h=0,f=0,b=0,v=0,S=0,_=u.length,A=0,x={},k={},N=[],C=[],y,I,T,M,L;A<_;)if(u.charAt(A)===";")d++,A++,h=0;else if(u.charAt(A)===",")A++;else{for(y=new l,y.generatedLine=d,M=A;M<_&&!this._charIsMappingSeparator(u,M);M++);if(I=u.slice(A,M),T=x[I],T)A+=I.length;else{for(T=[];A<M;)r.decode(u,A,k),L=k.value,A=k.rest,T.push(L);if(T.length===2)throw new Error("Found a source, but no line and column");if(T.length===3)throw new Error("Found a source and line, but no column");x[I]=T}y.generatedColumn=h+T[0],h=y.generatedColumn,T.length>1&&(y.source=v+T[1],v+=T[1],y.originalLine=f+T[2],f=y.originalLine,y.originalLine+=1,y.originalColumn=b+T[3],b=y.originalColumn,T.length>4&&(y.name=S+T[4],S+=T[4])),C.push(y),typeof y.originalLine=="number"&&N.push(y)}o(C,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,o(N,e.compareByOriginalPositions),this.__originalMappings=N},a.prototype._findMapping=function(u,m,d,h,f,b){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[h]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[h]);return t.search(u,m,f,b)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var m=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(m.generatedLine===d.generatedLine){m.lastGeneratedColumn=d.generatedColumn-1;continue}}m.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var m={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(m,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var h=this._generatedMappings[d];if(h.generatedLine===m.generatedLine){var f=e.getArg(h,"source",null);f!==null&&(f=this._sources.at(f),f=e.computeSourceURL(this.sourceRoot,f,this._sourceMapURL));var b=e.getArg(h,"name",null);return b!==null&&(b=this._names.at(b)),{source:f,line:e.getArg(h,"originalLine",null),column:e.getArg(h,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},a.prototype.sourceContentFor=function(u,m){if(!this.sourcesContent)return null;var d=this._findSourceIndex(u);if(d>=0)return this.sourcesContent[d];var h=u;this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h));var f;if(this.sourceRoot!=null&&(f=e.urlParse(this.sourceRoot))){var b=h.replace(/^file:\/\//,"");if(f.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!f.path||f.path=="/")&&this._sources.has("/"+h))return this.sourcesContent[this._sources.indexOf("/"+h)]}if(m)return null;throw new Error('"'+h+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var m=e.getArg(u,"source");if(m=this._findSourceIndex(m),m<0)return{line:null,column:null,lastColumn:null};var d={source:m,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},h=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(h>=0){var f=this._originalMappings[h];if(f.source===d.source)return{line:e.getArg(f,"generatedLine",null),column:e.getArg(f,"generatedColumn",null),lastColumn:e.getArg(f,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Bt.BasicSourceMapConsumer=a;function s(c,u){var m=c;typeof c=="string"&&(m=e.parseSourceMapInput(c));var d=e.getArg(m,"version"),h=e.getArg(m,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var f={line:-1,column:0};this._sections=h.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var v=e.getArg(b,"offset"),S=e.getArg(v,"line"),_=e.getArg(v,"column");if(S<f.line||S===f.line&&_<f.column)throw new Error("Section offsets must be ordered and non-overlapping.");return f=v,{generatedOffset:{generatedLine:S+1,generatedColumn:_+1},consumer:new i(e.getArg(b,"map"),u)}})}return s.prototype=Object.create(i.prototype),s.prototype.constructor=i,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var c=[],u=0;u<this._sections.length;u++)for(var m=0;m<this._sections[u].consumer.sources.length;m++)c.push(this._sections[u].consumer.sources[m]);return c}}),s.prototype.originalPositionFor=function(u){var m={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(m,this._sections,function(f,b){var v=f.generatedLine-b.generatedOffset.generatedLine;return v||f.generatedColumn-b.generatedOffset.generatedColumn}),h=this._sections[d];return h?h.consumer.originalPositionFor({line:m.generatedLine-(h.generatedOffset.generatedLine-1),column:m.generatedColumn-(h.generatedOffset.generatedLine===m.generatedLine?h.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(u,m){for(var d=0;d<this._sections.length;d++){var h=this._sections[d],f=h.consumer.sourceContentFor(u,!0);if(f)return f}if(m)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var m=0;m<this._sections.length;m++){var d=this._sections[m];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var h=d.consumer.generatedPositionFor(u);if(h){var f={line:h.line+(d.generatedOffset.generatedLine-1),column:h.column+(d.generatedOffset.generatedLine===h.line?d.generatedOffset.generatedColumn-1:0)};return f}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,m){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var h=this._sections[d],f=h.consumer._generatedMappings,b=0;b<f.length;b++){var v=f[b],S=h.consumer._sources.at(v.source);S=e.computeSourceURL(h.consumer.sourceRoot,S,this._sourceMapURL),this._sources.add(S),S=this._sources.indexOf(S);var _=null;v.name&&(_=h.consumer._names.at(v.name),this._names.add(_),_=this._names.indexOf(_));var A={source:S,generatedLine:v.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:v.generatedColumn+(h.generatedOffset.generatedLine===v.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:v.originalLine,originalColumn:v.originalColumn,name:_};this.__generatedMappings.push(A),typeof A.originalLine=="number"&&this.__originalMappings.push(A)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},Bt.IndexedSourceMapConsumer=s,Bt}var xr={},Ji;function OS(){if(Ji)return xr;Ji=1;var e=_l().SourceMapGenerator,t=tn(),n=/(\r?\n)/,r=10,o="$$$isSourceNode$$$";function i(a,l,s,c,u){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=s??null,this.name=u??null,this[o]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,m=l.split(n),d=0,h=function(){var _=x(),A=x()||"";return _+A;function x(){return d<m.length?m[d++]:void 0}},f=1,b=0,v=null;return s.eachMapping(function(_){if(v!==null)if(f<_.generatedLine)S(v,h()),f++,b=0;else{var A=m[d]||"",x=A.substr(0,_.generatedColumn-b);m[d]=A.substr(_.generatedColumn-b),b=_.generatedColumn,S(v,x),v=_;return}for(;f<_.generatedLine;)u.add(h()),f++;if(b<_.generatedColumn){var A=m[d]||"";u.add(A.substr(0,_.generatedColumn)),m[d]=A.substr(_.generatedColumn),b=_.generatedColumn}v=_},this),d<m.length&&(v&&S(v,h()),u.add(m.splice(d).join(""))),s.sources.forEach(function(_){var A=s.sourceContentFor(_);A!=null&&(c!=null&&(_=t.join(c,_)),u.setSourceContent(_,A))}),u;function S(_,A){if(_===null||_.source===void 0)u.add(A);else{var x=c?t.join(c,_.source):_.source;u.add(new i(_.originalLine,_.originalColumn,x,A,_.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[o]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[o]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.walk=function(l){for(var s,c=0,u=this.children.length;c<u;c++)s=this.children[c],s[o]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(l){var s,c,u=this.children.length;if(u>0){for(s=[],c=0;c<u-1;c++)s.push(this.children[c]),s.push(l);s.push(this.children[c]),this.children=s}return this},i.prototype.replaceRight=function(l,s){var c=this.children[this.children.length-1];return c[o]?c.replaceRight(l,s):typeof c=="string"?this.children[this.children.length-1]=c.replace(l,s):this.children.push("".replace(l,s)),this},i.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},i.prototype.walkSourceContents=function(l){for(var s=0,c=this.children.length;s<c;s++)this.children[s][o]&&this.children[s].walkSourceContents(l);for(var u=Object.keys(this.sourceContents),s=0,c=u.length;s<c;s++)l(t.fromSetString(u[s]),this.sourceContents[u[s]])},i.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},i.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},c=new e(l),u=!1,m=null,d=null,h=null,f=null;return this.walk(function(b,v){s.code+=b,v.source!==null&&v.line!==null&&v.column!==null?((m!==v.source||d!==v.line||h!==v.column||f!==v.name)&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name}),m=v.source,d=v.line,h=v.column,f=v.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),m=null,u=!1);for(var S=0,_=b.length;S<_;S++)b.charCodeAt(S)===r?(s.line++,s.column=0,S+1===_?(m=null,u=!1):u&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name})):s.column++}),this.walkSourceContents(function(b,v){c.setSourceContent(b,v)}),{code:s.code,map:c}},xr.SourceNode=i,xr}var Xi;function TS(){return Xi||(Xi=1,jt.SourceMapGenerator=_l().SourceMapGenerator,jt.SourceMapConsumer=PS().SourceMapConsumer,jt.SourceNode=OS().SourceNode),jt}(function(e,t){t.__esModule=!0;var n=se,r=void 0;try{var o=TS();r=o.SourceNode}catch{}r||(r=function(l,s,c,u){this.src="",u&&this.add(u)},r.prototype={add:function(s){n.isArray(s)&&(s=s.join("")),this.src+=s},prepend:function(s){n.isArray(s)&&(s=s.join("")),this.src=s+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function i(l,s,c){if(n.isArray(l)){for(var u=[],m=0,d=l.length;m<d;m++)u.push(s.wrap(l[m],c));return u}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function a(l){this.srcFile=l,this.source=[]}a.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,c){this.source.unshift(this.wrap(s,c))},push:function(s,c){this.source.push(this.wrap(s,c))},merge:function(){var s=this.empty();return this.each(function(c){s.add([" ",c,`
|
|
714
|
+
`])}),s},each:function(s){for(var c=0,u=this.source.length;c<u;c++)s(this.source[c])},empty:function(){var s=this.currentLocation||{start:{}};return new r(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var c=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof r?s:(s=i(s,this,c),new r(c.start.line,c.start.column,this.srcFile,s))},functionCall:function(s,c,u){return u=this.generateList(u),this.wrap([s,c?"."+c+"(":"(",u,")"])},quotedString:function(s){return'"'+(s+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(s){var c=this,u=[];Object.keys(s).forEach(function(d){var h=i(s[d],c);h!=="undefined"&&u.push([c.quotedString(d),":",h])});var m=this.generateList(u);return m.prepend("{"),m.add("}"),m},generateList:function(s){for(var c=this.empty(),u=0,m=s.length;u<m;u++)u&&c.add(","),c.add(i(s[u],this));return c},generateArray:function(s){var c=this.generateList(s);return c.prepend("["),c.add("]"),c}},t.default=a,e.exports=t.default})(Xr,Xr.exports);var MS=Xr.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var r=Ie,o=Pe,i=n(o),a=se,l=MS,s=n(l);function c(d){this.value=d}function u(){}u.prototype={nameLookup:function(h,f){return this.internalNameLookup(h,f)},depthedLookup:function(h){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(h),")"]},compilerInfo:function(){var h=r.COMPILER_REVISION,f=r.REVISION_CHANGES[h];return[h,f]},appendToBuffer:function(h,f,b){return a.isArray(h)||(h=[h]),h=this.source.wrap(h,f),this.environment.isSimple?["return ",h,";"]:b?["buffer += ",h,";"]:(h.appendToBuffer=!0,h)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(h,f){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",h,",",JSON.stringify(f),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(h,f,b,v){this.environment=h,this.options=f,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!v,this.name=this.environment.name,this.isChild=!!b,this.context=b||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(h,f),this.useDepths=this.useDepths||h.useDepths||h.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||h.useBlockParams;var S=h.opcodes,_=void 0,A=void 0,x=void 0,k=void 0;for(x=0,k=S.length;x<k;x++)_=S[x],this.source.currentLocation=_.loc,A=A||_.loc,this[_.opcode].apply(this,_.args);if(this.source.currentLocation=A,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
715
|
+
`]),this.decorators.push("return fn;"),v?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
716
|
+
`),this.decorators.push(`}
|
|
717
|
+
`),this.decorators=this.decorators.merge()));var N=this.createFunctionContext(v);if(this.isChild)return N;var C={compiler:this.compilerInfo(),main:N};this.decorators&&(C.main_d=this.decorators,C.useDecorators=!0);var y=this.context,I=y.programs,T=y.decorators;for(x=0,k=I.length;x<k;x++)C[x]=I[x],T[x]&&(C[x+"_d"]=T[x],C.useDecorators=!0);return this.environment.usePartial&&(C.usePartial=!0),this.options.data&&(C.useData=!0),this.useDepths&&(C.useDepths=!0),this.useBlockParams&&(C.useBlockParams=!0),this.options.compat&&(C.compat=!0),v?C.compilerOptions=this.options:(C.compiler=JSON.stringify(C.compiler),this.source.currentLocation={start:{line:1,column:0}},C=this.objectLiteral(C),f.srcName?(C=C.toStringWithSourceMap({file:f.destName}),C.map=C.map&&C.map.toString()):C=C.toString()),C},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(h){var f=this,b="",v=this.stackVars.concat(this.registers.list);v.length>0&&(b+=", "+v.join(", "));var S=0;Object.keys(this.aliases).forEach(function(x){var k=f.aliases[x];k.children&&k.referenceCount>1&&(b+=", alias"+ ++S+"="+x,k.children[0]="alias"+S)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var _=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&_.push("blockParams"),this.useDepths&&_.push("depths");var A=this.mergeSource(b);return h?(_.push(A),Function.apply(this,_)):this.source.wrap(["function(",_.join(","),`) {
|
|
718
|
+
`,A,"}"])},mergeSource:function(h){var f=this.environment.isSimple,b=!this.forceBuffer,v=void 0,S=void 0,_=void 0,A=void 0;return this.source.each(function(x){x.appendToBuffer?(_?x.prepend(" + "):_=x,A=x):(_&&(S?_.prepend("buffer += "):v=!0,A.add(";"),_=A=void 0),S=!0,f||(b=!1))}),b?_?(_.prepend("return "),A.add(";")):S||this.source.push('return "";'):(h+=", buffer = "+(v?"":this.initializeBuffer()),_?(_.prepend("return buffer + "),A.add(";")):this.source.push("return buffer;")),h&&this.source.prepend("var "+h.substring(2)+(v?"":`;
|
|
719
|
+
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
|
|
720
|
+
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
721
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
722
|
+
return parent[propertyName];
|
|
723
|
+
}
|
|
724
|
+
return undefined
|
|
725
|
+
}
|
|
726
|
+
`.trim()},blockValue:function(h){var f=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(h,0,b);var v=this.popStack();b.splice(1,0,v),this.push(this.source.functionCall(f,"call",b))},ambiguousBlockValue:function(){var h=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs("",0,f,!0),this.flushInline();var b=this.topStack();f.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(h,"call",f),"}"])},appendContent:function(h){this.pendingContent?h=this.pendingContent+h:this.pendingLocation=this.source.currentLocation,this.pendingContent=h},append:function(){if(this.isInline())this.replaceStack(function(f){return[" != null ? ",f,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var h=this.popStack();this.pushSource(["if (",h," != null) { ",this.appendToBuffer(h,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(h){this.lastContext=h},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(h,f,b,v){var S=0;!v&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(h[S++])):this.pushContext(),this.resolvePath("context",h,S,f,b)},lookupBlockParam:function(h,f){this.useBlockParams=!0,this.push(["blockParams[",h[0],"][",h[1],"]"]),this.resolvePath("context",f,1)},lookupData:function(h,f,b){h?this.pushStackLiteral("container.data(data, "+h+")"):this.pushStackLiteral("data"),this.resolvePath("data",f,0,!0,b)},resolvePath:function(h,f,b,v,S){var _=this;if(this.options.strict||this.options.assumeObjects){this.push(m(this.options.strict&&S,this,f,b,h));return}for(var A=f.length,x=function(N){_.replaceStack(function(C){var y=_.nameLookup(C,f[N],h);return v?[" && ",y]:[" != null ? ",y," : ",C]})},k=b;k<A;k++)x(k)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(h,f){this.pushContext(),this.pushString(f),f!=="SubExpression"&&(typeof h=="string"?this.pushString(h):this.pushStackLiteral(h))},emptyHash:function(h){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(h?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var h=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(h.ids)),this.stringParams&&(this.push(this.objectLiteral(h.contexts)),this.push(this.objectLiteral(h.types))),this.push(this.objectLiteral(h.values))},pushString:function(h){this.pushStackLiteral(this.quotedString(h))},pushLiteral:function(h){this.pushStackLiteral(h)},pushProgram:function(h){h!=null?this.pushStackLiteral(this.programExpression(h)):this.pushStackLiteral(null)},registerDecorator:function(h,f){var b=this.nameLookup("decorators",f,"decorator"),v=this.setupHelperArgs(f,h);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+f+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",v])," || fn;"])},invokeHelper:function(h,f,b){var v=this.popStack(),S=this.setupHelper(h,f),_=[];b&&_.push(S.name),_.push(v),this.options.strict||_.push(this.aliasable("container.hooks.helperMissing"));var A=["(",this.itemsSeparatedBy(_,"||"),")"],x=this.source.functionCall(A,"call",S.callParams);this.push(x)},itemsSeparatedBy:function(h,f){var b=[];b.push(h[0]);for(var v=1;v<h.length;v++)b.push(f,h[v]);return b},invokeKnownHelper:function(h,f){var b=this.setupHelper(h,f);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(h,f){this.useRegister("helper");var b=this.popStack();this.emptyHash();var v=this.setupHelper(0,h,f),S=this.lastHelper=this.nameLookup("helpers",h,"helper"),_=["(","(helper = ",S," || ",b,")"];this.options.strict||(_[0]="(helper = ",_.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",_,v.paramsInit?["),(",v.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",v.callParams)," : helper))"])},invokePartial:function(h,f,b){var v=[],S=this.setupParams(f,1,v);h&&(f=this.popStack(),delete S.name),b&&(S.indent=JSON.stringify(b)),S.helpers="helpers",S.partials="partials",S.decorators="container.decorators",h?v.unshift(f):v.unshift(this.nameLookup("partials",f,"partial")),this.options.compat&&(S.depths="depths"),S=this.objectLiteral(S),v.push(S),this.push(this.source.functionCall("container.invokePartial","",v))},assignToHash:function(h){var f=this.popStack(),b=void 0,v=void 0,S=void 0;this.trackIds&&(S=this.popStack()),this.stringParams&&(v=this.popStack(),b=this.popStack());var _=this.hash;b&&(_.contexts[h]=b),v&&(_.types[h]=v),S&&(_.ids[h]=S),_.values[h]=f},pushId:function(h,f,b){h==="BlockParam"?this.pushStackLiteral("blockParams["+f[0]+"].path["+f[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):h==="PathExpression"?this.pushString(f):h==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(h,f){for(var b=h.children,v=void 0,S=void 0,_=0,A=b.length;_<A;_++){v=b[_],S=new this.compiler;var x=this.matchExistingProgram(v);if(x==null){var k=this.context.programs.push("")-1;v.index=k,v.name="program"+k,this.context.programs[k]=S.compile(v,f,this.context,!this.precompile),this.context.decorators[k]=S.decorators,this.context.environments[k]=v,this.useDepths=this.useDepths||S.useDepths,this.useBlockParams=this.useBlockParams||S.useBlockParams,v.useDepths=this.useDepths,v.useBlockParams=this.useBlockParams}else v.index=x.index,v.name="program"+x.index,this.useDepths=this.useDepths||x.useDepths,this.useBlockParams=this.useBlockParams||x.useBlockParams}},matchExistingProgram:function(h){for(var f=0,b=this.context.environments.length;f<b;f++){var v=this.context.environments[f];if(v&&v.equals(h))return v}},programExpression:function(h){var f=this.environment.children[h],b=[f.index,"data",f.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(h){this.registers[h]||(this.registers[h]=!0,this.registers.list.push(h))},push:function(h){return h instanceof c||(h=this.source.wrap(h)),this.inlineStack.push(h),h},pushStackLiteral:function(h){this.push(new c(h))},pushSource:function(h){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),h&&this.source.push(h)},replaceStack:function(h){var f=["("],b=void 0,v=void 0,S=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var _=this.popStack(!0);if(_ instanceof c)b=[_.value],f=["(",b],S=!0;else{v=!0;var A=this.incrStack();f=["((",this.push(A)," = ",_,")"],b=this.topStack()}var x=h.call(this,b);S||this.popStack(),v&&this.stackSlot--,this.push(f.concat(x,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var h=this.inlineStack;this.inlineStack=[];for(var f=0,b=h.length;f<b;f++){var v=h[f];if(v instanceof c)this.compileStack.push(v);else{var S=this.incrStack();this.pushSource([S," = ",v,";"]),this.compileStack.push(S)}}},isInline:function(){return this.inlineStack.length},popStack:function(h){var f=this.isInline(),b=(f?this.inlineStack:this.compileStack).pop();if(!h&&b instanceof c)return b.value;if(!f){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var h=this.isInline()?this.inlineStack:this.compileStack,f=h[h.length-1];return f instanceof c?f.value:f},contextName:function(h){return this.useDepths&&h?"depths["+h+"]":"depth"+h},quotedString:function(h){return this.source.quotedString(h)},objectLiteral:function(h){return this.source.objectLiteral(h)},aliasable:function(h){var f=this.aliases[h];return f?(f.referenceCount++,f):(f=this.aliases[h]=this.source.wrap(h),f.aliasable=!0,f.referenceCount=1,f)},setupHelper:function(h,f,b){var v=[],S=this.setupHelperArgs(f,h,v,b),_=this.nameLookup("helpers",f,"helper"),A=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:v,paramsInit:S,name:_,callParams:[A].concat(v)}},setupParams:function(h,f,b){var v={},S=[],_=[],A=[],x=!b,k=void 0;x&&(b=[]),v.name=this.quotedString(h),v.hash=this.popStack(),this.trackIds&&(v.hashIds=this.popStack()),this.stringParams&&(v.hashTypes=this.popStack(),v.hashContexts=this.popStack());var N=this.popStack(),C=this.popStack();(C||N)&&(v.fn=C||"container.noop",v.inverse=N||"container.noop");for(var y=f;y--;)k=this.popStack(),b[y]=k,this.trackIds&&(A[y]=this.popStack()),this.stringParams&&(_[y]=this.popStack(),S[y]=this.popStack());return x&&(v.args=this.source.generateArray(b)),this.trackIds&&(v.ids=this.source.generateArray(A)),this.stringParams&&(v.types=this.source.generateArray(_),v.contexts=this.source.generateArray(S)),this.options.data&&(v.data="data"),this.useBlockParams&&(v.blockParams="blockParams"),v},setupHelperArgs:function(h,f,b,v){var S=this.setupParams(h,f,b);return S.loc=JSON.stringify(this.source.currentLocation),S=this.objectLiteral(S),v?(this.useRegister("options"),b.push("options"),["options=",S]):b?(b.push(S),""):S}},function(){for(var d="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),h=u.RESERVED_WORDS={},f=0,b=d.length;f<b;f++)h[d[f]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function m(d,h,f,b,v){var S=h.popStack(),_=f.length;d&&_--;for(var A=b;A<_;A++)S=h.nameLookup(S,f[A],v);return d?[h.aliasable("container.strict"),"(",S,", ",h.quotedString(f[_]),", ",JSON.stringify(h.source.currentLocation)," )"]:S}t.default=u,e.exports=t.default})(Jr,Jr.exports);var LS=Jr.exports;(function(e,t){t.__esModule=!0;function n(_){return _&&_.__esModule?_:{default:_}}var r=J1,o=n(r),i=gl,a=n(i),l=Qt,s=en,c=LS,u=n(c),m=ml,d=n(m),h=fl,f=n(h),b=o.default.create;function v(){var _=b();return _.compile=function(A,x){return s.compile(A,x,_)},_.precompile=function(A,x){return s.precompile(A,x,_)},_.AST=a.default,_.Compiler=s.Compiler,_.JavaScriptCompiler=u.default,_.Parser=l.parser,_.parse=l.parse,_.parseWithoutProcessing=l.parseWithoutProcessing,_}var S=v();S.create=v,f.default(S),S.Visitor=d.default,S.default=S,t.default=S,e.exports=t.default})(Nr,Nr.exports);var zS=Nr.exports;const jS=Lx(zS);function BS(e,t){const n=[],r=new Set,o=i=>{var l,s,c,u,m,d,h,f,b,v;if(r.has(i)||!e[i])return;r.add(i),n.push(i);const a=e[i];switch(a.type){case"Container":case"ButtonGroup":(((l=a.data.props)==null?void 0:l.childrenIds)||[]).forEach(o);break;case"ColumnsContainer":case"FlexColumns":(((s=a.data.props)==null?void 0:s.columns)||[]).forEach(S=>(S.childrenIds||[]).forEach(o));break;case"Grid":(((c=a.data.props)==null?void 0:c.cells)||[]).forEach(S=>(S.childrenIds||[]).forEach(o));break;case"Accordion":(((u=a.data.props)==null?void 0:u.items)||[]).forEach(S=>{(S.titleChildrenIds||[]).forEach(o),(S.contentChildrenIds||[]).forEach(o)});break;case"TabsBlock":case"Carousel":case"Marquee":(((m=a.data.props)==null?void 0:m.items)||[]).forEach(S=>{(S.contentChildrenIds||[]).forEach(o)});break;case"Pagination":(((d=a.data.props)==null?void 0:d.cells)||[]).forEach(S=>(S.childrenIds||[]).forEach(o)),(((h=a.data.props)==null?void 0:h.items)||[]).forEach(S=>{(S.contentChildrenIds||[]).forEach(o)});break;case"PricingAccordion":(((f=a.data.props)==null?void 0:f.items)||[]).forEach(S=>{(S.cardChildrenIds||[]).forEach(o),(S.detailChildrenIds||[]).forEach(o)});break;case"MenuPicker":(((b=a.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(o),(((v=a.data.props)==null?void 0:v.endChildrenIds)||[]).forEach(o);break;case"EmailLayout":(a.data.childrenIds||[]).forEach(o);break}};return o(t),n}function DS(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const r=e;for(const o of t){if((o==null?void 0:o.type)!=="array"||!o.sourceBlockId)continue;(Array.isArray(o.value)?o.value:[]).forEach((a,l)=>{var c;const s=l===0?o.sourceBlockId:(c=o.rowIds)==null?void 0:c[l-1];if(!(!s||!r[s]))for(const u of BS(r,s))n.set(u,a||{})})}return n}const HS={Text:["text"],Heading:["text"],Button:["text"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Container:["linkHref"]};function FS(e){return e?HS[e]:void 0}const Qr=jS.create();Qr.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new Qr.SafeString(`{{${t.name}}}`)});const Qi=new Map;function GS(e){let t=Qi.get(e);return t||(t=Qr.compile(e,{noEscape:!0,strict:!1}),Qi.set(e,t)),t}function wl(e){const t={};for(const n of e)if(!(!n||!n.id)){if(n.type==="array"){if(!Array.isArray(n.value)||n.value.length===0)continue;const r=n.value.map(o=>{const i={};if(o&&typeof o=="object")for(const a of Object.keys(o)){const l=o[a];l!=null&&l!==""&&(i[a]=l)}return i});Object.defineProperty(r,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=r;continue}typeof n.value!="string"||n.value===""||(t[n.id]=n.value)}return t}function kl(e){var n,r;const t=(r=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:r.formFields;return Array.isArray(t)?t:[]}const US=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function ZS(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let r=0;return{masked:e.replace(US,(i,a)=>{const l=t[a];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+r+++"_";return n.set(c,i),c}),restore:n}}const $l=/\{\{\s*this\.([\w]+)\s*\}\}/g;function WS(e,t){return e.replace($l,(n,r)=>{const o=t==null?void 0:t[r];return o!=null&&o!==""?String(o):n})}function ea(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let r=e;if(n&&(r=WS(r,n),r.indexOf("{{")===-1)||!t||t.length===0)return r;try{const o=t&&t.length>0?wl(t):{},{masked:i,restore:a}=ZS(r,o),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace($l,m=>{const d="HB_THIS_"+u+++"_";return l.set(d,m),d})}let c=GS(s)(o);for(const[u,m]of l)c=c.split(u).join(m);if(a.size>0)for(const[u,m]of a)c=c.split(u).join(m);return c}catch{return r}}function VS(e,t,n){var a,l,s;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="List"){const c=(l=(a=e.data)==null?void 0:a.props)==null?void 0:l.items;if(!Array.isArray(c)||c.length===0)return e;let u=null;return c.forEach((m,d)=>{const h=m==null?void 0:m.text;if(typeof h!="string"||h.indexOf("{{")===-1)return;const f=ea(h,t,n);f!==h&&(u||(u=c.map(b=>({...b}))),u[d]={...u[d],text:f})}),u?{...e,data:{...e.data,props:{...e.data.props,items:u}}}:e}const r=FS(e.type);if(!r)return e;const o=(s=e.data)==null?void 0:s.props;if(!o)return e;let i=null;for(const c of r){const u=o[c];if(typeof u!="string"||u.indexOf("{{")===-1)continue;const m=ea(u,t,n);m!==u&&(i||(i={...o}),i[c]=m)}return i?{...e,data:{...e.data,props:i}}:e}function Cl(e,t){var l;if(!e)return e;const n=t??kl(e);let r={...e},o=!1;const i=DS(e,n);if(n&&n.length>0&&(Object.keys(wl(n)).length>0||i.size>0))for(const s of Object.keys(r)){const c=r[s],u=VS(c,n,i.get(s));u!==c&&(r[s]=u,o=!0)}const a=r.root;if(((l=a==null?void 0:a.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=a.data;r.root={...a,data:c},o=!0}return o?r:e}function qS(e){var i,a,l,s,c,u,m,d,h,f,b;if(!e)return[];const t=e.configuration??{},n=(a=(i=t==null?void 0:t.root)==null?void 0:i.data)==null?void 0:a.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const r=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(r){const v=new Set,S=[];for(const _ of r){const A=(u=(c=(s=(l=_==null?void 0:_.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:c.data)==null?void 0:u.formFields;if(Array.isArray(A))for(const x of A)!(x!=null&&x.id)||v.has(x.id)||(v.add(x.id),S.push(x))}if(S.length>0)return S}const o=(b=(f=(h=(d=(m=t==null?void 0:t.step)==null?void 0:m.contentMetadata)==null?void 0:d.document)==null?void 0:h.root)==null?void 0:f.data)==null?void 0:b.formFields;return Array.isArray(o)&&o.length>0?o:Array.isArray(e.formFields)?e.formFields:[]}function KS(e){var n,r,o,i,a,l,s;if(!e||typeof e!="object")return null;const t=e.configuration;if(!t||typeof t!="object")return null;if(t.root)return t;if(t.isIndividualBlock&&typeof t.rootBlockId=="string"&&t.blocks&&typeof t.blocks=="object"&&t.blocks[t.rootBlockId]){const c=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:c}}}}return(o=(r=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:r.document)!=null&&o.root?t.content.contentMetadata.document:(a=(i=t.contentMetadata)==null?void 0:i.document)!=null&&a.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function YS(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function JS(e){const t=e;return!!(t.templateId&&t.baseUrl)}function Al(e){if(!e||typeof e!="object")return e;const t=kl(e);return!t||t.length===0?e:Cl(e,t)}const XS=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text"]);function QS(e){var r,o,i;const t=((r=e==null?void 0:e.data)==null?void 0:r.props)??{};return{type:"Text",data:{props:{text:typeof t.html=="string"&&t.html||typeof t.text=="string"&&t.text||typeof t.markdown=="string"&&t.markdown||""},style:((o=e==null?void 0:e.data)==null?void 0:o.style)??{},hidden:(i=e==null?void 0:e.data)==null?void 0:i.hidden}}}function yl(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[r,o]of Object.entries(e)){const i=o==null?void 0:o.type;i&&!XS.has(i)?(n[r]=QS(o),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${r}" has unsupported type "${i}" — coerced to Text.`)):n[r]=o}return t?n:e}function xo(e,t){var a;if(!e)return"";const n=t.rootBlockId??"root",r=Al(e),o=yl(r),i=((a=o==null?void 0:o[n])==null?void 0:a.data)??{};return ho(o,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??i.lang,skipLink:t.skipLink??i.skipLink,accessibilityTools:t.accessibilityTools??i.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner})}function Nl(e){const t=e.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!t)throw new Error("[pagepilot-visual-editor] renderToStaticHtml: global fetch is not available — pass `fetchFn`.");return t}function Rl(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function El(e,t,n){const r=await n(e,t);if(!r.ok){const o=await r.text().catch(()=>"");return{ok:!1,body:null,status:r.status,text:o}}return{ok:!0,body:await r.json(),status:r.status,text:""}}async function e2(e,t){var v;const{baseUrl:n,tenantId:r,pageId:o}=t,a=`${n.replace(/\/+$/,"")}/tenant/${r}/page/${o}`,l=Nl(t),s=await El(a,{method:"GET",headers:Rl(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${a} → ${s.status}${s.text?`: ${s.text}`:""}`);const c=s.body,{wrapInDocumentShell:u=!0,headHtml:m,bodyBottomHtml:d}=t,h=Array.isArray(c==null?void 0:c.sections)?c.sections:[];if(h.length===0)return xo(((v=c==null?void 0:c.contentMetadata)==null?void 0:v.document)??e,t);const f=h.map(S=>{var k;const _=(k=S==null?void 0:S.contentMetadata)==null?void 0:k.document;if(!_)return S;const A=Al(_),x=yl(A);return{...S,contentMetadata:{...S.contentMetadata??{},document:x}}}),{html:b}=Mx(f,{rootBlockId:t.rootBlockId,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,isBanner:t.isBanner,seo:t.seo,wrapInDocumentShell:u,seoTitle:(c==null?void 0:c.metaTitle)??(c==null?void 0:c.title)??(c==null?void 0:c.name),seoDescription:c==null?void 0:c.metaDescription,lang:t.lang??(c==null?void 0:c.lang),extraHead:m??(c==null?void 0:c.head)??"",extraBodyBottom:d??(c==null?void 0:c.bodyBottom)??""});return b}async function t2(e){const{baseUrl:t,tenantId:n,templateId:r,isGlobal:o=!1}=e,i=t.replace(/\/+$/,""),a=Nl(e),l=o?`${i}/global-template/${r}`:`${i}/tenant/${n}/template/${r}`,s=o?{"Content-Type":"application/json"}:Rl(e),c=await El(l,{method:"GET",headers:s},a);if(c.ok)return c.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${c.status}${c.text?`: ${c.text}`:""}`)}function n2(e,t){if(!t)return e;const n=new Map;for(const o of e)o!=null&&o.id&&n.set(o.id,o);if(Array.isArray(t)){for(const o of t){if(!(o!=null&&o.id))continue;const a={...n.get(o.id)??{id:o.id,name:o.id,type:"text"},...o};n.set(o.id,a)}return Array.from(n.values())}const r=Object.entries(t).filter(([,o])=>o!=null);if(r.length===0)return e;for(const[o,i]of r){const a=String(i),l=n.get(o);l?n.set(o,{...l,value:a}):n.set(o,{id:o,name:o,type:"text",value:a})}return Array.from(n.values())}async function r2(e,t){const n=await t2(t),r=KS(n)??(e&&Object.keys(e).length>0?e:null);if(!r)return"";const o=qS(n),i=n2(o,t.variables),a=Cl(r,i);return xo(a,t)}function o2(e,t){return JS(t)?r2(e,t):YS(t)?e2(e,t):xo(e,t)}exports.Reader=qt;exports.ReaderBlock=pe;exports.ReaderBlockSchema=il;exports.ReaderDocumentSchema=bx;exports.renderToStaticHtml=o2;exports.renderToStaticMarkup=ho;
|