pagepilot-visual-editor 1.0.27 → 1.0.28
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/CHANGELOG.md +27 -0
- package/dist/blocks-internal/block-button/src/index.d.ts +10 -9
- package/dist/blocks-internal/block-button/src/styles.d.ts +5 -0
- package/dist/blocks-internal/block-button-group/src/index.d.ts +6 -0
- package/dist/blocks-internal/block-container/src/index.d.ts +5 -5
- package/dist/blocks-internal/block-heading/src/index.d.ts +30 -1
- package/dist/blocks-internal/block-image/src/index.d.ts +46 -11
- package/dist/blocks-internal/block-logo/src/index.d.ts +17 -11
- package/dist/blocks-internal/block-text/src/index.d.ts +25 -0
- package/dist/blocks-internal/block-video/src/index.d.ts +6 -0
- package/dist/blocks-internal/block-youtube-url/src/index.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
- package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/Table/TableImportDialog.styles.d.ts +7 -7
- package/dist/editor-sample/documents/blocks/helpers/responsiveStyle.d.ts +3 -16
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +2 -2
- package/dist/editor-sample/documents/editor/core.d.ts +123 -27
- package/dist/email-builder-core/Reader/resolveResponsiveBlock.d.ts +17 -0
- package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +6 -4
- package/dist/email-builder-core/blocks/Container/ContainerReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +12 -0
- package/dist/email-builder-core/blocks/MenuPicker/menuResponsiveCss.d.ts +1 -0
- package/dist/email-builder-core/blocks/Timer/TimerPropsSchema.d.ts +2 -0
- package/dist/email-builder-core/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
- package/dist/email-builder-core/blocks/helpers/blockStyleHelpers.d.ts +37 -1
- package/dist/email-builder-core/renderers/animationCss.d.ts +5 -5
- package/dist/email-builder-core/renderers/pageScripts.d.ts +1 -11
- package/dist/email-builder-core/renderers/renderToStaticMarkup.d.ts +4 -2
- package/dist/email-builder-core/renderers/themeTokens.d.ts +130 -0
- package/dist/host-stubs/modules/settings/settingsSelectors.d.ts +5 -0
- package/dist/host-stubs/style/menu.styled.d.ts +5 -1
- package/dist/host-stubs/view/branding/brandDefaultFont.d.ts +3 -0
- package/dist/host-stubs/view/shared/editors/highlightCode.d.ts +1 -0
- package/dist/{index-BNqa-SV3.cjs → index-Br_dDd3Z.cjs} +359 -1226
- package/dist/{index-C4zNSWXe.js → index-Cp5AeqH5.js} +1 -1
- package/dist/{index-Dk7bp7l0.js → index-DcN8zC8_.js} +24173 -24385
- package/dist/{index-Cu-dtp0Q.cjs → index-SYmY8c1I.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/render-core/stubs/editorContext.d.ts +3 -1
- package/dist/render.cjs +259 -1126
- package/dist/render.js +6470 -6699
- package/dist/renderToStaticHtml.d.ts +9 -1
- package/dist/{xlsx-Cd1etxFW.js → xlsx-Bk2GErZO.js} +1 -1
- package/dist/{xlsx-C6JQXDb3.cjs → xlsx-vznvhtjT.cjs} +1 -1
- package/package.json +1 -1
package/dist/render.cjs
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),rc=require("react-dom/server"),F=require("react");var Ia;function N(e,t,n){function o(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 f=0;f<u.length;f++){const d=u[f];d in l||(l[d]=c[d].bind(l))}}const r=(n==null?void 0:n.Parent)??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function a(l){var s;const c=n!=null&&n.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:o}),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 Ft extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class pl extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Ia=globalThis).__zod_globalConfig??(Ia.__zod_globalConfig={});const Xr=globalThis.__zod_globalConfig;function ct(e){return Xr}function ml(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function cr(e,t){return typeof t=="bigint"?t.toString():t}function ho(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Qr(e){return e==null}function ea(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function ac(e,t){const n=e/t,o=Math.round(n),r=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}const Ra=Symbol("evaluating");function te(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Ra)return o===void 0&&(o=Ra,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function yt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function bt(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Ea(e){return JSON.stringify(e)}function ic(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const gl="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function mn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const lc=ho(()=>{var e;if(Xr.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 Ut(e){if(mn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(mn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function bl(e){return Ut(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const sc=new Set(["string","number","symbol"]);function Zt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(o._zod.parent=e),o}function B(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 cc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const uc={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 dc(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=bt(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 yt(this,"shape",a),a},checks:[]});return xt(e,i)}function hc(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=bt(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 yt(this,"shape",a),a},checks:[]});return xt(e,i)}function fc(e,t){if(!Ut(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 r=bt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return yt(this,"shape",i),i}});return xt(e,r)}function pc(e,t){if(!Ut(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=bt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return yt(this,"shape",o),o}});return xt(e,n)}function mc(e,t){var o;if((o=e._zod.def.checks)!=null&&o.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=bt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return yt(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return xt(e,n)}function gc(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=bt(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 yt(this,"shape",s),s},checks:[]});return xt(t,a)}function bc(e,t,n){const o=bt(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};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:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return yt(this,"shape",i),i}});return xt(t,o)}function jt(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)!==!0)return!0;return!1}function xc(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)===!1)return!0;return!1}function mt(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Nn(e){return typeof e=="string"?e:e==null?void 0:e.message}function ut(e,t,n){var s,c,u,f,d,h;const o=e.message?e.message:Nn((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??Nn((f=t==null?void 0:t.error)==null?void 0:f.call(t,e))??Nn((d=n.customError)==null?void 0:d.call(n,e))??Nn((h=n.localeError)==null?void 0:h.call(n,e))??"Invalid input",{inst:r,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=a),l}function ta(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function gn(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const xl=(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,cr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},vl=N("$ZodError",xl),wl=N("$ZodError",xl,{Parent:Error});function vc(e,t=n=>n.message){const n={},o=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}function wc(e,t=n=>n.message){const n={_errors:[]},o=(r,i=[])=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({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 o(e),n}const na=e=>(t,n,o,r)=>{const i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Ft;if(a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>ut(s,i,ct())));throw gl(l,r==null?void 0:r.callee),l}return a.value},oa=e=>async(t,n,o,r)=>{const i=o?{...o,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((r==null?void 0:r.Err)??e)(a.issues.map(s=>ut(s,i,ct())));throw gl(l,r==null?void 0:r.callee),l}return a.value},fo=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Ft;return i.issues.length?{success:!1,error:new(e??vl)(i.issues.map(a=>ut(a,r,ct())))}:{success:!0,data:i.value}},Sc=fo(wl),po=e=>async(t,n,o)=>{const r=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>ut(a,r,ct())))}:{success:!0,data:i.value}},kc=po(wl),_c=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return na(e)(t,n,r)},$c=e=>(t,n,o)=>na(e)(t,n,o),Cc=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return oa(e)(t,n,r)},Ac=e=>async(t,n,o)=>oa(e)(t,n,o),yc=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return fo(e)(t,n,r)},Ic=e=>(t,n,o)=>fo(e)(t,n,o),Rc=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return po(e)(t,n,r)},Ec=e=>async(t,n,o)=>po(e)(t,n,o),Nc=/^[cC][0-9a-z]{6,}$/,Mc=/^[0-9a-z]+$/,Tc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Pc=/^[0-9a-vA-V]{20}$/,Oc=/^[A-Za-z0-9]{27}$/,Lc=/^[a-zA-Z0-9_-]{21}$/,zc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jc=/^([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})$/,Na=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)$/,Bc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Dc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Fc(){return new RegExp(Dc,"u")}const Hc=/^(?:(?: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])$/,Gc=/^(([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}|:))$/,Uc=/^((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])$/,Zc=/^(([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])$/,Wc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Sl=/^[A-Za-z0-9_-]*$/,qc=/^https?$/,Vc=/^\+[1-9]\d{6,14}$/,kl="(?:(?:\\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])))",Yc=new RegExp(`^${kl}$`);function _l(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 Kc(e){return new RegExp(`^${_l(e)}$`)}function Jc(e){const t=_l({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${kl}T(?:${o})$`)}const Xc=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}$`)},Qc=/^-?\d+$/,$l=/^-?\d+(?:\.\d+)?$/,eu=/^(?:true|false)$/i,tu=/^[^A-Z]*$/,nu=/^[^a-z]*$/,je=N("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Cl={number:"number",bigint:"bigint",object:"date"},Al=N("$ZodCheckLessThan",(e,t)=>{je.init(e,t);const n=Cl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),yl=N("$ZodCheckGreaterThan",(e,t)=>{je.init(e,t);const n=Cl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ou=N("$ZodCheckMultipleOf",(e,t)=>{je.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.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):ac(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})}}),ru=N("$ZodCheckNumberFormat",(e,t)=>{var a;je.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),o=n?"int":"number",[r,i]=uc[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=r,s.maximum=i,n&&(s.pattern=Qc)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:o,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:o,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:o,inclusive:!0,continue:!t.abort});return}}s<r&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:r,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})}}),au=N("$ZodCheckMaxLength",(e,t)=>{var n;je.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!Qr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const r=o.value;if(r.length<=t.maximum)return;const a=ta(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),iu=N("$ZodCheckMinLength",(e,t)=>{var n;je.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!Qr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const r=o.value;if(r.length>=t.minimum)return;const a=ta(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),lu=N("$ZodCheckLengthEquals",(e,t)=>{var n;je.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!Qr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{const r=o.value,i=r.length;if(i===t.length)return;const a=ta(r),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),mo=N("$ZodCheckStringFormat",(e,t)=>{var n,o;je.init(e,t),e._zod.onattach.push(r=>{const i=r._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=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),su=N("$ZodCheckRegex",(e,t)=>{mo.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})}}),cu=N("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=tu),mo.init(e,t)}),uu=N("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=nu),mo.init(e,t)}),du=N("$ZodCheckIncludes",(e,t)=>{je.init(e,t);const n=Zt(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),hu=N("$ZodCheckStartsWith",(e,t)=>{je.init(e,t);const n=new RegExp(`^${Zt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),fu=N("$ZodCheckEndsWith",(e,t)=>{je.init(e,t);const n=new RegExp(`.*${Zt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),pu=N("$ZodCheckOverwrite",(e,t)=>{je.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class mu{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 o=t.split(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),Tc=require("react-dom/server"),U=require("react");var Wa;function E(e,t,n){function o(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 h=0;h<u.length;h++){const d=u[h];d in l||(l[d]=c[d].bind(l))}}const r=(n==null?void 0:n.Parent)??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function a(l){var s;const c=n!=null&&n.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:o}),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 Xt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Pl extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Wa=globalThis).__zod_globalConfig??(Wa.__zod_globalConfig={});const ca=globalThis.__zod_globalConfig;function wt(e){return ca}function Ol(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function xr(e,t){return typeof t=="bigint"?t.toString():t}function ko(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ua(e){return e==null}function da(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Ec(e,t){const n=e/t,o=Math.round(n),r=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}const Za=Symbol("evaluating");function re(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Za)return o===void 0&&(o=Za,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function jt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Rt(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Va(e){return JSON.stringify(e)}function Mc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Ll="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Cn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Pc=ko(()=>{var e;if(ca.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 tn(e){if(Cn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Cn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function zl(e){return tn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Oc=new Set(["string","number","symbol"]);function nn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Nt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(o._zod.parent=e),o}function G(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 Lc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const zc={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 jc(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=Rt(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 jt(this,"shape",a),a},checks:[]});return Nt(e,i)}function Bc(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=Rt(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 jt(this,"shape",a),a},checks:[]});return Nt(e,i)}function Dc(e,t){if(!tn(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 r=Rt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return jt(this,"shape",i),i}});return Nt(e,r)}function Fc(e,t){if(!tn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Rt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return jt(this,"shape",o),o}});return Nt(e,n)}function Hc(e,t){var o;if((o=e._zod.def.checks)!=null&&o.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Rt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return jt(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Nt(e,n)}function Gc(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=Rt(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 jt(this,"shape",s),s},checks:[]});return Nt(t,a)}function Uc(e,t,n){const o=Rt(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};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:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return jt(this,"shape",i),i}});return Nt(t,o)}function Yt(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)!==!0)return!0;return!1}function Wc(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)===!1)return!0;return!1}function yt(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Dn(e){return typeof e=="string"?e:e==null?void 0:e.message}function $t(e,t,n){var s,c,u,h,d,f;const o=e.message?e.message:Dn((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??Dn((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??Dn((d=n.customError)==null?void 0:d.call(n,e))??Dn((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:r,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=a),l}function ha(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function An(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const jl=(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,xr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Bl=E("$ZodError",jl),Dl=E("$ZodError",jl,{Parent:Error});function Zc(e,t=n=>n.message){const n={},o=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}function Vc(e,t=n=>n.message){const n={_errors:[]},o=(r,i=[])=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({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 o(e),n}const fa=e=>(t,n,o,r)=>{const i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Xt;if(a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>$t(s,i,wt())));throw Ll(l,r==null?void 0:r.callee),l}return a.value},ma=e=>async(t,n,o,r)=>{const i=o?{...o,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((r==null?void 0:r.Err)??e)(a.issues.map(s=>$t(s,i,wt())));throw Ll(l,r==null?void 0:r.callee),l}return a.value},_o=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Xt;return i.issues.length?{success:!1,error:new(e??Bl)(i.issues.map(a=>$t(a,r,wt())))}:{success:!0,data:i.value}},qc=_o(Dl),Co=e=>async(t,n,o)=>{const r=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>$t(a,r,wt())))}:{success:!0,data:i.value}},Yc=Co(Dl),Kc=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return fa(e)(t,n,r)},Jc=e=>(t,n,o)=>fa(e)(t,n,o),Xc=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return ma(e)(t,n,r)},Qc=e=>async(t,n,o)=>ma(e)(t,n,o),eu=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return _o(e)(t,n,r)},tu=e=>(t,n,o)=>_o(e)(t,n,o),nu=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return Co(e)(t,n,r)},ou=e=>async(t,n,o)=>Co(e)(t,n,o),ru=/^[cC][0-9a-z]{6,}$/,au=/^[0-9a-z]+$/,iu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,lu=/^[0-9a-vA-V]{20}$/,su=/^[A-Za-z0-9]{27}$/,cu=/^[a-zA-Z0-9_-]{21}$/,uu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,du=/^([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})$/,qa=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)$/,hu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,fu="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function mu(){return new RegExp(fu,"u")}const pu=/^(?:(?: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])$/,gu=/^(([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}|:))$/,bu=/^((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])$/,xu=/^(([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])$/,vu=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Fl=/^[A-Za-z0-9_-]*$/,Su=/^https?$/,wu=/^\+[1-9]\d{6,14}$/,Hl="(?:(?:\\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])))",$u=new RegExp(`^${Hl}$`);function Gl(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 ku(e){return new RegExp(`^${Gl(e)}$`)}function _u(e){const t=Gl({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${Hl}T(?:${o})$`)}const Cu=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}$`)},Au=/^-?\d+$/,Ul=/^-?\d+(?:\.\d+)?$/,yu=/^(?:true|false)$/i,Iu=/^[^A-Z]*$/,Ru=/^[^a-z]*$/,He=E("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Wl={number:"number",bigint:"bigint",object:"date"},Zl=E("$ZodCheckLessThan",(e,t)=>{He.init(e,t);const n=Wl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Vl=E("$ZodCheckGreaterThan",(e,t)=>{He.init(e,t);const n=Wl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Nu=E("$ZodCheckMultipleOf",(e,t)=>{He.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.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):Ec(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})}}),Tu=E("$ZodCheckNumberFormat",(e,t)=>{var a;He.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),o=n?"int":"number",[r,i]=zc[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=r,s.maximum=i,n&&(s.pattern=Au)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:o,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:o,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:o,inclusive:!0,continue:!t.abort});return}}s<r&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:r,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})}}),Eu=E("$ZodCheckMaxLength",(e,t)=>{var n;He.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ua(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const r=o.value;if(r.length<=t.maximum)return;const a=ha(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Mu=E("$ZodCheckMinLength",(e,t)=>{var n;He.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ua(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const r=o.value;if(r.length>=t.minimum)return;const a=ha(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Pu=E("$ZodCheckLengthEquals",(e,t)=>{var n;He.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ua(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{const r=o.value,i=r.length;if(i===t.length)return;const a=ha(r),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Ao=E("$ZodCheckStringFormat",(e,t)=>{var n,o;He.init(e,t),e._zod.onattach.push(r=>{const i=r._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=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Ou=E("$ZodCheckRegex",(e,t)=>{Ao.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})}}),Lu=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Iu),Ao.init(e,t)}),zu=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ru),Ao.init(e,t)}),ju=E("$ZodCheckIncludes",(e,t)=>{He.init(e,t);const n=nn(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Bu=E("$ZodCheckStartsWith",(e,t)=>{He.init(e,t);const n=new RegExp(`^${nn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Du=E("$ZodCheckEndsWith",(e,t)=>{He.init(e,t);const n=new RegExp(`.*${nn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),Fu=E("$ZodCheckOverwrite",(e,t)=>{He.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Hu{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 o=t.split(`
|
|
2
2
|
`).filter(a=>a),r=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(r)).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,r=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,r.join(`
|
|
3
|
-
`))}}const gu={major:4,minor:4,patch:3},de=N("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=gu;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const a of i._zod.onattach)a(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=jt(l),f;for(const d of s){if(d._zod.def.when){if(xc(l)||!d._zod.def.when(l))continue}else if(u)continue;const h=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Ft;if(f||p instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await p,l.issues.length!==h&&(u||(u=jt(l,h)))});else{if(l.issues.length===h)continue;u||(u=jt(l,h))}}return f?f.then(()=>l):l},a=(l,s,c)=>{if(jt(l))return l.aborted=!0,l;const u=i(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Ft;return u.then(f=>e._zod.parse(f,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(f=>a(f,l,s)):a(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new Ft;return c.then(u=>i(u,o,s))}return i(c,o,s)}}te(e,"~standard",()=>({validate:i=>{var a;try{const l=Sc(e,i);return l.success?{value:l.data}:{issues:(a=l.error)==null?void 0:a.issues}}catch{return kc(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}))}),ra=N("$ZodString",(e,t)=>{var n;de.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Xc(e._zod.bag),e._zod.parse=(o,r)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),ge=N("$ZodStringFormat",(e,t)=>{mo.init(e,t),ra.init(e,t)}),bu=N("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=jc),ge.init(e,t)}),xu=N("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Na(o))}else t.pattern??(t.pattern=Na());ge.init(e,t)}),vu=N("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Bc),ge.init(e,t)}),wu=N("$ZodURL",(e,t)=>{ge.init(e,t),e._zod.check=n=>{var o;try{const r=n.value.trim();if(!t.normalize&&((o=t.protocol)==null?void 0:o.source)===qc.source&&!/^https?:\/\//i.test(r)){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(r);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=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Su=N("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Fc()),ge.init(e,t)}),ku=N("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Lc),ge.init(e,t)}),_u=N("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Nc),ge.init(e,t)}),$u=N("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Mc),ge.init(e,t)}),Cu=N("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Tc),ge.init(e,t)}),Au=N("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Pc),ge.init(e,t)}),yu=N("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Oc),ge.init(e,t)}),Iu=N("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Jc(t)),ge.init(e,t)}),Ru=N("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Yc),ge.init(e,t)}),Eu=N("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Kc(t)),ge.init(e,t)}),Nu=N("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=zc),ge.init(e,t)}),Mu=N("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Hc),ge.init(e,t),e._zod.bag.format="ipv4"}),Tu=N("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Gc),ge.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})}}}),Pu=N("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Uc),ge.init(e,t)}),Ou=N("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Zc),ge.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[r,i]=o;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://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Il(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Lu=N("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Wc),ge.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Il(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function zu(e){if(!Sl.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Il(n)}const ju=N("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Sl),ge.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{zu(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Bu=N("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Vc),ge.init(e,t)});function Du(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const r=JSON.parse(atob(o));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const Fu=N("$ZodJWT",(e,t)=>{ge.init(e,t),e._zod.check=n=>{Du(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Rl=N("$ZodNumber",(e,t)=>{de.init(e,t),e._zod.pattern=e._zod.bag.pattern??$l,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),Hu=N("$ZodNumberFormat",(e,t)=>{ru.init(e,t),Rl.init(e,t)}),Gu=N("$ZodBoolean",(e,t)=>{de.init(e,t),e._zod.pattern=eu,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Uu=N("$ZodAny",(e,t)=>{de.init(e,t),e._zod.parse=n=>n}),Zu=N("$ZodUnknown",(e,t)=>{de.init(e,t),e._zod.parse=n=>n}),Wu=N("$ZodNever",(e,t)=>{de.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Ma(e,t,n){e.issues.length&&t.issues.push(...mt(n,e.issues)),t.value[n]=e.value}const qu=N("$ZodArray",(e,t)=>{de.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const i=[];for(let a=0;a<r.length;a++){const l=r[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Ma(c,n,a))):Ma(s,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function Kn(e,t,n,o,r,i){const a=n in o;if(e.issues.length){if(r&&i&&!a)return;t.issues.push(...mt(n,e.issues))}if(!a&&!r){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 El(e){var o,r,i,a;const t=Object.keys(e.shape);for(const l of t)if(!((a=(i=(r=(o=e.shape)==null?void 0:o[l])==null?void 0:r._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=cc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Nl(e,t,n,o,r,i){const a=[],l=r.keySet,s=r.catchall._zod,c=s.def.type,u=s.optin==="optional",f=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:[]},o);h instanceof Promise?e.push(h.then(p=>Kn(p,n,d,t,u,f))):Kn(h,n,d,t,u,f)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const Vu=N("$ZodObject",(e,t)=>{de.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 o=ho(()=>El(t));te(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 f of u.values)s[c].add(f)}}return s});const r=mn,i=t.catchall;let a;e._zod.parse=(l,s)=>{a??(a=o.value);const c=l.value;if(!r(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],f=a.shape;for(const d of a.keys){const h=f[d],p=h._zod.optin==="optional",b=h._zod.optout==="optional",x=h._zod.run({value:c[d],issues:[]},s);x instanceof Promise?u.push(x.then(w=>Kn(w,l,d,c,p,b))):Kn(x,l,d,c,p,b)}return i?Nl(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),Yu=N("$ZodObjectJIT",(e,t)=>{Vu.init(e,t);const n=e._zod.parse,o=ho(()=>El(t)),r=d=>{var _,S;const h=new mu(["shape","payload","ctx"]),p=o.value,b=$=>{const y=Ea($);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};h.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const $ of p.keys)x[$]=`key_${w++}`;h.write("const newResult = {};");for(const $ of p.keys){const y=x[$],C=Ea($),R=d[$],I=((_=R==null?void 0:R._zod)==null?void 0:_.optin)==="optional",E=((S=R==null?void 0:R._zod)==null?void 0:S.optout)==="optional";h.write(`const ${y} = ${b($)};`),I&&E?h.write(`
|
|
3
|
+
`))}}const Gu={major:4,minor:4,patch:3},me=E("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Gu;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const a of i._zod.onattach)a(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=Yt(l),h;for(const d of s){if(d._zod.def.when){if(Wc(l)||!d._zod.def.when(l))continue}else if(u)continue;const f=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Xt;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,l.issues.length!==f&&(u||(u=Yt(l,f)))});else{if(l.issues.length===f)continue;u||(u=Yt(l,f))}}return h?h.then(()=>l):l},a=(l,s,c)=>{if(Yt(l))return l.aborted=!0,l;const u=i(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Xt;return u.then(h=>e._zod.parse(h,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(h=>a(h,l,s)):a(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new Xt;return c.then(u=>i(u,o,s))}return i(c,o,s)}}re(e,"~standard",()=>({validate:i=>{var a;try{const l=qc(e,i);return l.success?{value:l.data}:{issues:(a=l.error)==null?void 0:a.issues}}catch{return Yc(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}))}),pa=E("$ZodString",(e,t)=>{var n;me.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Cu(e._zod.bag),e._zod.parse=(o,r)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),we=E("$ZodStringFormat",(e,t)=>{Ao.init(e,t),pa.init(e,t)}),Uu=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=du),we.init(e,t)}),Wu=E("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=qa(o))}else t.pattern??(t.pattern=qa());we.init(e,t)}),Zu=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=hu),we.init(e,t)}),Vu=E("$ZodURL",(e,t)=>{we.init(e,t),e._zod.check=n=>{var o;try{const r=n.value.trim();if(!t.normalize&&((o=t.protocol)==null?void 0:o.source)===Su.source&&!/^https?:\/\//i.test(r)){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(r);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=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),qu=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=mu()),we.init(e,t)}),Yu=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=cu),we.init(e,t)}),Ku=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ru),we.init(e,t)}),Ju=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=au),we.init(e,t)}),Xu=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=iu),we.init(e,t)}),Qu=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=lu),we.init(e,t)}),ed=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=su),we.init(e,t)}),td=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=_u(t)),we.init(e,t)}),nd=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=$u),we.init(e,t)}),od=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ku(t)),we.init(e,t)}),rd=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=uu),we.init(e,t)}),ad=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=pu),we.init(e,t),e._zod.bag.format="ipv4"}),id=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=gu),we.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})}}}),ld=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=bu),we.init(e,t)}),sd=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=xu),we.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[r,i]=o;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://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ql(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const cd=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=vu),we.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ql(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function ud(e){if(!Fl.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ql(n)}const dd=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Fl),we.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{ud(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),hd=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=wu),we.init(e,t)});function fd(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const r=JSON.parse(atob(o));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const md=E("$ZodJWT",(e,t)=>{we.init(e,t),e._zod.check=n=>{fd(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Yl=E("$ZodNumber",(e,t)=>{me.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ul,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),pd=E("$ZodNumberFormat",(e,t)=>{Tu.init(e,t),Yl.init(e,t)}),gd=E("$ZodBoolean",(e,t)=>{me.init(e,t),e._zod.pattern=yu,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),bd=E("$ZodAny",(e,t)=>{me.init(e,t),e._zod.parse=n=>n}),xd=E("$ZodUnknown",(e,t)=>{me.init(e,t),e._zod.parse=n=>n}),vd=E("$ZodNever",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Ya(e,t,n){e.issues.length&&t.issues.push(...yt(n,e.issues)),t.value[n]=e.value}const Sd=E("$ZodArray",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const i=[];for(let a=0;a<r.length;a++){const l=r[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Ya(c,n,a))):Ya(s,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function so(e,t,n,o,r,i){const a=n in o;if(e.issues.length){if(r&&i&&!a)return;t.issues.push(...yt(n,e.issues))}if(!a&&!r){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 Kl(e){var o,r,i,a;const t=Object.keys(e.shape);for(const l of t)if(!((a=(i=(r=(o=e.shape)==null?void 0:o[l])==null?void 0:r._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Lc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Jl(e,t,n,o,r,i){const a=[],l=r.keySet,s=r.catchall._zod,c=s.def.type,u=s.optin==="optional",h=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(c==="never"){a.push(d);continue}const f=s.run({value:t[d],issues:[]},o);f instanceof Promise?e.push(f.then(p=>so(p,n,d,t,u,h))):so(f,n,d,t,u,h)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const wd=E("$ZodObject",(e,t)=>{me.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 o=ko(()=>Kl(t));re(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 h of u.values)s[c].add(h)}}return s});const r=Cn,i=t.catchall;let a;e._zod.parse=(l,s)=>{a??(a=o.value);const c=l.value;if(!r(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],h=a.shape;for(const d of a.keys){const f=h[d],p=f._zod.optin==="optional",b=f._zod.optout==="optional",x=f._zod.run({value:c[d],issues:[]},s);x instanceof Promise?u.push(x.then(v=>so(v,l,d,c,p,b))):so(x,l,d,c,p,b)}return i?Jl(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),$d=E("$ZodObjectJIT",(e,t)=>{wd.init(e,t);const n=e._zod.parse,o=ko(()=>Kl(t)),r=d=>{var k,w;const f=new Hu(["shape","payload","ctx"]),p=o.value,b=C=>{const y=Va(C);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let v=0;for(const C of p.keys)x[C]=`key_${v++}`;f.write("const newResult = {};");for(const C of p.keys){const y=x[C],_=Va(C),I=d[C],R=((k=I==null?void 0:I._zod)==null?void 0:k.optin)==="optional",T=((w=I==null?void 0:I._zod)==null?void 0:w.optout)==="optional";f.write(`const ${y} = ${b(C)};`),R&&T?f.write(`
|
|
4
4
|
if (${y}.issues.length) {
|
|
5
|
-
if (${
|
|
5
|
+
if (${_} in input) {
|
|
6
6
|
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
7
7
|
...iss,
|
|
8
|
-
path: iss.path ? [${
|
|
8
|
+
path: iss.path ? [${_}, ...iss.path] : [${_}]
|
|
9
9
|
})));
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
if (${y}.value === undefined) {
|
|
14
|
-
if (${
|
|
15
|
-
newResult[${
|
|
14
|
+
if (${_} in input) {
|
|
15
|
+
newResult[${_}] = undefined;
|
|
16
16
|
}
|
|
17
17
|
} else {
|
|
18
|
-
newResult[${
|
|
18
|
+
newResult[${_}] = ${y}.value;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
`):
|
|
21
|
+
`):R?f.write(`
|
|
22
22
|
if (${y}.issues.length) {
|
|
23
23
|
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
24
24
|
...iss,
|
|
25
|
-
path: iss.path ? [${
|
|
25
|
+
path: iss.path ? [${_}, ...iss.path] : [${_}]
|
|
26
26
|
})));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
if (${y}.value === undefined) {
|
|
30
|
-
if (${
|
|
31
|
-
newResult[${
|
|
30
|
+
if (${_} in input) {
|
|
31
|
+
newResult[${_}] = undefined;
|
|
32
32
|
}
|
|
33
33
|
} else {
|
|
34
|
-
newResult[${
|
|
34
|
+
newResult[${_}] = ${y}.value;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
`):
|
|
38
|
-
const ${y}_present = ${
|
|
37
|
+
`):f.write(`
|
|
38
|
+
const ${y}_present = ${_} in input;
|
|
39
39
|
if (${y}.issues.length) {
|
|
40
40
|
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
41
41
|
...iss,
|
|
42
|
-
path: iss.path ? [${
|
|
42
|
+
path: iss.path ? [${_}, ...iss.path] : [${_}]
|
|
43
43
|
})));
|
|
44
44
|
}
|
|
45
45
|
if (!${y}_present && !${y}.issues.length) {
|
|
@@ -47,42 +47,54 @@
|
|
|
47
47
|
code: "invalid_type",
|
|
48
48
|
expected: "nonoptional",
|
|
49
49
|
input: undefined,
|
|
50
|
-
path: [${
|
|
50
|
+
path: [${_}]
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
if (${y}_present) {
|
|
55
55
|
if (${y}.value === undefined) {
|
|
56
|
-
newResult[${
|
|
56
|
+
newResult[${_}] = undefined;
|
|
57
57
|
} else {
|
|
58
|
-
newResult[${
|
|
58
|
+
newResult[${_}] = ${y}.value;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
`)}h.write("payload.value = newResult;"),h.write("return payload;");const v=h.compile();return($,y)=>v(d,$,y)};let i;const a=mn,l=!Xr.jitless,c=l&&lc.value,u=t.catchall;let f;e._zod.parse=(d,h)=>{f??(f=o.value);const p=d.value;return a(p)?l&&c&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(i||(i=r(t.shape)),d=i(d,h),u?Nl([],p,d,h,f,e):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function Ta(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const r=e.filter(i=>!jt(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>ut(a,o,ct())))}),t)}const Ml=N("$ZodUnion",(e,t)=>{de.init(e,t),te(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),te(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),te(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),te(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${o.map(r=>ea(r.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1;const a=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},r);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=>Ta(l,o,e,r)):Ta(a,o,e,r)}}),Ku=N("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ml.init(e,t);const n=e._zod.parse;te(e._zod,"propValues",()=>{const r={};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)){r[l]||(r[l]=new Set);for(const c of s)r[l].add(c)}}return r});const o=ho(()=>{var a;const r=t.options,i=new Map;for(const l of r){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=(r,i)=>{const a=r.value;if(!mn(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const l=o.value.get(a==null?void 0:a[t.discriminator]);return l?l._zod.run(r,i):t.unionFallback||i.direction==="backward"?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),Ju=N("$ZodIntersection",(e,t)=>{de.init(e,t),e._zod.parse=(n,o)=>{const r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Pa(n,s,c)):Pa(n,i,a)}});function ur(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(Ut(e)&&Ut(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(const i of o){const a=ur(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const r=e[o],i=t[o],a=ur(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Pa(e,t,n){const o=new Map;let r;for(const l of t.issues)if(l.code==="unrecognized_keys"){r??(r=l);for(const s of l.keys)o.has(s)||o.set(s,{}),o.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)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);const i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&r&&e.issues.push({...r,keys:i}),jt(e))return e;const a=ur(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 Xu=N("$ZodTuple",(e,t)=>{de.init(e,t);const n=t.items;e._zod.parse=(o,r)=>{const i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const a=[],l=Oa(n,"optin"),s=Oa(n,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.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 f=n[u]._zod.run({value:i[u],issues:[]},r);f instanceof Promise?a.push(f.then(d=>{c[u]=d})):c[u]=f}if(t.rest){let u=n.length-1;const f=i.slice(n.length);for(const d of f){u++;const h=t.rest._zod.run({value:d,issues:[]},r);h instanceof Promise?a.push(h.then(p=>La(p,o,u))):La(h,o,u)}}return a.length?Promise.all(a).then(()=>za(c,o,n,i,s)):za(c,o,n,i,s)}});function Oa(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function La(e,t,n){e.issues.length&&t.issues.push(...mt(n,e.issues)),t.value[n]=e.value}function za(e,t,n,o,r){for(let i=0;i<n.length;i++){const a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=r){t.value.length=i;break}t.issues.push(...mt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}const Qu=N("$ZodRecord",(e,t)=>{de.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Ut(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,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:[]},o);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=>ut(h,o,ct())),input:c,path:[c],inst:e});continue}const f=u.value,d=t.valueType._zod.run({value:r[c],issues:[]},o);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&n.issues.push(...mt(c,h.issues)),n.value[f]=h.value})):(d.issues.length&&n.issues.push(...mt(c,d.issues)),n.value[f]=d.value)}let s;for(const c in r)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(r)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&$l.test(l)&&s.issues.length){const f=t.keyType._zod.run({value:Number(l),issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(s=f)}if(s.issues.length){t.mode==="loose"?n.value[l]=r[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(f=>ut(f,o,ct())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:r[l],issues:[]},o);u instanceof Promise?i.push(u.then(f=>{f.issues.length&&n.issues.push(...mt(l,f.issues)),n.value[s.value]=f.value})):(u.issues.length&&n.issues.push(...mt(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),ed=N("$ZodEnum",(e,t)=>{de.init(e,t);const n=ml(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>sc.has(typeof r)).map(r=>typeof r=="string"?Zt(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),td=N("$ZodLiteral",(e,t)=>{if(de.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(o=>typeof o=="string"?Zt(o):o?Zt(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),nd=N("$ZodTransform",(e,t)=>{de.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new pl(e.constructor.name);const r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n.fallback=!0,n));if(r instanceof Promise)throw new Ft;return n.value=r,n.fallback=!0,n}});function ja(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Tl=N("$ZodOptional",(e,t)=>{de.init(e,t),e._zod.optin="optional",e._zod.optout="optional",te(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),te(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ea(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const r=n.value,i=t.innerType._zod.run(n,o);return i instanceof Promise?i.then(a=>ja(a,r)):ja(i,r)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),od=N("$ZodExactOptional",(e,t)=>{Tl.init(e,t),te(e._zod,"values",()=>t.innerType._zod.values),te(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),rd=N("$ZodNullable",(e,t)=>{de.init(e,t),te(e._zod,"optin",()=>t.innerType._zod.optin),te(e._zod,"optout",()=>t.innerType._zod.optout),te(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ea(n.source)}|null)$`):void 0}),te(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),ad=N("$ZodDefault",(e,t)=>{de.init(e,t),e._zod.optin="optional",te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Ba(i,t)):Ba(r,t)}});function Ba(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const id=N("$ZodPrefault",(e,t)=>{de.init(e,t),e._zod.optin="optional",te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),ld=N("$ZodNonOptional",(e,t)=>{de.init(e,t),te(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Da(i,e)):Da(r,e)}});function Da(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 sd=N("$ZodCatch",(e,t)=>{de.init(e,t),e._zod.optin="optional",te(e._zod,"optout",()=>t.innerType._zod.optout),te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>ut(a,o,ct()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>ut(i,o,ct()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Pl=N("$ZodPipe",(e,t)=>{de.init(e,t),te(e._zod,"values",()=>t.in._zod.values),te(e._zod,"optin",()=>t.in._zod.optin),te(e._zod,"optout",()=>t.out._zod.optout),te(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>Mn(a,t.in,o)):Mn(i,t.in,o)}const r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>Mn(i,t.out,o)):Mn(r,t.out,o)}});function Mn(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 cd=N("$ZodPreprocess",(e,t)=>{Pl.init(e,t)}),ud=N("$ZodReadonly",(e,t)=>{de.init(e,t),te(e._zod,"propValues",()=>t.innerType._zod.propValues),te(e._zod,"values",()=>t.innerType._zod.values),te(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),te(e._zod,"optout",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optout}),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(Fa):Fa(r)}});function Fa(e){return e.value=Object.freeze(e.value),e}const dd=N("$ZodLazy",(e,t)=>{de.init(e,t),te(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),te(e._zod,"pattern",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.pattern}),te(e._zod,"propValues",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.propValues}),te(e._zod,"optin",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optin)??void 0}),te(e._zod,"optout",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optout)??void 0}),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),hd=N("$ZodCustom",(e,t)=>{je.init(e,t),de.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>Ha(i,n,o,e));Ha(r,n,o,e)}});function Ha(e,t,n,o){if(!e){const r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(gn(r))}}var Ga;class fd{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.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 o={...this.get(n)??{}};delete o.id;const r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function pd(){return new fd}(Ga=globalThis).__zod_globalRegistry??(Ga.__zod_globalRegistry=pd());const dn=globalThis.__zod_globalRegistry;function md(e,t){return new e({type:"string",...B(t)})}function gd(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...B(t)})}function Ua(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...B(t)})}function bd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...B(t)})}function xd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...B(t)})}function vd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...B(t)})}function wd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...B(t)})}function Sd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...B(t)})}function kd(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...B(t)})}function _d(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...B(t)})}function $d(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...B(t)})}function Cd(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...B(t)})}function Ad(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...B(t)})}function yd(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...B(t)})}function Id(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...B(t)})}function Rd(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...B(t)})}function Ed(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...B(t)})}function Nd(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...B(t)})}function Md(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...B(t)})}function Td(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...B(t)})}function Pd(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...B(t)})}function Od(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...B(t)})}function Ld(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...B(t)})}function zd(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...B(t)})}function jd(e,t){return new e({type:"string",format:"date",check:"string_format",...B(t)})}function Bd(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...B(t)})}function Dd(e,t){return new e({type:"string",format:"duration",check:"string_format",...B(t)})}function Fd(e,t){return new e({type:"number",checks:[],...B(t)})}function Hd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...B(t)})}function Gd(e,t){return new e({type:"boolean",...B(t)})}function Ud(e){return new e({type:"any"})}function Zd(e){return new e({type:"unknown"})}function Wd(e,t){return new e({type:"never",...B(t)})}function Za(e,t){return new Al({check:"less_than",...B(t),value:e,inclusive:!1})}function _o(e,t){return new Al({check:"less_than",...B(t),value:e,inclusive:!0})}function Wa(e,t){return new yl({check:"greater_than",...B(t),value:e,inclusive:!1})}function $o(e,t){return new yl({check:"greater_than",...B(t),value:e,inclusive:!0})}function qa(e,t){return new ou({check:"multiple_of",...B(t),value:e})}function Ol(e,t){return new au({check:"max_length",...B(t),maximum:e})}function Jn(e,t){return new iu({check:"min_length",...B(t),minimum:e})}function Ll(e,t){return new lu({check:"length_equals",...B(t),length:e})}function qd(e,t){return new su({check:"string_format",format:"regex",...B(t),pattern:e})}function Vd(e){return new cu({check:"string_format",format:"lowercase",...B(e)})}function Yd(e){return new uu({check:"string_format",format:"uppercase",...B(e)})}function Kd(e,t){return new du({check:"string_format",format:"includes",...B(t),includes:e})}function Jd(e,t){return new hu({check:"string_format",format:"starts_with",...B(t),prefix:e})}function Xd(e,t){return new fu({check:"string_format",format:"ends_with",...B(t),suffix:e})}function Yt(e){return new pu({check:"overwrite",tx:e})}function Qd(e){return Yt(t=>t.normalize(e))}function eh(){return Yt(e=>e.trim())}function th(){return Yt(e=>e.toLowerCase())}function nh(){return Yt(e=>e.toUpperCase())}function oh(){return Yt(e=>ic(e))}function rh(e,t,n){return new e({type:"array",element:t,...B(n)})}function ah(e,t,n){return new e({type:"custom",check:"custom",fn:t,...B(n)})}function ih(e,t){const n=lh(o=>(o.addIssue=r=>{if(typeof r=="string")o.issues.push(gn(r,o.value,n._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(gn(i))}},e(o.value,o)),t);return n}function lh(e,t){const n=new je({check:"custom",...B(t)});return n._zod.check=e,n}function zl(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)??dn,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 be(e,t,n={path:[],schemaPath:[]}){var u,f;var o;const r=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=(f=(u=e._zod).toJSONSchema)==null?void 0:f.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 p=a.schema,b=t.processors[r.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);b(e,t,p,d)}const h=e._zod.parent;h&&(a.ref||(a.ref=h),be(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"&&Pe(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function jl(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 o=new Map;for(const u of e.seen.entries()){const f=(a=e.metadataRegistry.get(u[0]))==null?void 0:a.id;if(f){const d=o.get(f);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(f,u[0])}}const r=u=>{var b;const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(u[0]))==null?void 0:b.id,w=e.external.uri??(_=>_);if(x)return{ref:w(x)};const v=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=v,{defId:v,ref:`${w("__shared")}#/${f}/${v}`}}if(u[1]===n)return{ref:"#"};const h=`#/${f}/`,p=u[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:h+p}},i=u=>{if(u[1].schema.$ref)return;const f=u[1],{ref:d,defId:h}=r(u);f.def={...f.schema},h&&(f.defId=h);const p=f.schema;for(const b in p)delete p[b];p.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const f=u[1];if(f.cycle)throw new Error(`Cycle detected: #/${(l=f.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 f=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(f.cycle){i(u);continue}if(f.count>1&&e.reused==="ref"){i(u);continue}}}function Bl(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 o=f=>{const d=e.seen.get(f);if(d.ref===null)return;const h=d.def??d.schema,p={...h},b=d.ref;if(d.ref=null,b){o(b);const w=e.seen.get(b),v=w.schema;if(v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(v)):Object.assign(h,v),Object.assign(h,p),f._zod.parent===b)for(const S in h)S==="$ref"||S==="allOf"||S in p||delete h[S];if(v.$ref&&w.def)for(const S in h)S==="$ref"||S==="allOf"||S in w.def&&JSON.stringify(h[S])===JSON.stringify(w.def[S])&&delete h[S]}const x=f._zod.parent;if(x&&x!==b){o(x);const w=e.seen.get(x);if(w!=null&&w.schema.$ref&&(h.$ref=w.schema.$ref,w.def))for(const v in h)v==="$ref"||v==="allOf"||v in w.def&&JSON.stringify(h[v])===JSON.stringify(w.def[v])&&delete h[v]}e.override({zodSchema:f,jsonSchema:h,path:d.path??[]})};for(const f of[...e.seen.entries()].reverse())o(f[0]);const r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const f=(s=e.external.registry.get(t))==null?void 0:s.id;if(!f)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(f)}Object.assign(r,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&r.id===i&&delete r.id;const a=((u=e.external)==null?void 0:u.defs)??{};for(const f of e.seen.entries()){const d=f[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"?r.$defs=a:r.definitions=a);try{const f=JSON.parse(JSON.stringify(r));return Object.defineProperty(f,"~standard",{value:{...t["~standard"],jsonSchema:{input:Xn(t,"input",e.processors),output:Xn(t,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw new Error("Error converting schema to JSON.")}}function Pe(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Pe(o.element,n);if(o.type==="set")return Pe(o.valueType,n);if(o.type==="lazy")return Pe(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Pe(o.innerType,n);if(o.type==="intersection")return Pe(o.left,n)||Pe(o.right,n);if(o.type==="record"||o.type==="map")return Pe(o.keyType,n)||Pe(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Pe(o.in,n)||Pe(o.out,n);if(o.type==="object"){for(const r in o.shape)if(Pe(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(const r of o.options)if(Pe(r,n))return!0;return!1}if(o.type==="tuple"){for(const r of o.items)if(Pe(r,n))return!0;return!!(o.rest&&Pe(o.rest,n))}return!1}const sh=(e,t={})=>n=>{const o=zl({...n,processors:t});return be(e,o),jl(o,e),Bl(o,e)},Xn=(e,t,n={})=>o=>{const{libraryOptions:r,target:i}=o??{},a=zl({...r??{},target:i,io:t,processors:n});return be(e,a),jl(a,e),Bl(a,e)},ch={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},uh=(e,t,n,o)=>{const r=n;r.type="string";const{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),l&&(r.format=ch[l]??l,r.format===""&&delete r.format,l==="time"&&delete r.format),c&&(r.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?r.pattern=u[0].source:u.length>1&&(r.allOf=[...u.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},dh=(e,t,n,o)=>{const r=n,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number";const f=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";f?h?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof i=="number"&&(r.minimum=i),d?h?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c:typeof a=="number"&&(r.maximum=a),typeof s=="number"&&(r.multipleOf=s)},hh=(e,t,n,o)=>{n.type="boolean"},fh=(e,t,n,o)=>{n.not={}},ph=(e,t,n,o)=>{},mh=(e,t,n,o)=>{},gh=(e,t,n,o)=>{const r=e._zod.def,i=ml(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},bh=(e,t,n,o)=>{const r=e._zod.def,i=[];for(const a of r.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},xh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},vh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},wh=(e,t,n,o)=>{const r=n,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=be(i.element,t,{...o,path:[...o.path,"items"]})},Sh=(e,t,n,o)=>{var c;const r=n,i=e._zod.def;r.type="object",r.properties={};const a=i.shape;for(const u in a)r.properties[u]=be(a[u],t,{...o,path:[...o.path,"properties",u]});const l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{const f=i.shape[u]._zod;return t.io==="input"?f.optin===void 0:f.optout===void 0}));s.size>0&&(r.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=be(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},kh=(e,t,n,o)=>{const r=e._zod.def,i=r.inclusive===!1,a=r.options.map((l,s)=>be(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=a:n.anyOf=a},_h=(e,t,n,o)=>{const r=e._zod.def,i=be(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=be(r.right,t,{...o,path:[...o.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},$h=(e,t,n,o)=>{const r=n,i=e._zod.def;r.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)=>be(d,t,{...o,path:[...o.path,a,h]})),c=i.rest?be(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:s},c&&r.items.anyOf.push(c),r.minItems=s.length,c||(r.maxItems=s.length)):(r.items=s,c&&(r.additionalItems=c));const{minimum:u,maximum:f}=e._zod.bag;typeof u=="number"&&(r.minItems=u),typeof f=="number"&&(r.maxItems=f)},Ch=(e,t,n,o)=>{const r=n,i=e._zod.def;r.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=be(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(const f of s)r.patternProperties[f.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=be(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=be(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=a._zod.values;if(c){const u=[...c].filter(f=>typeof f=="string"||typeof f=="number");u.length>0&&(r.required=u)}},Ah=(e,t,n,o)=>{const r=e._zod.def,i=be(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},yh=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},Ih=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},Rh=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},Eh=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Nh=(e,t,n,o)=>{const r=e._zod.def,i=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?r.out:r.in:r.out;be(a,t,o);const l=t.seen.get(e);l.ref=a},Mh=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},Dl=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},Th=(e,t,n,o)=>{const r=e._zod.innerType;be(r,t,o);const i=t.seen.get(e);i.ref=r},Ph=N("ZodISODateTime",(e,t)=>{Iu.init(e,t),xe.init(e,t)});function Oh(e){return zd(Ph,e)}const Lh=N("ZodISODate",(e,t)=>{Ru.init(e,t),xe.init(e,t)});function zh(e){return jd(Lh,e)}const jh=N("ZodISOTime",(e,t)=>{Eu.init(e,t),xe.init(e,t)});function Bh(e){return Bd(jh,e)}const Dh=N("ZodISODuration",(e,t)=>{Nu.init(e,t),xe.init(e,t)});function Fh(e){return Dd(Dh,e)}const Hh=(e,t)=>{vl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>wc(e,n)},flatten:{value:n=>vc(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,cr,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,cr,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ge=N("ZodError",Hh,{Parent:Error}),Gh=na(Ge),Uh=oa(Ge),Zh=fo(Ge),Wh=po(Ge),qh=_c(Ge),Vh=$c(Ge),Yh=Cc(Ge),Kh=Ac(Ge),Jh=yc(Ge),Xh=Ic(Ge),Qh=Rc(Ge),ef=Ec(Ge),Va=new WeakMap;function _n(e,t,n){const o=Object.getPrototypeOf(e);let r=Va.get(o);if(r||(r=new Set,Va.set(o,r)),!r.has(t)){r.add(t);for(const i in n){const a=n[i];Object.defineProperty(o,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 he=N("ZodType",(e,t)=>(de.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Xn(e,"input"),output:Xn(e,"output")}}),e.toJSONSchema=sh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>Gh(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Zh(e,n,o),e.parseAsync=async(n,o)=>Uh(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Wh(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>qh(e,n,o),e.decode=(n,o)=>Vh(e,n,o),e.encodeAsync=async(n,o)=>Yh(e,n,o),e.decodeAsync=async(n,o)=>Kh(e,n,o),e.safeEncode=(n,o)=>Jh(e,n,o),e.safeDecode=(n,o)=>Xh(e,n,o),e.safeEncodeAsync=async(n,o)=>Qh(e,n,o),e.safeDecodeAsync=async(n,o)=>ef(e,n,o),_n(e,"ZodType",{check(...n){const o=this.def;return this.clone(bt(o,{checks:[...o.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return xt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Jf(n,o))},superRefine(n,o){return this.check(Xf(n,o))},overwrite(n){return this.check(Yt(n))},optional(){return Qa(this)},exactOptional(){return Lf(this)},nullable(){return ei(this)},nullish(){return Qa(ei(this))},nonoptional(n){return Hf(this,n)},array(){return X(this)},or(n){return D([this,n])},and(n){return Nf(this,n)},transform(n){return ti(this,Zl(n))},default(n){return Bf(this,n)},prefault(n){return Ff(this,n)},catch(n){return Uf(this,n)},pipe(n){return ti(this,n)},readonly(){return qf(this)},describe(n){const o=this.clone();return dn.add(o,{description:n}),o},meta(...n){if(n.length===0)return dn.get(this);const o=this.clone();return dn.add(o,n[0]),o},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=dn.get(e))==null?void 0:n.description},configurable:!0}),e)),Fl=N("_ZodString",(e,t)=>{ra.init(e,t),he.init(e,t),e._zod.processJSONSchema=(o,r,i)=>uh(e,o,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,_n(e,"_ZodString",{regex(...o){return this.check(qd(...o))},includes(...o){return this.check(Kd(...o))},startsWith(...o){return this.check(Jd(...o))},endsWith(...o){return this.check(Xd(...o))},min(...o){return this.check(Jn(...o))},max(...o){return this.check(Ol(...o))},length(...o){return this.check(Ll(...o))},nonempty(...o){return this.check(Jn(1,...o))},lowercase(o){return this.check(Vd(o))},uppercase(o){return this.check(Yd(o))},trim(){return this.check(eh())},normalize(...o){return this.check(Qd(...o))},toLowerCase(){return this.check(th())},toUpperCase(){return this.check(nh())},slugify(){return this.check(oh())}})}),tf=N("ZodString",(e,t)=>{ra.init(e,t),Fl.init(e,t),e.email=n=>e.check(gd(nf,n)),e.url=n=>e.check(Sd(of,n)),e.jwt=n=>e.check(Ld(vf,n)),e.emoji=n=>e.check(kd(rf,n)),e.guid=n=>e.check(Ua(Ya,n)),e.uuid=n=>e.check(bd(Tn,n)),e.uuidv4=n=>e.check(xd(Tn,n)),e.uuidv6=n=>e.check(vd(Tn,n)),e.uuidv7=n=>e.check(wd(Tn,n)),e.nanoid=n=>e.check(_d(af,n)),e.guid=n=>e.check(Ua(Ya,n)),e.cuid=n=>e.check($d(lf,n)),e.cuid2=n=>e.check(Cd(sf,n)),e.ulid=n=>e.check(Ad(cf,n)),e.base64=n=>e.check(Td(gf,n)),e.base64url=n=>e.check(Pd(bf,n)),e.xid=n=>e.check(yd(uf,n)),e.ksuid=n=>e.check(Id(df,n)),e.ipv4=n=>e.check(Rd(hf,n)),e.ipv6=n=>e.check(Ed(ff,n)),e.cidrv4=n=>e.check(Nd(pf,n)),e.cidrv6=n=>e.check(Md(mf,n)),e.e164=n=>e.check(Od(xf,n)),e.datetime=n=>e.check(Oh(n)),e.date=n=>e.check(zh(n)),e.time=n=>e.check(Bh(n)),e.duration=n=>e.check(Fh(n))});function k(e){return md(tf,e)}const xe=N("ZodStringFormat",(e,t)=>{ge.init(e,t),Fl.init(e,t)}),nf=N("ZodEmail",(e,t)=>{vu.init(e,t),xe.init(e,t)}),Ya=N("ZodGUID",(e,t)=>{bu.init(e,t),xe.init(e,t)}),Tn=N("ZodUUID",(e,t)=>{xu.init(e,t),xe.init(e,t)}),of=N("ZodURL",(e,t)=>{wu.init(e,t),xe.init(e,t)}),rf=N("ZodEmoji",(e,t)=>{Su.init(e,t),xe.init(e,t)}),af=N("ZodNanoID",(e,t)=>{ku.init(e,t),xe.init(e,t)}),lf=N("ZodCUID",(e,t)=>{_u.init(e,t),xe.init(e,t)}),sf=N("ZodCUID2",(e,t)=>{$u.init(e,t),xe.init(e,t)}),cf=N("ZodULID",(e,t)=>{Cu.init(e,t),xe.init(e,t)}),uf=N("ZodXID",(e,t)=>{Au.init(e,t),xe.init(e,t)}),df=N("ZodKSUID",(e,t)=>{yu.init(e,t),xe.init(e,t)}),hf=N("ZodIPv4",(e,t)=>{Mu.init(e,t),xe.init(e,t)}),ff=N("ZodIPv6",(e,t)=>{Tu.init(e,t),xe.init(e,t)}),pf=N("ZodCIDRv4",(e,t)=>{Pu.init(e,t),xe.init(e,t)}),mf=N("ZodCIDRv6",(e,t)=>{Ou.init(e,t),xe.init(e,t)}),gf=N("ZodBase64",(e,t)=>{Lu.init(e,t),xe.init(e,t)}),bf=N("ZodBase64URL",(e,t)=>{ju.init(e,t),xe.init(e,t)}),xf=N("ZodE164",(e,t)=>{Bu.init(e,t),xe.init(e,t)}),vf=N("ZodJWT",(e,t)=>{Fu.init(e,t),xe.init(e,t)}),Hl=N("ZodNumber",(e,t)=>{Rl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(o,r,i)=>dh(e,o,r),_n(e,"ZodNumber",{gt(o,r){return this.check(Wa(o,r))},gte(o,r){return this.check($o(o,r))},min(o,r){return this.check($o(o,r))},lt(o,r){return this.check(Za(o,r))},lte(o,r){return this.check(_o(o,r))},max(o,r){return this.check(_o(o,r))},int(o){return this.check(Ka(o))},safe(o){return this.check(Ka(o))},positive(o){return this.check(Wa(0,o))},nonnegative(o){return this.check($o(0,o))},negative(o){return this.check(Za(0,o))},nonpositive(o){return this.check(_o(0,o))},multipleOf(o,r){return this.check(qa(o,r))},step(o,r){return this.check(qa(o,r))},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 m(e){return Fd(Hl,e)}const wf=N("ZodNumberFormat",(e,t)=>{Hu.init(e,t),Hl.init(e,t)});function Ka(e){return Hd(wf,e)}const Sf=N("ZodBoolean",(e,t)=>{Gu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>hh(e,n,o)});function O(e){return Gd(Sf,e)}const kf=N("ZodAny",(e,t)=>{Uu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ph()});function bn(){return Ud(kf)}const _f=N("ZodUnknown",(e,t)=>{Zu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>mh()});function Ja(){return Zd(_f)}const $f=N("ZodNever",(e,t)=>{Wu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>fh(e,n,o)});function Cf(e){return Wd($f,e)}const Af=N("ZodArray",(e,t)=>{qu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>wh(e,n,o,r),e.element=t.element,_n(e,"ZodArray",{min(n,o){return this.check(Jn(n,o))},nonempty(n){return this.check(Jn(1,n))},max(n,o){return this.check(Ol(n,o))},length(n,o){return this.check(Ll(n,o))},unwrap(){return this.element}})});function X(e,t){return rh(Af,e,t)}const yf=N("ZodObject",(e,t)=>{Yu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Sh(e,n,o,r),te(e,"shape",()=>t.shape),_n(e,"ZodObject",{keyof(){return M(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Ja()})},loose(){return this.clone({...this._zod.def,catchall:Ja()})},strict(){return this.clone({...this._zod.def,catchall:Cf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return fc(this,n)},safeExtend(n){return pc(this,n)},merge(n){return mc(this,n)},pick(n){return dc(this,n)},omit(n){return hc(this,n)},partial(...n){return gc(Wl,this,n[0])},required(...n){return bc(ql,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...B(t)};return new yf(n)}const Gl=N("ZodUnion",(e,t)=>{Ml.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>kh(e,n,o,r),e.options=t.options});function D(e,t){return new Gl({type:"union",options:e,...B(t)})}const If=N("ZodDiscriminatedUnion",(e,t)=>{Gl.init(e,t),Ku.init(e,t)});function Rf(e,t,n){return new If({type:"union",options:t,discriminator:e,...B(n)})}const Ef=N("ZodIntersection",(e,t)=>{Ju.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>_h(e,n,o,r)});function Nf(e,t){return new Ef({type:"intersection",left:e,right:t})}const Mf=N("ZodTuple",(e,t)=>{Xu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>$h(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Ul(e,t,n){const o=t instanceof de,r=o?n:t,i=o?t:null;return new Mf({type:"tuple",items:e,rest:i,...B(r)})}const Xa=N("ZodRecord",(e,t)=>{Qu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ch(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function Wt(e,t,n){return!t||!t._zod?new Xa({type:"record",keyType:k(),valueType:e,...B(t)}):new Xa({type:"record",keyType:e,valueType:t,...B(n)})}const dr=N("ZodEnum",(e,t)=>{ed.init(e,t),he.init(e,t),e._zod.processJSONSchema=(o,r,i)=>gh(e,o,r),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{const i={};for(const a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new dr({...t,checks:[],...B(r),entries:i})},e.exclude=(o,r)=>{const i={...t.entries};for(const a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new dr({...t,checks:[],...B(r),entries:i})}});function M(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new dr({type:"enum",entries:n,...B(t)})}const Tf=N("ZodLiteral",(e,t)=>{td.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>bh(e,n,o),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 ae(e,t){return new Tf({type:"literal",values:Array.isArray(e)?e:[e],...B(t)})}const Pf=N("ZodTransform",(e,t)=>{nd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>vh(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new pl(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(gn(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(gn(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});function Zl(e){return new Pf({type:"transform",transform:e})}const Wl=N("ZodOptional",(e,t)=>{Tl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dl(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Qa(e){return new Wl({type:"optional",innerType:e})}const Of=N("ZodExactOptional",(e,t)=>{od.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dl(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Lf(e){return new Of({type:"optional",innerType:e})}const zf=N("ZodNullable",(e,t)=>{rd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ah(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ei(e){return new zf({type:"nullable",innerType:e})}const jf=N("ZodDefault",(e,t)=>{ad.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ih(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Bf(e,t){return new jf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():bl(t)}})}const Df=N("ZodPrefault",(e,t)=>{id.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Rh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ff(e,t){return new Df({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():bl(t)}})}const ql=N("ZodNonOptional",(e,t)=>{ld.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>yh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Hf(e,t){return new ql({type:"nonoptional",innerType:e,...B(t)})}const Gf=N("ZodCatch",(e,t)=>{sd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Eh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Uf(e,t){return new Gf({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Vl=N("ZodPipe",(e,t)=>{Pl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Nh(e,n,o,r),e.in=t.in,e.out=t.out});function ti(e,t){return new Vl({type:"pipe",in:e,out:t})}const Zf=N("ZodPreprocess",(e,t)=>{Vl.init(e,t),cd.init(e,t)}),Wf=N("ZodReadonly",(e,t)=>{ud.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Mh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function qf(e){return new Wf({type:"readonly",innerType:e})}const Vf=N("ZodLazy",(e,t)=>{dd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Th(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function Yf(e){return new Vf({type:"lazy",getter:e})}const Kf=N("ZodCustom",(e,t)=>{hd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>xh(e,n)});function Jf(e,t={}){return ah(Kf,e,t)}function Xf(e,t){return ih(e,t)}function Yl(e,t){return new Zf({type:"pipe",in:Zl(e),out:t})}var Qf=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ep=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ni=A({style:A({textAlign:M(["left","center","right"]).optional().nullable(),padding:Qf}).optional().nullable(),props:A({size:m().gt(0).optional().nullable(),shape:M(["circle","square","rounded"]).optional().nullable(),imageUrl:k().optional().nullable(),alt:k().optional().nullable()}).optional().nullable()});function tp(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var Pn={size:64,imageUrl:"",alt:"",shape:"square"};function oi({style:e,props:t}){var n,o,r,i,a;const l=(n=t==null?void 0:t.size)!=null?n:Pn.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:Pn.imageUrl,c=(r=t==null?void 0:t.alt)!=null?r:Pn.alt,u=(i=t==null?void 0:t.shape)!=null?i:Pn.shape,f={textAlign:(a=e==null?void 0:e.textAlign)!=null?a:void 0,padding:ep(e==null?void 0:e.padding)};return F.createElement("div",{style:f},F.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:tp(u,l)}}))}const $n=A({type:M(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:M(["load","scroll","hover","click"]),speed:M(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),np=ni.extend({props:ni.shape.props.unwrap().unwrap().extend({decorative:O().optional().nullable(),animation:$n}).optional().nullable()}),hn={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},aa=Object.values(hn);function Kl(){return"desktop"}const Ue=1024,Le=640,nt=`@media (max-width: ${Ue}px)`,Oe=`@media (max-width: ${Le}px)`,It=`@media (min-width: ${Le+1}px) and (max-width: ${Ue}px)`,go=A({color:k().optional().nullable(),offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable();function op(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function bo(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${op(t)}`}}const Be=A({tablet:Wt(k(),bn()).optional().nullable(),mobile:Wt(k(),bn()).optional().nullable()}).optional().nullable(),rp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ap=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ip=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},lp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},up=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},dp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},hp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},fp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},pp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},mp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},gp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},bp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},xp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},vp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},wp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Sp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:g.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function ft(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return g.jsx(rp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return g.jsx(sp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return g.jsx(fp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return g.jsx(cp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return g.jsx(ap,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return g.jsx(ip,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return g.jsx(lp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return g.jsx(up,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return g.jsx(dp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return g.jsx(hp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return g.jsx(gp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return g.jsx(xp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return g.jsx(wp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return g.jsx(pp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return g.jsx(bp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return g.jsx(vp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return g.jsx(Sp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return g.jsx(mp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const xn="data-ahd-var",Jl=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,kp=/[&<>"']/g,_p={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ht(e){return e.replace(kp,t=>_p[t])}function Xl(e){return!e||e.indexOf("{{")===-1?e:e.replace(Jl,(t,n,o,r)=>{if(n)return n;const i=Ht(r);return`<span ${xn}="${i}">{{${r}}}</span>`})}function Ql(e){return!e||e.indexOf("{{")===-1?e:Ht(e).replace(Jl,(t,n,o,r)=>{if(n)return n;const i=Ht(r);return`<span ${xn}="${i}">{{${r}}}</span>`})}const $p=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function Cp(e,t){if(!e||e.indexOf("{{")===-1)return e;const n=typeof window<"u"?window.location.search:void 0;if(n===void 0)return e;const o=new URLSearchParams(n||"");return e.replace($p,(r,i)=>{const a=o.get(i);return a!==null?encodeURIComponent(a):r})}function Ap(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),o=e.querySelectorAll(`[${xn}]`);for(let r=0;r<o.length;r++){const i=o[r],a=n.get(i.getAttribute(xn)||"");a!==null&&(i.textContent=a)}}const hr="data-ahd-date",es="data-ahd-date-format";function fr(e,t){const n=Ht(e),o=t??"",r=Ht(o),i=ts(o)||`{{${n}}}`;return`<span ${xn}="${n}" ${hr}="${r}" ${es}="relative">${Ht(i)}</span>`}function ts(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const o=864e5,r=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),i=Math.round((r(n)-r(t))/o);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const a=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function yp(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${hr}][${es}="relative"]`);for(let o=0;o<n.length;o++){const r=n[o],i=r.getAttribute(hr)||"",a=ts(i,t);a&&(r.textContent=a)}}const Ip=M(["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 Co(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 Rp=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Ep=k().regex(/^rgba?\([^\)]+\)$/i),Np=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Mp=ae("transparent"),Pt=D([Rp,Ep,Np,Mp]).nullable().optional(),Tp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Pp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Op=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Lp=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),zp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,jp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Bp=A({style:A({backgroundColor:Pt,fontSize:m().min(0).optional().nullable(),fontFamily:Ip,fontWeight:M(["bold","normal",...aa]).optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),buttonTextAlign:M(["left","center","right"]).optional().nullable(),padding:Tp,margin:Pp}).optional().nullable(),props:A({buttonBackground:Pt,hoverBackground:Pt,hoverTextColor:Pt,borderRadius:Lp,borderWidth:Op,borderColor:Pt,buttonTextColor:Pt,fullWidth:O().optional().nullable(),widthType:M(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:M(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:M(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:M(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),size:M(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:M(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:M(["x-small","small","large","medium"]).optional().nullable(),text:k().optional().nullable(),url:k().optional().nullable(),action:M(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:O().optional().nullable(),customAction:k().optional().nullable(),actionPayload:Wt(k(),bn()).optional().nullable(),iconEnabled:O().optional().nullable(),iconName:k().optional().nullable(),iconAlignment:M(["left","right"]).optional().nullable(),ariaLabel:k().optional().nullable(),goToStep:k().optional().nullable(),postMessageEvent:k().optional().nullable(),animation:$n,boxShadow:go}).optional().nullable(),responsive:Be});function ri(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 ve={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",buttonTextColor:"#000000",buttonBackground:"#ffffff",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:"",boxShadow:null};function Dp({style:e,props:t}){const o=`bh-${F.useId().replace(/:/g,"")}`,r=(t==null?void 0:t.text)??ve.text,i=typeof r=="string"&&r.indexOf("{{")!==-1,a=(me,ze)=>i?g.jsx("span",{style:me,"data-action":ze,dangerouslySetInnerHTML:{__html:Ql(r)}}):g.jsx("span",{style:me,"data-action":ze,children:r}),l=(t==null?void 0:t.url)??ve.url,s=Cp(l),c=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,u=(t==null?void 0:t.fullWidth)??ve.fullWidth,f=(t==null?void 0:t.widthType)??ve.widthType,d=(t==null?void 0:t.width)??ve.width,h=(t==null?void 0:t.widthUnit)??ve.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,w=b??x,v=(t==null?void 0:t.widthTypeTablet)??f,_=(t==null?void 0:t.widthTypeMobile)??v,S=(t==null?void 0:t.size)??ve.size,$=(t==null?void 0:t.sizeTablet)??S,y=(t==null?void 0:t.sizeMobile)??$,C=f,R=d,I=(t==null?void 0:t.buttonTextColor)??ve.buttonTextColor,E=(t==null?void 0:t.buttonBackground)??ve.buttonBackground,P=(t==null?void 0:t.iconEnabled)??ve.iconEnabled,T=(t==null?void 0:t.iconName)??ve.iconName,z=(t==null?void 0:t.iconAlignment)??ve.iconAlignment,H=(t==null?void 0:t.ariaLabel)??null,Z=typeof r=="string"&&r.trim().length>0,j=H&&H.trim().length>0?H:!Z&&P&&T?T:void 0,V=(t==null?void 0:t.action)??ve.action,Y=(t==null?void 0:t.openInNewTab)??ve.openInNewTab,G=((t==null?void 0:t.customAction)??ve.customAction)||V,oe=(t==null?void 0:t.actionPayload)??ve.actionPayload,le=(t==null?void 0:t.goToStep)??ve.goToStep,se=(t==null?void 0:t.postMessageEvent)??ve.postMessageEvent,ce=oe||(G==="goToStep"?{goToStep:le||""}:null)||(G==="postMessageEvent"?{postMessageEvent:se||""}:null),Ee=ce?JSON.stringify(ce):void 0,Ce=(t==null?void 0:t.borderRadius)??ve.borderRadius,W=(t==null?void 0:t.borderWidth)??ve.borderWidth,L=(t==null?void 0:t.borderColor)??ve.borderColor,U=(t==null?void 0:t.boxShadow)??ve.boxShadow,q=bo(U),J=(t==null?void 0:t.hoverBackground)??null,Ae=(t==null?void 0:t.hoverTextColor)??null,Q=ri(S),ye=me=>typeof me=="number"?`${me}px`:`${me.topLeft}px ${me.topRight}px ${me.bottomRight}px ${me.bottomLeft}px`,ue=(me,ze)=>{if(typeof me=="number")return`${Math.max(0,me-ze)}px`;const So=Math.max(0,(me.topLeft||0)-ze),ko=Math.max(0,(me.topRight||0)-ze),Mt=Math.max(0,(me.bottomRight||0)-ze),Tt=Math.max(0,(me.bottomLeft||0)-ze);return`${So}px ${ko}px ${Mt}px ${Tt}px`},_e=L&&(L.includes("linear-gradient")||L.includes("radial-gradient")||L.includes("repeating-linear-gradient")),Ie=W&&((W.top??0)>0||(W.right??0)>0||(W.bottom??0)>0||(W.left??0)>0),re={top:(W==null?void 0:W.top)??0,right:(W==null?void 0:W.right)??0,bottom:(W==null?void 0:W.bottom)??0,left:(W==null?void 0:W.left)??0},we=(()=>{if(u)return"100%";switch(C){case"fill":return"100%";case"fixed":return`${R}${h}`;case"fit":default:return"auto"}})(),De=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",ne=De==="center"?"center":De==="right"?"flex-end":"flex-start",pe=()=>!L||L==="transparent"||!Ie?{border:"none"}:_e?{borderTop:`${re.top}px solid transparent`,borderRight:`${re.right}px solid transparent`,borderBottom:`${re.bottom}px solid transparent`,borderLeft:`${re.left}px solid transparent`,borderImage:`${L} `,borderRadius:"0px"}:{borderTop:`${re.top}px solid ${L}`,borderRight:`${re.right}px solid ${L}`,borderBottom:`${re.bottom}px solid ${L}`,borderLeft:`${re.left}px solid ${L}`},Se=E&&(E.includes("linear-gradient")||E.includes("radial-gradient")||E.includes("repeating-linear-gradient")),Re=I&&(I.includes("linear-gradient")||I.includes("radial-gradient")||I.includes("repeating-linear-gradient")),Fe=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),Ve={backgroundColor:Fe?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:Fe?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:zp(e==null?void 0:e.padding),margin:jp(e==null?void 0:e.margin)},at=pe(),it=Re?{backgroundImage:I,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:I||void 0},dt=Re?"transparent":Se?void 0:E,Xt=Re?void 0:Se?E:void 0,Ne=(e==null?void 0:e.fontSize)??16,Nt=`${Ne}px`,Qt={fontSize:Nt,fontFamily:Co(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??hn.REGULAR,backgroundColor:dt,backgroundImage:Xt,borderRadius:_e?"0px":ye(Ce),...at,..._e&&Ie?{}:q,display:we==="100%"?"block":"inline-block",width:we,padding:`${Q[0]}px ${Q[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:ne,lineHeight:"normal"},En=_e&&Ie?g.jsx("div",{style:{display:we==="100%"?"block":"inline-block",padding:`${re.top}px ${re.right}px ${re.bottom}px ${re.left}px`,background:L,borderRadius:ye(Ce),width:we,boxSizing:"border-box",...q},children:g.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:ue(Ce,Math.max(re.top,re.right,re.bottom,re.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??hn.REGULAR,fontFamily:Co(e==null?void 0:e.fontFamily),backgroundImage:Xt??(Se?E:"#fffff"),backgroundColor:dt??(Se?"#ffffff":E),textAlign:De,textDecoration:"none",fontSize:Nt,padding:`${Q[0]}px ${Q[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":G,"data-action-payload":Ee,"data-goto-step":G==="goToStep"&&le?le:void 0,"data-post-message-event":G==="postMessageEvent"&&se?se:void 0,type:"button","aria-label":j,children:[P&&T&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null,a({...it,pointerEvents:"none"},G),P&&T&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null]})}):g.jsxs("button",{style:{cursor:"pointer",...at,...q,borderRadius:ye(Ce),width:we,fontWeight:(e==null?void 0:e.fontWeight)??hn.REGULAR,fontFamily:Co(e==null?void 0:e.fontFamily),backgroundColor:dt??(Se?"":E),backgroundImage:Xt??(Se?E:""),textAlign:De,textDecoration:"none",fontSize:Nt,padding:`${Q[0]}px ${Q[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":G,"data-action-payload":Ee,"data-goto-step":G==="goToStep"&&le?le:void 0,"data-post-message-event":G==="postMessageEvent"&&se?se:void 0,type:"button","aria-label":j,children:[P&&T&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null,a({...it,pointerEvents:"none"},G),P&&T&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null]}),St=[];J&&St.push(`background-color: ${J} !important; background-image: none !important;`),Ae&&St.push(`color: ${Ae} !important;`);const kt=St.length>0?`#${o} a:hover, #${o} button:hover { ${St.join(" ")} transition: background-color 150ms ease, color 150ms ease; } #${o} a:hover span, #${o} button:hover span { ${Ae?`color: ${Ae} !important; -webkit-text-fill-color: ${Ae} !important;`:""} }`:null,en=(me,ze,So,ko)=>{const Mt=[],Tt=u||ze==="fill"?"100%":ze==="fixed"?`${So}${h}`:"auto";Mt.push(`width: ${Tt} !important;`,"max-width: 100% !important;"),Mt.push(`display: ${Tt==="100%"?"block":"inline-block"} !important;`);const[ya,oc]=ri(ko);return Mt.push(`padding: ${ya}px ${oc}px !important;`),`${me} { #${o} a, #${o} button { ${Mt.join(" ")} } #${o} > div { width: ${Tt} !important; max-width: 100% !important; display: ${Tt==="100%"?"block":"inline-block"} !important; } }`},ee=v!==f||$!==S||v==="fixed"&&x!==d,ie=_!==f||y!==S||_==="fixed"&&w!==d,Me=ee||ie?[ee?en(nt,v,x,$):"",ie?en(Oe,_,w,y):""].filter(Boolean).join(`
|
|
65
|
-
`):null;if(V!=="link")return g.jsxs("div",{id:o,className:"button-block",style:Ve,children:[kt&&g.jsx("style",{children:kt}),Me&&g.jsx("style",{children:Me}),En]});const ht=_e&&Ie?g.jsx("div",{style:{display:we==="100%"?"block":"inline-block",padding:`${re.top}px ${re.right}px ${re.bottom}px ${re.left}px`,background:L,borderRadius:ye(Ce),width:we,boxSizing:"border-box",...q},children:g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...Qt,border:"none",borderRadius:ue(Ce,Math.max(re.top,re.right,re.bottom,re.left)),width:"100%",display:"inline-flex",alignItems:"center",justifyContent:ne},target:Y?"_blank":void 0,rel:Y?"noopener noreferrer":void 0,"aria-label":j,children:[P&&T&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null,a({...it,pointerEvents:"none"}),P&&T&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null]})}):g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...Qt,borderRadius:ye(Ce),display:"inline-flex",alignItems:"center",justifyContent:ne},target:Y?"_blank":void 0,rel:Y?"noopener noreferrer":void 0,"aria-label":j,children:[P&&T&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null,a({...it,pointerEvents:"none"}),P&&T&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null]});return g.jsxs("div",{id:o,className:"button-block",style:Ve,children:[kt&&g.jsx("style",{children:kt}),Me&&g.jsx("style",{children:Me}),ht]})}const Fp=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Hp=k().regex(/^rgba?\([^\)]+\)$/i),Gp=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Up=ae("transparent"),ai=D([Fp,Hp,Gp,Up]).nullable().optional(),Zp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Wp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),qp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Vp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Yp=A({style:A({backgroundColor:ai,padding:Zp,margin:Wp}).optional().nullable(),props:A({lineColor:ai,lineHeight:m().optional().nullable()}).optional().nullable()}),ii={lineHeight:1,lineColor:"#333333"};function Kp({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??ii.lineHeight,o=(t==null?void 0:t.lineColor)??ii.lineColor,r={padding:qp(e==null?void 0:e.padding),margin:Vp(e==null?void 0:e.margin),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,"--ahd-divider-thickness":`${n}px`};return g.jsx("div",{className:"divider-block",style:r,children:g.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:o,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const Jp=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Xp=k().regex(/^rgba?\([^\)]+\)$/i),Qp=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),em=ae("transparent"),Ao=D([Jp,Xp,Qp,em]).nullable().optional(),tm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),nm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),om=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,am=M(["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 im(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 lm=A({props:A({text:k().optional().nullable(),level:M(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:M(["text","link"]).optional().nullable(),url:k().optional().nullable(),openInNewTab:O().optional().nullable()}).optional().nullable(),style:A({color:Ao,textColor:Ao,backgroundColor:Ao,fontFamily:am,fontSize:m().optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontWeight:M(["bold","normal",...aa]).optional().nullable(),fontStyle:M(["italic","normal"]).optional().nullable(),textDecoration:M(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),padding:tm,margin:nm}).optional().nullable()}),tn={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function sm({props:e,style:t}){const n=(e==null?void 0:e.level)??tn.level,o=(e==null?void 0:e.text)??tn.text,r=typeof o=="string"&&o.indexOf("{{")!==-1,i=(e==null?void 0:e.linkType)??tn.linkType,a=(e==null?void 0:e.url)??tn.url,l=(e==null?void 0:e.openInNewTab)??tn.openInNewTab,s=i==="link"&&a,c=(t==null?void 0:t.fontSize)??cm(n),u=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),f=u&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(u),d=(t==null?void 0:t.textDecoration)??"none",h=f&&(d==="underline"||d==="underline line-through"),p=f&&(d==="line-through"||d==="underline line-through"),b=t==null?void 0:t.lineClamp,x=!!(b&&b>0),w=x?{display:"-webkit-box",WebkitLineClamp:b,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},v={fontWeight:(t==null?void 0:t.fontWeight)??hn.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:f?"none":d,margin:0,fontFamily:im(t==null?void 0:t.fontFamily),fontSize:c,...w},_=f?{lineHeight:"normal ",backgroundImage:u,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...x?{}:{display:"inline-block"},...h?{paddingBottom:"0.08em"}:{}}:{color:u??void 0},S={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:u??void 0,pointerEvents:"none"},$={...S,bottom:0},y={...S,top:"50%",transform:"translateY(-50%)"},C=(t==null?void 0:t.backgroundColor)??void 0,R=typeof C=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(C),I={padding:om(t==null?void 0:t.padding),margin:rm(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",...R?{backgroundImage:C,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:C}},E=n,P=g.jsx(E,{className:"heading-block",style:v,children:g.jsxs("span",{style:_,children:[r?g.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:Ql(o)}}):o,h?g.jsx("span",{style:$}):null,p?g.jsx("span",{style:y}):null]})});return g.jsx("div",{className:"heading-block-wrapper",style:I,children:s?g.jsx("a",{href:a,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!f&&u?u:void 0},children:P}):P})}function cm(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 19;case"h4":return 16;case"h5":return 13;case"h6":return 11}}var ns="comm",os="rule",rs="decl",um="@import",dm="@namespace",hm="@keyframes",fm="@layer",pm=Math.abs,fn=String.fromCharCode;function as(e){return e.trim()}function pr(e,t,n){return e.replace(t,n)}function Gt(e,t){return e.charCodeAt(t)|0}function qt(e,t,n){return e.slice(t,n)}function tt(e){return e.length}function mm(e){return e.length}function On(e,t){return t.push(e),e}var xo=1,Vt=1,is=0,He=0,$e=0,Kt="";function ia(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:xo,column:Vt,length:a,return:"",siblings:l}}function gm(){return $e}function bm(){return $e=He>0?Gt(Kt,--He):0,Vt--,$e===10&&(Vt=1,xo--),$e}function Je(){return $e=He<is?Gt(Kt,He++):0,Vt++,$e===10&&(Vt=1,xo++),$e}function gt(){return Gt(Kt,He)}function Gn(){return He}function vo(e,t){return qt(Kt,e,t)}function vn(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 xm(e){return xo=Vt=1,is=tt(Kt=e),He=0,[]}function vm(e){return Kt="",e}function yo(e){return as(vo(He-1,mr(e===91?e+2:e===40?e+1:e)))}function wm(e){for(;($e=gt())&&$e<33;)Je();return vn(e)>2||vn($e)>3?"":" "}function Sm(e,t){for(;--t&&Je()&&!($e<48||$e>102||$e>57&&$e<65||$e>70&&$e<97););return vo(e,Gn()+(t<6&>()==32&&Je()==32))}function mr(e){for(;Je();)switch($e){case e:return He;case 34:case 39:e!==34&&e!==39&&mr($e);break;case 40:e===41&&mr(e);break;case 92:Je();break}return He}function km(e,t){for(;Je()&&e+$e!==57;)if(e+$e===84&>()===47)break;return"/*"+vo(t,He-1)+"*"+fn(e===47?e:Je())}function _m(e){for(;!vn(gt());)Je();return vo(e,He)}function $m(e){return vm(Un("",null,null,null,[""],e=xm(e),0,[0],e))}function Un(e,t,n,o,r,i,a,l,s){for(var c=0,u=0,f=a,d=0,h=0,p=0,b=1,x=1,w=1,v=0,_=0,S="",$=r,y=i,C=o,R=S;x;)switch(p=_,_=Je()){case 40:p!=108&&Gt(R,f-1)==58?(v++,R+="("):R+=yo(_);break;case 41:v--,R+=")";break;case 34:case 39:case 91:R+=yo(_);break;case 9:case 10:case 13:case 32:if(v>0){R+=fn(_);break}R+=wm(p);break;case 92:R+=Sm(Gn()-1,7);continue;case 47:switch(gt()){case 42:case 47:On(Cm(km(Je(),Gn()),t,n,s),s),(vn(p||1)==5||vn(gt()||1)==5)&&tt(R)&&qt(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*b:l[c++]=tt(R)*w;case 125*b:case 59:case 0:if(v>0&&_){R+=fn(_);break}switch(_){case 0:case 125:x=0;case 59+u:w==-1&&(R=pr(R,/\f/g,"")),h>0&&(tt(R)-f||b===0)&&On(h>32?si(R+";",o,n,f-1,s):si(pr(R," ","")+";",o,n,f-2,s),s);break;case 59:R+=";";default:if(On(C=li(R,t,n,c,u,r,l,S,$=[],y=[],f,i),i),_===123)if(u===0)Un(R,t,C,C,$,i,f,l,y);else{switch(d){case 99:if(Gt(R,3)===110)break;case 108:if(Gt(R,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Un(e,C,C,o&&On(li(e,C,C,0,0,r,l,S,r,$=[],f,y),y),r,y,f,l,o?$:y):Un(R,C,C,C,[""],y,0,l,y)}}c=u=h=0,b=w=1,S=R="",f=a;break;case 58:f=1+tt(R),h=p;default:if(b<1){if(_==123)--b;else if(_==125&&b++==0&&bm()==125)continue}switch(R+=fn(_),_*b){case 38:w=u>0?1:(R+="\f",-1);break;case 44:if(v>0)break;l[c++]=(tt(R)-1)*w,w=1;break;case 64:gt()===45&&(R+=yo(Je())),d=gt(),u=f=tt(S=R+=_m(Gn())),_++;break;case 45:p===45&&tt(R)==2&&(b=0)}}return i}function li(e,t,n,o,r,i,a,l,s,c,u,f){for(var d=r-1,h=r===0?i:[""],p=mm(h),b=0,x=0,w=0;b<o;++b)for(var v=0,_=qt(e,d+1,d=pm(x=a[b])),S=e;v<p;++v)(S=as(x>0?h[v]+" "+_:pr(_,/&\f/g,h[v])))&&(s[w++]=S);return ia(e,t,n,r===0?os:l,s,c,u,f)}function Cm(e,t,n,o){return ia(e,t,n,ns,fn(gm()),qt(e,2,-2),0,o)}function si(e,t,n,o,r){return ia(e,t,n,rs,qt(e,0,o),qt(e,o+1,-1),o,r)}function gr(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function Am(e,t,n,o){switch(e.type){case fm:if(e.children.length)break;case um:case dm:case rs:return e.return=e.return||e.value;case ns:return"";case hm:return e.return=e.value+"{"+gr(e.children,o)+"}";case os:if(!tt(e.value=e.props.join(",")))return""}return tt(n=gr(e.children,o))?e.return=e.value+"{"+n+"}":""}const ym=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Im=k().regex(/^rgba?\([^\)]+\)$/i),Rm=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Em=ae("transparent"),ci=D([ym,Im,Rm,Em]).nullable().optional(),Nm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Mm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Tm=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Pm=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Om=M(["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 Lm(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 zm=A({style:A({color:ci,backgroundColor:ci,fontFamily:Om,fontSize:m().min(0).optional().nullable(),textAlign:M(["left","right","center"]).optional().nullable(),padding:Nm,margin:Mm}).optional().nullable(),props:A({contents:k().optional().nullable()}).optional().nullable()}),jm=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Bm(e,t){let n="";const o=e.replace(jm,(i,a)=>(n+=a,""));if(!n.trim())return{markup:o,css:""};const r=gr($m(`[${t}]{${n}}`),Am);return{markup:o,css:r}}function Dm({style:e,props:t}){const n=t==null?void 0:t.contents,[o,r]=F.useState(!1),a=`data-html-scope-${F.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=F.useMemo(()=>n?Bm(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:Lm(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:Tm(e==null?void 0:e.padding),margin:Pm(e==null?void 0:e.margin)},u=F.useRef(null);F.useEffect(()=>{const b=u.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const f=b=>{o||r(!0)},d=()=>{r(!1)},h=`[${a}] pre,[${a}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return g.jsx("div",{ref:u,className:"html-block",style:c,children:g.jsx("style",{dangerouslySetInnerHTML:{__html:h}})});const p=`<style>${h}${s}</style>${Xl(l)}`;return g.jsx("div",{ref:u,className:"html-block",style:c,onClick:f,onBlur:d,tabIndex:0,[a]:"",dangerouslySetInnerHTML:{__html:p}})}const la=A({enabled:O(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:M(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable(),Fm=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Hm=k().regex(/^rgba?\([^\)]+\)$/i),Gm=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Um=ae("transparent"),Zm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Wm=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Io=D([Fm,Hm,Gm,Um]).nullable().optional(),qm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Vm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Ym(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 Km(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 Jm=A({style:A({padding:Zm,backgroundColor:Io.default(null),textAlign:M(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:m().optional().nullable(),widthUnit:M(["px","%"]).optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),height:m().optional().nullable(),heightTablet:m().positive().optional().nullable(),heightMobile:m().positive().optional().nullable(),widthType:M(["fixed","fill","fit"]).optional().nullable(),url:k().optional().nullable(),urlTablet:k().optional().nullable(),urlMobile:k().optional().nullable(),alt:k().optional().nullable(),decorative:O().optional().nullable(),linkHref:k().optional().nullable(),contentAlignment:M(["top","middle","bottom"]).optional().nullable(),borderRadius:Wm,borderColor:Io.default(null),borderWidth:qm,rotation:m().min(0).max(360).optional().nullable(),rotationTablet:m().min(0).max(360).optional().nullable(),rotationMobile:m().min(0).max(360).optional().nullable(),iconName:k().optional().nullable(),iconFillColor:Io.default(null),animation:$n,hoverEffect:la,boxShadow:go}).optional().nullable()}),Te={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,linkHref:null,contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"},boxShadow:null};let Xm=0;function Qm({style:e,props:t}){const n=F.useMemo(()=>`ahd-img-${++Xm}`,[]),o=(e==null?void 0:e.textAlign)??void 0,r=o==="center"?"center":o==="right"?"flex-end":"flex-start",i={padding:Vm(e==null?void 0:e.padding),...Ym(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:r,width:"100%",boxSizing:"border-box"},a=(t==null?void 0:t.linkHref)??Te.linkHref,l=(t==null?void 0:t.widthType)??Te.widthType,s=(t==null?void 0:t.width)??Te.width,c=(t==null?void 0:t.widthUnit)??Te.widthUnit,u=(t==null?void 0:t.widthTablet)??null,f=(t==null?void 0:t.widthMobile)??null,d=u??s,h=f??d,p=(t==null?void 0:t.height)??Te.height,b=(t==null?void 0:t.heightTablet)??null,x=(t==null?void 0:t.heightMobile)??null,w=b??p,v=x??w,_=p,S=(t==null?void 0:t.url)??Te.url,$=(t==null?void 0:t.urlTablet)??null,y=(t==null?void 0:t.urlMobile)??null,C=!a&&((t==null?void 0:t.decorative)??Te.decorative),R=C?"":(t==null?void 0:t.alt)??Te.alt,I=C?{role:"presentation","aria-hidden":!0}:{},E=(t==null?void 0:t.contentAlignment)??Te.contentAlignment,P=(t==null?void 0:t.borderRadius)??Te.borderRadius,T=(t==null?void 0:t.borderColor)??Te.borderColor,z=(t==null?void 0:t.borderWidth)??Te.borderWidth,H=(t==null?void 0:t.boxShadow)??Te.boxShadow,Z=bo(H),j=(t==null?void 0:t.rotation)??Te.rotation,V=(t==null?void 0:t.rotationTablet)??null,Y=(t==null?void 0:t.rotationMobile)??null,K=V??j,G=Y??K,oe=ne=>{const pe=ne*Math.PI/180,Se=ne%180!==0?1/(Math.abs(Math.cos(pe))+Math.abs(Math.sin(pe))):1;return`rotate(${ne}deg) scale(${Se})`},le=j,se=le?{transform:oe(le),transformOrigin:"center"}:{},Ee=V!=null||Y!=null?`
|
|
66
|
-
${
|
|
67
|
-
${
|
|
68
|
-
`.trim():null,
|
|
69
|
-
${
|
|
70
|
-
${
|
|
71
|
-
`.trim():null,
|
|
72
|
-
${
|
|
73
|
-
${
|
|
74
|
-
`.trim():null,
|
|
75
|
-
.${n} picture { display: inline-block; transition: transform ${
|
|
76
|
-
.${n}:hover picture { transform: scale(${
|
|
77
|
-
`.trim():null,
|
|
78
|
-
`)||null,
|
|
79
|
-
${
|
|
80
|
-
${
|
|
81
|
-
`.trim(),
|
|
82
|
-
${
|
|
83
|
-
${
|
|
84
|
-
`.trim(),
|
|
85
|
-
|
|
62
|
+
`)}f.write("payload.value = newResult;"),f.write("return payload;");const S=f.compile();return(C,y)=>S(d,C,y)};let i;const a=Cn,l=!ca.jitless,c=l&&Pc.value,u=t.catchall;let h;e._zod.parse=(d,f)=>{h??(h=o.value);const p=d.value;return a(p)?l&&c&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(i||(i=r(t.shape)),d=i(d,f),u?Jl([],p,d,f,h,e):d):n(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function Ka(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const r=e.filter(i=>!Yt(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>$t(a,o,wt())))}),t)}const Xl=E("$ZodUnion",(e,t)=>{me.init(e,t),re(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),re(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),re(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),re(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${o.map(r=>da(r.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1;const a=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},r);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=>Ka(l,o,e,r)):Ka(a,o,e,r)}}),kd=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Xl.init(e,t);const n=e._zod.parse;re(e._zod,"propValues",()=>{const r={};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)){r[l]||(r[l]=new Set);for(const c of s)r[l].add(c)}}return r});const o=ko(()=>{var a;const r=t.options,i=new Map;for(const l of r){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=(r,i)=>{const a=r.value;if(!Cn(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const l=o.value.get(a==null?void 0:a[t.discriminator]);return l?l._zod.run(r,i):t.unionFallback||i.direction==="backward"?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),_d=E("$ZodIntersection",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{const r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Ja(n,s,c)):Ja(n,i,a)}});function vr(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(tn(e)&&tn(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(const i of o){const a=vr(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const r=e[o],i=t[o],a=vr(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ja(e,t,n){const o=new Map;let r;for(const l of t.issues)if(l.code==="unrecognized_keys"){r??(r=l);for(const s of l.keys)o.has(s)||o.set(s,{}),o.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)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);const i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&r&&e.issues.push({...r,keys:i}),Yt(e))return e;const a=vr(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 Cd=E("$ZodTuple",(e,t)=>{me.init(e,t);const n=t.items;e._zod.parse=(o,r)=>{const i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const a=[],l=Xa(n,"optin"),s=Xa(n,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.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 h=n[u]._zod.run({value:i[u],issues:[]},r);h instanceof Promise?a.push(h.then(d=>{c[u]=d})):c[u]=h}if(t.rest){let u=n.length-1;const h=i.slice(n.length);for(const d of h){u++;const f=t.rest._zod.run({value:d,issues:[]},r);f instanceof Promise?a.push(f.then(p=>Qa(p,o,u))):Qa(f,o,u)}}return a.length?Promise.all(a).then(()=>ei(c,o,n,i,s)):ei(c,o,n,i,s)}});function Xa(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function Qa(e,t,n){e.issues.length&&t.issues.push(...yt(n,e.issues)),t.value[n]=e.value}function ei(e,t,n,o,r){for(let i=0;i<n.length;i++){const a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=r){t.value.length=i;break}t.issues.push(...yt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}const Ad=E("$ZodRecord",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!tn(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,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:[]},o);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(f=>$t(f,o,wt())),input:c,path:[c],inst:e});continue}const h=u.value,d=t.valueType._zod.run({value:r[c],issues:[]},o);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&n.issues.push(...yt(c,f.issues)),n.value[h]=f.value})):(d.issues.length&&n.issues.push(...yt(c,d.issues)),n.value[h]=d.value)}let s;for(const c in r)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(r)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Ul.test(l)&&s.issues.length){const h=t.keyType._zod.run({value:Number(l),issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(s=h)}if(s.issues.length){t.mode==="loose"?n.value[l]=r[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(h=>$t(h,o,wt())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:r[l],issues:[]},o);u instanceof Promise?i.push(u.then(h=>{h.issues.length&&n.issues.push(...yt(l,h.issues)),n.value[s.value]=h.value})):(u.issues.length&&n.issues.push(...yt(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),yd=E("$ZodEnum",(e,t)=>{me.init(e,t);const n=Ol(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>Oc.has(typeof r)).map(r=>typeof r=="string"?nn(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),Id=E("$ZodLiteral",(e,t)=>{if(me.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(o=>typeof o=="string"?nn(o):o?nn(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Rd=E("$ZodTransform",(e,t)=>{me.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Pl(e.constructor.name);const r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n.fallback=!0,n));if(r instanceof Promise)throw new Xt;return n.value=r,n.fallback=!0,n}});function ti(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Ql=E("$ZodOptional",(e,t)=>{me.init(e,t),e._zod.optin="optional",e._zod.optout="optional",re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),re(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${da(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const r=n.value,i=t.innerType._zod.run(n,o);return i instanceof Promise?i.then(a=>ti(a,r)):ti(i,r)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Nd=E("$ZodExactOptional",(e,t)=>{Ql.init(e,t),re(e._zod,"values",()=>t.innerType._zod.values),re(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Td=E("$ZodNullable",(e,t)=>{me.init(e,t),re(e._zod,"optin",()=>t.innerType._zod.optin),re(e._zod,"optout",()=>t.innerType._zod.optout),re(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${da(n.source)}|null)$`):void 0}),re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),Ed=E("$ZodDefault",(e,t)=>{me.init(e,t),e._zod.optin="optional",re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>ni(i,t)):ni(r,t)}});function ni(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Md=E("$ZodPrefault",(e,t)=>{me.init(e,t),e._zod.optin="optional",re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Pd=E("$ZodNonOptional",(e,t)=>{me.init(e,t),re(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>oi(i,e)):oi(r,e)}});function oi(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 Od=E("$ZodCatch",(e,t)=>{me.init(e,t),e._zod.optin="optional",re(e._zod,"optout",()=>t.innerType._zod.optout),re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>$t(a,o,wt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>$t(i,o,wt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),es=E("$ZodPipe",(e,t)=>{me.init(e,t),re(e._zod,"values",()=>t.in._zod.values),re(e._zod,"optin",()=>t.in._zod.optin),re(e._zod,"optout",()=>t.out._zod.optout),re(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>Fn(a,t.in,o)):Fn(i,t.in,o)}const r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>Fn(i,t.out,o)):Fn(r,t.out,o)}});function Fn(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 Ld=E("$ZodPreprocess",(e,t)=>{es.init(e,t)}),zd=E("$ZodReadonly",(e,t)=>{me.init(e,t),re(e._zod,"propValues",()=>t.innerType._zod.propValues),re(e._zod,"values",()=>t.innerType._zod.values),re(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),re(e._zod,"optout",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optout}),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(ri):ri(r)}});function ri(e){return e.value=Object.freeze(e.value),e}const jd=E("$ZodLazy",(e,t)=>{me.init(e,t),re(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),re(e._zod,"pattern",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.pattern}),re(e._zod,"propValues",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.propValues}),re(e._zod,"optin",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optin)??void 0}),re(e._zod,"optout",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optout)??void 0}),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Bd=E("$ZodCustom",(e,t)=>{He.init(e,t),me.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>ai(i,n,o,e));ai(r,n,o,e)}});function ai(e,t,n,o){if(!e){const r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(An(r))}}var ii;class Dd{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.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 o={...this.get(n)??{}};delete o.id;const r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Fd(){return new Dd}(ii=globalThis).__zod_globalRegistry??(ii.__zod_globalRegistry=Fd());const wn=globalThis.__zod_globalRegistry;function Hd(e,t){return new e({type:"string",...G(t)})}function Gd(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...G(t)})}function li(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...G(t)})}function Ud(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...G(t)})}function Wd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...G(t)})}function Zd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...G(t)})}function Vd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...G(t)})}function qd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...G(t)})}function Yd(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...G(t)})}function Kd(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...G(t)})}function Jd(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...G(t)})}function Xd(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...G(t)})}function Qd(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...G(t)})}function eh(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...G(t)})}function th(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...G(t)})}function nh(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...G(t)})}function oh(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...G(t)})}function rh(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...G(t)})}function ah(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...G(t)})}function ih(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...G(t)})}function lh(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...G(t)})}function sh(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...G(t)})}function ch(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...G(t)})}function uh(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...G(t)})}function dh(e,t){return new e({type:"string",format:"date",check:"string_format",...G(t)})}function hh(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...G(t)})}function fh(e,t){return new e({type:"string",format:"duration",check:"string_format",...G(t)})}function mh(e,t){return new e({type:"number",checks:[],...G(t)})}function ph(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...G(t)})}function gh(e,t){return new e({type:"boolean",...G(t)})}function bh(e){return new e({type:"any"})}function xh(e){return new e({type:"unknown"})}function vh(e,t){return new e({type:"never",...G(t)})}function si(e,t){return new Zl({check:"less_than",...G(t),value:e,inclusive:!1})}function Eo(e,t){return new Zl({check:"less_than",...G(t),value:e,inclusive:!0})}function ci(e,t){return new Vl({check:"greater_than",...G(t),value:e,inclusive:!1})}function Mo(e,t){return new Vl({check:"greater_than",...G(t),value:e,inclusive:!0})}function ui(e,t){return new Nu({check:"multiple_of",...G(t),value:e})}function ts(e,t){return new Eu({check:"max_length",...G(t),maximum:e})}function co(e,t){return new Mu({check:"min_length",...G(t),minimum:e})}function ns(e,t){return new Pu({check:"length_equals",...G(t),length:e})}function Sh(e,t){return new Ou({check:"string_format",format:"regex",...G(t),pattern:e})}function wh(e){return new Lu({check:"string_format",format:"lowercase",...G(e)})}function $h(e){return new zu({check:"string_format",format:"uppercase",...G(e)})}function kh(e,t){return new ju({check:"string_format",format:"includes",...G(t),includes:e})}function _h(e,t){return new Bu({check:"string_format",format:"starts_with",...G(t),prefix:e})}function Ch(e,t){return new Du({check:"string_format",format:"ends_with",...G(t),suffix:e})}function ln(e){return new Fu({check:"overwrite",tx:e})}function Ah(e){return ln(t=>t.normalize(e))}function yh(){return ln(e=>e.trim())}function Ih(){return ln(e=>e.toLowerCase())}function Rh(){return ln(e=>e.toUpperCase())}function Nh(){return ln(e=>Mc(e))}function Th(e,t,n){return new e({type:"array",element:t,...G(n)})}function Eh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...G(n)})}function Mh(e,t){const n=Ph(o=>(o.addIssue=r=>{if(typeof r=="string")o.issues.push(An(r,o.value,n._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(An(i))}},e(o.value,o)),t);return n}function Ph(e,t){const n=new He({check:"custom",...G(t)});return n._zod.check=e,n}function os(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)??wn,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 $e(e,t,n={path:[],schemaPath:[]}){var u,h;var o;const r=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=(h=(u=e._zod).toJSONSchema)==null?void 0:h.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 p=a.schema,b=t.processors[r.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);b(e,t,p,d)}const f=e._zod.parent;f&&(a.ref||(a.ref=f),$e(f,t,d),t.seen.get(f).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&ze(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function rs(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 o=new Map;for(const u of e.seen.entries()){const h=(a=e.metadataRegistry.get(u[0]))==null?void 0:a.id;if(h){const d=o.get(h);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(h,u[0])}}const r=u=>{var b;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(u[0]))==null?void 0:b.id,v=e.external.uri??(k=>k);if(x)return{ref:v(x)};const S=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=S,{defId:S,ref:`${v("__shared")}#/${h}/${S}`}}if(u[1]===n)return{ref:"#"};const f=`#/${h}/`,p=u[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},i=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:d,defId:f}=r(u);h.def={...h.schema},f&&(h.defId=f);const p=h.schema;for(const b in p)delete p[b];p.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.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 h=u[1];if(t===u[0]){i(u);continue}if(e.external){const f=(s=e.external.registry.get(u[0]))==null?void 0:s.id;if(t!==u[0]&&f){i(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){i(u);continue}if(h.cycle){i(u);continue}if(h.count>1&&e.reused==="ref"){i(u);continue}}}function as(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 o=h=>{const d=e.seen.get(h);if(d.ref===null)return;const f=d.def??d.schema,p={...f},b=d.ref;if(d.ref=null,b){o(b);const v=e.seen.get(b),S=v.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(S)):Object.assign(f,S),Object.assign(f,p),h._zod.parent===b)for(const w in f)w==="$ref"||w==="allOf"||w in p||delete f[w];if(S.$ref&&v.def)for(const w in f)w==="$ref"||w==="allOf"||w in v.def&&JSON.stringify(f[w])===JSON.stringify(v.def[w])&&delete f[w]}const x=h._zod.parent;if(x&&x!==b){o(x);const v=e.seen.get(x);if(v!=null&&v.schema.$ref&&(f.$ref=v.schema.$ref,v.def))for(const S in f)S==="$ref"||S==="allOf"||S in v.def&&JSON.stringify(f[S])===JSON.stringify(v.def[S])&&delete f[S]}e.override({zodSchema:h,jsonSchema:f,path:d.path??[]})};for(const h of[...e.seen.entries()].reverse())o(h[0]);const r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(s=e.external.registry.get(t))==null?void 0:s.id;if(!h)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(h)}Object.assign(r,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&r.id===i&&delete r.id;const a=((u=e.external)==null?void 0:u.defs)??{};for(const h of e.seen.entries()){const d=h[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"?r.$defs=a:r.definitions=a);try{const h=JSON.parse(JSON.stringify(r));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:uo(t,"input",e.processors),output:uo(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function ze(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ze(o.element,n);if(o.type==="set")return ze(o.valueType,n);if(o.type==="lazy")return ze(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ze(o.innerType,n);if(o.type==="intersection")return ze(o.left,n)||ze(o.right,n);if(o.type==="record"||o.type==="map")return ze(o.keyType,n)||ze(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ze(o.in,n)||ze(o.out,n);if(o.type==="object"){for(const r in o.shape)if(ze(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(const r of o.options)if(ze(r,n))return!0;return!1}if(o.type==="tuple"){for(const r of o.items)if(ze(r,n))return!0;return!!(o.rest&&ze(o.rest,n))}return!1}const Oh=(e,t={})=>n=>{const o=os({...n,processors:t});return $e(e,o),rs(o,e),as(o,e)},uo=(e,t,n={})=>o=>{const{libraryOptions:r,target:i}=o??{},a=os({...r??{},target:i,io:t,processors:n});return $e(e,a),rs(a,e),as(a,e)},Lh={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zh=(e,t,n,o)=>{const r=n;r.type="string";const{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),l&&(r.format=Lh[l]??l,r.format===""&&delete r.format,l==="time"&&delete r.format),c&&(r.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?r.pattern=u[0].source:u.length>1&&(r.allOf=[...u.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},jh=(e,t,n,o)=>{const r=n,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number";const h=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";h?f?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof i=="number"&&(r.minimum=i),d?f?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c:typeof a=="number"&&(r.maximum=a),typeof s=="number"&&(r.multipleOf=s)},Bh=(e,t,n,o)=>{n.type="boolean"},Dh=(e,t,n,o)=>{n.not={}},Fh=(e,t,n,o)=>{},Hh=(e,t,n,o)=>{},Gh=(e,t,n,o)=>{const r=e._zod.def,i=Ol(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},Uh=(e,t,n,o)=>{const r=e._zod.def,i=[];for(const a of r.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},Wh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Zh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Vh=(e,t,n,o)=>{const r=n,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=$e(i.element,t,{...o,path:[...o.path,"items"]})},qh=(e,t,n,o)=>{var c;const r=n,i=e._zod.def;r.type="object",r.properties={};const a=i.shape;for(const u in a)r.properties[u]=$e(a[u],t,{...o,path:[...o.path,"properties",u]});const l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{const h=i.shape[u]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));s.size>0&&(r.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=$e(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Yh=(e,t,n,o)=>{const r=e._zod.def,i=r.inclusive===!1,a=r.options.map((l,s)=>$e(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=a:n.anyOf=a},Kh=(e,t,n,o)=>{const r=e._zod.def,i=$e(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=$e(r.right,t,{...o,path:[...o.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},Jh=(e,t,n,o)=>{const r=n,i=e._zod.def;r.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,f)=>$e(d,t,{...o,path:[...o.path,a,f]})),c=i.rest?$e(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:s},c&&r.items.anyOf.push(c),r.minItems=s.length,c||(r.maxItems=s.length)):(r.items=s,c&&(r.additionalItems=c));const{minimum:u,maximum:h}=e._zod.bag;typeof u=="number"&&(r.minItems=u),typeof h=="number"&&(r.maxItems=h)},Xh=(e,t,n,o)=>{const r=n,i=e._zod.def;r.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=$e(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(const h of s)r.patternProperties[h.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=$e(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=$e(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=a._zod.values;if(c){const u=[...c].filter(h=>typeof h=="string"||typeof h=="number");u.length>0&&(r.required=u)}},Qh=(e,t,n,o)=>{const r=e._zod.def,i=$e(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},ef=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},tf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},nf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},of=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},rf=(e,t,n,o)=>{const r=e._zod.def,i=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?r.out:r.in:r.out;$e(a,t,o);const l=t.seen.get(e);l.ref=a},af=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},is=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},lf=(e,t,n,o)=>{const r=e._zod.innerType;$e(r,t,o);const i=t.seen.get(e);i.ref=r},sf=E("ZodISODateTime",(e,t)=>{td.init(e,t),ke.init(e,t)});function cf(e){return uh(sf,e)}const uf=E("ZodISODate",(e,t)=>{nd.init(e,t),ke.init(e,t)});function df(e){return dh(uf,e)}const hf=E("ZodISOTime",(e,t)=>{od.init(e,t),ke.init(e,t)});function ff(e){return hh(hf,e)}const mf=E("ZodISODuration",(e,t)=>{rd.init(e,t),ke.init(e,t)});function pf(e){return fh(mf,e)}const gf=(e,t)=>{Bl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Vc(e,n)},flatten:{value:n=>Zc(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,xr,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,xr,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ke=E("ZodError",gf,{Parent:Error}),bf=fa(Ke),xf=ma(Ke),vf=_o(Ke),Sf=Co(Ke),wf=Kc(Ke),$f=Jc(Ke),kf=Xc(Ke),_f=Qc(Ke),Cf=eu(Ke),Af=tu(Ke),yf=nu(Ke),If=ou(Ke),di=new WeakMap;function Mn(e,t,n){const o=Object.getPrototypeOf(e);let r=di.get(o);if(r||(r=new Set,di.set(o,r)),!r.has(t)){r.add(t);for(const i in n){const a=n[i];Object.defineProperty(o,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 be=E("ZodType",(e,t)=>(me.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:uo(e,"input"),output:uo(e,"output")}}),e.toJSONSchema=Oh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>bf(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>vf(e,n,o),e.parseAsync=async(n,o)=>xf(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Sf(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>wf(e,n,o),e.decode=(n,o)=>$f(e,n,o),e.encodeAsync=async(n,o)=>kf(e,n,o),e.decodeAsync=async(n,o)=>_f(e,n,o),e.safeEncode=(n,o)=>Cf(e,n,o),e.safeDecode=(n,o)=>Af(e,n,o),e.safeEncodeAsync=async(n,o)=>yf(e,n,o),e.safeDecodeAsync=async(n,o)=>If(e,n,o),Mn(e,"ZodType",{check(...n){const o=this.def;return this.clone(Rt(o,{checks:[...o.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return Nt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(_m(n,o))},superRefine(n,o){return this.check(Cm(n,o))},overwrite(n){return this.check(ln(n))},optional(){return gi(this)},exactOptional(){return cm(this)},nullable(){return bi(this)},nullish(){return gi(bi(this))},nonoptional(n){return pm(this,n)},array(){return te(this)},or(n){return D([this,n])},and(n){return rm(this,n)},transform(n){return xi(this,ds(n))},default(n){return hm(this,n)},prefault(n){return mm(this,n)},catch(n){return bm(this,n)},pipe(n){return xi(this,n)},readonly(){return Sm(this)},describe(n){const o=this.clone();return wn.add(o,{description:n}),o},meta(...n){if(n.length===0)return wn.get(this);const o=this.clone();return wn.add(o,n[0]),o},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=wn.get(e))==null?void 0:n.description},configurable:!0}),e)),ls=E("_ZodString",(e,t)=>{pa.init(e,t),be.init(e,t),e._zod.processJSONSchema=(o,r,i)=>zh(e,o,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Mn(e,"_ZodString",{regex(...o){return this.check(Sh(...o))},includes(...o){return this.check(kh(...o))},startsWith(...o){return this.check(_h(...o))},endsWith(...o){return this.check(Ch(...o))},min(...o){return this.check(co(...o))},max(...o){return this.check(ts(...o))},length(...o){return this.check(ns(...o))},nonempty(...o){return this.check(co(1,...o))},lowercase(o){return this.check(wh(o))},uppercase(o){return this.check($h(o))},trim(){return this.check(yh())},normalize(...o){return this.check(Ah(...o))},toLowerCase(){return this.check(Ih())},toUpperCase(){return this.check(Rh())},slugify(){return this.check(Nh())}})}),Rf=E("ZodString",(e,t)=>{pa.init(e,t),ls.init(e,t),e.email=n=>e.check(Gd(Nf,n)),e.url=n=>e.check(qd(Tf,n)),e.jwt=n=>e.check(ch(Zf,n)),e.emoji=n=>e.check(Yd(Ef,n)),e.guid=n=>e.check(li(hi,n)),e.uuid=n=>e.check(Ud(Hn,n)),e.uuidv4=n=>e.check(Wd(Hn,n)),e.uuidv6=n=>e.check(Zd(Hn,n)),e.uuidv7=n=>e.check(Vd(Hn,n)),e.nanoid=n=>e.check(Kd(Mf,n)),e.guid=n=>e.check(li(hi,n)),e.cuid=n=>e.check(Jd(Pf,n)),e.cuid2=n=>e.check(Xd(Of,n)),e.ulid=n=>e.check(Qd(Lf,n)),e.base64=n=>e.check(ih(Gf,n)),e.base64url=n=>e.check(lh(Uf,n)),e.xid=n=>e.check(eh(zf,n)),e.ksuid=n=>e.check(th(jf,n)),e.ipv4=n=>e.check(nh(Bf,n)),e.ipv6=n=>e.check(oh(Df,n)),e.cidrv4=n=>e.check(rh(Ff,n)),e.cidrv6=n=>e.check(ah(Hf,n)),e.e164=n=>e.check(sh(Wf,n)),e.datetime=n=>e.check(cf(n)),e.date=n=>e.check(df(n)),e.time=n=>e.check(ff(n)),e.duration=n=>e.check(pf(n))});function $(e){return Hd(Rf,e)}const ke=E("ZodStringFormat",(e,t)=>{we.init(e,t),ls.init(e,t)}),Nf=E("ZodEmail",(e,t)=>{Zu.init(e,t),ke.init(e,t)}),hi=E("ZodGUID",(e,t)=>{Uu.init(e,t),ke.init(e,t)}),Hn=E("ZodUUID",(e,t)=>{Wu.init(e,t),ke.init(e,t)}),Tf=E("ZodURL",(e,t)=>{Vu.init(e,t),ke.init(e,t)}),Ef=E("ZodEmoji",(e,t)=>{qu.init(e,t),ke.init(e,t)}),Mf=E("ZodNanoID",(e,t)=>{Yu.init(e,t),ke.init(e,t)}),Pf=E("ZodCUID",(e,t)=>{Ku.init(e,t),ke.init(e,t)}),Of=E("ZodCUID2",(e,t)=>{Ju.init(e,t),ke.init(e,t)}),Lf=E("ZodULID",(e,t)=>{Xu.init(e,t),ke.init(e,t)}),zf=E("ZodXID",(e,t)=>{Qu.init(e,t),ke.init(e,t)}),jf=E("ZodKSUID",(e,t)=>{ed.init(e,t),ke.init(e,t)}),Bf=E("ZodIPv4",(e,t)=>{ad.init(e,t),ke.init(e,t)}),Df=E("ZodIPv6",(e,t)=>{id.init(e,t),ke.init(e,t)}),Ff=E("ZodCIDRv4",(e,t)=>{ld.init(e,t),ke.init(e,t)}),Hf=E("ZodCIDRv6",(e,t)=>{sd.init(e,t),ke.init(e,t)}),Gf=E("ZodBase64",(e,t)=>{cd.init(e,t),ke.init(e,t)}),Uf=E("ZodBase64URL",(e,t)=>{dd.init(e,t),ke.init(e,t)}),Wf=E("ZodE164",(e,t)=>{hd.init(e,t),ke.init(e,t)}),Zf=E("ZodJWT",(e,t)=>{md.init(e,t),ke.init(e,t)}),ss=E("ZodNumber",(e,t)=>{Yl.init(e,t),be.init(e,t),e._zod.processJSONSchema=(o,r,i)=>jh(e,o,r),Mn(e,"ZodNumber",{gt(o,r){return this.check(ci(o,r))},gte(o,r){return this.check(Mo(o,r))},min(o,r){return this.check(Mo(o,r))},lt(o,r){return this.check(si(o,r))},lte(o,r){return this.check(Eo(o,r))},max(o,r){return this.check(Eo(o,r))},int(o){return this.check(fi(o))},safe(o){return this.check(fi(o))},positive(o){return this.check(ci(0,o))},nonnegative(o){return this.check(Mo(0,o))},negative(o){return this.check(si(0,o))},nonpositive(o){return this.check(Eo(0,o))},multipleOf(o,r){return this.check(ui(o,r))},step(o,r){return this.check(ui(o,r))},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 m(e){return mh(ss,e)}const Vf=E("ZodNumberFormat",(e,t)=>{pd.init(e,t),ss.init(e,t)});function fi(e){return ph(Vf,e)}const qf=E("ZodBoolean",(e,t)=>{gd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Bh(e,n,o)});function O(e){return gh(qf,e)}const Yf=E("ZodAny",(e,t)=>{bd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Fh()});function yn(){return bh(Yf)}const Kf=E("ZodUnknown",(e,t)=>{xd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Hh()});function mi(){return xh(Kf)}const Jf=E("ZodNever",(e,t)=>{vd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dh(e,n,o)});function Xf(e){return vh(Jf,e)}const Qf=E("ZodArray",(e,t)=>{Sd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Vh(e,n,o,r),e.element=t.element,Mn(e,"ZodArray",{min(n,o){return this.check(co(n,o))},nonempty(n){return this.check(co(1,n))},max(n,o){return this.check(ts(n,o))},length(n,o){return this.check(ns(n,o))},unwrap(){return this.element}})});function te(e,t){return Th(Qf,e,t)}const em=E("ZodObject",(e,t)=>{$d.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qh(e,n,o,r),re(e,"shape",()=>t.shape),Mn(e,"ZodObject",{keyof(){return N(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:mi()})},loose(){return this.clone({...this._zod.def,catchall:mi()})},strict(){return this.clone({...this._zod.def,catchall:Xf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Dc(this,n)},safeExtend(n){return Fc(this,n)},merge(n){return Hc(this,n)},pick(n){return jc(this,n)},omit(n){return Bc(this,n)},partial(...n){return Gc(hs,this,n[0])},required(...n){return Uc(fs,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...G(t)};return new em(n)}const cs=E("ZodUnion",(e,t)=>{Xl.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yh(e,n,o,r),e.options=t.options});function D(e,t){return new cs({type:"union",options:e,...G(t)})}const tm=E("ZodDiscriminatedUnion",(e,t)=>{cs.init(e,t),kd.init(e,t)});function nm(e,t,n){return new tm({type:"union",options:t,discriminator:e,...G(n)})}const om=E("ZodIntersection",(e,t)=>{_d.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Kh(e,n,o,r)});function rm(e,t){return new om({type:"intersection",left:e,right:t})}const am=E("ZodTuple",(e,t)=>{Cd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Jh(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function us(e,t,n){const o=t instanceof me,r=o?n:t,i=o?t:null;return new am({type:"tuple",items:e,rest:i,...G(r)})}const pi=E("ZodRecord",(e,t)=>{Ad.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Xh(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function on(e,t,n){return!t||!t._zod?new pi({type:"record",keyType:$(),valueType:e,...G(t)}):new pi({type:"record",keyType:e,valueType:t,...G(n)})}const Sr=E("ZodEnum",(e,t)=>{yd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Gh(e,o,r),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{const i={};for(const a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Sr({...t,checks:[],...G(r),entries:i})},e.exclude=(o,r)=>{const i={...t.entries};for(const a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Sr({...t,checks:[],...G(r),entries:i})}});function N(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Sr({type:"enum",entries:n,...G(t)})}const im=E("ZodLiteral",(e,t)=>{Id.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Uh(e,n,o),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 oe(e,t){return new im({type:"literal",values:Array.isArray(e)?e:[e],...G(t)})}const lm=E("ZodTransform",(e,t)=>{Rd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Zh(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Pl(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(An(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(An(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});function ds(e){return new lm({type:"transform",transform:e})}const hs=E("ZodOptional",(e,t)=>{Ql.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>is(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function gi(e){return new hs({type:"optional",innerType:e})}const sm=E("ZodExactOptional",(e,t)=>{Nd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>is(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function cm(e){return new sm({type:"optional",innerType:e})}const um=E("ZodNullable",(e,t)=>{Td.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Qh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function bi(e){return new um({type:"nullable",innerType:e})}const dm=E("ZodDefault",(e,t)=>{Ed.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>tf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function hm(e,t){return new dm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():zl(t)}})}const fm=E("ZodPrefault",(e,t)=>{Md.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>nf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function mm(e,t){return new fm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():zl(t)}})}const fs=E("ZodNonOptional",(e,t)=>{Pd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ef(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function pm(e,t){return new fs({type:"nonoptional",innerType:e,...G(t)})}const gm=E("ZodCatch",(e,t)=>{Od.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>of(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bm(e,t){return new gm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const ms=E("ZodPipe",(e,t)=>{es.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rf(e,n,o,r),e.in=t.in,e.out=t.out});function xi(e,t){return new ms({type:"pipe",in:e,out:t})}const xm=E("ZodPreprocess",(e,t)=>{ms.init(e,t),Ld.init(e,t)}),vm=E("ZodReadonly",(e,t)=>{zd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>af(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Sm(e){return new vm({type:"readonly",innerType:e})}const wm=E("ZodLazy",(e,t)=>{jd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>lf(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function $m(e){return new wm({type:"lazy",getter:e})}const km=E("ZodCustom",(e,t)=>{Bd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wh(e,n)});function _m(e,t={}){return Eh(km,e,t)}function Cm(e,t){return Mh(e,t)}function ps(e,t){return new xm({type:"pipe",in:ds(e),out:t})}var Am=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ym=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,vi=A({style:A({textAlign:N(["left","center","right"]).optional().nullable(),padding:Am}).optional().nullable(),props:A({size:m().gt(0).optional().nullable(),shape:N(["circle","square","rounded"]).optional().nullable(),imageUrl:$().optional().nullable(),alt:$().optional().nullable()}).optional().nullable()});function Im(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var Gn={size:64,imageUrl:"",alt:"",shape:"square"};function Si({style:e,props:t}){var n,o,r,i,a;const l=(n=t==null?void 0:t.size)!=null?n:Gn.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:Gn.imageUrl,c=(r=t==null?void 0:t.alt)!=null?r:Gn.alt,u=(i=t==null?void 0:t.shape)!=null?i:Gn.shape,h={textAlign:(a=e==null?void 0:e.textAlign)!=null?a:void 0,padding:ym(e==null?void 0:e.padding)};return U.createElement("div",{style:h},U.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:Im(u,l)}}))}const Rm=A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),Nm=vi.extend({props:vi.shape.props.unwrap().unwrap().extend({decorative:O().optional().nullable(),animation:Rm}).optional().nullable()}),$n={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},ga=Object.values($n);let gs=null;function wi(e){gs=e}function Tm(){return gs}function ba(){return"desktop"}const Pe=1024,Oe=640,ft=`@media (max-width: ${Pe}px)`,je=`@media (max-width: ${Oe}px)`,Bt=`@media (min-width: ${Oe+1}px) and (max-width: ${Pe}px)`,Ge=A({tablet:on($(),yn()).optional().nullable(),mobile:on($(),yn()).optional().nullable()}).optional().nullable();function xa(e){return typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e)}function va(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Sa(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Em(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}const wa="data-ahd-theme",Po="auto",Mm="--ahd-c-",bs=(e,t,n)=>Math.min(n,Math.max(t,e));function Pm(e){const t=e.trim().match(/^#?([0-9a-f]{3,8})$/i);if(!t)return null;let n=t[1];return(n.length===3||n.length===4)&&(n=n.split("").map(o=>o+o).join("")),n.length!==6&&n.length!==8?null:{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:n.length===8?parseInt(n.slice(6,8),16)/255:1}}function Om(e){const t=e.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+)(?:,([0-9.]+))?\)$/i);return t?{r:Number(t[1]),g:Number(t[2]),b:Number(t[3]),a:t[4]!=null?Number(t[4]):1}:null}function Lm(e){const t=e.trim();return!t||t==="transparent"||t==="currentColor"||t==="inherit"?null:t.startsWith("#")?Pm(t):t.toLowerCase().startsWith("rgb")?Om(t):null}function $i({r:e,g:t,b:n,a:o}){const r=a=>bs(Math.round(a),0,255).toString(16).padStart(2,"0");if(o>=1)return`#${r(e)}${r(t)}${r(n)}`;const i=Math.round(o*1e3)/1e3;return`rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)}, ${i})`}function zm({r:e,g:t,b:n}){const o=r=>{const i=r/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)};return .2126*o(e)+.7152*o(t)+.0722*o(n)}function ki({r:e,g:t,b:n,a:o}){const r=e/255,i=t/255,a=n/255,l=Math.max(r,i,a),s=Math.min(r,i,a),c=(l+s)/2,u=l-s;if(u===0)return{h:0,s:0,l:c,a:o};const h=c>.5?u/(2-l-s):u/(l+s);let d;return l===r?d=((i-a)/u+(i<a?6:0))/6:l===i?d=((a-r)/u+2)/6:d=((r-i)/u+4)/6,{h:d,s:h,l:c,a:o}}function Un({h:e,s:t,l:n,a:o}){if(t===0){const l=n*255;return{r:l,g:l,b:l,a:o}}const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=l=>{let s=l;return s<0&&(s+=1),s>1&&(s-=1),s<1/6?i+(r-i)*6*s:s<1/2?r:s<2/3?i+(r-i)*(2/3-s)*6:i};return{r:a(e+1/3)*255,g:a(e)*255,b:a(e-1/3)*255,a:o}}function jm(e){if(xa(e))return null;const t=Lm(e);if(!t)return null;const n=ki(t),o=n.s<.12,r=n.l>.9||n.l<.12;if(o||r){const u=.07+(1-n.l)*(.93-.07),h=o?n.s:Math.min(n.s,.08);return $i(Un({...n,s:h,l:u}))}const i=bs(Math.max(n.l,.62-n.l*.25),.45,.82);let a=Un({...n,l:i});const l=.22;let s=0;for(;zm(a)<l&&s<24;){const c=Math.min(.92,ki(a).l+.03);if(c>=.92){a=Un({...n,l:c});break}a=Un({...n,l:c}),s+=1}return $i(a)}function Bm(){const e=new Map;return{token(t){if(t==null)return;const n=typeof t=="string"?t.trim():"";if(!n)return t??void 0;const o=e.get(n);if(o)return`var(${o.name}, ${n})`;const r=jm(n);if(!r)return t;const i=`${Mm}${e.size+1}`;return e.set(n,{name:i,light:n,dark:r}),`var(${i}, ${n})`},css(t){if(t==="light"||e.size===0)return"";const n=[...e.values()],o=n.map(l=>`${l.name}:${l.light};`).join(""),r=n.map(l=>`${l.name}:light-dark(${l.light},${l.dark});`).join(""),i=t==="dark"?"dark":"light dark";return`${`[${wa}="${t}"]`}{color-scheme:${i};${o}${r}}`},size(){return e.size}}}function Dm(e){return`[${wa}="${e}"]{color-scheme:light dark;}`}const $a=U.createContext(null),Fm=$a.Provider;function j(e){const t=U.useContext($a);return t?t.token(e):e??void 0}const Hm=/style="([^"]*)"/gi,Gm=/(^|;)\s*(color|background-color|background|border-color)\s*:\s*([^;!]+)(!important)?/gi,Um=/<font([^>]*?)\scolor=["']([^"']+)["']([^>]*)>/gi;function Wm(e,t){if(!t||!e)return e;let n=e.replace(Hm,(o,r)=>{const i=r.replace(Gm,(a,l,s,c,u)=>{const h=c.trim(),d=t.token(h);return!d||d===h?a:`${l}${s}:${d}${u??""}`});return i===r?o:`style="${i}"`});return n=n.replace(Um,(o,r,i,a)=>{const l=t.token(i.trim());return!l||l===i.trim()?o:`<font${r}${a} style="color:${l}">`}),n}function Zm(e){const t=U.useContext($a);return Wm(e,t)}const Vm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},qm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Ym=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Km=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Jm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Xm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Qm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ep=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},tp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},np=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},op=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},rp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ap=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ip=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},lp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},up=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:g.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function dp(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return g.jsx(Vm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return g.jsx(Jm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return g.jsx(np,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return g.jsx(Xm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return g.jsx(qm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return g.jsx(Ym,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return g.jsx(Km,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return g.jsx(Qm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return g.jsx(ep,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return g.jsx(tp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return g.jsx(ap,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return g.jsx(lp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return g.jsx(cp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return g.jsx(op,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return g.jsx(ip,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return g.jsx(sp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return g.jsx(up,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return g.jsx(rp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const hp=4,Ct=e=>({[e==="left"?"marginRight":"marginLeft"]:hp,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"}),fp=(e,t,n)=>({width:t,height:t,display:"block",backgroundColor:n,WebkitMaskImage:`url("${e}")`,maskImage:`url("${e}")`,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskSize:"contain",maskSize:"contain"}),Wn=e=>({display:"inline-flex",alignItems:"center",justifyContent:e}),In="data-ahd-var",xs=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,mp=/[&<>"']/g,pp={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qt(e){return e.replace(mp,t=>pp[t])}function vs(e){return!e||e.indexOf("{{")===-1?e:e.replace(xs,(t,n,o,r)=>{if(n)return n;const i=Qt(r);return`<span ${In}="${i}">{{${r}}}</span>`})}function Ss(e){return!e||e.indexOf("{{")===-1?e:Qt(e).replace(xs,(t,n,o,r)=>{if(n)return n;const i=Qt(r);return`<span ${In}="${i}">{{${r}}}</span>`})}const gp=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function bp(e,t){if(!e||e.indexOf("{{")===-1)return e;const n=typeof window<"u"?window.location.search:void 0;if(n===void 0)return e;const o=new URLSearchParams(n||"");return e.replace(gp,(r,i)=>{const a=o.get(i);return a!==null?encodeURIComponent(a):r})}function xp(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),o=e.querySelectorAll(`[${In}]`);for(let r=0;r<o.length;r++){const i=o[r],a=n.get(i.getAttribute(In)||"");a!==null&&(i.textContent=a)}}const wr="data-ahd-date",ws="data-ahd-date-format";function $r(e,t){const n=Qt(e),o=t??"",r=Qt(o),i=$s(o)||`{{${n}}}`;return`<span ${In}="${n}" ${wr}="${r}" ${ws}="relative">${Qt(i)}</span>`}function $s(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const o=864e5,r=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),i=Math.round((r(n)-r(t))/o);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const a=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function vp(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${wr}][${ws}="relative"]`);for(let o=0;o<n.length;o++){const r=n[o],i=r.getAttribute(wr)||"",a=$s(i,t);a&&(r.textContent=a)}}const Sp=N(["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 Oo(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 wp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),$p=$().regex(/^rgba?\([^\)]+\)$/i),kp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),_p=oe("transparent"),Mt=D([wp,$p,kp,_p]).nullable().optional(),Cp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ap=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),yp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ip=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Rp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Np=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Tp=A({color:Mt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable();function Ep(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function Mp(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Ep(t)}`}}const Pp=A({style:A({backgroundColor:Mt,fontSize:m().min(0).optional().nullable(),fontFamily:Sp,fontWeight:N(["bold","normal",...ga]).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),buttonTextAlign:N(["left","center","right"]).optional().nullable(),padding:Cp,margin:Ap}).optional().nullable(),props:A({buttonBackground:Mt,hoverBackground:Mt,hoverTextColor:Mt,borderRadius:Ip,borderWidth:yp,borderColor:Mt,boxShadow:Tp,buttonTextColor:Mt,fullWidth:O().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),size:N(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:N(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:N(["x-small","small","large","medium"]).optional().nullable(),text:$().optional().nullable(),url:$().optional().nullable(),action:N(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:O().optional().nullable(),customAction:$().optional().nullable(),actionPayload:on($(),yn()).optional().nullable(),iconEnabled:O().optional().nullable(),iconName:$().optional().nullable(),iconUrl:$().optional().nullable(),iconAlignment:N(["left","right"]).optional().nullable(),ariaLabel:$().optional().nullable(),goToStep:$().optional().nullable(),postMessageEvent:$().optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable(),responsive:Ge});function _i(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 _e={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",boxShadow:null,buttonTextColor:"#000000",buttonBackground:"#ffffff",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:""};function Op({style:e,props:t}){const o=`bh-${U.useId().replace(/:/g,"")}`,r=(t==null?void 0:t.text)??_e.text,i=typeof r=="string"&&r.indexOf("{{")!==-1,a=(Ee,tt)=>i?g.jsx("span",{style:Ee,"data-action":tt,dangerouslySetInnerHTML:{__html:Ss(r)}}):g.jsx("span",{style:Ee,"data-action":tt,children:r}),l=(t==null?void 0:t.url)??_e.url,s=bp(l),c=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,u=(t==null?void 0:t.fullWidth)??_e.fullWidth,h=(t==null?void 0:t.widthType)??_e.widthType,d=(t==null?void 0:t.width)??_e.width,f=(t==null?void 0:t.widthUnit)??_e.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,v=b??x,S=(t==null?void 0:t.widthTypeTablet)??h,k=(t==null?void 0:t.widthTypeMobile)??S,w=(t==null?void 0:t.size)??_e.size,C=(t==null?void 0:t.sizeTablet)??w,y=(t==null?void 0:t.sizeMobile)??C,_=h,I=d,R=(t==null?void 0:t.buttonTextColor)??_e.buttonTextColor,T=(t==null?void 0:t.buttonBackground)??_e.buttonBackground,P=j(R),M=j(T),z=(t==null?void 0:t.iconEnabled)??_e.iconEnabled,F=(t==null?void 0:t.iconName)??_e.iconName,H=(t==null?void 0:t.iconAlignment)??_e.iconAlignment,V=(t==null?void 0:t.iconUrl)??null,q=!!(z&&(V||F)),he=(t==null?void 0:t.ariaLabel)??null,ae=typeof r=="string"&&r.trim().length>0,pe=he&&he.trim().length>0?he:!ae&&z&&F?F:void 0,ee=(t==null?void 0:t.action)??_e.action,se=(t==null?void 0:t.openInNewTab)??_e.openInNewTab,Y=((t==null?void 0:t.customAction)??_e.customAction)||ee,de=(t==null?void 0:t.actionPayload)??_e.actionPayload,ve=(t==null?void 0:t.goToStep)??_e.goToStep,K=(t==null?void 0:t.postMessageEvent)??_e.postMessageEvent,L=de||(Y==="goToStep"?{goToStep:ve||""}:null)||(Y==="postMessageEvent"?{postMessageEvent:K||""}:null),B=L?JSON.stringify(L):void 0,Z=(t==null?void 0:t.borderRadius)??_e.borderRadius,W=(t==null?void 0:t.borderWidth)??_e.borderWidth,X=(t==null?void 0:t.borderColor)??_e.borderColor,ge=j(X),Ue=(t==null?void 0:t.boxShadow)??_e.boxShadow,ce=Mp(Ue),Te=(t==null?void 0:t.hoverBackground)??null,ue=(t==null?void 0:t.hoverTextColor)??null,Ie=_i(w),We=Ee=>typeof Ee=="number"?`${Ee}px`:`${Ee.topLeft}px ${Ee.topRight}px ${Ee.bottomRight}px ${Ee.bottomLeft}px`,Re=(Ee,tt)=>{if(typeof Ee=="number")return`${Math.max(0,Ee-tt)}px`;const No=Math.max(0,(Ee.topLeft||0)-tt),To=Math.max(0,(Ee.topRight||0)-tt),Gt=Math.max(0,(Ee.bottomRight||0)-tt),Ut=Math.max(0,(Ee.bottomLeft||0)-tt);return`${No}px ${To}px ${Gt}px ${Ut}px`},Be=X&&(X.includes("linear-gradient")||X.includes("radial-gradient")||X.includes("repeating-linear-gradient")),De=W&&((W.top??0)>0||(W.right??0)>0||(W.bottom??0)>0||(W.left??0)>0),Q={top:(W==null?void 0:W.top)??0,right:(W==null?void 0:W.right)??0,bottom:(W==null?void 0:W.bottom)??0,left:(W==null?void 0:W.left)??0},Ne=(()=>{if(u)return"100%";switch(_){case"fill":return"100%";case"fixed":return`${I}${f}`;case"fit":default:return"auto"}})(),Fe=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",Le=Fe==="center"?"center":Fe==="right"?"flex-end":"flex-start",kt=()=>!X||X==="transparent"||!De?{border:"none"}:Be?{borderTop:`${Q.top}px solid transparent`,borderRight:`${Q.right}px solid transparent`,borderBottom:`${Q.bottom}px solid transparent`,borderLeft:`${Q.left}px solid transparent`,borderImage:`${ge} `,borderRadius:"0px"}:{borderTop:`${Q.top}px solid ${ge}`,borderRight:`${Q.right}px solid ${ge}`,borderBottom:`${Q.bottom}px solid ${ge}`,borderLeft:`${Q.left}px solid ${ge}`},gt=T&&(T.includes("linear-gradient")||T.includes("radial-gradient")||T.includes("repeating-linear-gradient")),at=R&&(R.includes("linear-gradient")||R.includes("radial-gradient")||R.includes("repeating-linear-gradient")),Ze=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),_t={backgroundColor:Ze?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:Ze?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Rp(e==null?void 0:e.padding),margin:Np(e==null?void 0:e.margin)},it=kt(),lt=at?{backgroundImage:P,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:P||void 0},st=gt?void 0:M,qe=gt?M:void 0,J=(e==null?void 0:e.fontSize)??16,Se=`${J}px`,Ce=()=>V?g.jsx("span",{"aria-hidden":"true",style:fp(V,J,at?"currentColor":P||"currentColor")}):dp(F,{strokeColor:at?void 0:P,fontSize:J}),bt={fontSize:Se,fontFamily:Oo(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??$n.REGULAR,backgroundColor:st,backgroundImage:qe,borderRadius:Be?"0px":We(Z),...it,...Be&&De?{}:ce,display:Ne==="100%"?"block":"inline-block",width:Ne,padding:`${Ie[0]}px ${Ie[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:Le,lineHeight:"normal"},Ft=Be&&De?g.jsx("div",{style:{display:Ne==="100%"?"block":"inline-block",padding:`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`,background:ge,borderRadius:We(Z),width:Ne,boxSizing:"border-box",...ce},children:g.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:Re(Z,Math.max(Q.top,Q.right,Q.bottom,Q.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??$n.REGULAR,fontFamily:Oo(e==null?void 0:e.fontFamily),backgroundImage:qe,backgroundColor:st,textAlign:Fe,textDecoration:"none",fontSize:Se,padding:`${Ie[0]}px ${Ie[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Wn(Le)},"data-action":Y,"data-action-payload":B,"data-goto-step":Y==="goToStep"&&ve?ve:void 0,"data-post-message-event":Y==="postMessageEvent"&&K?K:void 0,type:"button","aria-label":pe,children:[q&&H==="left"?g.jsx("span",{style:Ct("left"),"data-action":Y,children:Ce()}):null,a({...lt,pointerEvents:"none"},Y),q&&H==="right"?g.jsx("span",{style:Ct("right"),"data-action":Y,children:Ce()}):null]})}):g.jsxs("button",{style:{cursor:"pointer",...it,...ce,borderRadius:We(Z),width:Ne,fontWeight:(e==null?void 0:e.fontWeight)??$n.REGULAR,fontFamily:Oo(e==null?void 0:e.fontFamily),backgroundColor:st,backgroundImage:qe,textAlign:Fe,textDecoration:"none",fontSize:Se,padding:`${Ie[0]}px ${Ie[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Wn(Le)},"data-action":Y,"data-action-payload":B,"data-goto-step":Y==="goToStep"&&ve?ve:void 0,"data-post-message-event":Y==="postMessageEvent"&&K?K:void 0,type:"button","aria-label":pe,children:[q&&H==="left"?g.jsx("span",{style:Ct("left"),"data-action":Y,children:Ce()}):null,a({...lt,pointerEvents:"none"},Y),q&&H==="right"?g.jsx("span",{style:Ct("right"),"data-action":Y,children:Ce()}):null]}),Ht=!!Te&&(Te.includes("linear-gradient")||Te.includes("radial-gradient")||Te.includes("repeating-linear-gradient")),ne=!!ue&&(ue.includes("linear-gradient")||ue.includes("radial-gradient")||ue.includes("repeating-linear-gradient")),le=[];Te&&(Ht?le.push(`background-image: ${Te} !important; background-color: transparent !important;`):le.push(`background-color: ${Te} !important; background-image: none !important;`)),ue&&!ne&&le.push(`color: ${ue} !important;`);const Ve=ue?ne?`background-image: ${ue} !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; display: inline-block;`:`background-image: none !important; color: ${ue} !important; -webkit-text-fill-color: ${ue} !important;`:"",et=le.length>0||Ve?`#${o} a:hover, #${o} button:hover { ${le.join(" ")} transition: background-color 150ms ease, background-image 150ms ease, color 150ms ease; } #${o} a:hover span, #${o} button:hover span { ${Ve} }`:null,xt=(Ee,tt,No,To)=>{const Gt=[],Ut=u||tt==="fill"?"100%":tt==="fixed"?`${No}${f}`:"auto";Gt.push(`width: ${Ut} !important;`,"max-width: 100% !important;"),Gt.push(`display: ${Ut==="100%"?"block":"inline-block"} !important;`);const[Ua,Nc]=_i(To);return Gt.push(`padding: ${Ua}px ${Nc}px !important;`),`${Ee} { #${o} a, #${o} button { ${Gt.join(" ")} } #${o} > div { width: ${Ut} !important; max-width: 100% !important; display: ${Ut==="100%"?"block":"inline-block"} !important; } }`},hn=S!==h||C!==w||S==="fixed"&&x!==d,Ga=k!==h||y!==w||k==="fixed"&&v!==d,Bn=hn||Ga?[hn?xt(ft,S,x,C):"",Ga?xt(je,k,v,y):""].filter(Boolean).join(`
|
|
65
|
+
`):null;if(ee!=="link")return g.jsxs("div",{id:o,className:"button-block",style:_t,children:[et&&g.jsx("style",{children:et}),Bn&&g.jsx("style",{children:Bn}),Ft]});const Rc=Be&&De?g.jsx("div",{style:{display:Ne==="100%"?"block":"inline-block",padding:`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`,background:ge,borderRadius:We(Z),width:Ne,boxSizing:"border-box",...ce},children:g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...bt,border:"none",borderRadius:Re(Z,Math.max(Q.top,Q.right,Q.bottom,Q.left)),width:"100%",...Wn(Le)},target:se?"_blank":void 0,rel:se?"noopener noreferrer":void 0,"aria-label":pe,children:[q&&H==="left"?g.jsx("span",{style:Ct("left"),children:Ce()}):null,a({...lt,pointerEvents:"none"}),q&&H==="right"?g.jsx("span",{style:Ct("right"),children:Ce()}):null]})}):g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...bt,borderRadius:We(Z),...Wn(Le)},target:se?"_blank":void 0,rel:se?"noopener noreferrer":void 0,"aria-label":pe,children:[q&&H==="left"?g.jsx("span",{style:Ct("left"),children:Ce()}):null,a({...lt,pointerEvents:"none"}),q&&H==="right"?g.jsx("span",{style:Ct("right"),children:Ce()}):null]});return g.jsxs("div",{id:o,className:"button-block",style:_t,children:[et&&g.jsx("style",{children:et}),Bn&&g.jsx("style",{children:Bn}),Rc]})}const Lp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),zp=$().regex(/^rgba?\([^\)]+\)$/i),jp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Bp=oe("transparent"),Ci=D([Lp,zp,jp,Bp]).nullable().optional(),Dp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Fp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Hp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Gp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Up=A({style:A({backgroundColor:Ci,padding:Dp,margin:Fp}).optional().nullable(),props:A({lineColor:Ci,lineHeight:m().optional().nullable()}).optional().nullable()}),Ai={lineHeight:1,lineColor:"#333333"};function Wp({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??Ai.lineHeight,o=j((t==null?void 0:t.lineColor)??Ai.lineColor),r={padding:Hp(e==null?void 0:e.padding),margin:Gp(e==null?void 0:e.margin),backgroundColor:j(e==null?void 0:e.backgroundColor),"--ahd-divider-thickness":`${n}px`};return g.jsx("div",{className:"divider-block",style:r,children:g.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:o,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const Zp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Vp=$().regex(/^rgba?\([^\)]+\)$/i),qp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Yp=oe("transparent"),Lo=D([Zp,Vp,qp,Yp]).nullable().optional(),Kp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Jp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Xp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Qp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,eg=N(["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 tg(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 ng=A({props:A({text:$().optional().nullable(),level:N(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:N(["text","link"]).optional().nullable(),url:$().optional().nullable(),openInNewTab:O().optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable(),style:A({color:Lo,textColor:Lo,backgroundColor:Lo,fontFamily:eg,fontSize:m().optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontWeight:N(["bold","normal",...ga]).optional().nullable(),fontStyle:N(["italic","normal"]).optional().nullable(),textDecoration:N(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),padding:Kp,margin:Jp}).optional().nullable(),responsive:Ge}),fn={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function og({props:e,style:t}){const n=(e==null?void 0:e.level)??fn.level,o=(e==null?void 0:e.text)??fn.text,r=typeof o=="string"&&o.indexOf("{{")!==-1,i=(e==null?void 0:e.linkType)??fn.linkType,a=(e==null?void 0:e.url)??fn.url,l=(e==null?void 0:e.openInNewTab)??fn.openInNewTab,s=i==="link"&&a,c=(t==null?void 0:t.fontSize)??rg(n),u=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),h=j(u),d=u&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(u),f=(t==null?void 0:t.textDecoration)??"none",p=d&&(f==="underline"||f==="underline line-through"),b=d&&(f==="line-through"||f==="underline line-through"),x=t==null?void 0:t.lineClamp,v=x&&x>0?{display:"-webkit-box",WebkitLineClamp:x,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},S={fontWeight:(t==null?void 0:t.fontWeight)??$n.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:d?"none":f,margin:0,fontFamily:tg(t==null?void 0:t.fontFamily),fontSize:c,...v},k=!!(x&&x>0),w=d?{lineHeight:"normal ",backgroundImage:h,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...k?{}:{display:"inline-block"},...p?{paddingBottom:"0.08em"}:{}}:{color:h??void 0},C={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:h??void 0,pointerEvents:"none"},y={...C,bottom:0},_={...C,top:"50%",transform:"translateY(-50%)"},I=(t==null?void 0:t.backgroundColor)??void 0,R=j(I),T=typeof I=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(I),P=t==null?void 0:t.margin,M=((P==null?void 0:P.left)??0)+((P==null?void 0:P.right)??0),z={padding:Xp(t==null?void 0:t.padding),margin:Qp(t==null?void 0:t.margin),display:"block",width:M>0?`calc(100% - ${M}px)`:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...T?{backgroundImage:R,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:R}},F=n,H=g.jsx(F,{className:"heading-block",style:S,children:g.jsxs("span",{style:w,children:[r?g.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:Ss(o)}}):o,p?g.jsx("span",{style:y}):null,b?g.jsx("span",{style:_}):null]})});return g.jsx("div",{className:"heading-block-wrapper",style:z,children:s?g.jsx("a",{href:a,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!d&&h?h:void 0},children:H}):H})}function rg(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 19;case"h4":return 16;case"h5":return 13;case"h6":return 11}}var ks="comm",_s="rule",Cs="decl",ag="@import",ig="@namespace",lg="@keyframes",sg="@layer",cg=Math.abs,kn=String.fromCharCode;function As(e){return e.trim()}function kr(e,t,n){return e.replace(t,n)}function en(e,t){return e.charCodeAt(t)|0}function rn(e,t,n){return e.slice(t,n)}function ht(e){return e.length}function ug(e){return e.length}function Zn(e,t){return t.push(e),e}var yo=1,an=1,ys=0,Ye=0,ye=0,sn="";function ka(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:yo,column:an,length:a,return:"",siblings:l}}function dg(){return ye}function hg(){return ye=Ye>0?en(sn,--Ye):0,an--,ye===10&&(an=1,yo--),ye}function rt(){return ye=Ye<ys?en(sn,Ye++):0,an++,ye===10&&(an=1,yo++),ye}function It(){return en(sn,Ye)}function eo(){return Ye}function Io(e,t){return rn(sn,e,t)}function Rn(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 fg(e){return yo=an=1,ys=ht(sn=e),Ye=0,[]}function mg(e){return sn="",e}function zo(e){return As(Io(Ye-1,_r(e===91?e+2:e===40?e+1:e)))}function pg(e){for(;(ye=It())&&ye<33;)rt();return Rn(e)>2||Rn(ye)>3?"":" "}function gg(e,t){for(;--t&&rt()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return Io(e,eo()+(t<6&&It()==32&&rt()==32))}function _r(e){for(;rt();)switch(ye){case e:return Ye;case 34:case 39:e!==34&&e!==39&&_r(ye);break;case 40:e===41&&_r(e);break;case 92:rt();break}return Ye}function bg(e,t){for(;rt()&&e+ye!==57;)if(e+ye===84&&It()===47)break;return"/*"+Io(t,Ye-1)+"*"+kn(e===47?e:rt())}function xg(e){for(;!Rn(It());)rt();return Io(e,Ye)}function vg(e){return mg(to("",null,null,null,[""],e=fg(e),0,[0],e))}function to(e,t,n,o,r,i,a,l,s){for(var c=0,u=0,h=a,d=0,f=0,p=0,b=1,x=1,v=1,S=0,k=0,w="",C=r,y=i,_=o,I=w;x;)switch(p=k,k=rt()){case 40:p!=108&&en(I,h-1)==58?(S++,I+="("):I+=zo(k);break;case 41:S--,I+=")";break;case 34:case 39:case 91:I+=zo(k);break;case 9:case 10:case 13:case 32:if(S>0){I+=kn(k);break}I+=pg(p);break;case 92:I+=gg(eo()-1,7);continue;case 47:switch(It()){case 42:case 47:Zn(Sg(bg(rt(),eo()),t,n,s),s),(Rn(p||1)==5||Rn(It()||1)==5)&&ht(I)&&rn(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[c++]=ht(I)*v;case 125*b:case 59:case 0:if(S>0&&k){I+=kn(k);break}switch(k){case 0:case 125:x=0;case 59+u:v==-1&&(I=kr(I,/\f/g,"")),f>0&&(ht(I)-h||b===0)&&Zn(f>32?Ii(I+";",o,n,h-1,s):Ii(kr(I," ","")+";",o,n,h-2,s),s);break;case 59:I+=";";default:if(Zn(_=yi(I,t,n,c,u,r,l,w,C=[],y=[],h,i),i),k===123)if(u===0)to(I,t,_,_,C,i,h,l,y);else{switch(d){case 99:if(en(I,3)===110)break;case 108:if(en(I,2)===97)break;default:u=0;case 100:case 109:case 115:}u?to(e,_,_,o&&Zn(yi(e,_,_,0,0,r,l,w,r,C=[],h,y),y),r,y,h,l,o?C:y):to(I,_,_,_,[""],y,0,l,y)}}c=u=f=0,b=v=1,w=I="",h=a;break;case 58:h=1+ht(I),f=p;default:if(b<1){if(k==123)--b;else if(k==125&&b++==0&&hg()==125)continue}switch(I+=kn(k),k*b){case 38:v=u>0?1:(I+="\f",-1);break;case 44:if(S>0)break;l[c++]=(ht(I)-1)*v,v=1;break;case 64:It()===45&&(I+=zo(rt())),d=It(),u=h=ht(w=I+=xg(eo())),k++;break;case 45:p===45&&ht(I)==2&&(b=0)}}return i}function yi(e,t,n,o,r,i,a,l,s,c,u,h){for(var d=r-1,f=r===0?i:[""],p=ug(f),b=0,x=0,v=0;b<o;++b)for(var S=0,k=rn(e,d+1,d=cg(x=a[b])),w=e;S<p;++S)(w=As(x>0?f[S]+" "+k:kr(k,/&\f/g,f[S])))&&(s[v++]=w);return ka(e,t,n,r===0?_s:l,s,c,u,h)}function Sg(e,t,n,o){return ka(e,t,n,ks,kn(dg()),rn(e,2,-2),0,o)}function Ii(e,t,n,o,r){return ka(e,t,n,Cs,rn(e,0,o),rn(e,o+1,-1),o,r)}function Cr(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function wg(e,t,n,o){switch(e.type){case sg:if(e.children.length)break;case ag:case ig:case Cs:return e.return=e.return||e.value;case ks:return"";case lg:return e.return=e.value+"{"+Cr(e.children,o)+"}";case _s:if(!ht(e.value=e.props.join(",")))return""}return ht(n=Cr(e.children,o))?e.return=e.value+"{"+n+"}":""}const $g=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),kg=$().regex(/^rgba?\([^\)]+\)$/i),_g=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Cg=oe("transparent"),Ri=D([$g,kg,_g,Cg]).nullable().optional(),Ag=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),yg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ig=(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,Ng=N(["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 Tg(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 Eg=A({style:A({color:Ri,backgroundColor:Ri,fontFamily:Ng,fontSize:m().min(0).optional().nullable(),textAlign:N(["left","right","center"]).optional().nullable(),padding:Ag,margin:yg}).optional().nullable(),props:A({contents:$().optional().nullable()}).optional().nullable()}),Mg=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Pg(e,t){let n="";const o=e.replace(Mg,(i,a)=>(n+=a,""));if(!n.trim())return{markup:o,css:""};const r=Cr(vg(`[${t}]{${n}}`),wg);return{markup:o,css:r}}function Og({style:e,props:t}){const n=t==null?void 0:t.contents,[o,r]=U.useState(!1),a=`data-html-scope-${U.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=U.useMemo(()=>n?Pg(n,a):{markup:"",css:""},[n,a]),c={color:j(e==null?void 0:e.color),backgroundColor:j(e==null?void 0:e.backgroundColor),fontFamily:Tg(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:Ig(e==null?void 0:e.padding),margin:Rg(e==null?void 0:e.margin)},u=U.useRef(null);U.useEffect(()=>{const b=u.current;if(!b)return;b.querySelectorAll("iframe").forEach(v=>{try{v.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const h=b=>{o||r(!0)},d=()=>{r(!1)},f=`[${a}] pre,[${a}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return g.jsx("div",{ref:u,className:"html-block",style:c,children:g.jsx("style",{dangerouslySetInnerHTML:{__html:f}})});const p=`<style>${f}${s}</style>${vs(l)}`;return g.jsx("div",{ref:u,className:"html-block",style:c,onClick:h,onBlur:d,tabIndex:0,[a]:"",dangerouslySetInnerHTML:{__html:p}})}const Lg=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),zg=$().regex(/^rgba?\([^\)]+\)$/i),jg=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Bg=oe("transparent"),Dg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Fg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Hg=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),no=D([Lg,zg,jg,Bg]).nullable().optional(),Gg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ug=A({color:no,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable();function Wg(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function Zg(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Wg(t)}`}}const Vg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,qg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Yg(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 Kg(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)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const Jg=A({style:A({padding:Dg,margin:Fg,backgroundColor:no.default(null),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:m().optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthUnitTablet:N(["px","%"]).optional().nullable(),widthUnitMobile:N(["px","%"]).optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),height:m().optional().nullable(),heightTablet:m().positive().optional().nullable(),heightMobile:m().positive().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:O().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),borderRadius:Hg,borderColor:no.default(null),borderWidth:Gg,boxShadow:Ug,iconName:$().optional().nullable(),iconFillColor:no.default(null),rotation:m().min(0).max(360).optional().nullable(),rotationTablet:m().min(0).max(360).optional().nullable(),rotationMobile:m().min(0).max(360).optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:A({enabled:O(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:N(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()}),Me={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let Xg=0;function Qg({style:e,props:t}){const n=U.useMemo(()=>`ahd-img-${++Xg}`,[]),o=ba(),r=(e==null?void 0:e.textAlign)??void 0,i=r==="center"?"center":r==="right"?"flex-end":"flex-start",a=e==null?void 0:e.margin,l=((a==null?void 0:a.left)??0)+((a==null?void 0:a.right)??0),s={padding:Vg(e==null?void 0:e.padding),margin:qg(e==null?void 0:e.margin),...Yg(j(e==null?void 0:e.backgroundColor)),display:"flex",justifyContent:i,width:l>0?`max(0px, calc(100% - ${l}px))`:"100%",boxSizing:"border-box"},c=(t==null?void 0:t.showLink)??(t!=null&&t.linkHref?!0:Me.showLink),u=(t==null?void 0:t.linkHref)??Me.linkHref,h=c&&u?u:null,d=(t==null?void 0:t.linkTarget)??Me.linkTarget,f=(t==null?void 0:t.widthType)??Me.widthType,p=(t==null?void 0:t.widthTypeTablet)??f,b=(t==null?void 0:t.widthTypeMobile)??p,x=(t==null?void 0:t.width)??Me.width,v=(t==null?void 0:t.widthUnit)??Me.widthUnit,S=(t==null?void 0:t.widthUnitTablet)??v,k=(t==null?void 0:t.widthUnitMobile)??S,w=(t==null?void 0:t.widthTablet)??null,C=(t==null?void 0:t.widthMobile)??null,y=w??x,_=C??y,I=(t==null?void 0:t.height)??Me.height,R=(t==null?void 0:t.heightTablet)??null,T=(t==null?void 0:t.heightMobile)??null,P=R??I,M=T??P,z=I,F=(t==null?void 0:t.url)??Me.url,H=(t==null?void 0:t.urlTablet)??null,V=(t==null?void 0:t.urlMobile)??null,q=!h&&((t==null?void 0:t.decorative)??Me.decorative),he=q?"":(t==null?void 0:t.alt)??Me.alt,ae=q?{role:"presentation","aria-hidden":!0}:{},pe=(t==null?void 0:t.contentAlignment)??Me.contentAlignment,ee=(t==null?void 0:t.borderRadius)??Me.borderRadius,se=j((t==null?void 0:t.borderColor)??Me.borderColor),fe=(t==null?void 0:t.borderWidth)??Me.borderWidth,Y=(t==null?void 0:t.boxShadow)??Me.boxShadow,de=Zg(Y),ve=(t==null?void 0:t.rotation)??Me.rotation,K=(t==null?void 0:t.rotationTablet)??null,L=(t==null?void 0:t.rotationMobile)??null,B=K??ve,Z=L??B,W=J=>{const Se=J*Math.PI/180,Ce=J%180!==0?1/(Math.abs(Math.cos(Se))+Math.abs(Math.sin(Se))):1;return`rotate(${J}deg) scale(${Ce})`},X=ve,ge=X?{transform:W(X),transformOrigin:"center"}:{},ce=K!=null||L!=null?`
|
|
66
|
+
${ft} { .${n} img, .${n} > div { transform: ${W(B)} !important; transform-origin: center !important; } }
|
|
67
|
+
${je} { .${n} img, .${n} > div { transform: ${W(Z)} !important; transform-origin: center !important; } }
|
|
68
|
+
`.trim():null,Te=Kg(se,fe),ue=J=>typeof J=="number"?`${J}px`:`${J.topLeft}px ${J.topRight}px ${J.bottomRight}px ${J.bottomLeft}px`,Ie=(J,Se)=>{const Ce=Math.max((Se==null?void 0:Se.top)||0,(Se==null?void 0:Se.right)||0,(Se==null?void 0:Se.bottom)||0,(Se==null?void 0:Se.left)||0);if(typeof J=="number")return`${Math.max(0,J-Ce)}px`;const bt=Math.max(0,(J.topLeft||0)-Ce),Ft=Math.max(0,(J.topRight||0)-Ce),Ht=Math.max(0,(J.bottomRight||0)-Ce),ne=Math.max(0,(J.bottomLeft||0)-Ce);return`${bt}px ${Ft}px ${Ht}px ${ne}px`},Re=(()=>{switch(f){case"fill":return"100%";case"fixed":return x;case"fit":default:return}})(),Be=J=>J==="mobile"?b:J==="tablet"?p:f,De=J=>J==="mobile"?k:J==="tablet"?S:v,Q=J=>{const Se=Be(J);if(Se==="fill")return"100%";if(Se==="fit")return"auto";const Ce=J==="mobile"?_:J==="tablet"?y:x,bt=De(J);return`${Ce}${bt}`},ie=Q(o),Ne=De(o),Fe=typeof ie=="string"&&ie.endsWith("%")?{display:"block",width:"100%"}:{},Le=F,gt=(t==null?void 0:t.widthTypeTablet)!=null||(t==null?void 0:t.widthTypeMobile)!=null||f==="fixed"?`
|
|
69
|
+
${ft} { .${n} img { width: ${Q("tablet")} !important; max-width: 100% !important; } }
|
|
70
|
+
${je} { .${n} img { width: ${Q("mobile")} !important; max-width: 100% !important; } }
|
|
71
|
+
`.trim():null,at=R!=null||T!=null?`
|
|
72
|
+
${ft} { .${n} img { height: ${P?`${P}px`:"auto"} !important; } }
|
|
73
|
+
${je} { .${n} img { height: ${M?`${M}px`:"auto"} !important; } }
|
|
74
|
+
`.trim():null,Ze=(t==null?void 0:t.hoverEffect)??Me.hoverEffect,_t=Ze!=null&&Ze.enabled?`
|
|
75
|
+
.${n} picture { display: inline-block; transition: transform ${Ze.duration??500}ms ${Ze.easing??"ease-in-out"}; }
|
|
76
|
+
.${n}:hover picture { transform: scale(${Ze.scale??1.05}); }
|
|
77
|
+
`.trim():null,it=[gt,at,ce,_t].filter(Boolean).join(`
|
|
78
|
+
`)||null,dn=se&&(se.includes("linear-gradient")||se.includes("radial-gradient")||se.includes("repeating-linear-gradient")),lt=(V||H)&&g.jsxs(g.Fragment,{children:[V&&g.jsx("source",{media:je.replace("@media ",""),srcSet:V}),(H??V)&&g.jsx("source",{media:ft.replace("@media ",""),srcSet:H??V??F})]}),st=g.jsxs("picture",{style:Fe,children:[lt,g.jsx("img",{alt:he,...ae,src:Le,width:typeof Re=="number"&&Ne==="px"?Re:void 0,height:z!==null?z:void 0,style:{width:ie??(Re==="100%"?"100%":typeof Re=="number"?`${Re}${Ne}`:"auto"),height:z?`${z}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:pe,display:f==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:ee?ue(ee):void 0}})]}),qe=dn?g.jsx("div",{style:{borderRadius:ee?ue(ee):void 0,...Te,...de,...ge},children:g.jsxs("picture",{children:[lt,g.jsx("img",{alt:he,...ae,src:Le,width:typeof Re=="number"&&Ne==="px"?Re:void 0,height:z!==null?z:void 0,style:{width:"100%",height:z?`${z}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:pe,display:"block",maxWidth:ie??(typeof Re=="number"?`${Re}${Ne}`:"auto"),boxSizing:"border-box",borderRadius:ee?Ie(ee,fe):void 0}})]})}):se?g.jsx("div",{style:{borderRadius:ee?ue(ee):void 0,...Te,...de,...ge},children:st}):de.boxShadow?g.jsx("div",{style:{borderRadius:ee?ue(ee):void 0,...de,...ge},children:st}):U.cloneElement(st,{children:U.Children.map(st.props.children,J=>(J==null?void 0:J.type)==="img"?U.cloneElement(J,{style:{...J.props.style,...ge}}):J)});return h?g.jsxs("div",{className:`image-block ${n}`,style:s,children:[it&&g.jsx("style",{dangerouslySetInnerHTML:{__html:it}}),g.jsx("a",{href:h,style:{textDecoration:"none"},target:d,rel:d==="_blank"?"noopener noreferrer":void 0,children:qe})]}):g.jsxs("div",{className:`image-block ${n}`,style:s,children:[it&&g.jsx("style",{dangerouslySetInnerHTML:{__html:it}}),qe]})}const eb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),tb=$().regex(/^rgba?\([^\)]+\)$/i),nb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ob=oe("transparent"),qt=D([eb,tb,nb,ob]).nullable().optional(),rb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ab=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ib=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),lb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),sb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,cb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ub(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 db(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}}const jo=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,hb=A({color:qt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable();function fb(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function mb(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${fb(t)}`}}const pb=A({style:A({padding:rb,margin:ab,backgroundColor:qt.default(null),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:O().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),width:m().positive().optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),borderRadius:ib,borderColor:qt.default(null),borderWidth:lb,boxShadow:hb,iconName:$().optional().nullable(),iconNameTablet:$().optional().nullable(),iconNameMobile:$().optional().nullable(),iconFillColor:qt.default(null),iconFillColorTablet:qt.default(null),iconFillColorMobile:qt.default(null),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),nt={url:"",alt:"Logo",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let gb=0;function bb({style:e,props:t}){const n=(t==null?void 0:t.url)??nt.url,o=(t==null?void 0:t.urlTablet)??null,r=(t==null?void 0:t.urlMobile)??null,i=(t==null?void 0:t.showLink)??nt.showLink,a=(t==null?void 0:t.linkHref)??nt.linkHref,l=i&&a?a:null,s=(t==null?void 0:t.linkTarget)??nt.linkTarget,c=!l&&((t==null?void 0:t.decorative)??nt.decorative),u=c?"":(t==null?void 0:t.alt)??nt.alt,h=c?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??nt.width,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??nt.borderRadius,x=j((t==null?void 0:t.borderColor)??nt.borderColor),v=(t==null?void 0:t.borderWidth)??nt.borderWidth,S=(t==null?void 0:t.boxShadow)??nt.boxShadow,k=mb(S),w=f??d,C=p??w,y=d,_=n,I=`ahd-logo-${++gb}`,R=`
|
|
79
|
+
${ft} { .${I} img { width: ${w}px !important; max-width: 100% !important; } }
|
|
80
|
+
${je} { .${I} img { width: ${C}px !important; max-width: 100% !important; } }
|
|
81
|
+
`.trim(),T={padding:sb(e==null?void 0:e.padding),margin:cb(e==null?void 0:e.margin),...ub(j(e==null?void 0:e.backgroundColor)),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},P={width:`${y}px`,height:"auto",maxWidth:"100%",display:"inline-block",verticalAlign:"top",boxSizing:"border-box",border:"none",outline:"none",textDecoration:"none",borderRadius:b?jo(b):void 0},M=g.jsxs("picture",{children:[r&&g.jsx("source",{media:je.replace("@media ",""),srcSet:r}),o&&g.jsx("source",{media:ft.replace("@media ",""),srcSet:o}),g.jsx("img",{alt:u,...h,src:_,width:y,style:P})]}),z=x&&x!=="transparent"?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?jo(b):void 0,...db(x,v),...k},children:M}):k.boxShadow?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?jo(b):void 0,...k},children:M}):M;return l?g.jsxs("div",{className:`logo-block ${I}`,style:T,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),g.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":c?"Logo":u||"Logo",children:z})]}):g.jsxs("div",{className:`logo-block ${I}`,style:T,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),z]})}const xb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),vb=$().regex(/^rgba?\([^\)]+\)$/i),Sb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),wb=oe("transparent"),$b=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),kb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),_b=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Cb=D([xb,vb,Sb,wb]).nullable().optional(),Ab=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),yb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ib=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Rb(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 Nb(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)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const Tb=A({style:A({padding:$b,margin:kb,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:D([m(),$()]).optional().nullable(),height:D([m(),$()]).optional().nullable(),widthTablet:D([m(),$()]).optional().nullable(),widthMobile:D([m(),$()]).optional().nullable(),heightTablet:D([m(),$()]).optional().nullable(),heightMobile:D([m(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),name:$().optional().nullable(),borderRadius:_b,borderColor:Cb.default(null),borderWidth:Ab}).optional().nullable()});function Eb(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function Mb(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 Pb=0;function Ob({style:e,props:t}){const n=`ahd-video-${++Pb}`,o=(e==null?void 0:e.textAlign)??"left",r={padding:yb(e==null?void 0:e.padding),margin:Ib(e==null?void 0:e.margin),...Rb(j(e==null?void 0:e.backgroundColor)),display:"flex",justifyContent:Eb(o),textAlign:o},i=(t==null?void 0:t.width)??"100%",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=l??i,u=s??i,h=(t==null?void 0:t.heightTablet)===null?"auto":(t==null?void 0:t.heightTablet)??a,d=(t==null?void 0:t.heightMobile)===null?"auto":(t==null?void 0:t.heightMobile)??a,f=i,p=a,b=M=>M==null?void 0:typeof M=="number"?`${M}px`:M,x=`
|
|
82
|
+
${Bt} { .${n} video, .${n} iframe { ${b(c)?`width: ${b(c)} !important;`:""} ${b(h)?`height: ${b(h)} !important;`:""} max-width: 100% !important; } }
|
|
83
|
+
${je} { .${n} video, .${n} iframe { ${b(u)?`width: ${b(u)} !important;`:""} ${b(d)?`height: ${b(d)} !important;`:""} max-width: 100% !important; } }
|
|
84
|
+
`.trim(),v=(t==null?void 0:t.linkHref)??null,S=(t==null?void 0:t.borderRadius)??0,k=M=>typeof M=="number"?`${M}px`:`${M.topLeft}px ${M.topRight}px ${M.bottomRight}px ${M.bottomLeft}px`,w=(M,z)=>{const F=Math.max((z==null?void 0:z.top)||0,(z==null?void 0:z.right)||0,(z==null?void 0:z.bottom)||0,(z==null?void 0:z.left)||0);if(typeof M=="number")return`${Math.max(0,M-F)}px`;const H=Math.max(0,(M.topLeft||0)-F),V=Math.max(0,(M.topRight||0)-F),q=Math.max(0,(M.bottomRight||0)-F),he=Math.max(0,(M.bottomLeft||0)-F);return`${H}px ${V}px ${q}px ${he}px`},C=j((t==null?void 0:t.borderColor)??null),y=(t==null?void 0:t.borderWidth)??null,_=Nb(C,y),I=C&&(C.includes("linear-gradient")||C.includes("radial-gradient")||C.includes("repeating-linear-gradient")),R=Mb(t==null?void 0:t.url),T=R?g.jsx("iframe",{width:f,height:p,src:R,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:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:k(S)}},R):g.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:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:k(S),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),P=I?g.jsx("div",{style:{borderRadius:S?k(S):void 0,..._},children:R?g.jsx("iframe",{width:f,height:p,src:R,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:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:w(S,y)}},R):g.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:w(S,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):C?g.jsx("div",{style:{borderRadius:S?k(S):void 0,..._},children:T}):T;return v?g.jsxs("div",{className:`video-block ${n}`,style:r,children:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:P})]}):g.jsxs("div",{className:`video-block ${n}`,style:r,children:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),P]})}var Lb=A({props:A({height:m().gte(0).optional().nullish()}).optional().nullable()}),zb={height:16};const pt=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Modern Sans", "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'}],jb={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]},Bb=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(jb).map(([e,t])=>`family=${Bb(e,t)}`).join("&")}`;const Is=pt.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Is.map(e=>e.css);const Db=e=>e.replace(/"/g,'\\"'),Fb=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(pt.filter(e=>e.key!=="inherit").map(e=>Fb(e.value)));const Ni=pt.find(e=>e.key==="INTER");Ni&&Ni.value;Is.map(e=>{const t=Db(e.css);return`
|
|
85
|
+
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
|
|
86
|
+
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
|
|
87
|
+
content: '${e.label}';
|
|
88
|
+
font-family: ${e.css};
|
|
89
|
+
}`}).join(`
|
|
90
|
+
`);const oo=[{label:"10",px:10},{label:"12",px:12},{label:"14",px:14},{label:"16",px:16},{label:"18",px:18},{label:"20",px:20},{label:"22",px:22},{label:"24",px:24},{label:"26",px:26},{label:"28",px:28},{label:"30",px:30},{label:"32",px:32},{label:"36",px:36},{label:"40",px:40},{label:"44",px:44},{label:"48",px:48},{label:"52",px:52},{label:"56",px:56},{label:"60",px:60},{label:"64",px:64},{label:"72",px:72},{label:"76",px:76}],Hb={P:"Normal",DIV:"Normal",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",BLOCKQUOTE:"Quote",PRE:"Code"};new Set(Object.keys(Hb));const Rs="@container ahd-page (min-width: 641px) and (max-width: 1024px)",Ns="@container ahd-page (max-width: 640px)";function Gb(){const e=oo.map(o=>`[data-fs-desktop="${o.px}"]{font-size:${o.px}px}`).join(`
|
|
91
|
+
`),t=oo.map(o=>`[data-fs-tablet="${o.px}"]{font-size:${o.px}px !important}`).join(`
|
|
92
|
+
`),n=oo.map(o=>`[data-fs-mobile="${o.px}"]{font-size:${o.px}px !important}`).join(`
|
|
93
|
+
`);return[e,`${Bt}{${t}}`,`${Rs}{${t}}`,`${je}{${n}}`,`${Ns}{${n}}`].join(`
|
|
94
|
+
`)}const _a=Gb(),Ub=new Set(oo.map(e=>e.px));function Wb(e){if(!e)return"";const t={desktop:new Set,tablet:new Set,mobile:new Set},n=/data-fs-(desktop|tablet|mobile)="(\d+)"/g;let o;for(;(o=n.exec(e))!==null;){const s=Number(o[2]);!Number.isFinite(s)||Ub.has(s)||t[o[1]].add(s)}const r=s=>Array.from(t[s]).map(c=>`[data-fs-${s}="${c}"]{font-size:${c}px${s==="desktop"?"":" !important"}}`).join(`
|
|
95
|
+
`),i=r("desktop"),a=r("tablet"),l=r("mobile");return!i&&!a&&!l?"":[i,a&&`${Bt}{${a}}`,a&&`${Rs}{${a}}`,l&&`${je}{${l}}`,l&&`${Ns}{${l}}`].filter(Boolean).join(`
|
|
96
|
+
`)}const Ti="ahd-responsive-font-size";function Zb(){if(typeof document>"u"||document.getElementById(Ti))return;const e=document.createElement("style");e.id=Ti,e.setAttribute("data-ahd-generated","responsive-font-size"),e.textContent=_a,document.head.appendChild(e)}Zb();const Vb=20;function qb(e){const t=[];t.push('ol[data-mll="decimal-dot"] { list-style-type: none; padding-inline-start: 32px; counter-reset: mll-1; }'),t.push('ol[data-mll="decimal-dot"] > li { counter-increment: mll-1; position: relative; }'),t.push('ol[data-mll="decimal-dot"] > li::before { content: counter(mll-1) "."; position: absolute; left: -32px; width: 24px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }');for(let n=2;n<=e;n++){const r=`ol[data-mll="decimal-dot"]${" ol".repeat(n-1)}`,i=[];for(let l=1;l<=n;l++)l>1&&i.push('"."'),i.push(`counter(mll-${l})`);const a=i.join(" ");n===2?(t.push(`${r} { list-style-type: none; counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${r} > li { counter-increment: mll-${n}; position: relative; }`),t.push(`${r} > li::before { content: ${a}; position: absolute; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`)):(t.push(`${r} { counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${r} > li { counter-increment: mll-${n}; }`),t.push(`${r} > li::before { content: ${a}; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`))}return t.join(`
|
|
97
|
+
`)}const Yb=`
|
|
86
98
|
/* Match the block's paragraph rhythm: this app zeros <p> margins via a
|
|
87
99
|
.ahd-page-root p rule, so list items and nested lists must also carry
|
|
88
100
|
zero vertical margin or the list feels double-spaced next to
|
|
@@ -142,7 +154,7 @@ ol[data-mll="decimal-paren"] ol ol ol > li::before { content: counter(mll-d) ")"
|
|
|
142
154
|
buildDecimalDotCSS so arbitrary nesting depth (up to
|
|
143
155
|
DECIMAL_DOT_MAX_LEVEL) renders the correctly concatenated marker
|
|
144
156
|
instead of repeating the last-defined level's string. */
|
|
145
|
-
${
|
|
157
|
+
${qb(Vb)}
|
|
146
158
|
|
|
147
159
|
/* ── list-style-type schemes: tight hanging indent similar to plain
|
|
148
160
|
browser <ol> so the marker character sits close to the text. ────── */
|
|
@@ -176,74 +188,62 @@ ul[data-mll="bullet-arrow"] > li::before { content: "▸"; position: absolute; l
|
|
|
176
188
|
ul[data-mll="bullet-arrow"] ul { list-style-type: none; }
|
|
177
189
|
ul[data-mll="bullet-arrow"] ul > li::before { content: "◦"; }
|
|
178
190
|
ul[data-mll="bullet-arrow"] ul ul > li::before { content: "▪"; }
|
|
179
|
-
`,
|
|
180
|
-
.
|
|
181
|
-
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
|
|
182
|
-
content: '${e.label}';
|
|
183
|
-
font-family: ${e.css};
|
|
184
|
-
}`}).join(`
|
|
185
|
-
`);const Zn=[{label:"10",px:10},{label:"12",px:12},{label:"14",px:14},{label:"16",px:16},{label:"18",px:18},{label:"20",px:20},{label:"22",px:22},{label:"24",px:24},{label:"26",px:26},{label:"28",px:28},{label:"30",px:30},{label:"32",px:32},{label:"36",px:36},{label:"40",px:40},{label:"44",px:44},{label:"48",px:48},{label:"52",px:52},{label:"56",px:56},{label:"60",px:60},{label:"64",px:64},{label:"72",px:72},{label:"76",px:76}],Bg={P:"Normal",DIV:"Normal",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",BLOCKQUOTE:"Quote",PRE:"Code"};new Set(Object.keys(Bg));const ss="@container ahd-page (min-width: 641px) and (max-width: 1024px)",cs="@container ahd-page (max-width: 640px)";function Dg(){const e=Zn.map(o=>`[data-fs-desktop="${o.px}"]{font-size:${o.px}px}`).join(`
|
|
186
|
-
`),t=Zn.map(o=>`[data-fs-tablet="${o.px}"]{font-size:${o.px}px !important}`).join(`
|
|
187
|
-
`),n=Zn.map(o=>`[data-fs-mobile="${o.px}"]{font-size:${o.px}px !important}`).join(`
|
|
188
|
-
`);return[e,`${It}{${t}}`,`${ss}{${t}}`,`${Oe}{${n}}`,`${cs}{${n}}`].join(`
|
|
189
|
-
`)}const sa=Dg(),Fg=new Set(Zn.map(e=>e.px));function Hg(e){if(!e)return"";const t={desktop:new Set,tablet:new Set,mobile:new Set},n=/data-fs-(desktop|tablet|mobile)="(\d+)"/g;let o;for(;(o=n.exec(e))!==null;){const s=Number(o[2]);!Number.isFinite(s)||Fg.has(s)||t[o[1]].add(s)}const r=s=>Array.from(t[s]).map(c=>`[data-fs-${s}="${c}"]{font-size:${c}px${s==="desktop"?"":" !important"}}`).join(`
|
|
190
|
-
`),i=r("desktop"),a=r("tablet"),l=r("mobile");return!i&&!a&&!l?"":[i,a&&`${It}{${a}}`,a&&`${ss}{${a}}`,l&&`${Oe}{${l}}`,l&&`${cs}{${l}}`].filter(Boolean).join(`
|
|
191
|
-
`)}const di="ahd-responsive-font-size";function Gg(){if(typeof document>"u"||document.getElementById(di))return;const e=document.createElement("style");e.id=di,e.setAttribute("data-ahd-generated","responsive-font-size"),e.textContent=sa,document.head.appendChild(e)}Gg();const Ug=M(["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 Zg(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 Wg=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),qg=k().regex(/^rgba?\([^\)]+\)$/i),Vg=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Yg=ae("transparent"),hi=D([Wg,qg,Vg,Yg]).nullable().optional(),Kg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Jg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Xg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Qg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,eb=A({style:A({color:hi,backgroundColor:hi,fontSize:m().gte(0).optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontFamily:Ug,fontWeight:M(["bold","normal",...aa]).optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),padding:Kg,margin:Jg}).optional().nullable(),props:A({text:k().optional().nullable(),editorType:M(["summernote","quill"]).optional().nullable()}).optional().nullable()}),tb={text:""};function nb({style:e,props:t}){const n=e==null?void 0:e.lineClamp,o=n&&n>0?{display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},r=(e==null?void 0:e.color)??void 0,i=typeof r=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(r),a={...i?{backgroundImage:r,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{color:r},background:i?void 0:(e==null?void 0:e.backgroundColor)??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:Zg(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:Xg(e==null?void 0:e.padding),margin:Qg(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word",...o},l=Xl((t==null?void 0:t.text)??tb.text);return g.jsxs("div",{className:"text-block",style:a,children:[g.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}
|
|
192
|
-
.text-block a{color:#2563eb;text-decoration:underline}/* keep in sync with LINK_COLOR (editor-sample InlineTextToolbar/types.ts) */
|
|
191
|
+
`,Kb=N(["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 Jb(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 Xb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Qb=$().regex(/^rgba?\([^\)]+\)$/i),e0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),t0=oe("transparent"),Ei=D([Xb,Qb,e0,t0]).nullable().optional(),n0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),o0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),r0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,a0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,i0=A({style:A({color:Ei,backgroundColor:Ei,fontSize:m().gte(0).optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontFamily:Kb,fontWeight:N(["bold","normal",...ga]).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),padding:n0,margin:o0}).optional().nullable(),props:A({text:$().optional().nullable(),editorType:N(["summernote","quill"]).optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),l0={text:""};function s0({style:e,props:t}){const n=e==null?void 0:e.lineClamp,o=n&&n>0?{display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},r=(e==null?void 0:e.color)??void 0,i=xa(r),a=j(r),l=j(e==null?void 0:e.backgroundColor),s={...i?{backgroundImage:a,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{color:a},background:i?void 0:l??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:Jb(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:r0(e==null?void 0:e.padding),margin:a0(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},c=o,u=Zm(vs((t==null?void 0:t.text)??l0.text));return g.jsxs("div",{className:"text-block",style:s,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:`.text-block ul,.text-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}.text-block li{display:list-item}
|
|
192
|
+
.text-block a{color:#2563eb;color:light-dark(#2563eb,#7ab0ff);text-decoration:underline}/* keep in sync with LINK_COLOR (editor-sample InlineTextToolbar/types.ts) */
|
|
193
193
|
.text-block pre,.text-block code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}
|
|
194
|
-
${
|
|
195
|
-
${
|
|
196
|
-
${
|
|
197
|
-
${
|
|
198
|
-
${
|
|
199
|
-
`.trim(),
|
|
194
|
+
${Yb}
|
|
195
|
+
${_a}
|
|
196
|
+
${Wb(u)}`}}),g.jsx("div",{style:c,dangerouslySetInnerHTML:{__html:u}})]})}const c0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),u0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),d0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,h0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,f0=A({style:A({padding:c0,margin:u0,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:m().optional().nullable(),height:m().optional().nullable(),widthTablet:D([m(),$()]).optional().nullable(),widthMobile:D([m(),$()]).optional().nullable(),heightTablet:D([m(),$()]).optional().nullable(),heightMobile:D([m(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let m0=0;function p0({style:e,props:t}){const n=`ahd-youtube-url-${++m0}`,o={padding:d0(e==null?void 0:e.padding),margin:h0(e==null?void 0:e.margin),backgroundColor:j(e==null?void 0:e.backgroundColor),textAlign:(e==null?void 0:e.textAlign)??void 0},r=(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,h=l??i,d=s??h,f=c??a,p=u??f,b=i,x=a,v=w=>w==null?void 0:typeof w=="number"?`${w}px`:w,S=`
|
|
197
|
+
${ft} { .${n} video { ${v(h)?`width: ${v(h)} !important;`:""} ${v(f)?`height: ${v(f)} !important;`:""} max-width: 100% !important; } }
|
|
198
|
+
${je} { .${n} video { ${v(d)?`width: ${v(d)} !important;`:""} ${v(p)?`height: ${v(p)} !important;`:""} max-width: 100% !important; } }
|
|
199
|
+
`.trim(),k=g.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:x,style:{width:b,height:x,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return r?g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),g.jsx("a",{href:r,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:k})]}):g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),k]})}const g0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),b0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),x0=A({responsive:Ge,style:A({padding:g0,margin:b0,textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:O().optional().nullable()}).optional().nullable()}),v0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,S0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function w0({style:e,props:t}){var d,f;const n=(t==null?void 0:t.src)??"",o=(t==null?void 0:t.width)??"100%",r=t==null?void 0:t.height,i=!r||/^\s*(0|0px|100vh)\s*$/i.test(r)?"800px":r,a=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=U.useRef(null),c=(((d=e==null?void 0:e.margin)==null?void 0:d.left)??0)+(((f=e==null?void 0:e.margin)==null?void 0:f.right)??0),u={padding:v0(e==null?void 0:e.padding),margin:S0(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:`calc(100% - ${c}px)`},h={width:`var(--ahd-iframe-width,${o})`,height:`var(--ahd-iframe-height,${i})`,minHeight:`var(--ahd-iframe-height,${i})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?g.jsx("div",{className:"iframe-block",style:u,children:g.jsx("iframe",{ref:s,src:n,title:a,style:h,allowFullScreen:l})}):g.jsx("div",{className:"iframe-block",style:{...u,backgroundColor:"#F5F5F5",padding:"24px",textAlign:"center",color:"#888",fontSize:"14px"},children:"IFrame — enter a URL in the panel"})}const $0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),k0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),_0=A({responsive:Ge,style:A({padding:$0,margin:k0,textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:O().optional().nullable()}).optional().nullable()}),C0=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},A0=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},y0=({props:e,style:t})=>{var u,h;const{src:n,width:o,height:r,title:i,allowFullscreen:a=!0}=e??{};if(!n)return g.jsx(g.Fragment,{});const l=(((u=t==null?void 0:t.margin)==null?void 0:u.left)??0)+(((h=t==null?void 0:t.margin)==null?void 0:h.right)??0),s=t??{},c={width:`calc(100% - ${l}px)`,padding:C0(s.padding),margin:A0(s.margin),textAlign:s.textAlign||void 0};return g.jsx("div",{className:"calendly-block",style:c,children:g.jsx("iframe",{src:n,title:i||"Calendly scheduling",allowFullScreen:a??!0,style:{width:`var(--ahd-calendly-width,${o||"100%"})`,height:`var(--ahd-calendly-height,${r||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var I0=Object.defineProperty,Mi=Object.getOwnPropertySymbols,R0=Object.prototype.hasOwnProperty,N0=Object.prototype.propertyIsEnumerable,Pi=(e,t,n)=>t in e?I0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T0=(e,t)=>{for(var n in t||(t={}))R0.call(t,n)&&Pi(e,n,t[n]);if(Mi)for(var n of Mi(t))N0.call(t,n)&&Pi(e,n,t[n]);return e};function E0(e){return function({type:n,data:o}){const r=e[n].Component;return U.createElement(r,T0({},o))}}function M0(e){const t=Object.keys(e).map(n=>A({type:oe(n),data:e[n].schema}));return nm("type",t).transform(n=>n)}const P0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),O0=$().regex(/^rgba?\([^\)]+\)$/i),L0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),z0=oe("transparent"),j0=D([P0,O0,L0,z0]).nullable().optional(),B0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),D0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Bo=us([m().optional().nullish(),m().optional().nullish(),m().optional().nullish(),m().optional().nullish(),m().optional().nullish()]).optional().nullable(),Do=N(["fixed","fill","fit"]).optional().nullable(),F0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,H0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ts=A({style:A({backgroundColor:j0,padding:B0,margin:D0}).optional().nullable(),props:A({widthType:Do,widthTypeTablet:Do,widthTypeMobile:Do,fixedWidths:Bo,fixedWidthsTablet:Bo,fixedWidthsMobile:Bo,columnsCount:D([oe(2),oe(3),oe(4),oe(5)]).optional().nullable(),columnsGap:m().optional().nullable(),columnsGapTablet:m().optional().nullable(),columnsGapMobile:m().optional().nullable(),columnsDirection:N(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:N(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:N(["horizontal","vertical"]).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:N(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:N(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),Lt={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function Oi(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
|
|
200
200
|
${e} table { table-layout: auto !important; }
|
|
201
201
|
${e} td { box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; vertical-align: top !important; }
|
|
202
|
-
${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function
|
|
202
|
+
${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function Li(e){return`${e} table { display: table !important; table-layout: fixed !important; }
|
|
203
203
|
${e} tbody { display: table-row-group !important; }
|
|
204
204
|
${e} tr { display: table-row !important; width: auto !important; }
|
|
205
205
|
${e} td { display: table-cell !important; width: auto !important; }
|
|
206
|
-
${e} td + td { margin-top: 0 !important; }`}function
|
|
207
|
-
`)}function
|
|
208
|
-
@media (max-width: ${
|
|
206
|
+
${e} td + td { margin-top: 0 !important; }`}function zi(e,t,n,o,r,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,h=[`padding-left: ${c}px !important`,`padding-right: ${u}px !important`];o==="fixed"&&(r==null?void 0:r[l])!=null?h.push(`width: ${r[l]}px !important`):h.push("width: auto !important"),a.push(`${s} { ${h.join("; ")}; }`)}return a.join(`
|
|
207
|
+
`)}function G0(e,t){const n=`.${e}.columns-container`,o=(r,i)=>!i&&r?`${n} td { vertical-align: ${r} !important; }`:"";return`
|
|
208
|
+
@media (max-width: ${Pe}px) {
|
|
209
209
|
${n} { --columns-gap: ${t.tabletGap}px; }
|
|
210
|
-
${t.tabletVertical?
|
|
211
|
-
${t.tabletVertical?"":
|
|
210
|
+
${t.tabletVertical?Oi(n):Li(n)}
|
|
211
|
+
${t.tabletVertical?"":zi(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
|
|
212
212
|
${o(t.tabletAlign,t.tabletVertical)}
|
|
213
213
|
}
|
|
214
|
-
@media (max-width: ${
|
|
214
|
+
@media (max-width: ${Oe}px) {
|
|
215
215
|
${n} { --columns-gap: ${t.mobileGap}px; }
|
|
216
|
-
${t.mobileVertical?
|
|
217
|
-
${t.mobileVertical?"":
|
|
216
|
+
${t.mobileVertical?Oi(n):Li(n)}
|
|
217
|
+
${t.mobileVertical?"":zi(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
|
|
218
218
|
${o(t.mobileAlign,t.mobileVertical)}
|
|
219
219
|
}
|
|
220
|
-
`.trim()}let
|
|
221
|
-
`);const u=[`${e} { flex-direction: ${i?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${a}px; }`],
|
|
222
|
-
`)}function
|
|
223
|
-
`),u=[o,r,i].some(d=>d.shrink.some(Boolean))?[o,r,i].flatMap(d=>d.shrink.map((
|
|
224
|
-
`):"",
|
|
225
|
-
${
|
|
220
|
+
`.trim()}let U0=0;function W0({style:e,columns:t,props:n}){const o=(n==null?void 0:n.widthType)??Lt.widthType,r=(n==null?void 0:n.widthTypeTablet)??o,i=(n==null?void 0:n.widthTypeMobile)??r,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)??Lt.columnsGap,u=(n==null?void 0:n.columnsGapTablet)??c,h=(n==null?void 0:n.columnsGapMobile)??u,d=(n==null?void 0:n.columnsDirection)??Lt.columnsDirection,f=(n==null?void 0:n.columnsDirectionTablet)??d,p=(n==null?void 0:n.columnsDirectionMobile)??f,b=(n==null?void 0:n.contentAlignment)??Lt.contentAlignment,x=(n==null?void 0:n.contentAlignmentTablet)??b,v=(n==null?void 0:n.contentAlignmentMobile)??x,S=(n==null?void 0:n.columnsCount)??Lt.columnsCount,k=o,w=a,C=c,y=d,I={widthType:k,columnsCount:S,columnsGap:C,columnsDirection:y,contentAlignment:b,fixedWidths:w},R=y==="vertical",T=U.useMemo(()=>`ahd-cc-${U0+=1}`,[]),P=G0(T,{tabletVertical:f==="vertical",mobileVertical:p==="vertical",columnsCount:S,tabletGap:u,mobileGap:h,tabletWidthType:r,mobileWidthType:i,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:x,mobileAlign:v}),M={background:j(e==null?void 0:e.backgroundColor),padding:F0(e==null?void 0:e.padding),margin:H0(e==null?void 0:e.margin),"--columns-gap":`${C}px`};return g.jsxs("div",{className:`columns-container ${T}${R?" is-stacked":""}`,style:M,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),g.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:R||k==="fit"?"auto":"fixed",borderCollapse:"collapse",...R?{display:"block",width:"100%"}:{}},children:g.jsx("tbody",{style:{width:"100%",...R?{display:"block"}:{}},children:g.jsxs("tr",{style:{width:"100%",...R?{display:"block"}:{}},children:[g.jsx(mn,{index:0,props:I,columns:t}),g.jsx(mn,{index:1,props:I,columns:t}),g.jsx(mn,{index:2,props:I,columns:t}),g.jsx(mn,{index:3,props:I,columns:t}),g.jsx(mn,{index:4,props:I,columns:t})]})})})]})}function mn({index:e,props:t,columns:n}){var h;const o=(t==null?void 0:t.columnsCount)??Lt.columnsCount;if(e>=o)return null;const r=t.columnsDirection==="vertical",i=r?0:Z0(e,t),a=r?0:V0(e,t),l=(h=t.fixedWidths)==null?void 0:h[e],s={boxSizing:r?"border-box":"content-box",verticalAlign:r?"top":(t==null?void 0:t.contentAlignment)??Lt.contentAlignment,paddingLeft:i?`${i}px`:0,paddingRight:a?`${a}px`:0,width:t.widthType==="fixed"&&!r&&l!=null?`${l}px`:void 0,...r?{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 g.jsx("td",{style:s,width:u,children:c})}function Z0(e,{columnsGap:t}){return e===0?0:t/2}function V0(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const q0=Ts.shape.props.unwrap().unwrap().shape,Y0=Ts.shape.style.unwrap().unwrap().shape,K0=A({style:A({...Y0,borderRadius:D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({...q0,columns:us([A({childrenIds:te($())}),A({childrenIds:te($())}),A({childrenIds:te($())})])}).optional().nullable()});function J0(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function X0({style:e,props:t}){const{columns:n,...o}=t??{};let r;n&&(r=n.map(d=>((d==null?void 0:d.childrenIds)??[]).map(f=>g.jsx(Ae,{id:f},f))));const{borderRadius:i,borderColor:a,borderWidth:l,...s}=e??{},c={};if(i!=null&&(c.borderRadius=J0(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,h=g.jsx(W0,{props:o,columns:r,style:s});return u?g.jsx("div",{style:c,children:h}):g.jsx(g.Fragment,{children:h})}const Q0=A({style:A({backgroundColor:$().optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({columnsCount:m().int().min(2).optional().nullable(),columnsGap:m().optional().nullable(),columnsGapTablet:m().optional().nullable(),columnsGapMobile:m().optional().nullable(),wrap:O().optional().nullable(),desktopLayout:N(["wrap","row"]).optional().nullable(),mobileLayout:N(["wrap","row"]).optional().nullable(),tabletLayout:N(["wrap","row"]).optional().nullable(),columnShrink:te(O()).optional().nullable(),columnShrinkTablet:te(O()).optional().nullable(),columnShrinkMobile:te(O()).optional().nullable(),equalColumns:O().optional().nullable(),columns:te(A({childrenIds:te($())})).optional().nullable(),align:N(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:N(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:O().optional().nullable(),repeatableEnabled:O().optional().nullable()}).optional().nullable()});function ex(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function tx(e){var r,i;const t=e??{},n=(((r=t.margin)==null?void 0:r.left)??0)+(((i=t.margin)==null?void 0:i.right)??0),o={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(o.backgroundColor=t.backgroundColor),t.padding){const a=t.padding;o.padding=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.margin){const a=t.margin;o.margin=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.borderRadius!=null&&(o.borderRadius=ex(t.borderRadius),o.overflow="hidden"),t.borderColor){const a=t.borderWidth??{top:1,right:1,bottom:1,left:1};o.borderStyle="solid",o.borderColor=t.borderColor,o.borderWidth=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}return o}function Fo(e,t,n){const o=e??{},r=o.desktopLayout??(o.wrap?"wrap":"row"),i=o.tabletLayout??r,a=o.mobileLayout??"wrap",l=o.columnShrink??[],s=o.columnShrinkTablet??l,c=o.columnShrinkMobile??s,u=o.columnsGap??16,h=o.columnsGapTablet??u,d=o.columnsGapMobile??h,f={desktop:{layout:r,shrink:l,gap:u},tablet:{layout:i,shrink:s,gap:h},mobile:{layout:a,shrink:c,gap:d}}[t];return{layout:f.layout,gap:f.gap,shrink:Array.from({length:n},(p,b)=>f.shrink[b]===!0),equalColumns:o.equalColumns===!0,reverseColumns:o.reverseColumns===!0}}function nx(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 ox(e,{shrink:t,equalColumns:n}){return t[e]?"shrink":n?"equal":"plain"}function Ho(e,t,n,o){const{layout:r,reverseColumns:i,gap:a}=n,l=d=>d.map(f=>`${t}:nth-child(${f+1})`).join(", "),s=Array.from({length:o},(d,f)=>f);if(r==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; gap: ${a}px; }`,`${l(s)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
|
|
221
|
+
`);const u=[`${e} { flex-direction: ${i?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${a}px; }`],h=new Map;for(const d of s){const f=ox(d,n);h.set(f,[...h.get(f)??[],d])}for(const[d,f]of h)u.push(`${l(f)} { ${nx(d)} max-width: 100%; }`);return u.join(`
|
|
222
|
+
`)}function rx(e,t){const{columnsCount:n,desktop:o,tablet:r,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(`
|
|
223
|
+
`),u=[o,r,i].some(d=>d.shrink.some(Boolean))?[o,r,i].flatMap(d=>d.shrink.map((f,p)=>f?p:-1).filter(f=>f>=0)).filter((d,f,p)=>p.indexOf(d)===f).map(d=>{const f=`${l}:nth-child(${d+1})`;return`${f} > *, ${f} .container-block { width: auto; max-width: 100%; }`}).join(`
|
|
224
|
+
`):"",h=(d,f)=>`@media (max-width: ${d}px) {
|
|
225
|
+
${f}
|
|
226
226
|
}
|
|
227
227
|
@container ahd-page (max-width: ${d}px) {
|
|
228
|
-
${
|
|
229
|
-
}`;return[s,u,
|
|
230
|
-
`)}let
|
|
231
|
-
@media (max-width: ${
|
|
232
|
-
`),
|
|
233
|
-
.${
|
|
234
|
-
@media (max-width: ${
|
|
235
|
-
@media (max-width: ${
|
|
228
|
+
${f}
|
|
229
|
+
}`;return[s,u,Ho(a,l,o,n),h(Pe,Ho(a,l,r,n)),h(Oe,Ho(a,l,i,n))].filter(Boolean).join(`
|
|
230
|
+
`)}let ax=0;function ix({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.align)??"flex-start",r=(t==null?void 0:t.justify)??"flex-start",i=(t==null?void 0:t.columns)??[],a=Array.from({length:n},(u,h)=>i[h]??{childrenIds:[]}),l=U.useMemo(()=>`ahd-fc-${ax+=1}`,[]),s=rx(l,{columnsCount:n,desktop:Fo(t,"desktop",n),tablet:Fo(t,"tablet",n),mobile:Fo(t,"mobile",n)}),c={alignItems:o,justifyContent:r};return g.jsxs("div",{className:`flex-columns-block ${l}`,style:tx(e),"data-cols":n,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),g.jsx("div",{className:"fc-row",style:c,children:a.map((u,h)=>g.jsx("div",{className:"fc-col",children:u.childrenIds.map(d=>g.jsx(Ae,{id:d},d))},h))})]})}const lx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),sx=$().regex(/^rgba?\([^\)]+\)$/i),cx=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ux=oe("transparent"),dx=D([lx,sx,cx,ux]).nullable().optional(),hx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),fx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),mx=A({style:A({backgroundColor:dx,padding:hx,margin:fx}).optional().nullable(),props:A({columnsCount:m().int().min(1).optional().nullable(),columnsCountTablet:m().int().min(1).optional().nullable(),columnsCountMobile:m().int().min(1).optional().nullable(),rowsCount:m().int().min(1).optional().nullable(),columnsGap:m().optional().nullable(),rowsGap:m().optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),px=mx.shape.props.unwrap().unwrap().shape,gx=A({backgroundColor:$().optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),bx=A({style:gx,props:A({...px,cells:te(A({childrenIds:te($()),colStart:m().int().min(1).optional().nullable(),colSpan:m().int().min(1).optional().nullable(),rowStart:m().int().min(1).optional().nullable(),rowSpan:m().int().min(1).optional().nullable()})),columnsCountTablet:D([oe(1),oe(2),oe(3),oe(4),oe(5)]).optional().nullable(),columnsCountMobile:D([oe(1),oe(2),oe(3),oe(4),oe(5)]).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:N(["left","center","right"]).optional().nullable()}).optional().nullable()}),xx={top:"flex-start",middle:"center",bottom:"flex-end"},vx={left:"flex-start",center:"center",right:"flex-end"};let Sx=0;function wx({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.columnsCountTablet)??n,r=(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(R=>(R==null?void 0:R.colStart)!=null||(R==null?void 0:R.rowStart)!=null||(R==null?void 0:R.colSpan)!=null||(R==null?void 0:R.rowSpan)!=null)?u.length:n*i,f=U.useMemo(()=>`ahd-grid-${Sx+=1}`,[]),p=Array.from({length:d},(R,T)=>u[T]??{childrenIds:[]}),b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,v=((x==null?void 0:x.left)??0)+((x==null?void 0:x.right)??0),S=v>0?`calc(100% - ${v}px)`:"100%",k={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:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,width:S,maxWidth:"100%"},w=e==null?void 0:e.borderRadius;if(w!=null&&(k.borderRadius=typeof w=="number"?`${w}px`:`${w.topLeft}px ${w.topRight}px ${w.bottomRight}px ${w.bottomLeft}px`,k.overflow="hidden"),e!=null&&e.borderColor){const R=e.borderWidth??{top:1,right:1,bottom:1,left:1};k.borderStyle="solid",k.borderColor=e.borderColor,k.borderWidth=`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`}const C={display:"grid",columnGap:`${a}px`,rowGap:`${l}px`,alignItems:xx[s]??"center",justifyContent:vx[c]??"flex-start",width:"100%",boxSizing:"border-box"},y=p.map((R,T)=>{if(R.colStart==null&&R.rowStart==null)return"";const P=[];return R.colStart!=null&&R.colSpan!=null&&P.push(`grid-column: ${R.colStart} / span ${R.colSpan};`),R.rowStart!=null&&R.rowSpan!=null&&P.push(`grid-row: ${R.rowStart} / span ${R.rowSpan};`),P.length===0?"":`.${f}-cell-${T} { ${P.join(" ")} }
|
|
231
|
+
@media (max-width: ${Oe}px) { .${f}-cell-${T} { grid-column: auto; grid-row: auto; } }`}).filter(Boolean).join(`
|
|
232
|
+
`),_=`
|
|
233
|
+
.${f} > .grid-block-inner { grid-template-columns: repeat(${n}, minmax(0, 1fr)); }
|
|
234
|
+
@media (max-width: ${Pe}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
|
|
235
|
+
@media (max-width: ${Oe}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${r}, minmax(0, 1fr)); } }
|
|
236
236
|
${y}
|
|
237
|
-
`.trim(),
|
|
238
|
-
${
|
|
239
|
-
${
|
|
240
|
-
${
|
|
241
|
-
${
|
|
242
|
-
`.trim():null,
|
|
243
|
-
.${
|
|
244
|
-
.${
|
|
245
|
-
`.trim():null,
|
|
246
|
-
`)||null,De=bo(e==null?void 0:e.boxShadow),ne=ee=>{if(ee!=null)return typeof ee=="number"?`${ee}px`:`${ee.topLeft}px ${ee.topRight}px ${ee.bottomRight}px ${ee.bottomLeft}px`},pe=(e==null?void 0:e.borderColor)??null,Se=(e==null?void 0:e.borderWidth)??null,Re=A0(pe,Se),Fe=$0((e==null?void 0:e.backgroundColor)??""),Ve=(e==null?void 0:e.backgroundSize)==="none",at=!Ve&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,Et=C0(e==null?void 0:e.backgroundColor,at),it=Ve?void 0:(e==null?void 0:e.backgroundSize)??void 0,dt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",Xt=pe&&(pe.includes("linear-gradient")||pe.includes("radial-gradient")||pe.includes("repeating-linear-gradient")),Ne=W!=null,Nt=Ne?{"--ahd-cb-h":`${W}px`}:{},Qt=Ne?" container-block-has-height":"";if(Xt){const ee={...Re,borderRadius:ne(e==null?void 0:e.borderRadius),width:U,maxWidth:"100%",height:Ne?`${W}px`:void 0,boxSizing:"border-box",...se(P,e==null?void 0:e.margin,L==="100%"),...J?{display:"inline-block"}:{},...De,...Nt},ie={...Fe,backgroundImage:Et,backgroundSize:it,backgroundRepeat:dt,borderRadius:y0((e==null?void 0:e.borderRadius)??0,Se),overflow:$?"auto":"hidden",padding:vi(e==null?void 0:e.padding),width:"100%",height:Ne?"100%":void 0,boxSizing:"border-box"},Me=`container-block${$?" container-block-overflow":""}${Qt}${_e?` ${_e}`:""}`,ht=`container-block-inner${$?" container-block-overflow":""}`,me=V?{...ee,...G.style,...J?{display:"inline-block"}:{}}:ee,ze=g.jsx(K,{className:Me,"aria-label":T,id:z,...G,style:me,children:g.jsx("div",{className:ht,style:ie,children:n})});return g.jsxs(g.Fragment,{children:[we&&g.jsx("style",{dangerouslySetInnerHTML:{__html:we}}),J?g.jsx("div",{className:Ie,style:J,children:ze}):ze]})}const En={...Fe,backgroundImage:Et,backgroundSize:it,backgroundRepeat:dt,...Re,borderRadius:ne(e==null?void 0:e.borderRadius),padding:vi(e==null?void 0:e.padding),...se(P,e==null?void 0:e.margin,L==="100%"),width:U,maxWidth:"100%",height:Ne?`${W}px`:void 0,overflow:$?"auto":void 0,boxSizing:"border-box",...$?{}:{display:"flow-root"},...J?{display:"inline-block"}:{},...De,...Nt},St=`container-block${$?" container-block-overflow":""}${Qt}${_e?` ${_e}`:""}`,kt=V?{...En,...G.style,...J?{display:"inline-block"}:{}}:En;if(!n){const ee=g.jsx(K,{className:St,"aria-label":T,id:z,...G,style:kt});return g.jsxs(g.Fragment,{children:[we&&g.jsx("style",{dangerouslySetInnerHTML:{__html:we}}),J?g.jsx("div",{className:Ie,style:J,children:ee}):ee]})}const en=g.jsx(K,{className:St,"aria-label":T,id:z,...G,style:kt,children:n});return g.jsxs(g.Fragment,{children:[we&&g.jsx("style",{dangerouslySetInnerHTML:{__html:we}}),J?g.jsx("div",{className:Ie,style:J,children:en}):en]})}const N0=A({style:I0.shape.style,responsive:Be,props:A({childrenIds:X(k()).optional().nullable(),fullWidth:O().optional().nullable(),widthType:M(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:M(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:M(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:M(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:m().min(0).optional().nullable(),heightMobile:m().min(0).optional().nullable(),overflow:O().optional().nullable(),alignment:M(["left","center","right"]).optional().nullable(),alignmentTablet:M(["left","center","right"]).optional().nullable(),alignmentMobile:M(["left","center","right"]).optional().nullable(),tag:M(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:k().optional().nullable(),elementId:k().optional().nullable(),showLink:O().optional().nullable(),linkHref:k().optional().nullable(),linkTarget:M(["_self","_blank"]).optional().nullable(),animation:$n,hoverEffect:la}).optional().nullable()});function M0({style:e,props:t}){const n=(t==null?void 0:t.childrenIds)??[];return g.jsx(E0,{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,hoverEffect:(t==null?void 0:t.hoverEffect)??void 0},children:n.map(o=>g.jsx(ke,{id:o},o))})}const T0=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),P0=k().regex(/^rgba?\([^\)]+\)$/i),O0=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),L0=ae("transparent"),Bt=D([T0,P0,O0,L0]).nullable().optional(),z0=M(["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(),j0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Po=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Oo=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),B0=k().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(),D0=A({color:Bt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable(),F0=A({position:M(["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:O().optional().default(!0),selector:k().optional().default(""),showCloseIcon:O().optional(),iconCloseColor:Bt,closeIconPosition:M(["left","center","right"]).optional(),closeIconPaddingTop:m().optional(),closeIconPaddingLeft:m().optional(),closeIconPaddingRight:m().optional(),bannerSubType:k().optional()}).passthrough().optional().nullable(),H0=X(A({id:k(),name:k(),type:k().optional().default("text"),value:k().optional()})).optional().nullable(),G0=A({formFields:H0,backdropColor:Bt.default(null),borderColor:Bt.default(null),borderRadius:m().optional().nullable(),canvasColor:Bt.default(null),textColor:Bt,fontFamily:z0,childrenIds:X(k()).optional().nullable(),maxWidth:k().default(""),maxHeight:k().default(""),top:k().default(""),left:k().default(""),padding:Po,margin:Oo,maxWidthTablet:k().optional().nullable(),maxWidthMobile:k().optional().nullable(),maxHeightTablet:k().optional().nullable(),maxHeightMobile:k().optional().nullable(),paddingTablet:Po,paddingMobile:Po,marginTablet:Oo,marginMobile:Oo,borderWidth:j0,boxShadow:D0,behaviour:F0,linkHref:k().optional().default(""),backgroundImage:k().default("").nullable().optional(),backgroundSize:B0,backgroundRepeat:M(["repeat","no-repeat"]).optional().nullable()});function Lt(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function Ln(e,t,n){const o=e??{},r=o[t];if(n==="desktop")return Lt(r)?r:null;const i=o[`${t}Tablet`];if(n==="tablet")return Lt(i)?i:Lt(r)?r:null;const a=o[`${t}Mobile`];return Lt(a)?a:Lt(i)?i:Lt(r)?r:null}function Lo(e,t){return{maxWidth:Ln(e,"maxWidth",t)??null,maxHeight:Ln(e,"maxHeight",t)??null,padding:Ln(e,"padding",t)??null,margin:Ln(e,"margin",t)??null}}function U0(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Z0(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function zo(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:${U0(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${Z0(t.margin)};}`),n.join("")}function W0(e,t,n){const o=`.${e}`,r={width:`${o} .ahd-layout-sizer`,table:`${o} .ahd-layout-table`,padding:`${o} .email-layout-content`,margin:`${o} .email-layout-content`},i=Lo(t,"desktop"),a=zo(r,{...i,maxWidth:i.maxWidth??n??null}),l=zo(r,Lo(t,"tablet")),s=zo(r,Lo(t,"mobile")),c=(u,f)=>f?`@media (max-width:${u}px){${f}}@container ahd-page (max-width:${u}px){${f}}`:"";return[a,c(Ue,l),c(Le,s)].filter(Boolean).join("")}const q0="Made with Page Pilot",V0="https://pagepilot.fabbuilder.com";let Y0=0;function K0(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 J0(e){const{borderColor:t,borderWidth:n,borderRadius:o}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const r=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=o??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(r){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 X0(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function wi(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e,l=X0(t);return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${l}`}}function Q0(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 ex(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 tx(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function nx(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=tx(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function ox({position:e,color:t}){const r="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:r,width:16,height:8,clipPath:a};break;case"top-right":u={top:-8,right:r,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:r,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:r,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 g.jsx("div",{"aria-hidden":!0,style:{...i,...u}})}function rx({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:r}){const i=e||"#262626",a=t??"right",l=typeof n=="number"?n:2,u=a==="left"?{left:typeof o=="number"?o:2}:a==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof r=="number"?r:2};return g.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:g.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:[g.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),g.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function ax(){return g.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:"#8a8a8a",marginTop:8},children:g.jsx("a",{href:V0,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:q0})})}function ix(e){var K,G,oe,le,se,ce,Ee,Ce,W,L,U,q,J,Ae;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",o=n.includes("page")?"page":"",r=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"],f=r&&(((K=e.behaviour)==null?void 0:K.bannerSubType)==="floater"||u.includes((G=e.behaviour)==null?void 0:G.position)),d=r&&((oe=e.behaviour)==null?void 0:oe.bannerSubType)==="modal",h=(c||f||d)&&((le=e.behaviour)==null?void 0:le.showCloseIcon)!==!1,b=c&&!0,x=r&&e.linkHref?e.linkHref:null,w=F.useMemo(()=>`ahd-layout-${Y0+=1}`,[]),_=W0(w,e,o==="page"||a?"100%":r&&!f?"900px":"320px"),S=(r||i)&&!!e.backgroundImage;e.borderRadius;const $=e.borderRadius??0,y=Q=>typeof Q=="number"?`${Q}px`:`${Q.topLeft}px ${Q.topRight}px ${Q.bottomRight}px ${Q.bottomLeft}px`,R=(Q=>Q==null?!1:typeof Q=="number"?Q>0:(Q.topLeft??0)>0||(Q.topRight??0)>0||(Q.bottomRight??0)>0||(Q.bottomLeft??0)>0)($),I=Q=>x?g.jsx("a",{href:x,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:Q}):Q,E=J0(e),P=r&&!!((se=e.boxShadow)!=null&&se.color)&&!!e.boxShadow.inset,T=r&&!P?wi(e.boxShadow):{},z=P?wi(e.boxShadow):{},H=ex(((ce=e.behaviour)==null?void 0:ce.position)??"right"),Z=c&&!f&&!d&&((Ee=e.behaviour)==null?void 0:Ee.isCaret)!==!1,j=nx(e.canvasColor,H),V=(((Ce=e.margin)==null?void 0:Ce.left)??0)+(((W=e.margin)==null?void 0:W.right)??0),Y=V>0?`calc(100% - ${V}px)`:"100%";return I(g.jsxs("div",{className:w,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[_&&g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),g.jsx("div",{style:{color:e.textColor??"#262626",fontFamily:K0(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:g.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...d||f?null:{maxWidth:"100%"}},children:[Z&&g.jsx(ox,{position:H,color:j}),g.jsxs("div",{style:{position:"relative",borderRadius:y($),...R?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...T},children:[P&&g.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:y($),zIndex:1,...z}}),h&&g.jsx(rx,{color:(L=e.behaviour)==null?void 0:L.iconCloseColor,position:(U=e.behaviour)==null?void 0:U.closeIconPosition,paddingTop:(q=e.behaviour)==null?void 0:q.closeIconPaddingTop,paddingLeft:(J=e.behaviour)==null?void 0:J.closeIconPaddingLeft,paddingRight:(Ae=e.behaviour)==null?void 0:Ae.closeIconPaddingRight}),g.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:Y,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||f?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...Q0(e.canvasColor,e.backgroundImage,r?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...E,borderRadius:y($),overflow:R?"clip":"visible",...S?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:g.jsx("tbody",{children:g.jsx("tr",{style:{width:"100%"},children:g.jsxs("td",{className:"email-layout-content",children:[t.map(Q=>g.jsx(ke,{id:Q},Q)),b&&g.jsx(ax,{})]})})})})]})]})})]}))}const lx=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),sx=k().regex(/^rgba?\([^\)]+\)$/i),cx=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ux=ae("transparent"),zn=D([lx,sx,cx,ux]).nullable().optional(),dx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),hx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),fx=M(["left","center","right"]).optional().nullable(),Qn={min:1,max:20},eo={min:4,max:48},hs=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),px=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,mx=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rn=(e,t,n)=>Math.min(Math.max(e,t),n),Si=e=>e?hs(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},gx=A({style:A({backgroundColor:zn,textAlign:fx,padding:dx,margin:hx}).optional().nullable(),props:A({stepperType:M(["dots","numeric","both"]).optional().nullable(),totalDots:m().min(Qn.min).max(Qn.max).optional().nullable(),activeIndex:m().min(1).optional().nullable(),activeColor:zn,inactiveColor:zn,dotSize:m().min(eo.min).max(eo.max).optional().nullable(),dotSpacing:m().min(0).max(40).optional().nullable(),numericColor:zn,numericFontSize:m().min(8).max(48).optional().nullable(),numericPosition:M(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),Xe={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function bx({style:e,props:t}){const o=Kl()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&o,a=rn((t==null?void 0:t.totalDots)??Xe.totalDots,Qn.min,Qn.max),l=rn((t==null?void 0:t.dotSize)??Xe.dotSize,eo.min,eo.max),s=rn((t==null?void 0:t.dotSpacing)??Xe.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??Xe.activeIndex,u=rn(c,1,a),f=(t==null?void 0:t.activeColor)??Xe.activeColor,d=(t==null?void 0:t.inactiveColor)??Xe.inactiveColor,h=(t==null?void 0:t.stepperType)??Xe.stepperType,p=h==="numeric"||h==="both",b=h==="dots"||h==="both",x=(t==null?void 0:t.numericColor)??Xe.numericColor,w=rn((t==null?void 0:t.numericFontSize)??Xe.numericFontSize,8,48),v=(t==null?void 0:t.numericPosition)??Xe.numericPosition,S={...Si((e==null?void 0:e.backgroundColor)??void 0),padding:px(e==null?void 0:e.padding,i),margin:mx(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},$=p&&b&&(v==="above"||v==="below"),y={display:"inline-flex",flexDirection:$?"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:$?"8px":b?`${s}px`:"0px"},C={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},R=`${u}/${a}`,I=hs(x),E={fontSize:`${w}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...I?{backgroundImage:x,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:x??void 0}},P=()=>p?g.jsx("span",{style:E,children:R}):null,T=()=>g.jsx("div",{style:C,"aria-hidden":"true",children:Array.from({length:a}).map((z,H)=>{const Z=H===u-1,j={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:Z?"scale(1.1)":"scale(1)",...Si(Z?f:d)};return g.jsx("span",{style:j,"data-active":Z?"true":"false"},H)})});return g.jsx("div",{className:"stepper-block",style:S,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":a,"aria-valuetext":`Step ${u} of ${a}`,"aria-label":`Step ${u} of ${a}`,children:g.jsxs("div",{style:y,children:[p&&v==="above"&&P(),p&&v==="left"&&P(),b&&T(),p&&v==="right"&&P(),p&&v==="below"&&P()]})})}const xx=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),vx=k().regex(/^rgba?\([^\)]+\)$/i),wx=ae("transparent"),jo=D([xx,vx,wx]).nullable().optional(),fs=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Sx=fs,kx=M(["left","center","right"]).optional().nullable(),_x=["disc","circle","square","dash","arrow","check","cross","none"],$x=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],ki={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},Cx=A({text:k()}),Ax=A({style:A({color:jo,backgroundColor:jo,textAlign:kx,fontSize:m().min(8).max(72).optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:D([m(),k()]).optional().nullable(),lineHeight:m().min(1).max(3).optional().nullable(),padding:fs,margin:Sx}).optional().nullable(),props:A({listType:M(["unordered","ordered"]).optional().nullable(),marker:M([..._x,...$x]).optional().nullable(),numberSuffix:Yl(e=>e===""?void 0:e,M([".",")"]).optional().nullable()),startNumber:m().min(0).max(9999).optional().nullable(),markerColor:jo,markerSize:m().min(8).max(72).optional().nullable(),itemGap:m().min(0).max(64).optional().nullable(),items:X(Cx).optional().nullable()}).optional().nullable(),responsive:Be}),pt={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"}]},_i=(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,Ci=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="",o=e;for(const[r,i]of t)for(;o>=r;)n+=i,o-=r;return n},Ai=e=>{let t=e,n="";for(;t>0;){const o=(t-1)%26;n=String.fromCharCode(97+o)+n,t=Math.floor((t-1)/26)}return n||"a"},yx=(e,t,n,o)=>{const r=n+t;switch(e){case"decimal-zero":return`${String(r).padStart(2,"0")}${o}`;case"lower-alpha":return`${Ai(r)}${o}`;case"upper-alpha":return`${Ai(r).toUpperCase()}${o}`;case"lower-roman":return`${Ci(r).toLowerCase()}${o}`;case"upper-roman":return`${Ci(r)}${o}`;case"decimal":default:return`${r}${o}`}};function Ix({style:e,props:t}){var x;const o=((t==null?void 0:t.listType)??pt.listType)==="ordered",r=(t==null?void 0:t.marker)??(o?"decimal":pt.marker),i=(t==null?void 0:t.numberSuffix)??pt.numberSuffix,a=(t==null?void 0:t.startNumber)??pt.startNumber,l=(t==null?void 0:t.markerColor)??pt.markerColor,s=_i((t==null?void 0:t.markerSize)??pt.markerSize,8,72),c=_i((t==null?void 0:t.itemGap)??pt.itemGap,0,64),u=(x=t==null?void 0:t.items)!=null&&x.length?t.items:pt.items.map(w=>({...w})),f=(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:f,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},p={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:l??f,fontSize:`${s}px`,lineHeight:(e==null?void 0:e.lineHeight)??1.5},b=w=>r==="none"?null:o?yx(r,w,a,i):ki[r]??ki.disc;return g.jsx("div",{className:"list-block",style:d,children:g.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:"100%"},children:g.jsx("tbody",{children:u.map((w,v)=>{const _=b(v);return g.jsxs("tr",{children:[r!=="none"&&g.jsx("td",{style:p,children:_}),g.jsx("td",{style:{...h,paddingBottom:v<u.length-1?`${c}px`:0,width:"100%"},children:w.text})]},v)})})})})}const Rx=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Ex=k().regex(/^rgba?\([^\)]+\)$/i),Nx=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Mx=ae("transparent"),Tx=D([Rx,Ex,Nx,Mx]).nullable().optional(),Px=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),br=A({style:A({backgroundColor:Tx,padding:Px}).optional().nullable(),props:A({direction:M(["row","column"]).optional().nullable(),directionTablet:M(["row","column"]).optional().nullable(),directionMobile:M(["row","column"]).optional().nullable(),gap:m().optional().nullable(),gapTablet:m().optional().nullable(),gapMobile:m().optional().nullable(),alignment:M(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:M(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:M(["start","center","end","space-between"]).optional().nullable(),wrap:O().optional().nullable(),ariaLabel:k().optional().nullable()}).optional().nullable(),responsive:Be}),jn={direction:"row",gap:12,alignment:"start",wrap:!0},to={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},Ox=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function yi(e,t,n,o){const r=e==="row"?to[t]:"flex-start",i=e==="column"?to[t]:"center";return`flex-direction:${e}!important;justify-content:${r}!important;align-items:${i}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${o}px!important;`}let Lx=0;function zx({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??jn.direction,r=(n==null?void 0:n.directionTablet)??o,i=(n==null?void 0:n.directionMobile)??r,a=(n==null?void 0:n.gap)??jn.gap,l=(n==null?void 0:n.gapTablet)??a,s=(n==null?void 0:n.gapMobile)??l,c=(n==null?void 0:n.alignment)??jn.alignment,u=(n==null?void 0:n.alignmentTablet)??c,f=(n==null?void 0:n.alignmentMobile)??u,d=(n==null?void 0:n.wrap)??jn.wrap,h=(n==null?void 0:n.ariaLabel)??void 0,p=o,b=c,w={display:"flex",flexDirection:p,gap:`${a}px`,justifyContent:p==="row"?to[b]:"flex-start",alignItems:p==="column"?to[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:(e==null?void 0:e.backgroundColor)??void 0,padding:Ox(e==null?void 0:e.padding),boxSizing:"border-box",width:"100%"},v=F.useMemo(()=>`ahd-bg-${Lx+=1}`,[]),_=F.useMemo(()=>{const S=`.${v}`;let $="";return(r!==o||u!==c||l!==a)&&($+=`@media (max-width:${Ue}px){${S}{${yi(r,u,d,l)}}}`),(i!==r||f!==u||s!==l)&&($+=`@media (max-width:${Le}px){${S}{${yi(i,f,d,s)}}}`),$},[v,o,r,i,c,u,f,a,l,s,d]);return g.jsxs("div",{className:`button-group ${v}`,style:w,role:"group","aria-label":h,children:[_&&g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),t]})}const jx=br.shape.props.unwrap().unwrap().shape,Bx=A({style:br.shape.style,props:A({...jx,childrenIds:X(k()).optional().nullable()}).optional().nullable(),responsive:br.shape.responsive});function Dx({style:e,props:t}){const{childrenIds:n,...o}=t??{},r=(n??[]).map(i=>g.jsx(ke,{id:i},i));return g.jsx(zx,{style:e,props:o,buttons:r})}const Fx=A({titleChildrenIds:X(k()).optional().nullable(),contentChildrenIds:X(k()).optional().nullable()}),Hx=A({responsive:Be,style:A({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),marginBottom:m().optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({items:X(Fx).min(1).max(25).optional().nullable(),iconColor:k().optional().nullable(),iconSize:m().optional().nullable(),defaultOpen:O().optional().nullable(),activeBorderColor:k().optional().nullable()}).optional().nullable()});function Gx(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 Ii=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function Ux(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),o=e.split(" ").map(r=>Math.max(0,parseFloat(r)-n));return o.length===1?`${o[0]}px`:o.map(r=>`${r}px`).join(" ")}function Zx({style:e,props:t}){const n=F.useMemo(()=>{const _=t==null?void 0:t.items;return!_||_.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:_[0].titleChildrenIds??[],contentChildrenIds:_[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),o=F.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),r=`${o}-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=t==null?void 0:t.activeBorderColor,c=e==null?void 0:e.borderColor,u=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},f=`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`,d=Gx(e==null?void 0:e.borderRadius),h=Ii(c),p=Ii(s),b=h||p,x={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:d,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&&(x.overflow="hidden"),b?(x.padding=f,h?x.background=c:c&&(x.borderStyle="solid",x.borderColor=c,x.borderWidth=f)):c&&(x.borderStyle="solid",x.borderColor=c,x.borderWidth=f);const w={background:(e==null?void 0:e.backgroundColor)??(b?"#ffffff":void 0),borderRadius:b?Ux(d,u):void 0,padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,overflow:b&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},v=[];return s&&(p?v.push(`#${o}:checked + .email-accordion-root { background:${s}!important; border-style:none!important; padding:${f}!important; }`):v.push(`#${o}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${s}!important; border-width:${f}!important; ${b?"padding:0!important;":""} }`)),g.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[g.jsx("style",{children:`
|
|
237
|
+
`.trim(),I=()=>({minWidth:0,boxSizing:"border-box"});return g.jsxs("div",{className:`grid-block ${f}`,style:k,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),g.jsx("div",{className:"grid-block-inner",style:C,children:p.map((R,T)=>g.jsx("div",{className:`grid-cell ${f}-cell-${T}`,style:I(),children:R.childrenIds.map(P=>g.jsx(Ae,{id:P},P))},T))})]})}const $x=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),kx=$().regex(/^rgba?\([^\)]+\)$/i),_x=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Cx=oe("transparent"),Ar=ps(e=>typeof e=="string"?e.trim():e,D([$x,kx,_x,Cx]).nullable().optional()),Ax=$().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),yx=$().regex(/^(none|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(),Ix=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Rx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Nx=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Tx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ji=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Es(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function Ex(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:Es(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function Mx(e,t){const n=e&&Es(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function Px(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)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const Ox=A({color:Ar,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable();function Lx(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function zx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Lx(t)}`}}function jx(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 o=Math.max(0,(e.topLeft||0)-n),r=Math.max(0,(e.topRight||0)-n),i=Math.max(0,(e.bottomRight||0)-n),a=Math.max(0,(e.bottomLeft||0)-n);return`${o}px ${r}px ${i}px ${a}px`}const Bx=A({style:A({backgroundColor:Ar,backgroundImage:Ax,backgroundSize:yx,backgroundRepeat:N(["repeat","no-repeat"]).optional().nullable(),borderColor:Ar,borderRadius:Nx,padding:Ix,margin:Rx,borderWidth:Tx,boxShadow:Ox}).optional().nullable(),props:A({fullWidth:O().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:D([m().min(0),oe("auto")]).optional().nullable(),heightMobile:D([m().min(0),oe("auto")]).optional().nullable(),overflow:O().optional().nullable(),alignment:N(["left","center","right"]).optional().nullable(),alignmentTablet:N(["left","center","right"]).optional().nullable(),alignmentMobile:N(["left","center","right"]).optional().nullable(),tag:N(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),hoverEffect:A({enabled:O(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:N(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()}),Wt={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};function Dx({style:e,props:t,children:n,blockId:o}){const r=ba(),i=(t==null?void 0:t.fullWidth)??Wt.fullWidth,a=(t==null?void 0:t.widthType)??Wt.widthType,l=(t==null?void 0:t.widthTypeTablet)??null,s=(t==null?void 0:t.widthTypeMobile)??null,c=l??a,u=s??c,h=(t==null?void 0:t.width)??Wt.width,d=(t==null?void 0:t.widthUnit)??Wt.widthUnit,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=f??h,x=p??b,v=(t==null?void 0:t.height)??null,S=(t==null?void 0:t.heightTablet)??null,k=(t==null?void 0:t.heightMobile)??null,w=S==="auto"?null:S??v,C=k==="auto"?null:k??(S==="auto"?null:w),y=(t==null?void 0:t.overflow)===!0,_=(t==null?void 0:t.alignment)??Wt.alignment,I=(t==null?void 0:t.alignmentTablet)??null,R=(t==null?void 0:t.alignmentMobile)??null,T=I??_,P=R??T,M=_,z=(t==null?void 0:t.ariaLabel)??void 0,F=(t==null?void 0:t.elementId)??void 0,H=!!(t!=null&&t.showLink),V=(t==null?void 0:t.linkHref)??null,q=typeof V=="string"?V.trim():V,he=H&&typeof q=="string"&&q.length>0,ae=(t==null?void 0:t.linkTarget)??"_blank",pe=he?"a":(t==null?void 0:t.tag)??"div",ee=he?{href:q,target:ae,...ae==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},se=(ne,le,Ve=!1)=>{if(Ve&&i)return"100%";switch(ne){case"fill":return"100%";case"fixed":return`${le}${d}`;case"fit":default:return"auto"}},fe=ne=>((ne==null?void 0:ne.left)??0)+((ne==null?void 0:ne.right)??0),Y=(ne,le,Ve)=>{const et=(le==null?void 0:le.top)??0,xt=(le==null?void 0:le.bottom)??0;if(Ve)return{marginTop:et,marginBottom:xt,marginLeft:(le==null?void 0:le.left)??0,marginRight:(le==null?void 0:le.right)??0};switch(ne){case"center":return{marginTop:et,marginBottom:xt,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:et,marginBottom:xt,marginLeft:"auto",marginRight:(le==null?void 0:le.right)??0};case"left":default:return{marginTop:et,marginBottom:xt,marginLeft:(le==null?void 0:le.left)??0,marginRight:"auto"}}},de=(ne,le)=>{const Ve=fe(le);return Ve<=0?ne:ne==="100%"?`calc(100% - ${Ve}px)`:ne},ve=a,K=h,L=v,B=se(ve,K,r==="desktop"),Z=de(B,e==null?void 0:e.margin),X=B==="100%"?null:{textAlign:M==="left"?"left":M==="right"?"right":"center"},ge=(ne,le,Ve)=>se(le,Ve)==="100%"||ne==="left"?"left":ne==="right"?"right":"center",Ue=l!=null||s!=null||f!=null||p!=null||S!=null||k!=null||I!=null||R!=null,ce=(t==null?void 0:t.hoverEffect)??Wt.hoverEffect,Te=!!(ce!=null&&ce.enabled),ue=(Ue||Te)&&o?`ahd-cb-${o}`:"",Ie=ue?`${ue}-align`:"",We=w!=null?`height: ${w}px !important;`:S==="auto"?"height: auto !important;":"",Re=C!=null?`height: ${C}px !important;`:k==="auto"||k==null&&S==="auto"?"height: auto !important;":"",Be=Ue?`
|
|
238
|
+
${ft} { .${ue} { width: ${de(se(c,b),e==null?void 0:e.margin)} !important; ${We} max-width: 100% !important; } }
|
|
239
|
+
${je} { .${ue} { width: ${de(se(u,x),e==null?void 0:e.margin)} !important; ${Re} max-width: 100% !important; } }
|
|
240
|
+
${ft} { .${Ie} { text-align: ${ge(T,c,b)} !important; } }
|
|
241
|
+
${je} { .${Ie} { text-align: ${ge(P,u,x)} !important; } }
|
|
242
|
+
`.trim():null,De=Te?`
|
|
243
|
+
.${ue} { transition: transform ${ce.duration??500}ms ${ce.easing??"ease-in-out"}; }
|
|
244
|
+
.${ue}:hover { transform: scale(${ce.scale??1.05}); }
|
|
245
|
+
`.trim():null,Q=[Be,De].filter(Boolean).join(`
|
|
246
|
+
`)||null,ie=ne=>{if(ne!=null)return typeof ne=="number"?`${ne}px`:`${ne.topLeft}px ${ne.topRight}px ${ne.bottomRight}px ${ne.bottomLeft}px`},Ne=(e==null?void 0:e.borderColor)??null,Fe=(e==null?void 0:e.borderWidth)??null,Le=Px(j(Ne),Fe),kt=zx(e==null?void 0:e.boxShadow),gt=Ex(j((e==null?void 0:e.backgroundColor)??"")),at=(e==null?void 0:e.backgroundSize)==="none",Ze=!at&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,_t=Mx(e==null?void 0:e.backgroundColor,Ze),it=_t?{colorScheme:"light"}:void 0,dn=at?void 0:(e==null?void 0:e.backgroundSize)??void 0,lt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",st=Ne&&(Ne.includes("linear-gradient")||Ne.includes("radial-gradient")||Ne.includes("repeating-linear-gradient")),qe=L!=null,J=qe?{"--ahd-cb-h":`${L}px`}:{},Se=qe?" container-block-has-height":"";if(st){const ne={...Le,borderRadius:ie(e==null?void 0:e.borderRadius),width:Z,maxWidth:"100%",height:qe?`${L}px`:void 0,boxSizing:"border-box",...Y(M,e==null?void 0:e.margin,B==="100%"),...X?{display:"inline-block"}:{},...kt,...J},le={...gt,...it,backgroundImage:_t,backgroundSize:dn,backgroundRepeat:lt,borderRadius:jx((e==null?void 0:e.borderRadius)??0,Fe),overflow:y?"auto":"hidden",padding:ji(e==null?void 0:e.padding),width:"100%",height:qe?"100%":void 0,boxSizing:"border-box"},Ve=`container-block${y?" container-block-overflow":""}${Se}${ue?` ${ue}`:""}`,et=`container-block-inner${y?" container-block-overflow":""}`,xt=he?{...ne,...ee.style,...X?{display:"inline-block"}:{}}:ne,hn=g.jsx(pe,{className:Ve,"aria-label":z,id:F,...ee,style:xt,children:g.jsx("div",{className:et,style:le,children:n})});return g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),X?g.jsx("div",{className:Ie,style:X,children:hn}):hn]})}const Ce={...gt,...it,backgroundImage:_t,backgroundSize:dn,backgroundRepeat:lt,...Le,borderRadius:ie(e==null?void 0:e.borderRadius),padding:ji(e==null?void 0:e.padding),...Y(M,e==null?void 0:e.margin,B==="100%"),width:Z,maxWidth:"100%",height:qe?`${L}px`:void 0,overflow:y?"auto":void 0,boxSizing:"border-box",...y?{}:{display:"flow-root"},...X?{display:"inline-block"}:{},...kt,...J},bt=`container-block${y?" container-block-overflow":""}${Se}${ue?` ${ue}`:""}`,Ft=he?{...Ce,...ee.style,...X?{display:"inline-block"}:{}}:Ce;if(!n){const ne=g.jsx(pe,{className:bt,"aria-label":z,id:F,...ee,style:Ft});return g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),X?g.jsx("div",{className:Ie,style:X,children:ne}):ne]})}const Ht=g.jsx(pe,{className:bt,"aria-label":z,id:F,...ee,style:Ft,children:n});return g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),X?g.jsx("div",{className:Ie,style:X,children:Ht}):Ht]})}const Fx=A({style:Bx.shape.style,responsive:Ge,props:A({childrenIds:te($()).optional().nullable(),fullWidth:O().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:D([m().min(0),oe("auto")]).optional().nullable(),heightMobile:D([m().min(0),oe("auto")]).optional().nullable(),overflow:O().optional().nullable(),alignment:N(["left","center","right"]).optional().nullable(),alignmentTablet:N(["left","center","right"]).optional().nullable(),alignmentMobile:N(["left","center","right"]).optional().nullable(),tag:N(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:A({enabled:O(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:N(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()});function Ms({style:e,props:t,blockId:n}){const o=(t==null?void 0:t.childrenIds)??[];return g.jsx(Dx,{style:e,blockId:n,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,hoverEffect:(t==null?void 0:t.hoverEffect)??void 0},children:o.map(r=>g.jsx(Ae,{id:r},r))})}const Hx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Gx=$().regex(/^rgba?\([^\)]+\)$/i),Ux=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Wx=oe("transparent"),Kt=D([Hx,Gx,Ux,Wx]).nullable().optional(),Zx=N(["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(),Vx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Go=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Uo=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),qx=$().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(),Yx=A({color:Kt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable(),Kx=A({position:N(["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:O().optional().default(!0),selector:$().optional().default(""),showCloseIcon:O().optional(),iconCloseColor:Kt,closeIconPosition:N(["left","center","right"]).optional(),closeIconPaddingTop:m().optional(),closeIconPaddingLeft:m().optional(),closeIconPaddingRight:m().optional(),bannerSubType:$().optional()}).passthrough().optional().nullable(),Jx=te(A({id:$(),name:$(),type:$().optional().default("text"),value:$().optional()})).optional().nullable(),Xx=A({formFields:Jx,backdropColor:Kt.default(null),borderColor:Kt.default(null),borderRadius:m().optional().nullable(),canvasColor:Kt.default(null),textColor:Kt,fontFamily:Zx,childrenIds:te($()).optional().nullable(),maxWidth:$().default(""),maxHeight:$().default(""),top:$().default(""),left:$().default(""),padding:Go,margin:Uo,maxWidthTablet:$().optional().nullable(),maxWidthMobile:$().optional().nullable(),maxHeightTablet:$().optional().nullable(),maxHeightMobile:$().optional().nullable(),paddingTablet:Go,paddingMobile:Go,marginTablet:Uo,marginMobile:Uo,borderWidth:Vx,boxShadow:Yx,behaviour:Kx,linkHref:$().optional().default(""),backgroundImage:$().default("").nullable().optional(),backgroundSize:qx,backgroundRepeat:N(["repeat","no-repeat"]).optional().nullable()}),Qx=()=>null,ev="INTER";function tv(e){return e||ev}function Zt(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function Vn(e,t,n){const o=e??{},r=o[t];if(n==="desktop")return Zt(r)?r:null;const i=o[`${t}Tablet`];if(n==="tablet")return Zt(i)?i:Zt(r)?r:null;const a=o[`${t}Mobile`];return Zt(a)?a:Zt(i)?i:Zt(r)?r:null}function Wo(e,t){return{maxWidth:Vn(e,"maxWidth",t)??null,maxHeight:Vn(e,"maxHeight",t)??null,padding:Vn(e,"padding",t)??null,margin:Vn(e,"margin",t)??null}}function nv(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function ov(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Zo(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:${nv(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${ov(t.margin)};}`),n.join("")}function rv(e,t,n){const o=`.${e}`,r={width:`${o} .ahd-layout-sizer`,table:`${o} .ahd-layout-table`,padding:`${o} .email-layout-content`,margin:`${o} .email-layout-content`},i=Wo(t,"desktop"),a=Zo(r,{...i,maxWidth:i.maxWidth??n??null}),l=Zo(r,Wo(t,"tablet")),s=Zo(r,Wo(t,"mobile")),c=(u,h)=>h?`@media (max-width:${u}px){${h}}@container ahd-page (max-width:${u}px){${h}}`:"";return[a,c(Pe,l),c(Oe,s)].filter(Boolean).join("")}const av="Made with Page Pilot",iv="https://pagepilot.fabbuilder.com";let lv=0;function sv(e){switch(tv(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'}}function cv(e){const{borderColor:t,borderWidth:n,borderRadius:o}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const r=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=o??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(r){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 uv(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:o=0,blur:r=0,spread:i=0,inset:a=!1}=e,l=uv(t);return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${l}`}}function dv(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 hv(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 fv(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function mv(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=fv(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function pv({position:e,color:t}){const r="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:r,width:16,height:8,clipPath:a};break;case"top-right":u={top:-8,right:r,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:r,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:r,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 g.jsx("div",{"aria-hidden":!0,style:{...i,...u}})}function gv({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:r}){const i=e||"#262626",a=t??"right",l=typeof n=="number"?n:2,u=a==="left"?{left:typeof o=="number"?o:2}:a==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof r=="number"?r:2};return g.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:g.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:[g.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),g.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function bv(){return g.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:"light-dark(#8a8a8a, #9a9a9a)",marginTop:8},children:g.jsx("a",{href:iv,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:av})})}function xv(e){var ve,K,L,B,Z,W,X,ge,Ue,ce,Te,ue,Ie,We,Re,Be,De,Q;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",o=n.includes("page")?"page":"",r=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"],h=Tm(),d=(ve=Qx())==null?void 0:ve.getState(),f=(B=(L=(K=d==null?void 0:d.appBanner)==null?void 0:K.view)==null?void 0:L.record)==null?void 0:B.type,p=h??f,b=o==="page"||h==="page",x=r&&(p==="floater"||((Z=e.behaviour)==null?void 0:Z.bannerSubType)==="floater"||u.includes((W=e.behaviour)==null?void 0:W.position)),v=r&&(p==="modal"||((X=e.behaviour)==null?void 0:X.bannerSubType)==="modal"),S=(c||x||v)&&((ge=e.behaviour)==null?void 0:ge.showCloseIcon)!==!1,w=c&&!0,C=r&&e.linkHref?e.linkHref:null,y=U.useMemo(()=>`ahd-layout-${lv+=1}`,[]),I=rv(y,e,b||a?"100%":r&&!x?"900px":"320px"),R=(r||i)&&!!e.backgroundImage;e.borderRadius;const T=e.borderRadius??0,P=ie=>typeof ie=="number"?`${ie}px`:`${ie.topLeft}px ${ie.topRight}px ${ie.bottomRight}px ${ie.bottomLeft}px`,z=(ie=>ie==null?!1:typeof ie=="number"?ie>0:(ie.topLeft??0)>0||(ie.topRight??0)>0||(ie.bottomRight??0)>0||(ie.bottomLeft??0)>0)(T),F=ie=>C?g.jsx("a",{href:C,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:ie}):ie,H=cv({...e,borderColor:j(e.borderColor)??null}),V=r&&!!((Ue=e.boxShadow)!=null&&Ue.color)&&!!e.boxShadow.inset,q=r&&!V?Bi(e.boxShadow):{},he=V?Bi(e.boxShadow):{},ae=hv(((ce=e.behaviour)==null?void 0:ce.position)??"right"),pe=c&&!x&&!v&&((Te=e.behaviour)==null?void 0:Te.isCaret)!==!1,ee=j(e.canvasColor),se=xa(e.canvasColor)?{colorScheme:"light"}:void 0,fe=mv(ee,ae),Y=(((ue=e.margin)==null?void 0:ue.left)??0)+(((Ie=e.margin)==null?void 0:Ie.right)??0),de=Y>0?`calc(100% - ${Y}px)`:"100%";return F(g.jsxs("div",{className:y,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[I&&g.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),g.jsx("div",{style:{color:j(e.textColor??"#262626"),fontFamily:sv(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:g.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...v||x?null:{maxWidth:"100%"}},children:[pe&&g.jsx(pv,{position:ae,color:fe}),g.jsxs("div",{style:{position:"relative",borderRadius:P(T),...z?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...q},children:[V&&g.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:P(T),zIndex:1,...he}}),S&&g.jsx(gv,{color:(We=e.behaviour)==null?void 0:We.iconCloseColor,position:(Re=e.behaviour)==null?void 0:Re.closeIconPosition,paddingTop:(Be=e.behaviour)==null?void 0:Be.closeIconPaddingTop,paddingLeft:(De=e.behaviour)==null?void 0:De.closeIconPaddingLeft,paddingRight:(Q=e.behaviour)==null?void 0:Q.closeIconPaddingRight}),g.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:de,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",...v||x?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...dv(ee,e.backgroundImage,r?"appBanner":""),...se,borderCollapse:"separate",tableLayout:"fixed",...H,borderRadius:P(T),overflow:z?"clip":"visible",...R?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:g.jsx("tbody",{children:g.jsx("tr",{style:{width:"100%"},children:g.jsxs("td",{className:"email-layout-content",children:[t.map(ie=>g.jsx(Ae,{id:ie},ie)),w&&g.jsx(bv,{})]})})})})]})]})})]}))}const vv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Sv=$().regex(/^rgba?\([^\)]+\)$/i),wv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),$v=oe("transparent"),qn=D([vv,Sv,wv,$v]).nullable().optional(),kv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),_v=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Cv=N(["left","center","right"]).optional().nullable(),ho={min:1,max:20},fo={min:4,max:48},Ps=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),Av=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,yv=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,pn=(e,t,n)=>Math.min(Math.max(e,t),n),Di=e=>e?Ps(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Iv=A({style:A({backgroundColor:qn,textAlign:Cv,padding:kv,margin:_v}).optional().nullable(),props:A({stepperType:N(["dots","numeric","both"]).optional().nullable(),totalDots:m().min(ho.min).max(ho.max).optional().nullable(),activeIndex:m().min(1).optional().nullable(),activeColor:qn,inactiveColor:qn,dotSize:m().min(fo.min).max(fo.max).optional().nullable(),dotSpacing:m().min(0).max(40).optional().nullable(),numericColor:qn,numericFontSize:m().min(8).max(48).optional().nullable(),numericPosition:N(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),ct={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Rv({style:e,props:t}){const o=ba()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&o,a=pn((t==null?void 0:t.totalDots)??ct.totalDots,ho.min,ho.max),l=pn((t==null?void 0:t.dotSize)??ct.dotSize,fo.min,fo.max),s=pn((t==null?void 0:t.dotSpacing)??ct.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??ct.activeIndex,u=pn(c,1,a),h=j((t==null?void 0:t.activeColor)??ct.activeColor),d=j((t==null?void 0:t.inactiveColor)??ct.inactiveColor),f=(t==null?void 0:t.stepperType)??ct.stepperType,p=f==="numeric"||f==="both",b=f==="dots"||f==="both",x=(t==null?void 0:t.numericColor)??ct.numericColor,v=j(x),S=pn((t==null?void 0:t.numericFontSize)??ct.numericFontSize,8,48),k=(t==null?void 0:t.numericPosition)??ct.numericPosition,C={...Di((e==null?void 0:e.backgroundColor)??void 0),padding:Av(e==null?void 0:e.padding,i),margin:yv(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},y=p&&b&&(k==="above"||k==="below"),_={display:"inline-flex",flexDirection:y?"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:y?"8px":b?`${s}px`:"0px"},I={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},R=`${u}/${a}`,T=Ps(x),P={fontSize:`${S}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...T?{backgroundImage:v,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:v??void 0}},M=()=>p?g.jsx("span",{style:P,children:R}):null,z=()=>g.jsx("div",{style:I,"aria-hidden":"true",children:Array.from({length:a}).map((F,H)=>{const V=H===u-1,q={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:V?"scale(1.1)":"scale(1)",...Di(V?h:d)};return g.jsx("span",{style:q,"data-active":V?"true":"false"},H)})});return g.jsx("div",{className:"stepper-block",style:C,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":a,"aria-valuetext":`Step ${u} of ${a}`,"aria-label":`Step ${u} of ${a}`,children:g.jsxs("div",{style:_,children:[p&&k==="above"&&M(),p&&k==="left"&&M(),b&&z(),p&&k==="right"&&M(),p&&k==="below"&&M()]})})}const Nv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Tv=$().regex(/^rgba?\([^\)]+\)$/i),Ev=oe("transparent"),Vo=D([Nv,Tv,Ev]).nullable().optional(),Os=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Mv=Os,Pv=N(["left","center","right"]).optional().nullable(),Ov=["disc","circle","square","dash","arrow","check","cross","none"],Lv=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Fi={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},zv=A({text:$()}),jv=A({style:A({color:Vo,backgroundColor:Vo,textAlign:Pv,fontSize:m().min(1).max(200).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:D([m(),$()]).optional().nullable(),lineHeight:m().min(1).max(3).optional().nullable(),padding:Os,margin:Mv}).optional().nullable(),props:A({listType:N(["unordered","ordered"]).optional().nullable(),marker:N([...Ov,...Lv]).optional().nullable(),numberSuffix:ps(e=>e===""?void 0:e,N([".",")"]).optional().nullable()),startNumber:m().min(0).max(9999).optional().nullable(),markerColor:Vo,markerSize:m().min(1).max(200).optional().nullable(),itemGap:m().min(0).max(64).optional().nullable(),items:te(zv).optional().nullable()}).optional().nullable(),responsive:Ge}),At={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"}]},Hi=(e,t,n)=>Math.min(Math.max(e,t),n),Gi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ui=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="",o=e;for(const[r,i]of t)for(;o>=r;)n+=i,o-=r;return n},Wi=e=>{let t=e,n="";for(;t>0;){const o=(t-1)%26;n=String.fromCharCode(97+o)+n,t=Math.floor((t-1)/26)}return n||"a"},Bv=(e,t,n,o)=>{const r=n+t;switch(e){case"decimal-zero":return`${String(r).padStart(2,"0")}${o}`;case"lower-alpha":return`${Wi(r)}${o}`;case"upper-alpha":return`${Wi(r).toUpperCase()}${o}`;case"lower-roman":return`${Ui(r).toLowerCase()}${o}`;case"upper-roman":return`${Ui(r)}${o}`;case"decimal":default:return`${r}${o}`}};function Dv({style:e,props:t}){var v;const o=((t==null?void 0:t.listType)??At.listType)==="ordered",r=(t==null?void 0:t.marker)??(o?"decimal":At.marker),i=(t==null?void 0:t.numberSuffix)??At.numberSuffix,a=(t==null?void 0:t.startNumber)??At.startNumber,l=(t==null?void 0:t.markerColor)??At.markerColor,s=Hi((t==null?void 0:t.markerSize)??At.markerSize,1,200),c=Hi((t==null?void 0:t.itemGap)??At.itemGap,0,64),u=(v=t==null?void 0:t.items)!=null&&v.length?t.items:At.items.map(S=>({...S})),h=j(e==null?void 0:e.color),d=(e==null?void 0:e.textAlign)??"left",f={backgroundColor:j(e==null?void 0:e.backgroundColor),padding:Gi(e==null?void 0:e.padding),margin:Gi(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box",color:h,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},p={textAlign:"left"},b={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:j(l),fontSize:`${s}px`},x=S=>r==="none"?null:o?Bv(r,S,a,i):Fi[r]??Fi.disc;return g.jsx("div",{className:"list-block",style:f,children:g.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:d==="left"?"100%":"auto",maxWidth:"100%",marginLeft:d==="left"?void 0:"auto",marginRight:d==="center"?"auto":void 0},children:g.jsx("tbody",{children:u.map((S,k)=>{const w=x(k);return g.jsxs("tr",{children:[r!=="none"&&g.jsx("td",{style:b,children:w}),g.jsx("td",{style:{...p,paddingBottom:k<u.length-1?`${c}px`:0,width:d==="left"?"100%":void 0},children:S.text})]},k)})})})})}const Fv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Hv=$().regex(/^rgba?\([^\)]+\)$/i),Gv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Uv=oe("transparent"),Wv=D([Fv,Hv,Gv,Uv]).nullable().optional(),Zv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Vv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),yr=A({style:A({backgroundColor:Wv,padding:Zv,margin:Vv}).optional().nullable(),props:A({direction:N(["row","column"]).optional().nullable(),directionTablet:N(["row","column"]).optional().nullable(),directionMobile:N(["row","column"]).optional().nullable(),gap:m().optional().nullable(),gapTablet:m().optional().nullable(),gapMobile:m().optional().nullable(),alignment:N(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:N(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:N(["start","center","end","space-between"]).optional().nullable(),wrap:O().optional().nullable(),ariaLabel:$().optional().nullable()}).optional().nullable(),responsive:Ge}),Yn={direction:"row",gap:12,alignment:"start",wrap:!0},mo={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},qv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Yv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Zi(e,t,n,o){const r=e==="row"?mo[t]:"flex-start",i=e==="column"?mo[t]:"center";return`flex-direction:${e}!important;justify-content:${r}!important;align-items:${i}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${o}px!important;`}let Kv=0;function Jv({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??Yn.direction,r=(n==null?void 0:n.directionTablet)??o,i=(n==null?void 0:n.directionMobile)??r,a=(n==null?void 0:n.gap)??Yn.gap,l=(n==null?void 0:n.gapTablet)??a,s=(n==null?void 0:n.gapMobile)??l,c=(n==null?void 0:n.alignment)??Yn.alignment,u=(n==null?void 0:n.alignmentTablet)??c,h=(n==null?void 0:n.alignmentMobile)??u,d=(n==null?void 0:n.wrap)??Yn.wrap,f=(n==null?void 0:n.ariaLabel)??void 0,p=o,b=c,x=a,v=e==null?void 0:e.margin,S=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),k={display:"flex",flexDirection:p,gap:`${x}px`,justifyContent:p==="row"?mo[b]:"flex-start",alignItems:p==="column"?mo[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:j(e==null?void 0:e.backgroundColor),padding:qv(e==null?void 0:e.padding),margin:Yv(e==null?void 0:e.margin),boxSizing:"border-box",width:S>0?`max(0px, calc(100% - ${S}px))`:"100%"},w=U.useMemo(()=>`ahd-bg-${Kv+=1}`,[]),C=U.useMemo(()=>{const y=`.${w}`;let _="";return(r!==o||u!==c||l!==a)&&(_+=`@media (max-width:${Pe}px){${y}{${Zi(r,u,d,l)}}}`),(i!==r||h!==u||s!==l)&&(_+=`@media (max-width:${Oe}px){${y}{${Zi(i,h,d,s)}}}`),_},[w,o,r,i,c,u,h,a,l,s,d]);return g.jsxs("div",{className:`button-group ${w}`,style:k,role:"group","aria-label":f,children:[C&&g.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),t]})}const Xv=yr.shape.props.unwrap().unwrap().shape,Qv=A({style:yr.shape.style,props:A({...Xv,childrenIds:te($()).optional().nullable()}).optional().nullable(),responsive:yr.shape.responsive});function e1({style:e,props:t}){const{childrenIds:n,...o}=t??{},r=(n??[]).map(i=>g.jsx(Ae,{id:i},i));return g.jsx(Jv,{style:e,props:o,buttons:r})}const t1=A({titleChildrenIds:te($()).optional().nullable(),contentChildrenIds:te($()).optional().nullable()}),n1=A({responsive:Ge,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),marginBottom:m().optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({items:te(t1).min(1).max(25).optional().nullable(),iconColor:$().optional().nullable(),iconSize:m().optional().nullable(),defaultOpen:O().optional().nullable(),activeBorderColor:$().optional().nullable()}).optional().nullable()});function o1(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 Vi=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function r1(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),o=e.split(" ").map(r=>Math.max(0,parseFloat(r)-n));return o.length===1?`${o[0]}px`:o.map(r=>`${r}px`).join(" ")}function a1({style:e,props:t}){const n=U.useMemo(()=>{const _=t==null?void 0:t.items;return!_||_.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:_[0].titleChildrenIds??[],contentChildrenIds:_[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),o=U.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),r=`${o}-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=t==null?void 0:t.activeBorderColor,c=e==null?void 0:e.borderColor,u=j(s),h=j(c),d=j(e==null?void 0:e.backgroundColor),f=j("#ffffff"),p=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},b=`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`,x=o1(e==null?void 0:e.borderRadius),v=Vi(c),S=Vi(s),k=v||S,w={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:x,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&&(w.overflow="hidden"),k?(w.padding=b,v?w.background=c:c&&(w.borderStyle="solid",w.borderColor=h,w.borderWidth=b)):c&&(w.borderStyle="solid",w.borderColor=h,w.borderWidth=b);const C={background:d??(k?f:void 0),borderRadius:k?r1(x,p):void 0,padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,overflow:k&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},y=[];return s&&(S?y.push(`#${o}:checked + .email-accordion-root { background:${s}!important; border-style:none!important; padding:${b}!important; }`):y.push(`#${o}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${u}!important; border-width:${b}!important; ${k?"padding:0!important;":""} }`)),g.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[g.jsx("style",{children:`
|
|
247
247
|
.email-accordion-root { width:100%; }
|
|
248
248
|
.email-accordion-toggle { display:none; }
|
|
249
249
|
.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; }
|
|
@@ -252,51 +252,95 @@ ${y}
|
|
|
252
252
|
.email-accordion-content { display:none; padding:4px 12px; }
|
|
253
253
|
.email-accordion-toggle:checked + .email-accordion-root .email-accordion-content { display:block; }
|
|
254
254
|
.email-accordion-toggle:checked + .email-accordion-root .email-accordion-arrow { transform: rotate(180deg); }
|
|
255
|
-
${
|
|
255
|
+
${y.join(`
|
|
256
256
|
`)}
|
|
257
|
-
`}),g.jsx("input",{id:o,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":r,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),g.jsx("div",{className:"email-accordion-root",style:
|
|
258
|
-
.pacc-grid{display:grid;grid-template-columns:${
|
|
259
|
-
.pacc-grid-card{background:${c};border:${
|
|
260
|
-
${
|
|
257
|
+
`}),g.jsx("input",{id:o,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":r,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),g.jsx("div",{className:"email-accordion-root",style:w,children:g.jsxs("div",{className:"email-accordion-inner",style:C,children:[g.jsxs("label",{htmlFor:o,className:"email-accordion-label",children:[g.jsx("div",{className:"title",children:n.titleChildrenIds.map(_=>g.jsx(Ae,{id:_},_))}),g.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:j(t==null?void 0:t.iconColor)},children:g.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:g.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"})})})]}),g.jsx("div",{id:r,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(_=>g.jsx(Ae,{id:_},_))})]})})]})}const i1=A({label:$().optional().nullable(),cardChildrenIds:te($()).optional().nullable(),detailChildrenIds:te($()).optional().nullable()}),l1=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:m().optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),cardGap:m().optional().nullable(),equalCardWidth:O().optional().nullable(),cardBgColor:$().optional().nullable(),cardBorderColor:$().optional().nullable(),cardBorderWidth:m().optional().nullable(),cardBorderRadius:m().optional().nullable(),cardPadding:m().optional().nullable(),cardShadow:$().optional().nullable(),cardTextColor:$().optional().nullable(),cardFontSize:m().optional().nullable(),cardFontFamily:$().optional().nullable(),cardFontWeight:$().optional().nullable(),cardTextAlign:N(["left","center","right"]).optional().nullable(),cardHoverBgColor:$().optional().nullable(),cardHoverShadow:$().optional().nullable(),activeCardBgColor:$().optional().nullable(),activeCardBorderColor:$().optional().nullable(),activeCardShadow:$().optional().nullable(),activeCardTextColor:$().optional().nullable(),arrowColor:$().optional().nullable(),arrowActiveColor:$().optional().nullable(),arrowSize:m().optional().nullable(),detailBgColor:$().optional().nullable(),detailBorderColor:$().optional().nullable(),detailBorderWidth:m().optional().nullable(),detailBorderRadius:m().optional().nullable(),detailPadding:m().optional().nullable(),detailShadow:$().optional().nullable(),detailGap:m().optional().nullable(),rightCardWidth:m().optional().nullable(),cardListWidth:m().optional().nullable(),panelGap:m().optional().nullable()}).optional().nullable(),props:A({items:te(i1).min(1).max(10).optional().nullable(),defaultOpenIndex:m().optional().nullable(),accordionEnabled:O().optional().nullable(),detailPosition:N(["bottom","right"]).optional().nullable()}).optional().nullable()});function s1(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 c1({style:e,props:t}){const n=U.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Plan 1",cardChildrenIds:[],detailChildrenIds:[]}],[t==null?void 0:t.items]),o=U.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),r=(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=j((e==null?void 0:e.cardBgColor)??"#ffffff"),u=j((e==null?void 0:e.cardBorderColor)??"rgba(0,0,0,0.12)"),h=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,f=(e==null?void 0:e.cardPadding)??16,p=(e==null?void 0:e.cardShadow)??"none",b=j((e==null?void 0:e.cardTextColor)??"inherit"),x=(e==null?void 0:e.cardFontSize)??null,v=(e==null?void 0:e.cardFontFamily)??"inherit",S=(e==null?void 0:e.cardFontWeight)??"inherit",k=(e==null?void 0:e.cardTextAlign)??"left",w=j((e==null?void 0:e.cardHoverBgColor)??null),C=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",y=j(e==null?void 0:e.activeCardBgColor)??c,_=j(e==null?void 0:e.activeCardBorderColor)??u,I=(e==null?void 0:e.activeCardShadow)??p,R=j(e==null?void 0:e.activeCardTextColor)??b,T=j((e==null?void 0:e.arrowColor)??"currentColor"),P=j(e==null?void 0:e.arrowActiveColor)??T,M=(e==null?void 0:e.arrowSize)??13,z=j((e==null?void 0:e.detailBgColor)??"#f8fafc"),F=j((e==null?void 0:e.detailBorderColor)??"rgba(0,0,0,0.08)"),H=(e==null?void 0:e.detailBorderWidth)??1,V=(e==null?void 0:e.detailBorderRadius)??12,q=(e==null?void 0:e.detailPadding)??24,he=(e==null?void 0:e.detailShadow)??"none",ae=(e==null?void 0:e.detailGap)??12,pe=(e==null?void 0:e.rightCardWidth)??280,ee=e==null?void 0:e.padding,se={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:s1(e==null?void 0:e.borderRadius),padding:ee?`${ee.top}px ${ee.right}px ${ee.bottom}px ${ee.left}px`:void 0},fe=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,Y=x?`${x}px`:"inherit";if(!r){const K=`
|
|
258
|
+
.pacc-grid{display:grid;grid-template-columns:${fe};gap:${l}px;width:100%;box-sizing:border-box}
|
|
259
|
+
.pacc-grid-card{background:${c};border:${h}px solid ${u};border-radius:${d}px;padding:${f}px;box-sizing:border-box;box-shadow:${p};color:${b};font-size:${Y};font-family:${v};font-weight:${S};text-align:${k}}
|
|
260
|
+
${w?`.pacc-grid-card:hover{background:${w};box-shadow:${C}}`:`.pacc-grid-card:hover{box-shadow:${C}}`}
|
|
261
261
|
@media(max-width:640px){.pacc-grid{grid-template-columns:1fr}}
|
|
262
|
-
`;return g.jsxs("div",{style:
|
|
262
|
+
`;return g.jsxs("div",{style:se,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:K}}),g.jsx("div",{className:"pacc-grid",children:n.map((L,B)=>g.jsx("div",{className:"pacc-grid-card",children:(L.cardChildrenIds??[]).map(Z=>g.jsx(Ae,{id:Z},Z))},B))})]})}if(a==="bottom"){const K=n.map((B,Z)=>{const W=`#${o}-cb${Z}:checked ~ .pacc-wrap`;return`${W}{grid-template-columns:1fr}`+n.map((X,ge)=>ge!==Z?`${W} .pacc-item:nth-child(${ge+1}){display:none}`:"").join("")+`${W} .pacc-item:nth-child(${Z+1}){display:block}${W} .pacc-item:nth-child(${Z+1}) .pacc-card{background:${y};border-color:${_};box-shadow:${I};color:${R}}${W} .pacc-item:nth-child(${Z+1}) .pacc-arrow{transform:rotate(180deg);color:${P}}${W} .pacc-item:nth-child(${Z+1}) .pacc-detail{display:block}`}).join(""),L=`
|
|
263
263
|
.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}
|
|
264
|
-
.pacc-wrap{display:grid;grid-template-columns:${
|
|
264
|
+
.pacc-wrap{display:grid;grid-template-columns:${fe};gap:${l}px;width:100%;box-sizing:border-box}
|
|
265
265
|
.pacc-item{box-sizing:border-box}
|
|
266
|
-
.pacc-card{background:${c};border:${
|
|
267
|
-
${
|
|
268
|
-
.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:${
|
|
269
|
-
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${
|
|
270
|
-
.pacc-detail{display:none;margin-top:${
|
|
266
|
+
.pacc-card{background:${c};border:${h}px solid ${u};border-radius:${d}px;padding:${f}px;padding-right:${f+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:${k};color:${b};font-size:${Y};font-family:${v};font-weight:${S};box-shadow:${p}}
|
|
267
|
+
${w?`.pacc-card:hover{background:${w};box-shadow:${C}}`:`.pacc-card:hover{box-shadow:${C}}`}
|
|
268
|
+
.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}}
|
|
269
|
+
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${M}px;line-height:1}
|
|
270
|
+
.pacc-detail{display:none;margin-top:${ae}px;background:${z};border:${H}px solid ${F};border-radius:${V}px;padding:${q}px;box-sizing:border-box;box-shadow:${he}}
|
|
271
271
|
@media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}}
|
|
272
|
-
${
|
|
273
|
-
`;return g.jsxs("div",{style:
|
|
272
|
+
${K}
|
|
273
|
+
`;return g.jsxs("div",{style:se,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),n.map((B,Z)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${Z}`,className:"pacc-cb",defaultChecked:Z===i},Z)),g.jsx("div",{className:"pacc-wrap",children:n.map((B,Z)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${Z}`,className:"pacc-card",children:[(B.cardChildrenIds??[]).map(W=>g.jsx(Ae,{id:W},W)),g.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:g.jsx("i",{className:"bi bi-chevron-down"})})]}),g.jsx("div",{className:"pacc-detail",children:(B.detailChildrenIds??[]).map(W=>g.jsx(Ae,{id:W},W))})]},Z))})]})}const de=n.map((K,L)=>{const B=`#${o}-cb${L}:checked ~ .pacc-wrap`;return`${B}{grid-template-columns:1fr}`+n.map((Z,W)=>W!==L?`${B} .pacc-item:nth-child(${W+1}){display:none}`:"").join("")+`${B} .pacc-item:nth-child(${L+1}){display:flex;flex-direction:row;gap:${ae}px;align-items:flex-start}${B} .pacc-item:nth-child(${L+1}) .pacc-card{flex-shrink:0;width:${pe}px;background:${y};border-color:${_};box-shadow:${I};color:${R}}${B} .pacc-item:nth-child(${L+1}) .pacc-arrow{transform:rotate(90deg);color:${P}}${B} .pacc-item:nth-child(${L+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),ve=`
|
|
274
274
|
.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}
|
|
275
|
-
.pacc-wrap{display:grid;grid-template-columns:${
|
|
275
|
+
.pacc-wrap{display:grid;grid-template-columns:${fe};gap:${l}px;width:100%;box-sizing:border-box}
|
|
276
276
|
.pacc-item{box-sizing:border-box}
|
|
277
|
-
.pacc-card{background:${c};border:${
|
|
278
|
-
${
|
|
279
|
-
.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:${
|
|
280
|
-
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${
|
|
281
|
-
.pacc-detail{display:none;background:${z};border:${
|
|
277
|
+
.pacc-card{background:${c};border:${h}px solid ${u};border-radius:${d}px;padding:${f}px;padding-right:${f+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:${k};color:${b};font-size:${Y};font-family:${v};font-weight:${S};box-shadow:${p}}
|
|
278
|
+
${w?`.pacc-card:hover{background:${w};box-shadow:${C}}`:`.pacc-card:hover{box-shadow:${C}}`}
|
|
279
|
+
.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}}
|
|
280
|
+
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${M}px;line-height:1}
|
|
281
|
+
.pacc-detail{display:none;background:${z};border:${H}px solid ${F};border-radius:${V}px;padding:${q}px;box-sizing:border-box;box-shadow:${he}}
|
|
282
282
|
@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}}
|
|
283
|
-
${
|
|
284
|
-
`;return g.jsxs("div",{style:le,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Ce}}),n.map((W,L)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${L}`,className:"pacc-cb",defaultChecked:L===i},L)),g.jsx("div",{className:"pacc-wrap",children:n.map((W,L)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${L}`,className:"pacc-card",children:[(W.cardChildrenIds??[]).map(U=>g.jsx(ke,{id:U},U)),g.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:g.jsx("i",{className:"bi bi-chevron-right"})})]}),g.jsx("div",{className:"pacc-detail",children:(W.detailChildrenIds??[]).map(U=>g.jsx(ke,{id:U},U))})]},L))})]})}const Kx=160,Jx=A({label:k().optional().nullable(),contentChildrenIds:X(k()).optional().nullable()}),Xx=A({responsive:Be,style:A({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),tabActiveColor:k().optional().nullable(),tabActiveBgColor:k().optional().nullable(),tabInactiveTextColor:k().optional().nullable(),tabInactiveBgColor:k().optional().nullable(),tabInactiveBorderColor:k().optional().nullable(),tabInactiveBorderWidth:m().optional().nullable(),tabTextColor:k().optional().nullable(),tabBgColor:k().optional().nullable(),tabBorderRadius:m().optional().nullable(),tabGap:m().optional().nullable(),contentGap:m().optional().nullable(),navBorderColor:k().optional().nullable(),navWidth:m().optional().nullable(),fontSize:D([k(),m()]).optional().nullable(),lineHeight:D([k(),m()]).optional().nullable(),activeFontSize:D([k(),m()]).optional().nullable(),showActiveBorder:O().optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:k().optional().nullable()}).optional().nullable(),props:A({orientation:M(["horizontal","vertical"]).optional().nullable(),orientationTablet:M(["horizontal","vertical"]).optional().nullable(),orientationMobile:M(["horizontal","vertical"]).optional().nullable(),behavior:M(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:M(["left","center","right"]).optional().nullable(),dropdown:O().optional().nullable(),dropdownTablet:O().optional().nullable(),dropdownMobile:O().optional().nullable(),activeTabIndex:m().optional().nullable(),stickyNav:O().optional().nullable(),items:X(Jx).min(1).max(20).optional().nullable()}).optional().nullable()});function Qx(e){if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function ev(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 Ri(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const tv={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},nv={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function ot(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function no(e,t=!1){const n=t?"!important":"";return e?ot(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function oo(e,t=!1){const n=t?"!important":"";return ot(e)?`color:transparent${n}`:`color:${e}${n}`}function ro(e,t=!1){const n=t?"!important":"";return ot(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function xr(e,t,n,o=!1){const r=o?"!important":"";return ot(e)?`border-${n}-style:solid${r};border-${n}-width:${t}${r};border-image-source:${e}${r};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${r}`:`border-${n}-color:${e}${r}`}function ov(e,t,n=!1){const o=n?"!important":"";return e?ot(e)?`box-sizing:border-box${o};border:${t}px solid transparent${o};border-image-source:${e}${o};border-image-slice:1${o};box-shadow:none${o}`:`box-shadow:inset 0 0 0 ${t}px ${e}${o}`:`box-shadow:none${o}`}function zt(e,t,n,o,r,i,a,l){const s=ot(l),c=s?xr(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,u=s?xr(l,n,"right"):`border-right:${n} solid var(--ahd-tabs-nav-border,transparent)`;if(t==="horizontal")return`${e}{display:block}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${o};align-items:center;justify-content:${i};width:100%;${c};border-right:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .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:${r};margin-left:0}`;const f=`${a??Kx}px`,d=`var(--ahd-tabs-nav-width,${f})`,h=`width:var(--ahd-tabs-nav-width,${f});max-width:var(--ahd-tabs-nav-width,${f})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${r};align-items:start}${e} > .ahd-tabs-dd-wrap > .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;${h};min-width:0;overflow:visible;${u};border-bottom:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${o};white-space:normal!important;word-break:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;box-sizing:border-box}${e} > .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function rv(e,t,n,o,r,i,a,l,s,c,u,f,d,h,p,b,x=1){let w="";for(let $=0;$<p;$++){const y=`${e} #${h}-r${$}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${$+1})`;w+=`${y}{${no(a,!0)};${oo(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${ro(l,!0)}}${y}:hover{${no(a,!0)}}`}const v=`${e} > .ahd-tabs-dd-wrap`,_=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${v}:focus-within`,S=s?`${v} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${v}{display:block!important;position:relative!important;width:100%!important}${v} > .ahd-tabs-dd-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid ${t};border-radius:${o};background:${r};color:${i};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${v} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+S+`${v} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{display:inline-block;width:8px;height:8px;flex-shrink:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-2px;opacity:.7;transition:transform .15s ease}${_} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${v} > .ahd-tabs-nav{position:absolute!important;top:calc(100% + 4px)!important;left:0!important;right:0!important;z-index:30!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:auto!important;max-height:260px!important;width:auto!important;gap:0!important;border:1px solid ${t}!important;border-radius:${o}!important;background:#fff!important;box-shadow:0 6px 20px rgba(0,0,0,.12)!important;padding:4px!important;align-items:stretch!important;justify-content:flex-start!important;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .12s ease,transform .12s ease,visibility .12s}${_} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${v} > .ahd-tabs-nav > .ahd-tabs-label{display:flex!important;justify-content:flex-start!important;width:100%!important;box-sizing:border-box;border:0!important;border-radius:6px!important;margin:0!important;padding:9px 12px!important;${oo(c??"inherit",!0)};background:${u??"transparent"}!important;box-shadow:${f}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${v} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${ro(c??"inherit",!0)}}${v} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${v} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${u??"rgba(0,0,0,.05)"}!important}${e} > .ahd-tabs-panels{position:static!important;width:100%!important;margin:${n} 0 0 0!important;grid-column:auto!important}`+w}function Bo(e,t){return`${e} > .ahd-tabs-dd-wrap{display:contents!important;position:static!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:static!important;top:auto!important;z-index:auto!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;max-height:none!important;overflow:visible!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{border-radius:${t}!important;margin-top:0!important;box-shadow:none!important}`}function av({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",o=(t==null?void 0:t.orientationTablet)??n,r=(t==null?void 0:t.orientationMobile)??"vertical",a=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=F.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=F.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=(e==null?void 0:e.tabActiveColor)??void 0,f=(e==null?void 0:e.tabActiveBgColor)??void 0,d=(e==null?void 0:e.tabInactiveTextColor)??void 0,h=(e==null?void 0:e.tabInactiveBgColor)??void 0,p=(e==null?void 0:e.tabInactiveBorderColor)??void 0,b=(e==null?void 0:e.tabInactiveBorderWidth)??1,x=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",w=(e==null?void 0:e.tabTextColor)??void 0,v=(e==null?void 0:e.tabBgColor)??"transparent",_=(e==null?void 0:e.navBorderColor)??void 0,S=_?"2px":"0px",$=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",y=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",C=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,R="var(--ahd-tabs-tab-gap,"+$+")",I="var(--ahd-tabs-content-gap,"+y+")",E=(e==null?void 0:e.activeFontSize)!=null?Ri(e.activeFontSize):void 0,T=((e==null?void 0:e.showActiveBorder)??!0)&&!f?u||"currentColor":"transparent",z=(t==null?void 0:t.tabsAlign)??"left",H=z==="center"?"center":z==="right"?"flex-end":"flex-start",Z=(t==null?void 0:t.dropdown)??!1,j=(t==null?void 0:t.dropdownTablet)??Z,V=(t==null?void 0:t.dropdownMobile)??j,Y=e==null?void 0:e.padding,K=e==null?void 0:e.margin,G=((K==null?void 0:K.left)??0)+((K==null?void 0:K.right)??0),oe=ot(e==null?void 0:e.borderColor),le=e!=null&&e.borderColor?oe?{border:"1px solid transparent",borderImageSource:e.borderColor,borderImageSlice:1}:{border:`1px solid ${e.borderColor}`}:{},se={width:G>0?`calc(100% - ${G}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,...le,borderRadius:ev(e==null?void 0:e.borderRadius),padding:Y?`${Y.top}px ${Y.right}px ${Y.bottom}px ${Y.left}px`:void 0,margin:K?`${K.top}px ${K.right}px ${K.bottom}px ${K.left}px`:void 0,fontFamily:Qx(e==null?void 0:e.fontFamily),fontSize:Ri(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5,color:w,"--ahd-tabs-nav-border":_??"transparent"},ce=()=>s.map((L,U)=>g.jsx("input",{type:"radio",id:`${c}-r${U}`,name:c,className:"ahd-tabs-radio",defaultChecked:U===0,style:tv},U)),Ee=F.useMemo(()=>{const L=`.${c}`,U=u||"currentColor",q=w||"inherit",J=`${L} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,Ae=`${J} > .ahd-tabs-label-text`,Q=`${L} > .ahd-tabs-panels > .ahd-tabs-panel`,ye=d??q;let ue=`${J}{${oo(ye)};${no(h)};${ov(p,b)};border-radius:${x}}${Ae}{${ro(ye)}}`+(a?"":`${Q}{display:none}`)+`${L} > .ahd-tabs-dd-wrap{display:contents}${L} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${L} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((Re,Fe)=>{const Ve=`#${c}-r${Fe}:checked`,at=`${Ve} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${Fe+1})`,Et=`${Ve} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${Fe+1})`,it=ot(T),dt=`${oo(U,!0)};${no(f,!0)};box-shadow:none!important`+(it?`;${xr(T,"3px",n==="vertical"?"left":"bottom",!0)}`:`;border-left-color:var(--ahd-tabs-active-border-color,${T})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${T})!important`);ue+=`${at}{${dt}}`,ue+=`${at} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${E??"inherit"})!important;${ro(U,!0)}}`,a||(ue+=`${Et}{display:block!important}`),ue+=`${Ve} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${Fe+1}){display:inline}`}),ue+=zt(L,n,S,R,I,H,C!=null?String(C):void 0,_??void 0),o!==n&&(ue+=`${Do}{${zt(L,o,S,R,I,H,C!=null?String(C):void 0,_??void 0)}}`),r!==o&&(ue+=`${Fo}{${zt(L,r,S,R,I,H,C!=null?String(C):void 0,_??void 0)}}`);const _e=p||_||"#d0d5dd",Ie=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",re=(e==null?void 0:e.tabBgColor)??"#fff",wt=w??"inherit",we=f??"transparent",De=u??"inherit",ne=p?ot(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",pe=ot(p)?p:void 0,Se=rv(L,_e,I,Ie,re,wt,we,De,E,d,h,ne,R,c,s.length,pe,b);return l&&(ue+=`${L} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${L}){position:sticky;top:0;z-index:50}`),Z?(ue+=Se,j||(ue+=`${Do}{${Bo(L,x)}${zt(L,o,S,R,I,H,C!=null?String(C):void 0,_??void 0)}}`),!V&&j&&(ue+=`${Fo}{${Bo(L,x)}${zt(L,r,S,R,I,H,C!=null?String(C):void 0,_??void 0)}}`)):(j&&(ue+=`${Do}{${Se}}`),V!==j&&(ue+=`${Fo}{${V?Se:Bo(L,x)+zt(L,r,S,R,I,H,C!=null?String(C):void 0,_??void 0)}}`)),ue},[s,c,u,f,x,w,E,T,n,o,r,a,S,_,C,R,I,H,d,h,p,b,Z,j,V,l]),Ce=L=>a?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:L===0?void 0:I}:{display:L===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},W=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return g.jsxs("div",{className:`${c} ahd-tabs ${W}${l?" ahd-tabs-sticky":""}${a?" ahd-tabs-scroll-sections":""}`,style:se,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Ee}}),ce(),g.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[g.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[g.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((L,U)=>g.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":U,children:L.label??`Tab ${U+1}`},U))}),g.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),g.jsx("div",{className:"ahd-tabs-nav",style:{background:v,...l?{position:"sticky",top:0}:{}},children:s.map((L,U)=>g.jsx("label",{htmlFor:`${c}-r${U}`,className:"ahd-tabs-label","data-ahd-tab-index":U,tabIndex:-1,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:n==="vertical"?"normal":"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative",outline:"none"},children:g.jsx("span",{className:"ahd-tabs-label-text",style:nv,children:L.label??`Tab ${U+1}`})},U))})]}),g.jsx("div",{className:"ahd-tabs-panels",children:s.map((L,U)=>g.jsx("div",{id:`${c}-panel-${U}`,className:"ahd-tabs-panel","data-ahd-tab-index":U,style:Ce(U),children:(L.contentChildrenIds??[]).map(q=>g.jsx(ke,{id:q},q))},U))})]})}const Do=`@media (max-width:${Ue}px)`,Fo=`@media (max-width:${Le}px)`,iv=A({contentChildrenIds:X(k()).optional().nullable()}),lv=A({style:A({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),slideGap:m().optional().nullable(),arrowColor:k().optional().nullable(),arrowBgColor:k().optional().nullable(),arrowBorderColor:k().optional().nullable(),arrowSize:m().min(16).max(80).optional().nullable(),dotColor:k().optional().nullable(),dotActiveColor:k().optional().nullable(),dotSize:m().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({slidesPerView:m().min(1).max(6).optional().nullable(),slidesPerViewTablet:m().min(1).max(6).optional().nullable(),slidesPerViewMobile:m().min(1).max(6).optional().nullable(),showArrows:O().optional().nullable(),showDots:O().optional().nullable(),autoplay:O().optional().nullable(),autoplayInterval:m().min(500).max(2e4).optional().nullable(),loop:O().optional().nullable(),transitionMs:m().min(0).max(3e3).optional().nullable(),items:X(iv).min(1).max(20).optional().nullable()}).optional().nullable()});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`}const cv="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",uv="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Ei=({d:e,size:t=20})=>g.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{d:e})});function dv({style:e,props:t}){const n=F.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),o=F.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),r=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(r,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,f=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,h=(e==null?void 0:e.slideGap)??16,p=(e==null?void 0:e.arrowColor)??"#262626",b=(e==null?void 0:e.arrowBgColor)??"#ffffff",x=(e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)",w=(e==null?void 0:e.arrowSize)??40,v=(e==null?void 0:e.dotColor)??"#d4d4d4",_=(e==null?void 0:e.dotActiveColor)??"#262626",S=(e==null?void 0:e.dotSize)??8,$=Math.max(12,Math.min(40,Math.round(w*.5))),y=e==null?void 0:e.padding,C=e==null?void 0:e.margin,R=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),I={width:R>0?`calc(100% - ${R}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:sv(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:C?`${C.top}px ${C.right}px ${C.bottom}px ${C.left}px`:void 0},E=F.useMemo(()=>{const H=`.${o}`,Z=j=>`calc((100% - ${h*(j-1)}px) / ${j})`;return`${H} .ahd-carousel-viewport{overflow:hidden;width:100%}${H} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${h}px);transition:transform ${d}ms ease;will-change:transform}${H} .ahd-carousel-slide{flex:0 0 ${Z(r)};min-width:0;box-sizing:border-box}${H} .ahd-carousel-prev svg,${H} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${$}px);height:var(--ahd-carousel-chevron-size,${$}px)}@media (max-width:${Ue}px){${H} .ahd-carousel-slide{flex-basis:${Z(i)}}}@media (max-width:${Le}px){${H} .ahd-carousel-slide{flex-basis:${Z(a)}}}`},[o,h,d,r,i,a,$]),P={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${w}px)`,height:`var(--ahd-carousel-arrow-size, ${w}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${w}px)`,borderRadius:"50%",border:`1px solid ${x}`,backgroundColor:b,backgroundImage:"none",color:p,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},T=Math.min(r,i,a),z=Math.max(1,n.length-T+1);return g.jsxs("div",{className:`${o} ahd-carousel`,style:I,"data-per-view":r,"data-per-view-tablet":i,"data-per-view-mobile":a,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":f?"1":"0",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&g.jsx("button",{type:"button",className:"ahd-carousel-prev",style:P,"aria-label":"Previous slide",children:g.jsx(Ei,{d:cv,size:$})}),g.jsx("div",{className:"ahd-carousel-viewport",children:g.jsx("div",{className:"ahd-carousel-track",children:n.map((H,Z)=>g.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":Z,children:(H.contentChildrenIds??[]).map(j=>g.jsx(ke,{id:j},j))},Z))})}),l&&g.jsx("button",{type:"button",className:"ahd-carousel-next",style:P,"aria-label":"Next slide",children:g.jsx(Ei,{d:uv,size:$})})]}),s&&z>1&&g.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":v,"data-dot-active-color":_,children:Array.from({length:z}).map((H,Z)=>g.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":Z,"aria-label":`Go to slide ${Z+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${S}px)`,height:`var(--ahd-carousel-dot-size, ${S}px)`,minWidth:`var(--ahd-carousel-dot-size, ${S}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:Z===0?_:v,backgroundImage:"none"}},Z))})]})}const hv=A({style:A({starColor:k().optional().nullable(),starEmptyColor:k().optional().nullable(),starSize:m().min(8).max(80).optional().nullable(),starGap:m().min(0).max(40).optional().nullable(),textColor:k().optional().nullable(),fontSize:D([k(),m()]).optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:k().optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({value:D([m(),k()]).optional().nullable(),max:D([m(),k()]).optional().nullable(),showValue:O().optional().nullable()}).optional().nullable()}),Ni="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 fv(e){if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function pv(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function mv({fillPct:e,size:t,filledColor:n,emptyColor:o}){return g.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:[g.jsx("svg",{viewBox:"0 0 24 24",fill:o,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:g.jsx("path",{d:Ni})}),g.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:g.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:g.jsx("path",{d:Ni})})})]})}function gv({style:e,props:t}){const n=F.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(w,v)=>{if(typeof w=="number")return Number.isFinite(w)?w:v;const _=parseFloat(String(w??""));return Number.isFinite(_)?_:v},r=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(r,o(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,f=(e==null?void 0:e.textColor)??"#262626",d=(e==null?void 0:e.textAlign)??"left",h=e==null?void 0:e.padding,p=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:f,fontFamily:fv(e==null?void 0:e.fontFamily),fontSize:pv(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:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,boxSizing:"border-box"},x=w=>{const v=i-w;return v>=1?100:v>=.5?50:v>0?Math.round(v*100):0};return g.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[g.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${u}px)`},children:Array.from({length:r}).map((w,v)=>g.jsx(mv,{fillPct:x(v),size:c,filledColor:l,emptyColor:s},v))}),a&&g.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(i)?i:i.toFixed(1),g.jsxs("span",{style:{opacity:.55},children:["/",r]})]})]})}const bv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),xv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),vv=A({style:A({trackColor:k().optional().nullable(),fillColor:k().optional().nullable(),textColor:k().optional().nullable(),fontSize:D([k(),m()]).optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:k().optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),barHeight:m().min(2).max(60).optional().nullable(),barRadius:m().min(0).max(40).optional().nullable(),circleSize:m().min(40).max(320).optional().nullable(),strokeWidth:m().min(2).max(40).optional().nullable(),stepSize:m().min(4).max(48).optional().nullable(),stepGap:m().min(0).max(40).optional().nullable(),padding:bv,margin:xv}).optional().nullable(),props:A({variant:M(["linear","circular","steps"]).optional().nullable(),value:D([m(),k()]).optional().nullable(),max:D([m(),k()]).optional().nullable(),showLabel:O().optional().nullable(),labelFormat:M(["percent","fraction"]).optional().nullable(),steps:m().min(2).max(20).optional().nullable(),striped:O().optional().nullable(),animated:O().optional().nullable()}).optional().nullable()});function wv(e){if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Sv(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Mi(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function Ti(e,t,n,o){return o==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function kv({pct:e,label:t,trackColor:n,fillColor:o,barHeight:r,barRadius:i,striped:a,animated:l,ariaLabel:s,value:c,max:u}){const f=a&&l;return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[f&&g.jsx("style",{dangerouslySetInnerHTML:{__html:"@keyframes ahd-progress-stripes{from{background-position:1rem 0}to{background-position:0 0}}.ahd-progress-animated{animation:ahd-progress-stripes 1s linear infinite}@media (prefers-reduced-motion: reduce){.ahd-progress-animated{animation:none}}"}}),g.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":u,"aria-label":s,style:{width:"100%",height:r,borderRadius:i,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:g.jsx("div",{className:`ahd-progress-fill${a?" ahd-progress-striped":""}${f?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:i,backgroundColor:o,backgroundImage:a?"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)":void 0,backgroundSize:a?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&g.jsx("span",{children:t})]})}function _v({pct:e,label:t,trackColor:n,fillColor:o,size:r,strokeWidth:i,textColor:a,ariaLabel:l,value:s,max:c}){const u=(r-i)/2,f=2*Math.PI*u,d=f*(1-e/100),h=r/2;return g.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{position:"relative",width:r,height:r,display:"inline-flex"},children:[g.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,children:[g.jsx("circle",{cx:h,cy:h,r:u,fill:"none",stroke:n,strokeWidth:i}),g.jsx("circle",{cx:h,cy:h,r:u,fill:"none",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeDasharray:f,strokeDashoffset:d,transform:`rotate(-90 ${h} ${h})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&g.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:a,fontWeight:600},children:t})]})}function $v({steps:e,activeIndex:t,trackColor:n,fillColor:o,stepSize:r,stepGap:i,label:a,ariaLabel:l,value:s,max:c}){return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[g.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:i},children:Array.from({length:e}).map((u,f)=>g.jsx("span",{"data-active":f<t?"true":"false",style:{width:r,height:r,borderRadius:"50%",backgroundColor:f<t?o:n,transition:"background-color 200ms ease",display:"inline-block"}},f))}),a!=null&&g.jsx("span",{children:a})]})}function Cv({style:e,props:t}){const n=F.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.variant)??"linear",r=Math.max(1,Mi(t==null?void 0:t.max,100)),i=Math.max(0,Math.min(r,Mi(t==null?void 0:t.value,0))),a=i/r*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",c=l?Ti(a,i,r,s):null,u=`Progress: ${Ti(a,i,r,"percent")}`,f=(e==null?void 0:e.trackColor)??"#e5e7eb",d=(e==null?void 0:e.fillColor)??"#3F73FF",h=(e==null?void 0:e.textColor)??"#262626",p=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w={display:"flex",justifyContent:p==="center"?"center":p==="right"?"flex-end":"flex-start",color:h,fontFamily:wv(e==null?void 0:e.fontFamily),fontSize:Sv((e==null?void 0:e.fontSize)??13),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,boxSizing:"border-box"},v=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),_=Math.round(a/100*v);return g.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:o==="circular"?g.jsx(_v,{pct:a,label:c,trackColor:f,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:h,ariaLabel:u,value:i,max:r}):o==="steps"?g.jsx($v,{steps:v,activeIndex:_,trackColor:f,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:c,ariaLabel:u,value:i,max:r}):g.jsx(kv,{pct:a,label:c,trackColor:f,fillColor:d,barHeight:(e==null?void 0:e.barHeight)??12,barRadius:(e==null?void 0:e.barRadius)??6,striped:(t==null?void 0:t.striped)??!1,animated:(t==null?void 0:t.animated)??!1,ariaLabel:u,value:i,max:r})})}const Av=A({responsive:Be,style:A({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(200).optional().nullable(),viewportHeight:m().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:M(["left","right","up","down"]).optional().nullable(),speed:m().min(5).max(200).optional().nullable(),pauseOnHover:O().optional().nullable(),repeat:m().min(2).max(6).optional().nullable(),fadeEdges:O().optional().nullable(),verticalAlign:M(["top","middle","bottom"]).optional().nullable(),items:X(A({contentChildrenIds:X(k()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),yv=40,Iv=32,Rv=200,ps=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,ms=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,Ev=e=>Math.max(2,Math.round(1200/e)),Nv=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),gs=e=>e==="up"||e==="down",Mv=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",ao=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function Tv(e,t){return{speed:ms(t==null?void 0:t.speed,yv),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??Iv,viewportHeight:ps(e==null?void 0:e.viewportHeight,Rv)}}function Pv(e,t,n){var r,i,a,l,s;const o=e==null?void 0:e[t];return{speed:ms((r=o==null?void 0:o.props)==null?void 0:r.speed,n.speed),pauseOnHover:((i=o==null?void 0:o.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((a=o==null?void 0:o.props)==null?void 0:a.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:ps((s=o==null?void 0:o.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const Ov=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Pi=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${Ev(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,Lv=(e,t)=>e.fadeEdges?`-webkit-mask-image:${ao(t)}!important;mask-image:${ao(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function zv({instanceId:e,direction:t,repeat:n,desktop:o,responsive:r,verticalAlign:i}){const a=`.${e}`,l=gs(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":Mv(i),f=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${f}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${f}%)}}`,h=(b,x)=>{if(!Ov(r,x))return"";const w=Pv(r,x,o);return`${b}{${a}{${Pi(w)};${Lv(w,l)}}}`},p=l?`${a} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${a} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${a}{${Pi(o)}}`+p+`${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(It,"tablet")+h(Oe,"mobile")+`@media (prefers-reduced-motion: reduce){${a} .ahd-marquee-track{animation:none}}`}function jv(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 Bv(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,o=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:o>0?`${o}px solid ${e}`:void 0}}function Dv({style:e,props:t,responsive:n}){const o=F.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),r=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",a=Nv(t==null?void 0:t.repeat),l=gs(i),s=Tv(e,t),c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,f=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:f>0?`calc(100% - ${f}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,...Bv(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:jv(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:ao(l),maskImage:ao(l)}:{}},h=(t==null?void 0:t.verticalAlign)??"middle",p=F.useMemo(()=>zv({instanceId:o,direction:i,repeat:a,desktop:s,responsive:n,verticalAlign:h}),[o,i,a,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,h]),b=x=>g.jsx("div",{className:"ahd-marquee-group","aria-hidden":x>0?!0:void 0,children:r.map((w,v)=>g.jsx("div",{className:"ahd-marquee-item",children:(w.contentChildrenIds??[]).map(_=>g.jsx(ke,{id:_},_))},v))},x);return g.jsxs("div",{className:`${o} ahd-marquee`,style:d,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:p}}),g.jsx("div",{className:"ahd-marquee-viewport",children:g.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:a}).map((x,w)=>b(w))})})]})}const Fv=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),Hv=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),Gv=A({style:A({backgroundColor:k().optional().nullable(),textColor:k().optional().nullable(),accentColor:k().optional().nullable(),numberColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:Fv,margin:Hv}).optional().nullable(),props:A({layout:M(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:k().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:O().default(!0),expiredBehavior:M(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:k().default("Offer has ended")}).optional().nullable()});function Uv(e){return String(Math.max(0,e)).padStart(2,"0")}function Zv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l}){const s=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:o,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:s.map(c=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[g.jsx("div",{"data-ahd-timer-unit":c.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:i??"#1f1f1f",color:l??"#ffffff",fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:Uv(c.value)}),r&&g.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:c.label})]},c.label))})}function Wv(e){return String(Math.max(0,e)).padStart(2,"0")}const vr=26,Oi=2*Math.PI*vr;function qv({value:e,max:t,accentColor:n,numberColor:o,unit:r}){const i=t>0?Math.min(1,Math.max(0,e/t)):0,a=Oi*(1-i);return g.jsxs("svg",{"data-ahd-timer-unit":r,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[g.jsx("circle",{cx:32,cy:32,r:vr,fill:"none",stroke:"#e5e7eb",strokeWidth:5}),g.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:vr,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:Oi,strokeDashoffset:a,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),g.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:700,fill:o,children:Wv(e)})]})}function Vv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l}){const s=i??"#7c3aed",c=l??"#1f1f1f",u=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:o,max:60,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:u.map(f=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[g.jsx(qv,{value:f.value,max:f.max,accentColor:s,numberColor:c,unit:f.label.toLowerCase()}),r&&g.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:f.label})]},f.label))})}function _t(e){return String(Math.max(0,e)).padStart(2,"0")}function Yv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a}){const l=[{key:"days",text:r?`${e}d`:_t(e)},{key:"hours",text:r?`${_t(t)}h`:_t(t)},{key:"minutes",text:r?`${_t(n)}m`:_t(n)},{key:"seconds",text:r?`${_t(o)}s`:_t(o)}],s=r?" ":" : ";return g.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":r?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:a??"#1f1f1f"},children:[g.jsx("span",{style:{color:i??"#7c3aed",marginRight:6},children:"Ends in"}),l.map((c,u)=>g.jsxs(F.Fragment,{children:[u>0&&s,g.jsx("span",{"data-ahd-timer-unit":c.key,children:c.text})]},c.key))]})}function Kv(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 Jv(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 o=Math.max(0,n-t),r=o<=0,i=Math.floor(o/1e3);return{days:Math.floor(i/86400),hours:Math.floor(i%86400/3600),minutes:Math.floor(i%3600/60),seconds:i%60,completed:r}}function Xv({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",r=n.showLabels??!0,i=n.expiredBehavior??"showMessage",a=n.expiredMessage||"Offer has ended",l=Jv(n.targetDate),s=l.completed,c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,f=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:f>0?`calc(100% - ${f}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:Kv(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:r,accentColor:e==null?void 0:e.accentColor,textColor:e==null?void 0:e.textColor,numberColor:e==null?void 0:e.numberColor},p=s&&i==="showMessage",b=s&&i==="hide";return g.jsxs("div",{className:"ahd-timer","data-layout":o,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":i,"data-ahd-timer-expired-message":a,"data-ahd-timer-show-labels":r?"1":"0",style:{...d,display:b?"none":void 0},children:[g.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:(e==null?void 0:e.textColor)??"#1f1f1f",display:p?void 0:"none"},children:a}),g.jsxs("div",{"data-ahd-timer-body":!0,style:{display:p?"none":void 0},children:[o==="digitalFlip"&&g.jsx(Zv,{...h}),o==="circularProgress"&&g.jsx(Vv,{...h}),o==="textInline"&&g.jsx(Yv,{...h})]})]})}const Qv=M(["left","center","right","space-between"]),e1=A({contentChildrenIds:X(k()).optional().nullable()}),t1=A({childrenIds:X(k())}),n1=A({style:A({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(120).optional().nullable(),columnsGap:m().min(0).max(120).optional().nullable(),rowsGap:m().min(0).max(120).optional().nullable(),controlGap:m().min(0).max(120).optional().nullable(),controlAlign:Qv.optional().nullable(),buttonSize:m().min(20).max(72).optional().nullable(),buttonGap:m().min(0).max(40).optional().nullable(),buttonRadius:m().min(0).max(999).optional().nullable(),buttonBg:k().optional().nullable(),buttonColor:k().optional().nullable(),buttonBorderColor:k().optional().nullable(),activeButtonBg:k().optional().nullable(),activeButtonColor:k().optional().nullable(),activeButtonBorderColor:k().optional().nullable(),arrowColor:k().optional().nullable(),fontSize:m().min(8).max(40).optional().nullable(),fontFamily:k().optional().nullable()}).optional().nullable(),props:A({items:X(e1).min(1).max(50).optional().nullable(),cells:X(t1).optional().nullable(),columnsCount:m().int().min(1).max(12).optional().nullable(),rowsCount:m().int().min(1).max(24).optional().nullable(),columnsCountTablet:m().int().min(1).max(12).optional().nullable(),columnsCountMobile:m().int().min(1).max(12).optional().nullable(),rowsCountTablet:m().int().min(1).max(24).optional().nullable(),rowsCountMobile:m().int().min(1).max(24).optional().nullable(),contentAlignment:M(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:M(["left","center","right"]).optional().nullable(),cellsPerPage:m().int().min(1).max(100).optional().nullable(),repeatableEnabled:O().optional().nullable(),pageParam:k().min(1).max(40).optional().nullable(),syncUrl:O().optional().nullable(),showNumbers:O().optional().nullable(),showPrevNext:O().optional().nullable(),showFirstLast:O().optional().nullable(),maxVisiblePages:m().min(0).max(50).optional().nullable(),prevLabel:k().max(24).optional().nullable(),nextLabel:k().max(24).optional().nullable(),firstLabel:k().max(24).optional().nullable(),lastLabel:k().max(24).optional().nullable(),scrollToTopOnChange:O().optional().nullable(),explicitFirstPage:O().optional().nullable()}).optional().nullable()}),wr={columnsCount:2,rowsCount:2};function Ho(e,t="desktop"){const n=wr,o=(e==null?void 0:e.columnsCount)??n.columnsCount,r=(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)??o:o,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;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,o*r,i*a,l.length),c=Array.from({length:s},(u,f)=>{var d;return{childrenIds:Array.isArray((d=l[f])==null?void 0:d.childrenIds)?l[f].childrenIds:[]}});return{columnsCount:i,rowsCount:a,cells:c}}function Go(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)??wr.columnsCount,o=(e==null?void 0:e.rowsCount)??wr.rowsCount,r=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)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;return Math.max(1,r*i)}function o1(e,t,n){const o=Math.max(1,e),r=Math.min(Math.max(1,n),o*Math.max(1,t));return Math.max(1,Math.ceil(r/o))}function r1(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const o=[];for(let r=0;r<e.length;r+=n)o.push(e.slice(r,r+n));return o}const a1={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 i1({style:e,props:t}){const n=a1;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 o=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return o<=0?0:Math.max(5,o)})(),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 l1(e){return Math.max(1,e)}function s1(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const o=[],r=Math.max(1,n-2),i=Math.floor(r/2);let a=Math.max(2,e-i),l=Math.min(t-1,a+r-1);a=Math.max(2,Math.min(a,l-r+1)),o.push(1),a>2&&o.push("ellipsis");for(let s=a;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function c1(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 u1({style:e,props:t}){const n=i1({style:e,props:t}),o=Ho(t,"desktop"),r=Ho(t,"tablet"),i=Ho(t,"mobile"),a=Math.max(Go(t,"desktop"),Go(t,"tablet"),Go(t,"mobile")),l=F.useMemo(()=>o.cells.length>=a?o.cells:Array.from({length:a},(C,R)=>o.cells[R]??{childrenIds:[]}),[o.cells,a]),s=F.useMemo(()=>r1(l,a),[l,a]),c=l1(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,f=(e==null?void 0:e.rowsGap)??n.itemGap,d=F.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),h=F.useMemo(()=>s1(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),p=e==null?void 0:e.padding,b=e==null?void 0:e.margin,x=((b==null?void 0:b.left)??0)+((b==null?void 0:b.right)??0),w={width:x>0?`calc(100% - ${x}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:c1(e==null?void 0:e.borderRadius),padding:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,margin:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,fontFamily:n.fontFamily},v=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",_={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"},S={..._,color:n.arrowColor},$=F.useMemo(()=>{const C=E=>`grid-template-columns:repeat(${E.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${o1(E.columnsCount,E.rowsCount,a)},auto)`,R=(E,P)=>{const T=Math.min(Math.max(1,P.columnsCount*P.rowsCount),Math.max(1,a));return T>=a?"":`${E} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${T+1}){display:none}`},I=`.${d}`;return`${I} .ahd-pgn-item{display:grid;${C(o)};column-gap:${u}px;row-gap:${f}px}${I} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+R(I,o)+`@media (max-width:${Ue}px){${I} .ahd-pgn-item{${C(r)}}${I} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+R(I,r)+`}@media (max-width:${Le}px){${I} .ahd-pgn-item{${C(i)}}${I} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+R(I,i)+"}"},[d,o,r,i,a,u,f,n.itemGap]),y=(C,R,I)=>g.jsx("button",{type:"button",className:`ahd-pgn-btn ${C}`,"data-ahd-page":I,style:S,"aria-label":R,children:R});return g.jsxs("div",{className:`${d} ahd-pagination`,style:w,"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:[g.jsx("style",{dangerouslySetInnerHTML:{__html:$}}),g.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((C,R)=>g.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":R,style:R===0?void 0:{display:"none"},children:C.map((I,E)=>g.jsx("div",{className:"ahd-pgn-cell",children:(I.childrenIds??[]).map(P=>g.jsx(ke,{id:P},P))},E))},R))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&g.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:v,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&&y("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&y("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&g.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,R)=>C==="ellipsis"?g.jsx("span",{className:"ahd-pgn-ellipsis",style:{..._,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${R}`):g.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?{..._,backgroundColor:n.activeButtonBg,color:n.activeButtonColor,border:`1px solid ${n.activeButtonBorderColor}`}:_,children:C},C))}),n.showPrevNext&&y("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&y("ahd-pgn-last",n.lastLabel,c)]})]})}const d1=A({responsive:Be,style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),tableAlign:M(["left","center","right"]).optional().nullable(),fontSize:m().optional().nullable(),fontFamily:k().optional().nullable(),color:k().optional().nullable(),backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:m().optional().nullable(),cellPadding:m().optional().nullable(),headerBackground:k().optional().nullable(),headerColor:k().optional().nullable(),stripedRowColor:k().optional().nullable(),stripedColColor:k().optional().nullable()}).optional().nullable(),props:A({rows:m().int().min(1).max(50).optional().nullable(),columns:m().int().min(1).max(20).optional().nullable(),hasHeader:O().optional().nullable(),cells:X(k()).optional().nullable(),caption:k().optional().nullable(),width:k().optional().nullable(),enableScroll:O().optional().nullable(),enableScrollTablet:O().optional().nullable(),enableScrollMobile:O().optional().nullable()}).optional().nullable()}),Ke={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function ca(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function ua(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function h1(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}function f1(e){if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}let p1=0;function bs(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Bn(e){return e?bs(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function Uo(e){return e?bs(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function m1({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??Ke.rows)),r=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??Ke.columns)),i=(t==null?void 0:t.hasHeader)??Ke.hasHeader,a=(t==null?void 0:t.cells)??[],l=o*r,s=a.length===l?a:Array.from({length:l},(j,V)=>a[V]??""),c=(e==null?void 0:e.borderColor)??Ke.borderColor,u=(e==null?void 0:e.borderWidth)??Ke.borderWidth,f=(e==null?void 0:e.cellPadding)??Ke.cellPadding,d=(e==null?void 0:e.headerBackground)??Ke.headerBackground,h=(e==null?void 0:e.headerColor)??Ke.headerColor,p=(e==null?void 0:e.color)??Ke.color,b=(e==null?void 0:e.fontSize)??Ke.fontSize,x=(e==null?void 0:e.backgroundColor)??null,w=(e==null?void 0:e.stripedRowColor)===void 0?Ke.stripedRowColor:e.stripedRowColor,v=(e==null?void 0:e.stripedColColor)??null,_=`ahd-table-${++p1}`,S={padding:ca(e==null?void 0:e.padding),margin:ua(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},$=f1(e==null?void 0:e.fontFamily),y={borderCollapse:"collapse",width:(t==null?void 0:t.width)||"100%",fontSize:b,textAlign:(e==null?void 0:e.textAlign)??void 0},C={border:`${u}px solid ${c}`,padding:f,verticalAlign:"top"},R=$?`.${_}, .${_} * { font-family: ${$} !important; }`:"",I=w?`.${_} > tbody > tr:nth-child(even) > td { ${Bn(w)} }`:"",E=v?`.${_} > tbody > tr > td:nth-child(even) { ${Bn(v)} }`:"",P=`
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
.${
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
`).map((G,oe,le)=>g.jsxs(F.Fragment,{children:[G,oe<le.length-1?g.jsx("br",{}):null]},oe));return g.jsxs("div",{className:"table-block",style:S,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),g.jsxs("table",{className:_,style:y,role:"table",children:[t!=null&&t.caption?g.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:g.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,i?g.jsx("thead",{children:g.jsx("tr",{children:z.map(j=>g.jsx("th",{scope:"col",style:{...C,fontWeight:600},children:g.jsx("div",{className:"ahd-table-cell-text",children:Z(0,j,s[j]??"",!0)})},j))})}):null,g.jsx("tbody",{children:T.slice(i?1:0).map(j=>g.jsx("tr",{children:z.map(V=>g.jsx("td",{style:C,children:g.jsx("div",{className:"ahd-table-cell-text",children:Z(j,V,s[j*r+V]??"",!1)})},V))},j))})]})]})}const Li=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),g1=A({responsive:Be,style:A({padding:Li,margin:Li,textAlign:M(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:k().default(""),iframeSrc:k().default(""),width:D([m(),k()]).optional().nullable(),height:D([m(),k()]).optional().nullable(),borderRadius:m().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:m().optional().nullable()}).optional().nullable()}),zi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,b1=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,Zo=1440,Wo=830,x1=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:r,borderRadius:i,borderColor:a,borderWidth:l}=t??{},s={padding:zi(e==null?void 0:e.padding),margin:zi(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!o)return g.jsx(g.Fragment,{});const c=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return g.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:c},children:g.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${b1(r,"100%")})`,aspectRatio:`${Zo} / ${Wo}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:a?`${l??1}px solid ${a}`:"none"},children:g.jsx("div",{id:"demoScaler",style:{width:Zo,height:Wo,transformOrigin:"top left"},children:g.jsx("iframe",{src:o,style:{width:Zo,height:Wo,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},xs=Yf(()=>A({id:k().optional(),name:k().optional(),href:k().optional(),menuImage:k().optional(),children:X(xs).optional()})),qo=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),v1=A({menuId:k().default(""),useCustomMenu:O().default(!1),stickyNav:O().default(!1),stickyNavTablet:O().optional().nullable(),stickyNavMobile:O().optional().nullable(),position:M(["left","center","right"]).default("left"),orientation:M(["horizontal","vertical"]).default("horizontal"),menuItems:X(xs).optional().nullable(),startChildrenIds:X(k()).optional().nullable(),endChildrenIds:X(k()).optional().nullable(),layout:M(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:k().default("transparent"),textColor:k().default("#000000"),burgerDropdownBackgroundColor:k().optional().nullable(),submenuBackgroundColor:k().optional().nullable(),submenuRadius:m().optional().nullable(),submenuIconSize:m().optional().nullable(),submenuPadding:qo,submenuItemPadding:qo,submenuMinWidth:m().optional().nullable(),fontSize:k().default("14px"),fontFamily:k().optional().nullable(),fontWeight:k().default("400"),padding:k().default("8px 16px"),blockPadding:qo,gap:k().default("16px"),showIcons:O().default(!0),iconSize:k().default("24px")}),w1=A({style:A({}).passthrough().optional().nullable(),responsive:Be,props:v1.optional().nullable()}),S1={left:"flex-start",center:"center",right:"flex-end"},k1=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_1=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,$1=e=>e?e.left+e.right:0,C1=(e,t,n=!1,o,r)=>{const i=$1(r);return{backgroundColor:e,width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:k1(o),margin:_1(r),justifyContent:n?"space-between":S1[t]||"flex-start"}},Vo=(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}),A1=(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"}),y1={position:"relative"},I1=(e,t,n,o,r,i,a,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:o,fontWeight:(l==null?void 0:l.fontWeight)??r,fontFamily:a||void 0,padding:(l==null?void 0:l.padding)??i,textDecoration:"none",whiteSpace:"nowrap",backgroundColor:(l==null?void 0:l.backgroundColor)||void 0,...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),R1=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),E1=e=>({paddingLeft:e===0?"0":"12px"}),N1={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},M1=e=>({color:e});function T1(e,t){const n=`.ahd-menu-${e}`,o=(t==null?void 0:t.dropdownBackground)||"#fff",r=[`${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}`,`${n} .ahd-menu-backdrop{display:none}`].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-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:90;background:transparent;cursor:default;border:0}`,`${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:${o};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:${Ue}px)`;return r+`@media ${a}{${i}}@container ahd-page ${a}{${i}}`}const P1=(e,t)=>{const n=!!t.stickyNav,o=t.stickyNavTablet??n,r=t.stickyNavMobile??o,i=l=>l?`.ahd-menu-sticky-${e}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:sticky;top:0;z-index:50}`:`.ahd-menu-sticky-${e}{position:static}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:static}`;let a=n?i(!0):"";if(o!==n){const l=`(max-width:${Ue}px)`;a+=`@media ${l}{${i(o)}}`,a+=`@container ahd-page ${l}{${i(o)}}`}if(r!==o){const l=`(max-width:${Le}px)`;a+=`@media ${l}{${i(r)}}`,a+=`@container ahd-page ${l}{${i(r)}}`}return a},O1=e=>{if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},ji=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},Sr=(e,t,n,o,r,i,a,l,s,c,u,f,d=0)=>!e||e.length===0?null:g.jsx("ul",{id:d===0?u:void 0,className:d===0?"ahd-menu-list":"ahd-menu-sublist",style:A1(i,d,a),children:e.map((h,p)=>g.jsxs("li",{style:y1,children:[g.jsx("label",{htmlFor:c,className:"ahd-menu-item-label",style:{display:"contents"},onClick:b=>b.stopPropagation(),children:g.jsxs("a",{href:h.href||"#",style:I1(l,!!h.menuImage,t,n,o,r,f,h),children:[l&&h.menuImage&&g.jsx("img",{src:h.menuImage,alt:"","aria-hidden":"true",style:R1(s)}),h.name||h.label||""]})}),h.children&&h.children.length>0&&g.jsx("div",{style:E1(d),children:Sr(h.children,t,n,o,r,"vertical",a,l,s,c,u,f,d+1)})]},h.id||p))}),L1=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,stickyNavTablet:r,stickyNavMobile:i,menuItems:a,startChildrenIds:l,endChildrenIds:s,layout:c="menu-only",position:u="left",orientation:f="horizontal",backgroundColor:d="transparent",textColor:h="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:w="400",padding:v="8px 16px",blockPadding:_,blockMargin:S,gap:$="16px",showIcons:y=!0,iconSize:C="24px",borderColor:R,borderWidth:I,borderRadius:E,bare:P}=e??{};if(!(Array.isArray(a)&&a.length>0)||!n&&!t)return g.jsx(g.Fragment,{});const z=c==="logo-menu"||c==="logo-menu-cta",H=c==="menu-cta"||c==="logo-menu-cta",Z=z||H,j=u==="right"?"end":u==="center"?"center":"start",V=F.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),Y=t||V,K=(P==null?void 0:P.toggleId)??`ahd-menu-toggle-${Y}`,G=(P==null?void 0:P.listId)??`ahd-menu-list-${Y}`,oe=O1(x);if(P)return g.jsx(g.Fragment,{children:Sr(a,h,b,w,v,f,$,y,C,K,G,oe)});const le=P1(Y,{stickyNav:o,stickyNavTablet:r,stickyNavMobile:i}),se=T1(Y,{dropdownBackground:p??(d!=="transparent"?d:null)});return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:se}},Y),le&&g.jsx("style",{dangerouslySetInnerHTML:{__html:le}}),g.jsxs("nav",{className:`ahd-menu ahd-menu-${Y} ahd-menu-sticky-${Y}`,"data-block":"menu","data-layout":c,style:{...C1(d,u,Z,_,S),...R?{borderStyle:"solid",borderColor:R,borderWidth:I?`${I.top??1}px ${I.right??1}px ${I.bottom??1}px ${I.left??1}px`:"1px"}:{},...E!=null?{borderRadius:typeof E=="number"?`${E}px`:`${(E==null?void 0:E.topLeft)??0}px ${(E==null?void 0:E.topRight)??0}px ${(E==null?void 0:E.bottomRight)??0}px ${(E==null?void 0:E.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[g.jsx("input",{type:"checkbox",id:K,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":G,style:N1,onClick:ce=>ce.stopPropagation()}),g.jsx("label",{htmlFor:K,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:ji(K)}),z&&g.jsx("div",{className:"ahd-menu-start",style:Vo("start"),children:(l??[]).map(ce=>g.jsx(ke,{id:ce},ce))}),g.jsx("div",{className:"ahd-menu-center",style:Vo(j,Z),children:Sr(a,h,b,w,v,f,$,y,C,K,G,oe)}),H&&g.jsx("div",{className:"ahd-menu-end",style:Vo("end"),children:(s??[]).map(ce=>g.jsx(ke,{id:ce},ce))}),g.jsxs("label",{htmlFor:K,className:"ahd-menu-burger","aria-hidden":"true",style:M1(h),onClick:ji(K),children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]})]})]})},z1=A({id:k().optional(),label:k().optional(),href:k().optional(),textColor:k().optional().nullable()}),j1=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),B1=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),D1=A({items:X(z1).optional().nullable(),separator:M(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:k().optional().nullable(),showHomeIcon:O().default(!1),homeHref:k().default("/"),collapseOnMobile:O().default(!0),currentItemLinked:O().default(!1),textColor:k().default("#595959"),currentItemColor:k().optional().nullable(),separatorColor:k().optional().nullable(),fontSize:k().default("14px"),fontFamily:k().optional().nullable(),fontWeight:k().default("400"),gap:k().default("8px"),blockPadding:j1,blockMargin:B1}),F1=A({style:A({}).passthrough().optional().nullable(),responsive:Be,props:D1.optional().nullable()}),Yo={slash:"/",chevron:"›",dot:"•",pipe:"|"};function H1(e,t){return e==="custom"?t||"›":e&&Yo[e]?Yo[e]:Yo.chevron}function G1(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),o=`(max-width:${Le}px)`;return`@media ${o}{${n}}@container ahd-page ${o}{${n}}`}const U1=e=>{if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},vs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Z1=vs,W1="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",q1=({size:e,color:t})=>g.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:g.jsx("path",{d:W1,fill:t})}),V1=({color:e,fontSize:t})=>g.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),Y1=({props:e,renderLabel:t})=>{const{items:n,separator:o="chevron",customSeparator:r,showHomeIcon:i=!1,homeHref:a="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:c="#595959",currentItemColor:u,separatorColor:f,fontSize:d="14px",fontFamily:h,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:w}=e??{};if(!(Array.isArray(n)&&n.length>0))return g.jsx(g.Fragment,{});const _=U1(h),S=H1(o,r),$=n.length-1,y=F.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),C=l?G1(y):"",R=(I,E,P)=>{const T=(P?u:null)||I.textColor||c,z=!P||s,H={color:T,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:I,index:E,isLast:P,style:H}):z?g.jsx("a",{href:I.href||"#",style:H,"aria-current":P?"page":void 0,children:I.label||""}):g.jsx("span",{style:H,"aria-current":"page",children:I.label||""})};return g.jsxs(g.Fragment,{children:[C&&g.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),g.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${y}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:vs(x),margin:Z1(w)},children:g.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:_,fontWeight:p},children:[i&&g.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[g.jsx("a",{href:a||"/",style:{display:"flex",color:c},children:g.jsx(q1,{size:parseInt(d,10)||14,color:c})}),g.jsx("span",{"aria-hidden":"true",style:{color:f||c},children:S})]}),n.map((I,E)=>{const P=E===$,T=l&&E!==0&&!P;return g.jsxs("li",{className:T?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[R(I,E,P),!P&&g.jsx("span",{"aria-hidden":"true",style:{color:f||c},children:S})]},I.id||E)}),l&&n.length>2&&g.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[g.jsx(V1,{color:c,fontSize:d}),g.jsx("span",{"aria-hidden":"true",style:{color:f||c},children:S})]})]})})]})},K1=A({style:A({}).passthrough().optional().nullable(),props:A({formId:k().default(""),formName:k().default(""),iframeSrc:k().default(""),width:k().default("100%"),height:k().default("500px"),heightTablet:k().optional(),heightMobile:k().optional(),autoHeight:O().default(!1),alignment:M(["left","center","right"]).default("left")}).optional().nullable()}),J1=e=>{let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;return`form-${Math.abs(t).toString(36)}`},X1=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},Q1=({props:e,style:t})=>{const{formId:n,iframeSrc:o,width:r,height:i,heightTablet:a,heightMobile:l,autoHeight:s=!1,alignment:c="left",formName:u}=e??{};if(!n||!o)return g.jsx(g.Fragment,{});const f=c==="center"?"center":c==="right"?"flex-end":"flex-start",d=t??{},h={display:"flex",justifyContent:f,width:"100%",padding:X1(d.padding),backgroundColor:d.backgroundColor||void 0,borderRadius:d.borderRadius||void 0},p=J1(`${n}|${o??""}`),b=!s&&(a||l)?`
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
283
|
+
${de}
|
|
284
|
+
`;return g.jsxs("div",{style:se,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:ve}}),n.map((K,L)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${L}`,className:"pacc-cb",defaultChecked:L===i},L)),g.jsx("div",{className:"pacc-wrap",children:n.map((K,L)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${L}`,className:"pacc-card",children:[(K.cardChildrenIds??[]).map(B=>g.jsx(Ae,{id:B},B)),g.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:g.jsx("i",{className:"bi bi-chevron-right"})})]}),g.jsx("div",{className:"pacc-detail",children:(K.detailChildrenIds??[]).map(B=>g.jsx(Ae,{id:B},B))})]},L))})]})}const u1=160,d1=A({label:$().optional().nullable(),contentChildrenIds:te($()).optional().nullable()}),h1=A({responsive:Ge,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),tabActiveColor:$().optional().nullable(),tabActiveBgColor:$().optional().nullable(),tabInactiveTextColor:$().optional().nullable(),tabInactiveBgColor:$().optional().nullable(),tabInactiveBorderColor:$().optional().nullable(),tabInactiveBorderWidth:m().optional().nullable(),tabTextColor:$().optional().nullable(),tabBgColor:$().optional().nullable(),tabBorderRadius:m().optional().nullable(),tabGap:m().optional().nullable(),contentGap:m().optional().nullable(),navBorderColor:$().optional().nullable(),navWidth:m().optional().nullable(),fontSize:D([$(),m()]).optional().nullable(),lineHeight:D([$(),m()]).optional().nullable(),activeFontSize:D([$(),m()]).optional().nullable(),showActiveBorder:O().optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable()}).optional().nullable(),props:A({orientation:N(["horizontal","vertical"]).optional().nullable(),orientationTablet:N(["horizontal","vertical"]).optional().nullable(),orientationMobile:N(["horizontal","vertical"]).optional().nullable(),behavior:N(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:N(["left","center","right"]).optional().nullable(),dropdown:O().optional().nullable(),dropdownTablet:O().optional().nullable(),dropdownMobile:O().optional().nullable(),activeTabIndex:m().optional().nullable(),stickyNav:O().optional().nullable(),items:te(d1).min(1).max(20).optional().nullable()}).optional().nullable()});function f1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function m1(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 qi(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const p1={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},g1={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function mt(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function po(e,t=!1){const n=t?"!important":"";return e?mt(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function go(e,t=!1){const n=t?"!important":"";return mt(e)?`color:transparent${n}`:`color:${e}${n}`}function bo(e,t=!1){const n=t?"!important":"";return mt(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function Ir(e,t,n,o=!1){const r=o?"!important":"";return mt(e)?`border-${n}-style:solid${r};border-${n}-width:${t}${r};border-image-source:${e}${r};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${r}`:`border-${n}-color:${e}${r}`}function b1(e,t,n=!1){const o=n?"!important":"";return e?mt(e)?`box-sizing:border-box${o};border:${t}px solid transparent${o};border-image-source:${e}${o};border-image-slice:1${o};box-shadow:none${o}`:`box-shadow:inset 0 0 0 ${t}px ${e}${o}`:`box-shadow:none${o}`}function Vt(e,t,n,o,r,i,a,l){const s=mt(l),c=s?Ir(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,u=s?Ir(l,n,"right"):`border-right:${n} solid var(--ahd-tabs-nav-border,transparent)`;if(t==="horizontal")return`${e}{display:block}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${o};align-items:center;justify-content:${i};width:100%;${c};border-right:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .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:${r};margin-left:0}`;const h=`${a??u1}px`,d=`var(--ahd-tabs-nav-width,${h})`,f=`width:var(--ahd-tabs-nav-width,${h});max-width:var(--ahd-tabs-nav-width,${h})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${r};align-items:start}${e} > .ahd-tabs-dd-wrap > .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;${f};min-width:0;overflow:visible;${u};border-bottom:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${o};white-space:normal!important;word-break:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;box-sizing:border-box}${e} > .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function x1(e,t,n,o,r,i,a,l,s,c,u,h,d,f,p,b,x=1){let v="";for(let C=0;C<p;C++){const y=`${e} #${f}-r${C}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${C+1})`;v+=`${y}{${po(a,!0)};${go(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${bo(l,!0)}}${y}:hover{${po(a,!0)}}`}const S=`${e} > .ahd-tabs-dd-wrap`,k=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${S}:focus-within`,w=s?`${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${S}{display:block!important;position:relative!important;width:100%!important}${S} > .ahd-tabs-dd-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid ${t};border-radius:${o};background:${r};color:${i};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+w+`${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{display:inline-block;width:8px;height:8px;flex-shrink:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-2px;opacity:.7;transition:transform .15s ease}${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${S} > .ahd-tabs-nav{position:absolute!important;top:calc(100% + 4px)!important;left:0!important;right:0!important;z-index:30!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:auto!important;max-height:260px!important;width:auto!important;gap:0!important;border:1px solid ${t}!important;border-radius:${o}!important;background:#fff!important;box-shadow:0 6px 20px rgba(0,0,0,.12)!important;padding:4px!important;align-items:stretch!important;justify-content:flex-start!important;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .12s ease,transform .12s ease,visibility .12s}${k} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${S} > .ahd-tabs-nav > .ahd-tabs-label{display:flex!important;justify-content:flex-start!important;width:100%!important;box-sizing:border-box;border:0!important;border-radius:6px!important;margin:0!important;padding:9px 12px!important;${go(c??"inherit",!0)};background:${u??"transparent"}!important;box-shadow:${h}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${S} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${bo(c??"inherit",!0)}}${S} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${S} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${u??"rgba(0,0,0,.05)"}!important}${e} > .ahd-tabs-panels{position:static!important;width:100%!important;margin:${n} 0 0 0!important;grid-column:auto!important}`+v}function qo(e,t){return`${e} > .ahd-tabs-dd-wrap{display:contents!important;position:static!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:static!important;top:auto!important;z-index:auto!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;max-height:none!important;overflow:visible!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{border-radius:${t}!important;margin-top:0!important;box-shadow:none!important}`}function v1({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",o=(t==null?void 0:t.orientationTablet)??n,r=(t==null?void 0:t.orientationMobile)??"vertical",a=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=U.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=U.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=j(e==null?void 0:e.tabActiveColor),h=j(e==null?void 0:e.tabActiveBgColor),d=j(e==null?void 0:e.tabInactiveTextColor),f=j(e==null?void 0:e.tabInactiveBgColor),p=j(e==null?void 0:e.tabInactiveBorderColor),b=(e==null?void 0:e.tabInactiveBorderWidth)??1,x=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",v=j(e==null?void 0:e.tabTextColor),S=j((e==null?void 0:e.tabBgColor)??"transparent"),k=j(e==null?void 0:e.navBorderColor),w=k?"2px":"0px",C=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",y=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",_=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,I="var(--ahd-tabs-tab-gap,"+C+")",R="var(--ahd-tabs-content-gap,"+y+")",T=(e==null?void 0:e.activeFontSize)!=null?qi(e.activeFontSize):void 0,M=((e==null?void 0:e.showActiveBorder)??!0)&&!h?u||"currentColor":"transparent",z=(t==null?void 0:t.tabsAlign)??"left",F=z==="center"?"center":z==="right"?"flex-end":"flex-start",H=(t==null?void 0:t.dropdown)??!1,V=(t==null?void 0:t.dropdownTablet)??H,q=(t==null?void 0:t.dropdownMobile)??V,he=e==null?void 0:e.padding,ae=e==null?void 0:e.margin,pe=((ae==null?void 0:ae.left)??0)+((ae==null?void 0:ae.right)??0),ee=mt(e==null?void 0:e.borderColor),se=e!=null&&e.borderColor?ee?{border:"1px solid transparent",borderImageSource:e.borderColor,borderImageSlice:1}:{border:`1px solid ${e.borderColor}`}:{},fe={width:pe>0?`calc(100% - ${pe}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,...se,borderRadius:m1(e==null?void 0:e.borderRadius),padding:he?`${he.top}px ${he.right}px ${he.bottom}px ${he.left}px`:void 0,margin:ae?`${ae.top}px ${ae.right}px ${ae.bottom}px ${ae.left}px`:void 0,fontFamily:f1(e==null?void 0:e.fontFamily),fontSize:qi(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5,color:v,"--ahd-tabs-nav-border":k??"transparent"},Y=()=>s.map((L,B)=>g.jsx("input",{type:"radio",id:`${c}-r${B}`,name:c,className:"ahd-tabs-radio",defaultChecked:B===0,style:p1},B)),de=U.useMemo(()=>{const L=`.${c}`,B=u||"currentColor",Z=v||"inherit",W=`${L} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,X=`${W} > .ahd-tabs-label-text`,ge=`${L} > .ahd-tabs-panels > .ahd-tabs-panel`,Ue=d??Z;let ce=`${W}{${go(Ue)};${po(f)};${b1(p,b)};border-radius:${x}}${X}{${bo(Ue)}}`+(a?"":`${ge}{display:none}`)+`${L} > .ahd-tabs-dd-wrap{display:contents}${L} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${L} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((Ne,Fe)=>{const Le=`#${c}-r${Fe}:checked`,kt=`${Le} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${Fe+1})`,gt=`${Le} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${Fe+1})`,at=mt(M),Ze=`${go(B,!0)};${po(h,!0)};box-shadow:none!important`+(at?`;${Ir(M,"3px",n==="vertical"?"left":"bottom",!0)}`:`;border-left-color:var(--ahd-tabs-active-border-color,${M})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${M})!important`);ce+=`${kt}{${Ze}}`,ce+=`${kt} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${T??"inherit"})!important;${bo(B,!0)}}`,a||(ce+=`${gt}{display:block!important}`),ce+=`${Le} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${Fe+1}){display:inline}`}),ce+=Vt(L,n,w,I,R,F,_!=null?String(_):void 0,k??void 0),o!==n&&(ce+=`${Yo}{${Vt(L,o,w,I,R,F,_!=null?String(_):void 0,k??void 0)}}`),r!==o&&(ce+=`${Ko}{${Vt(L,r,w,I,R,F,_!=null?String(_):void 0,k??void 0)}}`);const Te=p||k||"#d0d5dd",ue=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",Ie=j((e==null?void 0:e.tabBgColor)??"#fff")??"#fff",We=v??"inherit",Re=h??"transparent",Be=u??"inherit",De=p?mt(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",Q=mt(p)?p:void 0,ie=x1(L,Te,R,ue,Ie,We,Re,Be,T,d,f,De,I,c,s.length,Q,b);return l&&(ce+=`${L} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${L}){position:sticky;top:0;z-index:50}`),H?(ce+=ie,V||(ce+=`${Yo}{${qo(L,x)}${Vt(L,o,w,I,R,F,_!=null?String(_):void 0,k??void 0)}}`),!q&&V&&(ce+=`${Ko}{${qo(L,x)}${Vt(L,r,w,I,R,F,_!=null?String(_):void 0,k??void 0)}}`)):(V&&(ce+=`${Yo}{${ie}}`),q!==V&&(ce+=`${Ko}{${q?ie:qo(L,x)+Vt(L,r,w,I,R,F,_!=null?String(_):void 0,k??void 0)}}`)),ce},[s,c,u,h,x,v,T,M,n,o,r,a,w,k,_,I,R,F,d,f,p,b,H,V,q,l]),ve=L=>a?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:L===0?void 0:R}:{display:L===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},K=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return g.jsxs("div",{className:`${c} ahd-tabs ${K}${l?" ahd-tabs-sticky":""}${a?" ahd-tabs-scroll-sections":""}`,style:fe,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:de}}),Y(),g.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[g.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[g.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((L,B)=>g.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":B,children:L.label??`Tab ${B+1}`},B))}),g.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),g.jsx("div",{className:"ahd-tabs-nav",style:{background:S,...l?{position:"sticky",top:0}:{}},children:s.map((L,B)=>g.jsx("label",{htmlFor:`${c}-r${B}`,className:"ahd-tabs-label","data-ahd-tab-index":B,tabIndex:-1,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:n==="vertical"?"normal":"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative",outline:"none"},children:g.jsx("span",{className:"ahd-tabs-label-text",style:g1,children:L.label??`Tab ${B+1}`})},B))})]}),g.jsx("div",{className:"ahd-tabs-panels",children:s.map((L,B)=>g.jsx("div",{id:`${c}-panel-${B}`,className:"ahd-tabs-panel","data-ahd-tab-index":B,style:ve(B),children:(L.contentChildrenIds??[]).map(Z=>g.jsx(Ae,{id:Z},Z))},B))})]})}const Yo=`@media (max-width:${Pe}px)`,Ko=`@media (max-width:${Oe}px)`,S1=A({contentChildrenIds:te($()).optional().nullable()}),w1=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),slideGap:m().optional().nullable(),arrowColor:$().optional().nullable(),arrowBgColor:$().optional().nullable(),arrowBorderColor:$().optional().nullable(),arrowSize:m().min(16).max(80).optional().nullable(),dotColor:$().optional().nullable(),dotActiveColor:$().optional().nullable(),dotSize:m().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({slidesPerView:m().min(1).max(6).optional().nullable(),slidesPerViewTablet:m().min(1).max(6).optional().nullable(),slidesPerViewMobile:m().min(1).max(6).optional().nullable(),showArrows:O().optional().nullable(),showDots:O().optional().nullable(),autoplay:O().optional().nullable(),autoplayInterval:m().min(500).max(2e4).optional().nullable(),loop:O().optional().nullable(),transitionMs:m().min(0).max(3e3).optional().nullable(),items:te(S1).min(1).max(20).optional().nullable()}).optional().nullable()});function $1(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 k1="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",_1="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Yi=({d:e,size:t=20})=>g.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{d:e})});function C1({style:e,props:t}){const n=U.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),o=U.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),r=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(r,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,h=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,f=(e==null?void 0:e.slideGap)??16,p=j((e==null?void 0:e.arrowColor)??"#262626")??"#262626",b=j((e==null?void 0:e.arrowBgColor)??"#ffffff")??"#ffffff",x=j((e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)")??"rgba(0,0,0,.12)",v=(e==null?void 0:e.arrowSize)??40,S=j((e==null?void 0:e.dotColor)??"#d4d4d4")??"#d4d4d4",k=j((e==null?void 0:e.dotActiveColor)??"#262626")??"#262626",w=(e==null?void 0:e.dotSize)??8,C=Math.max(12,Math.min(40,Math.round(v*.5))),y=e==null?void 0:e.padding,_=e==null?void 0:e.margin,I=((_==null?void 0:_.left)??0)+((_==null?void 0:_.right)??0),R={width:I>0?`calc(100% - ${I}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:$1(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:_?`${_.top}px ${_.right}px ${_.bottom}px ${_.left}px`:void 0},T=U.useMemo(()=>{const F=`.${o}`,H=V=>`calc((100% - ${f*(V-1)}px) / ${V})`;return`${F} .ahd-carousel-viewport{overflow:hidden;width:100%}${F} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${f}px);transition:transform ${d}ms ease;will-change:transform}${F} .ahd-carousel-slide{flex:0 0 ${H(r)};min-width:0;box-sizing:border-box}${F} .ahd-carousel-prev svg,${F} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${C}px);height:var(--ahd-carousel-chevron-size,${C}px)}@media (max-width:${Pe}px){${F} .ahd-carousel-slide{flex-basis:${H(i)}}}@media (max-width:${Oe}px){${F} .ahd-carousel-slide{flex-basis:${H(a)}}}`},[o,f,d,r,i,a,C]),P={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${v}px)`,height:`var(--ahd-carousel-arrow-size, ${v}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${v}px)`,borderRadius:"50%",border:`1px solid ${x}`,backgroundColor:b,backgroundImage:"none",color:p,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},M=Math.min(r,i,a),z=Math.max(1,n.length-M+1);return g.jsxs("div",{className:`${o} ahd-carousel`,style:R,"data-per-view":r,"data-per-view-tablet":i,"data-per-view-mobile":a,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":h?"1":"0",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:T}}),g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&g.jsx("button",{type:"button",className:"ahd-carousel-prev",style:P,"aria-label":"Previous slide",children:g.jsx(Yi,{d:k1,size:C})}),g.jsx("div",{className:"ahd-carousel-viewport",children:g.jsx("div",{className:"ahd-carousel-track",children:n.map((F,H)=>g.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":H,children:(F.contentChildrenIds??[]).map(V=>g.jsx(Ae,{id:V},V))},H))})}),l&&g.jsx("button",{type:"button",className:"ahd-carousel-next",style:P,"aria-label":"Next slide",children:g.jsx(Yi,{d:_1,size:C})})]}),s&&z>1&&g.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":S,"data-dot-active-color":k,children:Array.from({length:z}).map((F,H)=>g.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":H,"aria-label":`Go to slide ${H+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${w}px)`,height:`var(--ahd-carousel-dot-size, ${w}px)`,minWidth:`var(--ahd-carousel-dot-size, ${w}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:H===0?k:S,backgroundImage:"none"}},H))})]})}const A1=A({style:A({starColor:$().optional().nullable(),starEmptyColor:$().optional().nullable(),starSize:m().min(8).max(80).optional().nullable(),starGap:m().min(0).max(40).optional().nullable(),textColor:$().optional().nullable(),fontSize:D([$(),m()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({value:D([m(),$()]).optional().nullable(),max:D([m(),$()]).optional().nullable(),showValue:O().optional().nullable()}).optional().nullable()}),Ki="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 y1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function I1(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function R1({fillPct:e,size:t,filledColor:n,emptyColor:o}){return g.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:[g.jsx("svg",{viewBox:"0 0 24 24",fill:o,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:g.jsx("path",{d:Ki})}),g.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:g.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:g.jsx("path",{d:Ki})})})]})}function N1({style:e,props:t}){const n=U.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(v,S)=>{if(typeof v=="number")return Number.isFinite(v)?v:S;const k=parseFloat(String(v??""));return Number.isFinite(k)?k:S},r=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(r,o(t==null?void 0:t.value,0))),a=(t==null?void 0:t.showValue)??!0,l=j((e==null?void 0:e.starColor)??"#facc15")??"#facc15",s=j((e==null?void 0:e.starEmptyColor)??"#e5e7eb")??"#e5e7eb",c=(e==null?void 0:e.starSize)??24,u=(e==null?void 0:e.starGap)??4,h=j((e==null?void 0:e.textColor)??"#262626")??"#262626",d=(e==null?void 0:e.textAlign)??"left",f=e==null?void 0:e.padding,p=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:h,fontFamily:y1(e==null?void 0:e.fontFamily),fontSize:I1(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,boxSizing:"border-box"},x=v=>{const S=i-v;return S>=1?100:S>=.5?50:S>0?Math.round(S*100):0};return g.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[g.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${u}px)`},children:Array.from({length:r}).map((v,S)=>g.jsx(R1,{fillPct:x(S),size:c,filledColor:l,emptyColor:s},S))}),a&&g.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(i)?i:i.toFixed(1),g.jsxs("span",{style:{opacity:.55},children:["/",r]})]})]})}const T1=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),E1=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),M1=A({style:A({trackColor:$().optional().nullable(),fillColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:D([$(),m()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),barHeight:m().min(2).max(60).optional().nullable(),barRadius:m().min(0).max(40).optional().nullable(),circleSize:m().min(40).max(320).optional().nullable(),strokeWidth:m().min(2).max(40).optional().nullable(),stepSize:m().min(4).max(48).optional().nullable(),stepGap:m().min(0).max(40).optional().nullable(),padding:T1,margin:E1}).optional().nullable(),props:A({variant:N(["linear","circular","steps"]).optional().nullable(),value:D([m(),$()]).optional().nullable(),max:D([m(),$()]).optional().nullable(),showLabel:O().optional().nullable(),labelFormat:N(["percent","fraction"]).optional().nullable(),steps:m().min(2).max(20).optional().nullable(),striped:O().optional().nullable(),animated:O().optional().nullable()}).optional().nullable()});function P1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function O1(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Ji(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function Xi(e,t,n,o){return o==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function L1({pct:e,label:t,trackColor:n,fillColor:o,barHeight:r,barRadius:i,striped:a,animated:l,ariaLabel:s,value:c,max:u}){const h=a&&l;return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[h&&g.jsx("style",{dangerouslySetInnerHTML:{__html:"@keyframes ahd-progress-stripes{from{background-position:1rem 0}to{background-position:0 0}}.ahd-progress-animated{animation:ahd-progress-stripes 1s linear infinite}@media (prefers-reduced-motion: reduce){.ahd-progress-animated{animation:none}}"}}),g.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":u,"aria-label":s,style:{width:"100%",height:r,borderRadius:i,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:g.jsx("div",{className:`ahd-progress-fill${a?" ahd-progress-striped":""}${h?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:i,backgroundColor:o,backgroundImage:a?"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)":void 0,backgroundSize:a?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&g.jsx("span",{children:t})]})}function z1({pct:e,label:t,trackColor:n,fillColor:o,size:r,strokeWidth:i,textColor:a,fontWeight:l,ariaLabel:s,value:c,max:u}){const h=(r-i)/2,d=2*Math.PI*h,f=d*(1-e/100),p=r/2;return g.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":u,"aria-label":s,style:{position:"relative",width:r,height:r,display:"inline-flex"},children:[g.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,children:[g.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:n,strokeWidth:i}),g.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:f,transform:`rotate(-90 ${p} ${p})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&g.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:a,fontWeight:l??600},children:t})]})}function j1({steps:e,activeIndex:t,trackColor:n,fillColor:o,stepSize:r,stepGap:i,label:a,ariaLabel:l,value:s,max:c}){return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[g.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:i},children:Array.from({length:e}).map((u,h)=>g.jsx("span",{"data-active":h<t?"true":"false",style:{width:r,height:r,borderRadius:"50%",backgroundColor:h<t?o:n,transition:"background-color 200ms ease",display:"inline-block"}},h))}),a!=null&&g.jsx("span",{children:a})]})}function B1({style:e,props:t}){const n=U.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.variant)??"linear",r=Math.max(1,Ji(t==null?void 0:t.max,100)),i=Math.max(0,Math.min(r,Ji(t==null?void 0:t.value,0))),a=i/r*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",c=l?Xi(a,i,r,s):null,u=`Progress: ${Xi(a,i,r,"percent")}`,h=j((e==null?void 0:e.trackColor)??"#e5e7eb")??"#e5e7eb",d=j((e==null?void 0:e.fillColor)??"#3F73FF")??"#3F73FF",f=j((e==null?void 0:e.textColor)??"#262626")??"#262626",p=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,v={display:"flex",justifyContent:p==="center"?"center":p==="right"?"flex-end":"flex-start",color:f,fontFamily:P1(e==null?void 0:e.fontFamily),fontSize:O1((e==null?void 0:e.fontSize)??13),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,boxSizing:"border-box"},S=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),k=Math.round(a/100*S);return g.jsx("div",{className:`${n} ahd-progress progress-block`,style:v,children:o==="circular"?g.jsx(z1,{pct:a,label:c,trackColor:h,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:f,fontWeight:(e==null?void 0:e.fontWeight)??void 0,ariaLabel:u,value:i,max:r}):o==="steps"?g.jsx(j1,{steps:S,activeIndex:k,trackColor:h,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:c,ariaLabel:u,value:i,max:r}):g.jsx(L1,{pct:a,label:c,trackColor:h,fillColor:d,barHeight:(e==null?void 0:e.barHeight)??12,barRadius:(e==null?void 0:e.barRadius)??6,striped:(t==null?void 0:t.striped)??!1,animated:(t==null?void 0:t.animated)??!1,ariaLabel:u,value:i,max:r})})}const D1=A({responsive:Ge,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(200).optional().nullable(),viewportHeight:m().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:N(["left","right","up","down"]).optional().nullable(),speed:m().min(5).max(200).optional().nullable(),pauseOnHover:O().optional().nullable(),repeat:m().min(2).max(6).optional().nullable(),fadeEdges:O().optional().nullable(),verticalAlign:N(["top","middle","bottom"]).optional().nullable(),items:te(A({contentChildrenIds:te($()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),F1=40,H1=32,G1=200,Ls=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,zs=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,U1=e=>Math.max(2,Math.round(1200/e)),W1=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),js=e=>e==="up"||e==="down",Z1=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",xo=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function V1(e,t){return{speed:zs(t==null?void 0:t.speed,F1),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??H1,viewportHeight:Ls(e==null?void 0:e.viewportHeight,G1)}}function q1(e,t,n){var r,i,a,l,s;const o=e==null?void 0:e[t];return{speed:zs((r=o==null?void 0:o.props)==null?void 0:r.speed,n.speed),pauseOnHover:((i=o==null?void 0:o.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((a=o==null?void 0:o.props)==null?void 0:a.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:Ls((s=o==null?void 0:o.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const Y1=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Qi=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${U1(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,K1=(e,t)=>e.fadeEdges?`-webkit-mask-image:${xo(t)}!important;mask-image:${xo(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function J1({instanceId:e,direction:t,repeat:n,desktop:o,responsive:r,verticalAlign:i}){const a=`.${e}`,l=js(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":Z1(i),h=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${h}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${h}%)}}`,f=(b,x)=>{if(!Y1(r,x))return"";const v=q1(r,x,o);return`${b}{${a}{${Qi(v)};${K1(v,l)}}}`},p=l?`${a} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${a} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${a}{${Qi(o)}}`+p+`${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)}`+f(Bt,"tablet")+f(je,"mobile")+`@media (prefers-reduced-motion: reduce){${a} .ahd-marquee-track{animation:none}}`}function X1(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 Q1(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,o=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:o>0?`${o}px solid ${e}`:void 0}}function eS({style:e,props:t,responsive:n}){const o=U.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),r=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",a=W1(t==null?void 0:t.repeat),l=js(i),s=V1(e,t),c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,h=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:h>0?`calc(100% - ${h}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,...Q1(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:X1(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:xo(l),maskImage:xo(l)}:{}},f=(t==null?void 0:t.verticalAlign)??"middle",p=U.useMemo(()=>J1({instanceId:o,direction:i,repeat:a,desktop:s,responsive:n,verticalAlign:f}),[o,i,a,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,f]),b=x=>g.jsx("div",{className:"ahd-marquee-group","aria-hidden":x>0?!0:void 0,children:r.map((v,S)=>g.jsx("div",{className:"ahd-marquee-item",children:(v.contentChildrenIds??[]).map(k=>g.jsx(Ae,{id:k},k))},S))},x);return g.jsxs("div",{className:`${o} ahd-marquee`,style:d,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:p}}),g.jsx("div",{className:"ahd-marquee-viewport",children:g.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:a}).map((x,v)=>b(v))})})]})}const tS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),nS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),oS=A({style:A({backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),accentColor:$().optional().nullable(),numberColor:$().optional().nullable(),numberFontWeight:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:tS,margin:nS}).optional().nullable(),props:A({layout:N(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:$().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:O().default(!0),expiredBehavior:N(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:$().default("Offer has ended"),showConfetti:O().default(!1)}).optional().nullable()});function rS(e){return String(Math.max(0,e)).padStart(2,"0")}function aS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l}){const s=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:o,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:s.map(c=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[g.jsx("div",{"data-ahd-timer-unit":c.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:i??"#1f1f1f",color:l??"#ffffff",fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:rS(c.value)}),r&&g.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:c.label})]},c.label))})}function iS(e){return String(Math.max(0,e)).padStart(2,"0")}const Rr=26,el=2*Math.PI*Rr;function lS({value:e,max:t,accentColor:n,numberColor:o,numberFontWeight:r,unit:i}){const a=t>0?Math.min(1,Math.max(0,e/t)):0,l=el*(1-a);return g.jsxs("svg",{"data-ahd-timer-unit":i,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[g.jsx("circle",{cx:32,cy:32,r:Rr,fill:"none",stroke:"#e5e7eb",strokeWidth:5}),g.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Rr,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:el,strokeDashoffset:l,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),g.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:r??700,fill:o,children:iS(e)})]})}function sS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l,numberFontWeight:s}){const c=i??"#7c3aed",u=l??"#1f1f1f",h=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:o,max:60,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:h.map(d=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[g.jsx(lS,{value:d.value,max:d.max,accentColor:c,numberColor:u,numberFontWeight:s,unit:d.label.toLowerCase()}),r&&g.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:d.label})]},d.label))})}function Et(e){return String(Math.max(0,e)).padStart(2,"0")}function cS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a}){const l=[{key:"days",text:r?`${e}d`:Et(e)},{key:"hours",text:r?`${Et(t)}h`:Et(t)},{key:"minutes",text:r?`${Et(n)}m`:Et(n)},{key:"seconds",text:r?`${Et(o)}s`:Et(o)}],s=r?" ":" : ";return g.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":r?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:a??"#1f1f1f"},children:[g.jsx("span",{style:{color:i??"#7c3aed",marginRight:6},children:"Ends in"}),l.map((c,u)=>g.jsxs(U.Fragment,{children:[u>0&&s,g.jsx("span",{"data-ahd-timer-unit":c.key,children:c.text})]},c.key))]})}function uS(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 dS(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 o=Math.max(0,n-t),r=o<=0,i=Math.floor(o/1e3);return{days:Math.floor(i/86400),hours:Math.floor(i%86400/3600),minutes:Math.floor(i%3600/60),seconds:i%60,completed:r}}function hS({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",r=n.showLabels??!0,i=n.expiredBehavior??"showMessage",a=n.expiredMessage||"Offer has ended",l=dS(n.targetDate),s=l.completed,c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,h=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:h>0?`calc(100% - ${h}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:uS(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},f={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:r,accentColor:e==null?void 0:e.accentColor,textColor:e==null?void 0:e.textColor,numberColor:e==null?void 0:e.numberColor,numberFontWeight:e==null?void 0:e.numberFontWeight},p=s&&i==="showMessage",b=s&&i==="hide";return g.jsxs("div",{className:"ahd-timer","data-layout":o,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":i,"data-ahd-timer-expired-message":a,"data-ahd-timer-show-labels":r?"1":"0","data-ahd-timer-confetti":n.showConfetti?"1":"0",style:{...d,display:b?"none":void 0},children:[g.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:(e==null?void 0:e.textColor)??"#1f1f1f",display:p?void 0:"none"},children:a}),g.jsxs("div",{"data-ahd-timer-body":!0,style:{display:p?"none":void 0},children:[o==="digitalFlip"&&g.jsx(aS,{...f}),o==="circularProgress"&&g.jsx(sS,{...f}),o==="textInline"&&g.jsx(cS,{...f})]})]})}const fS=N(["left","center","right","space-between"]),mS=A({contentChildrenIds:te($()).optional().nullable()}),pS=A({childrenIds:te($())}),gS=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(120).optional().nullable(),columnsGap:m().min(0).max(120).optional().nullable(),rowsGap:m().min(0).max(120).optional().nullable(),controlGap:m().min(0).max(120).optional().nullable(),controlAlign:fS.optional().nullable(),buttonSize:m().min(20).max(72).optional().nullable(),buttonGap:m().min(0).max(40).optional().nullable(),buttonRadius:m().min(0).max(999).optional().nullable(),buttonBg:$().optional().nullable(),buttonColor:$().optional().nullable(),buttonBorderColor:$().optional().nullable(),activeButtonBg:$().optional().nullable(),activeButtonColor:$().optional().nullable(),activeButtonBorderColor:$().optional().nullable(),arrowColor:$().optional().nullable(),fontSize:m().min(8).max(40).optional().nullable(),fontFamily:$().optional().nullable()}).optional().nullable(),props:A({items:te(mS).min(1).max(50).optional().nullable(),cells:te(pS).optional().nullable(),columnsCount:m().int().min(1).max(12).optional().nullable(),rowsCount:m().int().min(1).max(24).optional().nullable(),columnsCountTablet:m().int().min(1).max(12).optional().nullable(),columnsCountMobile:m().int().min(1).max(12).optional().nullable(),rowsCountTablet:m().int().min(1).max(24).optional().nullable(),rowsCountMobile:m().int().min(1).max(24).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:N(["left","center","right"]).optional().nullable(),cellsPerPage:m().int().min(1).max(100).optional().nullable(),repeatableEnabled:O().optional().nullable(),pageParam:$().min(1).max(40).optional().nullable(),syncUrl:O().optional().nullable(),showNumbers:O().optional().nullable(),showPrevNext:O().optional().nullable(),showFirstLast:O().optional().nullable(),maxVisiblePages:m().min(0).max(50).optional().nullable(),prevLabel:$().max(24).optional().nullable(),nextLabel:$().max(24).optional().nullable(),firstLabel:$().max(24).optional().nullable(),lastLabel:$().max(24).optional().nullable(),scrollToTopOnChange:O().optional().nullable(),explicitFirstPage:O().optional().nullable()}).optional().nullable()}),Nr={columnsCount:2,rowsCount:2};function Jo(e,t="desktop"){const n=Nr,o=(e==null?void 0:e.columnsCount)??n.columnsCount,r=(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)??o:o,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;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,o*r,i*a,l.length),c=Array.from({length:s},(u,h)=>{var d;return{childrenIds:Array.isArray((d=l[h])==null?void 0:d.childrenIds)?l[h].childrenIds:[]}});return{columnsCount:i,rowsCount:a,cells:c}}function Xo(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)??Nr.columnsCount,o=(e==null?void 0:e.rowsCount)??Nr.rowsCount,r=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)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;return Math.max(1,r*i)}function bS(e,t,n){const o=Math.max(1,e),r=Math.min(Math.max(1,n),o*Math.max(1,t));return Math.max(1,Math.ceil(r/o))}function xS(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const o=[];for(let r=0;r<e.length;r+=n)o.push(e.slice(r,r+n));return o}const vS={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 SS({style:e,props:t}){const n=vS;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 o=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return o<=0?0:Math.max(5,o)})(),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 wS(e){return Math.max(1,e)}function $S(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const o=[],r=Math.max(1,n-2),i=Math.floor(r/2);let a=Math.max(2,e-i),l=Math.min(t-1,a+r-1);a=Math.max(2,Math.min(a,l-r+1)),o.push(1),a>2&&o.push("ellipsis");for(let s=a;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function kS(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 _S({style:e,props:t}){const n=SS({style:e,props:t}),o=Jo(t,"desktop"),r=Jo(t,"tablet"),i=Jo(t,"mobile"),a=Math.max(Xo(t,"desktop"),Xo(t,"tablet"),Xo(t,"mobile")),l=U.useMemo(()=>o.cells.length>=a?o.cells:Array.from({length:a},(_,I)=>o.cells[I]??{childrenIds:[]}),[o.cells,a]),s=U.useMemo(()=>xS(l,a),[l,a]),c=wS(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,h=(e==null?void 0:e.rowsGap)??n.itemGap,d=U.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),f=U.useMemo(()=>$S(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),p=e==null?void 0:e.padding,b=e==null?void 0:e.margin,x=((b==null?void 0:b.left)??0)+((b==null?void 0:b.right)??0),v={width:x>0?`calc(100% - ${x}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:kS(e==null?void 0:e.borderRadius),padding:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,margin:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,fontFamily:n.fontFamily},S=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",k={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"},w={...k,color:n.arrowColor},C=U.useMemo(()=>{const _=T=>`grid-template-columns:repeat(${T.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${bS(T.columnsCount,T.rowsCount,a)},auto)`,I=(T,P)=>{const M=Math.min(Math.max(1,P.columnsCount*P.rowsCount),Math.max(1,a));return M>=a?"":`${T} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${M+1}){display:none}`},R=`.${d}`;return`${R} .ahd-pgn-item{display:grid;${_(o)};column-gap:${u}px;row-gap:${h}px}${R} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+I(R,o)+`@media (max-width:${Pe}px){${R} .ahd-pgn-item{${_(r)}}${R} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+I(R,r)+`}@media (max-width:${Oe}px){${R} .ahd-pgn-item{${_(i)}}${R} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+I(R,i)+"}"},[d,o,r,i,a,u,h,n.itemGap]),y=(_,I,R)=>g.jsx("button",{type:"button",className:`ahd-pgn-btn ${_}`,"data-ahd-page":R,style:w,"aria-label":I,children:I});return g.jsxs("div",{className:`${d} ahd-pagination`,style:v,"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:[g.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),g.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((_,I)=>g.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":I,style:I===0?void 0:{display:"none"},children:_.map((R,T)=>g.jsx("div",{className:"ahd-pgn-cell",children:(R.childrenIds??[]).map(P=>g.jsx(Ae,{id:P},P))},T))},I))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&g.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:S,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&&y("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&y("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&g.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:f.map((_,I)=>_==="ellipsis"?g.jsx("span",{className:"ahd-pgn-ellipsis",style:{...k,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${I}`):g.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":_,"aria-label":`Page ${_}`,"aria-current":_===1?"true":void 0,style:_===1?{...k,backgroundColor:n.activeButtonBg,color:n.activeButtonColor,border:`1px solid ${n.activeButtonBorderColor}`}:k,children:_},_))}),n.showPrevNext&&y("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&y("ahd-pgn-last",n.lastLabel,c)]})]})}const CS=A({responsive:Ge,style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),tableAlign:N(["left","center","right"]).optional().nullable(),fontSize:m().optional().nullable(),fontFamily:$().optional().nullable(),color:$().optional().nullable(),backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:m().optional().nullable(),cellPadding:m().optional().nullable(),headerBackground:$().optional().nullable(),headerColor:$().optional().nullable(),stripedRowColor:$().optional().nullable(),stripedColColor:$().optional().nullable()}).optional().nullable(),props:A({rows:m().int().min(1).max(50).optional().nullable(),columns:m().int().min(1).max(20).optional().nullable(),hasHeader:O().optional().nullable(),cells:te($()).optional().nullable(),caption:$().optional().nullable(),width:$().optional().nullable(),enableScroll:O().optional().nullable(),enableScrollTablet:O().optional().nullable(),enableScrollMobile:O().optional().nullable()}).optional().nullable()}),ot={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function AS(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Bs(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Kn(e){return e?Bs(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function Qo(e){return e?Bs(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function yS({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??ot.rows)),r=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??ot.columns)),i=(t==null?void 0:t.hasHeader)??ot.hasHeader,a=(t==null?void 0:t.cells)??[],l=o*r,s=a.length===l?a:Array.from({length:l},(L,B)=>a[B]??""),c=j((e==null?void 0:e.borderColor)??ot.borderColor),u=(e==null?void 0:e.borderWidth)??ot.borderWidth,h=(e==null?void 0:e.cellPadding)??ot.cellPadding,d=j((e==null?void 0:e.headerBackground)??ot.headerBackground),f=j((e==null?void 0:e.headerColor)??ot.headerColor),p=j((e==null?void 0:e.color)??ot.color),b=(e==null?void 0:e.fontSize)??ot.fontSize,x=j((e==null?void 0:e.backgroundColor)??null),v=j((e==null?void 0:e.stripedRowColor)===void 0?ot.stripedRowColor:e.stripedRowColor),S=j((e==null?void 0:e.stripedColColor)??null),k=`ahd-table-${U.useId().replace(/:/g,"")}`,w=(t==null?void 0:t.width)||"100%",C=w!=="100%",y={padding:va(e==null?void 0:e.padding),margin:Sa(e==null?void 0:e.margin),textAlign:C?(e==null?void 0:e.tableAlign)??"left":void 0,width:0,minWidth:"100%",maxWidth:"100%",height:"fit-content",boxSizing:"border-box"},_=AS(e==null?void 0:e.fontFamily),I={borderCollapse:"collapse",width:"100%",fontSize:b},R={display:C?"inline-block":"block",width:w,maxWidth:"100%",verticalAlign:"top",overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",height:"fit-content"},T={border:`${u}px solid ${c}`,padding:h,verticalAlign:"top"},P={...T,fontWeight:600,textAlign:(e==null?void 0:e.textAlign)??"left"},M=_?`.${k}, .${k} * { font-family: ${_} !important; }`:"",z=`${k}-scroll`,F=(t==null?void 0:t.enableScroll)??!1,H=(t==null?void 0:t.enableScrollTablet)??F,V=(t==null?void 0:t.enableScrollMobile)??F,q=L=>L?`.${z} > .${k} { table-layout: auto; width: max-content !important; min-width: 100%; max-width: none; }`:`.${z} > .${k} { table-layout: fixed; width: 100% !important; max-width: 100%; }
|
|
285
|
+
.${z} > .${k} .ahd-table-cell-text { overflow-wrap: anywhere; }`,ae=[q(F),H!==F?`@media (max-width: 1024px) { ${q(H)} }
|
|
286
|
+
@container ahd-page (max-width: 1024px) { ${q(H)} }`:"",V!==H?`@media (max-width: 640px) { ${q(V)} }
|
|
287
|
+
@container ahd-page (max-width: 640px) { ${q(V)} }`:""].filter(Boolean).join(`
|
|
288
|
+
`),pe=`
|
|
289
|
+
.${z} {
|
|
290
|
+
overflow-x: auto;
|
|
291
|
+
-webkit-overflow-scrolling: touch;
|
|
292
|
+
scrollbar-width: thin;
|
|
293
|
+
scrollbar-color: #C4C4C4 transparent;
|
|
294
|
+
}
|
|
295
|
+
.${z}::-webkit-scrollbar {
|
|
296
|
+
width: 6px;
|
|
297
|
+
height: 6px;
|
|
298
|
+
background: transparent;
|
|
299
|
+
}
|
|
300
|
+
.${z}::-webkit-scrollbar-track {
|
|
301
|
+
background: transparent;
|
|
302
|
+
border: 0;
|
|
303
|
+
box-shadow: none;
|
|
304
|
+
}
|
|
305
|
+
/* Kill the stepper arrows and the corner square. Without these the
|
|
306
|
+
platform default chrome (arrow buttons at both ends of the track) still
|
|
307
|
+
paints around the styled thumb. */
|
|
308
|
+
.${z}::-webkit-scrollbar-button {
|
|
309
|
+
display: none;
|
|
310
|
+
width: 0;
|
|
311
|
+
height: 0;
|
|
312
|
+
}
|
|
313
|
+
.${z}::-webkit-scrollbar-corner { background: transparent; }
|
|
314
|
+
.${z}::-webkit-scrollbar-thumb {
|
|
315
|
+
background-color: #C4C4C4;
|
|
316
|
+
border-radius: 4px;
|
|
317
|
+
/* 1px (not the app shell's 2px): on a 6px track a 2px inset on each side
|
|
318
|
+
would leave a 2px sliver of visible thumb. */
|
|
319
|
+
border: 1px solid transparent;
|
|
320
|
+
background-clip: content-box;
|
|
321
|
+
}
|
|
322
|
+
.${z}::-webkit-scrollbar-thumb:hover {
|
|
323
|
+
background-color: #A0A0A0;
|
|
324
|
+
background-clip: content-box;
|
|
325
|
+
}
|
|
326
|
+
${ae}
|
|
327
|
+
`,ee=v?`.${k} > tbody > tr:nth-child(even) > td { ${Kn(v)} }`:"",se=S?`.${k} > tbody > tr > td:nth-child(even) { ${Kn(S)} }`:"",fe=`
|
|
328
|
+
.${k} { ${Kn(x)} }
|
|
329
|
+
${M}
|
|
330
|
+
.${k} > tbody > tr > td > .ahd-table-cell-text { ${Qo(p)} display: block; }
|
|
331
|
+
.${k} > thead > tr > th { ${Kn(d)} }
|
|
332
|
+
.${k} > thead > tr > th > .ahd-table-cell-text { ${Qo(f)} display: block; }
|
|
333
|
+
.${k} > caption > .ahd-table-cell-text { ${Qo(p)} display: block; }
|
|
334
|
+
${ee}
|
|
335
|
+
${se}
|
|
336
|
+
${pe}
|
|
337
|
+
`,Y=Array.from({length:o},(L,B)=>B),de=Array.from({length:r},(L,B)=>B),ve=L=>L.includes("<"),K=(L,B,Z,W)=>n?n({row:L,col:B,value:Z,isHeader:W}):ve(Z)?g.jsx("span",{dangerouslySetInnerHTML:{__html:Z}}):Z.split(`
|
|
338
|
+
`).map((X,ge,Ue)=>g.jsxs(U.Fragment,{children:[X,ge<Ue.length-1?g.jsx("br",{}):null]},ge));return g.jsxs("div",{className:"table-block",style:y,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:fe}}),g.jsx("div",{className:z,style:R,children:g.jsxs("table",{className:k,style:I,role:"table",children:[t!=null&&t.caption?g.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:g.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,i?g.jsx("thead",{children:g.jsx("tr",{children:de.map(L=>g.jsx("th",{scope:"col",style:P,children:g.jsx("div",{className:"ahd-table-cell-text",children:K(0,L,s[L]??"",!0)})},L))})}):null,g.jsx("tbody",{children:Y.slice(i?1:0).map(L=>g.jsx("tr",{children:de.map(B=>g.jsx("td",{style:T,children:g.jsx("div",{className:"ahd-table-cell-text",children:K(L,B,s[L*r+B]??"",!1)})},B))},L))})]})})]})}const tl=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),IS=A({responsive:Ge,style:A({padding:tl,margin:tl,textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:$().default(""),iframeSrc:$().default(""),width:D([m(),$()]).optional().nullable(),height:D([m(),$()]).optional().nullable(),borderRadius:m().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:m().optional().nullable()}).optional().nullable()}),nl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,RS=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,er=1440,tr=830,NS=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:r,borderRadius:i,borderColor:a,borderWidth:l}=t??{},s={padding:nl(e==null?void 0:e.padding),margin:nl(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!o)return g.jsx(g.Fragment,{});const c=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return g.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:c},children:g.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${RS(r,"100%")})`,aspectRatio:`${er} / ${tr}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:a?`${l??1}px solid ${a}`:"none"},children:g.jsx("div",{id:"demoScaler",style:{width:er,height:tr,transformOrigin:"top left"},children:g.jsx("iframe",{src:o,style:{width:er,height:tr,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},Ds=$m(()=>A({id:$().optional(),name:$().optional(),href:$().optional(),menuImage:$().optional(),children:te(Ds).optional()})),nr=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),TS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),ES=A({menuId:$().default(""),useCustomMenu:O().default(!1),stickyNav:O().default(!1),stickyNavTablet:O().optional().nullable(),stickyNavMobile:O().optional().nullable(),position:N(["left","center","right"]).default("left"),orientation:N(["horizontal","vertical"]).default("horizontal"),menuItems:te(Ds).optional().nullable(),startChildrenIds:te($()).optional().nullable(),endChildrenIds:te($()).optional().nullable(),layout:N(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:$().default("transparent"),textColor:$().default("#000000"),burgerDropdownBackgroundColor:$().optional().nullable(),submenuBackgroundColor:$().optional().nullable(),submenuRadius:m().optional().nullable(),submenuIconSize:m().optional().nullable(),submenuPadding:nr,submenuItemPadding:nr,submenuMinWidth:m().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),padding:$().default("8px 16px"),blockPadding:nr,blockMargin:TS,gap:$().default("16px"),showIcons:O().default(!0),iconSize:$().default("24px")}),MS=A({style:A({}).passthrough().optional().nullable(),responsive:Ge,props:ES.optional().nullable()}),PS={left:"flex-start",center:"center",right:"flex-end"},Fs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,OS=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,LS=e=>e?e.left+e.right:0,zS=e=>!!e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")),Ca=e=>zS(e)?{backgroundImage:e,backgroundColor:"transparent"}:{backgroundColor:e??void 0},jS=(e,t,n=!1,o,r)=>{const i=LS(r);return{...Ca(e),width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:Fs(o),margin:OS(r),justifyContent:n?"space-between":PS[t]||"flex-start"}},or=(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}),BS=(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"}),DS={position:"relative"},FS=(e,t,n,o,r,i,a,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:o,fontWeight:(l==null?void 0:l.fontWeight)??r,fontFamily:a||void 0,padding:(l==null?void 0:l.padding)??i,textDecoration:"none",whiteSpace:"nowrap",...Ca(l==null?void 0:l.backgroundColor),...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),HS=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),GS=e=>({paddingLeft:e===0?"0":"12px"}),US=(e,t,n,o,r)=>({...Ca(e),borderRadius:`${t}px`,border:n?`1px solid ${n}`:void 0,boxShadow:"0 12px 32px color-mix(in srgb, currentColor 18%, transparent)",padding:Fs(o)??"8px",minWidth:`${r??260}px`}),WS=e=>({display:"inline-flex",alignItems:"center",marginLeft:"6px",width:`${e}px`,height:`${e}px`,flexShrink:0}),ZS="M6 9l6 6 6-6",Hs={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},VS=e=>({color:e});function qS(e,t){const n=`.ahd-menu-${e}`,o=(t==null?void 0:t.dropdownBackground)||"#fff",r=t!=null&&t.hasSubmenuItemPadding?"padding-left:32px!important":"padding:10px 16px 10px 32px!important",i=[`${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}`,`${n} .ahd-menu-backdrop{display:none}`,`${n} .ahd-menu-submenu{position:absolute;top:100%;left:0;z-index:120;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;pointer-events:none}`,`${n} .ahd-menu-list>li:hover>.ahd-menu-submenu,${n} .ahd-menu-list>li:focus-within>.ahd-menu-submenu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}`,`${n} .ahd-menu-submenu .ahd-menu-submenu{top:0;left:100%;transform:translateX(4px)}`,`${n} .ahd-menu-submenu li:hover>.ahd-menu-submenu,${n} .ahd-menu-submenu li:focus-within>.ahd-menu-submenu{transform:translateX(0)}`,`${n} .ahd-menu-sublist{display:block!important;width:100%}`,`${n} .ahd-menu-sublist>li>a{display:flex;width:100%;white-space:normal!important;border-radius:6px}`,`${n} .ahd-menu-sublist>li>a:hover{background:color-mix(in srgb,currentColor 10%,transparent)}`,`${n} .ahd-menu-sub-toggle{position:absolute!important;opacity:0!important;width:0!important;height:0!important;margin:0!important;pointer-events:none!important}`,`${n} .ahd-menu-sub-caret{display:none}`,`${n} .ahd-menu-caret{transition:transform .15s ease}`,`${n} li:hover>.ahd-menu-item-row .ahd-menu-caret,${n} li:focus-within>.ahd-menu-item-row .ahd-menu-caret{transform:rotate(180deg)}`].join(""),a=[`${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-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:90;background:transparent;cursor:default;border:0}`,`${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:${o};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-submenu{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;display:none;transition:none}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-submenu{display:block}`,`${n} .ahd-menu-submenu>*{box-shadow:none!important;border:0!important;border-radius:0!important;min-width:0!important;background:transparent!important;padding:0!important}`,`${n} .ahd-menu-submenu{box-shadow:inset 2px 0 0 color-mix(in srgb,currentColor 25%,transparent)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>a,${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>.ahd-menu-item-row>.ahd-menu-item-label>a{${r}}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist .ahd-menu-sublist>li>a{padding-left:48px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li+li{border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}`,`${n} .ahd-menu-sublist>li{width:100%}`,`${n} .ahd-menu-list>li>.ahd-menu-item-label{display:flex!important;flex:1 1 auto;min-width:0}`,`${n} .ahd-menu-item-row{display:flex;align-items:center;width:100%}`,`${n} .ahd-menu-sub-caret{display:flex!important;align-items:center;justify-content:center;width:44px;align-self:stretch;cursor:pointer;color:currentColor;flex:0 0 auto}`,`${n} .ahd-menu-sub-caret-icon{margin-left:0!important;transition:transform .15s ease}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-item-row .ahd-menu-sub-caret-icon{transform:rotate(180deg)}`,`${n} .ahd-menu-caret{display:none!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(""),l=`(max-width:${Pe}px)`;return i+`@media ${l}{${a}}@container ahd-page ${l}{${a}}`}const YS=(e,t)=>{const n=!!t.stickyNav,o=t.stickyNavTablet??n,r=t.stickyNavMobile??o,i=l=>l?`.ahd-menu-sticky-${e}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:sticky;top:0;z-index:50}`:`.ahd-menu-sticky-${e}{position:static}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:static}`;let a=n?i(!0):"";if(o!==n){const l=`(max-width:${Pe}px)`;a+=`@media ${l}{${i(o)}}`,a+=`@container ahd-page ${l}{${i(o)}}`}if(r!==o){const l=`(max-width:${Oe}px)`;a+=`@media ${l}{${i(r)}}`,a+=`@container ahd-page ${l}{${i(r)}}`}return a},KS=e=>{if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Tr=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},ol=({size:e,className:t})=>g.jsx("span",{className:t,style:WS(e),"aria-hidden":"true",children:g.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:g.jsx("path",{d:ZS})})}),Er=(e,t,n=0)=>{if(!e||e.length===0)return null;const{textColor:o,fontSize:r,fontWeight:i,padding:a,orientation:l,gap:s,showIcons:c,iconSize:u,toggleId:h,listId:d,fontFamily:f,menuKey:p,submenuBackground:b,submenuRadius:x,submenuBorderColor:v,submenuIconSize:S,submenuPadding:k,submenuItemPadding:w,submenuMinWidth:C}=t,y=n>0&&w?`${w.top}px ${w.right}px ${w.bottom}px ${w.left}px`:a;return g.jsx("ul",{id:n===0?d:void 0,className:n===0?"ahd-menu-list":"ahd-menu-sublist",style:BS(l,n,s),children:e.map((_,I)=>{const R=Array.isArray(_.children)?_.children:[],T=R.length>0,P=`ahd-submenu-${p}-${n}-${_.id||I}`,M=_.name||_.label||"",z=g.jsxs("a",{href:_.href||"#",style:FS(c,!!_.menuImage,o,r,i,y,f,_),children:[c&&_.menuImage&&g.jsx("img",{src:_.menuImage,alt:"","aria-hidden":"true",style:HS(u)}),M,T&&g.jsx(ol,{size:S,className:"ahd-menu-caret"})]}),F=T?g.jsxs("span",{className:"ahd-menu-item-row",children:[g.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:H=>H.stopPropagation(),children:z}),g.jsx("label",{htmlFor:P,className:"ahd-menu-sub-caret","aria-label":`Toggle ${M} submenu`,onClick:Tr(P),children:g.jsx(ol,{size:S,className:"ahd-menu-sub-caret-icon"})})]}):g.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:H=>H.stopPropagation(),children:z});return g.jsxs("li",{style:DS,children:[T&&g.jsx("input",{type:"checkbox",id:P,className:"ahd-menu-sub-toggle","aria-hidden":"true",tabIndex:-1,style:Hs,onClick:H=>H.stopPropagation()}),F,T&&g.jsx("div",{className:"ahd-menu-submenu",style:GS(n),children:g.jsx("div",{style:US(b,x,v,k,C),children:Er(R,{...t,orientation:"vertical"},n+1)})})]},_.id||I)})})},JS=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,stickyNavTablet:r,stickyNavMobile:i,menuItems:a,startChildrenIds:l,endChildrenIds:s,layout:c="menu-only",position:u="left",orientation:h="horizontal",backgroundColor:d="transparent",textColor:f="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:v="400",padding:S="8px 16px",blockPadding:k,blockMargin:w,gap:C="16px",showIcons:y=!0,iconSize:_="24px",borderColor:I,borderWidth:R,borderRadius:T,submenuBackgroundColor:P,submenuRadius:M,submenuIconSize:z,submenuPadding:F,submenuItemPadding:H,submenuMinWidth:V,bare:q}=e??{};if(!(Array.isArray(a)&&a.length>0)||!n&&!t)return g.jsx(g.Fragment,{});const ae=c==="logo-menu"||c==="logo-menu-cta",pe=c==="menu-cta"||c==="logo-menu-cta",ee=ae||pe,se=u==="right"?"end":u==="center"?"center":"start",fe=U.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),Y=t||fe,de=(q==null?void 0:q.toggleId)??`ahd-menu-toggle-${Y}`,ve=(q==null?void 0:q.listId)??`ahd-menu-list-${Y}`,K=KS(x),L=q?q.toggleId.replace(/^ahd-menu-toggle-/,""):Y,B={textColor:f,fontSize:b,fontWeight:v,padding:S,orientation:h,gap:C,showIcons:y,iconSize:_,toggleId:de,listId:ve,fontFamily:K,menuKey:L,submenuBackground:P||p||(d!=="transparent"?d:"#ffffff"),submenuRadius:M??8,submenuBorderColor:I??null,submenuIconSize:z??14,submenuPadding:F??null,submenuItemPadding:H??null,submenuMinWidth:V??null};if(q)return g.jsx(g.Fragment,{children:Er(a,B)});const Z=YS(Y,{stickyNav:o,stickyNavTablet:r,stickyNavMobile:i}),W=qS(Y,{dropdownBackground:p??(d!=="transparent"?d:null),hasSubmenuItemPadding:!!H});return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:W}},Y),Z&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Z}}),g.jsxs("nav",{className:`ahd-menu ahd-menu-${Y} ahd-menu-sticky-${Y}`,"data-block":"menu","data-layout":c,style:{...jS(d,u,ee,k,w),...I?{borderStyle:"solid",borderColor:I,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...T!=null?{borderRadius:typeof T=="number"?`${T}px`:`${(T==null?void 0:T.topLeft)??0}px ${(T==null?void 0:T.topRight)??0}px ${(T==null?void 0:T.bottomRight)??0}px ${(T==null?void 0:T.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[g.jsx("input",{type:"checkbox",id:de,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":ve,style:Hs,onClick:X=>X.stopPropagation()}),g.jsx("label",{htmlFor:de,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Tr(de)}),ae&&g.jsx("div",{className:"ahd-menu-start",style:or("start"),children:(l??[]).map(X=>g.jsx(Ae,{id:X},X))}),g.jsx("div",{className:"ahd-menu-center",style:or(se,ee),children:Er(a,B)}),pe&&g.jsx("div",{className:"ahd-menu-end",style:or("end"),children:(s??[]).map(X=>g.jsx(Ae,{id:X},X))}),g.jsxs("label",{htmlFor:de,className:"ahd-menu-burger","aria-hidden":"true",style:VS(f),onClick:Tr(de),children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]})]})]})},XS=A({id:$().optional(),label:$().optional(),href:$().optional(),textColor:$().optional().nullable()}),QS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),ew=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),tw=A({items:te(XS).optional().nullable(),separator:N(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:$().optional().nullable(),showHomeIcon:O().default(!1),homeHref:$().default("/"),collapseOnMobile:O().default(!0),currentItemLinked:O().default(!1),textColor:$().default("#595959"),currentItemColor:$().optional().nullable(),separatorColor:$().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),gap:$().default("8px"),blockPadding:QS,blockMargin:ew}),nw=A({style:A({}).passthrough().optional().nullable(),responsive:Ge,props:tw.optional().nullable()}),rr={slash:"/",chevron:"›",dot:"•",pipe:"|"};function ow(e,t){return e==="custom"?t||"›":e&&rr[e]?rr[e]:rr.chevron}function rw(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),o=`(max-width:${Oe}px)`;return`@media ${o}{${n}}@container ahd-page ${o}{${n}}`}const aw=e=>{if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Gs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,iw=Gs,lw="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",sw=({size:e,color:t})=>g.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:g.jsx("path",{d:lw,fill:t})}),cw=({color:e,fontSize:t})=>g.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),uw=({props:e,renderLabel:t})=>{const{items:n,separator:o="chevron",customSeparator:r,showHomeIcon:i=!1,homeHref:a="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:c="#595959",currentItemColor:u,separatorColor:h,fontSize:d="14px",fontFamily:f,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:v}=e??{};if(!(Array.isArray(n)&&n.length>0))return g.jsx(g.Fragment,{});const k=aw(f),w=ow(o,r),C=n.length-1,y=U.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),_=l?rw(y):"",I=(R,T,P)=>{const M=(P?u:null)||R.textColor||c,z=!P||s,F={color:M,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:R,index:T,isLast:P,style:F}):z?g.jsx("a",{href:R.href||"#",style:F,"aria-current":P?"page":void 0,children:R.label||""}):g.jsx("span",{style:F,"aria-current":"page",children:R.label||""})};return g.jsxs(g.Fragment,{children:[_&&g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),g.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${y}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Gs(x),margin:iw(v)},children:g.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:k,fontWeight:p},children:[i&&g.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[g.jsx("a",{href:a||"/",style:{display:"flex",color:c},children:g.jsx(sw,{size:parseInt(d,10)||14,color:c})}),g.jsx("span",{"aria-hidden":"true",style:{color:h||c},children:w})]}),n.map((R,T)=>{const P=T===C,M=l&&T!==0&&!P;return g.jsxs("li",{className:M?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[I(R,T,P),!P&&g.jsx("span",{"aria-hidden":"true",style:{color:h||c},children:w})]},R.id||T)}),l&&n.length>2&&g.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[g.jsx(cw,{color:c,fontSize:d}),g.jsx("span",{"aria-hidden":"true",style:{color:h||c},children:w})]})]})})]})},dw=A({style:A({}).passthrough().optional().nullable(),props:A({formId:$().default(""),formName:$().default(""),iframeSrc:$().default(""),width:$().default("100%"),height:$().default("500px"),heightTablet:$().optional(),heightMobile:$().optional(),autoHeight:O().default(!1),alignment:N(["left","center","right"]).default("left")}).optional().nullable()}),hw=e=>{let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;return`form-${Math.abs(t).toString(36)}`},fw=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},mw=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},pw=({props:e,style:t})=>{var S,k;const{formId:n,iframeSrc:o,width:r,height:i,heightTablet:a,heightMobile:l,autoHeight:s=!1,alignment:c="left",formName:u}=e??{};if(!n||!o)return g.jsx(g.Fragment,{});const h=c==="center"?"center":c==="right"?"flex-end":"flex-start",d=t??{},f=(((S=d.margin)==null?void 0:S.left)||0)+(((k=d.margin)==null?void 0:k.right)||0),p={display:"flex",justifyContent:h,width:`calc(100% - ${f}px)`,padding:fw(d.padding),margin:mw(d.margin),backgroundColor:d.backgroundColor||void 0,borderRadius:d.borderRadius||void 0},b=hw(`${n}|${o??""}`),x=!s&&(a||l)?`
|
|
339
|
+
${a?`${Bt} { #${b} { height: ${a} !important; } }`:""}
|
|
340
|
+
${l?`${je} { #${b} { height: ${l} !important; } }`:""}
|
|
341
|
+
`:"",v=s?`
|
|
298
342
|
(function(){
|
|
299
|
-
var el = document.getElementById(${JSON.stringify(
|
|
343
|
+
var el = document.getElementById(${JSON.stringify(b)});
|
|
300
344
|
if (!el) return;
|
|
301
345
|
window.addEventListener('message', function(e){
|
|
302
346
|
var d = e.data;
|
|
@@ -307,7 +351,7 @@ ${y}
|
|
|
307
351
|
el.style.height = Math.ceil(h) + 'px';
|
|
308
352
|
});
|
|
309
353
|
})();
|
|
310
|
-
`:"";return g.jsxs(g.Fragment,{children:[
|
|
354
|
+
`:"";return g.jsxs(g.Fragment,{children:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("div",{style:p,children:g.jsx("iframe",{id:b,src:o,title:u||"Form",style:{width:r||"100%",height:s?"auto":i||"500px",border:"none",display:"block",borderRadius:d.borderRadius||void 0},scrolling:s?"no":void 0,loading:"lazy"})}),v&&g.jsx("script",{dangerouslySetInnerHTML:{__html:v}})]})},gw=A({style:A({}).passthrough().optional().nullable(),props:A({bannerId:$().default(""),bannerName:$().optional().nullable(),contentDocument:on($(),yn()).optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable()}),bw=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},xw=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},vw=({props:e})=>{const{bannerId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?n&&n.root?g.jsx("div",{className:"app-banner-picker-block",style:{...bw(o),...xw(r)},children:g.jsx(En,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{}):g.jsx(g.Fragment,{})},Sw=A({style:A({}).passthrough().optional().nullable(),props:A({faqGroupId:$().default(""),faqGroupName:$().optional().nullable(),contentDocument:on($(),yn()).optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable()}),ww=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},$w=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},kw=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?!n||!n.root?g.jsx(g.Fragment,{}):g.jsx("div",{className:"faq-picker-block",style:{...ww(o),...$w(r)},children:g.jsx(En,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{})},_w=A({style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({text:$().optional().nullable(),targetId:$().optional().nullable(),backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:m().optional().nullable(),borderRadius:m().optional().nullable(),paddingX:m().optional().nullable(),paddingY:m().optional().nullable(),marginX:m().optional().nullable(),marginY:m().optional().nullable(),displayMode:N(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),ut={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 Cw=0;function Us({style:e,props:t}){var v,S;const n=((v=t==null?void 0:t.text)==null?void 0:v.trim())||ut.text,o=((S=t==null?void 0:t.targetId)==null?void 0:S.trim())||ut.targetId,r=(t==null?void 0:t.backgroundColor)??ut.backgroundColor,i=(t==null?void 0:t.textColor)??ut.textColor,a=(t==null?void 0:t.fontSize)??ut.fontSize,l=(t==null?void 0:t.borderRadius)??ut.borderRadius,s=(t==null?void 0:t.paddingX)??ut.paddingX,c=(t==null?void 0:t.paddingY)??ut.paddingY,u=(t==null?void 0:t.marginX)??ut.marginX,h=(t==null?void 0:t.marginY)??ut.marginY,d="always-visible",f=`skip-link-${++Cw}`,p={padding:va(e==null?void 0:e.padding),margin:Sa(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
|
|
311
355
|
display:inline-block;
|
|
312
356
|
background:${r};
|
|
313
357
|
color:${i};
|
|
@@ -315,12 +359,12 @@ ${y}
|
|
|
315
359
|
font-weight:600;
|
|
316
360
|
border-radius:${l}px;
|
|
317
361
|
padding:${c}px ${s}px;
|
|
318
|
-
margin:${
|
|
362
|
+
margin:${h}px ${u}px;
|
|
319
363
|
text-decoration:none;
|
|
320
364
|
line-height:1.2;
|
|
321
365
|
font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
|
|
322
|
-
`,x=`.${
|
|
323
|
-
.${
|
|
366
|
+
`,x=`.${f}{${b}}
|
|
367
|
+
.${f}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return g.jsxs("div",{className:"skip-link-block",style:p,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("a",{href:`#${o}`,className:f,"data-skip-link":d,children:n})]})}const Aw=A({style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({renderMode:N(["inline","floating"]).optional().nullable(),position:N(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:$().optional().nullable(),triggerText:$().optional().nullable(),showLabelText:O().optional().nullable(),triggerBg:$().optional().nullable(),triggerColor:$().optional().nullable(),triggerFontSize:m().optional().nullable(),triggerBorderRadius:m().optional().nullable(),triggerPadding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),triggerMargin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),icon:N(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:A({contrast:O().optional().nullable(),invert:O().optional().nullable(),saturation:O().optional().nullable(),highlightLinks:O().optional().nullable(),textSize:O().optional().nullable(),textSpacing:O().optional().nullable(),lineHeight:O().optional().nullable(),hideImages:O().optional().nullable(),bigCursor:O().optional().nullable(),reset:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),dt={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"},ar={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 yw(e){return e&&ar[e]?ar[e]:ar.accessibility}function Iw(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${yw(e)}"/></svg>`}const Rw={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function Nw(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 Ws(e){const{containerPos:t}=Nw(e.position);return`
|
|
324
368
|
/* Accessibility Tools widget */
|
|
325
369
|
.ahd-a11y-widget{position:relative;display:inline-block}
|
|
326
370
|
.ahd-a11y-widget.ahd-a11y-floating{position:fixed;${t}z-index:99999}
|
|
@@ -342,7 +386,7 @@ ${y}
|
|
|
342
386
|
/* Active feature classes applied to <html> */
|
|
343
387
|
html.a11y-contrast{filter:contrast(1.5) !important}
|
|
344
388
|
html.a11y-invert{filter:invert(1) hue-rotate(180deg) !important}
|
|
345
|
-
html.a11y-invert img,html.a11y-invert video,html.a11y-invert iframe{filter:invert(1) hue-rotate(180deg) !important}
|
|
389
|
+
html.a11y-invert img,html.a11y-invert picture,html.a11y-invert video,html.a11y-invert iframe,html.a11y-invert svg,html.a11y-invert canvas,html.a11y-invert [style*="background-image"]{filter:invert(1) hue-rotate(180deg) !important}
|
|
346
390
|
html.a11y-desat{filter:grayscale(1) !important}
|
|
347
391
|
html.a11y-highlight-links a{background:#ffff00 !important;color:#000 !important;text-decoration:underline !important;outline:1px solid #000 !important}
|
|
348
392
|
html.a11y-text-lg .ahd-page-root{zoom:1.15;font-size:115% !important}
|
|
@@ -352,7 +396,7 @@ html.a11y-spacing,html.a11y-spacing *{letter-spacing:0.12em !important;word-spac
|
|
|
352
396
|
html.a11y-lineheight,html.a11y-lineheight *{line-height:1.8 !important}
|
|
353
397
|
html.a11y-hide-images img,html.a11y-hide-images picture,html.a11y-hide-images video{visibility:hidden !important}
|
|
354
398
|
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}
|
|
355
|
-
`.trim()}function
|
|
399
|
+
`.trim()}function Zs(e){const t={...Rw,...e.features??{}},n=(h,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${h}" aria-pressed="false">${d}</button>`,o=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>`:"",r=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=Iw(e.icon??"accessibility"),c=Em(e.triggerText,e.showLabelText!==!1,"Accessibility"),u=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
|
|
356
400
|
<div class="ahd-a11y-widget ahd-a11y-${l}">
|
|
357
401
|
<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>
|
|
358
402
|
<div class="ahd-a11y-panel" id="ahd-a11y-panel" role="dialog" aria-label="Accessibility tools" aria-hidden="true" data-open="false">
|
|
@@ -360,7 +404,7 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
|
|
|
360
404
|
${o}${r}${i}${a}
|
|
361
405
|
</div>
|
|
362
406
|
</div>
|
|
363
|
-
`.trim()}function
|
|
407
|
+
`.trim()}function Vs(){return`
|
|
364
408
|
(function(){
|
|
365
409
|
var STORAGE_KEY='ahdA11yPrefs';
|
|
366
410
|
// Classes that are mutually exclusive within their group
|
|
@@ -468,20 +512,20 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
|
|
|
468
512
|
init();
|
|
469
513
|
}
|
|
470
514
|
})();
|
|
471
|
-
`.trim()}function
|
|
515
|
+
`.trim()}function qs({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??dt.renderMode,o=(t==null?void 0:t.position)??dt.position,r=(t==null?void 0:t.features)??void 0,i=(t==null?void 0:t.triggerBg)??dt.triggerBg,a=(t==null?void 0:t.triggerColor)??dt.triggerColor,l=(t==null?void 0:t.triggerLabel)??dt.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,c=(t==null?void 0:t.triggerFontSize)??dt.triggerFontSize,u=(t==null?void 0:t.triggerBorderRadius)??dt.triggerBorderRadius,h=(t==null?void 0:t.triggerPadding)??dt.triggerPadding,d=(t==null?void 0:t.triggerMargin)??dt.triggerMargin,f=(t==null?void 0:t.icon)??dt.icon,p={padding:va(e==null?void 0:e.padding),margin:Sa(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:o,features:r,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:f,triggerLabel:l},x=Ws(b),v=`.ahd-a11y-trigger{background:${i};color:${a};font-size:${c}px;border-radius:${u}px;padding:${h.top}px ${h.right}px ${h.bottom}px ${h.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,S=Zs(b),k=Vs();return g.jsxs("div",{className:"accessibility-tools-block",style:p,"data-a11y-instance":"1",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:x+v}}),g.jsx("div",{dangerouslySetInnerHTML:{__html:S}}),g.jsx("script",{dangerouslySetInnerHTML:{__html:k}}),g.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}function Tw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mr={exports:{}},Pr={exports:{}},Je={},xe={};xe.__esModule=!0;xe.extend=Ys;xe.indexOf=Lw;xe.escapeExpression=zw;xe.isEmpty=jw;xe.createFrame=Bw;xe.blockParams=Dw;xe.appendContextPath=Fw;var Ew={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},Mw=/[&<>"'`=]/g,Pw=/[&<>"'`=]/;function Ow(e){return Ew[e]}function Ys(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 Aa=Object.prototype.toString;xe.toString=Aa;var Or=function(t){return typeof t=="function"};Or(/x/)&&(xe.isFunction=Or=function(e){return typeof e=="function"&&Aa.call(e)==="[object Function]"});xe.isFunction=Or;var Ks=Array.isArray||function(e){return e&&typeof e=="object"?Aa.call(e)==="[object Array]":!1};xe.isArray=Ks;function Lw(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function zw(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Pw.test(e)?e.replace(Mw,Ow):e}function jw(e){return!e&&e!==0?!0:!!(Ks(e)&&e.length===0)}function Bw(e){var t=Ys({},e);return t._parent=e,t}function Dw(e,t){return e.path=t,e}function Fw(e,t){return(e?e+".":"")+t}var Lr={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function o(r,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,r+=" - "+l+":"+c);for(var h=Error.prototype.constructor.call(this,r),d=0;d<n.length;d++)this[n[d]]=h[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,o);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{}}o.prototype=new Error,t.default=o,e.exports=t.default})(Lr,Lr.exports);var Xe=Lr.exports,Pn={},zr={exports:{}};(function(e,t){t.__esModule=!0;var n=xe;t.default=function(o){o.registerHelper("blockHelperMissing",function(r,i){var a=i.inverse,l=i.fn;if(r===!0)return l(this);if(r===!1||r==null)return a(this);if(n.isArray(r))return r.length>0?(i.ids&&(i.ids=[i.name]),o.helpers.each(r,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(r,i)})},e.exports=t.default})(zr,zr.exports);var Hw=zr.exports,jr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=xe,r=Xe,i=n(r);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,h=0,d="",f=void 0,p=void 0;s.data&&s.ids&&(p=o.appendContextPath(s.data.contextPath,s.ids[0])+"."),o.isFunction(l)&&(l=l.call(this)),s.data&&(f=o.createFrame(s.data));function b(w,C,y){f&&(f.key=w,f.index=C,f.first=C===0,f.last=!!y,p&&(f.contextPath=p+w)),d=d+c(l[w],{data:f,blockParams:o.blockParams([l[w],w],[p+w,null])})}if(l&&typeof l=="object")if(o.isArray(l))for(var x=l.length;h<x;h++)h in l&&b(h,h,h===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var v=[],S=l[Symbol.iterator](),k=S.next();!k.done;k=S.next())v.push(k.value);l=v;for(var x=l.length;h<x;h++)b(h,h,h===l.length-1)}else(function(){var w=void 0;Object.keys(l).forEach(function(C){w!==void 0&&b(w,h-1),w=C,h++}),w!==void 0&&b(w,h-1,!0)})();return h===0&&(d=u(this)),d})},e.exports=t.default})(jr,jr.exports);var Gw=jr.exports,Br={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var o=Xe,r=n(o);t.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(Br,Br.exports);var Uw=Br.exports,Dr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=xe,r=Xe,i=n(r);t.default=function(a){a.registerHelper("if",function(l,s){if(arguments.length!=2)throw new i.default("#if requires exactly one argument");return o.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||o.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})(Dr,Dr.exports);var Ww=Dr.exports,Fr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var o=[void 0],r=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)o.push(arguments[i]);var a=1;r.hash.level!=null?a=r.hash.level:r.data&&r.data.level!=null&&(a=r.data.level),o[0]=a,n.log.apply(n,o)})},e.exports=t.default})(Fr,Fr.exports);var Zw=Fr.exports,Hr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(o,r,i){return o&&i.lookupProperty(o,r)})},e.exports=t.default})(Hr,Hr.exports);var Vw=Hr.exports,Gr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=xe,r=Xe,i=n(r);t.default=function(a){a.registerHelper("with",function(l,s){if(arguments.length!=2)throw new i.default("#with requires exactly one argument");o.isFunction(l)&&(l=l.call(this));var c=s.fn;if(o.isEmpty(l))return s.inverse(this);var u=s.data;return s.data&&s.ids&&(u=o.createFrame(s.data),u.contextPath=o.appendContextPath(s.data.contextPath,s.ids[0])),c(l,{data:u,blockParams:o.blockParams([l],[u&&u.contextPath])})})},e.exports=t.default})(Gr,Gr.exports);var qw=Gr.exports;Pn.__esModule=!0;Pn.registerDefaultHelpers=c2;Pn.moveHelperToHooks=u2;function Dt(e){return e&&e.__esModule?e:{default:e}}var Yw=Hw,Kw=Dt(Yw),Jw=Gw,Xw=Dt(Jw),Qw=Uw,e2=Dt(Qw),t2=Ww,n2=Dt(t2),o2=Zw,r2=Dt(o2),a2=Vw,i2=Dt(a2),l2=qw,s2=Dt(l2);function c2(e){Kw.default(e),Xw.default(e),e2.default(e),n2.default(e),r2.default(e),i2.default(e),s2.default(e)}function u2(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var ya={},Ur={exports:{}};(function(e,t){t.__esModule=!0;var n=xe;t.default=function(o){o.registerDecorator("inline",function(r,i,a,l){var s=r;return i.partials||(i.partials={},s=function(c,u){var h=a.partials;a.partials=n.extend({},h,i.partials);var d=r(c,u);return a.partials=h,d}),i.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Ur,Ur.exports);var d2=Ur.exports;ya.__esModule=!0;ya.registerDefaultDecorators=p2;function h2(e){return e&&e.__esModule?e:{default:e}}var f2=d2,m2=h2(f2);function p2(e){m2.default(e)}var Wr={exports:{}};(function(e,t){t.__esModule=!0;var n=xe,o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(i){if(typeof i=="string"){var a=n.indexOf(o.methodMap,i.toLowerCase());a>=0?i=a:i=parseInt(i,10)}return i},log:function(i){if(i=o.lookupLevel(i),typeof console<"u"&&o.lookupLevel(o.level)<=i){var a=o.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=o,e.exports=t.default})(Wr,Wr.exports);var Js=Wr.exports,cn={};cn.__esModule=!0;cn.createProtoAccessControl=v2;cn.resultIsAllowed=S2;cn.resetLoggedProperties=$2;function g2(e){return e&&e.__esModule?e:{default:e}}var rl=xe,b2=Js,x2=g2(b2),vo=Object.create(null);function v2(e){var t=Object.create(null);t.__proto__=!1,rl.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,rl.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function S2(e,t,n){return al(typeof e=="function"?t.methods:t.properties,n)}function al(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(w2(t),!1)}function w2(e){vo[e]!==!0&&(vo[e]=!0,x2.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
472
516
|
You can add a runtime option to disable the check or this warning:
|
|
473
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function
|
|
474
|
-
`),
|
|
475
|
-
`)}return c}else throw new lt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var r={strict:function(l,s,c){if(!l||!(s in l))throw new lt.default('"'+s+'" not defined in '+l,{loc:c});return r.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||Hi.resultIsAllowed(c,r.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var f=l[u]&&r.lookupProperty(l[u],s);if(f!=null)return f}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:Dt.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,f){var d=this.programs[l],h=this.fn(l);return s||f||u||c?d=Wn(this,l,h,s,c,u,f):d||(d=this.programs[l]=Wn(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=Dt.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=IS(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 f(d){return""+e.main(r,d,r.helpers,r.partials,s,u,c)}return f=Es(e.main,f,r,l.depths||[],s,u),f(a,l)}return i.isTop=!0,i._setup=function(a){if(a.partial)r.protoAccessControl=a.protoAccessControl,r.helpers=a.helpers,r.partials=a.partials,r.decorators=a.decorators,r.hooks=a.hooks;else{var l={};Gi(l,t.helpers,r),Gi(l,a.helpers,r),r.helpers=l,e.usePartial&&(r.partials=r.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=Dt.extend({},t.decorators,a.decorators)),r.hooks={},r.protoAccessControl=Hi.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||n;Fi.moveHelperToHooks(r,"helperMissing",s),Fi.moveHelperToHooks(r,"blockHelperMissing",s)}},i._child=function(a,l,s,c){if(e.useBlockParams&&!s)throw new lt.default("must pass block params");if(e.useDepths&&!c)throw new lt.default("must pass parent depths");return Wn(r,a,e[a],l,0,s,c)},i}function Wn(e,t,n,o,r,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||o,i&&[c.blockParams].concat(i),u)}return l=Es(n,l,e,a,o,i),l.program=t,l.depth=a?a.length:0,l.blockParams=r||0,l}function AS(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=qn(n.partials,e)):n.name==="@partial-block"?e=qn(n.data,"partial-block"):e=qn(n.partials,n.name),e}function yS(e,t,n){var o=qn(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==Rs&&function(){n.data=st.createFrame(n.data);var i=n.fn;r=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=st.createFrame(s.data),s.data["partial-block"]=o,i(l,s)},i.partials&&(n.partials=Dt.extend({},n.partials,i.partials))}(),e===void 0&&r&&(e=r),e===void 0)throw new lt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function Rs(){return""}function qn(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function IS(e,t){return(!t||!("root"in t))&&(t=t?st.createFrame(t):{},t.root=e),t}function Es(e,t,n,o,r,i){if(e.decorator){var a={};t=e.decorator(t,a,n,o&&o[0],r,i,o),Dt.extend(t,a)}return t}function Gi(e,t,n){t&&Object.keys(t).forEach(function(o){var r=t[o];e[o]=RS(r,n)})}function RS(e,t){var n=t.lookupProperty;return _S.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var zr={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 o=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=o),n}},e.exports=t.default})(zr,zr.exports);var Ns=zr.exports;(function(e,t){t.__esModule=!0;function n(v){return v&&v.__esModule?v:{default:v}}function o(v){if(v&&v.__esModule)return v;var _={};if(v!=null)for(var S in v)Object.prototype.hasOwnProperty.call(v,S)&&(_[S]=v[S]);return _.default=v,_}var r=Ze,i=o(r),a=bS,l=n(a),s=We,c=n(s),u=fe,f=o(u),d=vt,h=o(d),p=Ns,b=n(p);function x(){var v=new i.HandlebarsEnvironment;return f.extend(v,i),v.SafeString=l.default,v.Exception=c.default,v.Utils=f,v.escapeExpression=f.escapeExpression,v.VM=h,v.template=function(_){return h.template(_,v)},v}var w=x();w.create=x,b.default(w),w.default=w,t.default=w,e.exports=t.default})(_r,_r.exports);var ES=_r.exports,jr={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!n.helpers.scopedId(r)&&!r.depth}}};t.default=n,e.exports=t.default})(jr,jr.exports);var Ms=jr.exports,An={},Br={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var o={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,f,d,h){var p=d.length-1;switch(f){case 1:return d[p-1];case 2:this.$=u.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(d[p]),strip:u.stripFlags(d[p],d[p]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=u.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=u.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:u.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=u.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=u.prepareProgram([b],d[p-1].loc);x.chained=!0,this.$={strip:d[p-2].strip,program:x,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:u.stripFlags(d[p-2],d[p])};break;case 22:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:u.stripFlags(d[p-4],d[p]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:u.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[p-2]),value:d[p],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="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[p];break;case 41:this.$=d[p];break;case 42:this.$=u.preparePath(!0,d[p],this._$);break;case 43:this.$=u.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:u.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:u.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);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],f=[],d=this.table,h="",p=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 x=this.lexer.yylloc;f.push(x);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function v(){var z;return z=s.lexer.lex()||1,typeof z!="number"&&(z=s.symbols_[z]||z),z}for(var _,S,$,y,C={},R,I,E,P;;){if(S=c[c.length-1],this.defaultActions[S]?$=this.defaultActions[S]:((_===null||typeof _>"u")&&(_=v()),$=d[S]&&d[S][_]),typeof $>"u"||!$.length||!$[0]){var T="";{P=[];for(R in d[S])this.terminals_[R]&&R>2&&P.push("'"+this.terminals_[R]+"'");this.lexer.showPosition?T="Parse error on line "+(p+1)+`:
|
|
517
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function $2(){Object.keys(vo).forEach(function(e){delete vo[e]})}Je.__esModule=!0;Je.HandlebarsEnvironment=Zr;function Xs(e){return e&&e.__esModule?e:{default:e}}var Pt=xe,k2=Xe,ir=Xs(k2),_2=Pn,C2=ya,A2=Js,So=Xs(A2),y2=cn,I2="4.7.9";Je.VERSION=I2;var R2=8;Je.COMPILER_REVISION=R2;var N2=7;Je.LAST_COMPATIBLE_COMPILER_REVISION=N2;var T2={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"};Je.REVISION_CHANGES=T2;var lr="[object Object]";function Zr(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},_2.registerDefaultHelpers(this),C2.registerDefaultDecorators(this)}Zr.prototype={constructor:Zr,logger:So.default,log:So.default.log,registerHelper:function(t,n){if(Pt.toString.call(t)===lr){if(n)throw new ir.default("Arg not supported with multiple helpers");Pt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(Pt.toString.call(t)===lr)Pt.extend(this.partials,t);else{if(typeof n>"u")throw new ir.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(Pt.toString.call(t)===lr){if(n)throw new ir.default("Arg not supported with multiple decorators");Pt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){y2.resetLoggedProperties()}};var E2=So.default.log;Je.log=E2;Je.createFrame=Pt.createFrame;Je.logger=So.default;var Vr={exports:{}};(function(e,t){t.__esModule=!0;function n(o){this.string=o}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Vr,Vr.exports);var M2=Vr.exports,Tt={},Ia={};Ia.__esModule=!0;Ia.wrapHelper=P2;function P2(e,t){if(typeof e!="function")return e;var n=function(){var r=arguments[arguments.length-1];return arguments[arguments.length-1]=t(r),e.apply(this,arguments)};return n}Tt.__esModule=!0;Tt.checkRevision=D2;Tt.template=F2;Tt.wrapProgram=ro;Tt.resolvePartial=H2;Tt.invokePartial=G2;Tt.noop=Qs;function O2(e){return e&&e.__esModule?e:{default:e}}function L2(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 z2=xe,Jt=L2(z2),j2=Xe,vt=O2(j2),St=Je,il=Pn,B2=Ia,ll=cn;function D2(e){var t=e&&e[0]||1,n=St.COMPILER_REVISION;if(!(t>=St.LAST_COMPATIBLE_COMPILER_REVISION&&t<=St.COMPILER_REVISION))if(t<St.LAST_COMPATIBLE_COMPILER_REVISION){var o=St.REVISION_CHANGES[n],r=St.REVISION_CHANGES[t];throw new vt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+o+") or downgrade your runtime to an older version ("+r+").")}else throw new vt.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 F2(e,t){if(!t)throw new vt.default("No environment passed to template");if(!e||!e.main)throw new vt.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 o(a,l,s){s.hash&&(l=Jt.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(`
|
|
518
|
+
`),h=0,d=u.length;h<d&&!(!u[h]&&h+1===d);h++)u[h]=s.indent+u[h];c=u.join(`
|
|
519
|
+
`)}return c}else throw new vt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var r={strict:function(l,s,c){if(!l||!(s in l))throw new vt.default('"'+s+'" not defined in '+l,{loc:c});return r.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||ll.resultIsAllowed(c,r.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var h=l[u]&&r.lookupProperty(l[u],s);if(h!=null)return h}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:Jt.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,h){var d=this.programs[l],f=this.fn(l);return s||h||u||c?d=ro(this,l,f,s,c,u,h):d||(d=this.programs[l]=ro(this,l,f)),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=Jt.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=U2(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 h(d){return""+e.main(r,d,r.helpers,r.partials,s,u,c)}return h=ec(e.main,h,r,l.depths||[],s,u),h(a,l)}return i.isTop=!0,i._setup=function(a){if(a.partial)r.protoAccessControl=a.protoAccessControl,r.helpers=a.helpers,r.partials=a.partials,r.decorators=a.decorators,r.hooks=a.hooks;else{var l={};sl(l,t.helpers,r),sl(l,a.helpers,r),r.helpers=l,e.usePartial&&(r.partials=r.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=Jt.extend({},t.decorators,a.decorators)),r.hooks={},r.protoAccessControl=ll.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||n;il.moveHelperToHooks(r,"helperMissing",s),il.moveHelperToHooks(r,"blockHelperMissing",s)}},i._child=function(a,l,s,c){if(e.useBlockParams&&!s)throw new vt.default("must pass block params");if(e.useDepths&&!c)throw new vt.default("must pass parent depths");return ro(r,a,e[a],l,0,s,c)},i}function ro(e,t,n,o,r,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||o,i&&[c.blockParams].concat(i),u)}return l=ec(n,l,e,a,o,i),l.program=t,l.depth=a?a.length:0,l.blockParams=r||0,l}function H2(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=ao(n.partials,e)):n.name==="@partial-block"?e=ao(n.data,"partial-block"):e=ao(n.partials,n.name),e}function G2(e,t,n){var o=ao(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==Qs&&function(){n.data=St.createFrame(n.data);var i=n.fn;r=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=St.createFrame(s.data),s.data["partial-block"]=o,i(l,s)},i.partials&&(n.partials=Jt.extend({},n.partials,i.partials))}(),e===void 0&&r&&(e=r),e===void 0)throw new vt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function Qs(){return""}function ao(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function U2(e,t){return(!t||!("root"in t))&&(t=t?St.createFrame(t):{},t.root=e),t}function ec(e,t,n,o,r,i){if(e.decorator){var a={};t=e.decorator(t,a,n,o&&o[0],r,i,o),Jt.extend(t,a)}return t}function sl(e,t,n){t&&Object.keys(t).forEach(function(o){var r=t[o];e[o]=W2(r,n)})}function W2(e,t){var n=t.lookupProperty;return B2.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var qr={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 o=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=o),n}},e.exports=t.default})(qr,qr.exports);var tc=qr.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}function o(S){if(S&&S.__esModule)return S;var k={};if(S!=null)for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&(k[w]=S[w]);return k.default=S,k}var r=Je,i=o(r),a=M2,l=n(a),s=Xe,c=n(s),u=xe,h=o(u),d=Tt,f=o(d),p=tc,b=n(p);function x(){var S=new i.HandlebarsEnvironment;return h.extend(S,i),S.SafeString=l.default,S.Exception=c.default,S.Utils=h,S.escapeExpression=h.escapeExpression,S.VM=f,S.template=function(k){return f.template(k,S)},S}var v=x();v.create=x,b.default(v),v.default=v,t.default=v,e.exports=t.default})(Pr,Pr.exports);var Z2=Pr.exports,Yr={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!n.helpers.scopedId(r)&&!r.depth}}};t.default=n,e.exports=t.default})(Yr,Yr.exports);var nc=Yr.exports,On={},Kr={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var o={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,h,d,f){var p=d.length-1;switch(h){case 1:return d[p-1];case 2:this.$=u.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(d[p]),strip:u.stripFlags(d[p],d[p]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=u.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=u.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:u.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=u.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=u.prepareProgram([b],d[p-1].loc);x.chained=!0,this.$={strip:d[p-2].strip,program:x,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:u.stripFlags(d[p-2],d[p])};break;case 22:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:u.stripFlags(d[p-4],d[p]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:u.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[p-2]),value:d[p],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="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[p];break;case 41:this.$=d[p];break;case 42:this.$=u.preparePath(!0,d[p],this._$);break;case 43:this.$=u.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:u.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:u.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);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],h=[],d=this.table,f="",p=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 x=this.lexer.yylloc;h.push(x);var v=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(){var z;return z=s.lexer.lex()||1,typeof z!="number"&&(z=s.symbols_[z]||z),z}for(var k,w,C,y,_={},I,R,T,P;;){if(w=c[c.length-1],this.defaultActions[w]?C=this.defaultActions[w]:((k===null||typeof k>"u")&&(k=S()),C=d[w]&&d[w][k]),typeof C>"u"||!C.length||!C[0]){var M="";{P=[];for(I in d[w])this.terminals_[I]&&I>2&&P.push("'"+this.terminals_[I]+"'");this.lexer.showPosition?M="Parse error on line "+(p+1)+`:
|
|
476
520
|
`+this.lexer.showPosition()+`
|
|
477
|
-
Expecting `+P.join(", ")+", got '"+(this.terminals_[
|
|
478
|
-
`+c+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,c,u,
|
|
479
|
-
`+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,f){function d(h,p){return c.yytext=c.yytext.substring(h,c.yyleng-p+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}();o.lexer=r;function i(){this.yy={}}return i.prototype=o,o.Parser=i,new i}();t.default=n,e.exports=t.default})(Br,Br.exports);var NS=Br.exports,Dr={exports:{}},Fr={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=We,r=n(o);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,f){var d=this.accept(u[f]);if(this.mutating){if(d&&!i.prototype[d.type])throw new r.default('Unexpected node type "'+d.type+'" found when accepting '+f+" on "+u.type);u[f]=d}},acceptRequired:function(u,f){if(this.acceptKey(u,f),!u[f])throw new r.default(u.type+" requires "+f)},acceptArray:function(u){for(var f=0,d=u.length;f<d;f++)this.acceptKey(u,f),u[f]||(u.splice(f,1),f--,d--)},accept:function(u){if(u){if(!this[u.type])throw new r.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var f=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||f)return f;if(f!==!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})(Fr,Fr.exports);var Ts=Fr.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=Ts,r=n(o);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new r.default,i.prototype.Program=function(u){var f=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var h=u.body,p=0,b=h.length;p<b;p++){var x=h[p],w=this.accept(x);if(w){var v=a(h,p,d),_=l(h,p,d),S=w.openStandalone&&v,$=w.closeStandalone&&_,y=w.inlineStandalone&&v&&_;w.close&&s(h,p,!0),w.open&&c(h,p,!0),f&&y&&(s(h,p),c(h,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(h[p-1].original)[1])),f&&S&&(s((x.program||x.inverse).body),c(h,p)),f&&$&&(s(h,p),c((x.inverse||x.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var f=u.program||u.inverse,d=u.program&&u.inverse,h=d,p=d;if(d&&d.chained)for(h=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(f.body),closeStandalone:a((h||f).body)};if(u.openStrip.close&&s(f.body,null,!0),d){var x=u.inverseStrip;x.open&&c(f.body,null,!0),x.close&&s(h.body,null,!0),u.closeStrip.open&&c(p.body,null,!0),!this.options.ignoreStandalone&&a(f.body)&&l(h.body)&&(c(f.body),s(h.body))}else u.closeStrip.open&&c(f.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 f=u.strip||{};return{inlineStandalone:!0,open:f.open,close:f.close}};function a(u,f,d){f===void 0&&(f=u.length);var h=u[f-1],p=u[f-2];if(!h)return d;if(h.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original)}function l(u,f,d){f===void 0&&(f=-1);var h=u[f+1],p=u[f+2];if(!h)return d;if(h.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original)}function s(u,f,d){var h=u[f==null?0:f+1];if(!(!h||h.type!=="ContentStatement"||!d&&h.rightStripped)){var p=h.value;h.value=h.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==p}}function c(u,f,d){var h=u[f==null?u.length-1:f-1];if(!(!h||h.type!=="ContentStatement"||!d&&h.leftStripped)){var p=h.value;return h.value=h.value.replace(d?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==p,h.leftStripped}}t.default=i,e.exports=t.default})(Dr,Dr.exports);var MS=Dr.exports,qe={};qe.__esModule=!0;qe.SourceLocation=OS;qe.id=LS;qe.stripFlags=zS;qe.stripComment=jS;qe.preparePath=BS;qe.prepareMustache=DS;qe.prepareRawBlock=FS;qe.prepareBlock=HS;qe.prepareProgram=GS;qe.preparePartialBlock=US;function TS(e){return e&&e.__esModule?e:{default:e}}var PS=We,pa=TS(PS);function ma(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new pa.default(e.path.original+" doesn't match "+t,n)}}function OS(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 LS(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function zS(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function jS(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function BS(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",r=[],i=0,a=0,l=t.length;a<l;a++){var s=t[a].part,c=t[a].original!==s;if(o+=(t[a].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(r.length>0)throw new pa.default("Invalid path: "+o,{loc:n});s===".."&&i++}else r.push(s)}return{type:"PathExpression",data:e,depth:i,parts:r,original:o,loc:n}}function DS(e,t,n,o,r,i){var a=o.charAt(3)||o.charAt(2),l=a!=="{"&&a!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:r,loc:this.locInfo(i)}}function FS(e,t,n,o){ma(e,n),o=this.locInfo(o);var r={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function HS(e,t,n,o,r,i){o&&o.path&&ma(e,o);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(a)throw new pa.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),s=n.strip,l=n.program}return r&&(r=l,l=t,t=r),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function GS(e,t){if(!t&&e.length){var n=e[0].loc,o=e[e.length-1].loc;n&&o&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:o.end.line,column:o.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function US(e,t,n,o){return ma(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(o)}}An.__esModule=!0;An.parseWithoutProcessing=Ps;An.parse=QS;function ZS(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 ga(e){return e&&e.__esModule?e:{default:e}}var WS=NS,Hr=ga(WS),qS=MS,VS=ga(qS),YS=qe,KS=ZS(YS),JS=We,an=ga(JS),XS=fe;An.parser=Hr.default;var Vn={};XS.extend(Vn,KS);function Ps(e,t){if(e.type==="Program")return e2(e),e;Hr.default.yy=Vn,Vn.locInfo=function(o){return new Vn.SourceLocation(t&&t.srcName,o)};var n=Hr.default.parse(e);return n}function QS(e,t){var n=Ps(e,t),o=new VS.default(t);return o.accept(n)}function e2(e){Gr(e)}function Gr(e){if(e!=null){if(Array.isArray(e)){e.forEach(Gr);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!t2(e.depth))throw new an.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new an.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 an.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new an.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new an.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&Gr(e[n])})}}}function t2(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var yn={};yn.__esModule=!0;yn.Compiler=Ur;yn.precompile=a2;yn.compile=i2;function Os(e){return e&&e.__esModule?e:{default:e}}var n2=We,pn=Os(n2),wn=fe,o2=Ms,ln=Os(o2),r2=[].slice;function Ur(){}Ur.prototype={compiler:Ur,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var o=0;o<n;o++){var r=this.opcodes[o],i=t.opcodes[o];if(r.opcode!==i.opcode||!Ls(r.args,i.args))return!1}n=this.children.length;for(var o=0;o<n;o++)if(!this.children[o].equals(t.children[o]))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=wn.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,o=n.compile(t,this.options),r=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[r]=o,this.useDepths=this.useDepths||o.useDepths,r},accept:function(t){if(!this[t.type])throw new pn.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,o=n.length,r=0;r<o;r++)this.accept(n[r]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){Ui(t);var n=t.program,o=t.inverse;n=n&&this.compileProgram(n),o=o&&this.compileProgram(o);var r=this.classifySexpr(t);r==="helper"?this.helperSexpr(t,n,o):r==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,o),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),o=this.setupFullMustacheParams(t,n,void 0),r=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,r.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var o=t.params;if(o.length>1)throw new pn.default("Unsupported number of partial arguments: "+o.length,t);o.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):o.push({type:"PathExpression",parts:[],depth:0}));var r=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,r,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){Ui(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,o){var r=t.path,i=r.parts[0],a=n!=null||o!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",o),r.strict=!0,this.accept(r),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,o){var r=this.setupFullMustacheParams(t,n,o),i=t.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new pn.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,ln.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=ln.default.helpers.scopedId(t),r=!t.depth&&!o&&this.blockParamIndex(n);r?this.opcode("lookupBlockParam",r,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,o):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,o=0,r=n.length;for(this.opcode("pushHash");o<r;o++)this.pushParam(n[o].value);for(;o--;)this.opcode("assignToHash",n[o].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:r2.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=ln.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),r=!o&&ln.default.helpers.helperExpression(t),i=!o&&(r||n);if(i&&!r){var a=t.path.parts[0],l=this.options;l.knownHelpers[a]?r=!0:l.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var n=0,o=t.length;n<o;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 o=void 0;if(t.parts&&!ln.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var r=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,r)}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,o,r){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",n),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var r=this.options.blockParams[n],i=r&&wn.indexOf(r,t);if(r&&i>=0)return[n,i]}}};function a2(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new pn.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 o=n.parse(e,t),r=new n.Compiler().compile(o,t);return new n.JavaScriptCompiler().compile(r,t)}function i2(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new pn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=wn.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function r(){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 o||(o=r()),o.call(this,a,l)}return i._setup=function(a){return o||(o=r()),o._setup(a)},i._child=function(a,l,s,c){return o||(o=r()),o._child(a,l,s,c)},i}function Ls(e,t){if(e===t)return!0;if(wn.isArray(e)&&wn.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!Ls(e[n],t[n]))return!1;return!0}}function Ui(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 Zr={exports:{}},Wr={exports:{}},sn={},Qo={},Dn={},Fn={},Zi;function l2(){if(Zi)return Fn;Zi=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Fn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Fn.decode=function(t){var n=65,o=90,r=97,i=122,a=48,l=57,s=43,c=47,u=26,f=52;return n<=t&&t<=o?t-n:r<=t&&t<=i?t-r+u:a<=t&&t<=l?t-a+f:t==s?62:t==c?63:-1},Fn}var Wi;function zs(){if(Wi)return Dn;Wi=1;var e=l2(),t=5,n=1<<t,o=n-1,r=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 Dn.encode=function(s){var c="",u,f=i(s);do u=f&o,f>>>=t,f>0&&(u|=r),c+=e.encode(u);while(f>0);return c},Dn.decode=function(s,c,u){var f=s.length,d=0,h=0,p,b;do{if(c>=f)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));p=!!(b&r),b&=o,d=d+(b<<h),h+=t}while(p);u.value=a(d),u.rest=c},Dn}var er={},qi;function In(){return qi||(qi=1,function(e){function t(S,$,y){if($ in S)return S[$];if(arguments.length===3)return y;throw new Error('"'+$+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function r(S){var $=S.match(n);return $?{scheme:$[1],auth:$[2],host:$[3],port:$[4],path:$[5]}:null}e.urlParse=r;function i(S){var $="";return S.scheme&&($+=S.scheme+":"),$+="//",S.auth&&($+=S.auth+"@"),S.host&&($+=S.host),S.port&&($+=":"+S.port),S.path&&($+=S.path),$}e.urlGenerate=i;function a(S){var $=S,y=r(S);if(y){if(!y.path)return S;$=y.path}for(var C=e.isAbsolute($),R=$.split(/\/+/),I,E=0,P=R.length-1;P>=0;P--)I=R[P],I==="."?R.splice(P,1):I===".."?E++:E>0&&(I===""?(R.splice(P+1,E),E=0):(R.splice(P,2),E--));return $=R.join("/"),$===""&&($=C?"/":"."),y?(y.path=$,i(y)):$}e.normalize=a;function l(S,$){S===""&&(S="."),$===""&&($=".");var y=r($),C=r(S);if(C&&(S=C.path||"/"),y&&!y.scheme)return C&&(y.scheme=C.scheme),i(y);if(y||$.match(o))return $;if(C&&!C.host&&!C.path)return C.host=$,i(C);var R=$.charAt(0)==="/"?$:a(S.replace(/\/+$/,"")+"/"+$);return C?(C.path=R,i(C)):R}e.join=l,e.isAbsolute=function(S){return S.charAt(0)==="/"||n.test(S)};function s(S,$){S===""&&(S="."),S=S.replace(/\/$/,"");for(var y=0;$.indexOf(S+"/")!==0;){var C=S.lastIndexOf("/");if(C<0||(S=S.slice(0,C),S.match(/^([^\/]+:\/)?\/*$/)))return $;++y}return Array(y+1).join("../")+$.substr(S.length+1)}e.relative=s;var c=function(){var S=Object.create(null);return!("__proto__"in S)}();function u(S){return S}function f(S){return h(S)?"$"+S:S}e.toSetString=c?u:f;function d(S){return h(S)?S.slice(1):S}e.fromSetString=c?u:d;function h(S){if(!S)return!1;var $=S.length;if($<9||S.charCodeAt($-1)!==95||S.charCodeAt($-2)!==95||S.charCodeAt($-3)!==111||S.charCodeAt($-4)!==116||S.charCodeAt($-5)!==111||S.charCodeAt($-6)!==114||S.charCodeAt($-7)!==112||S.charCodeAt($-8)!==95||S.charCodeAt($-9)!==95)return!1;for(var y=$-10;y>=0;y--)if(S.charCodeAt(y)!==36)return!1;return!0}function p(S,$,y){var C=x(S.source,$.source);return C!==0||(C=S.originalLine-$.originalLine,C!==0)||(C=S.originalColumn-$.originalColumn,C!==0||y)||(C=S.generatedColumn-$.generatedColumn,C!==0)||(C=S.generatedLine-$.generatedLine,C!==0)?C:x(S.name,$.name)}e.compareByOriginalPositions=p;function b(S,$,y){var C=S.generatedLine-$.generatedLine;return C!==0||(C=S.generatedColumn-$.generatedColumn,C!==0||y)||(C=x(S.source,$.source),C!==0)||(C=S.originalLine-$.originalLine,C!==0)||(C=S.originalColumn-$.originalColumn,C!==0)?C:x(S.name,$.name)}e.compareByGeneratedPositionsDeflated=b;function x(S,$){return S===$?0:S===null?1:$===null?-1:S>$?1:-1}function w(S,$){var y=S.generatedLine-$.generatedLine;return y!==0||(y=S.generatedColumn-$.generatedColumn,y!==0)||(y=x(S.source,$.source),y!==0)||(y=S.originalLine-$.originalLine,y!==0)||(y=S.originalColumn-$.originalColumn,y!==0)?y:x(S.name,$.name)}e.compareByGeneratedPositionsInflated=w;function v(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=v;function _(S,$,y){if($=$||"",S&&(S[S.length-1]!=="/"&&$[0]!=="/"&&(S+="/"),$=S+$),y){var C=r(y);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var R=C.path.lastIndexOf("/");R>=0&&(C.path=C.path.substring(0,R+1))}$=l(i(C),$)}return a($)}e.computeSourceURL=_}(er)),er}var tr={},Vi;function js(){if(Vi)return tr;Vi=1;var e=In(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}return o.fromArray=function(i,a){for(var l=new o,s=0,c=i.length;s<c;s++)l.add(i[s],a);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.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)},o.prototype.has=function(i){if(n)return this._set.has(i);var a=e.toSetString(i);return t.call(this._set,a)},o.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.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},tr.ArraySet=o,tr}var nr={},Yi;function s2(){if(Yi)return nr;Yi=1;var e=In();function t(o,r){var i=o.generatedLine,a=r.generatedLine,l=o.generatedColumn,s=r.generatedColumn;return a>i||a==i&&s>=l||e.compareByGeneratedPositionsInflated(o,r)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(r,i){this._array.forEach(r,i)},n.prototype.add=function(r){t(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},nr.MappingList=n,nr}var Ki;function Bs(){if(Ki)return Qo;Ki=1;var e=zs(),t=In(),n=js().ArraySet,o=s2().MappingList;function r(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 o,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var l=a.sourceRoot,s=new r({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 f=a.sourceContentFor(c);f!=null&&s.setSourceContent(c,f)}),s},r.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})},r.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))},r.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 f=new n,d=new n;this._mappings.unsortedForEach(function(h){if(h.source===c&&h.originalLine!=null){var p=a.originalPositionFor({line:h.originalLine,column:h.originalColumn});p.source!=null&&(h.source=p.source,s!=null&&(h.source=t.join(s,h.source)),u!=null&&(h.source=t.relative(u,h.source)),h.originalLine=p.line,h.originalColumn=p.column,p.name!=null&&(h.name=p.name))}var b=h.source;b!=null&&!f.has(b)&&f.add(b);var x=h.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=f,this._names=d,a.sources.forEach(function(h){var p=a.sourceContentFor(h);p!=null&&(s!=null&&(h=t.join(s,h)),u!=null&&(h=t.relative(u,h)),this.setSourceContent(h,p))},this)},r.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}))}},r.prototype._serializeMappings=function(){for(var a=0,l=1,s=0,c=0,u=0,f=0,d="",h,p,b,x,w=this._mappings.toArray(),v=0,_=w.length;v<_;v++){if(p=w[v],h="",p.generatedLine!==l)for(a=0;p.generatedLine!==l;)h+=";",l++;else if(v>0){if(!t.compareByGeneratedPositionsInflated(p,w[v-1]))continue;h+=","}h+=e.encode(p.generatedColumn-a),a=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),h+=e.encode(x-f),f=x,h+=e.encode(p.originalLine-1-c),c=p.originalLine-1,h+=e.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(b=this._names.indexOf(p.name),h+=e.encode(b-u),u=b)),d+=h}return d},r.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)},r.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},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},Qo.SourceMapGenerator=r,Qo}var cn={},or={},Ji;function c2(){return Ji||(Ji=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,r,i,a,l){var s=Math.floor((o-n)/2)+n,c=a(r,i[s],!0);return c===0?s:c>0?o-s>1?t(s,o,r,i,a,l):l==e.LEAST_UPPER_BOUND?o<i.length?o:-1:s:s-n>1?t(n,s,r,i,a,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,r,i,a){if(r.length===0)return-1;var l=t(-1,r.length,o,r,i,a||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(r[l],r[l-1],!0)===0;)--l;return l}}(or)),or}var rr={},Xi;function u2(){if(Xi)return rr;Xi=1;function e(o,r,i){var a=o[r];o[r]=o[i],o[i]=a}function t(o,r){return Math.round(o+Math.random()*(r-o))}function n(o,r,i,a){if(i<a){var l=t(i,a),s=i-1;e(o,l,a);for(var c=o[a],u=i;u<a;u++)r(o[u],c)<=0&&(s+=1,e(o,s,u));e(o,s+1,u);var f=s+1;n(o,r,i,f-1),n(o,r,f+1,a)}}return rr.quickSort=function(o,r){n(o,r,0,o.length-1)},rr}var Qi;function d2(){if(Qi)return cn;Qi=1;var e=In(),t=c2(),n=js().ArraySet,o=zs(),r=u2().quickSort;function i(c,u){var f=c;return typeof c=="string"&&(f=e.parseSourceMapInput(c)),f.sections!=null?new s(f,u):new a(f,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,f){var d=u.charAt(f);return d===";"||d===","},i.prototype._parseMappings=function(u,f){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,f,d){var h=f||null,p=d||i.GENERATED_ORDER,b;switch(p){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 x=this.sourceRoot;b.map(function(w){var v=w.source===null?null:this._sources.at(w.source);return v=e.computeSourceURL(x,v,this._sourceMapURL),{source:v,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(u,h)},i.prototype.allGeneratedPositionsFor=function(u){var f=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:f,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var h=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var b=this._originalMappings[p];if(u.column===void 0)for(var x=b.originalLine;b&&b.originalLine===x;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p];else for(var w=b.originalColumn;b&&b.originalLine===f&&b.originalColumn==w;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p]}return h},cn.SourceMapConsumer=i;function a(c,u){var f=c;typeof c=="string"&&(f=e.parseSourceMapInput(c));var d=e.getArg(f,"version"),h=e.getArg(f,"sources"),p=e.getArg(f,"names",[]),b=e.getArg(f,"sourceRoot",null),x=e.getArg(f,"sourcesContent",null),w=e.getArg(f,"mappings"),v=e.getArg(f,"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(_){return b&&e.isAbsolute(b)&&e.isAbsolute(_)?e.relative(b,_):_}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function(_){return e.computeSourceURL(b,_,u)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=w,this._sourceMapURL=u,this.file=v}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 f;for(f=0;f<this._absoluteSources.length;++f)if(this._absoluteSources[f]==c)return f;return-1},a.fromSourceMap=function(u,f){var d=Object.create(a.prototype),h=d._names=n.fromArray(u._names.toArray(),!0),p=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=f,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,f)});for(var b=u._mappings.toArray().slice(),x=d.__generatedMappings=[],w=d.__originalMappings=[],v=0,_=b.length;v<_;v++){var S=b[v],$=new l;$.generatedLine=S.generatedLine,$.generatedColumn=S.generatedColumn,S.source&&($.source=p.indexOf(S.source),$.originalLine=S.originalLine,$.originalColumn=S.originalColumn,S.name&&($.name=h.indexOf(S.name)),w.push($)),x.push($)}return r(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,f){for(var d=1,h=0,p=0,b=0,x=0,w=0,v=u.length,_=0,S={},$={},y=[],C=[],R,I,E,P,T;_<v;)if(u.charAt(_)===";")d++,_++,h=0;else if(u.charAt(_)===",")_++;else{for(R=new l,R.generatedLine=d,P=_;P<v&&!this._charIsMappingSeparator(u,P);P++);if(I=u.slice(_,P),E=S[I],E)_+=I.length;else{for(E=[];_<P;)o.decode(u,_,$),T=$.value,_=$.rest,E.push(T);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");S[I]=E}R.generatedColumn=h+E[0],h=R.generatedColumn,E.length>1&&(R.source=x+E[1],x+=E[1],R.originalLine=p+E[2],p=R.originalLine,R.originalLine+=1,R.originalColumn=b+E[3],b=R.originalColumn,E.length>4&&(R.name=w+E[4],w+=E[4])),C.push(R),typeof R.originalLine=="number"&&y.push(R)}r(C,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,r(y,e.compareByOriginalPositions),this.__originalMappings=y},a.prototype._findMapping=function(u,f,d,h,p,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,f,p,b)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var f=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(f.generatedLine===d.generatedLine){f.lastGeneratedColumn=d.generatedColumn-1;continue}}f.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var f={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(f,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===f.generatedLine){var p=e.getArg(h,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var b=e.getArg(h,"name",null);return b!==null&&(b=this._names.at(b)),{source:p,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,f){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 p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var b=h.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!p.path||p.path=="/")&&this._sources.has("/"+h))return this.sourcesContent[this._sources.indexOf("/"+h)]}if(f)return null;throw new Error('"'+h+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var f=e.getArg(u,"source");if(f=this._findSourceIndex(f),f<0)return{line:null,column:null,lastColumn:null};var d={source:f,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 p=this._originalMappings[h];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},cn.BasicSourceMapConsumer=a;function s(c,u){var f=c;typeof c=="string"&&(f=e.parseSourceMapInput(c));var d=e.getArg(f,"version"),h=e.getArg(f,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var p={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 x=e.getArg(b,"offset"),w=e.getArg(x,"line"),v=e.getArg(x,"column");if(w<p.line||w===p.line&&v<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:w+1,generatedColumn:v+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 f=0;f<this._sections[u].consumer.sources.length;f++)c.push(this._sections[u].consumer.sources[f]);return c}}),s.prototype.originalPositionFor=function(u){var f={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(f,this._sections,function(p,b){var x=p.generatedLine-b.generatedOffset.generatedLine;return x||p.generatedColumn-b.generatedOffset.generatedColumn}),h=this._sections[d];return h?h.consumer.originalPositionFor({line:f.generatedLine-(h.generatedOffset.generatedLine-1),column:f.generatedColumn-(h.generatedOffset.generatedLine===f.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,f){for(var d=0;d<this._sections.length;d++){var h=this._sections[d],p=h.consumer.sourceContentFor(u,!0);if(p)return p}if(f)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var f=0;f<this._sections.length;f++){var d=this._sections[f];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var h=d.consumer.generatedPositionFor(u);if(h){var p={line:h.line+(d.generatedOffset.generatedLine-1),column:h.column+(d.generatedOffset.generatedLine===h.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,f){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var h=this._sections[d],p=h.consumer._generatedMappings,b=0;b<p.length;b++){var x=p[b],w=h.consumer._sources.at(x.source);w=e.computeSourceURL(h.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var v=null;x.name&&(v=h.consumer._names.at(x.name),this._names.add(v),v=this._names.indexOf(v));var _={source:w,generatedLine:x.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(h.generatedOffset.generatedLine===x.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:v};this.__generatedMappings.push(_),typeof _.originalLine=="number"&&this.__originalMappings.push(_)}r(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),r(this.__originalMappings,e.compareByOriginalPositions)},cn.IndexedSourceMapConsumer=s,cn}var ar={},el;function h2(){if(el)return ar;el=1;var e=Bs().SourceMapGenerator,t=In(),n=/(\r?\n)/,o=10,r="$$$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[r]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,f=l.split(n),d=0,h=function(){var v=S(),_=S()||"";return v+_;function S(){return d<f.length?f[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(v){if(x!==null)if(p<v.generatedLine)w(x,h()),p++,b=0;else{var _=f[d]||"",S=_.substr(0,v.generatedColumn-b);f[d]=_.substr(v.generatedColumn-b),b=v.generatedColumn,w(x,S),x=v;return}for(;p<v.generatedLine;)u.add(h()),p++;if(b<v.generatedColumn){var _=f[d]||"";u.add(_.substr(0,v.generatedColumn)),f[d]=_.substr(v.generatedColumn),b=v.generatedColumn}x=v},this),d<f.length&&(x&&w(x,h()),u.add(f.splice(d).join(""))),s.sources.forEach(function(v){var _=s.sourceContentFor(v);_!=null&&(c!=null&&(v=t.join(c,v)),u.setSourceContent(v,_))}),u;function w(v,_){if(v===null||v.source===void 0)u.add(_);else{var S=c?t.join(c,v.source):v.source;u.add(new i(v.originalLine,v.originalColumn,S,_,v.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[r]||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[r]||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[r]?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[r]?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][r]&&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,f=null,d=null,h=null,p=null;return this.walk(function(b,x){s.code+=b,x.source!==null&&x.line!==null&&x.column!==null?((f!==x.source||d!==x.line||h!==x.column||p!==x.name)&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name}),f=x.source,d=x.line,h=x.column,p=x.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),f=null,u=!1);for(var w=0,v=b.length;w<v;w++)b.charCodeAt(w)===o?(s.line++,s.column=0,w+1===v?(f=null,u=!1):u&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name})):s.column++}),this.walkSourceContents(function(b,x){c.setSourceContent(b,x)}),{code:s.code,map:c}},ar.SourceNode=i,ar}var tl;function f2(){return tl||(tl=1,sn.SourceMapGenerator=Bs().SourceMapGenerator,sn.SourceMapConsumer=d2().SourceMapConsumer,sn.SourceNode=h2().SourceNode),sn}(function(e,t){t.__esModule=!0;var n=fe,o=void 0;try{var r=f2();o=r.SourceNode}catch{}o||(o=function(l,s,c,u){this.src="",u&&this.add(u)},o.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=[],f=0,d=l.length;f<d;f++)u.push(s.wrap(l[f],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,`
|
|
480
|
-
`])}),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 o(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 o?s:(s=i(s,this,c),new o(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
|
|
521
|
+
Expecting `+P.join(", ")+", got '"+(this.terminals_[k]||k)+"'":M="Parse error on line "+(p+1)+": Unexpected "+(k==1?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(M,{text:this.lexer.match,token:this.terminals_[k]||k,line:this.lexer.yylineno,loc:x,expected:P})}}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+k);switch(C[0]){case 1:c.push(k),u.push(this.lexer.yytext),h.push(this.lexer.yylloc),c.push(C[1]),k=null,b=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc;break;case 2:if(R=this.productions_[C[1]][1],_.$=u[u.length-R],_._$={first_line:h[h.length-(R||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(R||1)].first_column,last_column:h[h.length-1].last_column},v&&(_._$.range=[h[h.length-(R||1)].range[0],h[h.length-1].range[1]]),y=this.performAction.call(_,f,b,p,this.yy,C[1],u,h),typeof y<"u")return y;R&&(c=c.slice(0,-1*R*2),u=u.slice(0,-1*R),h=h.slice(0,-1*R)),c.push(this.productions_[C[1]][0]),u.push(_.$),h.push(_._$),T=d[c[c.length-2]][c[c.length-1]],c.push(T);break;case 3:return!0}}return!0}},r=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 h=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===h.length?this.yylloc.first_column:0)+h[h.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()+`
|
|
522
|
+
`+c+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,c,u,h,d;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),p=0;p<f.length&&(u=this._input.match(this.rules[f[p]]),!(u&&(!c||u[0].length>c[0].length)&&(c=u,h=p,!this.options.flex)));p++);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,f[h],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.
|
|
523
|
+
`+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,h){function d(f,p){return c.yytext=c.yytext.substring(f,c.yyleng-p+f)}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}();o.lexer=r;function i(){this.yy={}}return i.prototype=o,o.Parser=i,new i}();t.default=n,e.exports=t.default})(Kr,Kr.exports);var V2=Kr.exports,Jr={exports:{}},Xr={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=Xe,r=n(o);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,h){var d=this.accept(u[h]);if(this.mutating){if(d&&!i.prototype[d.type])throw new r.default('Unexpected node type "'+d.type+'" found when accepting '+h+" on "+u.type);u[h]=d}},acceptRequired:function(u,h){if(this.acceptKey(u,h),!u[h])throw new r.default(u.type+" requires "+h)},acceptArray:function(u){for(var h=0,d=u.length;h<d;h++)this.acceptKey(u,h),u[h]||(u.splice(h,1),h--,d--)},accept:function(u){if(u){if(!this[u.type])throw new r.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var h=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||h)return h;if(h!==!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})(Xr,Xr.exports);var oc=Xr.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=oc,r=n(o);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new r.default,i.prototype.Program=function(u){var h=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var f=u.body,p=0,b=f.length;p<b;p++){var x=f[p],v=this.accept(x);if(v){var S=a(f,p,d),k=l(f,p,d),w=v.openStandalone&&S,C=v.closeStandalone&&k,y=v.inlineStandalone&&S&&k;v.close&&s(f,p,!0),v.open&&c(f,p,!0),h&&y&&(s(f,p),c(f,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(f[p-1].original)[1])),h&&w&&(s((x.program||x.inverse).body),c(f,p)),h&&C&&(s(f,p),c((x.inverse||x.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var h=u.program||u.inverse,d=u.program&&u.inverse,f=d,p=d;if(d&&d.chained)for(f=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(h.body),closeStandalone:a((f||h).body)};if(u.openStrip.close&&s(h.body,null,!0),d){var x=u.inverseStrip;x.open&&c(h.body,null,!0),x.close&&s(f.body,null,!0),u.closeStrip.open&&c(p.body,null,!0),!this.options.ignoreStandalone&&a(h.body)&&l(f.body)&&(c(h.body),s(f.body))}else u.closeStrip.open&&c(h.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 h=u.strip||{};return{inlineStandalone:!0,open:h.open,close:h.close}};function a(u,h,d){h===void 0&&(h=u.length);var f=u[h-1],p=u[h-2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function l(u,h,d){h===void 0&&(h=-1);var f=u[h+1],p=u[h+2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function s(u,h,d){var f=u[h==null?0:h+1];if(!(!f||f.type!=="ContentStatement"||!d&&f.rightStripped)){var p=f.value;f.value=f.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==p}}function c(u,h,d){var f=u[h==null?u.length-1:h-1];if(!(!f||f.type!=="ContentStatement"||!d&&f.leftStripped)){var p=f.value;return f.value=f.value.replace(d?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==p,f.leftStripped}}t.default=i,e.exports=t.default})(Jr,Jr.exports);var q2=Jr.exports,Qe={};Qe.__esModule=!0;Qe.SourceLocation=J2;Qe.id=X2;Qe.stripFlags=Q2;Qe.stripComment=e$;Qe.preparePath=t$;Qe.prepareMustache=n$;Qe.prepareRawBlock=o$;Qe.prepareBlock=r$;Qe.prepareProgram=a$;Qe.preparePartialBlock=i$;function Y2(e){return e&&e.__esModule?e:{default:e}}var K2=Xe,Ra=Y2(K2);function Na(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new Ra.default(e.path.original+" doesn't match "+t,n)}}function J2(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 X2(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function Q2(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function e$(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function t$(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",r=[],i=0,a=0,l=t.length;a<l;a++){var s=t[a].part,c=t[a].original!==s;if(o+=(t[a].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(r.length>0)throw new Ra.default("Invalid path: "+o,{loc:n});s===".."&&i++}else r.push(s)}return{type:"PathExpression",data:e,depth:i,parts:r,original:o,loc:n}}function n$(e,t,n,o,r,i){var a=o.charAt(3)||o.charAt(2),l=a!=="{"&&a!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:r,loc:this.locInfo(i)}}function o$(e,t,n,o){Na(e,n),o=this.locInfo(o);var r={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function r$(e,t,n,o,r,i){o&&o.path&&Na(e,o);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(a)throw new Ra.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),s=n.strip,l=n.program}return r&&(r=l,l=t,t=r),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function a$(e,t){if(!t&&e.length){var n=e[0].loc,o=e[e.length-1].loc;n&&o&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:o.end.line,column:o.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function i$(e,t,n,o){return Na(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(o)}}On.__esModule=!0;On.parseWithoutProcessing=rc;On.parse=p$;function l$(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 Ta(e){return e&&e.__esModule?e:{default:e}}var s$=V2,Qr=Ta(s$),c$=q2,u$=Ta(c$),d$=Qe,h$=l$(d$),f$=Xe,gn=Ta(f$),m$=xe;On.parser=Qr.default;var io={};m$.extend(io,h$);function rc(e,t){if(e.type==="Program")return g$(e),e;Qr.default.yy=io,io.locInfo=function(o){return new io.SourceLocation(t&&t.srcName,o)};var n=Qr.default.parse(e);return n}function p$(e,t){var n=rc(e,t),o=new u$.default(t);return o.accept(n)}function g$(e){ea(e)}function ea(e){if(e!=null){if(Array.isArray(e)){e.forEach(ea);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!b$(e.depth))throw new gn.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new gn.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 gn.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new gn.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new gn.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&ea(e[n])})}}}function b$(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var Ln={};Ln.__esModule=!0;Ln.Compiler=ta;Ln.precompile=w$;Ln.compile=$$;function ac(e){return e&&e.__esModule?e:{default:e}}var x$=Xe,_n=ac(x$),Nn=xe,v$=nc,bn=ac(v$),S$=[].slice;function ta(){}ta.prototype={compiler:ta,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var o=0;o<n;o++){var r=this.opcodes[o],i=t.opcodes[o];if(r.opcode!==i.opcode||!ic(r.args,i.args))return!1}n=this.children.length;for(var o=0;o<n;o++)if(!this.children[o].equals(t.children[o]))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=Nn.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,o=n.compile(t,this.options),r=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[r]=o,this.useDepths=this.useDepths||o.useDepths,r},accept:function(t){if(!this[t.type])throw new _n.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,o=n.length,r=0;r<o;r++)this.accept(n[r]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){cl(t);var n=t.program,o=t.inverse;n=n&&this.compileProgram(n),o=o&&this.compileProgram(o);var r=this.classifySexpr(t);r==="helper"?this.helperSexpr(t,n,o):r==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,o),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),o=this.setupFullMustacheParams(t,n,void 0),r=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,r.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var o=t.params;if(o.length>1)throw new _n.default("Unsupported number of partial arguments: "+o.length,t);o.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):o.push({type:"PathExpression",parts:[],depth:0}));var r=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,r,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){cl(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,o){var r=t.path,i=r.parts[0],a=n!=null||o!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",o),r.strict=!0,this.accept(r),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,o){var r=this.setupFullMustacheParams(t,n,o),i=t.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new _n.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,bn.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=bn.default.helpers.scopedId(t),r=!t.depth&&!o&&this.blockParamIndex(n);r?this.opcode("lookupBlockParam",r,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,o):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,o=0,r=n.length;for(this.opcode("pushHash");o<r;o++)this.pushParam(n[o].value);for(;o--;)this.opcode("assignToHash",n[o].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:S$.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=bn.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),r=!o&&bn.default.helpers.helperExpression(t),i=!o&&(r||n);if(i&&!r){var a=t.path.parts[0],l=this.options;l.knownHelpers[a]?r=!0:l.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var n=0,o=t.length;n<o;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 o=void 0;if(t.parts&&!bn.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var r=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,r)}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,o,r){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",n),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var r=this.options.blockParams[n],i=r&&Nn.indexOf(r,t);if(r&&i>=0)return[n,i]}}};function w$(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new _n.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 o=n.parse(e,t),r=new n.Compiler().compile(o,t);return new n.JavaScriptCompiler().compile(r,t)}function $$(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new _n.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Nn.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function r(){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 o||(o=r()),o.call(this,a,l)}return i._setup=function(a){return o||(o=r()),o._setup(a)},i._child=function(a,l,s,c){return o||(o=r()),o._child(a,l,s,c)},i}function ic(e,t){if(e===t)return!0;if(Nn.isArray(e)&&Nn.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!ic(e[n],t[n]))return!1;return!0}}function cl(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 na={exports:{}},oa={exports:{}},xn={},sr={},Jn={},Xn={},ul;function k$(){if(ul)return Xn;ul=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Xn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Xn.decode=function(t){var n=65,o=90,r=97,i=122,a=48,l=57,s=43,c=47,u=26,h=52;return n<=t&&t<=o?t-n:r<=t&&t<=i?t-r+u:a<=t&&t<=l?t-a+h:t==s?62:t==c?63:-1},Xn}var dl;function lc(){if(dl)return Jn;dl=1;var e=k$(),t=5,n=1<<t,o=n-1,r=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 Jn.encode=function(s){var c="",u,h=i(s);do u=h&o,h>>>=t,h>0&&(u|=r),c+=e.encode(u);while(h>0);return c},Jn.decode=function(s,c,u){var h=s.length,d=0,f=0,p,b;do{if(c>=h)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));p=!!(b&r),b&=o,d=d+(b<<f),f+=t}while(p);u.value=a(d),u.rest=c},Jn}var cr={},hl;function zn(){return hl||(hl=1,function(e){function t(w,C,y){if(C in w)return w[C];if(arguments.length===3)return y;throw new Error('"'+C+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function r(w){var C=w.match(n);return C?{scheme:C[1],auth:C[2],host:C[3],port:C[4],path:C[5]}:null}e.urlParse=r;function i(w){var C="";return w.scheme&&(C+=w.scheme+":"),C+="//",w.auth&&(C+=w.auth+"@"),w.host&&(C+=w.host),w.port&&(C+=":"+w.port),w.path&&(C+=w.path),C}e.urlGenerate=i;function a(w){var C=w,y=r(w);if(y){if(!y.path)return w;C=y.path}for(var _=e.isAbsolute(C),I=C.split(/\/+/),R,T=0,P=I.length-1;P>=0;P--)R=I[P],R==="."?I.splice(P,1):R===".."?T++:T>0&&(R===""?(I.splice(P+1,T),T=0):(I.splice(P,2),T--));return C=I.join("/"),C===""&&(C=_?"/":"."),y?(y.path=C,i(y)):C}e.normalize=a;function l(w,C){w===""&&(w="."),C===""&&(C=".");var y=r(C),_=r(w);if(_&&(w=_.path||"/"),y&&!y.scheme)return _&&(y.scheme=_.scheme),i(y);if(y||C.match(o))return C;if(_&&!_.host&&!_.path)return _.host=C,i(_);var I=C.charAt(0)==="/"?C:a(w.replace(/\/+$/,"")+"/"+C);return _?(_.path=I,i(_)):I}e.join=l,e.isAbsolute=function(w){return w.charAt(0)==="/"||n.test(w)};function s(w,C){w===""&&(w="."),w=w.replace(/\/$/,"");for(var y=0;C.indexOf(w+"/")!==0;){var _=w.lastIndexOf("/");if(_<0||(w=w.slice(0,_),w.match(/^([^\/]+:\/)?\/*$/)))return C;++y}return Array(y+1).join("../")+C.substr(w.length+1)}e.relative=s;var c=function(){var w=Object.create(null);return!("__proto__"in w)}();function u(w){return w}function h(w){return f(w)?"$"+w:w}e.toSetString=c?u:h;function d(w){return f(w)?w.slice(1):w}e.fromSetString=c?u:d;function f(w){if(!w)return!1;var C=w.length;if(C<9||w.charCodeAt(C-1)!==95||w.charCodeAt(C-2)!==95||w.charCodeAt(C-3)!==111||w.charCodeAt(C-4)!==116||w.charCodeAt(C-5)!==111||w.charCodeAt(C-6)!==114||w.charCodeAt(C-7)!==112||w.charCodeAt(C-8)!==95||w.charCodeAt(C-9)!==95)return!1;for(var y=C-10;y>=0;y--)if(w.charCodeAt(y)!==36)return!1;return!0}function p(w,C,y){var _=x(w.source,C.source);return _!==0||(_=w.originalLine-C.originalLine,_!==0)||(_=w.originalColumn-C.originalColumn,_!==0||y)||(_=w.generatedColumn-C.generatedColumn,_!==0)||(_=w.generatedLine-C.generatedLine,_!==0)?_:x(w.name,C.name)}e.compareByOriginalPositions=p;function b(w,C,y){var _=w.generatedLine-C.generatedLine;return _!==0||(_=w.generatedColumn-C.generatedColumn,_!==0||y)||(_=x(w.source,C.source),_!==0)||(_=w.originalLine-C.originalLine,_!==0)||(_=w.originalColumn-C.originalColumn,_!==0)?_:x(w.name,C.name)}e.compareByGeneratedPositionsDeflated=b;function x(w,C){return w===C?0:w===null?1:C===null?-1:w>C?1:-1}function v(w,C){var y=w.generatedLine-C.generatedLine;return y!==0||(y=w.generatedColumn-C.generatedColumn,y!==0)||(y=x(w.source,C.source),y!==0)||(y=w.originalLine-C.originalLine,y!==0)||(y=w.originalColumn-C.originalColumn,y!==0)?y:x(w.name,C.name)}e.compareByGeneratedPositionsInflated=v;function S(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=S;function k(w,C,y){if(C=C||"",w&&(w[w.length-1]!=="/"&&C[0]!=="/"&&(w+="/"),C=w+C),y){var _=r(y);if(!_)throw new Error("sourceMapURL could not be parsed");if(_.path){var I=_.path.lastIndexOf("/");I>=0&&(_.path=_.path.substring(0,I+1))}C=l(i(_),C)}return a(C)}e.computeSourceURL=k}(cr)),cr}var ur={},fl;function sc(){if(fl)return ur;fl=1;var e=zn(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}return o.fromArray=function(i,a){for(var l=new o,s=0,c=i.length;s<c;s++)l.add(i[s],a);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.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)},o.prototype.has=function(i){if(n)return this._set.has(i);var a=e.toSetString(i);return t.call(this._set,a)},o.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.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},ur.ArraySet=o,ur}var dr={},ml;function _$(){if(ml)return dr;ml=1;var e=zn();function t(o,r){var i=o.generatedLine,a=r.generatedLine,l=o.generatedColumn,s=r.generatedColumn;return a>i||a==i&&s>=l||e.compareByGeneratedPositionsInflated(o,r)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(r,i){this._array.forEach(r,i)},n.prototype.add=function(r){t(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},dr.MappingList=n,dr}var pl;function cc(){if(pl)return sr;pl=1;var e=lc(),t=zn(),n=sc().ArraySet,o=_$().MappingList;function r(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 o,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var l=a.sourceRoot,s=new r({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 h=a.sourceContentFor(c);h!=null&&s.setSourceContent(c,h)}),s},r.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})},r.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))},r.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 h=new n,d=new n;this._mappings.unsortedForEach(function(f){if(f.source===c&&f.originalLine!=null){var p=a.originalPositionFor({line:f.originalLine,column:f.originalColumn});p.source!=null&&(f.source=p.source,s!=null&&(f.source=t.join(s,f.source)),u!=null&&(f.source=t.relative(u,f.source)),f.originalLine=p.line,f.originalColumn=p.column,p.name!=null&&(f.name=p.name))}var b=f.source;b!=null&&!h.has(b)&&h.add(b);var x=f.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=h,this._names=d,a.sources.forEach(function(f){var p=a.sourceContentFor(f);p!=null&&(s!=null&&(f=t.join(s,f)),u!=null&&(f=t.relative(u,f)),this.setSourceContent(f,p))},this)},r.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}))}},r.prototype._serializeMappings=function(){for(var a=0,l=1,s=0,c=0,u=0,h=0,d="",f,p,b,x,v=this._mappings.toArray(),S=0,k=v.length;S<k;S++){if(p=v[S],f="",p.generatedLine!==l)for(a=0;p.generatedLine!==l;)f+=";",l++;else if(S>0){if(!t.compareByGeneratedPositionsInflated(p,v[S-1]))continue;f+=","}f+=e.encode(p.generatedColumn-a),a=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),f+=e.encode(x-h),h=x,f+=e.encode(p.originalLine-1-c),c=p.originalLine-1,f+=e.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(b=this._names.indexOf(p.name),f+=e.encode(b-u),u=b)),d+=f}return d},r.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)},r.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},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},sr.SourceMapGenerator=r,sr}var vn={},hr={},gl;function C$(){return gl||(gl=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,r,i,a,l){var s=Math.floor((o-n)/2)+n,c=a(r,i[s],!0);return c===0?s:c>0?o-s>1?t(s,o,r,i,a,l):l==e.LEAST_UPPER_BOUND?o<i.length?o:-1:s:s-n>1?t(n,s,r,i,a,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,r,i,a){if(r.length===0)return-1;var l=t(-1,r.length,o,r,i,a||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(r[l],r[l-1],!0)===0;)--l;return l}}(hr)),hr}var fr={},bl;function A$(){if(bl)return fr;bl=1;function e(o,r,i){var a=o[r];o[r]=o[i],o[i]=a}function t(o,r){return Math.round(o+Math.random()*(r-o))}function n(o,r,i,a){if(i<a){var l=t(i,a),s=i-1;e(o,l,a);for(var c=o[a],u=i;u<a;u++)r(o[u],c)<=0&&(s+=1,e(o,s,u));e(o,s+1,u);var h=s+1;n(o,r,i,h-1),n(o,r,h+1,a)}}return fr.quickSort=function(o,r){n(o,r,0,o.length-1)},fr}var xl;function y$(){if(xl)return vn;xl=1;var e=zn(),t=C$(),n=sc().ArraySet,o=lc(),r=A$().quickSort;function i(c,u){var h=c;return typeof c=="string"&&(h=e.parseSourceMapInput(c)),h.sections!=null?new s(h,u):new a(h,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,h){var d=u.charAt(h);return d===";"||d===","},i.prototype._parseMappings=function(u,h){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,h,d){var f=h||null,p=d||i.GENERATED_ORDER,b;switch(p){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 x=this.sourceRoot;b.map(function(v){var S=v.source===null?null:this._sources.at(v.source);return S=e.computeSourceURL(x,S,this._sourceMapURL),{source:S,generatedLine:v.generatedLine,generatedColumn:v.generatedColumn,originalLine:v.originalLine,originalColumn:v.originalColumn,name:v.name===null?null:this._names.at(v.name)}},this).forEach(u,f)},i.prototype.allGeneratedPositionsFor=function(u){var h=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:h,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var f=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var b=this._originalMappings[p];if(u.column===void 0)for(var x=b.originalLine;b&&b.originalLine===x;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p];else for(var v=b.originalColumn;b&&b.originalLine===h&&b.originalColumn==v;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p]}return f},vn.SourceMapConsumer=i;function a(c,u){var h=c;typeof c=="string"&&(h=e.parseSourceMapInput(c));var d=e.getArg(h,"version"),f=e.getArg(h,"sources"),p=e.getArg(h,"names",[]),b=e.getArg(h,"sourceRoot",null),x=e.getArg(h,"sourcesContent",null),v=e.getArg(h,"mappings"),S=e.getArg(h,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),f=f.map(String).map(e.normalize).map(function(k){return b&&e.isAbsolute(b)&&e.isAbsolute(k)?e.relative(b,k):k}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(k){return e.computeSourceURL(b,k,u)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=v,this._sourceMapURL=u,this.file=S}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 h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==c)return h;return-1},a.fromSourceMap=function(u,h){var d=Object.create(a.prototype),f=d._names=n.fromArray(u._names.toArray(),!0),p=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=h,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,h)});for(var b=u._mappings.toArray().slice(),x=d.__generatedMappings=[],v=d.__originalMappings=[],S=0,k=b.length;S<k;S++){var w=b[S],C=new l;C.generatedLine=w.generatedLine,C.generatedColumn=w.generatedColumn,w.source&&(C.source=p.indexOf(w.source),C.originalLine=w.originalLine,C.originalColumn=w.originalColumn,w.name&&(C.name=f.indexOf(w.name)),v.push(C)),x.push(C)}return r(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,h){for(var d=1,f=0,p=0,b=0,x=0,v=0,S=u.length,k=0,w={},C={},y=[],_=[],I,R,T,P,M;k<S;)if(u.charAt(k)===";")d++,k++,f=0;else if(u.charAt(k)===",")k++;else{for(I=new l,I.generatedLine=d,P=k;P<S&&!this._charIsMappingSeparator(u,P);P++);if(R=u.slice(k,P),T=w[R],T)k+=R.length;else{for(T=[];k<P;)o.decode(u,k,C),M=C.value,k=C.rest,T.push(M);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");w[R]=T}I.generatedColumn=f+T[0],f=I.generatedColumn,T.length>1&&(I.source=x+T[1],x+=T[1],I.originalLine=p+T[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=b+T[3],b=I.originalColumn,T.length>4&&(I.name=v+T[4],v+=T[4])),_.push(I),typeof I.originalLine=="number"&&y.push(I)}r(_,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,r(y,e.compareByOriginalPositions),this.__originalMappings=y},a.prototype._findMapping=function(u,h,d,f,p,b){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[f]);return t.search(u,h,p,b)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var h=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var f=this._generatedMappings[d];if(f.generatedLine===h.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var b=e.getArg(f,"name",null);return b!==null&&(b=this._names.at(b)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"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,h){if(!this.sourcesContent)return null;var d=this._findSourceIndex(u);if(d>=0)return this.sourcesContent[d];var f=u;this.sourceRoot!=null&&(f=e.relative(this.sourceRoot,f));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var b=f.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!p.path||p.path=="/")&&this._sources.has("/"+f))return this.sourcesContent[this._sources.indexOf("/"+f)]}if(h)return null;throw new Error('"'+f+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var h=e.getArg(u,"source");if(h=this._findSourceIndex(h),h<0)return{line:null,column:null,lastColumn:null};var d={source:h,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},vn.BasicSourceMapConsumer=a;function s(c,u){var h=c;typeof c=="string"&&(h=e.parseSourceMapInput(c));var d=e.getArg(h,"version"),f=e.getArg(h,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var p={line:-1,column:0};this._sections=f.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var x=e.getArg(b,"offset"),v=e.getArg(x,"line"),S=e.getArg(x,"column");if(v<p.line||v===p.line&&S<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:v+1,generatedColumn:S+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 h=0;h<this._sections[u].consumer.sources.length;h++)c.push(this._sections[u].consumer.sources[h]);return c}}),s.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(h,this._sections,function(p,b){var x=p.generatedLine-b.generatedOffset.generatedLine;return x||p.generatedColumn-b.generatedOffset.generatedColumn}),f=this._sections[d];return f?f.consumer.originalPositionFor({line:h.generatedLine-(f.generatedOffset.generatedLine-1),column:h.generatedColumn-(f.generatedOffset.generatedLine===h.generatedLine?f.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,h){for(var d=0;d<this._sections.length;d++){var f=this._sections[d],p=f.consumer.sourceContentFor(u,!0);if(p)return p}if(h)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var f=d.consumer.generatedPositionFor(u);if(f){var p={line:f.line+(d.generatedOffset.generatedLine-1),column:f.column+(d.generatedOffset.generatedLine===f.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var f=this._sections[d],p=f.consumer._generatedMappings,b=0;b<p.length;b++){var x=p[b],v=f.consumer._sources.at(x.source);v=e.computeSourceURL(f.consumer.sourceRoot,v,this._sourceMapURL),this._sources.add(v),v=this._sources.indexOf(v);var S=null;x.name&&(S=f.consumer._names.at(x.name),this._names.add(S),S=this._names.indexOf(S));var k={source:v,generatedLine:x.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(f.generatedOffset.generatedLine===x.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:S};this.__generatedMappings.push(k),typeof k.originalLine=="number"&&this.__originalMappings.push(k)}r(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),r(this.__originalMappings,e.compareByOriginalPositions)},vn.IndexedSourceMapConsumer=s,vn}var mr={},vl;function I$(){if(vl)return mr;vl=1;var e=cc().SourceMapGenerator,t=zn(),n=/(\r?\n)/,o=10,r="$$$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[r]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,h=l.split(n),d=0,f=function(){var S=w(),k=w()||"";return S+k;function w(){return d<h.length?h[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(S){if(x!==null)if(p<S.generatedLine)v(x,f()),p++,b=0;else{var k=h[d]||"",w=k.substr(0,S.generatedColumn-b);h[d]=k.substr(S.generatedColumn-b),b=S.generatedColumn,v(x,w),x=S;return}for(;p<S.generatedLine;)u.add(f()),p++;if(b<S.generatedColumn){var k=h[d]||"";u.add(k.substr(0,S.generatedColumn)),h[d]=k.substr(S.generatedColumn),b=S.generatedColumn}x=S},this),d<h.length&&(x&&v(x,f()),u.add(h.splice(d).join(""))),s.sources.forEach(function(S){var k=s.sourceContentFor(S);k!=null&&(c!=null&&(S=t.join(c,S)),u.setSourceContent(S,k))}),u;function v(S,k){if(S===null||S.source===void 0)u.add(k);else{var w=c?t.join(c,S.source):S.source;u.add(new i(S.originalLine,S.originalColumn,w,k,S.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[r]||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[r]||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[r]?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[r]?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][r]&&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,h=null,d=null,f=null,p=null;return this.walk(function(b,x){s.code+=b,x.source!==null&&x.line!==null&&x.column!==null?((h!==x.source||d!==x.line||f!==x.column||p!==x.name)&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name}),h=x.source,d=x.line,f=x.column,p=x.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),h=null,u=!1);for(var v=0,S=b.length;v<S;v++)b.charCodeAt(v)===o?(s.line++,s.column=0,v+1===S?(h=null,u=!1):u&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name})):s.column++}),this.walkSourceContents(function(b,x){c.setSourceContent(b,x)}),{code:s.code,map:c}},mr.SourceNode=i,mr}var Sl;function R$(){return Sl||(Sl=1,xn.SourceMapGenerator=cc().SourceMapGenerator,xn.SourceMapConsumer=y$().SourceMapConsumer,xn.SourceNode=I$().SourceNode),xn}(function(e,t){t.__esModule=!0;var n=xe,o=void 0;try{var r=R$();o=r.SourceNode}catch{}o||(o=function(l,s,c,u){this.src="",u&&this.add(u)},o.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=[],h=0,d=l.length;h<d;h++)u.push(s.wrap(l[h],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,`
|
|
524
|
+
`])}),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 o(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 o?s:(s=i(s,this,c),new o(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 f=i(s[d],c);f!=="undefined"&&u.push([c.quotedString(d),":",f])});var h=this.generateList(u);return h.prepend("{"),h.add("}"),h},generateList:function(s){for(var c=this.empty(),u=0,h=s.length;u<h;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})(oa,oa.exports);var N$=oa.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var o=Je,r=Xe,i=n(r),a=xe,l=N$,s=n(l);function c(d){this.value=d}function u(){}u.prototype={nameLookup:function(f,p){return this.internalNameLookup(f,p)},depthedLookup:function(f){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(f),")"]},compilerInfo:function(){var f=o.COMPILER_REVISION,p=o.REVISION_CHANGES[f];return[f,p]},appendToBuffer:function(f,p,b){return a.isArray(f)||(f=[f]),f=this.source.wrap(f,p),this.environment.isSimple?["return ",f,";"]:b?["buffer += ",f,";"]:(f.appendToBuffer=!0,f)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(f,p){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",f,",",JSON.stringify(p),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(f,p,b,x){this.environment=f,this.options=p,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!x,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(f,p),this.useDepths=this.useDepths||f.useDepths||f.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||f.useBlockParams;var v=f.opcodes,S=void 0,k=void 0,w=void 0,C=void 0;for(w=0,C=v.length;w<C;w++)S=v[w],this.source.currentLocation=S.loc,k=k||S.loc,this[S.opcode].apply(this,S.args);if(this.source.currentLocation=k,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(),`;
|
|
481
525
|
`]),this.decorators.push("return fn;"),x?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) {
|
|
482
526
|
`),this.decorators.push(`}
|
|
483
|
-
`),this.decorators=this.decorators.merge()));var y=this.createFunctionContext(x);if(this.isChild)return y;var
|
|
484
|
-
`,
|
|
527
|
+
`),this.decorators=this.decorators.merge()));var y=this.createFunctionContext(x);if(this.isChild)return y;var _={compiler:this.compilerInfo(),main:y};this.decorators&&(_.main_d=this.decorators,_.useDecorators=!0);var I=this.context,R=I.programs,T=I.decorators;for(w=0,C=R.length;w<C;w++)_[w]=R[w],T[w]&&(_[w+"_d"]=T[w],_.useDecorators=!0);return this.environment.usePartial&&(_.usePartial=!0),this.options.data&&(_.useData=!0),this.useDepths&&(_.useDepths=!0),this.useBlockParams&&(_.useBlockParams=!0),this.options.compat&&(_.compat=!0),x?_.compilerOptions=this.options:(_.compiler=JSON.stringify(_.compiler),this.source.currentLocation={start:{line:1,column:0}},_=this.objectLiteral(_),p.srcName?(_=_.toStringWithSourceMap({file:p.destName}),_.map=_.map&&_.map.toString()):_=_.toString()),_},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(f){var p=this,b="",x=this.stackVars.concat(this.registers.list);x.length>0&&(b+=", "+x.join(", "));var v=0;Object.keys(this.aliases).forEach(function(w){var C=p.aliases[w];C.children&&C.referenceCount>1&&(b+=", alias"+ ++v+"="+w,C.children[0]="alias"+v)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var S=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&S.push("blockParams"),this.useDepths&&S.push("depths");var k=this.mergeSource(b);return f?(S.push(k),Function.apply(this,S)):this.source.wrap(["function(",S.join(","),`) {
|
|
528
|
+
`,k,"}"])},mergeSource:function(f){var p=this.environment.isSimple,b=!this.forceBuffer,x=void 0,v=void 0,S=void 0,k=void 0;return this.source.each(function(w){w.appendToBuffer?(S?w.prepend(" + "):S=w,k=w):(S&&(v?S.prepend("buffer += "):x=!0,k.add(";"),S=k=void 0),v=!0,p||(b=!1))}),b?S?(S.prepend("return "),k.add(";")):v||this.source.push('return "";'):(f+=", buffer = "+(x?"":this.initializeBuffer()),S?(S.prepend("return buffer + "),k.add(";")):this.source.push("return buffer;")),f&&this.source.prepend("var "+f.substring(2)+(x?"":`;
|
|
485
529
|
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
|
|
486
530
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
487
531
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -489,453 +533,10 @@ Expecting `+P.join(", ")+", got '"+(this.terminals_[_]||_)+"'":T="Parse error on
|
|
|
489
533
|
}
|
|
490
534
|
return undefined
|
|
491
535
|
}
|
|
492
|
-
`.trim()},blockValue:function(h){var p=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(h,0,b);var x=this.popStack();b.splice(1,0,x),this.push(this.source.functionCall(p,"call",b))},ambiguousBlockValue:function(){var h=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var b=this.topStack();p.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(h,"call",p),"}"])},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(p){return[" != null ? ",p,' : ""']}),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,p,b,x){var w=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(h[w++])):this.pushContext(),this.resolvePath("context",h,w,p,b)},lookupBlockParam:function(h,p){this.useBlockParams=!0,this.push(["blockParams[",h[0],"][",h[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(h,p,b){h?this.pushStackLiteral("container.data(data, "+h+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,b)},resolvePath:function(h,p,b,x,w){var v=this;if(this.options.strict||this.options.assumeObjects){this.push(f(this.options.strict&&w,this,p,b,h));return}for(var _=p.length,S=function(y){v.replaceStack(function(C){var R=v.nameLookup(C,p[y],h);return x?[" && ",R]:[" != null ? ",R," : ",C]})},$=b;$<_;$++)S($)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(h,p){this.pushContext(),this.pushString(p),p!=="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,p){var b=this.nameLookup("decorators",p,"decorator"),x=this.setupHelperArgs(p,h);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+p+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",x])," || fn;"])},invokeHelper:function(h,p,b){var x=this.popStack(),w=this.setupHelper(h,p),v=[];b&&v.push(w.name),v.push(x),this.options.strict||v.push(this.aliasable("container.hooks.helperMissing"));var _=["(",this.itemsSeparatedBy(v,"||"),")"],S=this.source.functionCall(_,"call",w.callParams);this.push(S)},itemsSeparatedBy:function(h,p){var b=[];b.push(h[0]);for(var x=1;x<h.length;x++)b.push(p,h[x]);return b},invokeKnownHelper:function(h,p){var b=this.setupHelper(h,p);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(h,p){this.useRegister("helper");var b=this.popStack();this.emptyHash();var x=this.setupHelper(0,h,p),w=this.lastHelper=this.nameLookup("helpers",h,"helper"),v=["(","(helper = ",w," || ",b,")"];this.options.strict||(v[0]="(helper = ",v.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",v,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(h,p,b){var x=[],w=this.setupParams(p,1,x);h&&(p=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",h?x.unshift(p):x.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(w.depths="depths"),w=this.objectLiteral(w),x.push(w),this.push(this.source.functionCall("container.invokePartial","",x))},assignToHash:function(h){var p=this.popStack(),b=void 0,x=void 0,w=void 0;this.trackIds&&(w=this.popStack()),this.stringParams&&(x=this.popStack(),b=this.popStack());var v=this.hash;b&&(v.contexts[h]=b),x&&(v.types[h]=x),w&&(v.ids[h]=w),v.values[h]=p},pushId:function(h,p,b){h==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):h==="PathExpression"?this.pushString(p):h==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(h,p){for(var b=h.children,x=void 0,w=void 0,v=0,_=b.length;v<_;v++){x=b[v],w=new this.compiler;var S=this.matchExistingProgram(x);if(S==null){var $=this.context.programs.push("")-1;x.index=$,x.name="program"+$,this.context.programs[$]=w.compile(x,p,this.context,!this.precompile),this.context.decorators[$]=w.decorators,this.context.environments[$]=x,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams,x.useDepths=this.useDepths,x.useBlockParams=this.useBlockParams}else x.index=S.index,x.name="program"+S.index,this.useDepths=this.useDepths||S.useDepths,this.useBlockParams=this.useBlockParams||S.useBlockParams}},matchExistingProgram:function(h){for(var p=0,b=this.context.environments.length;p<b;p++){var x=this.context.environments[p];if(x&&x.equals(h))return x}},programExpression:function(h){var p=this.environment.children[h],b=[p.index,"data",p.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 p=["("],b=void 0,x=void 0,w=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var v=this.popStack(!0);if(v instanceof c)b=[v.value],p=["(",b],w=!0;else{x=!0;var _=this.incrStack();p=["((",this.push(_)," = ",v,")"],b=this.topStack()}var S=h.call(this,b);w||this.popStack(),x&&this.stackSlot--,this.push(p.concat(S,")"))},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 p=0,b=h.length;p<b;p++){var x=h[p];if(x instanceof c)this.compileStack.push(x);else{var w=this.incrStack();this.pushSource([w," = ",x,";"]),this.compileStack.push(w)}}},isInline:function(){return this.inlineStack.length},popStack:function(h){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!h&&b instanceof c)return b.value;if(!p){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var h=this.isInline()?this.inlineStack:this.compileStack,p=h[h.length-1];return p instanceof c?p.value:p},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 p=this.aliases[h];return p?(p.referenceCount++,p):(p=this.aliases[h]=this.source.wrap(h),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(h,p,b){var x=[],w=this.setupHelperArgs(p,h,x,b),v=this.nameLookup("helpers",p,"helper"),_=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:w,name:v,callParams:[_].concat(x)}},setupParams:function(h,p,b){var x={},w=[],v=[],_=[],S=!b,$=void 0;S&&(b=[]),x.name=this.quotedString(h),x.hash=this.popStack(),this.trackIds&&(x.hashIds=this.popStack()),this.stringParams&&(x.hashTypes=this.popStack(),x.hashContexts=this.popStack());var y=this.popStack(),C=this.popStack();(C||y)&&(x.fn=C||"container.noop",x.inverse=y||"container.noop");for(var R=p;R--;)$=this.popStack(),b[R]=$,this.trackIds&&(_[R]=this.popStack()),this.stringParams&&(v[R]=this.popStack(),w[R]=this.popStack());return S&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(_)),this.stringParams&&(x.types=this.source.generateArray(v),x.contexts=this.source.generateArray(w)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(h,p,b,x){var w=this.setupParams(h,p,b);return w.loc=JSON.stringify(this.source.currentLocation),w=this.objectLiteral(w),x?(this.useRegister("options"),b.push("options"),["options=",w]):b?(b.push(w),""):w}},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={},p=0,b=d.length;p<b;p++)h[d[p]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function f(d,h,p,b,x){var w=h.popStack(),v=p.length;d&&v--;for(var _=b;_<v;_++)w=h.nameLookup(w,p[_],x);return d?[h.aliasable("container.strict"),"(",w,", ",h.quotedString(p[v]),", ",JSON.stringify(h.source.currentLocation)," )"]:w}t.default=u,e.exports=t.default})(Zr,Zr.exports);var m2=Zr.exports;(function(e,t){t.__esModule=!0;function n(v){return v&&v.__esModule?v:{default:v}}var o=ES,r=n(o),i=Ms,a=n(i),l=An,s=yn,c=m2,u=n(c),f=Ts,d=n(f),h=Ns,p=n(h),b=r.default.create;function x(){var v=b();return v.compile=function(_,S){return s.compile(_,S,v)},v.precompile=function(_,S){return s.precompile(_,S,v)},v.AST=a.default,v.Compiler=s.Compiler,v.JavaScriptCompiler=u.default,v.Parser=l.parser,v.parse=l.parse,v.parseWithoutProcessing=l.parseWithoutProcessing,v}var w=x();w.create=x,p.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(kr,kr.exports);var g2=kr.exports;const b2=mw(g2);function ba(e,t){const n=[],o=new Set,r=i=>{var l,s,c,u,f,d,h,p,b,x;if(o.has(i)||!e[i])return;o.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(r);break;case"ColumnsContainer":case"FlexColumns":(((s=a.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(r));break;case"Grid":(((c=a.data.props)==null?void 0:c.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(r));break;case"Accordion":(((u=a.data.props)==null?void 0:u.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(r),(w.contentChildrenIds||[]).forEach(r)});break;case"TabsBlock":case"Carousel":case"Marquee":(((f=a.data.props)==null?void 0:f.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(r)});break;case"Pagination":(((d=a.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(r)),(((h=a.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(r)});break;case"PricingAccordion":(((p=a.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(r),(w.detailChildrenIds||[]).forEach(r)});break;case"MenuPicker":(((b=a.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(r),(((x=a.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(r);break;case"EmailLayout":(a.data.childrenIds||[]).forEach(r);break}};return r(t),n}const so="relative",Sn="24h",x2=864e5;function xa(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function nl(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function v2(e,t){const n=xa(e);if(!n)return"";const o=(t==null?void 0:t.now)??new Date,r=t==null?void 0:t.locale,i=Math.round((nl(n).getTime()-nl(o).getTime())/x2);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(r,{weekday:"short"});const a=n.getFullYear()===o.getFullYear();return n.toLocaleDateString(r,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function ir(e){const t=e%100;if(t>=11&&t<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}}function w2(e,t){const o=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"short",day:"numeric",weekday:"long"}).formatToParts(e),r=i=>{var a;return((a=o.find(l=>l.type===i))==null?void 0:a.value)??""};return{year:Number(r("year")),month:new Date(`${r("month")} 1, 2000`).getMonth(),day:Number(r("day")),weekday:r("weekday")}}const S2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qr(e){return e<10?`0${e}`:String(e)}function Vr(e,t=so,n){if(t==="relative")return v2(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const o=xa(e);if(!o)return"";const{year:r,month:i,day:a,weekday:l}=w2(o,n==null?void 0:n.tz),s=S2[i],c=String(r),u=qr(i+1),f=qr(a);switch(t){case"do-mmm-yyyy":return`${ir(a)} ${s} ${c}`;case"mmm-d-yyyy":return`${s} ${a}, ${c}`;case"d-mmm-yyyy":return`${a} ${s} ${c}`;case"dd-mm-yyyy":return`${f}/${u}/${c}`;case"mm-dd-yyyy":return`${u}/${f}/${c}`;case"yyyy-mm-dd":return`${c}-${u}-${f}`;case"do-mmm":return`${ir(a)} ${s}`;case"full":return`${l}, ${a} ${new Date(2e3,i,1).toLocaleDateString("en-US",{month:"long"})} ${c}`;default:return`${ir(a)} ${s} ${c}`}}function co(e,t=Sn,n){const o=xa(e);if(!o)return"";const i=new Intl.DateTimeFormat("en-US",{timeZone:n==null?void 0:n.tz,hour:"numeric",minute:"2-digit",hour12:t==="12h"}).formatToParts(o),a=c=>{var u;return((u=i.find(f=>f.type===c))==null?void 0:u.value)??""};if(t==="12h"){const c=a("hour"),u=a("minute"),f=a("dayPeriod").toUpperCase();return`${c}:${u} ${f}`}const l=qr(Number(a("hour"))%24),s=a("minute");return`${l}:${s}`}function Ds(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const o=e;for(const r of t){if((r==null?void 0:r.type)!=="array"||!r.sourceBlockId)continue;(Array.isArray(r.value)?r.value:[]).forEach((a,l)=>{var c;const s=l===0?r.sourceBlockId:(c=r.rowIds)==null?void 0:c[l-1];if(!(!s||!o[s]))for(const u of ba(o,s))n.set(u,a||{})})}return n}const k2={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function _2(e){return e?k2[e]:void 0}const Yr=b2.create();Yr.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new Yr.SafeString(`{{${t.name}}}`)});const ol=new Map;function $2(e){let t=ol.get(e);return t||(t=Yr.compile(e,{noEscape:!0,strict:!1}),ol.set(e,t)),t}function Fs(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 o=new Map;for(const i of n.itemFields??[])((i==null?void 0:i.type)==="date"||(i==null?void 0:i.type)==="time"||(i==null?void 0:i.type)==="datetime")&&i.id&&o.set(i.id,i);const r=n.value.map(i=>{const a={};if(i&&typeof i=="object")for(const l of Object.keys(i)){const s=i[l];if(s==null||s==="")continue;const c=o.get(l);if((c==null?void 0:c.type)==="datetime"){const u=Yn(l,String(s),o,"date"),f=Yn(l,String(s),o,"time"),d={date:u,time:f};Object.defineProperty(d,"toString",{value:()=>[u,f].filter(Boolean).join(" "),enumerable:!1}),a[l]=d}else a[l]=c?Yn(l,String(s),o):s}return a});Object.defineProperty(r,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=r;continue}if(n.type==="datetime"){const o=n.id,r=typeof n.value=="string"?n.value:"";if(!r){const c={date:`{{${o}.date}}`,time:`{{${o}.time}}`};Object.defineProperty(c,"toString",{value:()=>`{{${o}}}`,enumerable:!1}),t[o]=c;continue}const i=n.dateFormat??so,a=i==="relative"?fr(o,r):Vr(r,i,{tz:n.dateTz}),l=co(r,n.timeFormat??Sn,{tz:n.dateTz}),s={date:a,time:l};Object.defineProperty(s,"toString",{value:()=>[a,l].filter(Boolean).join(" "),enumerable:!1}),t[o]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const o=n.dateFormat??so;t[n.id]=o==="relative"?fr(n.id,n.value):Vr(n.value,o,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=co(n.value,n.timeFormat??Sn,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function va(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const C2=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function A2(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(C2,(i,a)=>{const l=t[a];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+o+++"_";return n.set(c,i),c}),restore:n}}const Hs=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function y2(e){const t=new Map;if(!Array.isArray(e))return t;for(const n of e)if(!((n==null?void 0:n.type)!=="array"||!Array.isArray(n.itemFields)))for(const o of n.itemFields)((o==null?void 0:o.type)==="date"||(o==null?void 0:o.type)==="time"||(o==null?void 0:o.type)==="datetime")&&o.id&&!t.has(o.id)&&t.set(o.id,o);return t}function rl(e,t,n){const o=n.dateFormat??so;return o==="relative"?fr(e,t):Vr(t,o,{tz:n.dateTz})}function Yn(e,t,n,o){const r=n.get(e);if(!r)return t;if(r.type==="time")return co(t,r.timeFormat??Sn,{tz:r.dateTz});if(r.type==="datetime"){const i=co(t,r.timeFormat??Sn,{tz:r.dateTz});if(o==="time")return i;const a=rl(e,t,r);return o==="date"?a:[a,i].filter(Boolean).join(" ")}return rl(e,t,r)}function I2(e,t,n){return e.replace(Hs,(o,r,i)=>{const a=t==null?void 0:t[r];return a==null||a===""?o:n?Yn(r,String(a),n,i):String(a)})}function un(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=I2(o,n,y2(t)),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const r=t&&t.length>0?Fs(t):{},{masked:i,restore:a}=A2(o,r),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace(Hs,f=>{const d="HB_THIS_"+u+++"_";return l.set(d,f),d})}let c=$2(s)(r);for(const[u,f]of l)c=c.split(u).join(f);if(a.size>0)for(const[u,f]of a)c=c.split(u).join(f);return c}catch{return o}}function Gs(e,t,n,o){var l,s,c,u,f,d,h,p,b;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const x=(s=(l=e.data)==null?void 0:l.props)==null?void 0:s.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((v,_)=>{const S=v==null?void 0:v.label;if(typeof S!="string"||S.indexOf("{{")===-1)return;const $=Array.isArray(v==null?void 0:v.contentChildrenIds)?v.contentChildrenIds[0]:void 0,y=$&&o?o.get($):n,C=un(S,t,y??null);C!==S&&(w||(w=x.map(R=>({...R}))),w[_]={...w[_],label:C})}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="List"){const x=(u=(c=e.data)==null?void 0:c.props)==null?void 0:u.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((v,_)=>{const S=v==null?void 0:v.text;if(typeof S!="string"||S.indexOf("{{")===-1)return;const $=un(S,t,n);$!==S&&(w||(w=x.map(y=>({...y}))),w[_]={...w[_],text:$})}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="Breadcrumb"){const x=(d=(f=e.data)==null?void 0:f.props)==null?void 0:d.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((v,_)=>{for(const S of["label","href"]){const $=v==null?void 0:v[S];if(typeof $!="string"||$.indexOf("{{")===-1)continue;const y=un($,t,n);y!==$&&(w||(w=x.map(C=>({...C}))),w[_]={...w[_],[S]:y})}}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="Table"){const x=(p=(h=e.data)==null?void 0:h.props)==null?void 0:p.cells;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((v,_)=>{if(typeof v!="string"||v.indexOf("{{")===-1)return;const S=un(v,t,n);S!==v&&(w||(w=[...x]),w[_]=S)}),w?{...e,data:{...e.data,props:{...e.data.props,cells:w}}}:e}const r=_2(e.type);if(!r)return e;const i=(b=e.data)==null?void 0:b.props;if(!i)return e;let a=null;for(const x of r){const w=i[x];if(typeof w!="string"||w.indexOf("{{")===-1)continue;const v=un(w,t,n);v!==w&&(a||(a={...i}),a[x]=v)}return a?{...e,data:{...e.data,props:a}}:e}function wa(e,t){var l;if(!e)return e;const n=t??va(e);let o={...e},r=!1;const i=Ds(e,n);if(n&&n.length>0&&(Object.keys(Fs(n)).length>0||i.size>0))for(const s of Object.keys(o)){const c=o[s],u=Gs(c,n,i.get(s),i);u!==c&&(o[s]=u,r=!0)}const a=o.root;if(((l=a==null?void 0:a.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=a.data;o.root={...a,data:c},r=!0}return r?o:e}const al=Object.fromEntries(rt.map(e=>[e.key,e.value]));function uo(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function R2(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function E2(e){const t=e.borderColor??null;if(!t)return"";if(t==="transparent")return"border:none!important";const n=uo(e.borderWidth)?e.borderWidth:null;return R2(t)?"":[`border-top:${(n==null?void 0:n.top)??0}px solid ${t}!important`,`border-right:${(n==null?void 0:n.right)??0}px solid ${t}!important`,`border-bottom:${(n==null?void 0:n.bottom)??0}px solid ${t}!important`,`border-left:${(n==null?void 0:n.left)??0}px solid ${t}!important`].join(";")}function N2(e){const t=[];if(e.borderColor!==void 0||e.borderWidth!==void 0){const o=E2(e);o&&t.push(o)}const n=e.backgroundSize==="none";n&&t.push("background-image:none!important");for(const o of Object.keys(e)){const r=e[o];if(r!=null)switch(o){case"borderColor":case"borderWidth":break;case"fontSize":t.push(`font-size:${r}px!important`);break;case"fontFamily":al[r]&&t.push(`font-family:${al[r]}!important`);break;case"fontWeight":t.push(`font-weight:${r}!important`);break;case"fontStyle":t.push(`font-style:${r}!important`);break;case"textDecoration":t.push(`text-decoration:${r}!important`);break;case"lineHeight":t.push(`line-height:${r}!important`);break;case"textAlign":t.push(`text-align:${r}!important`);break;case"buttonTextAlign":t.push(`justify-content:${r==="center"?"center":r==="right"?"flex-end":"flex-start"}!important`);break;case"padding":case"margin":uo(r)&&t.push(`${o}:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break;case"marginBottom":t.push(`margin-bottom:${r}px!important`);break;case"width":t.push(`width:${typeof r=="number"?`${r}px`:r}!important`);break;case"height":t.push(`height:${typeof r=="number"?`${r}px`:r}!important`);break;case"backgroundImage":t.push(r&&!n?`background-image:url("${String(r).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":n||t.push(`background-size:${r}!important`);break;case"backgroundRepeat":t.push(`background-repeat:${r}!important`);break;case"activeFontSize":t.push(`--ahd-tabs-active-font-size:${typeof r=="number"?`${r}px`:r}`);break;case"showActiveBorder":t.push(`--ahd-tabs-active-border-color:${r?"currentColor":"transparent"}`);break;case"tabGap":t.push(`--ahd-tabs-tab-gap:${r}px`);break;case"contentGap":t.push(`--ahd-tabs-content-gap:${r}px`);break;case"navWidth":t.push(`--ahd-tabs-nav-width:${r}px`);break;case"starSize":t.push(`--ahd-rating-star-size:${r}px`);break;case"starGap":t.push(`--ahd-rating-star-gap:${r}px`);break;case"arrowSize":t.push(`--ahd-carousel-arrow-size:${r}px`),t.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(r)*.5)))}px`);break;case"dotSize":t.push(`--ahd-carousel-dot-size:${r}px`);break;case"slideGap":t.push(`--ahd-carousel-slide-gap:${r}px`);break;case"buttonSize":t.push(`--ahd-pgn-btn-size:${r}px`);break;case"buttonGap":t.push(`--ahd-pgn-btn-gap:${r}px`);break;case"buttonRadius":t.push(`--ahd-pgn-btn-radius:${r}px`);break;case"controlGap":t.push(`--ahd-pgn-control-gap:${r}px`);break;case"borderRadius":if(typeof r=="number")t.push(`border-radius:${r}px!important`);else if(r&&typeof r=="object"){const{topLeft:i=0,topRight:a=0,bottomRight:l=0,bottomLeft:s=0}=r;t.push(`border-radius:${i}px ${a}px ${l}px ${s}px!important`)}else t.push(`border-radius:${r}!important`);break}}return t.join(";")}function M2(e){const t=[];for(const n of Object.keys(e)){const o=e[n];if(o!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${o}px!important`);break;case"height":{const r=typeof o=="number"?`${o}px`:o;t.push(`height:${r}!important`),t.push(`--ahd-iframe-height:${r}`),t.push(`--ahd-calendly-height:${r}`),t.push(`--ahd-demo-height:${r}`);break}case"width":{const r=typeof o=="number"?`${o}px`:o;t.push(`--ahd-iframe-width:${r}`),t.push(`--ahd-calendly-width:${r}`),t.push(`--ahd-demo-width:${r}`);break}case"blockPadding":uo(o)&&t.push(`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break;case"blockMargin":uo(o)&&t.push(`margin:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break}}return t.join(";")}function il(e,t){if(!t)return null;const n=e??{},o={};for(const r of Object.keys(t)){const i=t[r],a=n[r],l=!!i&&typeof i=="object"&&!Array.isArray(i)&&!!a&&typeof a=="object"&&!Array.isArray(a);o[r]=l?{...a,...i}:i}return o}function T2(e,t,n,o){if(!t)return"";const r=`#${e}`,i=O2(r),a=[],l=(c,u)=>{const f=il(n,u==null?void 0:u.style),d=il(o,u==null?void 0:u.props),h=[f?N2(f):"",d?M2(d):""].filter(Boolean).join(";"),p=[h?`${i}{${h}}`:"",u!=null&&u.hidden?`${r}{display:none}`:""].filter(Boolean).join("");p&&a.push(`${c}{${p}}`)};l(It,t.tablet),l(`@media (max-width:${Le}px)`,t.mobile);const s=z2(e,t,n,o);return s&&a.push(s),a.join("")}function P2(e,t){return t?e?{...e,...t}:t:e}function Kr(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function ll(e,t,n){const o=Kr(e,t),r=Kr(n==null?void 0:n.style,n==null?void 0:n.props);return P2(o,r)}function lr(e){const t=((e==null?void 0:e.left)??0)+((e==null?void 0:e.right)??0);return t>0?`calc(100% - ${t}px)`:"100%"}function O2(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${e}>.heading-block-wrapper`,`${e}>.heading-block-wrapper>.heading-block`,`${e}>.image-block`,`${e}>.logo-block`,`${e}>.avatar-block`,`${e}>.container-block`,`${e}>.flex-columns-block`,`${e}>.grid-block`,`${e}>.video-block`,`${e}>.youtube-url-block`,`${e}>.divider-block`,`${e}>.mdx-block`,`${e}>.quill-block`,`${e}>.html-block`,`${e}>.stepper-block`,`${e}>.list-block`,`${e}>.rating-block`,`${e}>.table-block`,`${e}>.table-block table`,`${e}>.spacer-block`,`${e}>.accordion-block`,`${e}>.columns-container`,`${e}>.ahd-carousel`,`${e}>.ahd-marquee`,`${e}>.ahd-pagination`,`${e}>.ahd-tabs`,`${e}>.calendly-block`,`${e}>.iframe-block`,`${e}>.demo-picker-block`,`${e}>.ahd-menu`].join(",")}function L2(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${e}>.heading-block-wrapper`,`${e}>.heading-block-wrapper>.heading-block`,`${e}>.image-block`,`${e}>.logo-block`,`${e}>.avatar-block`,`${e}>.container-block`,`${e}>.flex-columns-block`,`${e}>.grid-block`,`${e}>.video-block`,`${e}>.youtube-url-block`,`${e}>.divider-block`,`${e}>.mdx-block`,`${e}>.quill-block`,`${e}>.html-block`,`${e}>.stepper-block`,`${e}>.list-block`,`${e}>.rating-block`,`${e}>.table-block`,`${e}>.table-block table`,`${e}>.spacer-block`,`${e}>.accordion-block`,`${e}>.columns-container`,`${e}>.ahd-carousel`,`${e}>.ahd-marquee`,`${e}>.ahd-pagination`,`${e}>.ahd-tabs`,`${e}>.calendly-block`,`${e}>.iframe-block`,`${e}>.demo-picker-block`,`${e}>.forms-picker-block`,`${e}>.ahd-timer`,`${e}>.ahd-menu`].join(",")}function z2(e,t,n,o){if(!t)return"";const r=`#${e}`,i=L2(r),a=Kr(n,o),l=lr(a),s=lr(ll(n,o,t.tablet)),c=lr(ll(n,o,t.mobile));return s===l&&c===l?"":`
|
|
493
|
-
${
|
|
494
|
-
@media (max-width:${
|
|
495
|
-
`.trim()}const
|
|
496
|
-
(function () {
|
|
497
|
-
if (window.__ahdAnimationBound) return;
|
|
498
|
-
window.__ahdAnimationBound = true;
|
|
499
|
-
|
|
500
|
-
if (document.documentElement) {
|
|
501
|
-
document.documentElement.classList.add('ahd-anim-ready');
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
var MOBILE_MAX_WIDTH = 480;
|
|
505
|
-
var SPEED_SECONDS = { slow: 1.2, medium: 0.7, fast: 0.35 };
|
|
506
|
-
|
|
507
|
-
function isMobile() {
|
|
508
|
-
return typeof window.matchMedia === 'function'
|
|
509
|
-
? window.matchMedia('(max-width: ' + MOBILE_MAX_WIDTH + 'px)').matches
|
|
510
|
-
: window.innerWidth <= MOBILE_MAX_WIDTH;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
function disabledOnMobile(el) {
|
|
514
|
-
return el.getAttribute('data-animate-disable-mobile') === 'true' && isMobile();
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
var MAX_DELAY_MS = 10000;
|
|
518
|
-
|
|
519
|
-
function play(el) {
|
|
520
|
-
if (disabledOnMobile(el)) {
|
|
521
|
-
// Still reveal the element — it should show statically without motion,
|
|
522
|
-
// not stay stuck at the CSS pre-hide opacity:0 (see animationCss.ts).
|
|
523
|
-
el.classList.add('ahd-anim-in');
|
|
524
|
-
return;
|
|
525
|
-
}
|
|
526
|
-
var type = el.getAttribute('data-animate-type');
|
|
527
|
-
var speed = el.getAttribute('data-animate-speed') || 'medium';
|
|
528
|
-
var delayMs = parseFloat(el.getAttribute('data-animate-delay') || '0') || 0;
|
|
529
|
-
delayMs = Math.min(MAX_DELAY_MS, Math.max(0, delayMs));
|
|
530
|
-
var duration = SPEED_SECONDS[speed] || SPEED_SECONDS.medium;
|
|
531
|
-
el.style.setProperty('--ahd-anim-name', 'ahd-anim-' + type);
|
|
532
|
-
el.style.animationDuration = duration + 's';
|
|
533
|
-
el.style.animationDelay = (delayMs / 1000) + 's';
|
|
534
|
-
el.classList.add('ahd-anim-in');
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
function reset(el) {
|
|
538
|
-
el.classList.remove('ahd-anim-in');
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
function bindLoad(el) { play(el); }
|
|
542
|
-
|
|
543
|
-
function bindScroll(el, observer) { observer.observe(el); }
|
|
544
|
-
|
|
545
|
-
function bindHover(el) {
|
|
546
|
-
el.addEventListener('mouseenter', function () { play(el); });
|
|
547
|
-
el.addEventListener('mouseleave', function () { reset(el); });
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
function initAll() {
|
|
551
|
-
var elements = document.querySelectorAll('[data-animate-type]');
|
|
552
|
-
var scrollObserver = null;
|
|
553
|
-
if (typeof IntersectionObserver !== 'undefined') {
|
|
554
|
-
scrollObserver = new IntersectionObserver(
|
|
555
|
-
function (entries) {
|
|
556
|
-
entries.forEach(function (entry) {
|
|
557
|
-
if (!entry.isIntersecting) return;
|
|
558
|
-
play(entry.target);
|
|
559
|
-
scrollObserver.unobserve(entry.target);
|
|
560
|
-
});
|
|
561
|
-
},
|
|
562
|
-
{ threshold: 0.15 }
|
|
563
|
-
);
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
elements.forEach(function (el) {
|
|
567
|
-
if (el.dataset.ahdAnimBound === 'true') return;
|
|
568
|
-
el.dataset.ahdAnimBound = 'true';
|
|
569
|
-
|
|
570
|
-
var trigger = el.getAttribute('data-animate-trigger') || 'load';
|
|
571
|
-
if (trigger === 'load') {
|
|
572
|
-
bindLoad(el);
|
|
573
|
-
} else if (trigger === 'scroll') {
|
|
574
|
-
if (scrollObserver) bindScroll(el, scrollObserver);
|
|
575
|
-
else play(el);
|
|
576
|
-
} else if (trigger === 'hover') {
|
|
577
|
-
bindHover(el);
|
|
578
|
-
}
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
document.addEventListener('click', function (event) {
|
|
583
|
-
var t = event.target;
|
|
584
|
-
if (!t || !t.closest) return;
|
|
585
|
-
var el = t.closest('[data-animate-trigger="click"]');
|
|
586
|
-
if (el) play(el);
|
|
587
|
-
});
|
|
588
|
-
|
|
589
|
-
if (document.readyState === 'loading') {
|
|
590
|
-
document.addEventListener('DOMContentLoaded', initAll);
|
|
591
|
-
} else {
|
|
592
|
-
initAll();
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
if (typeof MutationObserver !== 'undefined') {
|
|
596
|
-
var mo = new MutationObserver(function () { initAll(); });
|
|
597
|
-
mo.observe(document.documentElement || document.body, { childList: true, subtree: true });
|
|
598
|
-
} else {
|
|
599
|
-
var tries = 0;
|
|
600
|
-
var timer = setInterval(function () { initAll(); if (++tries > 20) clearInterval(timer); }, 250);
|
|
601
|
-
}
|
|
602
|
-
})();
|
|
603
|
-
`.trim(),ok=()=>`
|
|
604
|
-
(function () {
|
|
605
|
-
var BASE_WIDTH = 1440;
|
|
606
|
-
var BASE_HEIGHT = 830;
|
|
607
|
-
|
|
608
|
-
function scaleIframe() {
|
|
609
|
-
var aspect = document.getElementById('demoAspect');
|
|
610
|
-
var scaler = document.getElementById('demoScaler');
|
|
611
|
-
if (!aspect || !scaler) return;
|
|
612
|
-
|
|
613
|
-
var cw = aspect.clientWidth;
|
|
614
|
-
var ch = aspect.clientHeight;
|
|
615
|
-
var scale = Math.min(cw / BASE_WIDTH, ch / BASE_HEIGHT);
|
|
616
|
-
|
|
617
|
-
scaler.style.transformOrigin = 'top left';
|
|
618
|
-
scaler.style.transform = 'scale(' + scale + ')';
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
function init() {
|
|
622
|
-
scaleIframe();
|
|
623
|
-
window.addEventListener('resize', scaleIframe);
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
if (document.readyState === 'loading') {
|
|
627
|
-
document.addEventListener('DOMContentLoaded', init);
|
|
628
|
-
} else {
|
|
629
|
-
init();
|
|
630
|
-
}
|
|
631
|
-
})();
|
|
632
|
-
`,rk=()=>`
|
|
633
|
-
(function () {
|
|
634
|
-
if (window.__ahdTabsBound) return;
|
|
635
|
-
window.__ahdTabsBound = true;
|
|
636
|
-
|
|
637
|
-
function byClass(parent, className) {
|
|
638
|
-
return Array.prototype.filter.call((parent && parent.children) || [], function (child) {
|
|
639
|
-
return child.classList && child.classList.contains(className);
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
function partsOf(root) {
|
|
644
|
-
var nav = byClass(root, 'ahd-tabs-nav')[0];
|
|
645
|
-
var panelsWrap = byClass(root, 'ahd-tabs-panels')[0];
|
|
646
|
-
if (!nav || !panelsWrap) return null;
|
|
647
|
-
return {
|
|
648
|
-
labels: byClass(nav, 'ahd-tabs-label'),
|
|
649
|
-
panels: byClass(panelsWrap, 'ahd-tabs-panel'),
|
|
650
|
-
inputs: byClass(root, 'ahd-tabs-radio'),
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
function setActive(root, index) {
|
|
655
|
-
var p = partsOf(root);
|
|
656
|
-
if (!p || !p.labels.length || !p.panels.length) return;
|
|
657
|
-
var scrollMode = root.classList.contains('ahd-tabs-scroll-sections');
|
|
658
|
-
var vertical = root.classList.contains('ahd-tabs-vertical');
|
|
659
|
-
var activeColor = root.getAttribute('data-active-color') || '';
|
|
660
|
-
var textColor = root.getAttribute('data-text-color') || '';
|
|
661
|
-
var showBorder = root.getAttribute('data-active-border') === '1';
|
|
662
|
-
var activeFont = root.getAttribute('data-active-font') || '';
|
|
663
|
-
|
|
664
|
-
for (var j = 0; j < p.labels.length; j++) {
|
|
665
|
-
var on = j === index;
|
|
666
|
-
var label = p.labels[j];
|
|
667
|
-
label.style.color = on ? (activeColor || textColor || '') : (textColor || '');
|
|
668
|
-
if (showBorder) {
|
|
669
|
-
if (vertical) {
|
|
670
|
-
label.style.borderLeftColor = on ? activeColor : 'transparent';
|
|
671
|
-
} else {
|
|
672
|
-
label.style.borderBottomColor = on ? activeColor : 'transparent';
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
var text = label.querySelector('.ahd-tabs-label-text');
|
|
676
|
-
if (text && activeFont) text.style.fontSize = on ? activeFont : '';
|
|
677
|
-
if (p.inputs[j]) p.inputs[j].checked = on;
|
|
678
|
-
label.setAttribute('aria-selected', on ? 'true' : 'false');
|
|
679
|
-
}
|
|
680
|
-
// In scroll mode every panel stays visible; only the highlight moves.
|
|
681
|
-
if (!scrollMode) {
|
|
682
|
-
for (var k = 0; k < p.panels.length; k++) {
|
|
683
|
-
p.panels[k].style.display = k === index ? 'block' : 'none';
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
return p;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
// Delegated click — survives content that is injected via innerHTML after this
|
|
690
|
-
// script runs, and re-parsing, because the listener lives on document.
|
|
691
|
-
document.addEventListener('click', function (event) {
|
|
692
|
-
var target = event.target;
|
|
693
|
-
var label = target && target.closest ? target.closest('.ahd-tabs-label') : null;
|
|
694
|
-
if (!label) return;
|
|
695
|
-
var root = label.closest('.ahd-tabs');
|
|
696
|
-
if (!root) return;
|
|
697
|
-
var nav = label.parentNode;
|
|
698
|
-
var labels = byClass(nav, 'ahd-tabs-label');
|
|
699
|
-
var index = labels.indexOf(label);
|
|
700
|
-
if (index < 0) return;
|
|
701
|
-
event.preventDefault();
|
|
702
|
-
setActive(root, index);
|
|
703
|
-
if (root.classList.contains('ahd-tabs-scroll-sections')) {
|
|
704
|
-
var p = partsOf(root);
|
|
705
|
-
var panel = p && p.panels[index];
|
|
706
|
-
if (panel) {
|
|
707
|
-
window.requestAnimationFrame(function () {
|
|
708
|
-
var reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
709
|
-
panel.scrollIntoView({ behavior: reduce ? 'auto' : 'smooth', block: 'start' });
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
});
|
|
714
|
-
|
|
715
|
-
function initRoot(root) {
|
|
716
|
-
if (root.dataset.ahdTabsReady === 'true') return;
|
|
717
|
-
var p = partsOf(root);
|
|
718
|
-
if (!p || !p.labels.length || !p.panels.length) return;
|
|
719
|
-
root.dataset.ahdTabsReady = 'true';
|
|
720
|
-
|
|
721
|
-
var checkedIndex = p.inputs.findIndex(function (input) { return input.checked; });
|
|
722
|
-
setActive(root, checkedIndex >= 0 ? checkedIndex : 0);
|
|
723
|
-
|
|
724
|
-
if (root.classList.contains('ahd-tabs-scroll-sections') && 'IntersectionObserver' in window) {
|
|
725
|
-
var observer = new IntersectionObserver(function (entries) {
|
|
726
|
-
var visible = entries
|
|
727
|
-
.filter(function (entry) { return entry.isIntersecting; })
|
|
728
|
-
.sort(function (a, b) { return b.intersectionRatio - a.intersectionRatio; })[0];
|
|
729
|
-
if (!visible) return;
|
|
730
|
-
var idx = p.panels.indexOf(visible.target);
|
|
731
|
-
if (idx >= 0) setActive(root, idx);
|
|
732
|
-
}, { root: null, rootMargin: '-20% 0px -55% 0px', threshold: [0.1, 0.25, 0.5, 0.75] });
|
|
733
|
-
p.panels.forEach(function (panel) { observer.observe(panel); });
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
function initAll() {
|
|
738
|
-
document.querySelectorAll('.ahd-tabs').forEach(initRoot);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
// Initial pass plus retries, so late-injected tabs (innerHTML, async widgets)
|
|
742
|
-
// still get their starting active state and observers wired.
|
|
743
|
-
if (document.readyState === 'loading') {
|
|
744
|
-
document.addEventListener('DOMContentLoaded', initAll);
|
|
745
|
-
} else {
|
|
746
|
-
initAll();
|
|
747
|
-
}
|
|
748
|
-
if (typeof MutationObserver !== 'undefined') {
|
|
749
|
-
var mo = new MutationObserver(function () { initAll(); });
|
|
750
|
-
mo.observe(document.documentElement || document.body, { childList: true, subtree: true });
|
|
751
|
-
} else {
|
|
752
|
-
var tries = 0;
|
|
753
|
-
var timer = setInterval(function () { initAll(); if (++tries > 20) clearInterval(timer); }, 250);
|
|
754
|
-
}
|
|
755
|
-
})();
|
|
756
|
-
`,ak=()=>`
|
|
757
|
-
(function () {
|
|
758
|
-
if (window.__ahdCarouselBound) return;
|
|
759
|
-
window.__ahdCarouselBound = true;
|
|
760
|
-
|
|
761
|
-
function byClass(parent, className) {
|
|
762
|
-
return Array.prototype.filter.call((parent && parent.querySelectorAll('.' + className)) || [], function () { return true; });
|
|
763
|
-
}
|
|
764
|
-
function firstByClass(parent, className) {
|
|
765
|
-
return parent ? parent.querySelector('.' + className) : null;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
function partsOf(root) {
|
|
769
|
-
var viewport = firstByClass(root, 'ahd-carousel-viewport');
|
|
770
|
-
var track = firstByClass(root, 'ahd-carousel-track');
|
|
771
|
-
if (!viewport || !track) return null;
|
|
772
|
-
return {
|
|
773
|
-
viewport: viewport,
|
|
774
|
-
track: track,
|
|
775
|
-
slides: Array.prototype.slice.call(track.children),
|
|
776
|
-
dotsWrap: firstByClass(root, 'ahd-carousel-dots'),
|
|
777
|
-
prev: firstByClass(root, 'ahd-carousel-prev'),
|
|
778
|
-
next: firstByClass(root, 'ahd-carousel-next'),
|
|
779
|
-
};
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
function attrInt(root, name, fallback) {
|
|
783
|
-
var v = parseInt(root.getAttribute(name) || '', 10);
|
|
784
|
-
return Math.max(1, isNaN(v) ? fallback : v);
|
|
785
|
-
}
|
|
786
|
-
// Active slides-per-view must mirror the CSS @media breakpoints in
|
|
787
|
-
// CarouselReader (mobile <=600px, tablet <=1024px), otherwise the script
|
|
788
|
-
// pages against the desktop count and stops short on smaller screens.
|
|
789
|
-
function perViewOf(root) {
|
|
790
|
-
var desktop = attrInt(root, 'data-per-view', 1);
|
|
791
|
-
var w = (typeof window !== 'undefined' && window.innerWidth) || 0;
|
|
792
|
-
if (w && w <= 600) return attrInt(root, 'data-per-view-mobile', desktop);
|
|
793
|
-
if (w && w <= 1024) return attrInt(root, 'data-per-view-tablet', desktop);
|
|
794
|
-
return desktop;
|
|
795
|
-
}
|
|
796
|
-
function pageCountOf(root, p) {
|
|
797
|
-
return Math.max(1, p.slides.length - perViewOf(root) + 1);
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
function render(root) {
|
|
801
|
-
var p = partsOf(root);
|
|
802
|
-
if (!p || !p.slides.length) return;
|
|
803
|
-
var index = parseInt(root.getAttribute('data-index') || '0', 10) || 0;
|
|
804
|
-
var pages = pageCountOf(root, p);
|
|
805
|
-
if (index < 0) index = 0;
|
|
806
|
-
if (index > pages - 1) index = pages - 1;
|
|
807
|
-
root.setAttribute('data-index', String(index));
|
|
808
|
-
|
|
809
|
-
var first = p.slides[0];
|
|
810
|
-
var slideW = first.getBoundingClientRect().width;
|
|
811
|
-
// The track lays out with CSS gap; read it so the offset matches the layout.
|
|
812
|
-
var trackStyle = window.getComputedStyle ? window.getComputedStyle(p.track) : null;
|
|
813
|
-
var gap = 0;
|
|
814
|
-
if (trackStyle) {
|
|
815
|
-
var g = parseFloat(trackStyle.columnGap || trackStyle.gap || '0');
|
|
816
|
-
if (!isNaN(g)) gap = g;
|
|
817
|
-
}
|
|
818
|
-
var offset = index * (slideW + gap);
|
|
819
|
-
p.track.style.transform = 'translateX(' + (-offset) + 'px)';
|
|
820
|
-
|
|
821
|
-
if (p.dotsWrap) {
|
|
822
|
-
var dotColor = p.dotsWrap.getAttribute('data-dot-color') || '';
|
|
823
|
-
var dotActive = p.dotsWrap.getAttribute('data-dot-active-color') || '';
|
|
824
|
-
var dots = byClass(p.dotsWrap, 'ahd-carousel-dot');
|
|
825
|
-
// The markup renders the max dots (smallest per-view); show only the dots
|
|
826
|
-
// the active breakpoint needs and hide the surplus.
|
|
827
|
-
for (var d = 0; d < dots.length; d++) {
|
|
828
|
-
dots[d].style.display = d < pages ? '' : 'none';
|
|
829
|
-
dots[d].style.backgroundColor = d === index ? dotActive : dotColor;
|
|
830
|
-
dots[d].setAttribute('aria-current', d === index ? 'true' : 'false');
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
var loop = root.getAttribute('data-loop') === '1';
|
|
834
|
-
if (p.prev) p.prev.style.opacity = (!loop && index <= 0) ? '0.4' : '1';
|
|
835
|
-
if (p.next) p.next.style.opacity = (!loop && index >= pages - 1) ? '0.4' : '1';
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
function go(root, target) {
|
|
839
|
-
var p = partsOf(root);
|
|
840
|
-
if (!p) return;
|
|
841
|
-
var pages = pageCountOf(root, p);
|
|
842
|
-
var loop = root.getAttribute('data-loop') === '1';
|
|
843
|
-
if (loop) {
|
|
844
|
-
target = (target % pages + pages) % pages;
|
|
845
|
-
} else {
|
|
846
|
-
target = Math.max(0, Math.min(pages - 1, target));
|
|
847
|
-
}
|
|
848
|
-
root.setAttribute('data-index', String(target));
|
|
849
|
-
render(root);
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
document.addEventListener('click', function (event) {
|
|
853
|
-
var t = event.target;
|
|
854
|
-
if (!t || !t.closest) return;
|
|
855
|
-
var dot = t.closest('.ahd-carousel-dot');
|
|
856
|
-
if (dot) {
|
|
857
|
-
var root = dot.closest('.ahd-carousel');
|
|
858
|
-
if (root) { event.preventDefault(); go(root, parseInt(dot.getAttribute('data-ahd-dot-index') || '0', 10) || 0); }
|
|
859
|
-
return;
|
|
860
|
-
}
|
|
861
|
-
var prev = t.closest('.ahd-carousel-prev');
|
|
862
|
-
if (prev) {
|
|
863
|
-
var rp = prev.closest('.ahd-carousel');
|
|
864
|
-
if (rp) { event.preventDefault(); go(rp, (parseInt(rp.getAttribute('data-index') || '0', 10) || 0) - 1); }
|
|
865
|
-
return;
|
|
866
|
-
}
|
|
867
|
-
var next = t.closest('.ahd-carousel-next');
|
|
868
|
-
if (next) {
|
|
869
|
-
var rn = next.closest('.ahd-carousel');
|
|
870
|
-
if (rn) { event.preventDefault(); go(rn, (parseInt(rn.getAttribute('data-index') || '0', 10) || 0) + 1); }
|
|
871
|
-
return;
|
|
872
|
-
}
|
|
873
|
-
});
|
|
874
|
-
|
|
875
|
-
function bindDrag(root) {
|
|
876
|
-
var p = partsOf(root);
|
|
877
|
-
if (!p) return;
|
|
878
|
-
var startX = 0, dragging = false;
|
|
879
|
-
function down(x) { startX = x; dragging = true; }
|
|
880
|
-
function up(x) {
|
|
881
|
-
if (!dragging) return;
|
|
882
|
-
dragging = false;
|
|
883
|
-
var dx = x - startX;
|
|
884
|
-
if (Math.abs(dx) < 40) return;
|
|
885
|
-
var cur = parseInt(root.getAttribute('data-index') || '0', 10) || 0;
|
|
886
|
-
go(root, cur + (dx < 0 ? 1 : -1));
|
|
887
|
-
}
|
|
888
|
-
p.viewport.addEventListener('touchstart', function (e) { down(e.touches[0].clientX); }, { passive: true });
|
|
889
|
-
p.viewport.addEventListener('touchend', function (e) { up((e.changedTouches[0] || {}).clientX || startX); }, { passive: true });
|
|
890
|
-
p.viewport.addEventListener('mousedown', function (e) { down(e.clientX); });
|
|
891
|
-
document.addEventListener('mouseup', function (e) { if (dragging) up(e.clientX); });
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
function startAutoplay(root) {
|
|
895
|
-
if (root.getAttribute('data-autoplay') !== '1') return;
|
|
896
|
-
var interval = parseInt(root.getAttribute('data-autoplay-interval') || '4000', 10) || 4000;
|
|
897
|
-
var paused = false;
|
|
898
|
-
root.addEventListener('mouseenter', function () { paused = true; });
|
|
899
|
-
root.addEventListener('mouseleave', function () { paused = false; });
|
|
900
|
-
setInterval(function () {
|
|
901
|
-
if (paused || document.hidden) return;
|
|
902
|
-
var cur = parseInt(root.getAttribute('data-index') || '0', 10) || 0;
|
|
903
|
-
go(root, cur + 1);
|
|
904
|
-
}, interval);
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
function initRoot(root) {
|
|
908
|
-
if (root.dataset.ahdCarouselReady === 'true') return;
|
|
909
|
-
var p = partsOf(root);
|
|
910
|
-
if (!p || !p.slides.length) return;
|
|
911
|
-
root.dataset.ahdCarouselReady = 'true';
|
|
912
|
-
if (!root.getAttribute('data-index')) root.setAttribute('data-index', '0');
|
|
913
|
-
render(root);
|
|
914
|
-
bindDrag(root);
|
|
915
|
-
startAutoplay(root);
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
function initAll() {
|
|
919
|
-
document.querySelectorAll('.ahd-carousel').forEach(initRoot);
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
if (document.readyState === 'loading') {
|
|
923
|
-
document.addEventListener('DOMContentLoaded', initAll);
|
|
924
|
-
} else {
|
|
925
|
-
initAll();
|
|
926
|
-
}
|
|
927
|
-
window.addEventListener('resize', function () {
|
|
928
|
-
document.querySelectorAll('.ahd-carousel').forEach(render);
|
|
929
|
-
});
|
|
930
|
-
if (typeof MutationObserver !== 'undefined') {
|
|
931
|
-
var mo = new MutationObserver(function () { initAll(); });
|
|
932
|
-
mo.observe(document.documentElement || document.body, { childList: true, subtree: true });
|
|
933
|
-
} else {
|
|
934
|
-
var tries = 0;
|
|
935
|
-
var timer = setInterval(function () { initAll(); if (++tries > 20) clearInterval(timer); }, 250);
|
|
936
|
-
}
|
|
937
|
-
})();
|
|
938
|
-
`,ik=`
|
|
536
|
+
`.trim()},blockValue:function(f){var p=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(f,0,b);var x=this.popStack();b.splice(1,0,x),this.push(this.source.functionCall(p,"call",b))},ambiguousBlockValue:function(){var f=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var b=this.topStack();p.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(f,"call",p),"}"])},appendContent:function(f){this.pendingContent?f=this.pendingContent+f:this.pendingLocation=this.source.currentLocation,this.pendingContent=f},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var f=this.popStack();this.pushSource(["if (",f," != null) { ",this.appendToBuffer(f,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(f){this.lastContext=f},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(f,p,b,x){var v=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(f[v++])):this.pushContext(),this.resolvePath("context",f,v,p,b)},lookupBlockParam:function(f,p){this.useBlockParams=!0,this.push(["blockParams[",f[0],"][",f[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(f,p,b){f?this.pushStackLiteral("container.data(data, "+f+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,b)},resolvePath:function(f,p,b,x,v){var S=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&v,this,p,b,f));return}for(var k=p.length,w=function(y){S.replaceStack(function(_){var I=S.nameLookup(_,p[y],f);return x?[" && ",I]:[" != null ? ",I," : ",_]})},C=b;C<k;C++)w(C)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(f,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof f=="string"?this.pushString(f):this.pushStackLiteral(f))},emptyHash:function(f){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(f?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var f=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(f.ids)),this.stringParams&&(this.push(this.objectLiteral(f.contexts)),this.push(this.objectLiteral(f.types))),this.push(this.objectLiteral(f.values))},pushString:function(f){this.pushStackLiteral(this.quotedString(f))},pushLiteral:function(f){this.pushStackLiteral(f)},pushProgram:function(f){f!=null?this.pushStackLiteral(this.programExpression(f)):this.pushStackLiteral(null)},registerDecorator:function(f,p){var b=this.nameLookup("decorators",p,"decorator"),x=this.setupHelperArgs(p,f);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+p+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",x])," || fn;"])},invokeHelper:function(f,p,b){var x=this.popStack(),v=this.setupHelper(f,p),S=[];b&&S.push(v.name),S.push(x),this.options.strict||S.push(this.aliasable("container.hooks.helperMissing"));var k=["(",this.itemsSeparatedBy(S,"||"),")"],w=this.source.functionCall(k,"call",v.callParams);this.push(w)},itemsSeparatedBy:function(f,p){var b=[];b.push(f[0]);for(var x=1;x<f.length;x++)b.push(p,f[x]);return b},invokeKnownHelper:function(f,p){var b=this.setupHelper(f,p);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(f,p){this.useRegister("helper");var b=this.popStack();this.emptyHash();var x=this.setupHelper(0,f,p),v=this.lastHelper=this.nameLookup("helpers",f,"helper"),S=["(","(helper = ",v," || ",b,")"];this.options.strict||(S[0]="(helper = ",S.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",S,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(f,p,b){var x=[],v=this.setupParams(p,1,x);f&&(p=this.popStack(),delete v.name),b&&(v.indent=JSON.stringify(b)),v.helpers="helpers",v.partials="partials",v.decorators="container.decorators",f?x.unshift(p):x.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(v.depths="depths"),v=this.objectLiteral(v),x.push(v),this.push(this.source.functionCall("container.invokePartial","",x))},assignToHash:function(f){var p=this.popStack(),b=void 0,x=void 0,v=void 0;this.trackIds&&(v=this.popStack()),this.stringParams&&(x=this.popStack(),b=this.popStack());var S=this.hash;b&&(S.contexts[f]=b),x&&(S.types[f]=x),v&&(S.ids[f]=v),S.values[f]=p},pushId:function(f,p,b){f==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):f==="PathExpression"?this.pushString(p):f==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(f,p){for(var b=f.children,x=void 0,v=void 0,S=0,k=b.length;S<k;S++){x=b[S],v=new this.compiler;var w=this.matchExistingProgram(x);if(w==null){var C=this.context.programs.push("")-1;x.index=C,x.name="program"+C,this.context.programs[C]=v.compile(x,p,this.context,!this.precompile),this.context.decorators[C]=v.decorators,this.context.environments[C]=x,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.useBlockParams,x.useDepths=this.useDepths,x.useBlockParams=this.useBlockParams}else x.index=w.index,x.name="program"+w.index,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams}},matchExistingProgram:function(f){for(var p=0,b=this.context.environments.length;p<b;p++){var x=this.context.environments[p];if(x&&x.equals(f))return x}},programExpression:function(f){var p=this.environment.children[f],b=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(f){this.registers[f]||(this.registers[f]=!0,this.registers.list.push(f))},push:function(f){return f instanceof c||(f=this.source.wrap(f)),this.inlineStack.push(f),f},pushStackLiteral:function(f){this.push(new c(f))},pushSource:function(f){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),f&&this.source.push(f)},replaceStack:function(f){var p=["("],b=void 0,x=void 0,v=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var S=this.popStack(!0);if(S instanceof c)b=[S.value],p=["(",b],v=!0;else{x=!0;var k=this.incrStack();p=["((",this.push(k)," = ",S,")"],b=this.topStack()}var w=f.call(this,b);v||this.popStack(),x&&this.stackSlot--,this.push(p.concat(w,")"))},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 f=this.inlineStack;this.inlineStack=[];for(var p=0,b=f.length;p<b;p++){var x=f[p];if(x instanceof c)this.compileStack.push(x);else{var v=this.incrStack();this.pushSource([v," = ",x,";"]),this.compileStack.push(v)}}},isInline:function(){return this.inlineStack.length},popStack:function(f){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!f&&b instanceof c)return b.value;if(!p){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var f=this.isInline()?this.inlineStack:this.compileStack,p=f[f.length-1];return p instanceof c?p.value:p},contextName:function(f){return this.useDepths&&f?"depths["+f+"]":"depth"+f},quotedString:function(f){return this.source.quotedString(f)},objectLiteral:function(f){return this.source.objectLiteral(f)},aliasable:function(f){var p=this.aliases[f];return p?(p.referenceCount++,p):(p=this.aliases[f]=this.source.wrap(f),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(f,p,b){var x=[],v=this.setupHelperArgs(p,f,x,b),S=this.nameLookup("helpers",p,"helper"),k=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:v,name:S,callParams:[k].concat(x)}},setupParams:function(f,p,b){var x={},v=[],S=[],k=[],w=!b,C=void 0;w&&(b=[]),x.name=this.quotedString(f),x.hash=this.popStack(),this.trackIds&&(x.hashIds=this.popStack()),this.stringParams&&(x.hashTypes=this.popStack(),x.hashContexts=this.popStack());var y=this.popStack(),_=this.popStack();(_||y)&&(x.fn=_||"container.noop",x.inverse=y||"container.noop");for(var I=p;I--;)C=this.popStack(),b[I]=C,this.trackIds&&(k[I]=this.popStack()),this.stringParams&&(S[I]=this.popStack(),v[I]=this.popStack());return w&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(k)),this.stringParams&&(x.types=this.source.generateArray(S),x.contexts=this.source.generateArray(v)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(f,p,b,x){var v=this.setupParams(f,p,b);return v.loc=JSON.stringify(this.source.currentLocation),v=this.objectLiteral(v),x?(this.useRegister("options"),b.push("options"),["options=",v]):b?(b.push(v),""):v}},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(" "),f=u.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)f[d[p]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function h(d,f,p,b,x){var v=f.popStack(),S=p.length;d&&S--;for(var k=b;k<S;k++)v=f.nameLookup(v,p[k],x);return d?[f.aliasable("container.strict"),"(",v,", ",f.quotedString(p[S]),", ",JSON.stringify(f.source.currentLocation)," )"]:v}t.default=u,e.exports=t.default})(na,na.exports);var T$=na.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}var o=Z2,r=n(o),i=nc,a=n(i),l=On,s=Ln,c=T$,u=n(c),h=oc,d=n(h),f=tc,p=n(f),b=r.default.create;function x(){var S=b();return S.compile=function(k,w){return s.compile(k,w,S)},S.precompile=function(k,w){return s.precompile(k,w,S)},S.AST=a.default,S.Compiler=s.Compiler,S.JavaScriptCompiler=u.default,S.Parser=l.parser,S.parse=l.parse,S.parseWithoutProcessing=l.parseWithoutProcessing,S}var v=x();v.create=x,p.default(v),v.Visitor=d.default,v.default=v,t.default=v,e.exports=t.default})(Mr,Mr.exports);var E$=Mr.exports;const M$=Tw(E$);function Ea(e,t){const n=[],o=new Set,r=i=>{var l,s,c,u,h,d,f,p,b,x;if(o.has(i)||!e[i])return;o.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(r);break;case"ColumnsContainer":case"FlexColumns":(((s=a.data.props)==null?void 0:s.columns)||[]).forEach(v=>(v.childrenIds||[]).forEach(r));break;case"Grid":(((c=a.data.props)==null?void 0:c.cells)||[]).forEach(v=>(v.childrenIds||[]).forEach(r));break;case"Accordion":(((u=a.data.props)==null?void 0:u.items)||[]).forEach(v=>{(v.titleChildrenIds||[]).forEach(r),(v.contentChildrenIds||[]).forEach(r)});break;case"TabsBlock":case"Carousel":case"Marquee":(((h=a.data.props)==null?void 0:h.items)||[]).forEach(v=>{(v.contentChildrenIds||[]).forEach(r)});break;case"Pagination":(((d=a.data.props)==null?void 0:d.cells)||[]).forEach(v=>(v.childrenIds||[]).forEach(r)),(((f=a.data.props)==null?void 0:f.items)||[]).forEach(v=>{(v.contentChildrenIds||[]).forEach(r)});break;case"PricingAccordion":(((p=a.data.props)==null?void 0:p.items)||[]).forEach(v=>{(v.cardChildrenIds||[]).forEach(r),(v.detailChildrenIds||[]).forEach(r)});break;case"MenuPicker":(((b=a.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(r),(((x=a.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(r);break;case"EmailLayout":(a.data.childrenIds||[]).forEach(r);break}};return r(t),n}const wo="relative",Tn="24h",P$=864e5;function Ma(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function wl(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function O$(e,t){const n=Ma(e);if(!n)return"";const o=(t==null?void 0:t.now)??new Date,r=t==null?void 0:t.locale,i=Math.round((wl(n).getTime()-wl(o).getTime())/P$);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(r,{weekday:"short"});const a=n.getFullYear()===o.getFullYear();return n.toLocaleDateString(r,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function pr(e){const t=e%100;if(t>=11&&t<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}}function L$(e,t){const o=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"short",day:"numeric",weekday:"long"}).formatToParts(e),r=i=>{var a;return((a=o.find(l=>l.type===i))==null?void 0:a.value)??""};return{year:Number(r("year")),month:new Date(`${r("month")} 1, 2000`).getMonth(),day:Number(r("day")),weekday:r("weekday")}}const z$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ra(e){return e<10?`0${e}`:String(e)}function aa(e,t=wo,n){if(t==="relative")return O$(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const o=Ma(e);if(!o)return"";const{year:r,month:i,day:a,weekday:l}=L$(o,n==null?void 0:n.tz),s=z$[i],c=String(r),u=ra(i+1),h=ra(a);switch(t){case"do-mmm-yyyy":return`${pr(a)} ${s} ${c}`;case"mmm-d-yyyy":return`${s} ${a}, ${c}`;case"d-mmm-yyyy":return`${a} ${s} ${c}`;case"dd-mm-yyyy":return`${h}/${u}/${c}`;case"mm-dd-yyyy":return`${u}/${h}/${c}`;case"yyyy-mm-dd":return`${c}-${u}-${h}`;case"do-mmm":return`${pr(a)} ${s}`;case"full":return`${l}, ${a} ${new Date(2e3,i,1).toLocaleDateString("en-US",{month:"long"})} ${c}`;default:return`${pr(a)} ${s} ${c}`}}function $o(e,t=Tn,n){const o=Ma(e);if(!o)return"";const i=new Intl.DateTimeFormat("en-US",{timeZone:n==null?void 0:n.tz,hour:"numeric",minute:"2-digit",hour12:t==="12h"}).formatToParts(o),a=c=>{var u;return((u=i.find(h=>h.type===c))==null?void 0:u.value)??""};if(t==="12h"){const c=a("hour"),u=a("minute"),h=a("dayPeriod").toUpperCase();return`${c}:${u} ${h}`}const l=ra(Number(a("hour"))%24),s=a("minute");return`${l}:${s}`}function uc(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const o=e;for(const r of t){if((r==null?void 0:r.type)!=="array"||!r.sourceBlockId)continue;(Array.isArray(r.value)?r.value:[]).forEach((a,l)=>{var c;const s=l===0?r.sourceBlockId:(c=r.rowIds)==null?void 0:c[l-1];if(!(!s||!o[s]))for(const u of Ea(o,s))n.set(u,a||{})})}return n}const j$={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function B$(e){return e?j$[e]:void 0}const ia=M$.create();ia.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new ia.SafeString(`{{${t.name}}}`)});const $l=new Map;function D$(e){let t=$l.get(e);return t||(t=ia.compile(e,{noEscape:!0,strict:!1}),$l.set(e,t)),t}function dc(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 o=new Map;for(const i of n.itemFields??[])((i==null?void 0:i.type)==="date"||(i==null?void 0:i.type)==="time"||(i==null?void 0:i.type)==="datetime")&&i.id&&o.set(i.id,i);const r=n.value.map(i=>{const a={};if(i&&typeof i=="object")for(const l of Object.keys(i)){const s=i[l];if(s==null||s==="")continue;const c=o.get(l);if((c==null?void 0:c.type)==="datetime"){const u=lo(l,String(s),o,"date"),h=lo(l,String(s),o,"time"),d={date:u,time:h};Object.defineProperty(d,"toString",{value:()=>[u,h].filter(Boolean).join(" "),enumerable:!1}),a[l]=d}else a[l]=c?lo(l,String(s),o):s}return a});Object.defineProperty(r,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=r;continue}if(n.type==="datetime"){const o=n.id,r=typeof n.value=="string"?n.value:"";if(!r){const c={date:`{{${o}.date}}`,time:`{{${o}.time}}`};Object.defineProperty(c,"toString",{value:()=>`{{${o}}}`,enumerable:!1}),t[o]=c;continue}const i=n.dateFormat??wo,a=i==="relative"?$r(o,r):aa(r,i,{tz:n.dateTz}),l=$o(r,n.timeFormat??Tn,{tz:n.dateTz}),s={date:a,time:l};Object.defineProperty(s,"toString",{value:()=>[a,l].filter(Boolean).join(" "),enumerable:!1}),t[o]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const o=n.dateFormat??wo;t[n.id]=o==="relative"?$r(n.id,n.value):aa(n.value,o,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=$o(n.value,n.timeFormat??Tn,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function Pa(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const F$=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function H$(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(F$,(i,a)=>{const l=t[a];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+o+++"_";return n.set(c,i),c}),restore:n}}const hc=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function G$(e){const t=new Map;if(!Array.isArray(e))return t;for(const n of e)if(!((n==null?void 0:n.type)!=="array"||!Array.isArray(n.itemFields)))for(const o of n.itemFields)((o==null?void 0:o.type)==="date"||(o==null?void 0:o.type)==="time"||(o==null?void 0:o.type)==="datetime")&&o.id&&!t.has(o.id)&&t.set(o.id,o);return t}function kl(e,t,n){const o=n.dateFormat??wo;return o==="relative"?$r(e,t):aa(t,o,{tz:n.dateTz})}function lo(e,t,n,o){const r=n.get(e);if(!r)return t;if(r.type==="time")return $o(t,r.timeFormat??Tn,{tz:r.dateTz});if(r.type==="datetime"){const i=$o(t,r.timeFormat??Tn,{tz:r.dateTz});if(o==="time")return i;const a=kl(e,t,r);return o==="date"?a:[a,i].filter(Boolean).join(" ")}return kl(e,t,r)}function U$(e,t,n){return e.replace(hc,(o,r,i)=>{const a=t==null?void 0:t[r];return a==null||a===""?o:n?lo(r,String(a),n,i):String(a)})}function Sn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=U$(o,n,G$(t)),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const r=t&&t.length>0?dc(t):{},{masked:i,restore:a}=H$(o,r),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace(hc,h=>{const d="HB_THIS_"+u+++"_";return l.set(d,h),d})}let c=D$(s)(r);for(const[u,h]of l)c=c.split(u).join(h);if(a.size>0)for(const[u,h]of a)c=c.split(u).join(h);return c}catch{return o}}function fc(e,t,n,o){var l,s,c,u,h,d,f,p,b;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const x=(s=(l=e.data)==null?void 0:l.props)==null?void 0:s.items;if(!Array.isArray(x)||x.length===0)return e;let v=null;return x.forEach((S,k)=>{const w=S==null?void 0:S.label;if(typeof w!="string"||w.indexOf("{{")===-1)return;const C=Array.isArray(S==null?void 0:S.contentChildrenIds)?S.contentChildrenIds[0]:void 0,y=C&&o?o.get(C):n,_=Sn(w,t,y??null);_!==w&&(v||(v=x.map(I=>({...I}))),v[k]={...v[k],label:_})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="List"){const x=(u=(c=e.data)==null?void 0:c.props)==null?void 0:u.items;if(!Array.isArray(x)||x.length===0)return e;let v=null;return x.forEach((S,k)=>{const w=S==null?void 0:S.text;if(typeof w!="string"||w.indexOf("{{")===-1)return;const C=Sn(w,t,n);C!==w&&(v||(v=x.map(y=>({...y}))),v[k]={...v[k],text:C})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Breadcrumb"){const x=(d=(h=e.data)==null?void 0:h.props)==null?void 0:d.items;if(!Array.isArray(x)||x.length===0)return e;let v=null;return x.forEach((S,k)=>{for(const w of["label","href"]){const C=S==null?void 0:S[w];if(typeof C!="string"||C.indexOf("{{")===-1)continue;const y=Sn(C,t,n);y!==C&&(v||(v=x.map(_=>({..._}))),v[k]={...v[k],[w]:y})}}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Table"){const x=(p=(f=e.data)==null?void 0:f.props)==null?void 0:p.cells;if(!Array.isArray(x)||x.length===0)return e;let v=null;return x.forEach((S,k)=>{if(typeof S!="string"||S.indexOf("{{")===-1)return;const w=Sn(S,t,n);w!==S&&(v||(v=[...x]),v[k]=w)}),v?{...e,data:{...e.data,props:{...e.data.props,cells:v}}}:e}const r=B$(e.type);if(!r)return e;const i=(b=e.data)==null?void 0:b.props;if(!i)return e;let a=null;for(const x of r){const v=i[x];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const S=Sn(v,t,n);S!==v&&(a||(a={...i}),a[x]=S)}return a?{...e,data:{...e.data,props:a}}:e}function Oa(e,t){var l;if(!e)return e;const n=t??Pa(e);let o={...e},r=!1;const i=uc(e,n);if(n&&n.length>0&&(Object.keys(dc(n)).length>0||i.size>0))for(const s of Object.keys(o)){const c=o[s],u=fc(c,n,i.get(s),i);u!==c&&(o[s]=u,r=!0)}const a=o.root;if(((l=a==null?void 0:a.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=a.data;o.root={...a,data:c},r=!0}return r?o:e}const _l=Object.fromEntries(pt.map(e=>[e.key,e.value]));function zt(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function La(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function W$(e,t){const n=e.borderColor??(t==null?void 0:t.borderColor)??null;if(!n)return"";if(n==="transparent")return"border:none!important";const o=zt(e.borderWidth)?e.borderWidth:zt(t==null?void 0:t.borderWidth)?t==null?void 0:t.borderWidth:null;return La(n)?`padding:${(o==null?void 0:o.top)??0}px ${(o==null?void 0:o.right)??0}px ${(o==null?void 0:o.bottom)??0}px ${(o==null?void 0:o.left)??0}px!important`:[`border-top:${(o==null?void 0:o.top)??0}px solid ${n}!important`,`border-right:${(o==null?void 0:o.right)??0}px solid ${n}!important`,`border-bottom:${(o==null?void 0:o.bottom)??0}px solid ${n}!important`,`border-left:${(o==null?void 0:o.left)??0}px solid ${n}!important`].join(";")}function Z$(e,t,n){const o=t.borderColor??(n==null?void 0:n.borderColor)??null;if(!o||!La(o))return"";const r=t.padding;if(!zt(r))return"";const i=`padding:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`;return`${e}>.container-block>.container-block-inner{${i}}`}function V$(e,t){const n=[],o=e.borderColor!==void 0||e.borderWidth!==void 0,r=La((t==null?void 0:t.borderColor)??"");if(o||e.padding!==void 0&&r){const a=W$(e,t);a&&n.push(a)}const i=e.backgroundSize==="none";i&&n.push("background-image:none!important");for(const a of Object.keys(e)){const l=e[a];if(l!=null)switch(a){case"borderColor":case"borderWidth":break;case"fontSize":n.push(`font-size:${l}px!important`);break;case"fontFamily":_l[l]&&n.push(`font-family:${_l[l]}!important`);break;case"fontWeight":n.push(`font-weight:${l}!important`);break;case"fontStyle":n.push(`font-style:${l}!important`);break;case"textDecoration":n.push(`text-decoration:${l}!important`);break;case"lineHeight":n.push(`line-height:${l}!important`);break;case"textAlign":n.push(`text-align:${l}!important`);break;case"buttonTextAlign":n.push(`justify-content:${l==="center"?"center":l==="right"?"flex-end":"flex-start"}!important`);break;case"padding":zt(l)&&!r&&n.push(`padding:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"margin":zt(l)&&n.push(`margin:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"marginBottom":n.push(`margin-bottom:${l}px!important`);break;case"width":n.push(`width:${typeof l=="number"?`${l}px`:l}!important`);break;case"height":n.push(`height:${typeof l=="number"?`${l}px`:l}!important`);break;case"backgroundImage":n.push(l&&!i?`background-image:url("${String(l).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":i||n.push(`background-size:${l}!important`);break;case"backgroundRepeat":n.push(`background-repeat:${l}!important`);break;case"activeFontSize":n.push(`--ahd-tabs-active-font-size:${typeof l=="number"?`${l}px`:l}`);break;case"showActiveBorder":n.push(`--ahd-tabs-active-border-color:${l?"currentColor":"transparent"}`);break;case"tabGap":n.push(`--ahd-tabs-tab-gap:${l}px`);break;case"contentGap":n.push(`--ahd-tabs-content-gap:${l}px`);break;case"navWidth":n.push(`--ahd-tabs-nav-width:${l}px`);break;case"starSize":n.push(`--ahd-rating-star-size:${l}px`);break;case"starGap":n.push(`--ahd-rating-star-gap:${l}px`);break;case"arrowSize":n.push(`--ahd-carousel-arrow-size:${l}px`),n.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(l)*.5)))}px`);break;case"dotSize":n.push(`--ahd-carousel-dot-size:${l}px`);break;case"slideGap":n.push(`--ahd-carousel-slide-gap:${l}px`);break;case"buttonSize":n.push(`--ahd-pgn-btn-size:${l}px`);break;case"buttonGap":n.push(`--ahd-pgn-btn-gap:${l}px`);break;case"buttonRadius":n.push(`--ahd-pgn-btn-radius:${l}px`);break;case"controlGap":n.push(`--ahd-pgn-control-gap:${l}px`);break;case"borderRadius":if(typeof l=="number")n.push(`border-radius:${l}px!important`);else if(l&&typeof l=="object"){const{topLeft:s=0,topRight:c=0,bottomRight:u=0,bottomLeft:h=0}=l;n.push(`border-radius:${s}px ${c}px ${u}px ${h}px!important`)}else n.push(`border-radius:${l}!important`);break}}return n.join(";")}function q$(e){const t=[];for(const n of Object.keys(e)){const o=e[n];if(o!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${o}px!important`);break;case"height":{const r=typeof o=="number"?`${o}px`:o;t.push(`height:${r}!important`),t.push(`--ahd-iframe-height:${r}`),t.push(`--ahd-calendly-height:${r}`),t.push(`--ahd-demo-height:${r}`);break}case"width":{const r=typeof o=="number"?`${o}px`:o;t.push(`--ahd-iframe-width:${r}`),t.push(`--ahd-calendly-width:${r}`),t.push(`--ahd-demo-width:${r}`);break}case"blockPadding":zt(o)&&t.push(`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break;case"blockMargin":zt(o)&&t.push(`margin:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break}}return t.join(";")}function Y$(e){return`${e}>.text-block>div,${e}>.heading-block-wrapper>.heading-block`}function K$(e){if(e==null)return"";const t=Number(e);return t>0?"display:-webkit-box!important;-webkit-line-clamp:"+t+"!important;-webkit-box-orient:vertical!important;overflow:hidden!important":"display:block!important;overflow:visible!important"}function Cl(e,t){if(!t)return null;const n=e??{},o={};for(const r of Object.keys(t)){const i=t[r],a=n[r],l=!!i&&typeof i=="object"&&!Array.isArray(i)&&!!a&&typeof a=="object"&&!Array.isArray(a);o[r]=l?{...a,...i}:i}return o}function J$(e,t,n,o){if(!t)return"";const r=`#${e}`,i=Q$(r),a=Y$(r),l=[],s=(u,h)=>{const d=Cl(n,h==null?void 0:h.style),f=Cl(o,h==null?void 0:h.props),p=[d?V$(d,n):"",f?q$(f):""].filter(Boolean).join(";"),b=d?Z$(r,d,n):"",x=[p?`${i}{${p}}`:"",b,h!=null&&h.hidden?`${r}{display:none}`:""].filter(Boolean).join("");if(x&&l.push(`${u}{${x}}`),h!=null&&h.style&&"lineClamp"in h.style){const v=K$(d==null?void 0:d.lineClamp);v&&l.push(`${u}{${a}{${v}}}`)}};s(Bt,t.tablet),s(`@media (max-width:${Oe}px)`,t.mobile);const c=tk(e,t,n,o);return c&&l.push(c),l.join("")}function X$(e,t){return t?e?{...e,...t}:t:e}function la(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function Al(e,t,n){const o=la(e,t),r=la(n==null?void 0:n.style,n==null?void 0:n.props);return X$(o,r)}function gr(e){const t=((e==null?void 0:e.left)??0)+((e==null?void 0:e.right)??0);return t>0?`calc(100% - ${t}px)`:"100%"}function Q$(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${e}>.heading-block-wrapper`,`${e}>.heading-block-wrapper>.heading-block`,`${e}>.image-block`,`${e}>.logo-block`,`${e}>.avatar-block`,`${e}>.container-block`,`${e}>.flex-columns-block`,`${e}>.grid-block`,`${e}>.video-block`,`${e}>.youtube-url-block`,`${e}>.divider-block`,`${e}>.mdx-block`,`${e}>.quill-block`,`${e}>.html-block`,`${e}>.stepper-block`,`${e}>.list-block`,`${e}>.rating-block`,`${e}>.table-block`,`${e}>.table-block table`,`${e}>.spacer-block`,`${e}>.accordion-block`,`${e}>.columns-container`,`${e}>.ahd-carousel`,`${e}>.ahd-marquee`,`${e}>.ahd-pagination`,`${e}>.ahd-tabs`,`${e}>.calendly-block`,`${e}>.iframe-block`,`${e}>.demo-picker-block`,`${e}>.ahd-menu`].join(",")}function ek(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${e}>.heading-block-wrapper`,`${e}>.heading-block-wrapper>.heading-block`,`${e}>.image-block`,`${e}>.logo-block`,`${e}>.avatar-block`,`${e}>.container-block`,`${e}>.flex-columns-block`,`${e}>.grid-block`,`${e}>.video-block`,`${e}>.youtube-url-block`,`${e}>.divider-block`,`${e}>.mdx-block`,`${e}>.quill-block`,`${e}>.html-block`,`${e}>.stepper-block`,`${e}>.list-block`,`${e}>.rating-block`,`${e}>.table-block`,`${e}>.table-block table`,`${e}>.spacer-block`,`${e}>.accordion-block`,`${e}>.columns-container`,`${e}>.ahd-carousel`,`${e}>.ahd-marquee`,`${e}>.ahd-pagination`,`${e}>.ahd-tabs`,`${e}>.calendly-block`,`${e}>.iframe-block`,`${e}>.demo-picker-block`,`${e}>.forms-picker-block`,`${e}>.ahd-timer`,`${e}>.ahd-menu`].join(",")}function tk(e,t,n,o){if(!t)return"";const r=`#${e}`,i=ek(r),a=la(n,o),l=gr(a),s=gr(Al(n,o,t.tablet)),c=gr(Al(n,o,t.mobile));return s===l&&c===l?"":`
|
|
537
|
+
${Bt} { ${i} { width: ${s} !important; max-width: 100% !important; } }
|
|
538
|
+
@media (max-width:${Oe}px) { ${i} { width: ${c} !important; max-width: 100% !important; } }
|
|
539
|
+
`.trim()}const nk=e=>{var o,r;const t=!!((o=e==null?void 0:e.props)!=null&&o.decorative),n=((r=e==null?void 0:e.props)==null?void 0:r.alt)??"";return t?g.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:g.jsx(Si,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):g.jsx(Si,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},ok=({props:e})=>g.jsx("div",{"aria-hidden":"true",className:"spacer-block",style:{height:(e==null?void 0:e.height)??zb.height}}),rk=xv,mc=U.createContext({}),yl=U.createContext(!1),ak=typeof window<"u"?U.useLayoutEffect:U.useEffect;function pc(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const Il=new WeakMap;function ik(e){if(!e||typeof e!="object")return new Map;let t=Il.get(e);return t||(t=uc(e,pc(e)),Il.set(e,t)),t}const gc=U.createContext({});function lk(){return U.useContext(mc)}function sk(){return U.useContext(gc)}const bc={ColumnsContainer:{schema:K0,Component:X0},FlexColumns:{schema:Q0,Component:ix},Grid:{schema:bx,Component:wx},ButtonGroup:{schema:Qv,Component:e1},Container:{schema:Fx,Component:Ms},EmailLayout:{schema:Xx,Component:rk},Accordion:{schema:n1,Component:a1},PricingAccordion:{schema:l1,Component:c1},TabsBlock:{schema:h1,Component:v1},Carousel:{schema:w1,Component:C1},Rating:{schema:A1,Component:N1},Progress:{schema:M1,Component:B1},Marquee:{schema:D1,Component:eS},Timer:{schema:oS,Component:hS},Pagination:{schema:gS,Component:_S},Table:{schema:CS,Component:yS},DemoPicker:{schema:IS,Component:e=>g.jsx(NS,{...e})},MenuPicker:{schema:MS,Component:e=>g.jsx(JS,{...e})},Breadcrumb:{schema:nw,Component:uw},FormsPicker:{schema:dw,Component:e=>g.jsx(pw,{...e})},AppBannerPicker:{schema:gw,Component:e=>g.jsx(vw,{...e})},FaqPicker:{schema:Sw,Component:e=>g.jsx(kw,{...e})},Avatar:{schema:Nm,Component:nk},Button:{schema:Pp,Component:Op},Divider:{schema:Up,Component:Wp},Heading:{schema:ng,Component:og},Html:{schema:Eg,Component:Og},Image:{schema:Jg,Component:Qg},Logo:{schema:pb,Component:bb},Video:{schema:Tb,Component:Ob},IFrame:{schema:x0,Component:w0},Calendly:{schema:_0,Component:y0},YouTubeUrl:{schema:f0,Component:p0},Spacer:{schema:Lb,Component:ok},SkipLink:{schema:_w,Component:Us},AccessibilityTools:{schema:Aw,Component:qs},Stepper:{schema:Iv,Component:Rv},List:{schema:jv,Component:Dv},Text:{schema:i0,Component:s0}},xc=M0(bc),ck=on($(),xc),uk=E0(bc);function Ae({id:e}){var w,C,y,_,I,R,T;const t=lk(),{staticRender:n,injectElementIds:o,mainBlockId:r,hoistedSkipLinkId:i,hoistedA11yToolsId:a}=sk(),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=r&&e===r&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((w=l.data)==null?void 0:w.props)??{},elementId:"main-content"}}}:l,c=pc(t),u=ik(t),h=u.get(e),d=fc(s,c,h,u),f=(d==null?void 0:d.type)==="Container"?g.jsx(Ms,{...d.data,blockId:e}):g.jsx(uk,{...d});if(e==="root")return f;const p=!!((C=d==null?void 0:d.data)!=null&&C.hidden),x=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]).has(d==null?void 0:d.type)?(_=(y=d==null?void 0:d.data)==null?void 0:y.props)==null?void 0:_.animation:null,v=x&&x.type&&x.type!=="none"?{"data-animate-type":x.type,"data-animate-trigger":x.trigger??"load","data-animate-speed":x.speed??"medium","data-animate-delay":x.delay??0,...x.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{},S=n&&o?`ahd-${e}`:e,k=J$(S,(I=d==null?void 0:d.data)==null?void 0:I.responsive,(R=d==null?void 0:d.data)==null?void 0:R.style,(T=d==null?void 0:d.data)==null?void 0:T.props);return n&&o?g.jsxs("div",{id:S,className:"ahd-block-wrapper",style:p?{display:"none"}:void 0,...v,children:[k?g.jsx("style",{dangerouslySetInnerHTML:{__html:k}}):null,f]}):g.jsxs("div",{id:e,style:{scrollMarginTop:"80px",...p?{display:"none"}:null},...v,children:[k?g.jsx("style",{dangerouslySetInnerHTML:{__html:k}}):null,f]})}function En({document:e,rootBlockId:t,staticRender:n,injectElementIds:o,isBanner:r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}){const s=U.useMemo(()=>({staticRender:!!n,injectElementIds:!!o,isBanner:!!r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}),[n,o,r,i,a,l]),c=U.useContext(yl),u=U.useRef(null);return ak(()=>{n||c||u.current&&(xp(u.current),vp(u.current))},[n,c,e,t]),g.jsx("div",{ref:u,style:{display:"contents"},children:g.jsx(mc.Provider,{value:e,children:g.jsx(gc.Provider,{value:s,children:g.jsx(yl.Provider,{value:!0,children:g.jsx(Ae,{id:t})})})})})}function dk(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function hk(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function fk(e,t){const n=new Set;function o(r){var s,c,u,h;if(n.has(r))return;n.add(r);const i=e[r];if(!i)return;if(i.type==="Container"&&((c=(s=i.data)==null?void 0:s.props)==null?void 0:c.tag)==="main")return r;const a=((u=i.data)==null?void 0:u.props)??{},l=[];Array.isArray(a.childrenIds)&&l.push(a.childrenIds),Array.isArray((h=i.data)==null?void 0:h.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 f of d){const p=o(f);if(p)return p}}return o(t)}const mk=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${"var s=this;setTimeout(function(){try{var root=s.closest('[data-ahd-tpl-root]')||s.parentNode||document.body;if(!root){s.parentNode&&s.parentNode.removeChild(s);return;}var p=new URLSearchParams(location.search);var els=root.querySelectorAll('[data-ahd-var]');for(var i=0;i<els.length;i++){var el=els[i];var v=p.get(el.getAttribute('data-ahd-var')||'');if(v!==null){el.textContent=v;}}var hs=root.querySelectorAll('[data-ahd-href-tpl]');for(var j=0;j<hs.length;j++){var he=hs[j];var tpl=he.getAttribute('data-ahd-href-tpl')||'';var filled=tpl.replace(/\\{\\{\\s*([a-zA-Z_][a-zA-Z0-9_-]*)\\s*\\}\\}/g,function(m,n){var pv=p.get(n);return pv!==null?encodeURIComponent(pv):m;});he.setAttribute('href',filled);he.removeAttribute('data-ahd-href-tpl');}var ds=root.querySelectorAll('[data-ahd-date]');if(ds.length){var now=new Date();var sod=function(d){return new Date(d.getFullYear(),d.getMonth(),d.getDate()).getTime();};for(var k=0;k<ds.length;k++){var de=ds[k];var iso=de.getAttribute('data-ahd-date')||'';if(!iso)continue;var dt=new Date(iso);if(isNaN(dt.getTime()))continue;var diff=Math.round((sod(dt)-sod(now))/86400000);var lbl;if(diff===0){lbl='Today';}else if(diff===1){lbl='Tomorrow';}else if(diff===-1){lbl='Yesterday';}else if(diff>=-6&&diff<=6){lbl=dt.toLocaleDateString(undefined,{weekday:'short'});}else{var o={month:'short',day:'numeric'};if(dt.getFullYear()!==now.getFullYear()){o.year='numeric';}lbl=dt.toLocaleDateString(undefined,o);}de.textContent=lbl;}}s.parentNode&&s.parentNode.removeChild(s);}catch(e){}},0);".replace(/"/g,""")}">`,pk=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),gk=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),bk=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),xk=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Pagination"),vk=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Timer"),Sk=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),Rl=e=>Object.values(e??{}).some(t=>{var n,o,r;return Sk.has(t==null?void 0:t.type)&&((r=(o=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:o.animation)==null?void 0:r.type)&&t.data.props.animation.type!=="none"}),un="https://pagepilot.fabbuilder.com/scripts",wk=`${un}/pagePilotTabs.js`,$k=`${un}/pagePilotCarousel.js`,kk=`${un}/pagePilotPagination.js`,_k=`${un}/pagePilotDemoScale.js`,Ck=`${un}/pagePilotTimer.js`,Ak=`${un}/pagePilotAnimation.js`,yk=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${"var s=this;setTimeout(function(){try{var d=document.documentElement;var cs=d.style.colorScheme;if(!cs&&window.getComputedStyle){cs=getComputedStyle(d).colorScheme;}if((!cs||cs==='normal')&&!d.hasAttribute('data-theme')){d.style.colorScheme='light dark';}s.parentNode&&s.parentNode.removeChild(s);}catch(e){}},0);".replace(/"/g,""")}">`,Ik=`
|
|
939
540
|
@keyframes ahd-anim-fade-in { from { opacity: 0; } to { opacity: 1; } }
|
|
940
541
|
@keyframes ahd-anim-slide-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
|
|
941
542
|
@keyframes ahd-anim-slide-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
|
|
@@ -948,16 +549,18 @@ ${It} { ${i} { width: ${s} !important; max-width: 100% !important; } }
|
|
|
948
549
|
80% { transform: translateY(-2px); }
|
|
949
550
|
100% { opacity: 1; transform: translateY(0); }
|
|
950
551
|
}
|
|
951
|
-
`.trim(),
|
|
952
|
-
${
|
|
552
|
+
`.trim(),vc=`
|
|
553
|
+
${Ik}
|
|
953
554
|
|
|
954
555
|
/* Elements that animate on scroll/hover/click start hidden so there is no
|
|
955
556
|
flash of the final state before the trigger fires. Load-triggered elements
|
|
956
557
|
are excluded (data-animate-trigger="load") since they should be visible
|
|
957
558
|
from first paint, driven straight by the keyframe's own 0% state.
|
|
958
|
-
Scoped under html.ahd-anim-ready, a class ONLY the runtime script
|
|
959
|
-
once it has actually loaded and bound —
|
|
960
|
-
|
|
559
|
+
Scoped under html.ahd-anim-ready, a class ONLY the runtime script
|
|
560
|
+
(pagePilotAnimation.js) adds once it has actually loaded and bound —
|
|
561
|
+
if that script fails to load (e.g. not yet deployed to a CDN, blocked,
|
|
562
|
+
404s), elements stay visible instead of being permanently stuck at
|
|
563
|
+
opacity:0 with nothing left to ever reveal them. */
|
|
961
564
|
html.ahd-anim-ready [data-animate-type]:not([data-animate-trigger="load"]):not(.ahd-anim-in) {
|
|
962
565
|
opacity: 0;
|
|
963
566
|
}
|
|
@@ -967,7 +570,7 @@ html.ahd-anim-ready [data-animate-type]:not([data-animate-trigger="load"]):not(.
|
|
|
967
570
|
animation-fill-mode: both;
|
|
968
571
|
animation-timing-function: ease-out;
|
|
969
572
|
}
|
|
970
|
-
`.trim(),
|
|
573
|
+
`.trim(),Rk=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,>~+])\s*/g,"$1").replace(/\s+/g," ").replace(/;}/g,"}").trim(),Nk=(e,t=!1)=>Rk(`
|
|
971
574
|
|
|
972
575
|
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css');
|
|
973
576
|
|
|
@@ -1046,20 +649,17 @@ ${t?`.ahd-page-container {
|
|
|
1046
649
|
font-family: Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif;
|
|
1047
650
|
font-size: 16px;
|
|
1048
651
|
line-height: 1.5;
|
|
652
|
+
/* Baseline text color every page inherits. The "all: initial" above resets
|
|
653
|
+
inherited color, so this cannot be overridden from an ancestor — it has to
|
|
654
|
+
carry its own dark value. The plain declaration first keeps browsers
|
|
655
|
+
without light-dark() support rendering exactly as before. */
|
|
1049
656
|
color: #262626;
|
|
657
|
+
color: light-dark(#262626, #cccccc);
|
|
1050
658
|
-webkit-text-size-adjust: 100%;
|
|
1051
659
|
-moz-text-size-adjust: 100%;
|
|
1052
660
|
-ms-text-size-adjust: 100%;
|
|
1053
661
|
text-size-adjust: 100%;
|
|
1054
662
|
width: 100%;
|
|
1055
|
-
|
|
1056
|
-
--ahd-scale-base: 1200;
|
|
1057
|
-
|
|
1058
|
-
--ahd-space-xs: clamp(4px, 1vw, 8px);
|
|
1059
|
-
--ahd-space-sm: clamp(8px, 2vw, 16px);
|
|
1060
|
-
--ahd-space-md: clamp(12px, 3vw, 24px);
|
|
1061
|
-
--ahd-space-lg: clamp(16px, 4vw, 40px);
|
|
1062
|
-
--ahd-space-xl: clamp(24px, 5vw, 64px);
|
|
1063
663
|
}
|
|
1064
664
|
|
|
1065
665
|
.ahd-page-root *,
|
|
@@ -1123,22 +723,16 @@ ${t?`.ahd-page-container {
|
|
|
1123
723
|
the element still wins over it. */
|
|
1124
724
|
.ahd-page-root .container-block-inner {
|
|
1125
725
|
background-color: #ffffff;
|
|
726
|
+
background-color: light-dark(#ffffff, #121212);
|
|
1126
727
|
}
|
|
1127
728
|
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
@media (max-width:
|
|
729
|
+
/* Padding is authored per device (Desktop/Tablet/Mobile tabs) and published as
|
|
730
|
+
scoped @media CSS per block — see Reader/responsiveCss.ts. These breakpoints
|
|
731
|
+
therefore carry only overflow/sizing guards; they must NOT clamp padding, or
|
|
732
|
+
they would override the value the author explicitly set for the device. */
|
|
733
|
+
@media (max-width: ${Pe}px) {
|
|
1133
734
|
.ahd-page-root .container-block {
|
|
1134
735
|
max-width: 100% !important;
|
|
1135
|
-
padding: clamp(8px, 1.8vw, 16px) !important;
|
|
1136
|
-
}
|
|
1137
|
-
.ahd-page-root .columns-container {
|
|
1138
|
-
padding-left: clamp(12px, 3vw, var(--cc-pl, 0px)) !important;
|
|
1139
|
-
padding-right: clamp(12px, 3vw, var(--cc-pr, 0px)) !important;
|
|
1140
|
-
padding-top: clamp(12px, 3vw, var(--cc-pt, 0px)) !important;
|
|
1141
|
-
padding-bottom: clamp(12px, 3vw, var(--cc-pb, 0px)) !important;
|
|
1142
736
|
}
|
|
1143
737
|
.ahd-page-root .text-block,
|
|
1144
738
|
.ahd-page-root .quill-block,
|
|
@@ -1148,9 +742,6 @@ ${t?`.ahd-page-container {
|
|
|
1148
742
|
word-break: break-word !important;
|
|
1149
743
|
overflow-wrap: break-word !important;
|
|
1150
744
|
}
|
|
1151
|
-
.ahd-page-root .image-block {
|
|
1152
|
-
padding: clamp(6px, 1.5vw, 14px) !important;
|
|
1153
|
-
}
|
|
1154
745
|
/* Only clamp images; do NOT force width:100% — the Image block manages its own
|
|
1155
746
|
width (Fill = 100%, Fixed = its per-device px via an inline <style>). Forcing
|
|
1156
747
|
100% defeated that and broke fixed-width images, especially in a marquee. */
|
|
@@ -1160,19 +751,12 @@ ${t?`.ahd-page-container {
|
|
|
1160
751
|
}
|
|
1161
752
|
/* Logo block — never stretch. Width is emitted per-instance by the block
|
|
1162
753
|
itself (scoped @media on its own class, same as Image); no width here, or
|
|
1163
|
-
the two would fight at different breakpoints. Overflow guard only.
|
|
1164
|
-
(The previous var(--ahd-logo-w-tablet, ..., auto) rule referred to CSS
|
|
1165
|
-
custom properties that nothing set — the auto fallback then had higher
|
|
1166
|
-
specificity than the block's .ahd-logo-N img { width: Npx } scoped rule
|
|
1167
|
-
and stretched every logo to its intrinsic image size.) */
|
|
754
|
+
the two would fight at different breakpoints. Overflow guard only. */
|
|
1168
755
|
.ahd-page-root .logo-block img {
|
|
1169
756
|
max-width: 100% !important;
|
|
1170
757
|
height: auto !important;
|
|
1171
758
|
display: inline-block !important;
|
|
1172
759
|
}
|
|
1173
|
-
.ahd-page-root .video-block {
|
|
1174
|
-
padding: clamp(6px, 1.5vw, 14px) !important;
|
|
1175
|
-
}
|
|
1176
760
|
.ahd-page-root .video-block iframe {
|
|
1177
761
|
max-width: 100% !important;
|
|
1178
762
|
width: 100% !important;
|
|
@@ -1194,46 +778,13 @@ ${t?`.ahd-page-container {
|
|
|
1194
778
|
}
|
|
1195
779
|
|
|
1196
780
|
|
|
1197
|
-
@media (max-width:
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
padding-right: clamp(8px, 4vw, var(--cc-pr, 0px)) !important;
|
|
1205
|
-
padding-top: clamp(8px, 4vw, var(--cc-pt, 0px)) !important;
|
|
1206
|
-
padding-bottom: clamp(8px, 4vw, var(--cc-pb, 0px)) !important;
|
|
1207
|
-
}
|
|
1208
|
-
.ahd-page-root .image-block,
|
|
1209
|
-
.ahd-page-root .video-block {
|
|
1210
|
-
padding: clamp(4px, 1.2vw, 10px) !important;
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
@media (max-width: 600px) {
|
|
1216
|
-
.ahd-page-root .page-pilot-layout-content {
|
|
1217
|
-
padding: 0px !important;
|
|
1218
|
-
}
|
|
1219
|
-
.ahd-page-root .container-block {
|
|
1220
|
-
padding: clamp(4px, 2vw, 10px) !important;
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
.ahd-page-root .columns-container {
|
|
1224
|
-
padding-left: clamp(4px, 2vw, var(--cc-pl, 0px)) !important;
|
|
1225
|
-
padding-right: clamp(4px, 2vw, var(--cc-pr, 0px)) !important;
|
|
1226
|
-
padding-top: clamp(4px, 2vw, var(--cc-pt, 0px)) !important;
|
|
1227
|
-
padding-bottom: clamp(4px, 2vw, var(--cc-pb, 0px)) !important;
|
|
1228
|
-
}
|
|
1229
|
-
.ahd-page-root .columns-container .container-block,
|
|
1230
|
-
.ahd-page-root .columns-container .text-block,
|
|
1231
|
-
.ahd-page-root .columns-container .heading-block,
|
|
1232
|
-
.ahd-page-root .columns-container .button-block,
|
|
1233
|
-
.ahd-page-root .columns-container .reader-block-wrapper {
|
|
1234
|
-
padding-left: 0 !important;
|
|
1235
|
-
padding-right: 0 !important;
|
|
1236
|
-
}
|
|
781
|
+
@media (max-width: ${Oe}px) {
|
|
782
|
+
/* The page's own padding is authored per device on the Style tab (see
|
|
783
|
+
EmailLayout's emailLayoutResponsive.ts, which emits scoped @media CSS for it)
|
|
784
|
+
and must NOT be force-zeroed here — a blanket rule at this selector beat the
|
|
785
|
+
author's mobile padding and is why page padding never took effect on small
|
|
786
|
+
screens. Embedded FAQ / AppBanner still zero it, but those carve-outs are
|
|
787
|
+
scoped to their own block in pagePilotStyles.css. */
|
|
1237
788
|
.ahd-page-root .columns-container table,
|
|
1238
789
|
.ahd-page-root .columns-container tbody,
|
|
1239
790
|
.ahd-page-root .columns-container tr,
|
|
@@ -1243,17 +794,12 @@ ${t?`.ahd-page-container {
|
|
|
1243
794
|
}
|
|
1244
795
|
.ahd-page-root .columns-container table { table-layout: auto !important; }
|
|
1245
796
|
.ahd-page-root .columns-container td {
|
|
1246
|
-
padding-left: 0 !important;
|
|
1247
|
-
padding-right: 0 !important;
|
|
1248
797
|
vertical-align: top !important;
|
|
1249
798
|
}
|
|
1250
799
|
.ahd-page-root .columns-container td + td {
|
|
1251
800
|
margin-top: var(--columns-gap, clamp(8px, 2vw, 16px)) !important;
|
|
1252
801
|
}
|
|
1253
802
|
|
|
1254
|
-
.ahd-page-root .grid-container {
|
|
1255
|
-
padding: 0 !important;
|
|
1256
|
-
}
|
|
1257
803
|
.ahd-page-root .grid-container table,
|
|
1258
804
|
.ahd-page-root .grid-container tbody,
|
|
1259
805
|
.ahd-page-root .grid-container tr,
|
|
@@ -1263,15 +809,9 @@ ${t?`.ahd-page-container {
|
|
|
1263
809
|
}
|
|
1264
810
|
.ahd-page-root .grid-container table { table-layout: auto !important; }
|
|
1265
811
|
.ahd-page-root .grid-container td {
|
|
1266
|
-
padding-left: 0 !important;
|
|
1267
|
-
padding-right: 0 !important;
|
|
1268
812
|
vertical-align: top !important;
|
|
1269
813
|
}
|
|
1270
814
|
|
|
1271
|
-
.ahd-page-root .image-block,
|
|
1272
|
-
.ahd-page-root .video-block {
|
|
1273
|
-
padding: clamp(2px, 1vw, 8px) !important;
|
|
1274
|
-
}
|
|
1275
815
|
.ahd-page-root .video-block iframe,
|
|
1276
816
|
.ahd-page-root .video-block video {
|
|
1277
817
|
width: 100% !important;
|
|
@@ -1282,9 +822,7 @@ ${t?`.ahd-page-container {
|
|
|
1282
822
|
max-width: 100% !important;
|
|
1283
823
|
height: auto !important;
|
|
1284
824
|
}
|
|
1285
|
-
/* Logo block (mobile): width comes from the block's own scoped @media CSS.
|
|
1286
|
-
See the tablet-breakpoint comment above — no width here or it clobbers
|
|
1287
|
-
the per-instance width the block emits. */
|
|
825
|
+
/* Logo block (mobile): width comes from the block's own scoped @media CSS. */
|
|
1288
826
|
.ahd-page-root .logo-block img {
|
|
1289
827
|
max-width: 100% !important;
|
|
1290
828
|
height: auto !important;
|
|
@@ -1294,224 +832,39 @@ ${t?`.ahd-page-container {
|
|
|
1294
832
|
}
|
|
1295
833
|
|
|
1296
834
|
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
padding-right: var(--text-pr, 0px);
|
|
1300
|
-
padding-bottom: var(--text-pb, 0px);
|
|
1301
|
-
padding-left: var(--text-pl, 0px);
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
@media (max-width: 1024px) {
|
|
1305
|
-
.ahd-page-root .text-block {
|
|
1306
|
-
padding-right: clamp(16px, 4vw, var(--text-pr, 0px)) !important;
|
|
1307
|
-
padding-left: clamp(16px, 4vw, var(--text-pl, 0px)) !important;
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
@media (max-width: 768px) {
|
|
1312
|
-
.ahd-page-root .text-block {
|
|
1313
|
-
padding-right: clamp(12px, 3vw, var(--text-pr, 0px)) !important;
|
|
1314
|
-
padding-left: clamp(12px, 3vw, var(--text-pl, 0px)) !important;
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
@media (max-width: 600px) {
|
|
1319
|
-
.ahd-page-root .text-block {
|
|
1320
|
-
padding-right: clamp(8px, 2vw, var(--text-pr, 0px)) !important;
|
|
1321
|
-
padding-left: clamp(8px, 2vw, var(--text-pl, 0px)) !important;
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
@container ahd-page (max-width: 1024px) {
|
|
1326
|
-
.ahd-page-root .text-block {
|
|
1327
|
-
padding-right: clamp(16px, 4vw, var(--text-pr, 0px)) !important;
|
|
1328
|
-
padding-left: clamp(16px, 4vw, var(--text-pl, 0px)) !important;
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
@container ahd-page (max-width: 768px) {
|
|
1333
|
-
.ahd-page-root .text-block {
|
|
1334
|
-
padding-right: clamp(12px, 3vw, var(--text-pr, 0px)) !important;
|
|
1335
|
-
padding-left: clamp(12px, 3vw, var(--text-pl, 0px)) !important;
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
@container ahd-page (max-width: 600px) {
|
|
1340
|
-
.ahd-page-root .text-block {
|
|
1341
|
-
padding-right: clamp(8px, 2vw, var(--text-pr, 0px)) !important;
|
|
1342
|
-
padding-left: clamp(8px, 2vw, var(--text-pl, 0px)) !important;
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
.ahd-page-root .flex-columns-block {
|
|
1347
|
-
padding-top: var(--fc-pt, 0px);
|
|
1348
|
-
padding-right: var(--fc-pr, 0px);
|
|
1349
|
-
padding-bottom: var(--fc-pb, 0px);
|
|
1350
|
-
padding-left: var(--fc-pl, 0px);
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
@media (max-width: 1024px) {
|
|
1354
|
-
.ahd-page-root .flex-columns-block {
|
|
1355
|
-
padding-right: clamp(16px, 4vw, var(--fc-pr, 0px)) !important;
|
|
1356
|
-
padding-left: clamp(16px, 4vw, var(--fc-pl, 0px)) !important;
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
@media (max-width: 768px) {
|
|
1361
|
-
.ahd-page-root .flex-columns-block {
|
|
1362
|
-
padding-right: clamp(12px, 3vw, var(--fc-pr, 0px)) !important;
|
|
1363
|
-
padding-left: clamp(12px, 3vw, var(--fc-pl, 0px)) !important;
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
@media (max-width: 600px) {
|
|
1368
|
-
.ahd-page-root .flex-columns-block {
|
|
1369
|
-
padding-right: clamp(8px, 2vw, var(--fc-pr, 0px)) !important;
|
|
1370
|
-
padding-left: clamp(8px, 2vw, var(--fc-pl, 0px)) !important;
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
@container ahd-page (max-width: 1024px) {
|
|
1375
|
-
.ahd-page-root .flex-columns-block {
|
|
1376
|
-
padding-right: clamp(16px, 4vw, var(--fc-pr, 0px)) !important;
|
|
1377
|
-
padding-left: clamp(16px, 4vw, var(--fc-pl, 0px)) !important;
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
@container ahd-page (max-width: 768px) {
|
|
1382
|
-
.ahd-page-root .flex-columns-block {
|
|
1383
|
-
padding-right: clamp(12px, 3vw, var(--fc-pr, 0px)) !important;
|
|
1384
|
-
padding-left: clamp(12px, 3vw, var(--fc-pl, 0px)) !important;
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
@container ahd-page (max-width: 600px) {
|
|
1389
|
-
.ahd-page-root .flex-columns-block {
|
|
1390
|
-
padding-right: clamp(8px, 2vw, var(--fc-pr, 0px)) !important;
|
|
1391
|
-
padding-left: clamp(8px, 2vw, var(--fc-pl, 0px)) !important;
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
.ahd-page-root .faq-picker-block {
|
|
1396
|
-
padding-top: var(--faq-pt, 0px);
|
|
1397
|
-
padding-right: var(--faq-pr, 0px);
|
|
1398
|
-
padding-bottom: var(--faq-pb, 0px);
|
|
1399
|
-
padding-left: var(--faq-pl, 0px);
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
@media (max-width: 1024px) {
|
|
1403
|
-
.ahd-page-root .page-pilot-layout-content:has(.faq-picker-block) {
|
|
1404
|
-
padding: 0 !important;
|
|
1405
|
-
}
|
|
1406
|
-
.ahd-page-root .faq-picker-block .page-pilot-layout-content {
|
|
1407
|
-
padding: 0 !important;
|
|
1408
|
-
}
|
|
1409
|
-
.ahd-page-root .faq-picker-block {
|
|
1410
|
-
padding-top: clamp(0px, calc(var(--faq-pt, 0px) * 0.75), var(--faq-pt, 0px)) !important;
|
|
1411
|
-
padding-right: clamp(0px, calc(var(--faq-pr, 0px) * 0.75), var(--faq-pr, 0px)) !important;
|
|
1412
|
-
padding-bottom: clamp(0px, calc(var(--faq-pb, 0px) * 0.75), var(--faq-pb, 0px)) !important;
|
|
1413
|
-
padding-left: clamp(0px, calc(var(--faq-pl, 0px) * 0.75), var(--faq-pl, 0px)) !important;
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
@media (max-width: 600px) {
|
|
1418
|
-
.ahd-page-root .page-pilot-layout-content:has(.faq-picker-block) {
|
|
1419
|
-
padding: 0 !important;
|
|
1420
|
-
}
|
|
1421
|
-
.ahd-page-root .faq-picker-block .page-pilot-layout-content {
|
|
1422
|
-
padding: 0 !important;
|
|
1423
|
-
}
|
|
1424
|
-
.ahd-page-root .faq-picker-block {
|
|
1425
|
-
padding-top: clamp(0px, calc(var(--faq-pt, 0px) * 0.5), var(--faq-pt, 0px)) !important;
|
|
1426
|
-
padding-right: 0px !important;
|
|
1427
|
-
padding-bottom: clamp(0px, calc(var(--faq-pb, 0px) * 0.5), var(--faq-pb, 0px)) !important;
|
|
1428
|
-
padding-left: 0px !important;
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
835
|
+
/* Padding is set inline by each block from its own (per-device) style, so there
|
|
836
|
+
are no var(--...-p...) padding rules here — those duplicated the inline value. */
|
|
1431
837
|
|
|
1432
|
-
|
|
1433
|
-
|
|
838
|
+
/* Layout-content zeroing only — the block's OWN padding is authored per device
|
|
839
|
+
and must not be clamped here. */
|
|
840
|
+
@media (max-width: ${Pe}px) {
|
|
841
|
+
.ahd-page-root .email-layout-content:has(.faq-picker-block) {
|
|
1434
842
|
padding: 0 !important;
|
|
1435
843
|
}
|
|
1436
|
-
.ahd-page-root .faq-picker-block {
|
|
1437
|
-
padding-top: clamp(0px, calc(var(--faq-pt, 0px) * 0.75), var(--faq-pt, 0px)) !important;
|
|
1438
|
-
padding-right: clamp(0px, calc(var(--faq-pr, 0px) * 0.75), var(--faq-pr, 0px)) !important;
|
|
1439
|
-
padding-bottom: clamp(0px, calc(var(--faq-pb, 0px) * 0.75), var(--faq-pb, 0px)) !important;
|
|
1440
|
-
padding-left: clamp(0px, calc(var(--faq-pl, 0px) * 0.75), var(--faq-pl, 0px)) !important;
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
@container ahd-page (max-width: 600px) {
|
|
1445
|
-
.ahd-page-root .page-pilot-layout-content:has(.faq-picker-block) {
|
|
844
|
+
.ahd-page-root .faq-picker-block .email-layout-content {
|
|
1446
845
|
padding: 0 !important;
|
|
1447
846
|
}
|
|
1448
|
-
.ahd-page-root .faq-picker-block {
|
|
1449
|
-
padding-top: clamp(0px, calc(var(--faq-pt, 0px) * 0.5), var(--faq-pt, 0px)) !important;
|
|
1450
|
-
padding-right: 0px !important;
|
|
1451
|
-
padding-bottom: clamp(0px, calc(var(--faq-pb, 0px) * 0.5), var(--faq-pb, 0px)) !important;
|
|
1452
|
-
padding-left: 0px !important;
|
|
1453
|
-
}
|
|
1454
847
|
}
|
|
1455
848
|
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
padding-right: var(--app-banner-pr, 0px);
|
|
1459
|
-
padding-bottom: var(--app-banner-pb, 0px);
|
|
1460
|
-
padding-left: var(--app-banner-pl, 0px);
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
@media (max-width: 1024px) {
|
|
1464
|
-
.ahd-page-root .page-pilot-layout-content:has(.app-banner-picker-block) {
|
|
849
|
+
@container ahd-page (max-width: ${Pe}px) {
|
|
850
|
+
.ahd-page-root .email-layout-content:has(.faq-picker-block) {
|
|
1465
851
|
padding: 0 !important;
|
|
1466
852
|
}
|
|
1467
|
-
.ahd-page-root .app-banner-picker-block .page-pilot-layout-content {
|
|
1468
|
-
padding: 0 !important;
|
|
1469
|
-
}
|
|
1470
|
-
.ahd-page-root .app-banner-picker-block {
|
|
1471
|
-
padding-top: clamp(0px, calc(var(--app-banner-pt, 0px) * 0.75), var(--app-banner-pt, 0px)) !important;
|
|
1472
|
-
padding-right: clamp(0px, calc(var(--app-banner-pr, 0px) * 0.75), var(--app-banner-pr, 0px)) !important;
|
|
1473
|
-
padding-bottom: clamp(0px, calc(var(--app-banner-pb, 0px) * 0.75), var(--app-banner-pb, 0px)) !important;
|
|
1474
|
-
padding-left: clamp(0px, calc(var(--app-banner-pl, 0px) * 0.75), var(--app-banner-pl, 0px)) !important;
|
|
1475
|
-
}
|
|
1476
853
|
}
|
|
1477
854
|
|
|
1478
|
-
@media (max-width:
|
|
1479
|
-
.ahd-page-root .
|
|
855
|
+
@media (max-width: ${Pe}px) {
|
|
856
|
+
.ahd-page-root .email-layout-content:has(.app-banner-picker-block) {
|
|
1480
857
|
padding: 0 !important;
|
|
1481
858
|
}
|
|
1482
|
-
.ahd-page-root .app-banner-picker-block .
|
|
859
|
+
.ahd-page-root .app-banner-picker-block .email-layout-content {
|
|
1483
860
|
padding: 0 !important;
|
|
1484
861
|
}
|
|
1485
|
-
.ahd-page-root .app-banner-picker-block {
|
|
1486
|
-
padding-top: clamp(0px, calc(var(--app-banner-pt, 0px) * 0.5), var(--app-banner-pt, 0px)) !important;
|
|
1487
|
-
padding-right: 0px !important;
|
|
1488
|
-
padding-bottom: clamp(0px, calc(var(--app-banner-pb, 0px) * 0.5), var(--app-banner-pb, 0px)) !important;
|
|
1489
|
-
padding-left: 0px !important;
|
|
1490
|
-
}
|
|
1491
862
|
}
|
|
1492
863
|
|
|
1493
|
-
@container ahd-page (max-width:
|
|
1494
|
-
.ahd-page-root .
|
|
864
|
+
@container ahd-page (max-width: ${Pe}px) {
|
|
865
|
+
.ahd-page-root .email-layout-content:has(.app-banner-picker-block) {
|
|
1495
866
|
padding: 0 !important;
|
|
1496
867
|
}
|
|
1497
|
-
.ahd-page-root .app-banner-picker-block {
|
|
1498
|
-
padding-top: clamp(0px, calc(var(--app-banner-pt, 0px) * 0.75), var(--app-banner-pt, 0px)) !important;
|
|
1499
|
-
padding-right: clamp(0px, calc(var(--app-banner-pr, 0px) * 0.75), var(--app-banner-pr, 0px)) !important;
|
|
1500
|
-
padding-bottom: clamp(0px, calc(var(--app-banner-pb, 0px) * 0.75), var(--app-banner-pb, 0px)) !important;
|
|
1501
|
-
padding-left: clamp(0px, calc(var(--app-banner-pl, 0px) * 0.75), var(--app-banner-pl, 0px)) !important;
|
|
1502
|
-
}
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
@container ahd-page (max-width: 600px) {
|
|
1506
|
-
.ahd-page-root .page-pilot-layout-content:has(.app-banner-picker-block) {
|
|
1507
|
-
padding: 0 !important;
|
|
1508
|
-
}
|
|
1509
|
-
.ahd-page-root .app-banner-picker-block {
|
|
1510
|
-
padding-top: clamp(0px, calc(var(--app-banner-pt, 0px) * 0.5), var(--app-banner-pt, 0px)) !important;
|
|
1511
|
-
padding-right: 0px !important;
|
|
1512
|
-
padding-bottom: clamp(0px, calc(var(--app-banner-pb, 0px) * 0.5), var(--app-banner-pb, 0px)) !important;
|
|
1513
|
-
padding-left: 0px !important;
|
|
1514
|
-
}
|
|
1515
868
|
}
|
|
1516
869
|
|
|
1517
870
|
.ahd-page-root .gc-tooltip * {
|
|
@@ -1520,16 +873,9 @@ ${t?`.ahd-page-container {
|
|
|
1520
873
|
box-sizing: border-box;
|
|
1521
874
|
}
|
|
1522
875
|
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
width: 100%;
|
|
1527
|
-
box-sizing: border-box;
|
|
1528
|
-
}
|
|
1529
|
-
.ahd-page-root .flex-columns-block .fc-col {
|
|
1530
|
-
min-width: 0;
|
|
1531
|
-
box-sizing: border-box;
|
|
1532
|
-
}
|
|
876
|
+
/* FlexColumns is fully block-owned: row/column sizing is inline (buildWrapperStyle,
|
|
877
|
+
buildColumnStyle) and every responsive + descendant rule is emitted per-instance
|
|
878
|
+
by FlexColumnsReader (see buildResponsiveRowCss). Nothing for it here. */
|
|
1533
879
|
|
|
1534
880
|
.ahd-page-root .grid-block .grid-block-inner {
|
|
1535
881
|
width: 100%;
|
|
@@ -1539,43 +885,11 @@ ${t?`.ahd-page-container {
|
|
|
1539
885
|
min-width: 0;
|
|
1540
886
|
box-sizing: border-box;
|
|
1541
887
|
}
|
|
1542
|
-
.ahd-page-root .grid-block {
|
|
1543
|
-
padding: var(--grid-pt, 0px) var(--grid-pr, 0px) var(--grid-pb, 0px) var(--grid-pl, 0px);
|
|
1544
|
-
}
|
|
1545
888
|
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
}
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
@container ahd-page (max-width: 1024px) {
|
|
1554
|
-
.ahd-page-root .grid-block {
|
|
1555
|
-
padding-left: clamp(12px, 3vw, var(--grid-pl, 0px)) !important;
|
|
1556
|
-
padding-right: clamp(12px, 3vw, var(--grid-pr, 0px)) !important;
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
@media (max-width: 768px) {
|
|
1561
|
-
.ahd-page-root .grid-block .grid-block-inner {
|
|
1562
|
-
grid-template-columns: 1fr !important;
|
|
1563
|
-
}
|
|
1564
|
-
.ahd-page-root .grid-block {
|
|
1565
|
-
padding-left: clamp(8px, 4vw, var(--grid-pl, 0px)) !important;
|
|
1566
|
-
padding-right: clamp(8px, 4vw, var(--grid-pr, 0px)) !important;
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
@container ahd-page (max-width: 768px) {
|
|
1571
|
-
.ahd-page-root .grid-block .grid-block-inner {
|
|
1572
|
-
grid-template-columns: 1fr !important;
|
|
1573
|
-
}
|
|
1574
|
-
.ahd-page-root .grid-block {
|
|
1575
|
-
padding-left: clamp(8px, 4vw, var(--grid-pl, 0px)) !important;
|
|
1576
|
-
padding-right: clamp(8px, 4vw, var(--grid-pr, 0px)) !important;
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
889
|
+
/* Grid columns are self-contained: each grid bakes its own per-instance <style>
|
|
890
|
+
(scoped by an .ahd-grid-N class) carrying desktop/tablet/mobile column rules,
|
|
891
|
+
so columns render correctly in every module — not just Page. Padding is
|
|
892
|
+
authored per device and must not be clamped here. */
|
|
1579
893
|
|
|
1580
894
|
.ahd-page-root .columns-container table[style*="table-layout:auto"] td,
|
|
1581
895
|
.ahd-page-root .columns-container table[style*="table-layout: auto"] td {
|
|
@@ -1606,222 +920,41 @@ ${t?`.ahd-page-container {
|
|
|
1606
920
|
display: inline-block !important;
|
|
1607
921
|
}
|
|
1608
922
|
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
}
|
|
1614
|
-
.ahd-page-root .button-group-stack-mobile > * {
|
|
1615
|
-
width: 100% !important;
|
|
1616
|
-
}
|
|
1617
|
-
.ahd-page-root .button-group-stack-mobile .button-block button,
|
|
1618
|
-
.ahd-page-root .button-group-stack-mobile .button-block a {
|
|
1619
|
-
width: 100% !important;
|
|
1620
|
-
display: block !important;
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
@container ahd-page (max-width: 600px) {
|
|
1624
|
-
.ahd-page-root .button-group-stack-mobile {
|
|
1625
|
-
flex-direction: column !important;
|
|
1626
|
-
align-items: stretch !important;
|
|
1627
|
-
}
|
|
1628
|
-
.ahd-page-root .button-group-stack-mobile > * {
|
|
1629
|
-
width: 100% !important;
|
|
1630
|
-
}
|
|
1631
|
-
.ahd-page-root .button-group-stack-mobile .button-block button,
|
|
1632
|
-
.ahd-page-root .button-group-stack-mobile .button-block a {
|
|
1633
|
-
width: 100% !important;
|
|
1634
|
-
display: block !important;
|
|
1635
|
-
}
|
|
1636
|
-
}
|
|
923
|
+
/* The old .button-group-stack-mobile rules lived here. They force-stacked every
|
|
924
|
+
ButtonGroup at 600px (a breakpoint that didn't even match BREAKPOINT_MOBILE_MAX),
|
|
925
|
+
overriding the author's per-device Direction choice. ButtonGroup now emits its
|
|
926
|
+
own scoped @media rules for direction + alignment, so this is gone. */
|
|
1637
927
|
|
|
1638
928
|
table[style*="maxHeight"] {
|
|
1639
929
|
display: table !important;
|
|
1640
930
|
table-layout: fixed !important;
|
|
1641
931
|
}
|
|
1642
932
|
|
|
1643
|
-
|
|
1644
|
-
position: relative;
|
|
1645
|
-
}
|
|
1646
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle {
|
|
1647
|
-
position: absolute !important;
|
|
1648
|
-
opacity: 0 !important;
|
|
1649
|
-
pointer-events: none !important;
|
|
1650
|
-
width: 0 !important;
|
|
1651
|
-
height: 0 !important;
|
|
1652
|
-
margin: 0 !important;
|
|
1653
|
-
padding: 0 !important;
|
|
1654
|
-
border: 0 !important;
|
|
1655
|
-
overflow: hidden !important;
|
|
1656
|
-
clip: rect(0 0 0 0) !important;
|
|
1657
|
-
}
|
|
1658
|
-
.ahd-page-root .ahd-menu .ahd-menu-burger {
|
|
1659
|
-
display: none;
|
|
1660
|
-
width: 20px;
|
|
1661
|
-
height: 16px;
|
|
1662
|
-
cursor: pointer;
|
|
1663
|
-
flex-direction: column;
|
|
1664
|
-
justify-content: space-between;
|
|
1665
|
-
padding: 0;
|
|
1666
|
-
margin: 8px 12px;
|
|
1667
|
-
background: transparent;
|
|
1668
|
-
border: 0;
|
|
1669
|
-
}
|
|
1670
|
-
.ahd-page-root .ahd-menu .ahd-menu-burger > span {
|
|
1671
|
-
display: block;
|
|
1672
|
-
height: 2px;
|
|
1673
|
-
width: 100%;
|
|
1674
|
-
background: currentColor;
|
|
1675
|
-
border-radius: 2px;
|
|
1676
|
-
transition: transform 0.2s ease, opacity 0.2s ease;
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
@media (max-width: 768px) {
|
|
1680
|
-
.ahd-page-root .ahd-menu {
|
|
1681
|
-
flex-wrap: nowrap !important;
|
|
1682
|
-
align-items: center !important;
|
|
1683
|
-
min-height: 48px;
|
|
1684
|
-
position: relative;
|
|
1685
|
-
/* reset any user-set desktop blockPadding */
|
|
1686
|
-
padding: 8px 16px !important;
|
|
1687
|
-
}
|
|
1688
|
-
/* hide center (menu items) by default */
|
|
1689
|
-
.ahd-page-root .ahd-menu .ahd-menu-center {
|
|
1690
|
-
display: none !important;
|
|
1691
|
-
}
|
|
1692
|
-
/* start (logo) stays left, end (CTA) pushed to right with margin-left:auto */
|
|
1693
|
-
.ahd-page-root .ahd-menu .ahd-menu-start {
|
|
1694
|
-
flex: 0 0 auto !important;
|
|
1695
|
-
}
|
|
1696
|
-
.ahd-page-root .ahd-menu .ahd-menu-end {
|
|
1697
|
-
flex: 0 0 auto !important;
|
|
1698
|
-
margin-left: auto !important;
|
|
1699
|
-
}
|
|
1700
|
-
/* burger always on far right, sits flush after CTA */
|
|
1701
|
-
.ahd-page-root .ahd-menu .ahd-menu-burger {
|
|
1702
|
-
display: flex !important;
|
|
1703
|
-
margin-left: 0 !important;
|
|
1704
|
-
margin-right: 0 !important;
|
|
1705
|
-
z-index: 2;
|
|
1706
|
-
}
|
|
1707
|
-
/* when burger toggled: show center as absolute overlay dropdown */
|
|
1708
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-center {
|
|
1709
|
-
display: flex !important;
|
|
1710
|
-
flex-direction: column !important;
|
|
1711
|
-
position: absolute !important;
|
|
1712
|
-
top: 100% !important;
|
|
1713
|
-
left: 0 !important;
|
|
1714
|
-
right: 0 !important;
|
|
1715
|
-
z-index: 100;
|
|
1716
|
-
background: #fff;
|
|
1717
|
-
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
|
|
1718
|
-
width: 100% !important;
|
|
1719
|
-
}
|
|
1720
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-center .ahd-menu-list {
|
|
1721
|
-
flex-direction: column !important;
|
|
1722
|
-
width: 100% !important;
|
|
1723
|
-
gap: 0 !important;
|
|
1724
|
-
}
|
|
1725
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-center .ahd-menu-list > li {
|
|
1726
|
-
width: 100%;
|
|
1727
|
-
border-top: 1px solid rgba(0, 0, 0, 0.08);
|
|
1728
|
-
}
|
|
1729
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-center .ahd-menu-list > li > a {
|
|
1730
|
-
padding: 12px 16px !important;
|
|
1731
|
-
}
|
|
1732
|
-
/* animate burger → X */
|
|
1733
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-burger > span:nth-child(1) {
|
|
1734
|
-
transform: translateY(7px) rotate(45deg);
|
|
1735
|
-
}
|
|
1736
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-burger > span:nth-child(2) {
|
|
1737
|
-
opacity: 0;
|
|
1738
|
-
}
|
|
1739
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-burger > span:nth-child(3) {
|
|
1740
|
-
transform: translateY(-7px) rotate(-45deg);
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
933
|
+
${vc}
|
|
1743
934
|
|
|
1744
|
-
|
|
1745
|
-
.ahd-page-root .ahd-menu {
|
|
1746
|
-
flex-wrap: nowrap !important;
|
|
1747
|
-
align-items: center !important;
|
|
1748
|
-
min-height: 48px;
|
|
1749
|
-
position: relative;
|
|
1750
|
-
padding: 8px 16px !important;
|
|
1751
|
-
}
|
|
1752
|
-
.ahd-page-root .ahd-menu .ahd-menu-center {
|
|
1753
|
-
display: none !important;
|
|
1754
|
-
}
|
|
1755
|
-
.ahd-page-root .ahd-menu .ahd-menu-start {
|
|
1756
|
-
flex: 0 0 auto !important;
|
|
1757
|
-
}
|
|
1758
|
-
.ahd-page-root .ahd-menu .ahd-menu-end {
|
|
1759
|
-
flex: 0 0 auto !important;
|
|
1760
|
-
margin-left: auto !important;
|
|
1761
|
-
}
|
|
1762
|
-
.ahd-page-root .ahd-menu .ahd-menu-burger {
|
|
1763
|
-
display: flex !important;
|
|
1764
|
-
margin-left: 0 !important;
|
|
1765
|
-
margin-right: 0 !important;
|
|
1766
|
-
z-index: 2;
|
|
1767
|
-
}
|
|
1768
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-center {
|
|
1769
|
-
display: flex !important;
|
|
1770
|
-
flex-direction: column !important;
|
|
1771
|
-
position: absolute !important;
|
|
1772
|
-
top: 100% !important;
|
|
1773
|
-
left: 0 !important;
|
|
1774
|
-
right: 0 !important;
|
|
1775
|
-
z-index: 100;
|
|
1776
|
-
background: #fff;
|
|
1777
|
-
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
|
|
1778
|
-
width: 100% !important;
|
|
1779
|
-
}
|
|
1780
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-center .ahd-menu-list {
|
|
1781
|
-
flex-direction: column !important;
|
|
1782
|
-
width: 100% !important;
|
|
1783
|
-
gap: 0 !important;
|
|
1784
|
-
}
|
|
1785
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-center .ahd-menu-list > li {
|
|
1786
|
-
width: 100%;
|
|
1787
|
-
border-top: 1px solid rgba(0, 0, 0, 0.08);
|
|
1788
|
-
}
|
|
1789
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-center .ahd-menu-list > li > a {
|
|
1790
|
-
padding: 12px 16px !important;
|
|
1791
|
-
}
|
|
1792
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-burger > span:nth-child(1) {
|
|
1793
|
-
transform: translateY(7px) rotate(45deg);
|
|
1794
|
-
}
|
|
1795
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-burger > span:nth-child(2) {
|
|
1796
|
-
opacity: 0;
|
|
1797
|
-
}
|
|
1798
|
-
.ahd-page-root .ahd-menu .ahd-menu-toggle:checked ~ .ahd-menu-burger > span:nth-child(3) {
|
|
1799
|
-
transform: translateY(-7px) rotate(-45deg);
|
|
1800
|
-
}
|
|
1801
|
-
}
|
|
1802
|
-
`),uk=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Modern Sans", "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'}],dk={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]},hk=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},fk=`https://fonts.googleapis.com/css2?${Object.entries(dk).map(([e,t])=>`family=${hk(e,t)}`).join("&")}&display=swap`,Ys=uk.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Ys.map(e=>e.css);const pk=e=>e.replace(/"/g,'\\"');Ys.map(e=>{const t=pk(e.css);return`
|
|
935
|
+
`),Tk=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Modern Sans", "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'}],Ek={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]},Mk=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},Pk=`https://fonts.googleapis.com/css2?${Object.entries(Ek).map(([e,t])=>`family=${Mk(e,t)}`).join("&")}&display=swap`,Sc=Tk.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Sc.map(e=>e.css);const Ok=e=>e.replace(/"/g,'\\"');Sc.map(e=>{const t=Ok(e.css);return`
|
|
1803
936
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
|
|
1804
937
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
|
|
1805
938
|
content: '${e.label}';
|
|
1806
939
|
font-family: ${e.css};
|
|
1807
940
|
}`}).join(`
|
|
1808
|
-
`);const
|
|
941
|
+
`);const Lk=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(o,r,i)=>{t++;const a=String(i).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${r}>${a}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function za(e,{rootBlockId:t,seo:n,injectElementIds:o,minifyCss:r,lang:i,skipLink:a,accessibilityTools:l,includePageCSS:s,headHtml:c,bodyBottomHtml:u,isBanner:h,injectTabsScrollSyncScript:d=!0,injectCarouselScript:f=!0,injectPaginationScript:p=!0,injectFontAssets:b=!0,injectTimerScript:x=!0,injectAnimationScript:v=!0}){var ve;const S=((ve=e==null?void 0:e[t])==null?void 0:ve.data)??{};i??S.lang;const k=a??S.skipLink??void 0,w=l??S.accessibilityTools??void 0,C=Object.values(e??{}).some(K=>(K==null?void 0:K.type)==="SkipLink"),y=Object.values(e??{}).some(K=>(K==null?void 0:K.type)==="AccessibilityTools");!C&&(k==null||k.enabled);const _=!y&&!!(w!=null&&w.enabled),I=_?Ws(w):"",R=_?Zs(w):"",T=_?Vs():"",P=d&&pk(e),M=f&&bk(e),z=p&&xk(e),F=x&&vk(e),H=gk(e),V=v&&Rl(e),q=Rl(e),he=Bm(),ae=g.jsx(Fm,{value:he,children:g.jsxs("div",{style:{margin:0,padding:0},"data-ahd-tpl-root":"true",[wa]:Po,children:[s&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Nk(void 0,!1)}}),I&&g.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:vc}}),b&&g.jsx("link",{rel:"stylesheet",href:Pk}),g.jsx("style",{children:`.gc-tooltip * {
|
|
1809
942
|
margin: 0;
|
|
1810
943
|
padding: 0;
|
|
1811
944
|
box-sizing: border-box;
|
|
1812
945
|
}
|
|
1813
946
|
.gc-tooltip .gc-close { display: none !important; }
|
|
1814
|
-
.gc-tooltip .gc-copyright { display: none !important; }`}),g.jsx("style",{dangerouslySetInnerHTML:{__html:
|
|
1815
|
-
`);if(!o)return{html:a,sectionHtml:r,flushedSections:i};const l=e.find(
|
|
1816
|
-
<html lang="${
|
|
947
|
+
.gc-tooltip .gc-copyright { display: none !important; }`}),g.jsx("style",{dangerouslySetInnerHTML:{__html:_a}}),R&&g.jsx("div",{dangerouslySetInnerHTML:{__html:R}}),T&&g.jsx("script",{dangerouslySetInnerHTML:{__html:T}}),(()=>{const K=dk(e),L=hk(e),B=fk(e,t),Z=K?e[K]:null,W=L?e[L]:null,X=B?g.jsx(En,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!h,mainBlockId:B,hoistedSkipLinkId:K,hoistedA11yToolsId:L}):g.jsx("main",{id:"main-content",tabIndex:-1,children:g.jsx(En,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!h,hoistedSkipLinkId:K,hoistedA11yToolsId:L})});return g.jsxs(g.Fragment,{children:[Z&&g.jsx(Us,{...Z.data??{}}),h?X:g.jsx("div",{className:"ahd-page-root",children:X}),W&&g.jsx(qs,{...W.data??{}})]})})(),P&&g.jsx("script",{src:wk,defer:!0}),M&&g.jsx("script",{src:$k,defer:!0}),z&&g.jsx("script",{src:kk,defer:!0}),F&&g.jsx("script",{src:Ck,defer:!0}),H&&g.jsx("script",{src:_k,defer:!0}),V&&g.jsx("script",{src:Ak,defer:!0})]})}),pe=Tc.renderToStaticMarkup(ae),ee=he.css(Po)||Dm(Po),se=ee?pe.replace(/^(\s*<div\b[^>]*>)/,`$1<style>${ee}</style>`):pe;let fe=r?Lk(se):se;const Y=yk()+mk(),de=fe.lastIndexOf("</div>");return fe=de!==-1?fe.slice(0,de)+Y+fe.slice(de):fe+Y,c&&(fe=fe.replace("</head>",`${c}</head>`)),u&&(fe=fe.replace("</body>",`${u}</body>`)),fe}function Nl(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function zk(e,t={}){var r;if(!e)return"";const n=t.rootBlockId??"root",o=((r=e==null?void 0:e[n])==null?void 0:r.data)??{};try{return za(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang,skipLink:o.skipLink,accessibilityTools:o.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectAnimationScript:t.injectAnimationScript,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 br(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function jk(e,t={}){var v,S,k;const n=t.includeExternalSections??!0,o=t.wrapInDocumentShell??!0,r=[],i=e.map(w=>{var _;if(Nl(w))return n&&r.push(String((w==null?void 0:w.content)??"")),w;const C=(_=w==null?void 0:w.contentMetadata)==null?void 0:_.document;if(!C)return w!=null&&w.content&&r.push(String(w.content)),w;const y=zk(C,t);return y&&r.push(y),{...w,content:y,contentMetadata:{...w.contentMetadata??{},document:C}}}),a=r.join(`
|
|
948
|
+
`);if(!o)return{html:a,sectionHtml:r,flushedSections:i};const l=e.find(w=>!Nl(w)),s=((k=(S=(v=l==null?void 0:l.contentMetadata)==null?void 0:v.document)==null?void 0:S.root)==null?void 0:k.data)??{},c=t.lang||s.lang||"en",u=t.canvasColor||s.canvasColor||"#FFFFFF",h=t.fontFamily||(typeof s.fontFamily=="string"?s.fontFamily:"Inter, system-ui, sans-serif"),d=t.seoTitle?`<title>${br(t.seoTitle)}</title>`:"",f=t.seoDescription?`<meta name="description" content="${br(t.seoDescription)}" />`:"",p=t.extraHead??"",b=t.extraBodyBottom??"";return{html:`<!doctype html>
|
|
949
|
+
<html lang="${br(c)}">
|
|
1817
950
|
<head>
|
|
1818
951
|
<meta charset="utf-8" />
|
|
1819
952
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
1820
953
|
${d}
|
|
1821
|
-
${
|
|
954
|
+
${f}
|
|
1822
955
|
<style>
|
|
1823
956
|
html, body { margin: 0; padding: 0; }
|
|
1824
|
-
body { background: ${u}; font-family: ${
|
|
957
|
+
body { background: ${u}; font-family: ${h}; }
|
|
1825
958
|
* { box-sizing: border-box; }
|
|
1826
959
|
</style>
|
|
1827
960
|
${p}
|
|
@@ -1830,4 +963,4 @@ ${p}
|
|
|
1830
963
|
${a}
|
|
1831
964
|
${b}
|
|
1832
965
|
</body>
|
|
1833
|
-
</html>`,sectionHtml:r,flushedSections:i}}function xk(e){var i,a,l,s,c,u,f,d,h,p,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 o=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(o){const x=new Set,w=[];for(const v of o){const _=(u=(c=(s=(l=v==null?void 0:v.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:c.data)==null?void 0:u.formFields;if(Array.isArray(_))for(const S of _)!(S!=null&&S.id)||x.has(S.id)||(x.add(S.id),w.push(S))}if(w.length>0)return w}const r=(b=(p=(h=(d=(f=t==null?void 0:t.step)==null?void 0:f.contentMetadata)==null?void 0:d.document)==null?void 0:h.root)==null?void 0:p.data)==null?void 0:b.formFields;return Array.isArray(r)&&r.length>0?r:Array.isArray(e.formFields)?e.formFields:[]}function vk(e){var n,o,r,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(r=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&r.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 dl(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,o)=>n==null?n:n[o],e)}function ka(e,t){if(t){const n=dl(e,t);if(Array.isArray(n))return n;const o=ka(e);if(o){const r=o.map(i=>dl(i,t)).filter(i=>i&&typeof i=="object");if(r.length>0)return r}}if(Array.isArray(e))return e;if(e&&typeof e=="object"){for(const n of["data","rows","results","items","records"])if(Array.isArray(e[n]))return e[n]}return null}function wk(e,t){if(!t||t.length===0){const o={};for(const[r,i]of Object.entries(e))i!=null&&(o[r]=String(i));return o}const n={};for(const o of t){const r=e[o.id];r!=null&&r!==""&&(n[o.id]=String(r))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function Sk(e,t,n,o){if(typeof AbortController>"u")return n(e,t);const r=new AbortController,i=setTimeout(()=>r.abort(),o);try{return await n(e,{...t,signal:r.signal})}finally{clearTimeout(i)}}async function Ks(e,t={}){var f;const n=Array.isArray(e)?e:[],o=n.filter(d=>{var h,p;return((h=d==null?void 0:d.dataSource)==null?void 0:h.type)==="api"&&((p=d==null?void 0:d.dataSource)==null?void 0:p.apiUrl)});if(o.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const r=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!r){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const h of o)(f=t.onError)==null||f.call(t,h,d);return{fields:n,attempted:o.length,refreshed:0,errors:Object.fromEntries(o.map(h=>[h.id,d.message]))}}const i=t.timeoutMs??1e4,a={};let l=0;const s=await Promise.all(o.map(async d=>{var x;const{apiUrl:h,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const w=await Sk(h,{method:p,headers:{Accept:"application/json",...t.headers}},r,i);if(!w.ok)throw new Error(`GET ${h} → HTTP ${w.status}`);const v=await w.json(),_=ka(v,b);if(!_)throw new Error(`GET ${h} → response had no array of rows`);const S=_.map($=>wk($,d.itemFields));return l+=1,{id:d.id,value:S}}catch(w){const v=w instanceof Error?w:new Error(String(w));return a[d.id]=v.message,(x=t.onError)==null||x.call(t,d,v),null}}));if(l===0)return{fields:n,attempted:o.length,refreshed:0,errors:a};const c=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>c.has(d.id)?{...d,value:c.get(d.id)}:d),attempted:o.length,refreshed:l,errors:a}}async function Js(e,t={}){var o,r;const n=(r=(o=e==null?void 0:e.root)==null?void 0:o.data)==null?void 0:r.formFields;return Ks(Array.isArray(n)?n:[],t)}function kk(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function _k(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function $k(e){const t=e;return!!(t.templateId&&t.baseUrl)}function Ck(e){if(!e||typeof e!="object")return e;const t=va(e);return!t||t.length===0?e:wa(e,t)}async function hl(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=va(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let o=n,r=null;return t.refreshApiDataSources&&(r=await Js(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),o=r.fields),{document:wa(e,o),apiRefresh:r}}const Ak=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 yk(e){var o,r,i;const t=((o=e==null?void 0:e.data)==null?void 0:o.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:((r=e==null?void 0:e.data)==null?void 0:r.style)??{},hidden:(i=e==null?void 0:e.data)==null?void 0:i.hidden}}}function Xs(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[o,r]of Object.entries(e)){const i=r==null?void 0:r.type;i&&!Ak.has(i)?(n[o]=yk(r),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${o}" has unsupported type "${i}" — coerced to Text.`)):n[o]=r}return t?n:e}function _a(e,t){var a;if(!e)return"";const n=t.rootBlockId??"root",o=Ck(e),r=Xs(o),i=((a=r==null?void 0:r[n])==null?void 0:a.data)??{};return Sa(r,{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 $a(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 Ca(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Aa(e,t,n){const o=await n(e,t);if(!o.ok){const r=await o.text().catch(()=>"");return{ok:!1,body:null,status:o.status,text:r}}return{ok:!0,body:await o.json(),status:o.status,text:""}}async function Qs(e,t,n){var c;const{wrapInDocumentShell:o=!0,headHtml:r,bodyBottomHtml:i}=n,a=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(a.length===0){const{document:u}=await hl(((c=t==null?void 0:t.contentMetadata)==null?void 0:c.document)??e,n);return _a(u,n)}const l=await Promise.all(a.map(async u=>{var p;const f=(p=u==null?void 0:u.contentMetadata)==null?void 0:p.document;if(!f)return u;const{document:d}=await hl(f,n),h=Xs(d);return{...u,contentMetadata:{...u.contentMetadata??{},document:h}}})),{html:s}=bk(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:o,seoTitle:(t==null?void 0:t.metaTitle)??(t==null?void 0:t.title)??(t==null?void 0:t.name),seoDescription:t==null?void 0:t.metaDescription,lang:n.lang??(t==null?void 0:t.lang),extraHead:r??(t==null?void 0:t.head)??"",extraBodyBottom:i??(t==null?void 0:t.bodyBottom)??""});return s}async function Ik(e,t){const{baseUrl:n,tenantId:o,pageId:r}=t,a=`${n.replace(/\/+$/,"")}/tenant/${o}/page/${r}`,l=$a(t),s=await Aa(a,{method:"GET",headers:Ca(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${a} → ${s.status}${s.text?`: ${s.text}`:""}`);return Qs(e,s.body,{...t,fetchFn:l})}async function Rk(e,t){var d;const{baseUrl:n,tenantId:o,pagePath:r,cache:i=!1,update:a=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${o}/pagebypath/${encodeURIComponent(r)}?cache=${i}&update=${a}`,c=$a(t),u=await Aa(s,{method:"GET",headers:Ca(t)},c);if(!u.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${u.status}${u.text?`: ${u.text}`:""}`);const f=((d=u.body)==null?void 0:d.payload)??u.body;return Qs(e,f,{...t,fetchFn:c})}async function Ek(e){const{baseUrl:t,tenantId:n,templateId:o,isGlobal:r=!1}=e,i=t.replace(/\/+$/,""),a=$a(e),l=r?`${i}/global-template/${o}`:`${i}/tenant/${n}/template/${o}`,s=r?{"Content-Type":"application/json"}:Ca(e),c=await Aa(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 Nk(e,t){if(!t)return e;const n=new Map;for(const r of e)r!=null&&r.id&&n.set(r.id,r);if(Array.isArray(t)){for(const r of t){if(!(r!=null&&r.id))continue;const a={...n.get(r.id)??{id:r.id,name:r.id,type:"text"},...r};n.set(r.id,a)}return Array.from(n.values())}const o=Object.entries(t).filter(([,r])=>r!=null);if(o.length===0)return e;for(const[r,i]of o){const a=String(i),l=n.get(r);l?n.set(r,{...l,value:a}):n.set(r,{id:r,name:r,type:"text",value:a})}return Array.from(n.values())}async function Mk(e,t){const n=await Ek(t),o=vk(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const r=xk(n),i=Nk(r,t.variables),a=wa(o,i);return _a(a,t)}function Tk(e,t){return $k(t)?Mk(e,t):_k(t)?Rk(e,t):kk(t)?Ik(e,t):_a(e,t)}function Pk(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function Ok(e,t){e.data&&(Array.isArray(e.data.childrenIds)&&(e.data.childrenIds=e.data.childrenIds.map(n=>t[n]??n)),e.data.props&&(Array.isArray(e.data.props.childrenIds)&&(e.data.props.childrenIds=e.data.props.childrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.startChildrenIds)&&(e.data.props.startChildrenIds=e.data.props.startChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.endChildrenIds)&&(e.data.props.endChildrenIds=e.data.props.endChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.columns)&&(e.data.props.columns=e.data.props.columns.map(n=>({...n,childrenIds:(n.childrenIds||[]).map(o=>t[o]??o)}))),Array.isArray(e.data.props.cells)&&(e.data.props.cells=e.data.props.cells.map(n=>n===null||typeof n!="object"?n:{...n,childrenIds:(n.childrenIds||[]).map(o=>t[o]??o)})),Array.isArray(e.data.props.items)&&(e.data.props.items=e.data.props.items.map(n=>({...n,...n.titleChildrenIds!==void 0?{titleChildrenIds:(n.titleChildrenIds||[]).map(o=>t[o]??o)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(o=>t[o]??o)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(o=>t[o]??o)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(o=>t[o]??o)}:{}})))))}function Ct(e,t){const n=ba(e,t),o={};n.forEach(i=>{o[i]=Pk()});const r={};return n.forEach(i=>{const a=JSON.parse(JSON.stringify(e[i]));Ok(a,o),r[o[i]]=a}),{newBlocks:r,idMap:o,newRootId:o[t]}}function Lk(e,t,n){var o,r,i,a;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const c=s;if(c.data&&Array.isArray(c.data.childrenIds)&&c.data.childrenIds.includes(t)){const u=c.data.childrenIds.indexOf(t),f=[...c.data.childrenIds];return f.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,childrenIds:f}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.childrenIds)&&c.data.props.childrenIds.includes(t)){const u=c.data.props.childrenIds.indexOf(t),f=[...c.data.props.childrenIds];return f.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,childrenIds:f}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.columns)){const u=c.data.props.columns;for(let f=0;f<u.length;f++){const d=u[f];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const h=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[f].childrenIds.splice(h+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,columns:p}}}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.cells)){const u=c.data.props.cells;for(let f=0;f<u.length;f++){const d=u[f];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const h=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[f].childrenIds.splice(h+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,cells:p}}}}}}}if(c.type==="PricingAccordion"&&((o=c.data)!=null&&o.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let f=0;f<u.length;f++){const d=Array.isArray(u[f].cardChildrenIds)?u[f].cardChildrenIds:[],h=Array.isArray(u[f].detailChildrenIds)?u[f].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[h,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),w=u.map(v=>({...v,cardChildrenIds:Array.isArray(v.cardChildrenIds)?[...v.cardChildrenIds]:[],detailChildrenIds:Array.isArray(v.detailChildrenIds)?[...v.detailChildrenIds]:[]}));return w[f][b].splice(x+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:w}}}}}}}if((c.type==="TabsBlock"||c.type==="VerticalAccordion"||c.type==="Carousel"||c.type==="Marquee"||c.type==="Pagination")&&((r=c.data)!=null&&r.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let f=0;f<u.length;f++){const d=Array.isArray(u[f].contentChildrenIds)?u[f].contentChildrenIds:[];if(d.includes(t)){const h=d.indexOf(t),p=u.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[f].contentChildrenIds.splice(h+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:p}}}}}}}if(c.type==="MenuPicker"&&((i=c.data)!=null&&i.props))for(const u of["startChildrenIds","endChildrenIds"]){const f=Array.isArray(c.data.props[u])?c.data.props[u]:[];if(f.includes(t)){const d=f.indexOf(t),h=[...f];return h.splice(d+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,[u]:h}}}}}}if(c.type==="Accordion"&&((a=c.data)!=null&&a.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let f=0;f<u.length;f++){const d=u[f],h=Array.isArray(d.titleChildrenIds)?d.titleChildrenIds:[],p=Array.isArray(d.contentChildrenIds)?d.contentChildrenIds:[];if(h.includes(t)){const b=h.indexOf(t),x=u.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[f].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=u.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[f].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}}}}return null}function zk(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="FlexColumns")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:i,columnIndex:s}}}return null}function jk(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(!((a==null?void 0:a.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:i,cellIndex:s}}}return null}function Bk(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="Pagination")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:i,cellIndex:s}}}return null}function Dk(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=a==null?void 0:a.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.items;if(Array.isArray(s)){for(let c=0;c<s.length;c++)if(Array.isArray((r=s[c])==null?void 0:r.contentChildrenIds)&&s[c].contentChildrenIds.includes(t))return{parentId:i,itemIndex:c,parentType:l}}}return null}function fl(e,t,n){var d,h,p;if(!e[t])return null;const o=e[t];if((o==null?void 0:o.type)==="TabsBlock"){const x=Array.isArray((h=(d=o.data)==null?void 0:d.props)==null?void 0:h.items)?o.data.props.items:[];if(x.length>=10)return null;const w=x[0]??{},v=Array.isArray(w.contentChildrenIds)?w.contentChildrenIds:[];let _={...e};const S=[];let $=null;for(const R of v){if(!_[R])continue;const{newBlocks:I,newRootId:E}=Ct(_,R);_={..._,...I},S.push(E),$||($=E)}const y=$??t,C=[...x,{label:w.label??`Tab ${x.length+1}`,contentChildrenIds:S}];return _={..._,[t]:{...o,data:{...o.data,props:{...o.data.props,items:C}}}},{updatedDocument:_,newRootId:y}}const r=jk(e,n);if(r){const b=e[r.gridId],x=b.data.props??{},w=x.columnsCount??2,v=x.rowsCount??2,_=Array.isArray(x.cells)?x.cells:[],$=_.some(T=>(T==null?void 0:T.colStart)!=null||(T==null?void 0:T.rowStart)!=null||(T==null?void 0:T.colSpan)!=null||(T==null?void 0:T.rowSpan)!=null)?_.length:w*v,y=Array.from({length:$},(T,z)=>_[z]??{childrenIds:[]});let C=y.findIndex((T,z)=>z>r.cellIndex&&(!Array.isArray(T==null?void 0:T.childrenIds)||T.childrenIds.length===0));if(C===-1&&(C=y.findIndex(T=>!Array.isArray(T==null?void 0:T.childrenIds)||T.childrenIds.length===0)),C===-1)return null;const{newBlocks:R,newRootId:I}=Ct(e,t),E=y.map((T,z)=>z===C?{...T,childrenIds:[...(T==null?void 0:T.childrenIds)??[],I]}:T);return{updatedDocument:{...e,...R,[r.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:E}}}},newRootId:I}}const i=Bk(e,n);if(i){const b=e[i.paginationId],x=b.data.props??{},w=x.columnsCount??2,v=x.rowsCount??2,_=Array.isArray(x.cells)?x.cells:[],S=Math.max(w*v,_.length),$=Array.from({length:S},(P,T)=>_[T]??{childrenIds:[]});let y=$.findIndex((P,T)=>T>i.cellIndex&&(!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0));y===-1&&(y=$.findIndex(P=>!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0)),y===-1&&($.push({childrenIds:[]}),y=$.length-1);const{newBlocks:C,newRootId:R}=Ct(e,t),I=$.map((P,T)=>T===y?{...P,childrenIds:[...(P==null?void 0:P.childrenIds)??[],R]}:P);return{updatedDocument:{...e,...C,[i.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:I}}}},newRootId:R}}const a=zk(e,n);if(a){const b=e[a.flexId],x=b.data.props??{},w=x.columnsCount??2,v=Array.isArray(x.columns)?x.columns:[],_=Array.from({length:w},(I,E)=>v[E]??{childrenIds:[]});let S=_.findIndex((I,E)=>E>a.columnIndex&&(!Array.isArray(I==null?void 0:I.childrenIds)||I.childrenIds.length===0));if(S===-1&&(S=_.findIndex(I=>!Array.isArray(I==null?void 0:I.childrenIds)||I.childrenIds.length===0)),S===-1)return null;const{newBlocks:$,newRootId:y}=Ct(e,t),C=_.map((I,E)=>E===S?{...I,childrenIds:[...(I==null?void 0:I.childrenIds)??[],y]}:I);return{updatedDocument:{...e,...$,[a.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:C}}}},newRootId:y}}const l=Dk(e,n);if(l){let b=e[l.parentId],x=Array.isArray((p=b.data.props)==null?void 0:p.items)?b.data.props.items:[],w=e,v=x.findIndex((C,R)=>R>l.itemIndex&&(!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0));if(v===-1&&(v=x.findIndex(C=>!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0)),v===-1)if(l.parentType==="TabsBlock"&&x.length<10){const C=[...x,{label:`Tab ${x.length+1}`,contentChildrenIds:[]}];w={...w,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:C}}}},b=w[l.parentId],x=C,v=x.length-1}else return null;const{newBlocks:_,newRootId:S}=Ct(w,t),$=x.map((C,R)=>R===v?{...C,...l.parentType==="TabsBlock"&&!(C!=null&&C.label)?{label:`Tab ${R+1}`}:{},contentChildrenIds:[...(C==null?void 0:C.contentChildrenIds)??[],S]}:C);return{updatedDocument:{...w,..._,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:$}}}},newRootId:S}}const{newBlocks:s,newRootId:c}=Ct(e,t),u={...e,...s},f=Lk(u,n,c);return f&&(u[f.parentId]=f.updatedParent),{updatedDocument:u,newRootId:c}}function ec(e,t){const n=r=>Array.isArray(r)?r.filter(i=>!t.has(i)):r,o={};for(const[r,i]of Object.entries(e)){if(t.has(r))continue;const a=i;if(!(a!=null&&a.data)){o[r]=a;continue}const l={...a.data};if(Array.isArray(l.childrenIds)&&(l.childrenIds=n(l.childrenIds)),l.props){const s={...l.props};Array.isArray(s.childrenIds)&&(s.childrenIds=n(s.childrenIds)),Array.isArray(s.startChildrenIds)&&(s.startChildrenIds=n(s.startChildrenIds)),Array.isArray(s.endChildrenIds)&&(s.endChildrenIds=n(s.endChildrenIds)),Array.isArray(s.columns)&&(s.columns=s.columns.map(c=>({...c,childrenIds:n(c.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(c=>c===null||typeof c!="object"?c:{...c,childrenIds:n(c.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(c=>({...c,...c.titleChildrenIds!==void 0?{titleChildrenIds:n(c.titleChildrenIds)}:{},...c.contentChildrenIds!==void 0?{contentChildrenIds:n(c.contentChildrenIds)}:{},...c.cardChildrenIds!==void 0?{cardChildrenIds:n(c.cardChildrenIds)}:{},...c.detailChildrenIds!==void 0?{detailChildrenIds:n(c.detailChildrenIds)}:{}}))),l.props=s}o[r]={...a,data:l}}return o}function Fk(e){var o;const t=e==null?void 0:e.type,n=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};if(t==="Grid"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],s=a.some(u=>(u==null?void 0:u.colStart)!=null||(u==null?void 0:u.rowStart)!=null||(u==null?void 0:u.colSpan)!=null||(u==null?void 0:u.rowSpan)!=null)?a.length:r*i,c=Array.from({length:s},(u,f)=>{var d;return{childrenIds:Array.isArray((d=a[f])==null?void 0:d.childrenIds)?a[f].childrenIds:[]}});return{slotCount:s,slots:c}}if(t==="FlexColumns"){const r=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),i=Array.isArray(n.columns)?n.columns:[],a=Array.from({length:r},(l,s)=>{var c;return{childrenIds:Array.isArray((c=i[s])==null?void 0:c.childrenIds)?i[s].childrenIds:[]}});return{slotCount:r,slots:a}}if(t==="Carousel"||t==="Marquee"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="TabsBlock"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="Pagination"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],l=Math.max(r*i,a.length),s=Array.from({length:l},(c,u)=>{var f;return{childrenIds:Array.isArray((f=a[u])==null?void 0:f.childrenIds)?a[u].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function Rn(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const Hn=new WeakMap;function wo(e,t){const n=e[t];if(!n||typeof n!="object")return null;const o=Hn.get(n);if(o!==void 0)return o&&o.containerId===t?o:o&&{...o,containerId:t};if(!Rn(n.type))return Hn.set(n,null),null;const r=Fk(n);if(!r)return Hn.set(n,null),null;const{slotCount:i,slots:a}=r,l=a.findIndex(u=>u.childrenIds.length>0),s=a.filter(u=>u.childrenIds.length===0).length,c={containerId:t,type:n.type,slotCount:i,slots:a,firstFilledSlot:l,emptySlotCount:s};return Hn.set(n,c),c}function Jr(e,t){for(const[n,o]of Object.entries(e)){if(!Rn(o==null?void 0:o.type))continue;const r=wo(e,n);if(r!=null&&r.slots.some(i=>i.childrenIds.includes(t)))return n}return null}function tc(e,t,n,o){var c;const r=e[t];if(!r||!Rn(r.type))return e;const i=((c=r.data)==null?void 0:c.props)??{};if(r.type==="Grid"){let u=i.columnsCount??2,f=i.rowsCount??2;if(u*f>=n)return e;o==="columns"?u=Math.max(u,Math.ceil(n/Math.max(1,f))):f=Math.max(f,Math.ceil(n/Math.max(1,u)));const d=u*f,h=Array.isArray(i.cells)?i.cells:[],p=Array.from({length:d},(b,x)=>h[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:u,rowsCount:f,cells:p}}}}}if(r.type==="Carousel"){const f=Array.isArray(i.items)?i.items:[];if(f.length>=n)return e;const d=Math.min(n,20),h=Array.from({length:d},(p,b)=>f[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:h}}}}}if(r.type==="Marquee"){const f=Array.isArray(i.items)?i.items:[];if(f.length>=n)return e;const d=Math.min(n,30),h=Array.from({length:d},(p,b)=>f[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:h}}}}}if(r.type==="TabsBlock"){const f=Array.isArray(i.items)?i.items:[];if(f.length>=n)return e;const d=Math.min(n,10),h=Array.from({length:d},(p,b)=>f[b]??{label:`Tab ${b+1}`,contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:h}}}}}if(r.type==="Pagination"){const u=i.columnsCount??2,f=i.rowsCount??2,d=Array.isArray(i.cells)?i.cells:[];if(Math.max(u*f,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,cells:p}}}}}if((i.columnsCount??(Array.isArray(i.columns)?i.columns.length:2))>=n)return e;const l=Array.isArray(i.columns)?i.columns:[],s=Array.from({length:n},(u,f)=>l[f]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:n,columns:s}}}}}function nc(e,t,n){var c;const o=e[t];if(!o||!Rn(o.type))return e;const r=wo(e,t);if(!r)return e;let i=-1;r.slots.forEach((u,f)=>{u.childrenIds.length>0&&(i=f)});const a=Math.max(n,i+1,1);if(a>=r.slotCount)return e;const l=((c=o.data)==null?void 0:c.props)??{};if(o.type==="Pagination"){const u=(l.columnsCount??2)*(l.rowsCount??2),f=Math.max(a,u);if(f>=r.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,cells:d.slice(0,f)}}}}}if(o.type==="Carousel"||o.type==="Marquee"||o.type==="TabsBlock"){const u=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,items:u.slice(0,a)}}}}}if(o.type==="Grid"){const u=l.columnsCount??2,f=l.rowsCount??2,d=Math.max(1,Math.ceil(a/Math.max(1,u)));if(d>=f)return e;const h=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,rowsCount:d,cells:h.slice(0,u*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,columnsCount:a,columns:s.slice(0,a)}}}}}function Hk(e,t,n,o="columns"){const r=t==null?void 0:t.sourceBlockId;if(!r||!e[r])return null;const i=Math.max(1,n);let a=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===i)return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<i){let f=!1;for(;s<i;){const d=l.length>0?l[l.length-1]:r;let h=fl(a,r,d);if(!h){const p=Jr(a,r);if(!p){f=!0;break}const b=wo(a,p),x=((b==null?void 0:b.slotCount)??0)+(i-s),w=tc(a,p,x,o);if(w===a){f=!0;break}if(a=w,h=fl(a,r,d),!h){f=!0;break}}a=h.updatedDocument,l=[...l,h.newRootId],s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:f}}const c=i,u=l.slice(c-1);if(u.length>0){const f=new Set;for(const h of u)for(const p of ba(a,h))f.add(p);a=ec(a,f);const d=Jr(a,r);d&&(a=nc(a,d,c)),l=l.slice(0,c-1),s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=kn;exports.ReaderBlock=ke;exports.ReaderBlockSchema=Vs;exports.ReaderDocumentSchema=Z2;exports.cloneSubtree=Ct;exports.extractApiRows=ka;exports.findRepeatableContainerOf=Jr;exports.getRepeatableContainerInfo=wo;exports.growContainerToFit=tc;exports.isRepeatableContainerType=Rn;exports.reconcileRepeatFieldRowCount=Hk;exports.refreshApiDataSources=Ks;exports.refreshDocumentApiDataSources=Js;exports.removeSubtree=ec;exports.renderToStaticHtml=Tk;exports.renderToStaticMarkup=Sa;exports.shrinkContainerToFit=nc;
|
|
966
|
+
</html>`,sectionHtml:r,flushedSections:i}}function Bk(e){var i,a,l,s,c,u,h,d,f,p,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 o=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(o){const x=new Set,v=[];for(const S of o){const k=(u=(c=(s=(l=S==null?void 0:S.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:c.data)==null?void 0:u.formFields;if(Array.isArray(k))for(const w of k)!(w!=null&&w.id)||x.has(w.id)||(x.add(w.id),v.push(w))}if(v.length>0)return v}const r=(b=(p=(f=(d=(h=t==null?void 0:t.step)==null?void 0:h.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)==null?void 0:b.formFields;return Array.isArray(r)&&r.length>0?r:Array.isArray(e.formFields)?e.formFields:[]}function Dk(e){var n,o,r,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(r=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&r.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 Tl(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,o)=>n==null?n:n[o],e)}function ja(e,t){if(t){const n=Tl(e,t);if(Array.isArray(n))return n;const o=ja(e);if(o){const r=o.map(i=>Tl(i,t)).filter(i=>i&&typeof i=="object");if(r.length>0)return r}}if(Array.isArray(e))return e;if(e&&typeof e=="object"){for(const n of["data","rows","results","items","records"])if(Array.isArray(e[n]))return e[n]}return null}function Fk(e,t){if(!t||t.length===0){const o={};for(const[r,i]of Object.entries(e))i!=null&&(o[r]=String(i));return o}const n={};for(const o of t){const r=e[o.id];r!=null&&r!==""&&(n[o.id]=String(r))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function Hk(e,t,n,o){if(typeof AbortController>"u")return n(e,t);const r=new AbortController,i=setTimeout(()=>r.abort(),o);try{return await n(e,{...t,signal:r.signal})}finally{clearTimeout(i)}}async function wc(e,t={}){var h;const n=Array.isArray(e)?e:[],o=n.filter(d=>{var f,p;return((f=d==null?void 0:d.dataSource)==null?void 0:f.type)==="api"&&((p=d==null?void 0:d.dataSource)==null?void 0:p.apiUrl)});if(o.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const r=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!r){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const f of o)(h=t.onError)==null||h.call(t,f,d);return{fields:n,attempted:o.length,refreshed:0,errors:Object.fromEntries(o.map(f=>[f.id,d.message]))}}const i=t.timeoutMs??1e4,a={};let l=0;const s=await Promise.all(o.map(async d=>{var x;const{apiUrl:f,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const v=await Hk(f,{method:p,headers:{Accept:"application/json",...t.headers}},r,i);if(!v.ok)throw new Error(`GET ${f} → HTTP ${v.status}`);const S=await v.json(),k=ja(S,b);if(!k)throw new Error(`GET ${f} → response had no array of rows`);const w=k.map(C=>Fk(C,d.itemFields));return l+=1,{id:d.id,value:w}}catch(v){const S=v instanceof Error?v:new Error(String(v));return a[d.id]=S.message,(x=t.onError)==null||x.call(t,d,S),null}}));if(l===0)return{fields:n,attempted:o.length,refreshed:0,errors:a};const c=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>c.has(d.id)?{...d,value:c.get(d.id)}:d),attempted:o.length,refreshed:l,errors:a}}async function $c(e,t={}){var o,r;const n=(r=(o=e==null?void 0:e.root)==null?void 0:o.data)==null?void 0:r.formFields;return wc(Array.isArray(n)?n:[],t)}function kc(e,t){if(!e)return t();wi(e);try{return t()}finally{wi(null)}}function Gk(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function Uk(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function Wk(e){const t=e;return!!(t.templateId&&t.baseUrl)}function Zk(e){if(!e||typeof e!="object")return e;const t=Pa(e);return!t||t.length===0?e:Oa(e,t)}async function El(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=Pa(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let o=n,r=null;return t.refreshApiDataSources&&(r=await $c(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),o=r.fields),{document:Oa(e,o),apiRefresh:r}}const Vk=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 qk(e){var o,r,i;const t=((o=e==null?void 0:e.data)==null?void 0:o.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:((r=e==null?void 0:e.data)==null?void 0:r.style)??{},hidden:(i=e==null?void 0:e.data)==null?void 0:i.hidden}}}function _c(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[o,r]of Object.entries(e)){const i=r==null?void 0:r.type;i&&!Vk.has(i)?(n[o]=qk(r),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${o}" has unsupported type "${i}" — coerced to Text.`)):n[o]=r}return t?n:e}function Ba(e,t){var a;if(!e)return"";const n=t.rootBlockId??"root",o=Zk(e),r=_c(o),i=((a=r==null?void 0:r[n])==null?void 0:a.data)??{};return kc(t.recordType,()=>za(r,{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 Da(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 Fa(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Ha(e,t,n){const o=await n(e,t);if(!o.ok){const r=await o.text().catch(()=>"");return{ok:!1,body:null,status:o.status,text:r}}return{ok:!0,body:await o.json(),status:o.status,text:""}}async function Cc(e,t,n){var c;const{wrapInDocumentShell:o=!0,headHtml:r,bodyBottomHtml:i}=n,a=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(a.length===0){const{document:u}=await El(((c=t==null?void 0:t.contentMetadata)==null?void 0:c.document)??e,n);return Ba(u,{...n,recordType:n.recordType??"page"})}const l=await Promise.all(a.map(async u=>{var p;const h=(p=u==null?void 0:u.contentMetadata)==null?void 0:p.document;if(!h)return u;const{document:d}=await El(h,n),f=_c(d);return{...u,contentMetadata:{...u.contentMetadata??{},document:f}}})),{html:s}=kc(n.recordType??"page",()=>jk(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:o,seoTitle:(t==null?void 0:t.metaTitle)??(t==null?void 0:t.title)??(t==null?void 0:t.name),seoDescription:t==null?void 0:t.metaDescription,lang:n.lang??(t==null?void 0:t.lang),extraHead:r??(t==null?void 0:t.head)??"",extraBodyBottom:i??(t==null?void 0:t.bodyBottom)??""}));return s}async function Yk(e,t){const{baseUrl:n,tenantId:o,pageId:r}=t,a=`${n.replace(/\/+$/,"")}/tenant/${o}/page/${r}`,l=Da(t),s=await Ha(a,{method:"GET",headers:Fa(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${a} → ${s.status}${s.text?`: ${s.text}`:""}`);return Cc(e,s.body,{...t,fetchFn:l})}async function Kk(e,t){var d,f;const{baseUrl:n,tenantId:o,pagePath:r,cache:i=!1,update:a=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${o}/pagebypath/${encodeURIComponent(r)}?cache=${i}&update=${a}`,c=Da(t),u=await Ha(s,{method:"GET",headers:Fa(t)},c);if(!u.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${u.status}${u.text?`: ${u.text}`:""}`);const h=((d=u.body)==null?void 0:d.data)??((f=u.body)==null?void 0:f.payload)??u.body;return Cc(e,h,{...t,fetchFn:c})}async function Jk(e){const{baseUrl:t,tenantId:n,templateId:o,isGlobal:r=!1}=e,i=t.replace(/\/+$/,""),a=Da(e),l=r?`${i}/global-template/${o}`:`${i}/tenant/${n}/template/${o}`,s=r?{"Content-Type":"application/json"}:Fa(e),c=await Ha(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 Xk(e,t){if(!t)return e;const n=new Map;for(const r of e)r!=null&&r.id&&n.set(r.id,r);if(Array.isArray(t)){for(const r of t){if(!(r!=null&&r.id))continue;const a={...n.get(r.id)??{id:r.id,name:r.id,type:"text"},...r};n.set(r.id,a)}return Array.from(n.values())}const o=Object.entries(t).filter(([,r])=>r!=null);if(o.length===0)return e;for(const[r,i]of o){const a=String(i),l=n.get(r);l?n.set(r,{...l,value:a}):n.set(r,{id:r,name:r,type:"text",value:a})}return Array.from(n.values())}async function Qk(e,t){const n=await Jk(t),o=Dk(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const r=Bk(n),i=Xk(r,t.variables),a=Oa(o,i);return Ba(a,t)}function e_(e,t){return Wk(t)?Qk(e,t):Uk(t)?Kk(e,t):Gk(t)?Yk(e,t):Ba(e,t)}function t_(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function n_(e,t){e.data&&(Array.isArray(e.data.childrenIds)&&(e.data.childrenIds=e.data.childrenIds.map(n=>t[n]??n)),e.data.props&&(Array.isArray(e.data.props.childrenIds)&&(e.data.props.childrenIds=e.data.props.childrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.startChildrenIds)&&(e.data.props.startChildrenIds=e.data.props.startChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.endChildrenIds)&&(e.data.props.endChildrenIds=e.data.props.endChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.columns)&&(e.data.props.columns=e.data.props.columns.map(n=>({...n,childrenIds:(n.childrenIds||[]).map(o=>t[o]??o)}))),Array.isArray(e.data.props.cells)&&(e.data.props.cells=e.data.props.cells.map(n=>n===null||typeof n!="object"?n:{...n,childrenIds:(n.childrenIds||[]).map(o=>t[o]??o)})),Array.isArray(e.data.props.items)&&(e.data.props.items=e.data.props.items.map(n=>({...n,...n.titleChildrenIds!==void 0?{titleChildrenIds:(n.titleChildrenIds||[]).map(o=>t[o]??o)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(o=>t[o]??o)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(o=>t[o]??o)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(o=>t[o]??o)}:{}})))))}function Ot(e,t){const n=Ea(e,t),o={};n.forEach(i=>{o[i]=t_()});const r={};return n.forEach(i=>{const a=JSON.parse(JSON.stringify(e[i]));n_(a,o),r[o[i]]=a}),{newBlocks:r,idMap:o,newRootId:o[t]}}function o_(e,t,n){var o,r,i,a;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const c=s;if(c.data&&Array.isArray(c.data.childrenIds)&&c.data.childrenIds.includes(t)){const u=c.data.childrenIds.indexOf(t),h=[...c.data.childrenIds];return h.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,childrenIds:h}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.childrenIds)&&c.data.props.childrenIds.includes(t)){const u=c.data.props.childrenIds.indexOf(t),h=[...c.data.props.childrenIds];return h.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,childrenIds:h}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.columns)){const u=c.data.props.columns;for(let h=0;h<u.length;h++){const d=u[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,columns:p}}}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.cells)){const u=c.data.props.cells;for(let h=0;h<u.length;h++){const d=u[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,cells:p}}}}}}}if(c.type==="PricingAccordion"&&((o=c.data)!=null&&o.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=Array.isArray(u[h].cardChildrenIds)?u[h].cardChildrenIds:[],f=Array.isArray(u[h].detailChildrenIds)?u[h].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[f,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),v=u.map(S=>({...S,cardChildrenIds:Array.isArray(S.cardChildrenIds)?[...S.cardChildrenIds]:[],detailChildrenIds:Array.isArray(S.detailChildrenIds)?[...S.detailChildrenIds]:[]}));return v[h][b].splice(x+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:v}}}}}}}if((c.type==="TabsBlock"||c.type==="VerticalAccordion"||c.type==="Carousel"||c.type==="Marquee"||c.type==="Pagination")&&((r=c.data)!=null&&r.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=Array.isArray(u[h].contentChildrenIds)?u[h].contentChildrenIds:[];if(d.includes(t)){const f=d.indexOf(t),p=u.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[h].contentChildrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:p}}}}}}}if(c.type==="MenuPicker"&&((i=c.data)!=null&&i.props))for(const u of["startChildrenIds","endChildrenIds"]){const h=Array.isArray(c.data.props[u])?c.data.props[u]:[];if(h.includes(t)){const d=h.indexOf(t),f=[...h];return f.splice(d+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,[u]:f}}}}}}if(c.type==="Accordion"&&((a=c.data)!=null&&a.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=u[h],f=Array.isArray(d.titleChildrenIds)?d.titleChildrenIds:[],p=Array.isArray(d.contentChildrenIds)?d.contentChildrenIds:[];if(f.includes(t)){const b=f.indexOf(t),x=u.map(v=>({...v,titleChildrenIds:Array.isArray(v.titleChildrenIds)?[...v.titleChildrenIds]:[],contentChildrenIds:Array.isArray(v.contentChildrenIds)?[...v.contentChildrenIds]:[]}));return x[h].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=u.map(v=>({...v,titleChildrenIds:Array.isArray(v.titleChildrenIds)?[...v.titleChildrenIds]:[],contentChildrenIds:Array.isArray(v.contentChildrenIds)?[...v.contentChildrenIds]:[]}));return x[h].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}}}}return null}function r_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="FlexColumns")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:i,columnIndex:s}}}return null}function a_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(!((a==null?void 0:a.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:i,cellIndex:s}}}return null}function i_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="Pagination")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:i,cellIndex:s}}}return null}function l_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=a==null?void 0:a.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.items;if(Array.isArray(s)){for(let c=0;c<s.length;c++)if(Array.isArray((r=s[c])==null?void 0:r.contentChildrenIds)&&s[c].contentChildrenIds.includes(t))return{parentId:i,itemIndex:c,parentType:l}}}return null}function Ml(e,t,n){var d,f,p;if(!e[t])return null;const o=e[t];if((o==null?void 0:o.type)==="TabsBlock"){const x=Array.isArray((f=(d=o.data)==null?void 0:d.props)==null?void 0:f.items)?o.data.props.items:[];if(x.length>=10)return null;const v=x[0]??{},S=Array.isArray(v.contentChildrenIds)?v.contentChildrenIds:[];let k={...e};const w=[];let C=null;for(const I of S){if(!k[I])continue;const{newBlocks:R,newRootId:T}=Ot(k,I);k={...k,...R},w.push(T),C||(C=T)}const y=C??t,_=[...x,{label:v.label??`Tab ${x.length+1}`,contentChildrenIds:w}];return k={...k,[t]:{...o,data:{...o.data,props:{...o.data.props,items:_}}}},{updatedDocument:k,newRootId:y}}const r=a_(e,n);if(r){const b=e[r.gridId],x=b.data.props??{},v=x.columnsCount??2,S=x.rowsCount??2,k=Array.isArray(x.cells)?x.cells:[],C=k.some(M=>(M==null?void 0:M.colStart)!=null||(M==null?void 0:M.rowStart)!=null||(M==null?void 0:M.colSpan)!=null||(M==null?void 0:M.rowSpan)!=null)?k.length:v*S,y=Array.from({length:C},(M,z)=>k[z]??{childrenIds:[]});let _=y.findIndex((M,z)=>z>r.cellIndex&&(!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0));if(_===-1&&(_=y.findIndex(M=>!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0)),_===-1)return null;const{newBlocks:I,newRootId:R}=Ot(e,t),T=y.map((M,z)=>z===_?{...M,childrenIds:[...(M==null?void 0:M.childrenIds)??[],R]}:M);return{updatedDocument:{...e,...I,[r.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:T}}}},newRootId:R}}const i=i_(e,n);if(i){const b=e[i.paginationId],x=b.data.props??{},v=x.columnsCount??2,S=x.rowsCount??2,k=Array.isArray(x.cells)?x.cells:[],w=Math.max(v*S,k.length),C=Array.from({length:w},(P,M)=>k[M]??{childrenIds:[]});let y=C.findIndex((P,M)=>M>i.cellIndex&&(!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0));y===-1&&(y=C.findIndex(P=>!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0)),y===-1&&(C.push({childrenIds:[]}),y=C.length-1);const{newBlocks:_,newRootId:I}=Ot(e,t),R=C.map((P,M)=>M===y?{...P,childrenIds:[...(P==null?void 0:P.childrenIds)??[],I]}:P);return{updatedDocument:{...e,..._,[i.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:R}}}},newRootId:I}}const a=r_(e,n);if(a){const b=e[a.flexId],x=b.data.props??{},v=x.columnsCount??2,S=Array.isArray(x.columns)?x.columns:[],k=Array.from({length:v},(R,T)=>S[T]??{childrenIds:[]});let w=k.findIndex((R,T)=>T>a.columnIndex&&(!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0));if(w===-1&&(w=k.findIndex(R=>!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0)),w===-1)return null;const{newBlocks:C,newRootId:y}=Ot(e,t),_=k.map((R,T)=>T===w?{...R,childrenIds:[...(R==null?void 0:R.childrenIds)??[],y]}:R);return{updatedDocument:{...e,...C,[a.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:_}}}},newRootId:y}}const l=l_(e,n);if(l){let b=e[l.parentId],x=Array.isArray((p=b.data.props)==null?void 0:p.items)?b.data.props.items:[],v=e,S=x.findIndex((_,I)=>I>l.itemIndex&&(!Array.isArray(_==null?void 0:_.contentChildrenIds)||_.contentChildrenIds.length===0));if(S===-1&&(S=x.findIndex(_=>!Array.isArray(_==null?void 0:_.contentChildrenIds)||_.contentChildrenIds.length===0)),S===-1)if(l.parentType==="TabsBlock"&&x.length<10){const _=[...x,{label:`Tab ${x.length+1}`,contentChildrenIds:[]}];v={...v,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:_}}}},b=v[l.parentId],x=_,S=x.length-1}else return null;const{newBlocks:k,newRootId:w}=Ot(v,t),C=x.map((_,I)=>I===S?{..._,...l.parentType==="TabsBlock"&&!(_!=null&&_.label)?{label:`Tab ${I+1}`}:{},contentChildrenIds:[...(_==null?void 0:_.contentChildrenIds)??[],w]}:_);return{updatedDocument:{...v,...k,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:C}}}},newRootId:w}}const{newBlocks:s,newRootId:c}=Ot(e,t),u={...e,...s},h=o_(u,n,c);return h&&(u[h.parentId]=h.updatedParent),{updatedDocument:u,newRootId:c}}function Ac(e,t){const n=r=>Array.isArray(r)?r.filter(i=>!t.has(i)):r,o={};for(const[r,i]of Object.entries(e)){if(t.has(r))continue;const a=i;if(!(a!=null&&a.data)){o[r]=a;continue}const l={...a.data};if(Array.isArray(l.childrenIds)&&(l.childrenIds=n(l.childrenIds)),l.props){const s={...l.props};Array.isArray(s.childrenIds)&&(s.childrenIds=n(s.childrenIds)),Array.isArray(s.startChildrenIds)&&(s.startChildrenIds=n(s.startChildrenIds)),Array.isArray(s.endChildrenIds)&&(s.endChildrenIds=n(s.endChildrenIds)),Array.isArray(s.columns)&&(s.columns=s.columns.map(c=>({...c,childrenIds:n(c.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(c=>c===null||typeof c!="object"?c:{...c,childrenIds:n(c.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(c=>({...c,...c.titleChildrenIds!==void 0?{titleChildrenIds:n(c.titleChildrenIds)}:{},...c.contentChildrenIds!==void 0?{contentChildrenIds:n(c.contentChildrenIds)}:{},...c.cardChildrenIds!==void 0?{cardChildrenIds:n(c.cardChildrenIds)}:{},...c.detailChildrenIds!==void 0?{detailChildrenIds:n(c.detailChildrenIds)}:{}}))),l.props=s}o[r]={...a,data:l}}return o}function s_(e){var o;const t=e==null?void 0:e.type,n=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};if(t==="Grid"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],s=a.some(u=>(u==null?void 0:u.colStart)!=null||(u==null?void 0:u.rowStart)!=null||(u==null?void 0:u.colSpan)!=null||(u==null?void 0:u.rowSpan)!=null)?a.length:r*i,c=Array.from({length:s},(u,h)=>{var d;return{childrenIds:Array.isArray((d=a[h])==null?void 0:d.childrenIds)?a[h].childrenIds:[]}});return{slotCount:s,slots:c}}if(t==="FlexColumns"){const r=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),i=Array.isArray(n.columns)?n.columns:[],a=Array.from({length:r},(l,s)=>{var c;return{childrenIds:Array.isArray((c=i[s])==null?void 0:c.childrenIds)?i[s].childrenIds:[]}});return{slotCount:r,slots:a}}if(t==="Carousel"||t==="Marquee"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="TabsBlock"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="Pagination"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],l=Math.max(r*i,a.length),s=Array.from({length:l},(c,u)=>{var h;return{childrenIds:Array.isArray((h=a[u])==null?void 0:h.childrenIds)?a[u].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function jn(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const Qn=new WeakMap;function Ro(e,t){const n=e[t];if(!n||typeof n!="object")return null;const o=Qn.get(n);if(o!==void 0)return o&&o.containerId===t?o:o&&{...o,containerId:t};if(!jn(n.type))return Qn.set(n,null),null;const r=s_(n);if(!r)return Qn.set(n,null),null;const{slotCount:i,slots:a}=r,l=a.findIndex(u=>u.childrenIds.length>0),s=a.filter(u=>u.childrenIds.length===0).length,c={containerId:t,type:n.type,slotCount:i,slots:a,firstFilledSlot:l,emptySlotCount:s};return Qn.set(n,c),c}function sa(e,t){for(const[n,o]of Object.entries(e)){if(!jn(o==null?void 0:o.type))continue;const r=Ro(e,n);if(r!=null&&r.slots.some(i=>i.childrenIds.includes(t)))return n}return null}function yc(e,t,n,o){var c;const r=e[t];if(!r||!jn(r.type))return e;const i=((c=r.data)==null?void 0:c.props)??{};if(r.type==="Grid"){let u=i.columnsCount??2,h=i.rowsCount??2;if(u*h>=n)return e;o==="columns"?u=Math.max(u,Math.ceil(n/Math.max(1,h))):h=Math.max(h,Math.ceil(n/Math.max(1,u)));const d=u*h,f=Array.isArray(i.cells)?i.cells:[],p=Array.from({length:d},(b,x)=>f[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:u,rowsCount:h,cells:p}}}}}if(r.type==="Carousel"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,20),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="Marquee"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,30),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="TabsBlock"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,10),f=Array.from({length:d},(p,b)=>h[b]??{label:`Tab ${b+1}`,contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="Pagination"){const u=i.columnsCount??2,h=i.rowsCount??2,d=Array.isArray(i.cells)?i.cells:[];if(Math.max(u*h,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,cells:p}}}}}if((i.columnsCount??(Array.isArray(i.columns)?i.columns.length:2))>=n)return e;const l=Array.isArray(i.columns)?i.columns:[],s=Array.from({length:n},(u,h)=>l[h]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:n,columns:s}}}}}function Ic(e,t,n){var c;const o=e[t];if(!o||!jn(o.type))return e;const r=Ro(e,t);if(!r)return e;let i=-1;r.slots.forEach((u,h)=>{u.childrenIds.length>0&&(i=h)});const a=Math.max(n,i+1,1);if(a>=r.slotCount)return e;const l=((c=o.data)==null?void 0:c.props)??{};if(o.type==="Pagination"){const u=(l.columnsCount??2)*(l.rowsCount??2),h=Math.max(a,u);if(h>=r.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,cells:d.slice(0,h)}}}}}if(o.type==="Carousel"||o.type==="Marquee"||o.type==="TabsBlock"){const u=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,items:u.slice(0,a)}}}}}if(o.type==="Grid"){const u=l.columnsCount??2,h=l.rowsCount??2,d=Math.max(1,Math.ceil(a/Math.max(1,u)));if(d>=h)return e;const f=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,rowsCount:d,cells:f.slice(0,u*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,columnsCount:a,columns:s.slice(0,a)}}}}}function c_(e,t,n,o="columns"){const r=t==null?void 0:t.sourceBlockId;if(!r||!e[r])return null;const i=Math.max(1,n);let a=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===i)return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<i){let h=!1;for(;s<i;){const d=l.length>0?l[l.length-1]:r;let f=Ml(a,r,d);if(!f){const p=sa(a,r);if(!p){h=!0;break}const b=Ro(a,p),x=((b==null?void 0:b.slotCount)??0)+(i-s),v=yc(a,p,x,o);if(v===a){h=!0;break}if(a=v,f=Ml(a,r,d),!f){h=!0;break}}a=f.updatedDocument,l=[...l,f.newRootId],s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:h}}const c=i,u=l.slice(c-1);if(u.length>0){const h=new Set;for(const f of u)for(const p of Ea(a,f))h.add(p);a=Ac(a,h);const d=sa(a,r);d&&(a=Ic(a,d,c)),l=l.slice(0,c-1),s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=En;exports.ReaderBlock=Ae;exports.ReaderBlockSchema=xc;exports.ReaderDocumentSchema=ck;exports.cloneSubtree=Ot;exports.extractApiRows=ja;exports.findRepeatableContainerOf=sa;exports.getRepeatableContainerInfo=Ro;exports.growContainerToFit=yc;exports.isRepeatableContainerType=jn;exports.reconcileRepeatFieldRowCount=c_;exports.refreshApiDataSources=wc;exports.refreshDocumentApiDataSources=$c;exports.removeSubtree=Ac;exports.renderToStaticHtml=e_;exports.renderToStaticMarkup=za;exports.shrinkContainerToFit=Ic;
|