pagepilot-visual-editor 1.0.37 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/blocks-internal/block-button/src/index.d.ts +29 -4
  2. package/dist/blocks-internal/block-columns-container/src/index.d.ts +3 -3
  3. package/dist/blocks-internal/block-container/src/index.d.ts +17 -4
  4. package/dist/blocks-internal/block-heading/src/index.d.ts +26 -1
  5. package/dist/blocks-internal/block-image/src/index.d.ts +17 -4
  6. package/dist/blocks-internal/block-logo/src/index.d.ts +25 -0
  7. package/dist/blocks-internal/block-mdx/src/index.d.ts +1 -1
  8. package/dist/blocks-internal/block-quill/src/index.d.ts +1 -1
  9. package/dist/blocks-internal/block-text/src/index.d.ts +26 -1
  10. package/dist/editor-sample/App/InspectorDrawer/BehaviourPanel.d.ts +2 -2
  11. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/HoverEffectSection.d.ts +6 -1
  12. package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
  13. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/TemplatePreviewDialog.d.ts +7 -2
  14. package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
  15. package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
  16. package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +17 -4
  17. package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +25 -0
  18. package/dist/editor-sample/documents/blocks/Table/TableImportDialog.styles.d.ts +9 -9
  19. package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +25 -0
  20. package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +1 -1
  21. package/dist/editor-sample/documents/editor/core.d.ts +195 -19
  22. package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
  23. package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +17 -4
  24. package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
  25. package/dist/email-builder-core/blocks/HoverEffectWrapper.d.ts +6 -0
  26. package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +25 -0
  27. package/dist/email-builder-core/blocks/Timer/TimerPropsSchema.d.ts +25 -0
  28. package/dist/email-builder-core/blocks/hoverEffectSchema.d.ts +27 -5
  29. package/dist/email-builder-core/renderers/pageScripts.d.ts +3 -0
  30. package/dist/email-builder-core/renderers/renderToStaticMarkup.d.ts +2 -1
  31. package/dist/host-stubs/view/shared/styles/Table.styles.d.ts +1 -1
  32. package/dist/{index-BW7rc-nv.cjs → index--U6l3BW_.cjs} +1 -1
  33. package/dist/{index-C2OXACAB.js → index-Co17x0qc.js} +1 -1
  34. package/dist/{index-Bic2Q0zD.cjs → index-D8GDJgh_.cjs} +323 -327
  35. package/dist/{index-Dhbdc6Mr.js → index-Dtw5py_g.js} +33275 -32348
  36. package/dist/index.cjs +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/render-core/combineSections.d.ts +1 -0
  39. package/dist/render.cjs +146 -150
  40. package/dist/render.js +5409 -5283
  41. package/dist/{xlsx-fIB6iGbB.cjs → xlsx-DwHkbEbC.cjs} +1 -1
  42. package/dist/{xlsx-D-n6aTl0.js → xlsx-ow9s7GFf.js} +1 -1
  43. package/package.json +1 -1
package/dist/render.cjs CHANGED
@@ -1,45 +1,45 @@
1
- "use strict";var wd=Object.defineProperty;var Sd=(e,t,n)=>t in e?wd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Se=(e,t,n)=>Sd(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),$d=require("react-dom/server"),V=require("react");var Ui;function E(e,t,n){function r(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const u=i.prototype,c=Object.keys(u);for(let h=0;h<c.length;h++){const d=c[h];d in l||(l[d]=u[d].bind(l))}}const o=(n==null?void 0:n.Parent)??Object;class a extends o{}Object.defineProperty(a,"name",{value:e});function i(l){var s;const u=n!=null&&n.Parent?new a:this;r(u,l),(s=u._zod).deferred??(s.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>{var s,u;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(u=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class vn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ys extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Ui=globalThis).__zod_globalConfig??(Ui.__zod_globalConfig={});const ti=globalThis.__zod_globalConfig;function Mt(e){return ti}function Ks(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function ia(e,t){return typeof t=="bigint"?t.toString():t}function ro(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ni(e){return e==null}function ri(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function _d(e,t){const n=e/t,r=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}const Zi=Symbol("evaluating");function he(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Zi)return r===void 0&&(r=Zi,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function rn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Gt(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function qi(e){return JSON.stringify(e)}function Cd(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Js="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Vn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ad=ro(()=>{var e;if(ti.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 Sn(e){if(Vn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Vn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Xs(e){return Sn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const yd=new Set(["string","number","symbol"]);function $n(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Wt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function 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 Id(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Rd={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 Td(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=Gt(e._zod.def,{get shape(){const i={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=n.shape[l])}return rn(this,"shape",i),i},checks:[]});return Wt(e,a)}function Nd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=Gt(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete i[l]}return rn(this,"shape",i),i},checks:[]});return Wt(e,a)}function Ed(e,t){if(!Sn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const a=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(a,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Gt(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return rn(this,"shape",a),a}});return Wt(e,o)}function Md(e,t){if(!Sn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Gt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return rn(this,"shape",r),r}});return Wt(e,n)}function Pd(e,t){var r;if((r=e._zod.def.checks)!=null&&r.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Gt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return rn(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Wt(e,n)}function Od(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=Gt(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(s[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(const u in l)s[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return rn(this,"shape",s),s},checks:[]});return Wt(t,i)}function Ld(e,t,n){const r=Gt(t._zod.def,{get shape(){const o=t._zod.def.shape,a={...o};if(n)for(const i in n){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(a[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)a[i]=new e({type:"nonoptional",innerType:o[i]});return rn(this,"shape",a),a}});return Wt(t,r)}function mn(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function zd(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function Dt(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function hr(e){return typeof e=="string"?e:e==null?void 0:e.message}function Pt(e,t,n){var s,u,c,h,d,f;const r=e.message?e.message:hr((c=(u=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:u.error)==null?void 0:c.call(u,e))??hr((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??hr((d=n.customError)==null?void 0:d.call(n,e))??hr((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:o,continue:a,input:i,...l}=e;return l.path??(l.path=[]),l.message=r,t!=null&&t.reportInput&&(l.input=i),l}function oi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Yn(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Qs=(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,ia,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ec=E("$ZodError",Qs),tc=E("$ZodError",Qs,{Parent:Error});function Bd(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function jd(e,t=n=>n.message){const n={_errors:[]},r=(o,a=[])=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>r({issues:l},[...a,...i.path]));else if(i.code==="invalid_key")r({issues:i.issues},[...a,...i.path]);else if(i.code==="invalid_element")r({issues:i.issues},[...a,...i.path]);else{const l=[...a,...i.path];if(l.length===0)n._errors.push(t(i));else{let s=n,u=0;for(;u<l.length;){const c=l[u];u===l.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}}};return r(e),n}const ai=e=>(t,n,r,o)=>{const a=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new vn;if(i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>Pt(s,a,Mt())));throw Js(l,o==null?void 0:o.callee),l}return i.value},ii=e=>async(t,n,r,o)=>{const a=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>Pt(s,a,Mt())));throw Js(l,o==null?void 0:o.callee),l}return i.value},oo=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new vn;return a.issues.length?{success:!1,error:new(e??ec)(a.issues.map(i=>Pt(i,o,Mt())))}:{success:!0,data:a.value}},Dd=oo(tc),ao=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(i=>Pt(i,o,Mt())))}:{success:!0,data:a.value}},Fd=ao(tc),Hd=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ai(e)(t,n,o)},Gd=e=>(t,n,r)=>ai(e)(t,n,r),Wd=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ii(e)(t,n,o)},Ud=e=>async(t,n,r)=>ii(e)(t,n,r),Zd=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return oo(e)(t,n,o)},qd=e=>(t,n,r)=>oo(e)(t,n,r),Vd=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ao(e)(t,n,o)},Yd=e=>async(t,n,r)=>ao(e)(t,n,r),Kd=/^[cC][0-9a-z]{6,}$/,Jd=/^[0-9a-z]+$/,Xd=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Qd=/^[0-9a-vA-V]{20}$/,eh=/^[A-Za-z0-9]{27}$/,th=/^[a-zA-Z0-9_-]{21}$/,nh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,rh=/^([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})$/,Vi=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)$/,oh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ah="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ih(){return new RegExp(ah,"u")}const lh=/^(?:(?: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])$/,sh=/^(([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}|:))$/,ch=/^((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])$/,uh=/^(([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])$/,dh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,nc=/^[A-Za-z0-9_-]*$/,hh=/^https?$/,fh=/^\+[1-9]\d{6,14}$/,rc="(?:(?:\\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])))",ph=new RegExp(`^${rc}$`);function oc(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 gh(e){return new RegExp(`^${oc(e)}$`)}function mh(e){const t=oc({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${rc}T(?:${r})$`)}const bh=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}$`)},xh=/^-?\d+$/,ac=/^-?\d+(?:\.\d+)?$/,vh=/^(?:true|false)$/i,kh=/^[^A-Z]*$/,wh=/^[^a-z]*$/,rt=E("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ic={number:"number",bigint:"bigint",object:"date"},lc=E("$ZodCheckLessThan",(e,t)=>{rt.init(e,t);const n=ic[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),sc=E("$ZodCheckGreaterThan",(e,t)=>{rt.init(e,t);const n=ic[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Sh=E("$ZodCheckMultipleOf",(e,t)=>{rt.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):_d(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})}}),$h=E("$ZodCheckNumberFormat",(e,t)=>{var i;rt.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),r=n?"int":"number",[o,a]=Rd[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=o,s.maximum=a,n&&(s.pattern=xh)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<o&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>a&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),_h=E("$ZodCheckMaxLength",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ni(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=oi(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ch=E("$ZodCheckMinLength",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ni(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=oi(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ah=E("$ZodCheckLengthEquals",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ni(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,a=o.length;if(a===t.length)return;const i=oi(o),l=a>t.length;r.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),io=E("$ZodCheckStringFormat",(e,t)=>{var n,r;rt.init(e,t),e._zod.onattach.push(o=>{const a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),yh=E("$ZodCheckRegex",(e,t)=>{io.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})}}),Ih=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=kh),io.init(e,t)}),Rh=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=wh),io.init(e,t)}),Th=E("$ZodCheckIncludes",(e,t)=>{rt.init(e,t);const n=$n(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Nh=E("$ZodCheckStartsWith",(e,t)=>{rt.init(e,t);const n=new RegExp(`^${$n(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Eh=E("$ZodCheckEndsWith",(e,t)=>{rt.init(e,t);const n=new RegExp(`.*${$n(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Mh=E("$ZodCheckOverwrite",(e,t)=>{rt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Ph{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
1
+ "use strict";var Ad=Object.defineProperty;var yd=(e,t,n)=>t in e?Ad(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Se=(e,t,n)=>yd(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),Id=require("react-dom/server"),U=require("react");var Ki;function N(e,t,n){function r(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const u=i.prototype,c=Object.keys(u);for(let h=0;h<c.length;h++){const d=c[h];d in l||(l[d]=u[d].bind(l))}}const o=(n==null?void 0:n.Parent)??Object;class a extends o{}Object.defineProperty(a,"name",{value:e});function i(l){var s;const u=n!=null&&n.Parent?new a:this;r(u,l),(s=u._zod).deferred??(s.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>{var s,u;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(u=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Sn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ec extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Ki=globalThis).__zod_globalConfig??(Ki.__zod_globalConfig={});const ai=globalThis.__zod_globalConfig;function Pt(e){return ai}function tc(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function ua(e,t){return typeof t=="bigint"?t.toString():t}function lo(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ii(e){return e==null}function li(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Rd(e,t){const n=e/t,r=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}const Ji=Symbol("evaluating");function de(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Ji)return r===void 0&&(r=Ji,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function an(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ut(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Xi(e){return JSON.stringify(e)}function Td(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const nc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Kn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ed=lo(()=>{var e;if(ai.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 Cn(e){if(Kn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Kn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function rc(e){return Cn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Nd=new Set(["string","number","symbol"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function Z(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 Md(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Pd={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 Od(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=Ut(e._zod.def,{get shape(){const i={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=n.shape[l])}return an(this,"shape",i),i},checks:[]});return Zt(e,a)}function Ld(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=Ut(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete i[l]}return an(this,"shape",i),i},checks:[]});return Zt(e,a)}function zd(e,t){if(!Cn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const a=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(a,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Ut(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return an(this,"shape",a),a}});return Zt(e,o)}function jd(e,t){if(!Cn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Ut(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return an(this,"shape",r),r}});return Zt(e,n)}function Bd(e,t){var r;if((r=e._zod.def.checks)!=null&&r.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Ut(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return an(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Zt(e,n)}function Dd(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=Ut(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(s[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(const u in l)s[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return an(this,"shape",s),s},checks:[]});return Zt(t,i)}function Fd(e,t,n){const r=Ut(t._zod.def,{get shape(){const o=t._zod.def.shape,a={...o};if(n)for(const i in n){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(a[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)a[i]=new e({type:"nonoptional",innerType:o[i]});return an(this,"shape",a),a}});return Zt(t,r)}function vn(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Hd(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function Ht(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function gr(e){return typeof e=="string"?e:e==null?void 0:e.message}function Ot(e,t,n){var s,u,c,h,d,f;const r=e.message?e.message:gr((c=(u=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:u.error)==null?void 0:c.call(u,e))??gr((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??gr((d=n.customError)==null?void 0:d.call(n,e))??gr((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:o,continue:a,input:i,...l}=e;return l.path??(l.path=[]),l.message=r,t!=null&&t.reportInput&&(l.input=i),l}function si(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Jn(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const oc=(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,ua,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ac=N("$ZodError",oc),ic=N("$ZodError",oc,{Parent:Error});function Gd(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Wd(e,t=n=>n.message){const n={_errors:[]},r=(o,a=[])=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>r({issues:l},[...a,...i.path]));else if(i.code==="invalid_key")r({issues:i.issues},[...a,...i.path]);else if(i.code==="invalid_element")r({issues:i.issues},[...a,...i.path]);else{const l=[...a,...i.path];if(l.length===0)n._errors.push(t(i));else{let s=n,u=0;for(;u<l.length;){const c=l[u];u===l.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}}};return r(e),n}const ci=e=>(t,n,r,o)=>{const a=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Sn;if(i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>Ot(s,a,Pt())));throw nc(l,o==null?void 0:o.callee),l}return i.value},ui=e=>async(t,n,r,o)=>{const a=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>Ot(s,a,Pt())));throw nc(l,o==null?void 0:o.callee),l}return i.value},so=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Sn;return a.issues.length?{success:!1,error:new(e??ac)(a.issues.map(i=>Ot(i,o,Pt())))}:{success:!0,data:a.value}},Ud=so(ic),co=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(i=>Ot(i,o,Pt())))}:{success:!0,data:a.value}},Zd=co(ic),qd=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ci(e)(t,n,o)},Vd=e=>(t,n,r)=>ci(e)(t,n,r),Yd=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ui(e)(t,n,o)},Kd=e=>async(t,n,r)=>ui(e)(t,n,r),Jd=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return so(e)(t,n,o)},Xd=e=>(t,n,r)=>so(e)(t,n,r),Qd=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return co(e)(t,n,o)},eh=e=>async(t,n,r)=>co(e)(t,n,r),th=/^[cC][0-9a-z]{6,}$/,nh=/^[0-9a-z]+$/,rh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,oh=/^[0-9a-vA-V]{20}$/,ah=/^[A-Za-z0-9]{27}$/,ih=/^[a-zA-Z0-9_-]{21}$/,lh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,sh=/^([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})$/,Qi=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)$/,ch=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,uh="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function dh(){return new RegExp(uh,"u")}const hh=/^(?:(?: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])$/,fh=/^(([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}|:))$/,ph=/^((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])$/,gh=/^(([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])$/,mh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,lc=/^[A-Za-z0-9_-]*$/,bh=/^https?$/,xh=/^\+[1-9]\d{6,14}$/,sc="(?:(?:\\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])))",vh=new RegExp(`^${sc}$`);function cc(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 kh(e){return new RegExp(`^${cc(e)}$`)}function wh(e){const t=cc({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${sc}T(?:${r})$`)}const Sh=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}$`)},$h=/^-?\d+$/,uc=/^-?\d+(?:\.\d+)?$/,_h=/^(?:true|false)$/i,Ch=/^[^A-Z]*$/,Ah=/^[^a-z]*$/,nt=N("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),dc={number:"number",bigint:"bigint",object:"date"},hc=N("$ZodCheckLessThan",(e,t)=>{nt.init(e,t);const n=dc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),fc=N("$ZodCheckGreaterThan",(e,t)=>{nt.init(e,t);const n=dc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),yh=N("$ZodCheckMultipleOf",(e,t)=>{nt.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Rd(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})}}),Ih=N("$ZodCheckNumberFormat",(e,t)=>{var i;nt.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),r=n?"int":"number",[o,a]=Pd[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=o,s.maximum=a,n&&(s.pattern=$h)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<o&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>a&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Rh=N("$ZodCheckMaxLength",(e,t)=>{var n;nt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ii(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=si(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Th=N("$ZodCheckMinLength",(e,t)=>{var n;nt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ii(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=si(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Eh=N("$ZodCheckLengthEquals",(e,t)=>{var n;nt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ii(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,a=o.length;if(a===t.length)return;const i=si(o),l=a>t.length;r.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),uo=N("$ZodCheckStringFormat",(e,t)=>{var n,r;nt.init(e,t),e._zod.onattach.push(o=>{const a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Nh=N("$ZodCheckRegex",(e,t)=>{uo.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})}}),Mh=N("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ch),uo.init(e,t)}),Ph=N("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ah),uo.init(e,t)}),Oh=N("$ZodCheckIncludes",(e,t)=>{nt.init(e,t);const n=An(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Lh=N("$ZodCheckStartsWith",(e,t)=>{nt.init(e,t);const n=new RegExp(`^${An(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),zh=N("$ZodCheckEndsWith",(e,t)=>{nt.init(e,t);const n=new RegExp(`.*${An(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),jh=N("$ZodCheckOverwrite",(e,t)=>{nt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Bh{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
2
2
  `).filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),a=r.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of a)this.content.push(i)}compile(){const t=Function,n=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...n,o.join(`
3
- `))}}const Oh={major:4,minor:4,patch:3},_e=E("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Oh;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const i of a._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const a=(l,s,u)=>{let c=mn(l),h;for(const d of s){if(d._zod.def.when){if(zd(l)||!d._zod.def.when(l))continue}else if(c)continue;const f=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(u==null?void 0:u.async)===!1)throw new vn;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,l.issues.length!==f&&(c||(c=mn(l,f)))});else{if(l.issues.length===f)continue;c||(c=mn(l,f))}}return h?h.then(()=>l):l},i=(l,s,u)=>{if(mn(l))return l.aborted=!0,l;const c=a(s,r,u);if(c instanceof Promise){if(u.async===!1)throw new vn;return c.then(h=>e._zod.parse(h,u))}return e._zod.parse(c,u)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const c=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(h=>i(h,l,s)):i(c,l,s)}const u=e._zod.parse(l,s);if(u instanceof Promise){if(s.async===!1)throw new vn;return u.then(c=>a(c,r,s))}return a(u,r,s)}}he(e,"~standard",()=>({validate:a=>{var i;try{const l=Dd(e,a);return l.success?{value:l.data}:{issues:(i=l.error)==null?void 0:i.issues}}catch{return Fd(e,a).then(s=>{var u;return s.success?{value:s.data}:{issues:(u=s.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),li=E("$ZodString",(e,t)=>{var n;_e.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??bh(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Re=E("$ZodStringFormat",(e,t)=>{io.init(e,t),li.init(e,t)}),Lh=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=rh),Re.init(e,t)}),zh=E("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Vi(r))}else t.pattern??(t.pattern=Vi());Re.init(e,t)}),Bh=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=oh),Re.init(e,t)}),jh=E("$ZodURL",(e,t)=>{Re.init(e,t),e._zod.check=n=>{var r;try{const o=n.value.trim();if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===hh.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const a=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.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(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.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=a.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Dh=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ih()),Re.init(e,t)}),Fh=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=th),Re.init(e,t)}),Hh=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Kd),Re.init(e,t)}),Gh=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Jd),Re.init(e,t)}),Wh=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Xd),Re.init(e,t)}),Uh=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Qd),Re.init(e,t)}),Zh=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=eh),Re.init(e,t)}),qh=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=mh(t)),Re.init(e,t)}),Vh=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ph),Re.init(e,t)}),Yh=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=gh(t)),Re.init(e,t)}),Kh=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=nh),Re.init(e,t)}),Jh=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=lh),Re.init(e,t),e._zod.bag.format="ipv4"}),Xh=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=sh),Re.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})}}}),Qh=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ch),Re.init(e,t)}),ef=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=uh),Re.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,a]=r;if(!a)throw new Error;const i=Number(a);if(`${i}`!==a)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function cc(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const tf=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=dh),Re.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{cc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function nf(e){if(!nc.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return cc(n)}const rf=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=nc),Re.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{nf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),of=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=fh),Re.init(e,t)});function af(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const lf=E("$ZodJWT",(e,t)=>{Re.init(e,t),e._zod.check=n=>{af(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),uc=E("$ZodNumber",(e,t)=>{_e.init(e,t),e._zod.pattern=e._zod.bag.pattern??ac,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),n}}),sf=E("$ZodNumberFormat",(e,t)=>{$h.init(e,t),uc.init(e,t)}),cf=E("$ZodBoolean",(e,t)=>{_e.init(e,t),e._zod.pattern=vh,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),uf=E("$ZodAny",(e,t)=>{_e.init(e,t),e._zod.parse=n=>n}),df=E("$ZodUnknown",(e,t)=>{_e.init(e,t),e._zod.parse=n=>n}),hf=E("$ZodNever",(e,t)=>{_e.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Yi(e,t,n){e.issues.length&&t.issues.push(...Dt(n,e.issues)),t.value[n]=e.value}const ff=E("$ZodArray",(e,t)=>{_e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const a=[];for(let i=0;i<o.length;i++){const l=o[i],s=t.element._zod.run({value:l,issues:[]},r);s instanceof Promise?a.push(s.then(u=>Yi(u,n,i))):Yi(s,n,i)}return a.length?Promise.all(a).then(()=>n):n}});function Br(e,t,n,r,o,a){const i=n in r;if(e.issues.length){if(o&&a&&!i)return;t.issues.push(...Dt(n,e.issues))}if(!i&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?i&&(t.value[n]=void 0):t.value[n]=e.value}function dc(e){var r,o,a,i;const t=Object.keys(e.shape);for(const l of t)if(!((i=(a=(o=(r=e.shape)==null?void 0:r[l])==null?void 0:o._zod)==null?void 0:a.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Id(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function hc(e,t,n,r,o,a){const i=[],l=o.keySet,s=o.catchall._zod,u=s.def.type,c=s.optin==="optional",h=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(u==="never"){i.push(d);continue}const f=s.run({value:t[d],issues:[]},r);f instanceof Promise?e.push(f.then(p=>Br(p,n,d,t,c,h))):Br(f,n,d,t,c,h)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const pf=E("$ZodObject",(e,t)=>{_e.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}const r=ro(()=>dc(t));he(e._zod,"propValues",()=>{const l=t.shape,s={};for(const u in l){const c=l[u]._zod;if(c.values){s[u]??(s[u]=new Set);for(const h of c.values)s[u].add(h)}}return s});const o=Vn,a=t.catchall;let i;e._zod.parse=(l,s)=>{i??(i=r.value);const u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const c=[],h=i.shape;for(const d of i.keys){const f=h[d],p=f._zod.optin==="optional",b=f._zod.optout==="optional",x=f._zod.run({value:u[d],issues:[]},s);x instanceof Promise?c.push(x.then(w=>Br(w,l,d,u,p,b))):Br(x,l,d,u,p,b)}return a?hc(c,u,l,s,r.value,e):c.length?Promise.all(c).then(()=>l):l}}),gf=E("$ZodObjectJIT",(e,t)=>{pf.init(e,t);const n=e._zod.parse,r=ro(()=>dc(t)),o=d=>{var S,v;const f=new Ph(["shape","payload","ctx"]),p=r.value,b=_=>{const y=qi(_);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const _ of p.keys)x[_]=`key_${w++}`;f.write("const newResult = {};");for(const _ of p.keys){const y=x[_],A=qi(_),I=d[_],R=((S=I==null?void 0:I._zod)==null?void 0:S.optin)==="optional",N=((v=I==null?void 0:I._zod)==null?void 0:v.optout)==="optional";f.write(`const ${y} = ${b(_)};`),R&&N?f.write(`
3
+ `))}}const Dh={major:4,minor:4,patch:3},_e=N("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Dh;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const i of a._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const a=(l,s,u)=>{let c=vn(l),h;for(const d of s){if(d._zod.def.when){if(Hd(l)||!d._zod.def.when(l))continue}else if(c)continue;const f=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Sn;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,l.issues.length!==f&&(c||(c=vn(l,f)))});else{if(l.issues.length===f)continue;c||(c=vn(l,f))}}return h?h.then(()=>l):l},i=(l,s,u)=>{if(vn(l))return l.aborted=!0,l;const c=a(s,r,u);if(c instanceof Promise){if(u.async===!1)throw new Sn;return c.then(h=>e._zod.parse(h,u))}return e._zod.parse(c,u)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const c=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(h=>i(h,l,s)):i(c,l,s)}const u=e._zod.parse(l,s);if(u instanceof Promise){if(s.async===!1)throw new Sn;return u.then(c=>a(c,r,s))}return a(u,r,s)}}de(e,"~standard",()=>({validate:a=>{var i;try{const l=Ud(e,a);return l.success?{value:l.data}:{issues:(i=l.error)==null?void 0:i.issues}}catch{return Zd(e,a).then(s=>{var u;return s.success?{value:s.data}:{issues:(u=s.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),di=N("$ZodString",(e,t)=>{var n;_e.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Sh(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Te=N("$ZodStringFormat",(e,t)=>{uo.init(e,t),di.init(e,t)}),Fh=N("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=sh),Te.init(e,t)}),Hh=N("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Qi(r))}else t.pattern??(t.pattern=Qi());Te.init(e,t)}),Gh=N("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ch),Te.init(e,t)}),Wh=N("$ZodURL",(e,t)=>{Te.init(e,t),e._zod.check=n=>{var r;try{const o=n.value.trim();if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===bh.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const a=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.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(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.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=a.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Uh=N("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=dh()),Te.init(e,t)}),Zh=N("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ih),Te.init(e,t)}),qh=N("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=th),Te.init(e,t)}),Vh=N("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=nh),Te.init(e,t)}),Yh=N("$ZodULID",(e,t)=>{t.pattern??(t.pattern=rh),Te.init(e,t)}),Kh=N("$ZodXID",(e,t)=>{t.pattern??(t.pattern=oh),Te.init(e,t)}),Jh=N("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ah),Te.init(e,t)}),Xh=N("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=wh(t)),Te.init(e,t)}),Qh=N("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=vh),Te.init(e,t)}),ef=N("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=kh(t)),Te.init(e,t)}),tf=N("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=lh),Te.init(e,t)}),nf=N("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=hh),Te.init(e,t),e._zod.bag.format="ipv4"}),rf=N("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=fh),Te.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})}}}),of=N("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ph),Te.init(e,t)}),af=N("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gh),Te.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,a]=r;if(!a)throw new Error;const i=Number(a);if(`${i}`!==a)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function pc(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const lf=N("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=mh),Te.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{pc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function sf(e){if(!lc.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return pc(n)}const cf=N("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=lc),Te.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{sf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),uf=N("$ZodE164",(e,t)=>{t.pattern??(t.pattern=xh),Te.init(e,t)});function df(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const hf=N("$ZodJWT",(e,t)=>{Te.init(e,t),e._zod.check=n=>{df(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),gc=N("$ZodNumber",(e,t)=>{_e.init(e,t),e._zod.pattern=e._zod.bag.pattern??uc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),n}}),ff=N("$ZodNumberFormat",(e,t)=>{Ih.init(e,t),gc.init(e,t)}),pf=N("$ZodBoolean",(e,t)=>{_e.init(e,t),e._zod.pattern=_h,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),gf=N("$ZodAny",(e,t)=>{_e.init(e,t),e._zod.parse=n=>n}),mf=N("$ZodUnknown",(e,t)=>{_e.init(e,t),e._zod.parse=n=>n}),bf=N("$ZodNever",(e,t)=>{_e.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function el(e,t,n){e.issues.length&&t.issues.push(...Ht(n,e.issues)),t.value[n]=e.value}const xf=N("$ZodArray",(e,t)=>{_e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const a=[];for(let i=0;i<o.length;i++){const l=o[i],s=t.element._zod.run({value:l,issues:[]},r);s instanceof Promise?a.push(s.then(u=>el(u,n,i))):el(s,n,i)}return a.length?Promise.all(a).then(()=>n):n}});function Hr(e,t,n,r,o,a){const i=n in r;if(e.issues.length){if(o&&a&&!i)return;t.issues.push(...Ht(n,e.issues))}if(!i&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?i&&(t.value[n]=void 0):t.value[n]=e.value}function mc(e){var r,o,a,i;const t=Object.keys(e.shape);for(const l of t)if(!((i=(a=(o=(r=e.shape)==null?void 0:r[l])==null?void 0:o._zod)==null?void 0:a.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Md(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function bc(e,t,n,r,o,a){const i=[],l=o.keySet,s=o.catchall._zod,u=s.def.type,c=s.optin==="optional",h=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(u==="never"){i.push(d);continue}const f=s.run({value:t[d],issues:[]},r);f instanceof Promise?e.push(f.then(p=>Hr(p,n,d,t,c,h))):Hr(f,n,d,t,c,h)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const vf=N("$ZodObject",(e,t)=>{_e.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}const r=lo(()=>mc(t));de(e._zod,"propValues",()=>{const l=t.shape,s={};for(const u in l){const c=l[u]._zod;if(c.values){s[u]??(s[u]=new Set);for(const h of c.values)s[u].add(h)}}return s});const o=Kn,a=t.catchall;let i;e._zod.parse=(l,s)=>{i??(i=r.value);const u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const c=[],h=i.shape;for(const d of i.keys){const f=h[d],p=f._zod.optin==="optional",b=f._zod.optout==="optional",x=f._zod.run({value:u[d],issues:[]},s);x instanceof Promise?c.push(x.then(w=>Hr(w,l,d,u,p,b))):Hr(x,l,d,u,p,b)}return a?bc(c,u,l,s,r.value,e):c.length?Promise.all(c).then(()=>l):l}}),kf=N("$ZodObjectJIT",(e,t)=>{vf.init(e,t);const n=e._zod.parse,r=lo(()=>mc(t)),o=d=>{var S,v;const f=new Bh(["shape","payload","ctx"]),p=r.value,b=_=>{const y=Xi(_);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const _ of p.keys)x[_]=`key_${w++}`;f.write("const newResult = {};");for(const _ of p.keys){const y=x[_],C=Xi(_),I=d[_],R=((S=I==null?void 0:I._zod)==null?void 0:S.optin)==="optional",E=((v=I==null?void 0:I._zod)==null?void 0:v.optout)==="optional";f.write(`const ${y} = ${b(_)};`),R&&E?f.write(`
4
4
  if (${y}.issues.length) {
5
- if (${A} in input) {
5
+ if (${C} in input) {
6
6
  payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
7
7
  ...iss,
8
- path: iss.path ? [${A}, ...iss.path] : [${A}]
8
+ path: iss.path ? [${C}, ...iss.path] : [${C}]
9
9
  })));
10
10
  }
11
11
  }
12
12
 
13
13
  if (${y}.value === undefined) {
14
- if (${A} in input) {
15
- newResult[${A}] = undefined;
14
+ if (${C} in input) {
15
+ newResult[${C}] = undefined;
16
16
  }
17
17
  } else {
18
- newResult[${A}] = ${y}.value;
18
+ newResult[${C}] = ${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 ? [${A}, ...iss.path] : [${A}]
25
+ path: iss.path ? [${C}, ...iss.path] : [${C}]
26
26
  })));
27
27
  }
28
28
 
29
29
  if (${y}.value === undefined) {
30
- if (${A} in input) {
31
- newResult[${A}] = undefined;
30
+ if (${C} in input) {
31
+ newResult[${C}] = undefined;
32
32
  }
33
33
  } else {
34
- newResult[${A}] = ${y}.value;
34
+ newResult[${C}] = ${y}.value;
35
35
  }
36
36
 
37
37
  `):f.write(`
38
- const ${y}_present = ${A} in input;
38
+ const ${y}_present = ${C} 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 ? [${A}, ...iss.path] : [${A}]
42
+ path: iss.path ? [${C}, ...iss.path] : [${C}]
43
43
  })));
44
44
  }
45
45
  if (!${y}_present && !${y}.issues.length) {
@@ -47,54 +47,53 @@
47
47
  code: "invalid_type",
48
48
  expected: "nonoptional",
49
49
  input: undefined,
50
- path: [${A}]
50
+ path: [${C}]
51
51
  });
52
52
  }
53
53
 
54
54
  if (${y}_present) {
55
55
  if (${y}.value === undefined) {
56
- newResult[${A}] = undefined;
56
+ newResult[${C}] = undefined;
57
57
  } else {
58
- newResult[${A}] = ${y}.value;
58
+ newResult[${C}] = ${y}.value;
59
59
  }
60
60
  }
61
61
 
62
- `)}f.write("payload.value = newResult;"),f.write("return payload;");const k=f.compile();return(_,y)=>k(d,_,y)};let a;const i=Vn,l=!ti.jitless,u=l&&Ad.value,c=t.catchall;let h;e._zod.parse=(d,f)=>{h??(h=r.value);const p=d.value;return i(p)?l&&u&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(a||(a=o(t.shape)),d=a(d,f),c?hc([],p,d,f,h,e):d):n(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function Ki(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const o=e.filter(a=>!mn(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(i=>Pt(i,r,Mt())))}),t)}const fc=E("$ZodUnion",(e,t)=>{_e.init(e,t),he(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),he(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),he(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),he(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>ri(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let a=!1;const i=[];for(const l of t.options){const s=l._zod.run({value:r.value,issues:[]},o);if(s instanceof Promise)i.push(s),a=!0;else{if(s.issues.length===0)return s;i.push(s)}}return a?Promise.all(i).then(l=>Ki(l,r,e,o)):Ki(i,r,e,o)}}),mf=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,fc.init(e,t);const n=e._zod.parse;he(e._zod,"propValues",()=>{const o={};for(const a of t.options){const i=a._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[l,s]of Object.entries(i)){o[l]||(o[l]=new Set);for(const u of s)o[l].add(u)}}return o});const r=ro(()=>{var i;const o=t.options,a=new Map;for(const l of o){const s=(i=l._zod.propValues)==null?void 0:i[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const u of s){if(a.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);a.set(u,l)}}return a});e._zod.parse=(o,a)=>{const i=o.value;if(!Vn(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),o;const l=r.value.get(i==null?void 0:i[t.discriminator]);return l?l._zod.run(o,a):t.unionFallback||a.direction==="backward"?n(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:i,path:[t.discriminator],inst:e}),o)}}),bf=E("$ZodIntersection",(e,t)=>{_e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,a=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(([s,u])=>Ji(n,s,u)):Ji(n,a,i)}});function la(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(Sn(e)&&Sn(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of r){const i=la(e[a],t[a]);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};o[a]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],a=t[r],i=la(o,a);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ji(e,t,n){const r=new Map;let o;for(const l of t.issues)if(l.code==="unrecognized_keys"){o??(o=l);for(const s of l.keys)r.has(s)||r.set(s,{}),r.get(s).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const s of l.keys)r.has(s)||r.set(s,{}),r.get(s).r=!0;else e.issues.push(l);const a=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(a.length&&o&&e.issues.push({...o,keys:a}),mn(e))return e;const i=la(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const xf=E("$ZodTuple",(e,t)=>{_e.init(e,t);const n=t.items;e._zod.parse=(r,o)=>{const a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const i=[],l=Xi(n,"optin"),s=Xi(n,"optout");if(!t.rest){if(a.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}const u=new Array(n.length);for(let c=0;c<n.length;c++){const h=n[c]._zod.run({value:a[c],issues:[]},o);h instanceof Promise?i.push(h.then(d=>{u[c]=d})):u[c]=h}if(t.rest){let c=n.length-1;const h=a.slice(n.length);for(const d of h){c++;const f=t.rest._zod.run({value:d,issues:[]},o);f instanceof Promise?i.push(f.then(p=>Qi(p,r,c))):Qi(f,r,c)}}return i.length?Promise.all(i).then(()=>el(u,r,n,a,s)):el(u,r,n,a,s)}});function Xi(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function Qi(e,t,n){e.issues.length&&t.issues.push(...Dt(n,e.issues)),t.value[n]=e.value}function el(e,t,n,r,o){for(let a=0;a<n.length;a++){const i=e[a],l=a<r.length;if(i.issues.length){if(!l&&a>=o){t.value.length=a;break}t.issues.push(...Dt(a,i.issues))}t.value[a]=i.value}for(let a=t.value.length-1;a>=r.length&&(n[a]._zod.optout==="optional"&&t.value[a]===void 0);a--)t.value.length=a;return t}const vf=E("$ZodRecord",(e,t)=>{_e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Sn(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const a=[],i=t.keyType._zod.values;if(i){n.value={};const l=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);const c=t.keyType._zod.run({value:u,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>Pt(f,r,Mt())),input:u,path:[u],inst:e});continue}const h=c.value,d=t.valueType._zod.run({value:o[u],issues:[]},r);d instanceof Promise?a.push(d.then(f=>{f.issues.length&&n.issues.push(...Dt(u,f.issues)),n.value[h]=f.value})):(d.issues.length&&n.issues.push(...Dt(u,d.issues)),n.value[h]=d.value)}let s;for(const u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(o)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&ac.test(l)&&s.issues.length){const h=t.keyType._zod.run({value:Number(l),issues:[]},r);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]=o[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(h=>Pt(h,r,Mt())),input:l,path:[l],inst:e});continue}const c=t.valueType._zod.run({value:o[l],issues:[]},r);c instanceof Promise?a.push(c.then(h=>{h.issues.length&&n.issues.push(...Dt(l,h.issues)),n.value[s.value]=h.value})):(c.issues.length&&n.issues.push(...Dt(l,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),kf=E("$ZodEnum",(e,t)=>{_e.init(e,t);const n=Ks(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>yd.has(typeof o)).map(o=>typeof o=="string"?$n(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),wf=E("$ZodLiteral",(e,t)=>{if(_e.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?$n(r):r?$n(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),Sf=E("$ZodTransform",(e,t)=>{_e.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ys(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n.fallback=!0,n));if(o instanceof Promise)throw new vn;return n.value=o,n.fallback=!0,n}});function tl(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const pc=E("$ZodOptional",(e,t)=>{_e.init(e,t),e._zod.optin="optional",e._zod.optout="optional",he(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),he(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ri(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=n.value,a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>tl(i,o)):tl(a,o)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),$f=E("$ZodExactOptional",(e,t)=>{pc.init(e,t),he(e._zod,"values",()=>t.innerType._zod.values),he(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),_f=E("$ZodNullable",(e,t)=>{_e.init(e,t),he(e._zod,"optin",()=>t.innerType._zod.optin),he(e._zod,"optout",()=>t.innerType._zod.optout),he(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ri(n.source)}|null)$`):void 0}),he(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Cf=E("$ZodDefault",(e,t)=>{_e.init(e,t),e._zod.optin="optional",he(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>nl(a,t)):nl(o,t)}});function nl(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Af=E("$ZodPrefault",(e,t)=>{_e.init(e,t),e._zod.optin="optional",he(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),yf=E("$ZodNonOptional",(e,t)=>{_e.init(e,t),he(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>rl(a,e)):rl(o,e)}});function rl(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 If=E("$ZodCatch",(e,t)=>{_e.init(e,t),e._zod.optin="optional",he(e._zod,"optout",()=>t.innerType._zod.optout),he(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>Pt(i,r,Mt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>Pt(a,r,Mt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),gc=E("$ZodPipe",(e,t)=>{_e.init(e,t),he(e._zod,"values",()=>t.in._zod.values),he(e._zod,"optin",()=>t.in._zod.optin),he(e._zod,"optout",()=>t.out._zod.optout),he(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(i=>fr(i,t.in,r)):fr(a,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(a=>fr(a,t.out,r)):fr(o,t.out,r)}});function fr(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 Rf=E("$ZodPreprocess",(e,t)=>{gc.init(e,t)}),Tf=E("$ZodReadonly",(e,t)=>{_e.init(e,t),he(e._zod,"propValues",()=>t.innerType._zod.propValues),he(e._zod,"values",()=>t.innerType._zod.values),he(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),he(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(ol):ol(o)}});function ol(e){return e.value=Object.freeze(e.value),e}const Nf=E("$ZodLazy",(e,t)=>{_e.init(e,t),he(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),he(e._zod,"pattern",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.pattern}),he(e._zod,"propValues",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.propValues}),he(e._zod,"optin",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optin)??void 0}),he(e._zod,"optout",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optout)??void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Ef=E("$ZodCustom",(e,t)=>{rt.init(e,t),_e.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(a=>al(a,n,r,e));al(o,n,r,e)}});function al(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Yn(o))}}var il;class Mf{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Pf(){return new Mf}(il=globalThis).__zod_globalRegistry??(il.__zod_globalRegistry=Pf());const Fn=globalThis.__zod_globalRegistry;function Of(e,t){return new e({type:"string",...G(t)})}function Lf(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...G(t)})}function ll(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...G(t)})}function zf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...G(t)})}function Bf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...G(t)})}function jf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...G(t)})}function Df(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...G(t)})}function Ff(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...G(t)})}function Hf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...G(t)})}function Gf(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...G(t)})}function Wf(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...G(t)})}function Uf(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...G(t)})}function Zf(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...G(t)})}function qf(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...G(t)})}function Vf(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...G(t)})}function Yf(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...G(t)})}function Kf(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...G(t)})}function Jf(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...G(t)})}function Xf(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...G(t)})}function Qf(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...G(t)})}function ep(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...G(t)})}function tp(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...G(t)})}function np(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...G(t)})}function rp(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...G(t)})}function op(e,t){return new e({type:"string",format:"date",check:"string_format",...G(t)})}function ap(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...G(t)})}function ip(e,t){return new e({type:"string",format:"duration",check:"string_format",...G(t)})}function lp(e,t){return new e({type:"number",checks:[],...G(t)})}function sp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...G(t)})}function cp(e,t){return new e({type:"boolean",...G(t)})}function up(e){return new e({type:"any"})}function dp(e){return new e({type:"unknown"})}function hp(e,t){return new e({type:"never",...G(t)})}function sl(e,t){return new lc({check:"less_than",...G(t),value:e,inclusive:!1})}function bo(e,t){return new lc({check:"less_than",...G(t),value:e,inclusive:!0})}function cl(e,t){return new sc({check:"greater_than",...G(t),value:e,inclusive:!1})}function xo(e,t){return new sc({check:"greater_than",...G(t),value:e,inclusive:!0})}function ul(e,t){return new Sh({check:"multiple_of",...G(t),value:e})}function mc(e,t){return new _h({check:"max_length",...G(t),maximum:e})}function jr(e,t){return new Ch({check:"min_length",...G(t),minimum:e})}function bc(e,t){return new Ah({check:"length_equals",...G(t),length:e})}function fp(e,t){return new yh({check:"string_format",format:"regex",...G(t),pattern:e})}function pp(e){return new Ih({check:"string_format",format:"lowercase",...G(e)})}function gp(e){return new Rh({check:"string_format",format:"uppercase",...G(e)})}function mp(e,t){return new Th({check:"string_format",format:"includes",...G(t),includes:e})}function bp(e,t){return new Nh({check:"string_format",format:"starts_with",...G(t),prefix:e})}function xp(e,t){return new Eh({check:"string_format",format:"ends_with",...G(t),suffix:e})}function yn(e){return new Mh({check:"overwrite",tx:e})}function vp(e){return yn(t=>t.normalize(e))}function kp(){return yn(e=>e.trim())}function wp(){return yn(e=>e.toLowerCase())}function Sp(){return yn(e=>e.toUpperCase())}function $p(){return yn(e=>Cd(e))}function _p(e,t,n){return new e({type:"array",element:t,...G(n)})}function Cp(e,t,n){return new e({type:"custom",check:"custom",fn:t,...G(n)})}function Ap(e,t){const n=yp(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Yn(o,r.value,n._zod.def));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=n),a.continue??(a.continue=!n._zod.def.abort),r.issues.push(Yn(a))}},e(r.value,r)),t);return n}function yp(e,t){const n=new rt({check:"custom",...G(t)});return n._zod.check=e,n}function xc(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)??Fn,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 Te(e,t,n={path:[],schemaPath:[]}){var c,h;var r;const o=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const l=(h=(c=e._zod).toJSONSchema)==null?void 0:h.call(c);if(l)i.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{const p=i.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,p,d)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),Te(f,t,d),t.seen.get(f).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&Qe(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function vc(e,t){var i,l,s,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const c of e.seen.entries()){const h=(i=e.metadataRegistry.get(c[0]))==null?void 0:i.id;if(h){const d=r.get(h);if(d&&d!==c[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(h,c[0])}}const o=c=>{var b;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(c[0]))==null?void 0:b.id,w=e.external.uri??(S=>S);if(x)return{ref:w(x)};const k=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=k,{defId:k,ref:`${w("__shared")}#/${h}/${k}`}}if(c[1]===n)return{ref:"#"};const f=`#/${h}/`,p=c[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},a=c=>{if(c[1].schema.$ref)return;const h=c[1],{ref:d,defId:f}=o(c);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 c of e.seen.entries()){const h=c[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.cycle)==null?void 0:l.join("/")}/<root>
62
+ `)}f.write("payload.value = newResult;"),f.write("return payload;");const k=f.compile();return(_,y)=>k(d,_,y)};let a;const i=Kn,l=!ai.jitless,u=l&&Ed.value,c=t.catchall;let h;e._zod.parse=(d,f)=>{h??(h=r.value);const p=d.value;return i(p)?l&&u&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(a||(a=o(t.shape)),d=a(d,f),c?bc([],p,d,f,h,e):d):n(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function tl(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const o=e.filter(a=>!vn(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(i=>Ot(i,r,Pt())))}),t)}const xc=N("$ZodUnion",(e,t)=>{_e.init(e,t),de(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),de(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),de(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),de(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>li(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let a=!1;const i=[];for(const l of t.options){const s=l._zod.run({value:r.value,issues:[]},o);if(s instanceof Promise)i.push(s),a=!0;else{if(s.issues.length===0)return s;i.push(s)}}return a?Promise.all(i).then(l=>tl(l,r,e,o)):tl(i,r,e,o)}}),wf=N("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,xc.init(e,t);const n=e._zod.parse;de(e._zod,"propValues",()=>{const o={};for(const a of t.options){const i=a._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[l,s]of Object.entries(i)){o[l]||(o[l]=new Set);for(const u of s)o[l].add(u)}}return o});const r=lo(()=>{var i;const o=t.options,a=new Map;for(const l of o){const s=(i=l._zod.propValues)==null?void 0:i[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const u of s){if(a.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);a.set(u,l)}}return a});e._zod.parse=(o,a)=>{const i=o.value;if(!Kn(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),o;const l=r.value.get(i==null?void 0:i[t.discriminator]);return l?l._zod.run(o,a):t.unionFallback||a.direction==="backward"?n(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:i,path:[t.discriminator],inst:e}),o)}}),Sf=N("$ZodIntersection",(e,t)=>{_e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,a=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(([s,u])=>nl(n,s,u)):nl(n,a,i)}});function da(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(Cn(e)&&Cn(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of r){const i=da(e[a],t[a]);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};o[a]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],a=t[r],i=da(o,a);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function nl(e,t,n){const r=new Map;let o;for(const l of t.issues)if(l.code==="unrecognized_keys"){o??(o=l);for(const s of l.keys)r.has(s)||r.set(s,{}),r.get(s).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const s of l.keys)r.has(s)||r.set(s,{}),r.get(s).r=!0;else e.issues.push(l);const a=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(a.length&&o&&e.issues.push({...o,keys:a}),vn(e))return e;const i=da(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const $f=N("$ZodTuple",(e,t)=>{_e.init(e,t);const n=t.items;e._zod.parse=(r,o)=>{const a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const i=[],l=rl(n,"optin"),s=rl(n,"optout");if(!t.rest){if(a.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}const u=new Array(n.length);for(let c=0;c<n.length;c++){const h=n[c]._zod.run({value:a[c],issues:[]},o);h instanceof Promise?i.push(h.then(d=>{u[c]=d})):u[c]=h}if(t.rest){let c=n.length-1;const h=a.slice(n.length);for(const d of h){c++;const f=t.rest._zod.run({value:d,issues:[]},o);f instanceof Promise?i.push(f.then(p=>ol(p,r,c))):ol(f,r,c)}}return i.length?Promise.all(i).then(()=>al(u,r,n,a,s)):al(u,r,n,a,s)}});function rl(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function ol(e,t,n){e.issues.length&&t.issues.push(...Ht(n,e.issues)),t.value[n]=e.value}function al(e,t,n,r,o){for(let a=0;a<n.length;a++){const i=e[a],l=a<r.length;if(i.issues.length){if(!l&&a>=o){t.value.length=a;break}t.issues.push(...Ht(a,i.issues))}t.value[a]=i.value}for(let a=t.value.length-1;a>=r.length&&(n[a]._zod.optout==="optional"&&t.value[a]===void 0);a--)t.value.length=a;return t}const _f=N("$ZodRecord",(e,t)=>{_e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Cn(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const a=[],i=t.keyType._zod.values;if(i){n.value={};const l=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);const c=t.keyType._zod.run({value:u,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>Ot(f,r,Pt())),input:u,path:[u],inst:e});continue}const h=c.value,d=t.valueType._zod.run({value:o[u],issues:[]},r);d instanceof Promise?a.push(d.then(f=>{f.issues.length&&n.issues.push(...Ht(u,f.issues)),n.value[h]=f.value})):(d.issues.length&&n.issues.push(...Ht(u,d.issues)),n.value[h]=d.value)}let s;for(const u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(o)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&uc.test(l)&&s.issues.length){const h=t.keyType._zod.run({value:Number(l),issues:[]},r);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]=o[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(h=>Ot(h,r,Pt())),input:l,path:[l],inst:e});continue}const c=t.valueType._zod.run({value:o[l],issues:[]},r);c instanceof Promise?a.push(c.then(h=>{h.issues.length&&n.issues.push(...Ht(l,h.issues)),n.value[s.value]=h.value})):(c.issues.length&&n.issues.push(...Ht(l,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Cf=N("$ZodEnum",(e,t)=>{_e.init(e,t);const n=tc(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Nd.has(typeof o)).map(o=>typeof o=="string"?An(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),Af=N("$ZodLiteral",(e,t)=>{if(_e.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?An(r):r?An(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),yf=N("$ZodTransform",(e,t)=>{_e.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new ec(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n.fallback=!0,n));if(o instanceof Promise)throw new Sn;return n.value=o,n.fallback=!0,n}});function il(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const vc=N("$ZodOptional",(e,t)=>{_e.init(e,t),e._zod.optin="optional",e._zod.optout="optional",de(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),de(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${li(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=n.value,a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>il(i,o)):il(a,o)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),If=N("$ZodExactOptional",(e,t)=>{vc.init(e,t),de(e._zod,"values",()=>t.innerType._zod.values),de(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Rf=N("$ZodNullable",(e,t)=>{_e.init(e,t),de(e._zod,"optin",()=>t.innerType._zod.optin),de(e._zod,"optout",()=>t.innerType._zod.optout),de(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${li(n.source)}|null)$`):void 0}),de(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Tf=N("$ZodDefault",(e,t)=>{_e.init(e,t),e._zod.optin="optional",de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>ll(a,t)):ll(o,t)}});function ll(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Ef=N("$ZodPrefault",(e,t)=>{_e.init(e,t),e._zod.optin="optional",de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Nf=N("$ZodNonOptional",(e,t)=>{_e.init(e,t),de(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>sl(a,e)):sl(o,e)}});function sl(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 Mf=N("$ZodCatch",(e,t)=>{_e.init(e,t),e._zod.optin="optional",de(e._zod,"optout",()=>t.innerType._zod.optout),de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>Ot(i,r,Pt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>Ot(a,r,Pt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),kc=N("$ZodPipe",(e,t)=>{_e.init(e,t),de(e._zod,"values",()=>t.in._zod.values),de(e._zod,"optin",()=>t.in._zod.optin),de(e._zod,"optout",()=>t.out._zod.optout),de(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(i=>mr(i,t.in,r)):mr(a,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(a=>mr(a,t.out,r)):mr(o,t.out,r)}});function mr(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 Pf=N("$ZodPreprocess",(e,t)=>{kc.init(e,t)}),Of=N("$ZodReadonly",(e,t)=>{_e.init(e,t),de(e._zod,"propValues",()=>t.innerType._zod.propValues),de(e._zod,"values",()=>t.innerType._zod.values),de(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),de(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(cl):cl(o)}});function cl(e){return e.value=Object.freeze(e.value),e}const Lf=N("$ZodLazy",(e,t)=>{_e.init(e,t),de(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),de(e._zod,"pattern",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.pattern}),de(e._zod,"propValues",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.propValues}),de(e._zod,"optin",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optin)??void 0}),de(e._zod,"optout",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optout)??void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),zf=N("$ZodCustom",(e,t)=>{nt.init(e,t),_e.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(a=>ul(a,n,r,e));ul(o,n,r,e)}});function ul(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Jn(o))}}var dl;class jf{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Bf(){return new jf}(dl=globalThis).__zod_globalRegistry??(dl.__zod_globalRegistry=Bf());const Gn=globalThis.__zod_globalRegistry;function Df(e,t){return new e({type:"string",...Z(t)})}function Ff(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Z(t)})}function hl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Z(t)})}function Hf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Z(t)})}function Gf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Z(t)})}function Wf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Z(t)})}function Uf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Z(t)})}function Zf(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Z(t)})}function qf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Z(t)})}function Vf(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Z(t)})}function Yf(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Z(t)})}function Kf(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Z(t)})}function Jf(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Z(t)})}function Xf(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Z(t)})}function Qf(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Z(t)})}function ep(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Z(t)})}function tp(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Z(t)})}function np(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Z(t)})}function rp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Z(t)})}function op(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Z(t)})}function ap(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Z(t)})}function ip(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Z(t)})}function lp(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Z(t)})}function sp(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Z(t)})}function cp(e,t){return new e({type:"string",format:"date",check:"string_format",...Z(t)})}function up(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Z(t)})}function dp(e,t){return new e({type:"string",format:"duration",check:"string_format",...Z(t)})}function hp(e,t){return new e({type:"number",checks:[],...Z(t)})}function fp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Z(t)})}function pp(e,t){return new e({type:"boolean",...Z(t)})}function gp(e){return new e({type:"any"})}function mp(e){return new e({type:"unknown"})}function bp(e,t){return new e({type:"never",...Z(t)})}function fl(e,t){return new hc({check:"less_than",...Z(t),value:e,inclusive:!1})}function wo(e,t){return new hc({check:"less_than",...Z(t),value:e,inclusive:!0})}function pl(e,t){return new fc({check:"greater_than",...Z(t),value:e,inclusive:!1})}function So(e,t){return new fc({check:"greater_than",...Z(t),value:e,inclusive:!0})}function gl(e,t){return new yh({check:"multiple_of",...Z(t),value:e})}function wc(e,t){return new Rh({check:"max_length",...Z(t),maximum:e})}function Gr(e,t){return new Th({check:"min_length",...Z(t),minimum:e})}function Sc(e,t){return new Eh({check:"length_equals",...Z(t),length:e})}function xp(e,t){return new Nh({check:"string_format",format:"regex",...Z(t),pattern:e})}function vp(e){return new Mh({check:"string_format",format:"lowercase",...Z(e)})}function kp(e){return new Ph({check:"string_format",format:"uppercase",...Z(e)})}function wp(e,t){return new Oh({check:"string_format",format:"includes",...Z(t),includes:e})}function Sp(e,t){return new Lh({check:"string_format",format:"starts_with",...Z(t),prefix:e})}function $p(e,t){return new zh({check:"string_format",format:"ends_with",...Z(t),suffix:e})}function Tn(e){return new jh({check:"overwrite",tx:e})}function _p(e){return Tn(t=>t.normalize(e))}function Cp(){return Tn(e=>e.trim())}function Ap(){return Tn(e=>e.toLowerCase())}function yp(){return Tn(e=>e.toUpperCase())}function Ip(){return Tn(e=>Td(e))}function Rp(e,t,n){return new e({type:"array",element:t,...Z(n)})}function Tp(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Z(n)})}function Ep(e,t){const n=Np(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Jn(o,r.value,n._zod.def));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=n),a.continue??(a.continue=!n._zod.def.abort),r.issues.push(Jn(a))}},e(r.value,r)),t);return n}function Np(e,t){const n=new nt({check:"custom",...Z(t)});return n._zod.check=e,n}function $c(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)??Gn,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 Ee(e,t,n={path:[],schemaPath:[]}){var c,h;var r;const o=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const l=(h=(c=e._zod).toJSONSchema)==null?void 0:h.call(c);if(l)i.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{const p=i.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,p,d)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),Ee(f,t,d),t.seen.get(f).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&Xe(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function _c(e,t){var i,l,s,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const c of e.seen.entries()){const h=(i=e.metadataRegistry.get(c[0]))==null?void 0:i.id;if(h){const d=r.get(h);if(d&&d!==c[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(h,c[0])}}const o=c=>{var b;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(c[0]))==null?void 0:b.id,w=e.external.uri??(S=>S);if(x)return{ref:w(x)};const k=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=k,{defId:k,ref:`${w("__shared")}#/${h}/${k}`}}if(c[1]===n)return{ref:"#"};const f=`#/${h}/`,p=c[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},a=c=>{if(c[1].schema.$ref)return;const h=c[1],{ref:d,defId:f}=o(c);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 c of e.seen.entries()){const h=c[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.cycle)==null?void 0:l.join("/")}/<root>
63
63
 
64
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const h=c[1];if(t===c[0]){a(c);continue}if(e.external){const f=(s=e.external.registry.get(c[0]))==null?void 0:s.id;if(t!==c[0]&&f){a(c);continue}}if((u=e.metadataRegistry.get(c[0]))==null?void 0:u.id){a(c);continue}if(h.cycle){a(c);continue}if(h.count>1&&e.reused==="ref"){a(c);continue}}}function kc(e,t){var l,s,u,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=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){r(b);const w=e.seen.get(b),k=w.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(k)):Object.assign(f,k),Object.assign(f,p),h._zod.parent===b)for(const v in f)v==="$ref"||v==="allOf"||v in p||delete f[v];if(k.$ref&&w.def)for(const v in f)v==="$ref"||v==="allOf"||v in w.def&&JSON.stringify(f[v])===JSON.stringify(w.def[v])&&delete f[v]}const x=h._zod.parent;if(x&&x!==b){r(x);const w=e.seen.get(x);if(w!=null&&w.schema.$ref&&(f.$ref=w.schema.$ref,w.def))for(const k in f)k==="$ref"||k==="allOf"||k in w.def&&JSON.stringify(f[k])===JSON.stringify(w.def[k])&&delete f[k]}e.override({zodSchema:h,jsonSchema:f,path:d.path??[]})};for(const h of[...e.seen.entries()].reverse())r(h[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(s=e.external.registry.get(t))==null?void 0:s.id;if(!h)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(h)}Object.assign(o,n.def??n.schema);const a=(u=e.metadataRegistry.get(t))==null?void 0:u.id;a!==void 0&&o.id===a&&delete o.id;const i=((c=e.external)==null?void 0:c.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,i[d.defId]=d.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const h=JSON.parse(JSON.stringify(o));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:Dr(t,"input",e.processors),output:Dr(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function Qe(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Qe(r.element,n);if(r.type==="set")return Qe(r.valueType,n);if(r.type==="lazy")return Qe(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Qe(r.innerType,n);if(r.type==="intersection")return Qe(r.left,n)||Qe(r.right,n);if(r.type==="record"||r.type==="map")return Qe(r.keyType,n)||Qe(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Qe(r.in,n)||Qe(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Qe(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Qe(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Qe(o,n))return!0;return!!(r.rest&&Qe(r.rest,n))}return!1}const Ip=(e,t={})=>n=>{const r=xc({...n,processors:t});return Te(e,r),vc(r,e),kc(r,e)},Dr=(e,t,n={})=>r=>{const{libraryOptions:o,target:a}=r??{},i=xc({...o??{},target:a,io:t,processors:n});return Te(e,i),vc(i,e),kc(i,e)},Rp={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Tp=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:a,maximum:i,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(o.minLength=a),typeof i=="number"&&(o.maxLength=i),l&&(o.format=Rp[l]??l,o.format===""&&delete o.format,l==="time"&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){const c=[...s];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},Np=(e,t,n,r)=>{const o=n,{minimum:a,maximum:i,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number";const h=typeof c=="number"&&c>=(a??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";h?f?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c:typeof a=="number"&&(o.minimum=a),d?f?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u:typeof i=="number"&&(o.maximum=i),typeof s=="number"&&(o.multipleOf=s)},Ep=(e,t,n,r)=>{n.type="boolean"},Mp=(e,t,n,r)=>{n.not={}},Pp=(e,t,n,r)=>{},Op=(e,t,n,r)=>{},Lp=(e,t,n,r)=>{const o=e._zod.def,a=Ks(o.entries);a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),n.enum=a},zp=(e,t,n,r)=>{const o=e._zod.def,a=[];for(const i of o.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(i))}else a.push(i);if(a.length!==0)if(a.length===1){const i=a[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),a.every(i=>typeof i=="boolean")&&(n.type="boolean"),a.every(i=>i===null)&&(n.type="null"),n.enum=a},Bp=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},jp=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Dp=(e,t,n,r)=>{const o=n,a=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=Te(a.element,t,{...r,path:[...r.path,"items"]})},Fp=(e,t,n,r)=>{var u;const o=n,a=e._zod.def;o.type="object",o.properties={};const i=a.shape;for(const c in i)o.properties[c]=Te(i[c],t,{...r,path:[...r.path,"properties",c]});const l=new Set(Object.keys(i)),s=new Set([...l].filter(c=>{const h=a.shape[c]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));s.size>0&&(o.required=Array.from(s)),((u=a.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:a.catchall?a.catchall&&(o.additionalProperties=Te(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},Hp=(e,t,n,r)=>{const o=e._zod.def,a=o.inclusive===!1,i=o.options.map((l,s)=>Te(l,t,{...r,path:[...r.path,a?"oneOf":"anyOf",s]}));a?n.oneOf=i:n.anyOf=i},Gp=(e,t,n,r)=>{const o=e._zod.def,a=Te(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Te(o.right,t,{...r,path:[...r.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(a)?a.allOf:[a],...l(i)?i.allOf:[i]];n.allOf=s},Wp=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=a.items.map((d,f)=>Te(d,t,{...r,path:[...r.path,i,f]})),u=a.rest?Te(a.rest,t,{...r,path:[...r.path,l,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=s,u&&(o.items=u)):t.target==="openapi-3.0"?(o.items={anyOf:s},u&&o.items.anyOf.push(u),o.minItems=s.length,u||(o.maxItems=s.length)):(o.items=s,u&&(o.additionalItems=u));const{minimum:c,maximum:h}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof h=="number"&&(o.maxItems=h)},Up=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="object";const i=a.keyType,l=i._zod.bag,s=l==null?void 0:l.patterns;if(a.mode==="loose"&&s&&s.size>0){const c=Te(a.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const h of s)o.patternProperties[h.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Te(a.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Te(a.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const u=i._zod.values;if(u){const c=[...u].filter(h=>typeof h=="string"||typeof h=="number");c.length>0&&(o.required=c)}},Zp=(e,t,n,r)=>{const o=e._zod.def,a=Te(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},qp=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},Vp=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},Yp=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},Kp=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},Jp=(e,t,n,r)=>{const o=e._zod.def,a=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?a?o.out:o.in:o.out;Te(i,t,r);const l=t.seen.get(e);l.ref=i},Xp=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.readOnly=!0},wc=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},Qp=(e,t,n,r)=>{const o=e._zod.innerType;Te(o,t,r);const a=t.seen.get(e);a.ref=o},eg=E("ZodISODateTime",(e,t)=>{qh.init(e,t),Ne.init(e,t)});function tg(e){return rp(eg,e)}const ng=E("ZodISODate",(e,t)=>{Vh.init(e,t),Ne.init(e,t)});function rg(e){return op(ng,e)}const og=E("ZodISOTime",(e,t)=>{Yh.init(e,t),Ne.init(e,t)});function ag(e){return ap(og,e)}const ig=E("ZodISODuration",(e,t)=>{Kh.init(e,t),Ne.init(e,t)});function lg(e){return ip(ig,e)}const sg=(e,t)=>{ec.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>jd(e,n)},flatten:{value:n=>Bd(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ia,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ia,2)}},isEmpty:{get(){return e.issues.length===0}}})},lt=E("ZodError",sg,{Parent:Error}),cg=ai(lt),ug=ii(lt),dg=oo(lt),hg=ao(lt),fg=Hd(lt),pg=Gd(lt),gg=Wd(lt),mg=Ud(lt),bg=Zd(lt),xg=qd(lt),vg=Vd(lt),kg=Yd(lt),dl=new WeakMap;function rr(e,t,n){const r=Object.getPrototypeOf(e);let o=dl.get(r);if(o||(o=new Set,dl.set(r,o)),!o.has(t)){o.add(t);for(const a in n){const i=n[a];Object.defineProperty(r,a,{configurable:!0,enumerable:!1,get(){const l=i.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const Ae=E("ZodType",(e,t)=>(_e.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Dr(e,"input"),output:Dr(e,"output")}}),e.toJSONSchema=Ip(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>cg(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>dg(e,n,r),e.parseAsync=async(n,r)=>ug(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>hg(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>fg(e,n,r),e.decode=(n,r)=>pg(e,n,r),e.encodeAsync=async(n,r)=>gg(e,n,r),e.decodeAsync=async(n,r)=>mg(e,n,r),e.safeEncode=(n,r)=>bg(e,n,r),e.safeDecode=(n,r)=>xg(e,n,r),e.safeEncodeAsync=async(n,r)=>vg(e,n,r),e.safeDecodeAsync=async(n,r)=>kg(e,n,r),rr(e,"ZodType",{check(...n){const r=this.def;return this.clone(Gt(r,{checks:[...r.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Wt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(mm(n,r))},superRefine(n,r){return this.check(bm(n,r))},overwrite(n){return this.check(yn(n))},optional(){return ml(this)},exactOptional(){return tm(this)},nullable(){return bl(this)},nullish(){return ml(bl(this))},nonoptional(n){return lm(this,n)},array(){return re(this)},or(n){return D([this,n])},and(n){return Kg(this,n)},transform(n){return xl(this,Ac(n))},default(n){return om(this,n)},prefault(n){return im(this,n)},catch(n){return cm(this,n)},pipe(n){return xl(this,n)},readonly(){return hm(this)},describe(n){const r=this.clone();return Fn.add(r,{description:n}),r},meta(...n){if(n.length===0)return Fn.get(this);const r=this.clone();return Fn.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=Fn.get(e))==null?void 0:n.description},configurable:!0}),e)),Sc=E("_ZodString",(e,t)=>{li.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Tp(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,rr(e,"_ZodString",{regex(...r){return this.check(fp(...r))},includes(...r){return this.check(mp(...r))},startsWith(...r){return this.check(bp(...r))},endsWith(...r){return this.check(xp(...r))},min(...r){return this.check(jr(...r))},max(...r){return this.check(mc(...r))},length(...r){return this.check(bc(...r))},nonempty(...r){return this.check(jr(1,...r))},lowercase(r){return this.check(pp(r))},uppercase(r){return this.check(gp(r))},trim(){return this.check(kp())},normalize(...r){return this.check(vp(...r))},toLowerCase(){return this.check(wp())},toUpperCase(){return this.check(Sp())},slugify(){return this.check($p())}})}),wg=E("ZodString",(e,t)=>{li.init(e,t),Sc.init(e,t),e.email=n=>e.check(Lf(Sg,n)),e.url=n=>e.check(Ff($g,n)),e.jwt=n=>e.check(np(Bg,n)),e.emoji=n=>e.check(Hf(_g,n)),e.guid=n=>e.check(ll(hl,n)),e.uuid=n=>e.check(zf(pr,n)),e.uuidv4=n=>e.check(Bf(pr,n)),e.uuidv6=n=>e.check(jf(pr,n)),e.uuidv7=n=>e.check(Df(pr,n)),e.nanoid=n=>e.check(Gf(Cg,n)),e.guid=n=>e.check(ll(hl,n)),e.cuid=n=>e.check(Wf(Ag,n)),e.cuid2=n=>e.check(Uf(yg,n)),e.ulid=n=>e.check(Zf(Ig,n)),e.base64=n=>e.check(Qf(Og,n)),e.base64url=n=>e.check(ep(Lg,n)),e.xid=n=>e.check(qf(Rg,n)),e.ksuid=n=>e.check(Vf(Tg,n)),e.ipv4=n=>e.check(Yf(Ng,n)),e.ipv6=n=>e.check(Kf(Eg,n)),e.cidrv4=n=>e.check(Jf(Mg,n)),e.cidrv6=n=>e.check(Xf(Pg,n)),e.e164=n=>e.check(tp(zg,n)),e.datetime=n=>e.check(tg(n)),e.date=n=>e.check(rg(n)),e.time=n=>e.check(ag(n)),e.duration=n=>e.check(lg(n))});function $(e){return Of(wg,e)}const Ne=E("ZodStringFormat",(e,t)=>{Re.init(e,t),Sc.init(e,t)}),Sg=E("ZodEmail",(e,t)=>{Bh.init(e,t),Ne.init(e,t)}),hl=E("ZodGUID",(e,t)=>{Lh.init(e,t),Ne.init(e,t)}),pr=E("ZodUUID",(e,t)=>{zh.init(e,t),Ne.init(e,t)}),$g=E("ZodURL",(e,t)=>{jh.init(e,t),Ne.init(e,t)}),_g=E("ZodEmoji",(e,t)=>{Dh.init(e,t),Ne.init(e,t)}),Cg=E("ZodNanoID",(e,t)=>{Fh.init(e,t),Ne.init(e,t)}),Ag=E("ZodCUID",(e,t)=>{Hh.init(e,t),Ne.init(e,t)}),yg=E("ZodCUID2",(e,t)=>{Gh.init(e,t),Ne.init(e,t)}),Ig=E("ZodULID",(e,t)=>{Wh.init(e,t),Ne.init(e,t)}),Rg=E("ZodXID",(e,t)=>{Uh.init(e,t),Ne.init(e,t)}),Tg=E("ZodKSUID",(e,t)=>{Zh.init(e,t),Ne.init(e,t)}),Ng=E("ZodIPv4",(e,t)=>{Jh.init(e,t),Ne.init(e,t)}),Eg=E("ZodIPv6",(e,t)=>{Xh.init(e,t),Ne.init(e,t)}),Mg=E("ZodCIDRv4",(e,t)=>{Qh.init(e,t),Ne.init(e,t)}),Pg=E("ZodCIDRv6",(e,t)=>{ef.init(e,t),Ne.init(e,t)}),Og=E("ZodBase64",(e,t)=>{tf.init(e,t),Ne.init(e,t)}),Lg=E("ZodBase64URL",(e,t)=>{rf.init(e,t),Ne.init(e,t)}),zg=E("ZodE164",(e,t)=>{of.init(e,t),Ne.init(e,t)}),Bg=E("ZodJWT",(e,t)=>{lf.init(e,t),Ne.init(e,t)}),$c=E("ZodNumber",(e,t)=>{uc.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Np(e,r,o),rr(e,"ZodNumber",{gt(r,o){return this.check(cl(r,o))},gte(r,o){return this.check(xo(r,o))},min(r,o){return this.check(xo(r,o))},lt(r,o){return this.check(sl(r,o))},lte(r,o){return this.check(bo(r,o))},max(r,o){return this.check(bo(r,o))},int(r){return this.check(fl(r))},safe(r){return this.check(fl(r))},positive(r){return this.check(cl(0,r))},nonnegative(r){return this.check(xo(0,r))},negative(r){return this.check(sl(0,r))},nonpositive(r){return this.check(bo(0,r))},multipleOf(r,o){return this.check(ul(r,o))},step(r,o){return this.check(ul(r,o))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function g(e){return lp($c,e)}const jg=E("ZodNumberFormat",(e,t)=>{sf.init(e,t),$c.init(e,t)});function fl(e){return sp(jg,e)}const Dg=E("ZodBoolean",(e,t)=>{cf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ep(e,n,r)});function L(e){return cp(Dg,e)}const Fg=E("ZodAny",(e,t)=>{uf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Pp()});function Kn(){return up(Fg)}const Hg=E("ZodUnknown",(e,t)=>{df.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Op()});function pl(){return dp(Hg)}const Gg=E("ZodNever",(e,t)=>{hf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Mp(e,n,r)});function Wg(e){return hp(Gg,e)}const Ug=E("ZodArray",(e,t)=>{ff.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Dp(e,n,r,o),e.element=t.element,rr(e,"ZodArray",{min(n,r){return this.check(jr(n,r))},nonempty(n){return this.check(jr(1,n))},max(n,r){return this.check(mc(n,r))},length(n,r){return this.check(bc(n,r))},unwrap(){return this.element}})});function re(e,t){return _p(Ug,e,t)}const Zg=E("ZodObject",(e,t)=>{gf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Fp(e,n,r,o),he(e,"shape",()=>t.shape),rr(e,"ZodObject",{keyof(){return T(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:pl()})},loose(){return this.clone({...this._zod.def,catchall:pl()})},strict(){return this.clone({...this._zod.def,catchall:Wg()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Ed(this,n)},safeExtend(n){return Md(this,n)},merge(n){return Pd(this,n)},pick(n){return Td(this,n)},omit(n){return Nd(this,n)},partial(...n){return Od(yc,this,n[0])},required(...n){return Ld(Ic,this,n[0])}})});function C(e,t){const n={type:"object",shape:e??{},...G(t)};return new Zg(n)}const _c=E("ZodUnion",(e,t)=>{fc.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hp(e,n,r,o),e.options=t.options});function D(e,t){return new _c({type:"union",options:e,...G(t)})}const qg=E("ZodDiscriminatedUnion",(e,t)=>{_c.init(e,t),mf.init(e,t)});function Vg(e,t,n){return new qg({type:"union",options:t,discriminator:e,...G(n)})}const Yg=E("ZodIntersection",(e,t)=>{bf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gp(e,n,r,o)});function Kg(e,t){return new Yg({type:"intersection",left:e,right:t})}const Jg=E("ZodTuple",(e,t)=>{xf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Wp(e,n,r,o),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Cc(e,t,n){const r=t instanceof _e,o=r?n:t,a=r?t:null;return new Jg({type:"tuple",items:e,rest:a,...G(o)})}const gl=E("ZodRecord",(e,t)=>{vf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Up(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function _n(e,t,n){return!t||!t._zod?new gl({type:"record",keyType:$(),valueType:e,...G(t)}):new gl({type:"record",keyType:e,valueType:t,...G(n)})}const sa=E("ZodEnum",(e,t)=>{kf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Lp(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const a={};for(const i of r)if(n.has(i))a[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new sa({...t,checks:[],...G(o),entries:a})},e.exclude=(r,o)=>{const a={...t.entries};for(const i of r)if(n.has(i))delete a[i];else throw new Error(`Key ${i} not found in enum`);return new sa({...t,checks:[],...G(o),entries:a})}});function T(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new sa({type:"enum",entries:n,...G(t)})}const Xg=E("ZodLiteral",(e,t)=>{wf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>zp(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function le(e,t){return new Xg({type:"literal",values:Array.isArray(e)?e:[e],...G(t)})}const Qg=E("ZodTransform",(e,t)=>{Sf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>jp(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ys(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(Yn(a,n.value,t));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Yn(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(a=>(n.value=a,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}});function Ac(e){return new Qg({type:"transform",transform:e})}const yc=E("ZodOptional",(e,t)=>{pc.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function ml(e){return new yc({type:"optional",innerType:e})}const em=E("ZodExactOptional",(e,t)=>{$f.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function tm(e){return new em({type:"optional",innerType:e})}const nm=E("ZodNullable",(e,t)=>{_f.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Zp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function bl(e){return new nm({type:"nullable",innerType:e})}const rm=E("ZodDefault",(e,t)=>{Cf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function om(e,t){return new rm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Xs(t)}})}const am=E("ZodPrefault",(e,t)=>{Af.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function im(e,t){return new am({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Xs(t)}})}const Ic=E("ZodNonOptional",(e,t)=>{yf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function lm(e,t){return new Ic({type:"nonoptional",innerType:e,...G(t)})}const sm=E("ZodCatch",(e,t)=>{If.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function cm(e,t){return new sm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Rc=E("ZodPipe",(e,t)=>{gc.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n,r,o),e.in=t.in,e.out=t.out});function xl(e,t){return new Rc({type:"pipe",in:e,out:t})}const um=E("ZodPreprocess",(e,t)=>{Rc.init(e,t),Rf.init(e,t)}),dm=E("ZodReadonly",(e,t)=>{Tf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function hm(e){return new dm({type:"readonly",innerType:e})}const fm=E("ZodLazy",(e,t)=>{Nf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qp(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function pm(e){return new fm({type:"lazy",getter:e})}const gm=E("ZodCustom",(e,t)=>{Ef.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bp(e,n)});function mm(e,t={}){return Cp(gm,e,t)}function bm(e,t){return Ap(e,t)}function Tc(e,t){return new um({type:"pipe",in:Ac(e),out:t})}var xm=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),vm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,vl=C({style:C({textAlign:T(["left","center","right"]).optional().nullable(),padding:xm}).optional().nullable(),props:C({size:g().gt(0).optional().nullable(),shape:T(["circle","square","rounded"]).optional().nullable(),imageUrl:$().optional().nullable(),alt:$().optional().nullable()}).optional().nullable()});function km(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var gr={size:64,imageUrl:"",alt:"",shape:"square"};function kl({style:e,props:t}){var n,r,o,a,i;const l=(n=t==null?void 0:t.size)!=null?n:gr.size,s=(r=t==null?void 0:t.imageUrl)!=null?r:gr.imageUrl,u=(o=t==null?void 0:t.alt)!=null?o:gr.alt,c=(a=t==null?void 0:t.shape)!=null?a:gr.shape,h={textAlign:(i=e==null?void 0:e.textAlign)!=null?i:void 0,padding:vm(e==null?void 0:e.padding)};return V.createElement("div",{style:h},V.createElement("img",{alt:u,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:km(c,l)}}))}const wm=C({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),Sm=vl.extend({props:vl.shape.props.unwrap().unwrap().extend({decorative:L().optional().nullable(),animation:wm}).optional().nullable()}),Wn={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},or=Object.values(Wn);let Nc=null;function wl(e){Nc=e}function $m(){return Nc}function si(){return"desktop"}const Ue=1024,Ve=640,_t=`@media (max-width: ${Ue}px)`,et=`@media (max-width: ${Ve}px)`,on=`@media (min-width: ${Ve+1}px) and (max-width: ${Ue}px)`,Ye=C({tablet:_n($(),Kn()).optional().nullable(),mobile:_n($(),Kn()).optional().nullable()}).optional().nullable();function Ht(e){if(!e)return"";let t=String(e).trim().toLowerCase().replace(/\s+/g,"");const n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(t);return n&&(t=`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`),t}const ne=(e,t=[],n)=>({role:e,seeds:t.map(Ht),nullFallback:n}),Fr={pageText:ne("text",[],"#262626"),containerFill:ne("surface",[],"#ffffff"),layoutText:ne("text",["#262626","#1f2937"],"#262626"),canvas:ne("surface",["#ffffff"]),closeIcon:ne("text",["#000000","#262626"],"#262626"),brandingText:ne("text-muted",[],"#8a8a8a"),blockText:ne("text",["#262626"]),listText:ne("text"),link:ne("link",[],"#2563eb"),codeBg:ne("surface-alt",[],"#f3f4f6"),quoteBorder:ne("text-muted",[],"#9ca3af"),divider:ne("border",["#cccccc","#333333"],"#cccccc"),tableText:ne("text",["#262626"]),tableBorder:ne("border",["#e5e7eb"]),tableHeaderBg:ne("surface-alt",["#f3f4f6"]),tableHeaderText:ne("text-strong",["#111827"]),tableStripe:ne("surface-alt",["#f8f6f6"]),track:ne("track",["#e5e7eb"]),trackText:ne("text",["#262626"]),timerText:ne("text",[],"#1f1f1f"),timerLabel:ne("text-muted",[],"#6b7280"),timerTrack:ne("track",[],"#e5e7eb"),breadcrumbText:ne("text-muted",["#595959"]),menuText:ne("text",["#000000"],"#000000"),menuSurface:ne("surface",[],"#ffffff"),carouselArrow:ne("text",[],"#262626"),carouselArrowBg:ne("surface",[],"#ffffff"),carouselArrowBorder:ne("border-subtle",[],"rgba(0,0,0,.12)"),carouselDot:ne("track",[],"#d4d4d4"),carouselDotActive:ne("text",[],"#262626"),paginationBg:ne("surface",["#ffffff"],"#ffffff"),paginationText:ne("text",["#262626"],"#262626"),paginationBorder:ne("border-subtle",["rgba(0,0,0,.12)"],"rgba(0,0,0,.12)"),surface:ne("surface",[],"#ffffff"),surfaceLiteral:ne("surface"),bgAdaptive:ne("surface"),buttonText:ne("text"),borderAdaptive:ne("border"),borderSubtle:ne("border-subtle",[],"rgba(0,0,0,.12)"),surfaceAlt:ne("surface-alt"),tabsRing:ne("border",[],"#d0d5dd")},Ec=e=>/gradient\(|url\(/i.test(e);function Hr(e){const t=Ht(e);let n=/^#([0-9a-f]{6})([0-9a-f]{2})?$/.exec(t);if(n){const r=parseInt(n[1],16);return{r:r>>16&255,g:r>>8&255,b:r&255,a:n[2]?parseInt(n[2],16)/255:1}}return n=/^rgba?\((\d{1,3}),(\d{1,3}),(\d{1,3})(?:,([\d.]+))?\)$/.exec(t),n?{r:+n[1],g:+n[2],b:+n[3],a:n[4]!==void 0?+n[4]:1}:null}function Sl({r:e,g:t,b:n}){const r=o=>{const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function _m({r:e,g:t,b:n}){const r=e/255,o=t/255,a=n/255,i=Math.max(r,o,a),l=Math.min(r,o,a),s=(i+l)/2,u=i-l;if(u===0)return{h:0,s:0,l:s};const c=u/(1-Math.abs(2*s-1));return{h:((i===r?(o-a)/u%6:i===o?(a-r)/u+2:(r-o)/u+4)*60+360)%360,s:c,l:s}}function vo(e,t,n,r){const o=(1-Math.abs(2*n-1))*t,a=o*(1-Math.abs(e/60%2-1)),i=n-o/2,[l,s,u]=e<60?[o,a,0]:e<120?[a,o,0]:e<180?[0,o,a]:e<240?[0,a,o]:e<300?[a,0,o]:[o,0,a],c=h=>Math.round((h+i)*255).toString(16).padStart(2,"0");return`#${c(l)}${c(s)}${c(u)}${r<1?Math.round(r*255).toString(16).padStart(2,"0"):""}`}function lo(e,t){const n=Hr(e);if(!n||n.a===0)return null;const{h:r,s:o,l:a}=_m(n);if(t==="text"){if(Sl(n)>=.2)return null;let i=a,l=vo(r,o,i,n.a);const s=o<.1?.75:.4;for(;i<.97&&Sl(Hr(l))<s;)i=Math.min(.97,i+.02),l=vo(r,o,i,n.a);return l}return a<=.82?null:vo(r,o*.5,Math.min(.18,Math.max(.07,1-a)),n.a)}const Mc=["text","text-strong","text-muted","link"],Pc=["surface","surface-alt","track"],Cm=e=>Mc.includes(e)?"text":Pc.includes(e)?"bg":null;function Am(e){if(!e||!e.trim()||/^(transparent|none)$/i.test(e.trim()))return!0;const t=Hr(e);return!!t&&t.a===0}function Oc(e){return!!e&&!Ec(e)&&lo(e,"bg")!==null}const ym={text:["text","text-strong","text-muted","link"],bg:["surface","surface-alt","track"],border:["border","border-subtle","surface","surface-alt","track"]};let ko=null;function Im(){if(ko)return ko;const e=new Map;return Object.values(Fr).forEach(t=>{e.has(t.role)||e.set(t.role,new Set),t.seeds.forEach(n=>e.get(t.role).add(n)),t.nullFallback&&e.get(t.role).add(Ht(t.nullFallback))}),ko=e,e}function Rm(e,t){var r;const n=Im();for(const o of ym[t])if((r=n.get(o))!=null&&r.has(e))return o;return null}const Lc=e=>Mc.includes(e)?"text":Pc.includes(e)?"bg":"border",wo=/(?:repeating-)?(?:linear|radial|conic)-gradient\(/gi,Tm=/^(to\s|[-+]?[\d.]+(?:deg|grad|rad|turn)\b|circle\b|ellipse\b|closest-|farthest-|at\s|from\s|in\s)/i;function zc(e,t){let n=0;for(let r=t;r<e.length;r+=1)if(e[r]==="(")n+=1;else if(e[r]===")"&&(n-=1,n===0))return r;return-1}function Nm(e){const t=[];let n=0,r=0;for(let o=0;o<e.length;o+=1)e[o]==="("?n+=1:e[o]===")"?n-=1:e[o]===","&&n===0&&(t.push(e.slice(r,o)),r=o+1);return t.push(e.slice(r)),t}function Em(e,t,n){const r=/^\s*/.exec(e)[0],o=e.slice(r.length);if(!o||Tm.test(o))return e;let a="";const i=/^#[0-9a-fA-F]{3,8}(?![0-9a-zA-Z])/.exec(o);if(i)a=i[0];else if(/^rgba?\(/i.test(o)){const c=zc(o,o.indexOf("("));c>0&&(a=o.slice(0,c+1))}if(!a)return/^(transparent)\b/i.test(o)||(n.literal+=1),e;const l=Hr(a),s=Rm(Ht(a),t);if(s)return n.adapted+=1,`${r}var(--pp-g-${s},${a})${o.slice(a.length)}`;const u=t==="border"?null:lo(a,t);return u?(n.adapted+=1,`${r}light-dark(${a},${u})${o.slice(a.length)}`):((!l||l.a>0)&&(n.literal+=1),e)}function Bc(e,t,n){let r="",o=0;wo.lastIndex=0;let a;for(;(a=wo.exec(e))!==null;){const i=a.index+a[0].length-1,l=zc(e,i);if(l<0)break;const s=e.slice(i+1,l),u=Nm(s).map(c=>Em(c,t,n)).join(",");r+=e.slice(o,i+1)+u,o=l,wo.lastIndex=l+1}return r+e.slice(o)}function Mm(e,t="bg"){const n={adapted:0,literal:0},r=Bc(e,t,n);return n.adapted?r:e}function Pm(e,t="bg"){const n={adapted:0,literal:0};return Bc(e,t,n),n.adapted>0&&n.literal===0}function z(e,t){const n=typeof t=="string"?Fr[t]:t;if(e==null||e==="")return n.nullFallback?`var(--pp-${n.role},${n.nullFallback})`:void 0;if(Ec(e))return/gradient\(/i.test(e)?Mm(e,Lc(n.role)):e;if(n.seeds.includes(Ht(e)))return`var(--pp-${n.role},${e})`;const r=Cm(n.role),o=r?lo(e,r):null;return o?`light-dark(${e},${o})`:e}const Om=/^(transparent|none|inherit|initial|unset|currentcolor)$/i;function de(e,t,n){const r=(e??"").trim();if(n&&!t&&Fr[n].seeds.includes(Ht(r)))return{};if(n&&!t&&Oc(r))return{};if(n&&!t&&/gradient\(/i.test(r)&&Pm(r,Lc(Fr[n].role)))return{};const o=!!r&&!Om.test(Ht(r))&&!/^rgba?\(.*,\s*0\)$/i.test(Ht(r)),a=!!t&&t.trim()!==""&&t.trim()!=="none";return o||a?{"data-pp-surface":"fixed"}:{}}function se(e){return e??void 0}function ci(){return e=>e??void 0}const $l=e=>{const t=lo(e.trim(),"text");return t?`light-dark(${e.trim()},${t})`:null},Lm=/<font\b([^>]*)>/gi,_l=/\scolor\s*=\s*(?:"([^"]*)"|'([^']*)')/i,Cl=/\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/i,zm=/(\sstyle\s*=\s*)(?:"([^"]*)"|'([^']*)')/gi,Bm=/(^|[;\s])color\s*:\s*([^;]+?)(\s*!important)?\s*(?=;|$)/gi;function jm(e){if(!e||!/color/i.test(e))return e;let t=e.replace(Lm,(n,r)=>{const o=_l.exec(r);if(!o)return n;const a=$l(o[1]??o[2]??"");if(!a)return n;const i=r.replace(_l,""),l=Cl.exec(i);if(l){const s=l[1]??l[2]??"";return`<font${i.replace(Cl,` style="color:${a};${s}"`)}>`}return`<font${i} style="color:${a}">`});return t=t.replace(zm,(n,r,o,a)=>{const i=o!==void 0?'"':"'",l=o??a??"";if(!/color/i.test(l))return n;const s=l.replace(Bm,(u,c,h,d)=>{const f=$l(h);return f?`${c}color:${f}${d??""}`:u});return s===l?n:`${r}${i}${s}${i}`}),t}function jc(e){return jm(e)}const Ir="--pp-text:#e6e6e6;--pp-text-strong:#f5f5f5;--pp-text-muted:#a3a3a3;--pp-link:#7aa7ff;--pp-surface:#121212;--pp-surface-alt:#1e1e1e;--pp-track:#2e2e2e;--pp-border:#3a3a3a;--pp-border-subtle:rgba(255,255,255,.12);--pp-icon-filter:invert(1) hue-rotate(180deg);--pp-scheme:dark",Hn="--pp-text:initial;--pp-text-strong:initial;--pp-text-muted:initial;--pp-link:initial;--pp-surface:initial;--pp-surface-alt:initial;--pp-track:initial;--pp-border:initial;--pp-border-subtle:initial;--pp-icon-filter:initial;--pp-scheme:light",Dc=e=>e.replace(/--pp-scheme:[a-z]+/,"").replace(/--pp-icon-filter:[^;]+;/,"").replace(/--pp-/g,"--pp-g-"),So=Dc(Ir),mr=Dc(Hn),Al=e=>`[data-theme=${e}],[data-bs-theme=${e}],[data-mui-color-scheme=${e}],[data-color-mode=${e}]`,Dm=`:where(html.dark,body.dark){${Ir};${So}}:where(html.light,body.light){${Hn};${mr}}:where(html,body):where(${Al("dark")}){${Ir};${So}}:where(html,body):where(${Al("light")}){${Hn};${mr}}:where([data-pp-surface=fixed]>*){${mr}}:where([data-pp-theme=dark]){${Ir};${So}}:where([data-pp-theme=light]){${Hn};${mr}}:where([data-pp-surface=fixed]){${Hn};color:#262626}:where([data-ahd-tpl-root],[data-pp-scope],[data-pp-theme],[data-pp-surface=fixed]){color-scheme:var(--pp-scheme,light)}`,Fm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Hm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Gm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Wm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Um=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Zm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.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 m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Vm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Ym=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Km=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Jm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Xm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Qm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},eb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},tb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},nb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},rb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ob=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:m.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function ab(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return m.jsx(Fm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return m.jsx(Um,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return m.jsx(Km,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return m.jsx(Zm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return m.jsx(Hm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return m.jsx(Gm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return m.jsx(Wm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return m.jsx(qm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return m.jsx(Vm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return m.jsx(Ym,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return m.jsx(Qm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return m.jsx(tb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return m.jsx(rb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return m.jsx(Jm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return m.jsx(eb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return m.jsx(nb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return m.jsx(ob,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return m.jsx(Xm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const ib=4,zt=e=>({[e==="left"?"marginRight":"marginLeft"]:ib,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"}),lb=(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"}),br=e=>({display:"inline-flex",alignItems:"center",justifyContent:e}),Jn="data-ahd-var",Fc=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,sb=/[&<>"']/g,cb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function kn(e){return e.replace(sb,t=>cb[t])}function so(e){return!e||e.indexOf("{{")===-1?e:e.replace(Fc,(t,n,r,o)=>{if(n)return n;const a=kn(o);return`<span ${Jn}="${a}">{{${o}}}</span>`})}function ui(e){return!e||e.indexOf("{{")===-1?e:kn(e).replace(Fc,(t,n,r,o)=>{if(n)return n;const a=kn(o);return`<span ${Jn}="${a}">{{${o}}}</span>`})}const ub=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function db(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 r=new URLSearchParams(n||"");return e.replace(ub,(o,a)=>{const i=r.get(a);return i!==null?encodeURIComponent(i):o})}function hb(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),r=e.querySelectorAll(`[${Jn}]`);for(let o=0;o<r.length;o++){const a=r[o],i=n.get(a.getAttribute(Jn)||"");i!==null&&(a.textContent=i)}}const ca="data-ahd-date",Hc="data-ahd-date-format";function ua(e,t){const n=kn(e),r=t??"",o=kn(r),a=Gc(r)||`{{${n}}}`;return`<span ${Jn}="${n}" ${ca}="${o}" ${Hc}="relative">${kn(a)}</span>`}function Gc(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const r=864e5,o=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),a=Math.round((o(n)-o(t))/r);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const i=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function fb(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${ca}][${Hc}="relative"]`);for(let r=0;r<n.length;r++){const o=n[r],a=o.getAttribute(ca)||"",i=Gc(a,t);i&&(o.textContent=i)}}const pb=T(["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 $o(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 gb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),mb=$().regex(/^rgba?\([^\)]+\)$/i),bb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),xb=le("transparent"),Kt=D([gb,mb,bb,xb]).nullable().optional(),vb=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),kb=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),wb=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Sb=D([g(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),$b=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_b=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Cb=C({color:Kt,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function Ab(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 yb(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${Ab(t)}`}}const Ib=C({style:C({backgroundColor:Kt,fontSize:g().min(0).optional().nullable(),fontFamily:pb,fontWeight:T(["bold","normal",...or]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),buttonTextAlign:T(["left","center","right"]).optional().nullable(),padding:vb,margin:kb}).optional().nullable(),props:C({buttonBackground:Kt,hoverBackground:Kt,hoverTextColor:Kt,borderRadius:Sb,borderWidth:wb,borderColor:Kt,boxShadow:Cb,buttonTextColor:Kt,fullWidth:L().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),size:T(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:T(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:T(["x-small","small","large","medium"]).optional().nullable(),text:$().optional().nullable(),url:$().optional().nullable(),action:T(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:L().optional().nullable(),customAction:$().optional().nullable(),actionPayload:_n($(),Kn()).optional().nullable(),iconEnabled:L().optional().nullable(),iconName:$().optional().nullable(),iconUrl:$().optional().nullable(),iconAlignment:T(["left","right"]).optional().nullable(),ariaLabel:$().optional().nullable(),goToStep:$().optional().nullable(),postMessageEvent:$().optional().nullable(),animation:C({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable(),responsive:Ye});function yl(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 Ee={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 Rb({style:e,props:t}){const r=`bh-${V.useId().replace(/:/g,"")}`,o=(t==null?void 0:t.text)??Ee.text,a=typeof o=="string"&&o.indexOf("{{")!==-1,i=(je,dt)=>a?m.jsx("span",{style:je,"data-action":dt,dangerouslySetInnerHTML:{__html:ui(o)}}):m.jsx("span",{style:je,"data-action":dt,children:o}),l=(t==null?void 0:t.url)??Ee.url,s=db(l),u=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,c=(t==null?void 0:t.fullWidth)??Ee.fullWidth,h=(t==null?void 0:t.widthType)??Ee.widthType,d=(t==null?void 0:t.width)??Ee.width,f=(t==null?void 0:t.widthUnit)??Ee.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,w=b??x,k=(t==null?void 0:t.widthTypeTablet)??h,S=(t==null?void 0:t.widthTypeMobile)??k,v=(t==null?void 0:t.size)??Ee.size,_=(t==null?void 0:t.sizeTablet)??v,y=(t==null?void 0:t.sizeMobile)??_,A=h,I=d,R=(t==null?void 0:t.buttonTextColor)??Ee.buttonTextColor,N=(t==null?void 0:t.buttonBackground)??Ee.buttonBackground,P=Oc(N),M=!/gradient\(/i.test(R??"")&&(P||Am(N)),O=M?z(R,"buttonText"):se(R),j=P?z(N,"bgAdaptive"):se(N),F=M?"currentColor":O,H=(t==null?void 0:t.iconEnabled)??Ee.iconEnabled,W=(t==null?void 0:t.iconName)??Ee.iconName,U=(t==null?void 0:t.iconAlignment)??Ee.iconAlignment,X=(t==null?void 0:t.iconUrl)??null,Z=!!(H&&(X||W)),q=(t==null?void 0:t.ariaLabel)??null,ae=typeof o=="string"&&o.trim().length>0,$e=q&&q.trim().length>0?q:!ae&&H&&W?W:void 0,ce=(t==null?void 0:t.action)??Ee.action,pe=(t==null?void 0:t.openInNewTab)??Ee.openInNewTab,ee=((t==null?void 0:t.customAction)??Ee.customAction)||ce,Y=(t==null?void 0:t.actionPayload)??Ee.actionPayload,K=(t==null?void 0:t.goToStep)??Ee.goToStep,B=(t==null?void 0:t.postMessageEvent)??Ee.postMessageEvent,J=Y||(ee==="goToStep"?{goToStep:K||""}:null)||(ee==="postMessageEvent"?{postMessageEvent:B||""}:null),me=J?JSON.stringify(J):void 0,ke=(t==null?void 0:t.borderRadius)??Ee.borderRadius,be=(t==null?void 0:t.borderWidth)??Ee.borderWidth,ge=(t==null?void 0:t.borderColor)??Ee.borderColor,Ce=se(ge),oe=(t==null?void 0:t.boxShadow)??Ee.boxShadow,Pe=yb(oe),De=(t==null?void 0:t.hoverBackground)??null,xe=(t==null?void 0:t.hoverTextColor)??null,Fe=yl(v),He=je=>typeof je=="number"?`${je}px`:`${je.topLeft}px ${je.topRight}px ${je.bottomRight}px ${je.bottomLeft}px`,Q=(je,dt)=>{if(typeof je=="number")return`${Math.max(0,je-dt)}px`;const go=Math.max(0,(je.topLeft||0)-dt),mo=Math.max(0,(je.topRight||0)-dt),sn=Math.max(0,(je.bottomRight||0)-dt),cn=Math.max(0,(je.bottomLeft||0)-dt);return`${go}px ${mo}px ${sn}px ${cn}px`},Be=ge&&(ge.includes("linear-gradient")||ge.includes("radial-gradient")||ge.includes("repeating-linear-gradient")),ze=be&&((be.top??0)>0||(be.right??0)>0||(be.bottom??0)>0||(be.left??0)>0),ie={top:(be==null?void 0:be.top)??0,right:(be==null?void 0:be.right)??0,bottom:(be==null?void 0:be.bottom)??0,left:(be==null?void 0:be.left)??0},Ge=(()=>{if(c)return"100%";switch(A){case"fill":return"100%";case"fixed":return`${I}${f}`;case"fit":default:return"auto"}})(),tt=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",ot=tt==="center"?"center":tt==="right"?"flex-end":"flex-start",Ot=()=>!ge||ge==="transparent"||!ze?{border:"none"}:Be?{borderTop:`${ie.top}px solid transparent`,borderRight:`${ie.right}px solid transparent`,borderBottom:`${ie.bottom}px solid transparent`,borderLeft:`${ie.left}px solid transparent`,borderImage:`${Ce} `,borderRadius:"0px"}:{borderTop:`${ie.top}px solid ${Ce}`,borderRight:`${ie.right}px solid ${Ce}`,borderBottom:`${ie.bottom}px solid ${Ce}`,borderLeft:`${ie.left}px solid ${Ce}`},yt=N&&(N.includes("linear-gradient")||N.includes("radial-gradient")||N.includes("repeating-linear-gradient")),Ke=R&&(R.includes("linear-gradient")||R.includes("radial-gradient")||R.includes("repeating-linear-gradient")),Lt=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),xt={backgroundColor:Lt?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:Lt?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:$b(e==null?void 0:e.padding),margin:_b(e==null?void 0:e.margin)},Zt=Ot(),Je={...Ke?{backgroundImage:O,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:O||void 0},textDecoration:(e==null?void 0:e.textDecoration)??"none"},It=yt?void 0:j,te=yt?j:void 0,Ie=(e==null?void 0:e.fontSize)??16,Ze=`${Ie}px`,Xe=()=>X?m.jsx("span",{"aria-hidden":"true",style:lb(X,Ie,Ke?"currentColor":F||"currentColor")}):ab(W,{strokeColor:Ke?void 0:F,fontSize:Ie}),qt={fontSize:Ze,fontFamily:$o(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??Wn.REGULAR,backgroundColor:It,backgroundImage:te,borderRadius:Be?"0px":He(ke),...Zt,...Be&&ze?{}:Pe,display:Ge==="100%"?"block":"inline-block",width:Ge,padding:`${Fe[0]}px ${Fe[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:ot,lineHeight:"normal"},ue=Be&&ze?m.jsx("div",{style:{display:Ge==="100%"?"block":"inline-block",padding:`${ie.top}px ${ie.right}px ${ie.bottom}px ${ie.left}px`,background:Ce,borderRadius:He(ke),width:Ge,boxSizing:"border-box",...Pe},children:m.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:Q(ke,Math.max(ie.top,ie.right,ie.bottom,ie.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??Wn.REGULAR,fontFamily:$o(e==null?void 0:e.fontFamily),backgroundImage:te,backgroundColor:It,textAlign:tt,textDecoration:"none",fontSize:Ze,padding:`${Fe[0]}px ${Fe[1]}px`,boxSizing:"border-box",lineHeight:"normal",...br(ot)},"data-action":ee,"data-action-payload":me,"data-goto-step":ee==="goToStep"&&K?K:void 0,"data-post-message-event":ee==="postMessageEvent"&&B?B:void 0,type:"button","aria-label":$e,children:[Z&&U==="left"?m.jsx("span",{style:zt("left"),"data-action":ee,children:Xe()}):null,i({...Je,pointerEvents:"none"},ee),Z&&U==="right"?m.jsx("span",{style:zt("right"),"data-action":ee,children:Xe()}):null]})}):m.jsxs("button",{style:{cursor:"pointer",...Zt,...Pe,borderRadius:He(ke),width:Ge,fontWeight:(e==null?void 0:e.fontWeight)??Wn.REGULAR,fontFamily:$o(e==null?void 0:e.fontFamily),backgroundColor:It,backgroundImage:te,textAlign:tt,textDecoration:"none",fontSize:Ze,padding:`${Fe[0]}px ${Fe[1]}px`,boxSizing:"border-box",lineHeight:"normal",...br(ot)},"data-action":ee,"data-action-payload":me,"data-goto-step":ee==="goToStep"&&K?K:void 0,"data-post-message-event":ee==="postMessageEvent"&&B?B:void 0,type:"button","aria-label":$e,children:[Z&&U==="left"?m.jsx("span",{style:zt("left"),"data-action":ee,children:Xe()}):null,i({...Je,pointerEvents:"none"},ee),Z&&U==="right"?m.jsx("span",{style:zt("right"),"data-action":ee,children:Xe()}):null]}),ve=!!De&&(De.includes("linear-gradient")||De.includes("radial-gradient")||De.includes("repeating-linear-gradient")),nt=!!xe&&(xe.includes("linear-gradient")||xe.includes("radial-gradient")||xe.includes("repeating-linear-gradient")),at=[];De&&(ve?at.push(`background-image: ${De} !important; background-color: transparent !important;`):at.push(`background-color: ${De} !important; background-image: none !important;`)),xe&&!nt&&at.push(`color: ${xe} !important;`);const Rt=xe?nt?`background-image: ${xe} !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: ${xe} !important; -webkit-text-fill-color: ${xe} !important;`:"",Vt=at.length>0||Rt?`#${r} a:hover, #${r} button:hover { ${at.join(" ")} transition: background-color 150ms ease, background-image 150ms ease, color 150ms ease; } #${r} a:hover span, #${r} button:hover span { ${Rt} }`:null,Fi=(je,dt,go,mo)=>{const sn=[],cn=c||dt==="fill"?"100%":dt==="fixed"?`${go}${f}`:"auto";sn.push(`width: ${cn} !important;`,"max-width: 100% !important;"),sn.push(`display: ${cn==="100%"?"block":"inline-block"} !important;`);const[Wi,kd]=yl(mo);return sn.push(`padding: ${Wi}px ${kd}px !important;`),`${je} { #${r} a, #${r} button { ${sn.join(" ")} } #${r} > div { width: ${cn} !important; max-width: 100% !important; display: ${cn==="100%"?"block":"inline-block"} !important; } }`},Hi=k!==h||_!==v||k==="fixed"&&x!==d,Gi=S!==h||y!==v||S==="fixed"&&w!==d,dr=Hi||Gi?[Hi?Fi(_t,k,x,_):"",Gi?Fi(et,S,w,y):""].filter(Boolean).join(`
65
- `):null;if(ce!=="link")return m.jsxs("div",{id:r,className:"button-block",style:xt,children:[Vt&&m.jsx("style",{children:Vt}),dr&&m.jsx("style",{children:dr}),ue]});const vd=Be&&ze?m.jsx("div",{style:{display:Ge==="100%"?"block":"inline-block",padding:`${ie.top}px ${ie.right}px ${ie.bottom}px ${ie.left}px`,background:Ce,borderRadius:He(ke),width:Ge,boxSizing:"border-box",...Pe},children:m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...qt,border:"none",borderRadius:Q(ke,Math.max(ie.top,ie.right,ie.bottom,ie.left)),width:"100%",...br(ot)},target:pe?"_blank":void 0,rel:pe?"noopener noreferrer":void 0,"aria-label":$e,children:[Z&&U==="left"?m.jsx("span",{style:zt("left"),children:Xe()}):null,i({...Je,pointerEvents:"none"}),Z&&U==="right"?m.jsx("span",{style:zt("right"),children:Xe()}):null]})}):m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...qt,borderRadius:He(ke),...br(ot)},target:pe?"_blank":void 0,rel:pe?"noopener noreferrer":void 0,"aria-label":$e,children:[Z&&U==="left"?m.jsx("span",{style:zt("left"),children:Xe()}):null,i({...Je,pointerEvents:"none"}),Z&&U==="right"?m.jsx("span",{style:zt("right"),children:Xe()}):null]});return m.jsxs("div",{id:r,className:"button-block",style:xt,children:[Vt&&m.jsx("style",{children:Vt}),dr&&m.jsx("style",{children:dr}),vd]})}const Tb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Nb=$().regex(/^rgba?\([^\)]+\)$/i),Eb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Mb=le("transparent"),Il=D([Tb,Nb,Eb,Mb]).nullable().optional(),Pb=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ob=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Lb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,zb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Bb=C({style:C({backgroundColor:Il,padding:Pb,margin:Ob}).optional().nullable(),props:C({lineColor:Il,lineHeight:g().optional().nullable()}).optional().nullable()}),Rl={lineHeight:1,lineColor:"#333333"};function jb({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??Rl.lineHeight,r=z((t==null?void 0:t.lineColor)??Rl.lineColor,"divider"),o={padding:Lb(e==null?void 0:e.padding),margin:zb(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),"--ahd-divider-thickness":`${n}px`};return m.jsx("div",{className:"divider-block",...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:m.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:r,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const Db=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Fb=$().regex(/^rgba?\([^\)]+\)$/i),Hb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Gb=le("transparent"),_o=D([Db,Fb,Hb,Gb]).nullable().optional(),Wb=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ub=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Zb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,qb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Vb=T(["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 Yb(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 Kb=C({props:C({text:$().optional().nullable(),level:T(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:T(["text","link"]).optional().nullable(),url:$().optional().nullable(),openInNewTab:L().optional().nullable(),animation:C({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable(),style:C({color:_o,textColor:_o,backgroundColor:_o,fontFamily:Vb,fontSize:g().optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...or]).optional().nullable(),fontStyle:T(["italic","normal"]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:Wb,margin:Ub}).optional().nullable(),responsive:Ye}),Mn={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function Jb({props:e,style:t}){const n=(e==null?void 0:e.level)??Mn.level,r=(e==null?void 0:e.text)??Mn.text,o=typeof r=="string"&&r.indexOf("{{")!==-1,a=(e==null?void 0:e.linkType)??Mn.linkType,i=(e==null?void 0:e.url)??Mn.url,l=(e==null?void 0:e.openInNewTab)??Mn.openInNewTab,s=a==="link"&&i,u=(t==null?void 0:t.fontSize)??Xb(n),c=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),h=z(c,"blockText"),d=c&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(c),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,w=x&&x>0?{display:"-webkit-box",WebkitLineClamp:x,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},k={fontWeight:(t==null?void 0:t.fontWeight)??Wn.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:d?"none":f,margin:0,fontFamily:Yb(t==null?void 0:t.fontFamily),fontSize:u,...w},S=!!(x&&x>0),v=d?{lineHeight:"normal ",backgroundImage:h,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...S?{}:{display:"inline-block"},...p?{paddingBottom:"0.08em"}:{}}:{color:h??void 0},_={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:h??void 0,pointerEvents:"none"},y={..._,bottom:0},A={..._,top:"50%",transform:"translateY(-50%)"},I=(t==null?void 0:t.backgroundColor)??void 0,R=z(I,"bgAdaptive"),N=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),O={padding:Zb(t==null?void 0:t.padding),margin:qb(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",...N?{backgroundImage:R,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:R}},j=n,F=m.jsx(j,{className:"heading-block",style:k,children:m.jsxs("span",{style:v,children:[o?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:ui(r)}}):r,p?m.jsx("span",{style:y}):null,b?m.jsx("span",{style:A}):null]})});return m.jsx("div",{className:"heading-block-wrapper",...de(I,void 0,"bgAdaptive"),style:O,children:s?m.jsx("a",{href:i,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!d&&h?h:void 0},children:F}):F})}function Xb(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 Wc="comm",Uc="rule",Zc="decl",Qb="@import",e0="@namespace",t0="@keyframes",n0="@layer",r0=Math.abs,Un=String.fromCharCode;function qc(e){return e.trim()}function da(e,t,n){return e.replace(t,n)}function wn(e,t){return e.charCodeAt(t)|0}function Cn(e,t,n){return e.slice(t,n)}function $t(e){return e.length}function o0(e){return e.length}function xr(e,t){return t.push(e),e}var co=1,An=1,Vc=0,it=0,Oe=0,In="";function di(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:co,column:An,length:i,return:"",siblings:l}}function a0(){return Oe}function i0(){return Oe=it>0?wn(In,--it):0,An--,Oe===10&&(An=1,co--),Oe}function mt(){return Oe=it<Vc?wn(In,it++):0,An++,Oe===10&&(An=1,co++),Oe}function Ft(){return wn(In,it)}function Rr(){return it}function uo(e,t){return Cn(In,e,t)}function Xn(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 l0(e){return co=An=1,Vc=$t(In=e),it=0,[]}function s0(e){return In="",e}function Co(e){return qc(uo(it-1,ha(e===91?e+2:e===40?e+1:e)))}function c0(e){for(;(Oe=Ft())&&Oe<33;)mt();return Xn(e)>2||Xn(Oe)>3?"":" "}function u0(e,t){for(;--t&&mt()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return uo(e,Rr()+(t<6&&Ft()==32&&mt()==32))}function ha(e){for(;mt();)switch(Oe){case e:return it;case 34:case 39:e!==34&&e!==39&&ha(Oe);break;case 40:e===41&&ha(e);break;case 92:mt();break}return it}function d0(e,t){for(;mt()&&e+Oe!==57;)if(e+Oe===84&&Ft()===47)break;return"/*"+uo(t,it-1)+"*"+Un(e===47?e:mt())}function h0(e){for(;!Xn(Ft());)mt();return uo(e,it)}function f0(e){return s0(Tr("",null,null,null,[""],e=l0(e),0,[0],e))}function Tr(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,h=i,d=0,f=0,p=0,b=1,x=1,w=1,k=0,S=0,v="",_=o,y=a,A=r,I=v;x;)switch(p=S,S=mt()){case 40:p!=108&&wn(I,h-1)==58?(k++,I+="("):I+=Co(S);break;case 41:k--,I+=")";break;case 34:case 39:case 91:I+=Co(S);break;case 9:case 10:case 13:case 32:if(k>0){I+=Un(S);break}I+=c0(p);break;case 92:I+=u0(Rr()-1,7);continue;case 47:switch(Ft()){case 42:case 47:xr(p0(d0(mt(),Rr()),t,n,s),s),(Xn(p||1)==5||Xn(Ft()||1)==5)&&$t(I)&&Cn(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[u++]=$t(I)*w;case 125*b:case 59:case 0:if(k>0&&S){I+=Un(S);break}switch(S){case 0:case 125:x=0;case 59+c:w==-1&&(I=da(I,/\f/g,"")),f>0&&($t(I)-h||b===0)&&xr(f>32?Nl(I+";",r,n,h-1,s):Nl(da(I," ","")+";",r,n,h-2,s),s);break;case 59:I+=";";default:if(xr(A=Tl(I,t,n,u,c,o,l,v,_=[],y=[],h,a),a),S===123)if(c===0)Tr(I,t,A,A,_,a,h,l,y);else{switch(d){case 99:if(wn(I,3)===110)break;case 108:if(wn(I,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Tr(e,A,A,r&&xr(Tl(e,A,A,0,0,o,l,v,o,_=[],h,y),y),o,y,h,l,r?_:y):Tr(I,A,A,A,[""],y,0,l,y)}}u=c=f=0,b=w=1,v=I="",h=i;break;case 58:h=1+$t(I),f=p;default:if(b<1){if(S==123)--b;else if(S==125&&b++==0&&i0()==125)continue}switch(I+=Un(S),S*b){case 38:w=c>0?1:(I+="\f",-1);break;case 44:if(k>0)break;l[u++]=($t(I)-1)*w,w=1;break;case 64:Ft()===45&&(I+=Co(mt())),d=Ft(),c=h=$t(v=I+=h0(Rr())),S++;break;case 45:p===45&&$t(I)==2&&(b=0)}}return a}function Tl(e,t,n,r,o,a,i,l,s,u,c,h){for(var d=o-1,f=o===0?a:[""],p=o0(f),b=0,x=0,w=0;b<r;++b)for(var k=0,S=Cn(e,d+1,d=r0(x=i[b])),v=e;k<p;++k)(v=qc(x>0?f[k]+" "+S:da(S,/&\f/g,f[k])))&&(s[w++]=v);return di(e,t,n,o===0?Uc:l,s,u,c,h)}function p0(e,t,n,r){return di(e,t,n,Wc,Un(a0()),Cn(e,2,-2),0,r)}function Nl(e,t,n,r,o){return di(e,t,n,Zc,Cn(e,0,r),Cn(e,r+1,-1),r,o)}function fa(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function g0(e,t,n,r){switch(e.type){case n0:if(e.children.length)break;case Qb:case e0:case Zc:return e.return=e.return||e.value;case Wc:return"";case t0:return e.return=e.value+"{"+fa(e.children,r)+"}";case Uc:if(!$t(e.value=e.props.join(",")))return""}return $t(n=fa(e.children,r))?e.return=e.value+"{"+n+"}":""}const m0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),b0=$().regex(/^rgba?\([^\)]+\)$/i),x0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),v0=le("transparent"),El=D([m0,b0,x0,v0]).nullable().optional(),k0=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),w0=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),S0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,$0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_0=T(["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 C0(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 A0=C({style:C({color:El,backgroundColor:El,fontFamily:_0,fontSize:g().min(0).optional().nullable(),textAlign:T(["left","right","center"]).optional().nullable(),padding:k0,margin:w0}).optional().nullable(),props:C({contents:$().optional().nullable()}).optional().nullable()}),y0=/<style[^>]*>([\s\S]*?)<\/style>/gi;function I0(e,t){let n="";const r=e.replace(y0,(a,i)=>(n+=i,""));if(!n.trim())return{markup:r,css:""};const o=fa(f0(`[${t}]{${n}}`),g0);return{markup:r,css:o}}function R0({style:e,props:t}){const n=t==null?void 0:t.contents,[r,o]=V.useState(!1),i=`data-html-scope-${V.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=V.useMemo(()=>n?I0(n,i):{markup:"",css:""},[n,i]),u={color:z(e==null?void 0:e.color,"blockText"),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontFamily:C0(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:S0(e==null?void 0:e.padding),margin:$0(e==null?void 0:e.margin)},c=V.useRef(null);V.useEffect(()=>{const b=c.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=r?"auto":"none"}catch{}})},[n,r]);const h=b=>{r||o(!0)},d=()=>{o(!1)},f=`[${i}] pre,[${i}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return m.jsx("div",{ref:c,className:"html-block",...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,children:m.jsx("style",{dangerouslySetInnerHTML:{__html:f}})});const p=`<style>${f}${s}</style>${so(l)}`;return m.jsx("div",{ref:c,className:"html-block",...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,onClick:h,onBlur:d,tabIndex:0,[i]:"",dangerouslySetInnerHTML:{__html:p}})}const T0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),N0=$().regex(/^rgba?\([^\)]+\)$/i),E0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),M0=le("transparent"),P0=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),O0=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),L0=D([g(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Nr=D([T0,N0,E0,M0]).nullable().optional(),z0=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),B0=C({color:Nr,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function j0(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 D0(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${j0(t)}`}}const 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;function G0(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 W0(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 U0=C({style:C({padding:P0,margin:O0,backgroundColor:Nr.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:g().optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthUnitTablet:T(["px","%"]).optional().nullable(),widthUnitMobile:T(["px","%"]).optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),height:g().optional().nullable(),heightTablet:g().positive().optional().nullable(),heightMobile:g().positive().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:L().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),borderRadius:L0,borderColor:Nr.default(null),borderWidth:z0,boxShadow:B0,iconName:$().optional().nullable(),iconFillColor:Nr.default(null),rotation:g().min(0).max(360).optional().nullable(),rotationTablet:g().min(0).max(360).optional().nullable(),rotationMobile:g().min(0).max(360).optional().nullable(),animation:C({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:C({enabled:L(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:T(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()}),We={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 Z0=0;function q0({style:e,props:t}){const n=V.useMemo(()=>`ahd-img-${++Z0}`,[]),r=si(),o=(e==null?void 0:e.textAlign)??void 0,a=o==="center"?"center":o==="right"?"flex-end":"flex-start",i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s={padding:F0(e==null?void 0:e.padding),margin:H0(e==null?void 0:e.margin),...G0(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),display:"flex",justifyContent:a,width:l>0?`max(0px, calc(100% - ${l}px))`:"100%",boxSizing:"border-box"},u=(t==null?void 0:t.showLink)??(t!=null&&t.linkHref?!0:We.showLink),c=(t==null?void 0:t.linkHref)??We.linkHref,h=u&&c?c:null,d=(t==null?void 0:t.linkTarget)??We.linkTarget,f=(t==null?void 0:t.widthType)??We.widthType,p=(t==null?void 0:t.widthTypeTablet)??f,b=(t==null?void 0:t.widthTypeMobile)??p,x=(t==null?void 0:t.width)??We.width,w=(t==null?void 0:t.widthUnit)??We.widthUnit,k=(t==null?void 0:t.widthUnitTablet)??w,S=(t==null?void 0:t.widthUnitMobile)??k,v=(t==null?void 0:t.widthTablet)??null,_=(t==null?void 0:t.widthMobile)??null,y=v??x,A=_??y,I=(t==null?void 0:t.height)??We.height,R=(t==null?void 0:t.heightTablet)??null,N=(t==null?void 0:t.heightMobile)??null,P=R??I,M=N??P,O=I,j=(t==null?void 0:t.url)??We.url,F=(t==null?void 0:t.urlTablet)??null,H=(t==null?void 0:t.urlMobile)??null,W=!h&&((t==null?void 0:t.decorative)??We.decorative),U=W?"":(t==null?void 0:t.alt)??We.alt,X=W?{role:"presentation","aria-hidden":!0}:{},Z=(t==null?void 0:t.contentAlignment)??We.contentAlignment,q=(t==null?void 0:t.borderRadius)??We.borderRadius,ae=se((t==null?void 0:t.borderColor)??We.borderColor),$e=(t==null?void 0:t.borderWidth)??We.borderWidth,ce=(t==null?void 0:t.boxShadow)??We.boxShadow,pe=D0(ce),Le=(t==null?void 0:t.rotation)??We.rotation,ee=(t==null?void 0:t.rotationTablet)??null,Y=(t==null?void 0:t.rotationMobile)??null,K=ee??Le,B=Y??K,J=te=>{const Ie=te*Math.PI/180,Ze=te%180!==0?1/(Math.abs(Math.cos(Ie))+Math.abs(Math.sin(Ie))):1;return`rotate(${te}deg) scale(${Ze})`},me=Le,ke=me?{transform:J(me),transformOrigin:"center"}:{},ge=ee!=null||Y!=null?`
66
- ${_t} { .${n} img, .${n} > div { transform: ${J(K)} !important; transform-origin: center !important; } }
67
- ${et} { .${n} img, .${n} > div { transform: ${J(B)} !important; transform-origin: center !important; } }
68
- `.trim():null,Ce=W0(ae,$e),oe=te=>typeof te=="number"?`${te}px`:`${te.topLeft}px ${te.topRight}px ${te.bottomRight}px ${te.bottomLeft}px`,Pe=(te,Ie)=>{const Ze=Math.max((Ie==null?void 0:Ie.top)||0,(Ie==null?void 0:Ie.right)||0,(Ie==null?void 0:Ie.bottom)||0,(Ie==null?void 0:Ie.left)||0);if(typeof te=="number")return`${Math.max(0,te-Ze)}px`;const Xe=Math.max(0,(te.topLeft||0)-Ze),qt=Math.max(0,(te.topRight||0)-Ze),ue=Math.max(0,(te.bottomRight||0)-Ze),ve=Math.max(0,(te.bottomLeft||0)-Ze);return`${Xe}px ${qt}px ${ue}px ${ve}px`},xe=(()=>{switch(f){case"fill":return"100%";case"fixed":return x;case"fit":default:return}})(),He=f==="fixed"&&typeof x=="number"&&x>0&&x<=48&&(w??"px")==="px"?{filter:"var(--pp-icon-filter, none)"}:{},Q=te=>te==="mobile"?b:te==="tablet"?p:f,Be=te=>te==="mobile"?S:te==="tablet"?k:w,ze=te=>{const Ie=Q(te);if(Ie==="fill")return"100%";if(Ie==="fit")return"auto";const Ze=te==="mobile"?A:te==="tablet"?y:x,Xe=Be(te);return`${Ze}${Xe}`},ie=ze(r),At=Be(r),Ge=typeof ie=="string"&&ie.endsWith("%")?{display:"block",width:"100%",textAlign:o??"left"}:{},tt=j,Ot=(t==null?void 0:t.widthTypeTablet)!=null||(t==null?void 0:t.widthTypeMobile)!=null||f==="fixed"?`
64
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const h=c[1];if(t===c[0]){a(c);continue}if(e.external){const f=(s=e.external.registry.get(c[0]))==null?void 0:s.id;if(t!==c[0]&&f){a(c);continue}}if((u=e.metadataRegistry.get(c[0]))==null?void 0:u.id){a(c);continue}if(h.cycle){a(c);continue}if(h.count>1&&e.reused==="ref"){a(c);continue}}}function Cc(e,t){var l,s,u,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=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){r(b);const w=e.seen.get(b),k=w.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(k)):Object.assign(f,k),Object.assign(f,p),h._zod.parent===b)for(const v in f)v==="$ref"||v==="allOf"||v in p||delete f[v];if(k.$ref&&w.def)for(const v in f)v==="$ref"||v==="allOf"||v in w.def&&JSON.stringify(f[v])===JSON.stringify(w.def[v])&&delete f[v]}const x=h._zod.parent;if(x&&x!==b){r(x);const w=e.seen.get(x);if(w!=null&&w.schema.$ref&&(f.$ref=w.schema.$ref,w.def))for(const k in f)k==="$ref"||k==="allOf"||k in w.def&&JSON.stringify(f[k])===JSON.stringify(w.def[k])&&delete f[k]}e.override({zodSchema:h,jsonSchema:f,path:d.path??[]})};for(const h of[...e.seen.entries()].reverse())r(h[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(s=e.external.registry.get(t))==null?void 0:s.id;if(!h)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(h)}Object.assign(o,n.def??n.schema);const a=(u=e.metadataRegistry.get(t))==null?void 0:u.id;a!==void 0&&o.id===a&&delete o.id;const i=((c=e.external)==null?void 0:c.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,i[d.defId]=d.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const h=JSON.parse(JSON.stringify(o));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:Wr(t,"input",e.processors),output:Wr(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function Xe(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Xe(r.element,n);if(r.type==="set")return Xe(r.valueType,n);if(r.type==="lazy")return Xe(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Xe(r.innerType,n);if(r.type==="intersection")return Xe(r.left,n)||Xe(r.right,n);if(r.type==="record"||r.type==="map")return Xe(r.keyType,n)||Xe(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Xe(r.in,n)||Xe(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Xe(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Xe(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Xe(o,n))return!0;return!!(r.rest&&Xe(r.rest,n))}return!1}const Mp=(e,t={})=>n=>{const r=$c({...n,processors:t});return Ee(e,r),_c(r,e),Cc(r,e)},Wr=(e,t,n={})=>r=>{const{libraryOptions:o,target:a}=r??{},i=$c({...o??{},target:a,io:t,processors:n});return Ee(e,i),_c(i,e),Cc(i,e)},Pp={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Op=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:a,maximum:i,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(o.minLength=a),typeof i=="number"&&(o.maxLength=i),l&&(o.format=Pp[l]??l,o.format===""&&delete o.format,l==="time"&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){const c=[...s];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},Lp=(e,t,n,r)=>{const o=n,{minimum:a,maximum:i,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number";const h=typeof c=="number"&&c>=(a??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";h?f?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c:typeof a=="number"&&(o.minimum=a),d?f?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u:typeof i=="number"&&(o.maximum=i),typeof s=="number"&&(o.multipleOf=s)},zp=(e,t,n,r)=>{n.type="boolean"},jp=(e,t,n,r)=>{n.not={}},Bp=(e,t,n,r)=>{},Dp=(e,t,n,r)=>{},Fp=(e,t,n,r)=>{const o=e._zod.def,a=tc(o.entries);a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),n.enum=a},Hp=(e,t,n,r)=>{const o=e._zod.def,a=[];for(const i of o.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(i))}else a.push(i);if(a.length!==0)if(a.length===1){const i=a[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),a.every(i=>typeof i=="boolean")&&(n.type="boolean"),a.every(i=>i===null)&&(n.type="null"),n.enum=a},Gp=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Wp=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Up=(e,t,n,r)=>{const o=n,a=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=Ee(a.element,t,{...r,path:[...r.path,"items"]})},Zp=(e,t,n,r)=>{var u;const o=n,a=e._zod.def;o.type="object",o.properties={};const i=a.shape;for(const c in i)o.properties[c]=Ee(i[c],t,{...r,path:[...r.path,"properties",c]});const l=new Set(Object.keys(i)),s=new Set([...l].filter(c=>{const h=a.shape[c]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));s.size>0&&(o.required=Array.from(s)),((u=a.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:a.catchall?a.catchall&&(o.additionalProperties=Ee(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},qp=(e,t,n,r)=>{const o=e._zod.def,a=o.inclusive===!1,i=o.options.map((l,s)=>Ee(l,t,{...r,path:[...r.path,a?"oneOf":"anyOf",s]}));a?n.oneOf=i:n.anyOf=i},Vp=(e,t,n,r)=>{const o=e._zod.def,a=Ee(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Ee(o.right,t,{...r,path:[...r.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(a)?a.allOf:[a],...l(i)?i.allOf:[i]];n.allOf=s},Yp=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=a.items.map((d,f)=>Ee(d,t,{...r,path:[...r.path,i,f]})),u=a.rest?Ee(a.rest,t,{...r,path:[...r.path,l,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=s,u&&(o.items=u)):t.target==="openapi-3.0"?(o.items={anyOf:s},u&&o.items.anyOf.push(u),o.minItems=s.length,u||(o.maxItems=s.length)):(o.items=s,u&&(o.additionalItems=u));const{minimum:c,maximum:h}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof h=="number"&&(o.maxItems=h)},Kp=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="object";const i=a.keyType,l=i._zod.bag,s=l==null?void 0:l.patterns;if(a.mode==="loose"&&s&&s.size>0){const c=Ee(a.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const h of s)o.patternProperties[h.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Ee(a.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Ee(a.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const u=i._zod.values;if(u){const c=[...u].filter(h=>typeof h=="string"||typeof h=="number");c.length>0&&(o.required=c)}},Jp=(e,t,n,r)=>{const o=e._zod.def,a=Ee(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},Xp=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},Qp=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},eg=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},tg=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},ng=(e,t,n,r)=>{const o=e._zod.def,a=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?a?o.out:o.in:o.out;Ee(i,t,r);const l=t.seen.get(e);l.ref=i},rg=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.readOnly=!0},Ac=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},og=(e,t,n,r)=>{const o=e._zod.innerType;Ee(o,t,r);const a=t.seen.get(e);a.ref=o},ag=N("ZodISODateTime",(e,t)=>{Xh.init(e,t),Ne.init(e,t)});function ig(e){return sp(ag,e)}const lg=N("ZodISODate",(e,t)=>{Qh.init(e,t),Ne.init(e,t)});function sg(e){return cp(lg,e)}const cg=N("ZodISOTime",(e,t)=>{ef.init(e,t),Ne.init(e,t)});function ug(e){return up(cg,e)}const dg=N("ZodISODuration",(e,t)=>{tf.init(e,t),Ne.init(e,t)});function hg(e){return dp(dg,e)}const fg=(e,t)=>{ac.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Wd(e,n)},flatten:{value:n=>Gd(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ua,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ua,2)}},isEmpty:{get(){return e.issues.length===0}}})},lt=N("ZodError",fg,{Parent:Error}),pg=ci(lt),gg=ui(lt),mg=so(lt),bg=co(lt),xg=qd(lt),vg=Vd(lt),kg=Yd(lt),wg=Kd(lt),Sg=Jd(lt),$g=Xd(lt),_g=Qd(lt),Cg=eh(lt),ml=new WeakMap;function ar(e,t,n){const r=Object.getPrototypeOf(e);let o=ml.get(r);if(o||(o=new Set,ml.set(r,o)),!o.has(t)){o.add(t);for(const a in n){const i=n[a];Object.defineProperty(r,a,{configurable:!0,enumerable:!1,get(){const l=i.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const Ae=N("ZodType",(e,t)=>(_e.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Wr(e,"input"),output:Wr(e,"output")}}),e.toJSONSchema=Mp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>pg(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>mg(e,n,r),e.parseAsync=async(n,r)=>gg(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>bg(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>xg(e,n,r),e.decode=(n,r)=>vg(e,n,r),e.encodeAsync=async(n,r)=>kg(e,n,r),e.decodeAsync=async(n,r)=>wg(e,n,r),e.safeEncode=(n,r)=>Sg(e,n,r),e.safeDecode=(n,r)=>$g(e,n,r),e.safeEncodeAsync=async(n,r)=>_g(e,n,r),e.safeDecodeAsync=async(n,r)=>Cg(e,n,r),ar(e,"ZodType",{check(...n){const r=this.def;return this.clone(Ut(r,{checks:[...r.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Zt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(wm(n,r))},superRefine(n,r){return this.check(Sm(n,r))},overwrite(n){return this.check(Tn(n))},optional(){return wl(this)},exactOptional(){return im(this)},nullable(){return Sl(this)},nullish(){return wl(Sl(this))},nonoptional(n){return hm(this,n)},array(){return oe(this)},or(n){return F([this,n])},and(n){return tm(this,n)},transform(n){return $l(this,Ec(n))},default(n){return cm(this,n)},prefault(n){return dm(this,n)},catch(n){return pm(this,n)},pipe(n){return $l(this,n)},readonly(){return bm(this)},describe(n){const r=this.clone();return Gn.add(r,{description:n}),r},meta(...n){if(n.length===0)return Gn.get(this);const r=this.clone();return Gn.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=Gn.get(e))==null?void 0:n.description},configurable:!0}),e)),yc=N("_ZodString",(e,t)=>{di.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Op(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,ar(e,"_ZodString",{regex(...r){return this.check(xp(...r))},includes(...r){return this.check(wp(...r))},startsWith(...r){return this.check(Sp(...r))},endsWith(...r){return this.check($p(...r))},min(...r){return this.check(Gr(...r))},max(...r){return this.check(wc(...r))},length(...r){return this.check(Sc(...r))},nonempty(...r){return this.check(Gr(1,...r))},lowercase(r){return this.check(vp(r))},uppercase(r){return this.check(kp(r))},trim(){return this.check(Cp())},normalize(...r){return this.check(_p(...r))},toLowerCase(){return this.check(Ap())},toUpperCase(){return this.check(yp())},slugify(){return this.check(Ip())}})}),Ag=N("ZodString",(e,t)=>{di.init(e,t),yc.init(e,t),e.email=n=>e.check(Ff(yg,n)),e.url=n=>e.check(Zf(Ig,n)),e.jwt=n=>e.check(lp(Gg,n)),e.emoji=n=>e.check(qf(Rg,n)),e.guid=n=>e.check(hl(bl,n)),e.uuid=n=>e.check(Hf(br,n)),e.uuidv4=n=>e.check(Gf(br,n)),e.uuidv6=n=>e.check(Wf(br,n)),e.uuidv7=n=>e.check(Uf(br,n)),e.nanoid=n=>e.check(Vf(Tg,n)),e.guid=n=>e.check(hl(bl,n)),e.cuid=n=>e.check(Yf(Eg,n)),e.cuid2=n=>e.check(Kf(Ng,n)),e.ulid=n=>e.check(Jf(Mg,n)),e.base64=n=>e.check(op(Dg,n)),e.base64url=n=>e.check(ap(Fg,n)),e.xid=n=>e.check(Xf(Pg,n)),e.ksuid=n=>e.check(Qf(Og,n)),e.ipv4=n=>e.check(ep(Lg,n)),e.ipv6=n=>e.check(tp(zg,n)),e.cidrv4=n=>e.check(np(jg,n)),e.cidrv6=n=>e.check(rp(Bg,n)),e.e164=n=>e.check(ip(Hg,n)),e.datetime=n=>e.check(ig(n)),e.date=n=>e.check(sg(n)),e.time=n=>e.check(ug(n)),e.duration=n=>e.check(hg(n))});function $(e){return Df(Ag,e)}const Ne=N("ZodStringFormat",(e,t)=>{Te.init(e,t),yc.init(e,t)}),yg=N("ZodEmail",(e,t)=>{Gh.init(e,t),Ne.init(e,t)}),bl=N("ZodGUID",(e,t)=>{Fh.init(e,t),Ne.init(e,t)}),br=N("ZodUUID",(e,t)=>{Hh.init(e,t),Ne.init(e,t)}),Ig=N("ZodURL",(e,t)=>{Wh.init(e,t),Ne.init(e,t)}),Rg=N("ZodEmoji",(e,t)=>{Uh.init(e,t),Ne.init(e,t)}),Tg=N("ZodNanoID",(e,t)=>{Zh.init(e,t),Ne.init(e,t)}),Eg=N("ZodCUID",(e,t)=>{qh.init(e,t),Ne.init(e,t)}),Ng=N("ZodCUID2",(e,t)=>{Vh.init(e,t),Ne.init(e,t)}),Mg=N("ZodULID",(e,t)=>{Yh.init(e,t),Ne.init(e,t)}),Pg=N("ZodXID",(e,t)=>{Kh.init(e,t),Ne.init(e,t)}),Og=N("ZodKSUID",(e,t)=>{Jh.init(e,t),Ne.init(e,t)}),Lg=N("ZodIPv4",(e,t)=>{nf.init(e,t),Ne.init(e,t)}),zg=N("ZodIPv6",(e,t)=>{rf.init(e,t),Ne.init(e,t)}),jg=N("ZodCIDRv4",(e,t)=>{of.init(e,t),Ne.init(e,t)}),Bg=N("ZodCIDRv6",(e,t)=>{af.init(e,t),Ne.init(e,t)}),Dg=N("ZodBase64",(e,t)=>{lf.init(e,t),Ne.init(e,t)}),Fg=N("ZodBase64URL",(e,t)=>{cf.init(e,t),Ne.init(e,t)}),Hg=N("ZodE164",(e,t)=>{uf.init(e,t),Ne.init(e,t)}),Gg=N("ZodJWT",(e,t)=>{hf.init(e,t),Ne.init(e,t)}),Ic=N("ZodNumber",(e,t)=>{gc.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Lp(e,r,o),ar(e,"ZodNumber",{gt(r,o){return this.check(pl(r,o))},gte(r,o){return this.check(So(r,o))},min(r,o){return this.check(So(r,o))},lt(r,o){return this.check(fl(r,o))},lte(r,o){return this.check(wo(r,o))},max(r,o){return this.check(wo(r,o))},int(r){return this.check(xl(r))},safe(r){return this.check(xl(r))},positive(r){return this.check(pl(0,r))},nonnegative(r){return this.check(So(0,r))},negative(r){return this.check(fl(0,r))},nonpositive(r){return this.check(wo(0,r))},multipleOf(r,o){return this.check(gl(r,o))},step(r,o){return this.check(gl(r,o))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function g(e){return hp(Ic,e)}const Wg=N("ZodNumberFormat",(e,t)=>{ff.init(e,t),Ic.init(e,t)});function xl(e){return fp(Wg,e)}const Ug=N("ZodBoolean",(e,t)=>{pf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>zp(e,n,r)});function L(e){return pp(Ug,e)}const Zg=N("ZodAny",(e,t)=>{gf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bp()});function Xn(){return gp(Zg)}const qg=N("ZodUnknown",(e,t)=>{mf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Dp()});function vl(){return mp(qg)}const Vg=N("ZodNever",(e,t)=>{bf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>jp(e,n,r)});function Yg(e){return bp(Vg,e)}const Kg=N("ZodArray",(e,t)=>{xf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Up(e,n,r,o),e.element=t.element,ar(e,"ZodArray",{min(n,r){return this.check(Gr(n,r))},nonempty(n){return this.check(Gr(1,n))},max(n,r){return this.check(wc(n,r))},length(n,r){return this.check(Sc(n,r))},unwrap(){return this.element}})});function oe(e,t){return Rp(Kg,e,t)}const Jg=N("ZodObject",(e,t)=>{kf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Zp(e,n,r,o),de(e,"shape",()=>t.shape),ar(e,"ZodObject",{keyof(){return T(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:vl()})},loose(){return this.clone({...this._zod.def,catchall:vl()})},strict(){return this.clone({...this._zod.def,catchall:Yg()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return zd(this,n)},safeExtend(n){return jd(this,n)},merge(n){return Bd(this,n)},pick(n){return Od(this,n)},omit(n){return Ld(this,n)},partial(...n){return Dd(Nc,this,n[0])},required(...n){return Fd(Mc,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...Z(t)};return new Jg(n)}const Rc=N("ZodUnion",(e,t)=>{xc.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qp(e,n,r,o),e.options=t.options});function F(e,t){return new Rc({type:"union",options:e,...Z(t)})}const Xg=N("ZodDiscriminatedUnion",(e,t)=>{Rc.init(e,t),wf.init(e,t)});function Qg(e,t,n){return new Xg({type:"union",options:t,discriminator:e,...Z(n)})}const em=N("ZodIntersection",(e,t)=>{Sf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vp(e,n,r,o)});function tm(e,t){return new em({type:"intersection",left:e,right:t})}const nm=N("ZodTuple",(e,t)=>{$f.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n,r,o),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Tc(e,t,n){const r=t instanceof _e,o=r?n:t,a=r?t:null;return new nm({type:"tuple",items:e,rest:a,...Z(o)})}const kl=N("ZodRecord",(e,t)=>{_f.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function yn(e,t,n){return!t||!t._zod?new kl({type:"record",keyType:$(),valueType:e,...Z(t)}):new kl({type:"record",keyType:e,valueType:t,...Z(n)})}const ha=N("ZodEnum",(e,t)=>{Cf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Fp(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const a={};for(const i of r)if(n.has(i))a[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new ha({...t,checks:[],...Z(o),entries:a})},e.exclude=(r,o)=>{const a={...t.entries};for(const i of r)if(n.has(i))delete a[i];else throw new Error(`Key ${i} not found in enum`);return new ha({...t,checks:[],...Z(o),entries:a})}});function T(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ha({type:"enum",entries:n,...Z(t)})}const rm=N("ZodLiteral",(e,t)=>{Af.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hp(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function le(e,t){return new rm({type:"literal",values:Array.isArray(e)?e:[e],...Z(t)})}const om=N("ZodTransform",(e,t)=>{yf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Wp(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new ec(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(Jn(a,n.value,t));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Jn(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(a=>(n.value=a,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}});function Ec(e){return new om({type:"transform",transform:e})}const Nc=N("ZodOptional",(e,t)=>{vc.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ac(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function wl(e){return new Nc({type:"optional",innerType:e})}const am=N("ZodExactOptional",(e,t)=>{If.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ac(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function im(e){return new am({type:"optional",innerType:e})}const lm=N("ZodNullable",(e,t)=>{Rf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Sl(e){return new lm({type:"nullable",innerType:e})}const sm=N("ZodDefault",(e,t)=>{Tf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function cm(e,t){return new sm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():rc(t)}})}const um=N("ZodPrefault",(e,t)=>{Ef.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>eg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function dm(e,t){return new um({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():rc(t)}})}const Mc=N("ZodNonOptional",(e,t)=>{Nf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function hm(e,t){return new Mc({type:"nonoptional",innerType:e,...Z(t)})}const fm=N("ZodCatch",(e,t)=>{Mf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function pm(e,t){return new fm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Pc=N("ZodPipe",(e,t)=>{kc.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ng(e,n,r,o),e.in=t.in,e.out=t.out});function $l(e,t){return new Pc({type:"pipe",in:e,out:t})}const gm=N("ZodPreprocess",(e,t)=>{Pc.init(e,t),Pf.init(e,t)}),mm=N("ZodReadonly",(e,t)=>{Of.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function bm(e){return new mm({type:"readonly",innerType:e})}const xm=N("ZodLazy",(e,t)=>{Lf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>og(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function vm(e){return new xm({type:"lazy",getter:e})}const km=N("ZodCustom",(e,t)=>{zf.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gp(e,n)});function wm(e,t={}){return Tp(km,e,t)}function Sm(e,t){return Ep(e,t)}function Oc(e,t){return new gm({type:"pipe",in:Ec(e),out:t})}var $m=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),_m=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_l=A({style:A({textAlign:T(["left","center","right"]).optional().nullable(),padding:$m}).optional().nullable(),props:A({size:g().gt(0).optional().nullable(),shape:T(["circle","square","rounded"]).optional().nullable(),imageUrl:$().optional().nullable(),alt:$().optional().nullable()}).optional().nullable()});function Cm(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var xr={size:64,imageUrl:"",alt:"",shape:"square"};function Cl({style:e,props:t}){var n,r,o,a,i;const l=(n=t==null?void 0:t.size)!=null?n:xr.size,s=(r=t==null?void 0:t.imageUrl)!=null?r:xr.imageUrl,u=(o=t==null?void 0:t.alt)!=null?o:xr.alt,c=(a=t==null?void 0:t.shape)!=null?a:xr.shape,h={textAlign:(i=e==null?void 0:e.textAlign)!=null?i:void 0,padding:_m(e==null?void 0:e.padding)};return U.createElement("div",{style:h},U.createElement("img",{alt:u,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:Cm(c,l)}}))}const Am=A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),ym=$().regex(/^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\([^\)]+\))$/i),At=A({enabled:L(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:T(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable(),borderColor:ym.optional().nullable(),borderWidth:g().min(0).max(20).optional().nullable(),borderStyle:T(["solid","dashed","dotted"]).optional().nullable(),textDecoration:T(["none","underline","overline","line-through"]).optional().nullable()}).optional().nullable(),vr=(e,t,n)=>{const r=`.${e}:hover${t}`;return n?`${r}, .container-block:hover:not(:has(.container-block .${e})) .${e}${t}`:r};function Lt(e,t,{themedBorderColor:n,scaleTarget:r="",borderTarget:o="",scaleFromContainer:a=!1,borderFromContainer:i=!1,defaultScale:l=1.05,scaleBaseCss:s=""}={}){if(!(t!=null&&t.enabled)||!e)return null;const u=`${t.duration??500}ms ${t.easing??"ease-in-out"}`,c=`transition: transform ${u}, outline-color ${u};`,h=[],d=t.scale??l;d>1&&(h.push(`.${e}${r} { ${s} ${c} }`),h.push(`${vr(e,r,a)} { transform: scale(${d}); }`));const f=t.borderWidth??1;if(t.borderColor&&n&&f>0&&(h.push(`.${e}${o} { outline: ${f}px ${t.borderStyle??"solid"} transparent !important; outline-offset: -${f}px; ${c} }`),h.push(`${vr(e,o,i)} { outline-color: ${n} !important; }`)),t.textDecoration&&t.textDecoration!=="none"){const p=`${vr(e,"",!0)}, ${vr(e," *",!0)}`;h.push(`${p} { text-decoration: ${t.textDecoration} !important; }`)}return h.join(`
65
+ `)||null}const Im=_l.extend({props:_l.shape.props.unwrap().unwrap().extend({decorative:L().optional().nullable(),hoverEffect:At,animation:Am}).optional().nullable()});function Wt(e){if(!e)return"";let t=String(e).trim().toLowerCase().replace(/\s+/g,"");const n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(t);return n&&(t=`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`),t}const re=(e,t=[],n)=>({role:e,seeds:t.map(Wt),nullFallback:n}),Ur={pageText:re("text",[],"#262626"),containerFill:re("surface",[],"#ffffff"),layoutText:re("text",["#262626","#1f2937"],"#262626"),canvas:re("surface",["#ffffff"]),closeIcon:re("text",["#000000","#262626"],"#262626"),brandingText:re("text-muted",[],"#8a8a8a"),blockText:re("text",["#262626"]),listText:re("text"),link:re("link",[],"#2563eb"),codeBg:re("surface-alt",[],"#f3f4f6"),quoteBorder:re("text-muted",[],"#9ca3af"),divider:re("border",["#cccccc","#333333"],"#cccccc"),tableText:re("text",["#262626"]),tableBorder:re("border",["#e5e7eb"]),tableHeaderBg:re("surface-alt",["#f3f4f6"]),tableHeaderText:re("text-strong",["#111827"]),tableStripe:re("surface-alt",["#f8f6f6"]),track:re("track",["#e5e7eb"]),trackText:re("text",["#262626"]),timerText:re("text",[],"#1f1f1f"),timerLabel:re("text-muted",[],"#6b7280"),timerTrack:re("track",[],"#e5e7eb"),breadcrumbText:re("text-muted",["#595959"]),menuText:re("text",["#000000"],"#000000"),menuSurface:re("surface",[],"#ffffff"),carouselArrow:re("text",[],"#262626"),carouselArrowBg:re("surface",[],"#ffffff"),carouselArrowBorder:re("border-subtle",[],"rgba(0,0,0,.12)"),carouselDot:re("track",[],"#d4d4d4"),carouselDotActive:re("text",[],"#262626"),paginationBg:re("surface",["#ffffff"],"#ffffff"),paginationText:re("text",["#262626"],"#262626"),paginationBorder:re("border-subtle",["rgba(0,0,0,.12)"],"rgba(0,0,0,.12)"),surface:re("surface",[],"#ffffff"),surfaceLiteral:re("surface"),bgAdaptive:re("surface"),buttonText:re("text"),borderAdaptive:re("border"),borderSubtle:re("border-subtle",[],"rgba(0,0,0,.12)"),surfaceAlt:re("surface-alt"),tabsRing:re("border",[],"#d0d5dd")},Lc=e=>/gradient\(|url\(/i.test(e);function Zr(e){const t=Wt(e);let n=/^#([0-9a-f]{6})([0-9a-f]{2})?$/.exec(t);if(n){const r=parseInt(n[1],16);return{r:r>>16&255,g:r>>8&255,b:r&255,a:n[2]?parseInt(n[2],16)/255:1}}return n=/^rgba?\((\d{1,3}),(\d{1,3}),(\d{1,3})(?:,([\d.]+))?\)$/.exec(t),n?{r:+n[1],g:+n[2],b:+n[3],a:n[4]!==void 0?+n[4]:1}:null}function Al({r:e,g:t,b:n}){const r=o=>{const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function Rm({r:e,g:t,b:n}){const r=e/255,o=t/255,a=n/255,i=Math.max(r,o,a),l=Math.min(r,o,a),s=(i+l)/2,u=i-l;if(u===0)return{h:0,s:0,l:s};const c=u/(1-Math.abs(2*s-1));return{h:((i===r?(o-a)/u%6:i===o?(a-r)/u+2:(r-o)/u+4)*60+360)%360,s:c,l:s}}function $o(e,t,n,r){const o=(1-Math.abs(2*n-1))*t,a=o*(1-Math.abs(e/60%2-1)),i=n-o/2,[l,s,u]=e<60?[o,a,0]:e<120?[a,o,0]:e<180?[0,o,a]:e<240?[0,a,o]:e<300?[a,0,o]:[o,0,a],c=h=>Math.round((h+i)*255).toString(16).padStart(2,"0");return`#${c(l)}${c(s)}${c(u)}${r<1?Math.round(r*255).toString(16).padStart(2,"0"):""}`}function ho(e,t){const n=Zr(e);if(!n||n.a===0)return null;const{h:r,s:o,l:a}=Rm(n);if(t==="text"){if(Al(n)>=.2)return null;let i=a,l=$o(r,o,i,n.a);const s=o<.1?.75:.4;for(;i<.97&&Al(Zr(l))<s;)i=Math.min(.97,i+.02),l=$o(r,o,i,n.a);return l}return a<=.82?null:$o(r,o*.5,Math.min(.18,Math.max(.07,1-a)),n.a)}const zc=["text","text-strong","text-muted","link"],jc=["surface","surface-alt","track"],Tm=e=>zc.includes(e)?"text":jc.includes(e)?"bg":null;function Em(e){if(!e||!e.trim()||/^(transparent|none)$/i.test(e.trim()))return!0;const t=Zr(e);return!!t&&t.a===0}function Bc(e){return!!e&&!Lc(e)&&ho(e,"bg")!==null}const Nm={text:["text","text-strong","text-muted","link"],bg:["surface","surface-alt","track"],border:["border","border-subtle","surface","surface-alt","track"]};let _o=null;function Mm(){if(_o)return _o;const e=new Map;return Object.values(Ur).forEach(t=>{e.has(t.role)||e.set(t.role,new Set),t.seeds.forEach(n=>e.get(t.role).add(n)),t.nullFallback&&e.get(t.role).add(Wt(t.nullFallback))}),_o=e,e}function Pm(e,t){var r;const n=Mm();for(const o of Nm[t])if((r=n.get(o))!=null&&r.has(e))return o;return null}const Dc=e=>zc.includes(e)?"text":jc.includes(e)?"bg":"border",Co=/(?:repeating-)?(?:linear|radial|conic)-gradient\(/gi,Om=/^(to\s|[-+]?[\d.]+(?:deg|grad|rad|turn)\b|circle\b|ellipse\b|closest-|farthest-|at\s|from\s|in\s)/i;function Fc(e,t){let n=0;for(let r=t;r<e.length;r+=1)if(e[r]==="(")n+=1;else if(e[r]===")"&&(n-=1,n===0))return r;return-1}function Lm(e){const t=[];let n=0,r=0;for(let o=0;o<e.length;o+=1)e[o]==="("?n+=1:e[o]===")"?n-=1:e[o]===","&&n===0&&(t.push(e.slice(r,o)),r=o+1);return t.push(e.slice(r)),t}function zm(e,t,n){const r=/^\s*/.exec(e)[0],o=e.slice(r.length);if(!o||Om.test(o))return e;let a="";const i=/^#[0-9a-fA-F]{3,8}(?![0-9a-zA-Z])/.exec(o);if(i)a=i[0];else if(/^rgba?\(/i.test(o)){const c=Fc(o,o.indexOf("("));c>0&&(a=o.slice(0,c+1))}if(!a)return/^(transparent)\b/i.test(o)||(n.literal+=1),e;const l=Zr(a),s=Pm(Wt(a),t);if(s)return n.adapted+=1,`${r}var(--pp-g-${s},${a})${o.slice(a.length)}`;const u=t==="border"?null:ho(a,t);return u?(n.adapted+=1,`${r}light-dark(${a},${u})${o.slice(a.length)}`):((!l||l.a>0)&&(n.literal+=1),e)}function Hc(e,t,n){let r="",o=0;Co.lastIndex=0;let a;for(;(a=Co.exec(e))!==null;){const i=a.index+a[0].length-1,l=Fc(e,i);if(l<0)break;const s=e.slice(i+1,l),u=Lm(s).map(c=>zm(c,t,n)).join(",");r+=e.slice(o,i+1)+u,o=l,Co.lastIndex=l+1}return r+e.slice(o)}function jm(e,t="bg"){const n={adapted:0,literal:0},r=Hc(e,t,n);return n.adapted?r:e}function Bm(e,t="bg"){const n={adapted:0,literal:0};return Hc(e,t,n),n.adapted>0&&n.literal===0}function z(e,t){const n=typeof t=="string"?Ur[t]:t;if(e==null||e==="")return n.nullFallback?`var(--pp-${n.role},${n.nullFallback})`:void 0;if(Lc(e))return/gradient\(/i.test(e)?jm(e,Dc(n.role)):e;if(n.seeds.includes(Wt(e)))return`var(--pp-${n.role},${e})`;const r=Tm(n.role),o=r?ho(e,r):null;return o?`light-dark(${e},${o})`:e}const Dm=/^(transparent|none|inherit|initial|unset|currentcolor)$/i;function ue(e,t,n){const r=(e??"").trim();if(n&&!t&&Ur[n].seeds.includes(Wt(r)))return{};if(n&&!t&&Bc(r))return{};if(n&&!t&&/gradient\(/i.test(r)&&Bm(r,Dc(Ur[n].role)))return{};const o=!!r&&!Dm.test(Wt(r))&&!/^rgba?\(.*,\s*0\)$/i.test(Wt(r)),a=!!t&&t.trim()!==""&&t.trim()!=="none";return o||a?{"data-pp-surface":"fixed"}:{}}function se(e){return e??void 0}function hi(){return e=>e??void 0}const yl=e=>{const t=ho(e.trim(),"text");return t?`light-dark(${e.trim()},${t})`:null},Fm=/<font\b([^>]*)>/gi,Il=/\scolor\s*=\s*(?:"([^"]*)"|'([^']*)')/i,Rl=/\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/i,Hm=/(\sstyle\s*=\s*)(?:"([^"]*)"|'([^']*)')/gi,Gm=/(^|[;\s])color\s*:\s*([^;]+?)(\s*!important)?\s*(?=;|$)/gi;function Wm(e){if(!e||!/color/i.test(e))return e;let t=e.replace(Fm,(n,r)=>{const o=Il.exec(r);if(!o)return n;const a=yl(o[1]??o[2]??"");if(!a)return n;const i=r.replace(Il,""),l=Rl.exec(i);if(l){const s=l[1]??l[2]??"";return`<font${i.replace(Rl,` style="color:${a};${s}"`)}>`}return`<font${i} style="color:${a}">`});return t=t.replace(Hm,(n,r,o,a)=>{const i=o!==void 0?'"':"'",l=o??a??"";if(!/color/i.test(l))return n;const s=l.replace(Gm,(u,c,h,d)=>{const f=yl(h);return f?`${c}color:${f}${d??""}`:u});return s===l?n:`${r}${i}${s}${i}`}),t}function Gc(e){return Wm(e)}const Nr="--pp-text:#e6e6e6;--pp-text-strong:#f5f5f5;--pp-text-muted:#a3a3a3;--pp-link:#7aa7ff;--pp-surface:#121212;--pp-surface-alt:#1e1e1e;--pp-track:#2e2e2e;--pp-border:#3a3a3a;--pp-border-subtle:rgba(255,255,255,.12);--pp-icon-filter:invert(1) hue-rotate(180deg);--pp-scheme:dark",Wn="--pp-text:initial;--pp-text-strong:initial;--pp-text-muted:initial;--pp-link:initial;--pp-surface:initial;--pp-surface-alt:initial;--pp-track:initial;--pp-border:initial;--pp-border-subtle:initial;--pp-icon-filter:initial;--pp-scheme:light",Wc=e=>e.replace(/--pp-scheme:[a-z]+/,"").replace(/--pp-icon-filter:[^;]+;/,"").replace(/--pp-/g,"--pp-g-"),Ao=Wc(Nr),kr=Wc(Wn),Tl=e=>`[data-theme=${e}],[data-bs-theme=${e}],[data-mui-color-scheme=${e}],[data-color-mode=${e}]`,Um=`:where(html.dark,body.dark){${Nr};${Ao}}:where(html.light,body.light){${Wn};${kr}}:where(html,body):where(${Tl("dark")}){${Nr};${Ao}}:where(html,body):where(${Tl("light")}){${Wn};${kr}}:where([data-pp-surface=fixed]>*){${kr}}:where([data-pp-theme=dark]){${Nr};${Ao}}:where([data-pp-theme=light]){${Wn};${kr}}:where([data-pp-surface=fixed]){${Wn};color:#262626}:where([data-ahd-tpl-root],[data-pp-scope],[data-pp-theme],[data-pp-surface=fixed]){color-scheme:var(--pp-scheme,light)}`;let Zm=0;function qm({hoverEffect:e,children:t}){const n=U.useMemo(()=>`ahd-hv-wrap-${++Zm}`,[]),r=Lt(n,e,{themedBorderColor:z(e==null?void 0:e.borderColor,"borderAdaptive"),scaleTarget:" img",borderTarget:" img",borderFromContainer:!0});return r?m.jsxs("div",{className:n,style:{display:"contents"},children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),t]}):m.jsx(m.Fragment,{children:t})}const Zn={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},ir=Object.values(Zn);let Uc=null;function El(e){Uc=e}function Vm(){return Uc}function fi(){return"desktop"}const Ue=1024,Ve=640,_t=`@media (max-width: ${Ue}px)`,Qe=`@media (max-width: ${Ve}px)`,ln=`@media (min-width: ${Ve+1}px) and (max-width: ${Ue}px)`,Ye=A({tablet:yn($(),Xn()).optional().nullable(),mobile:yn($(),Xn()).optional().nullable()}).optional().nullable(),Ym=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Km=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Jm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Xm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Qm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},eb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},tb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},nb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},rb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ob=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ab=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ib=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},lb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ub=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},db=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},hb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:m.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function fb(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return m.jsx(Ym,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return m.jsx(Qm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return m.jsx(ob,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return m.jsx(eb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return m.jsx(Km,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return m.jsx(Jm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return m.jsx(Xm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return m.jsx(tb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return m.jsx(nb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return m.jsx(rb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return m.jsx(lb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return m.jsx(cb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return m.jsx(db,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return m.jsx(ab,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return m.jsx(sb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return m.jsx(ub,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return m.jsx(hb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return m.jsx(ib,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const pb=4,Bt=e=>({[e==="left"?"marginRight":"marginLeft"]:pb,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"}),gb=(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"}),wr=e=>({display:"inline-flex",alignItems:"center",justifyContent:e}),Qn="data-ahd-var",Zc=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,mb=/[&<>"']/g,bb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function $n(e){return e.replace(mb,t=>bb[t])}function fo(e){return!e||e.indexOf("{{")===-1?e:e.replace(Zc,(t,n,r,o)=>{if(n)return n;const a=$n(o);return`<span ${Qn}="${a}">{{${o}}}</span>`})}function pi(e){return!e||e.indexOf("{{")===-1?e:$n(e).replace(Zc,(t,n,r,o)=>{if(n)return n;const a=$n(o);return`<span ${Qn}="${a}">{{${o}}}</span>`})}const xb=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function vb(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 r=new URLSearchParams(n||"");return e.replace(xb,(o,a)=>{const i=r.get(a);return i!==null?encodeURIComponent(i):o})}function kb(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),r=e.querySelectorAll(`[${Qn}]`);for(let o=0;o<r.length;o++){const a=r[o],i=n.get(a.getAttribute(Qn)||"");i!==null&&(a.textContent=i)}}const fa="data-ahd-date",qc="data-ahd-date-format";function pa(e,t){const n=$n(e),r=t??"",o=$n(r),a=Vc(r)||`{{${n}}}`;return`<span ${Qn}="${n}" ${fa}="${o}" ${qc}="relative">${$n(a)}</span>`}function Vc(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const r=864e5,o=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),a=Math.round((o(n)-o(t))/r);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const i=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function wb(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${fa}][${qc}="relative"]`);for(let r=0;r<n.length;r++){const o=n[r],a=o.getAttribute(fa)||"",i=Vc(a,t);i&&(o.textContent=i)}}const Sb=T(["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 yo(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 $b=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),_b=$().regex(/^rgba?\([^\)]+\)$/i),Cb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ab=le("transparent"),Xt=F([$b,_b,Cb,Ab]).nullable().optional(),yb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ib=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Rb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Tb=F([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Eb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Nb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Mb=A({color:Xt,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function Pb(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 Ob(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${Pb(t)}`}}const Lb=A({style:A({backgroundColor:Xt,fontSize:g().min(0).optional().nullable(),fontFamily:Sb,fontWeight:T(["bold","normal",...ir]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),buttonTextAlign:T(["left","center","right"]).optional().nullable(),padding:yb,margin:Ib}).optional().nullable(),props:A({buttonBackground:Xt,hoverBackground:Xt,hoverTextColor:Xt,borderRadius:Tb,borderWidth:Rb,borderColor:Xt,boxShadow:Mb,buttonTextColor:Xt,fullWidth:L().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),size:T(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:T(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:T(["x-small","small","large","medium"]).optional().nullable(),text:$().optional().nullable(),url:$().optional().nullable(),action:T(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:L().optional().nullable(),customAction:$().optional().nullable(),actionPayload:yn($(),Xn()).optional().nullable(),iconEnabled:L().optional().nullable(),iconName:$().optional().nullable(),iconUrl:$().optional().nullable(),iconAlignment:T(["left","right"]).optional().nullable(),ariaLabel:$().optional().nullable(),goToStep:$().optional().nullable(),postMessageEvent:$().optional().nullable(),hoverEffect:At,animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable(),responsive:Ye});function Nl(e){switch(e){case"x-small":return[4,8];case"small":return[8,12];case"large":return[16,32];case"medium":default:return[12,20]}}const Me={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",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 zb({style:e,props:t}){var Vi;const r=`bh-${U.useId().replace(/:/g,"")}`,o=(t==null?void 0:t.text)??Me.text,a=typeof o=="string"&&o.indexOf("{{")!==-1,i=(Be,dt)=>a?m.jsx("span",{style:Be,"data-action":dt,dangerouslySetInnerHTML:{__html:pi(o)}}):m.jsx("span",{style:Be,"data-action":dt,children:o}),l=(t==null?void 0:t.url)??Me.url,s=vb(l),u=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,c=(t==null?void 0:t.fullWidth)??Me.fullWidth,h=(t==null?void 0:t.widthType)??Me.widthType,d=(t==null?void 0:t.width)??Me.width,f=(t==null?void 0:t.widthUnit)??Me.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,w=b??x,k=(t==null?void 0:t.widthTypeTablet)??h,S=(t==null?void 0:t.widthTypeMobile)??k,v=(t==null?void 0:t.size)??Me.size,_=(t==null?void 0:t.sizeTablet)??v,y=(t==null?void 0:t.sizeMobile)??_,C=h,I=d,R=(t==null?void 0:t.buttonTextColor)??Me.buttonTextColor,E=(t==null?void 0:t.buttonBackground)??Me.buttonBackground,O=Bc(E),M=!/gradient\(/i.test(R??"")&&(O||Em(E)),P=M?z(R,"buttonText"):se(R),B=O?z(E,"bgAdaptive"):se(E),D=M?"currentColor":P,H=(t==null?void 0:t.iconEnabled)??Me.iconEnabled,G=(t==null?void 0:t.iconName)??Me.iconName,W=(t==null?void 0:t.iconAlignment)??Me.iconAlignment,J=(t==null?void 0:t.iconUrl)??null,X=!!(H&&(J||G)),q=(t==null?void 0:t.ariaLabel)??null,te=typeof o=="string"&&o.trim().length>0,$e=q&&q.trim().length>0?q:!te&&H&&G?G:void 0,Ce=(t==null?void 0:t.action)??Me.action,xe=(t==null?void 0:t.openInNewTab)??Me.openInNewTab,ee=((t==null?void 0:t.customAction)??Me.customAction)||Ce,Y=(t==null?void 0:t.actionPayload)??Me.actionPayload,K=(t==null?void 0:t.goToStep)??Me.goToStep,j=(t==null?void 0:t.postMessageEvent)??Me.postMessageEvent,V=Y||(ee==="goToStep"?{goToStep:K||""}:null)||(ee==="postMessageEvent"?{postMessageEvent:j||""}:null),pe=V?JSON.stringify(V):void 0,ke=(t==null?void 0:t.borderRadius)??Me.borderRadius,ge=(t==null?void 0:t.borderWidth)??Me.borderWidth,fe=(t==null?void 0:t.borderColor)??Me.borderColor,Ie=se(fe),ae=(t==null?void 0:t.boxShadow)??Me.boxShadow,Oe=Ob(ae),De=(t==null?void 0:t.hoverBackground)??null,me=(t==null?void 0:t.hoverTextColor)??null,Fe=Nl(v),He=Be=>typeof Be=="number"?`${Be}px`:`${Be.topLeft}px ${Be.topRight}px ${Be.bottomRight}px ${Be.bottomLeft}px`,Q=(Be,dt)=>{if(typeof Be=="number")return`${Math.max(0,Be-dt)}px`;const vo=Math.max(0,(Be.topLeft||0)-dt),ko=Math.max(0,(Be.topRight||0)-dt),dn=Math.max(0,(Be.bottomRight||0)-dt),hn=Math.max(0,(Be.bottomLeft||0)-dt);return`${vo}px ${ko}px ${dn}px ${hn}px`},je=fe&&(fe.includes("linear-gradient")||fe.includes("radial-gradient")||fe.includes("repeating-linear-gradient")),ze=ge&&((ge.top??0)>0||(ge.right??0)>0||(ge.bottom??0)>0||(ge.left??0)>0),ie={top:(ge==null?void 0:ge.top)??0,right:(ge==null?void 0:ge.right)??0,bottom:(ge==null?void 0:ge.bottom)??0,left:(ge==null?void 0:ge.left)??0},Ge=(()=>{if(c)return"100%";switch(C){case"fill":return"100%";case"fixed":return`${I}${f}`;case"fit":default:return"auto"}})(),et=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",ot=et==="center"?"center":et==="right"?"flex-end":"flex-start",zt=()=>!fe||fe==="transparent"||!ze?{border:"none"}:je?{borderTop:`${ie.top}px solid transparent`,borderRight:`${ie.right}px solid transparent`,borderBottom:`${ie.bottom}px solid transparent`,borderLeft:`${ie.left}px solid transparent`,borderImage:`${Ie} `,borderRadius:"0px"}:{borderTop:`${ie.top}px solid ${Ie}`,borderRight:`${ie.right}px solid ${Ie}`,borderBottom:`${ie.bottom}px solid ${Ie}`,borderLeft:`${ie.left}px solid ${Ie}`},It=E&&(E.includes("linear-gradient")||E.includes("radial-gradient")||E.includes("repeating-linear-gradient")),rt=R&&(R.includes("linear-gradient")||R.includes("radial-gradient")||R.includes("repeating-linear-gradient")),jt=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),xt={backgroundColor:jt?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:jt?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Eb(e==null?void 0:e.padding),margin:Nb(e==null?void 0:e.margin)},Vt=zt(),Ke={...rt?{backgroundImage:P,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:P||void 0},textDecoration:(e==null?void 0:e.textDecoration)??"none"},Rt=It?void 0:B,ne=It?B:void 0,Re=(e==null?void 0:e.fontSize)??16,Ze=`${Re}px`,Je=()=>J?m.jsx("span",{"aria-hidden":"true",style:gb(J,Re,rt?"currentColor":D||"currentColor")}):fb(G,{strokeColor:rt?void 0:D,fontSize:Re}),Yt={fontSize:Ze,fontFamily:yo(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??Zn.REGULAR,backgroundColor:Rt,backgroundImage:ne,borderRadius:je?"0px":He(ke),...Vt,...je&&ze?{}:Oe,display:Ge==="100%"?"block":"inline-block",width:Ge,padding:`${Fe[0]}px ${Fe[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:ot,lineHeight:"normal"},ce=je&&ze?m.jsx("div",{style:{display:Ge==="100%"?"block":"inline-block",padding:`${ie.top}px ${ie.right}px ${ie.bottom}px ${ie.left}px`,background:Ie,borderRadius:He(ke),width:Ge,boxSizing:"border-box",...Oe},children:m.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:Q(ke,Math.max(ie.top,ie.right,ie.bottom,ie.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??Zn.REGULAR,fontFamily:yo(e==null?void 0:e.fontFamily),backgroundImage:ne,backgroundColor:Rt,textAlign:et,textDecoration:"none",fontSize:Ze,padding:`${Fe[0]}px ${Fe[1]}px`,boxSizing:"border-box",lineHeight:"normal",...wr(ot)},"data-action":ee,"data-action-payload":pe,"data-goto-step":ee==="goToStep"&&K?K:void 0,"data-post-message-event":ee==="postMessageEvent"&&j?j:void 0,type:"button","aria-label":$e,children:[X&&W==="left"?m.jsx("span",{style:Bt("left"),"data-action":ee,children:Je()}):null,i({...Ke,pointerEvents:"none"},ee),X&&W==="right"?m.jsx("span",{style:Bt("right"),"data-action":ee,children:Je()}):null]})}):m.jsxs("button",{style:{cursor:"pointer",...Vt,...Oe,borderRadius:He(ke),width:Ge,fontWeight:(e==null?void 0:e.fontWeight)??Zn.REGULAR,fontFamily:yo(e==null?void 0:e.fontFamily),backgroundColor:Rt,backgroundImage:ne,textAlign:et,textDecoration:"none",fontSize:Ze,padding:`${Fe[0]}px ${Fe[1]}px`,boxSizing:"border-box",lineHeight:"normal",...wr(ot)},"data-action":ee,"data-action-payload":pe,"data-goto-step":ee==="goToStep"&&K?K:void 0,"data-post-message-event":ee==="postMessageEvent"&&j?j:void 0,type:"button","aria-label":$e,children:[X&&W==="left"?m.jsx("span",{style:Bt("left"),"data-action":ee,children:Je()}):null,i({...Ke,pointerEvents:"none"},ee),X&&W==="right"?m.jsx("span",{style:Bt("right"),"data-action":ee,children:Je()}):null]}),be=!!De&&(De.includes("linear-gradient")||De.includes("radial-gradient")||De.includes("repeating-linear-gradient")),tt=!!me&&(me.includes("linear-gradient")||me.includes("radial-gradient")||me.includes("repeating-linear-gradient")),at=[];De&&(be?at.push(`background-image: ${De} !important; background-color: transparent !important;`):at.push(`background-color: ${De} !important; background-image: none !important;`)),me&&!tt&&at.push(`color: ${me} !important;`);const Tt=me?tt?`background-image: ${me} !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: ${me} !important; -webkit-text-fill-color: ${me} !important;`:"",Kt=at.length>0||Tt?`#${r} a:hover, #${r} button:hover { ${at.join(" ")} transition: background-color 150ms ease, background-image 150ms ease, color 150ms ease; } #${r} a:hover span, #${r} button:hover span { ${Tt} }`:null,Ui=(Be,dt,vo,ko)=>{const dn=[],hn=c||dt==="fill"?"100%":dt==="fixed"?`${vo}${f}`:"auto";dn.push(`width: ${hn} !important;`,"max-width: 100% !important;"),dn.push(`display: ${hn==="100%"?"block":"inline-block"} !important;`);const[Yi,Cd]=Nl(ko);return dn.push(`padding: ${Yi}px ${Cd}px !important;`),`${Be} { #${r} a, #${r} button { ${dn.join(" ")} } #${r} > div { width: ${hn} !important; max-width: 100% !important; display: ${hn==="100%"?"block":"inline-block"} !important; } }`},Zi=k!==h||_!==v||k==="fixed"&&x!==d,qi=S!==h||y!==v||S==="fixed"&&w!==d,fr=Zi||qi?[Zi?Ui(_t,k,x,_):"",qi?Ui(Qe,S,w,y):""].filter(Boolean).join(`
66
+ `):null,pr=Lt(r,t==null?void 0:t.hoverEffect,{themedBorderColor:z((Vi=t==null?void 0:t.hoverEffect)==null?void 0:Vi.borderColor,"borderAdaptive"),scaleTarget:" :is(a, button)",borderTarget:" :is(a, button)",scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1});if(Ce!=="link")return m.jsxs("div",{id:r,className:`button-block ${r}`,style:xt,children:[Kt&&m.jsx("style",{children:Kt}),pr&&m.jsx("style",{dangerouslySetInnerHTML:{__html:pr}}),fr&&m.jsx("style",{children:fr}),ce]});const _d=je&&ze?m.jsx("div",{style:{display:Ge==="100%"?"block":"inline-block",padding:`${ie.top}px ${ie.right}px ${ie.bottom}px ${ie.left}px`,background:Ie,borderRadius:He(ke),width:Ge,boxSizing:"border-box",...Oe},children:m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Yt,border:"none",borderRadius:Q(ke,Math.max(ie.top,ie.right,ie.bottom,ie.left)),width:"100%",...wr(ot)},target:xe?"_blank":void 0,rel:xe?"noopener noreferrer":void 0,"aria-label":$e,children:[X&&W==="left"?m.jsx("span",{style:Bt("left"),children:Je()}):null,i({...Ke,pointerEvents:"none"}),X&&W==="right"?m.jsx("span",{style:Bt("right"),children:Je()}):null]})}):m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Yt,borderRadius:He(ke),...wr(ot)},target:xe?"_blank":void 0,rel:xe?"noopener noreferrer":void 0,"aria-label":$e,children:[X&&W==="left"?m.jsx("span",{style:Bt("left"),children:Je()}):null,i({...Ke,pointerEvents:"none"}),X&&W==="right"?m.jsx("span",{style:Bt("right"),children:Je()}):null]});return m.jsxs("div",{id:r,className:`button-block ${r}`,style:xt,children:[Kt&&m.jsx("style",{children:Kt}),pr&&m.jsx("style",{dangerouslySetInnerHTML:{__html:pr}}),fr&&m.jsx("style",{children:fr}),_d]})}const jb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Bb=$().regex(/^rgba?\([^\)]+\)$/i),Db=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Fb=le("transparent"),Ml=F([jb,Bb,Db,Fb]).nullable().optional(),Hb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Gb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Wb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ub=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Zb=A({style:A({backgroundColor:Ml,padding:Hb,margin:Gb}).optional().nullable(),props:A({lineColor:Ml,lineHeight:g().optional().nullable()}).optional().nullable()}),Pl={lineHeight:1,lineColor:"#333333"};function qb({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??Pl.lineHeight,r=z((t==null?void 0:t.lineColor)??Pl.lineColor,"divider"),o={padding:Wb(e==null?void 0:e.padding),margin:Ub(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),"--ahd-divider-thickness":`${n}px`};return m.jsx("div",{className:"divider-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:m.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:r,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const Vb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Yb=$().regex(/^rgba?\([^\)]+\)$/i),Kb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Jb=le("transparent"),Io=F([Vb,Yb,Kb,Jb]).nullable().optional(),Xb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Qb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),e0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,t0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,n0=T(["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 r0(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 o0=A({props:A({text:$().optional().nullable(),level:T(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:T(["text","link"]).optional().nullable(),url:$().optional().nullable(),openInNewTab:L().optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:At}).optional().nullable(),style:A({color:Io,textColor:Io,backgroundColor:Io,fontFamily:n0,fontSize:g().optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),fontStyle:T(["italic","normal"]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:Xb,margin:Qb}).optional().nullable(),responsive:Ye}),On={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};let a0=0;function i0({props:e,style:t}){var W;const n=U.useMemo(()=>`ahd-hv-heading-${++a0}`,[]),r=Lt(n,e==null?void 0:e.hoverEffect,{themedBorderColor:z((W=e==null?void 0:e.hoverEffect)==null?void 0:W.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),o=(e==null?void 0:e.level)??On.level,a=(e==null?void 0:e.text)??On.text,i=typeof a=="string"&&a.indexOf("{{")!==-1,l=(e==null?void 0:e.linkType)??On.linkType,s=(e==null?void 0:e.url)??On.url,u=(e==null?void 0:e.openInNewTab)??On.openInNewTab,c=l==="link"&&s,h=(t==null?void 0:t.fontSize)??l0(o),d=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),f=z(d,"blockText"),p=d&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(d),b=(t==null?void 0:t.textDecoration)??"none",x=p&&(b==="underline"||b==="underline line-through"),w=p&&(b==="line-through"||b==="underline line-through"),k=t==null?void 0:t.lineClamp,S=k&&k>0?{display:"-webkit-box",WebkitLineClamp:k,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},v={fontWeight:(t==null?void 0:t.fontWeight)??Zn.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:p?"none":b,margin:0,fontFamily:r0(t==null?void 0:t.fontFamily),fontSize:h,...S},_=!!(k&&k>0),y=p?{lineHeight:"normal ",backgroundImage:f,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",..._?{}:{display:"inline-block"},...x?{paddingBottom:"0.08em"}:{}}:{color:f??void 0},C={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:f??void 0,pointerEvents:"none"},I={...C,bottom:0},R={...C,top:"50%",transform:"translateY(-50%)"},E=(t==null?void 0:t.backgroundColor)??void 0,O=z(E,"bgAdaptive"),M=typeof E=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(E),P=t==null?void 0:t.margin,B=((P==null?void 0:P.left)??0)+((P==null?void 0:P.right)??0),D={padding:e0(t==null?void 0:t.padding),margin:t0(t==null?void 0:t.margin),display:"block",width:B>0?`calc(100% - ${B}px)`:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...M?{backgroundImage:O,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:O}},H=o,G=m.jsx(H,{className:"heading-block",style:v,children:m.jsxs("span",{style:y,children:[i?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:pi(a)}}):a,x?m.jsx("span",{style:I}):null,w?m.jsx("span",{style:R}):null]})});return m.jsxs("div",{className:`heading-block-wrapper${r?` ${n}`:""}`,...ue(E,void 0,"bgAdaptive"),style:D,children:[r&&m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),c?m.jsx("a",{href:s,target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!p&&f?f:void 0},children:G}):G]})}function l0(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 Yc="comm",Kc="rule",Jc="decl",s0="@import",c0="@namespace",u0="@keyframes",d0="@layer",h0=Math.abs,qn=String.fromCharCode;function Xc(e){return e.trim()}function ga(e,t,n){return e.replace(t,n)}function _n(e,t){return e.charCodeAt(t)|0}function In(e,t,n){return e.slice(t,n)}function $t(e){return e.length}function f0(e){return e.length}function Sr(e,t){return t.push(e),e}var po=1,Rn=1,Qc=0,it=0,Le=0,En="";function gi(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:po,column:Rn,length:i,return:"",siblings:l}}function p0(){return Le}function g0(){return Le=it>0?_n(En,--it):0,Rn--,Le===10&&(Rn=1,po--),Le}function mt(){return Le=it<Qc?_n(En,it++):0,Rn++,Le===10&&(Rn=1,po++),Le}function Gt(){return _n(En,it)}function Mr(){return it}function go(e,t){return In(En,e,t)}function er(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 m0(e){return po=Rn=1,Qc=$t(En=e),it=0,[]}function b0(e){return En="",e}function Ro(e){return Xc(go(it-1,ma(e===91?e+2:e===40?e+1:e)))}function x0(e){for(;(Le=Gt())&&Le<33;)mt();return er(e)>2||er(Le)>3?"":" "}function v0(e,t){for(;--t&&mt()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return go(e,Mr()+(t<6&&Gt()==32&&mt()==32))}function ma(e){for(;mt();)switch(Le){case e:return it;case 34:case 39:e!==34&&e!==39&&ma(Le);break;case 40:e===41&&ma(e);break;case 92:mt();break}return it}function k0(e,t){for(;mt()&&e+Le!==57;)if(e+Le===84&&Gt()===47)break;return"/*"+go(t,it-1)+"*"+qn(e===47?e:mt())}function w0(e){for(;!er(Gt());)mt();return go(e,it)}function S0(e){return b0(Pr("",null,null,null,[""],e=m0(e),0,[0],e))}function Pr(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,h=i,d=0,f=0,p=0,b=1,x=1,w=1,k=0,S=0,v="",_=o,y=a,C=r,I=v;x;)switch(p=S,S=mt()){case 40:p!=108&&_n(I,h-1)==58?(k++,I+="("):I+=Ro(S);break;case 41:k--,I+=")";break;case 34:case 39:case 91:I+=Ro(S);break;case 9:case 10:case 13:case 32:if(k>0){I+=qn(S);break}I+=x0(p);break;case 92:I+=v0(Mr()-1,7);continue;case 47:switch(Gt()){case 42:case 47:Sr($0(k0(mt(),Mr()),t,n,s),s),(er(p||1)==5||er(Gt()||1)==5)&&$t(I)&&In(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[u++]=$t(I)*w;case 125*b:case 59:case 0:if(k>0&&S){I+=qn(S);break}switch(S){case 0:case 125:x=0;case 59+c:w==-1&&(I=ga(I,/\f/g,"")),f>0&&($t(I)-h||b===0)&&Sr(f>32?Ll(I+";",r,n,h-1,s):Ll(ga(I," ","")+";",r,n,h-2,s),s);break;case 59:I+=";";default:if(Sr(C=Ol(I,t,n,u,c,o,l,v,_=[],y=[],h,a),a),S===123)if(c===0)Pr(I,t,C,C,_,a,h,l,y);else{switch(d){case 99:if(_n(I,3)===110)break;case 108:if(_n(I,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Pr(e,C,C,r&&Sr(Ol(e,C,C,0,0,o,l,v,o,_=[],h,y),y),o,y,h,l,r?_:y):Pr(I,C,C,C,[""],y,0,l,y)}}u=c=f=0,b=w=1,v=I="",h=i;break;case 58:h=1+$t(I),f=p;default:if(b<1){if(S==123)--b;else if(S==125&&b++==0&&g0()==125)continue}switch(I+=qn(S),S*b){case 38:w=c>0?1:(I+="\f",-1);break;case 44:if(k>0)break;l[u++]=($t(I)-1)*w,w=1;break;case 64:Gt()===45&&(I+=Ro(mt())),d=Gt(),c=h=$t(v=I+=w0(Mr())),S++;break;case 45:p===45&&$t(I)==2&&(b=0)}}return a}function Ol(e,t,n,r,o,a,i,l,s,u,c,h){for(var d=o-1,f=o===0?a:[""],p=f0(f),b=0,x=0,w=0;b<r;++b)for(var k=0,S=In(e,d+1,d=h0(x=i[b])),v=e;k<p;++k)(v=Xc(x>0?f[k]+" "+S:ga(S,/&\f/g,f[k])))&&(s[w++]=v);return gi(e,t,n,o===0?Kc:l,s,u,c,h)}function $0(e,t,n,r){return gi(e,t,n,Yc,qn(p0()),In(e,2,-2),0,r)}function Ll(e,t,n,r,o){return gi(e,t,n,Jc,In(e,0,r),In(e,r+1,-1),r,o)}function ba(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function _0(e,t,n,r){switch(e.type){case d0:if(e.children.length)break;case s0:case c0:case Jc:return e.return=e.return||e.value;case Yc:return"";case u0:return e.return=e.value+"{"+ba(e.children,r)+"}";case Kc:if(!$t(e.value=e.props.join(",")))return""}return $t(n=ba(e.children,r))?e.return=e.value+"{"+n+"}":""}const C0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),A0=$().regex(/^rgba?\([^\)]+\)$/i),y0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),I0=le("transparent"),zl=F([C0,A0,y0,I0]).nullable().optional(),R0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),T0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),E0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,N0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,M0=T(["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 P0(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 O0=A({style:A({color:zl,backgroundColor:zl,fontFamily:M0,fontSize:g().min(0).optional().nullable(),textAlign:T(["left","right","center"]).optional().nullable(),padding:R0,margin:T0}).optional().nullable(),props:A({contents:$().optional().nullable()}).optional().nullable()}),L0=/<style[^>]*>([\s\S]*?)<\/style>/gi;function z0(e,t){let n="";const r=e.replace(L0,(a,i)=>(n+=i,""));if(!n.trim())return{markup:r,css:""};const o=ba(S0(`[${t}]{${n}}`),_0);return{markup:r,css:o}}function j0({style:e,props:t}){const n=t==null?void 0:t.contents,[r,o]=U.useState(!1),i=`data-html-scope-${U.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=U.useMemo(()=>n?z0(n,i):{markup:"",css:""},[n,i]),u={color:z(e==null?void 0:e.color,"blockText"),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontFamily:P0(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:E0(e==null?void 0:e.padding),margin:N0(e==null?void 0:e.margin)},c=U.useRef(null);U.useEffect(()=>{const b=c.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=r?"auto":"none"}catch{}})},[n,r]);const h=b=>{r||o(!0)},d=()=>{o(!1)},f=`[${i}] pre,[${i}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return m.jsx("div",{ref:c,className:"html-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,children:m.jsx("style",{dangerouslySetInnerHTML:{__html:f}})});const p=`<style>${f}${s}</style>${fo(l)}`;return m.jsx("div",{ref:c,className:"html-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,onClick:h,onBlur:d,tabIndex:0,[i]:"",dangerouslySetInnerHTML:{__html:p}})}const B0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),D0=$().regex(/^rgba?\([^\)]+\)$/i),F0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),H0=le("transparent"),G0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),W0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),U0=F([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Or=F([B0,D0,F0,H0]).nullable().optional(),Z0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),q0=A({color:Or,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function V0(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 Y0(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${V0(t)}`}}const K0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,J0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function X0(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 Q0(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 ex=A({style:A({padding:G0,margin:W0,backgroundColor:Or.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:g().optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthUnitTablet:T(["px","%"]).optional().nullable(),widthUnitMobile:T(["px","%"]).optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),height:g().optional().nullable(),heightTablet:g().positive().optional().nullable(),heightMobile:g().positive().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:L().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),borderRadius:U0,borderColor:Or.default(null),borderWidth:Z0,boxShadow:q0,iconName:$().optional().nullable(),iconFillColor:Or.default(null),rotation:g().min(0).max(360).optional().nullable(),rotationTablet:g().min(0).max(360).optional().nullable(),rotationMobile:g().min(0).max(360).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:At}).optional().nullable()}),We={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 tx=0;function nx({style:e,props:t}){const n=U.useMemo(()=>`ahd-img-${++tx}`,[]),r=fi(),o=(e==null?void 0:e.textAlign)??void 0,a=o==="center"?"center":o==="right"?"flex-end":"flex-start",i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s={padding:K0(e==null?void 0:e.padding),margin:J0(e==null?void 0:e.margin),...X0(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),display:"flex",justifyContent:a,width:l>0?`max(0px, calc(100% - ${l}px))`:"100%",boxSizing:"border-box"},u=(t==null?void 0:t.showLink)??(t!=null&&t.linkHref?!0:We.showLink),c=(t==null?void 0:t.linkHref)??We.linkHref,h=u&&c?c:null,d=(t==null?void 0:t.linkTarget)??We.linkTarget,f=(t==null?void 0:t.widthType)??We.widthType,p=(t==null?void 0:t.widthTypeTablet)??f,b=(t==null?void 0:t.widthTypeMobile)??p,x=(t==null?void 0:t.width)??We.width,w=(t==null?void 0:t.widthUnit)??We.widthUnit,k=(t==null?void 0:t.widthUnitTablet)??w,S=(t==null?void 0:t.widthUnitMobile)??k,v=(t==null?void 0:t.widthTablet)??null,_=(t==null?void 0:t.widthMobile)??null,y=v??x,C=_??y,I=(t==null?void 0:t.height)??We.height,R=(t==null?void 0:t.heightTablet)??null,E=(t==null?void 0:t.heightMobile)??null,O=R??I,M=E??O,P=I,B=(t==null?void 0:t.url)??We.url,D=(t==null?void 0:t.urlTablet)??null,H=(t==null?void 0:t.urlMobile)??null,G=!h&&((t==null?void 0:t.decorative)??We.decorative),W=G?"":(t==null?void 0:t.alt)??We.alt,J=G?{role:"presentation","aria-hidden":!0}:{},X=(t==null?void 0:t.contentAlignment)??We.contentAlignment,q=(t==null?void 0:t.borderRadius)??We.borderRadius,te=se((t==null?void 0:t.borderColor)??We.borderColor),$e=(t==null?void 0:t.borderWidth)??We.borderWidth,Ce=(t==null?void 0:t.boxShadow)??We.boxShadow,xe=Y0(Ce),ve=(t==null?void 0:t.rotation)??We.rotation,ee=(t==null?void 0:t.rotationTablet)??null,Y=(t==null?void 0:t.rotationMobile)??null,K=ee??ve,j=Y??K,V=ne=>{const Re=ne*Math.PI/180,Ze=ne%180!==0?1/(Math.abs(Math.cos(Re))+Math.abs(Math.sin(Re))):1;return`rotate(${ne}deg) scale(${Ze})`},pe=ve,ke=pe?{transform:V(pe),transformOrigin:"center"}:{},fe=ee!=null||Y!=null?`
67
+ ${_t} { .${n} img, .${n} > div { transform: ${V(K)} !important; transform-origin: center !important; } }
68
+ ${Qe} { .${n} img, .${n} > div { transform: ${V(j)} !important; transform-origin: center !important; } }
69
+ `.trim():null,Ie=Q0(te,$e),ae=ne=>typeof ne=="number"?`${ne}px`:`${ne.topLeft}px ${ne.topRight}px ${ne.bottomRight}px ${ne.bottomLeft}px`,Oe=(ne,Re)=>{const Ze=Math.max((Re==null?void 0:Re.top)||0,(Re==null?void 0:Re.right)||0,(Re==null?void 0:Re.bottom)||0,(Re==null?void 0:Re.left)||0);if(typeof ne=="number")return`${Math.max(0,ne-Ze)}px`;const Je=Math.max(0,(ne.topLeft||0)-Ze),Yt=Math.max(0,(ne.topRight||0)-Ze),ce=Math.max(0,(ne.bottomRight||0)-Ze),be=Math.max(0,(ne.bottomLeft||0)-Ze);return`${Je}px ${Yt}px ${ce}px ${be}px`},me=(()=>{switch(f){case"fill":return"100%";case"fixed":return x;case"fit":default:return}})(),He=f==="fixed"&&typeof x=="number"&&x>0&&x<=48&&(w??"px")==="px"?{filter:"var(--pp-icon-filter, none)"}:{},Q=ne=>ne==="mobile"?b:ne==="tablet"?p:f,je=ne=>ne==="mobile"?S:ne==="tablet"?k:w,ze=ne=>{const Re=Q(ne);if(Re==="fill")return"100%";if(Re==="fit")return"auto";const Ze=ne==="mobile"?C:ne==="tablet"?y:x,Je=je(ne);return`${Ze}${Je}`},ie=ze(r),yt=je(r),Ge=typeof ie=="string"&&ie.endsWith("%")?{display:"block",width:"100%",textAlign:o??"left"}:{},et=B,zt=(t==null?void 0:t.widthTypeTablet)!=null||(t==null?void 0:t.widthTypeMobile)!=null||f==="fixed"?`
69
70
  ${_t} { .${n} img { width: ${ze("tablet")} !important; max-width: 100% !important; } }
70
- ${et} { .${n} img { width: ${ze("mobile")} !important; max-width: 100% !important; } }
71
- `.trim():null,yt=R!=null||N!=null?`
72
- ${_t} { .${n} img { height: ${P?`${P}px`:"auto"} !important; } }
73
- ${et} { .${n} img { height: ${M?`${M}px`:"auto"} !important; } }
74
- `.trim():null,Ke=(t==null?void 0:t.hoverEffect)??We.hoverEffect,Lt=Ke!=null&&Ke.enabled?`
75
- .${n} picture { display: inline-block; transition: transform ${Ke.duration??500}ms ${Ke.easing??"ease-in-out"}; }
76
- .${n}:hover picture { transform: scale(${Ke.scale??1.05}); }
77
- `.trim():null,xt=[Ot,yt,ge,Lt].filter(Boolean).join(`
78
- `)||null,Zt=ae&&(ae.includes("linear-gradient")||ae.includes("radial-gradient")||ae.includes("repeating-linear-gradient")),En=(H||F)&&m.jsxs(m.Fragment,{children:[H&&m.jsx("source",{media:et.replace("@media ",""),srcSet:H}),(F??H)&&m.jsx("source",{media:_t.replace("@media ",""),srcSet:F??H??j})]}),Je=m.jsxs("picture",{style:Ge,children:[En,m.jsx("img",{alt:U,...X,src:tt,width:typeof xe=="number"&&At==="px"?xe:void 0,height:O!==null?O:void 0,style:{width:ie??(xe==="100%"?"100%":typeof xe=="number"?`${xe}${At}`:"auto"),height:O?`${O}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:Z,display:f==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:q?oe(q):void 0,...He}})]}),It=Zt?m.jsx("div",{style:{borderRadius:q?oe(q):void 0,...Ce,...pe,...ke},children:m.jsxs("picture",{children:[En,m.jsx("img",{alt:U,...X,src:tt,width:typeof xe=="number"&&At==="px"?xe:void 0,height:O!==null?O:void 0,style:{width:"100%",height:O?`${O}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:Z,display:"block",maxWidth:ie??(typeof xe=="number"?`${xe}${At}`:"auto"),boxSizing:"border-box",borderRadius:q?Pe(q,$e):void 0,...He}})]})}):ae?m.jsx("div",{style:{borderRadius:q?oe(q):void 0,...Ce,...pe,...ke},children:Je}):pe.boxShadow?m.jsx("div",{style:{borderRadius:q?oe(q):void 0,...pe,...ke},children:Je}):V.cloneElement(Je,{children:V.Children.map(Je.props.children,te=>(te==null?void 0:te.type)==="img"?V.cloneElement(te,{style:{...te.props.style,...ke}}):te)});return h?m.jsxs("div",{className:`image-block ${n}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[xt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:xt}}),m.jsx("a",{href:h,style:{textDecoration:"none"},target:d,rel:d==="_blank"?"noopener noreferrer":void 0,children:It})]}):m.jsxs("div",{className:`image-block ${n}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[xt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:xt}}),It]})}const V0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Y0=$().regex(/^rgba?\([^\)]+\)$/i),K0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),J0=le("transparent"),gn=D([V0,Y0,K0,J0]).nullable().optional(),X0=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Q0=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ex=D([g(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),tx=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),nx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ox(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 ax(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 Ao=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,ix=C({color:gn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().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 sx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${lx(t)}`}}const cx=C({style:C({padding:X0,margin:Q0,backgroundColor:gn.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:L().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),width:g().positive().optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),borderRadius:ex,borderColor:gn.default(null),borderWidth:tx,boxShadow:ix,iconName:$().optional().nullable(),iconNameTablet:$().optional().nullable(),iconNameMobile:$().optional().nullable(),iconFillColor:gn.default(null),iconFillColorTablet:gn.default(null),iconFillColorMobile:gn.default(null),animation:C({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),ht={url:"",alt:"Logo",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let ux=0;function dx({style:e,props:t}){const n=(t==null?void 0:t.url)??ht.url,r=(t==null?void 0:t.urlTablet)??null,o=(t==null?void 0:t.urlMobile)??null,a=(t==null?void 0:t.showLink)??ht.showLink,i=(t==null?void 0:t.linkHref)??ht.linkHref,l=a&&i?i:null,s=(t==null?void 0:t.linkTarget)??ht.linkTarget,u=!l&&((t==null?void 0:t.decorative)??ht.decorative),c=u?"":(t==null?void 0:t.alt)??ht.alt,h=u?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??ht.width,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??ht.borderRadius,x=se((t==null?void 0:t.borderColor)??ht.borderColor),w=(t==null?void 0:t.borderWidth)??ht.borderWidth,k=(t==null?void 0:t.boxShadow)??ht.boxShadow,S=sx(k),v=f??d,_=p??v,y=d,A=n,I=`ahd-logo-${++ux}`,R=`
71
+ ${Qe} { .${n} img { width: ${ze("mobile")} !important; max-width: 100% !important; } }
72
+ `.trim():null,It=R!=null||E!=null?`
73
+ ${_t} { .${n} img { height: ${O?`${O}px`:"auto"} !important; } }
74
+ ${Qe} { .${n} img { height: ${M?`${M}px`:"auto"} !important; } }
75
+ `.trim():null,rt=(t==null?void 0:t.hoverEffect)??We.hoverEffect,jt=Lt(n,rt,{themedBorderColor:z(rt==null?void 0:rt.borderColor,"borderAdaptive"),scaleTarget:" picture",scaleBaseCss:"display: inline-block;",borderTarget:" img",borderFromContainer:!0}),xt=[zt,It,fe,jt].filter(Boolean).join(`
76
+ `)||null,Vt=te&&(te.includes("linear-gradient")||te.includes("radial-gradient")||te.includes("repeating-linear-gradient")),Pn=(H||D)&&m.jsxs(m.Fragment,{children:[H&&m.jsx("source",{media:Qe.replace("@media ",""),srcSet:H}),(D??H)&&m.jsx("source",{media:_t.replace("@media ",""),srcSet:D??H??B})]}),Ke=m.jsxs("picture",{style:Ge,children:[Pn,m.jsx("img",{alt:W,...J,src:et,width:typeof me=="number"&&yt==="px"?me:void 0,height:P!==null?P:void 0,style:{width:ie??(me==="100%"?"100%":typeof me=="number"?`${me}${yt}`:"auto"),height:P?`${P}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:X,display:f==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:q?ae(q):void 0,...He}})]}),Rt=Vt?m.jsx("div",{style:{borderRadius:q?ae(q):void 0,...Ie,...xe,...ke},children:m.jsxs("picture",{children:[Pn,m.jsx("img",{alt:W,...J,src:et,width:typeof me=="number"&&yt==="px"?me:void 0,height:P!==null?P:void 0,style:{width:"100%",height:P?`${P}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:X,display:"block",maxWidth:ie??(typeof me=="number"?`${me}${yt}`:"auto"),boxSizing:"border-box",borderRadius:q?Oe(q,$e):void 0,...He}})]})}):te?m.jsx("div",{style:{borderRadius:q?ae(q):void 0,...Ie,...xe,...ke},children:Ke}):xe.boxShadow?m.jsx("div",{style:{borderRadius:q?ae(q):void 0,...xe,...ke},children:Ke}):U.cloneElement(Ke,{children:U.Children.map(Ke.props.children,ne=>(ne==null?void 0:ne.type)==="img"?U.cloneElement(ne,{style:{...ne.props.style,...ke}}):ne)});return h?m.jsxs("div",{className:`image-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[xt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:xt}}),m.jsx("a",{href:h,style:{textDecoration:"none"},target:d,rel:d==="_blank"?"noopener noreferrer":void 0,children:Rt})]}):m.jsxs("div",{className:`image-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[xt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:xt}}),Rt]})}const rx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),ox=$().regex(/^rgba?\([^\)]+\)$/i),ax=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ix=le("transparent"),xn=F([rx,ox,ax,ix]).nullable().optional(),lx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),sx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cx=F([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),ux=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),dx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,hx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function fx(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 px(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 To=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,gx=A({color:xn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function mx(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 bx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${mx(t)}`}}const xx=A({style:A({padding:lx,margin:sx,backgroundColor:xn.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:L().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),width:g().positive().optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),borderRadius:cx,borderColor:xn.default(null),borderWidth:ux,boxShadow:gx,iconName:$().optional().nullable(),iconNameTablet:$().optional().nullable(),iconNameMobile:$().optional().nullable(),iconFillColor:xn.default(null),iconFillColorTablet:xn.default(null),iconFillColorMobile:xn.default(null),hoverEffect:At,animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),ht={url:"",alt:"Logo",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let vx=0;function kx({style:e,props:t}){var D;const n=(t==null?void 0:t.url)??ht.url,r=(t==null?void 0:t.urlTablet)??null,o=(t==null?void 0:t.urlMobile)??null,a=(t==null?void 0:t.showLink)??ht.showLink,i=(t==null?void 0:t.linkHref)??ht.linkHref,l=a&&i?i:null,s=(t==null?void 0:t.linkTarget)??ht.linkTarget,u=!l&&((t==null?void 0:t.decorative)??ht.decorative),c=u?"":(t==null?void 0:t.alt)??ht.alt,h=u?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??ht.width,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??ht.borderRadius,x=se((t==null?void 0:t.borderColor)??ht.borderColor),w=(t==null?void 0:t.borderWidth)??ht.borderWidth,k=(t==null?void 0:t.boxShadow)??ht.boxShadow,S=bx(k),v=f??d,_=p??v,y=d,C=n,I=`ahd-logo-${++vx}`,R=Lt(I,t==null?void 0:t.hoverEffect,{themedBorderColor:z((D=t==null?void 0:t.hoverEffect)==null?void 0:D.borderColor,"borderAdaptive"),scaleTarget:" img",borderTarget:" img",borderFromContainer:!0}),E=`
79
77
  ${_t} { .${I} img { width: ${v}px !important; max-width: 100% !important; } }
80
- ${et} { .${I} img { width: ${_}px !important; max-width: 100% !important; } }
81
- `.trim(),N={padding:nx(e==null?void 0:e.padding),margin:rx(e==null?void 0:e.margin),...ox(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),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?Ao(b):void 0},M=m.jsxs("picture",{children:[o&&m.jsx("source",{media:et.replace("@media ",""),srcSet:o}),r&&m.jsx("source",{media:_t.replace("@media ",""),srcSet:r}),m.jsx("img",{alt:c,...h,src:A,width:y,style:P})]}),O=x&&x!=="transparent"?m.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?Ao(b):void 0,...ax(x,w),...S},children:M}):S.boxShadow?m.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?Ao(b):void 0,...S},children:M}):M;return l?m.jsxs("div",{className:`logo-block ${I}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:N,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),m.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":u?"Logo":c||"Logo",children:O})]}):m.jsxs("div",{className:`logo-block ${I}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:N,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),O]})}const hx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),fx=$().regex(/^rgba?\([^\)]+\)$/i),px=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),gx=le("transparent"),mx=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),bx=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),xx=D([g(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),vx=D([hx,fx,px,gx]).nullable().optional(),kx=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),wx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Sx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function $x(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 _x(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 Cx=C({style:C({padding:mx,margin:bx,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:D([g(),$()]).optional().nullable(),height:D([g(),$()]).optional().nullable(),widthTablet:D([g(),$()]).optional().nullable(),widthMobile:D([g(),$()]).optional().nullable(),heightTablet:D([g(),$()]).optional().nullable(),heightMobile:D([g(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),name:$().optional().nullable(),borderRadius:xx,borderColor:vx.default(null),borderWidth:kx}).optional().nullable()});function Ax(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function yx(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 Ix=0;function Rx({style:e,props:t}){const n=`ahd-video-${++Ix}`,r=(e==null?void 0:e.textAlign)??"left",o={padding:wx(e==null?void 0:e.padding),margin:Sx(e==null?void 0:e.margin),...$x(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),display:"flex",justifyContent:Ax(r),textAlign:r},a=(t==null?void 0:t.width)??"100%",i=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,u=l??a,c=s??a,h=(t==null?void 0:t.heightTablet)===null?"auto":(t==null?void 0:t.heightTablet)??i,d=(t==null?void 0:t.heightMobile)===null?"auto":(t==null?void 0:t.heightMobile)??i,f=a,p=i,b=M=>M==null?void 0:typeof M=="number"?`${M}px`:M,x=`
82
- ${on} { .${n} video, .${n} iframe { ${b(u)?`width: ${b(u)} !important;`:""} ${b(h)?`height: ${b(h)} !important;`:""} max-width: 100% !important; } }
83
- ${et} { .${n} video, .${n} iframe { ${b(c)?`width: ${b(c)} !important;`:""} ${b(d)?`height: ${b(d)} !important;`:""} max-width: 100% !important; } }
84
- `.trim(),w=(t==null?void 0:t.linkHref)??null,k=(t==null?void 0:t.borderRadius)??0,S=M=>typeof M=="number"?`${M}px`:`${M.topLeft}px ${M.topRight}px ${M.bottomRight}px ${M.bottomLeft}px`,v=(M,O)=>{const j=Math.max((O==null?void 0:O.top)||0,(O==null?void 0:O.right)||0,(O==null?void 0:O.bottom)||0,(O==null?void 0:O.left)||0);if(typeof M=="number")return`${Math.max(0,M-j)}px`;const F=Math.max(0,(M.topLeft||0)-j),H=Math.max(0,(M.topRight||0)-j),W=Math.max(0,(M.bottomRight||0)-j),U=Math.max(0,(M.bottomLeft||0)-j);return`${F}px ${H}px ${W}px ${U}px`},_=se((t==null?void 0:t.borderColor)??null),y=(t==null?void 0:t.borderWidth)??null,A=_x(_,y),I=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),R=yx(t==null?void 0:t.url),N=R?m.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:S(k)}},R):m.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:S(k),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),P=I?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...A},children:R?m.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:v(k,y)}},R):m.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:v(k,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):_?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...A},children:N}):N;return w?m.jsxs("div",{className:`video-block ${n}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:P})]}):m.jsxs("div",{className:`video-block ${n}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),P]})}var Tx=C({props:C({height:g().gte(0).optional().nullish()}).optional().nullable()}),Nx={height:16};const bt=[{key:"inherit",label:"Inherit",value:"inherit"},{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'}],Ex={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]},Mx=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(Ex).map(([e,t])=>`family=${Mx(e,t)}`).join("&")}`;const Yc=bt.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Yc.map(e=>e.css);const Px=e=>e.replace(/"/g,'\\"'),Ox=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(bt.filter(e=>e.key!=="inherit").map(e=>Ox(e.value)));const Ml=bt.find(e=>e.key==="INTER");Ml&&Ml.value;Yc.map(e=>{const t=Px(e.css);return`
78
+ ${Qe} { .${I} img { width: ${_}px !important; max-width: 100% !important; } }
79
+ ${R??""}
80
+ `.trim(),O={padding:dx(e==null?void 0:e.padding),margin:hx(e==null?void 0:e.margin),...fx(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},M={width:`${y}px`,height:"auto",maxWidth:"100%",display:"inline-block",verticalAlign:"top",boxSizing:"border-box",border:"none",outline:"none",textDecoration:"none",borderRadius:b?To(b):void 0},P=m.jsxs("picture",{children:[o&&m.jsx("source",{media:Qe.replace("@media ",""),srcSet:o}),r&&m.jsx("source",{media:_t.replace("@media ",""),srcSet:r}),m.jsx("img",{alt:c,...h,src:C,width:y,style:M})]}),B=x&&x!=="transparent"?m.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?To(b):void 0,...px(x,w),...S},children:P}):S.boxShadow?m.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?To(b):void 0,...S},children:P}):P;return l?m.jsxs("div",{className:`logo-block ${I}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:O,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),m.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":u?"Logo":c||"Logo",children:B})]}):m.jsxs("div",{className:`logo-block ${I}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:O,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),B]})}const wx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Sx=$().regex(/^rgba?\([^\)]+\)$/i),$x=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),_x=le("transparent"),Cx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ax=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),yx=F([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Ix=F([wx,Sx,$x,_x]).nullable().optional(),Rx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Tx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ex=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Nx(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 Mx(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 Px=A({style:A({padding:Cx,margin:Ax,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:F([g(),$()]).optional().nullable(),height:F([g(),$()]).optional().nullable(),widthTablet:F([g(),$()]).optional().nullable(),widthMobile:F([g(),$()]).optional().nullable(),heightTablet:F([g(),$()]).optional().nullable(),heightMobile:F([g(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),name:$().optional().nullable(),borderRadius:yx,borderColor:Ix.default(null),borderWidth:Rx}).optional().nullable()});function Ox(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function Lx(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 zx=0;function jx({style:e,props:t}){const n=`ahd-video-${++zx}`,r=(e==null?void 0:e.textAlign)??"left",o={padding:Tx(e==null?void 0:e.padding),margin:Ex(e==null?void 0:e.margin),...Nx(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),display:"flex",justifyContent:Ox(r),textAlign:r},a=(t==null?void 0:t.width)??"100%",i=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,u=l??a,c=s??a,h=(t==null?void 0:t.heightTablet)===null?"auto":(t==null?void 0:t.heightTablet)??i,d=(t==null?void 0:t.heightMobile)===null?"auto":(t==null?void 0:t.heightMobile)??i,f=a,p=i,b=M=>M==null?void 0:typeof M=="number"?`${M}px`:M,x=`
81
+ ${ln} { .${n} video, .${n} iframe { ${b(u)?`width: ${b(u)} !important;`:""} ${b(h)?`height: ${b(h)} !important;`:""} max-width: 100% !important; } }
82
+ ${Qe} { .${n} video, .${n} iframe { ${b(c)?`width: ${b(c)} !important;`:""} ${b(d)?`height: ${b(d)} !important;`:""} max-width: 100% !important; } }
83
+ `.trim(),w=(t==null?void 0:t.linkHref)??null,k=(t==null?void 0:t.borderRadius)??0,S=M=>typeof M=="number"?`${M}px`:`${M.topLeft}px ${M.topRight}px ${M.bottomRight}px ${M.bottomLeft}px`,v=(M,P)=>{const B=Math.max((P==null?void 0:P.top)||0,(P==null?void 0:P.right)||0,(P==null?void 0:P.bottom)||0,(P==null?void 0:P.left)||0);if(typeof M=="number")return`${Math.max(0,M-B)}px`;const D=Math.max(0,(M.topLeft||0)-B),H=Math.max(0,(M.topRight||0)-B),G=Math.max(0,(M.bottomRight||0)-B),W=Math.max(0,(M.bottomLeft||0)-B);return`${D}px ${H}px ${G}px ${W}px`},_=se((t==null?void 0:t.borderColor)??null),y=(t==null?void 0:t.borderWidth)??null,C=Mx(_,y),I=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),R=Lx(t==null?void 0:t.url),E=R?m.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:S(k)}},R):m.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:S(k),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),O=I?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...C},children:R?m.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:v(k,y)}},R):m.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:v(k,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):_?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...C},children:E}):E;return w?m.jsxs("div",{className:`video-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:O})]}):m.jsxs("div",{className:`video-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),O]})}var Bx=A({props:A({height:g().gte(0).optional().nullish()}).optional().nullable()}),Dx={height:16};const bt=[{key:"inherit",label:"Inherit",value:"inherit"},{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'}],Fx={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]},Hx=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(Fx).map(([e,t])=>`family=${Hx(e,t)}`).join("&")}`;const eu=bt.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));eu.map(e=>e.css);const Gx=e=>e.replace(/"/g,'\\"'),Wx=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(bt.filter(e=>e.key!=="inherit").map(e=>Wx(e.value)));const jl=bt.find(e=>e.key==="INTER");jl&&jl.value;eu.map(e=>{const t=Gx(e.css);return`
85
84
  .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
86
85
  .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
87
86
  content: '${e.label}';
88
87
  font-family: ${e.css};
89
88
  }`}).join(`
90
- `);const Er=[{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}],Lx={P:"Normal",DIV:"Normal",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",BLOCKQUOTE:"Quote",PRE:"Code"};new Set(Object.keys(Lx));const Kc="@container ahd-page (min-width: 641px) and (max-width: 1024px)",Jc="@container ahd-page (max-width: 640px)";function zx(){const e=Er.map(r=>`[data-fs-desktop="${r.px}"]{font-size:${r.px}px}`).join(`
91
- `),t=Er.map(r=>`[data-fs-tablet="${r.px}"]{font-size:${r.px}px !important}`).join(`
92
- `),n=Er.map(r=>`[data-fs-mobile="${r.px}"]{font-size:${r.px}px !important}`).join(`
93
- `);return[e,`${on}{${t}}`,`${Kc}{${t}}`,`${et}{${n}}`,`${Jc}{${n}}`].join(`
94
- `)}const hi=zx(),Bx=new Set(Er.map(e=>e.px));function jx(e){if(!e)return"";const t={desktop:new Set,tablet:new Set,mobile:new Set},n=/data-fs-(desktop|tablet|mobile)="(\d+)"/g;let r;for(;(r=n.exec(e))!==null;){const s=Number(r[2]);!Number.isFinite(s)||Bx.has(s)||t[r[1]].add(s)}const o=s=>Array.from(t[s]).map(u=>`[data-fs-${s}="${u}"]{font-size:${u}px${s==="desktop"?"":" !important"}}`).join(`
95
- `),a=o("desktop"),i=o("tablet"),l=o("mobile");return!a&&!i&&!l?"":[a,i&&`${on}{${i}}`,i&&`${Kc}{${i}}`,l&&`${et}{${l}}`,l&&`${Jc}{${l}}`].filter(Boolean).join(`
96
- `)}const Pl="ahd-responsive-font-size";function Dx(){if(typeof document>"u"||document.getElementById(Pl))return;const e=document.createElement("style");e.id=Pl,e.setAttribute("data-ahd-generated","responsive-font-size"),e.textContent=hi,document.head.appendChild(e)}Dx();const Fx=20;function Hx(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 o=`ol[data-mll="decimal-dot"]${" ol".repeat(n-1)}`,a=[];for(let l=1;l<=n;l++)l>1&&a.push('"."'),a.push(`counter(mll-${l})`);const i=a.join(" ");n===2?(t.push(`${o} { list-style-type: none; counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${o} > li { counter-increment: mll-${n}; position: relative; }`),t.push(`${o} > li::before { content: ${i}; position: absolute; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`)):(t.push(`${o} { counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${o} > li { counter-increment: mll-${n}; }`),t.push(`${o} > li::before { content: ${i}; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`))}return t.join(`
97
- `)}const Gx=`
89
+ `);const Lr=[{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}],Ux={P:"Normal",DIV:"Normal",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",BLOCKQUOTE:"Quote",PRE:"Code"};new Set(Object.keys(Ux));const tu="@container ahd-page (min-width: 641px) and (max-width: 1024px)",nu="@container ahd-page (max-width: 640px)";function Zx(){const e=Lr.map(r=>`[data-fs-desktop="${r.px}"]{font-size:${r.px}px}`).join(`
90
+ `),t=Lr.map(r=>`[data-fs-tablet="${r.px}"]{font-size:${r.px}px !important}`).join(`
91
+ `),n=Lr.map(r=>`[data-fs-mobile="${r.px}"]{font-size:${r.px}px !important}`).join(`
92
+ `);return[e,`${ln}{${t}}`,`${tu}{${t}}`,`${Qe}{${n}}`,`${nu}{${n}}`].join(`
93
+ `)}const mi=Zx(),qx=new Set(Lr.map(e=>e.px));function Vx(e){if(!e)return"";const t={desktop:new Set,tablet:new Set,mobile:new Set},n=/data-fs-(desktop|tablet|mobile)="(\d+)"/g;let r;for(;(r=n.exec(e))!==null;){const s=Number(r[2]);!Number.isFinite(s)||qx.has(s)||t[r[1]].add(s)}const o=s=>Array.from(t[s]).map(u=>`[data-fs-${s}="${u}"]{font-size:${u}px${s==="desktop"?"":" !important"}}`).join(`
94
+ `),a=o("desktop"),i=o("tablet"),l=o("mobile");return!a&&!i&&!l?"":[a,i&&`${ln}{${i}}`,i&&`${tu}{${i}}`,l&&`${Qe}{${l}}`,l&&`${nu}{${l}}`].filter(Boolean).join(`
95
+ `)}const Bl="ahd-responsive-font-size";function Yx(){if(typeof document>"u"||document.getElementById(Bl))return;const e=document.createElement("style");e.id=Bl,e.setAttribute("data-ahd-generated","responsive-font-size"),e.textContent=mi,document.head.appendChild(e)}Yx();const Kx=20;function Jx(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 o=`ol[data-mll="decimal-dot"]${" ol".repeat(n-1)}`,a=[];for(let l=1;l<=n;l++)l>1&&a.push('"."'),a.push(`counter(mll-${l})`);const i=a.join(" ");n===2?(t.push(`${o} { list-style-type: none; counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${o} > li { counter-increment: mll-${n}; position: relative; }`),t.push(`${o} > li::before { content: ${i}; position: absolute; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`)):(t.push(`${o} { counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${o} > li { counter-increment: mll-${n}; }`),t.push(`${o} > li::before { content: ${i}; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`))}return t.join(`
96
+ `)}const Xx=`
98
97
  /* Match the block's paragraph rhythm: this app zeros <p> margins via a
99
98
  .ahd-page-root p rule, so list items and nested lists must also carry
100
99
  zero vertical margin or the list feels double-spaced next to
@@ -154,7 +153,7 @@ ol[data-mll="decimal-paren"] ol ol ol > li::before { content: counter(mll-d) ")"
154
153
  buildDecimalDotCSS so arbitrary nesting depth (up to
155
154
  DECIMAL_DOT_MAX_LEVEL) renders the correctly concatenated marker
156
155
  instead of repeating the last-defined level's string. */
157
- ${Hx(Fx)}
156
+ ${Jx(Kx)}
158
157
 
159
158
  /* ── list-style-type schemes: tight hanging indent similar to plain
160
159
  browser <ol> so the marker character sits close to the text. ────── */
@@ -188,62 +187,59 @@ ul[data-mll="bullet-arrow"] > li::before { content: "▸"; position: absolute; l
188
187
  ul[data-mll="bullet-arrow"] ul { list-style-type: none; }
189
188
  ul[data-mll="bullet-arrow"] ul > li::before { content: "◦"; }
190
189
  ul[data-mll="bullet-arrow"] ul ul > li::before { content: "▪"; }
191
- `;function Wx(e){return typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e)}function fi(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function pi(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Ux(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 Zx(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}const qx=T(["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 Vx(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 Yx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Kx=$().regex(/^rgba?\([^\)]+\)$/i),Jx=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Xx=le("transparent"),Ol=D([Yx,Kx,Jx,Xx]).nullable().optional(),Qx=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ev=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,nv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rv=C({style:C({color:Ol,backgroundColor:Ol,fontSize:g().gte(0).optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontFamily:qx,fontWeight:T(["bold","normal",...or]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:Qx,margin:ev}).optional().nullable(),props:C({text:$().optional().nullable(),editorType:T(["summernote","quill"]).optional().nullable(),animation:C({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),ov={text:""};function av({style:e,props:t}){const n=e==null?void 0:e.lineClamp,r=n&&n>0?{display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},o=(e==null?void 0:e.color)??void 0,a=Wx(o),i=z(o,"blockText"),l=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),s={...a?{backgroundImage:i,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{color:i},background:a?void 0:l??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:Vx(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:tv(e==null?void 0:e.padding),margin:nv(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},u=r,c=jc(so((t==null?void 0:t.text)??ov.text));return m.jsxs("div",{className:"text-block",...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[m.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}
190
+ `;function Qx(e){return typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e)}function bi(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function xi(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}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 tv(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}const nv=T(["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 rv(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 ov=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),av=$().regex(/^rgba?\([^\)]+\)$/i),iv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),lv=le("transparent"),Dl=F([ov,av,iv,lv]).nullable().optional(),sv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),uv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,dv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,hv=A({style:A({color:Dl,backgroundColor:Dl,fontSize:g().gte(0).optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontFamily:nv,fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:sv,margin:cv}).optional().nullable(),props:A({text:$().optional().nullable(),editorType:T(["summernote","quill"]).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:At}).optional().nullable()}),fv={text:""};let pv=0;function gv({style:e,props:t}){var f;const n=U.useMemo(()=>`ahd-hv-text-${++pv}`,[]),r=Lt(n,t==null?void 0:t.hoverEffect,{themedBorderColor:z((f=t==null?void 0:t.hoverEffect)==null?void 0:f.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),o=e==null?void 0:e.lineClamp,a=o&&o>0?{display:"-webkit-box",WebkitLineClamp:o,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},i=(e==null?void 0:e.color)??void 0,l=Qx(i),s=z(i,"blockText"),u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c={...l?{backgroundImage:s,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{color:s},background:l?void 0:u??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:rv(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:uv(e==null?void 0:e.padding),margin:dv(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},h=a,d=Gc(fo((t==null?void 0:t.text)??fv.text));return m.jsxs("div",{className:`text-block${r?` ${n}`:""}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:c,children:[r&&m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),m.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
191
  .text-block a{color:var(--pp-link,#2563eb);text-decoration:underline}/* keep in sync with LINK_COLOR (editor-sample InlineTextToolbar/types.ts) */
193
192
  .text-block pre,.text-block code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}
194
- ${Gx}
195
- ${hi}
196
- ${jx(c)}`}}),m.jsx("div",{style:u,dangerouslySetInnerHTML:{__html:c}})]})}const iv=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),lv=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),sv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,cv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,uv=C({style:C({padding:iv,margin:lv,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:g().optional().nullable(),height:g().optional().nullable(),widthTablet:D([g(),$()]).optional().nullable(),widthMobile:D([g(),$()]).optional().nullable(),heightTablet:D([g(),$()]).optional().nullable(),heightMobile:D([g(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let dv=0;function hv({style:e,props:t}){const n=`ahd-youtube-url-${++dv}`,r={padding:sv(e==null?void 0:e.padding),margin:cv(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),textAlign:(e==null?void 0:e.textAlign)??void 0},o=(t==null?void 0:t.linkHref)??null,a=(t==null?void 0:t.width)??void 0,i=(t==null?void 0:t.height)??void 0,l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,u=(t==null?void 0:t.heightTablet)??null,c=(t==null?void 0:t.heightMobile)??null,h=l??a,d=s??h,f=u??i,p=c??f,b=a,x=i,w=v=>v==null?void 0:typeof v=="number"?`${v}px`:v,k=`
193
+ ${Xx}
194
+ ${mi}
195
+ ${Vx(d)}`}}),m.jsx("div",{style:h,dangerouslySetInnerHTML:{__html:d}})]})}const mv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),bv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),xv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,vv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,kv=A({style:A({padding:mv,margin:bv,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:g().optional().nullable(),height:g().optional().nullable(),widthTablet:F([g(),$()]).optional().nullable(),widthMobile:F([g(),$()]).optional().nullable(),heightTablet:F([g(),$()]).optional().nullable(),heightMobile:F([g(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let wv=0;function Sv({style:e,props:t}){const n=`ahd-youtube-url-${++wv}`,r={padding:xv(e==null?void 0:e.padding),margin:vv(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),textAlign:(e==null?void 0:e.textAlign)??void 0},o=(t==null?void 0:t.linkHref)??null,a=(t==null?void 0:t.width)??void 0,i=(t==null?void 0:t.height)??void 0,l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,u=(t==null?void 0:t.heightTablet)??null,c=(t==null?void 0:t.heightMobile)??null,h=l??a,d=s??h,f=u??i,p=c??f,b=a,x=i,w=v=>v==null?void 0:typeof v=="number"?`${v}px`:v,k=`
197
196
  ${_t} { .${n} video { ${w(h)?`width: ${w(h)} !important;`:""} ${w(f)?`height: ${w(f)} !important;`:""} max-width: 100% !important; } }
198
- ${et} { .${n} video { ${w(d)?`width: ${w(d)} !important;`:""} ${w(p)?`height: ${w(p)} !important;`:""} max-width: 100% !important; } }
199
- `.trim(),S=m.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 o?m.jsxs("div",{className:`youtube-url-block ${n}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:r,children:[k&&m.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),m.jsx("a",{href:o,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:S})]}):m.jsxs("div",{className:`youtube-url-block ${n}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:r,children:[k&&m.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),S]})}const fv=e=>null;function pv(e){return null}const gv=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),mv=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),bv=C({responsive:Ye,style:C({padding:gv,margin:mv,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:L().optional().nullable()}).optional().nullable()}),xv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,vv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function kv({style:e,props:t}){var d,f;const n=(t==null?void 0:t.src)??"",r=(t==null?void 0:t.width)??"100%",o=t==null?void 0:t.height,a=!o||/^\s*(0|0px|100vh)\s*$/i.test(o)?"800px":o,i=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=V.useRef(null),u=(((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),c={padding:xv(e==null?void 0:e.padding),margin:vv(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:`calc(100% - ${u}px)`},h={width:`var(--ahd-iframe-width,${r})`,height:`var(--ahd-iframe-height,${a})`,minHeight:`var(--ahd-iframe-height,${a})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?m.jsx("div",{className:"iframe-block",style:c,children:m.jsx("iframe",{ref:s,src:n,title:i,style:h,allowFullScreen:l})}):m.jsx(pv,{icon:m.jsx(fv,{}),title:"IFrame — enter a URL in the panel",sx:c})}const wv=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Sv=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),$v=C({responsive:Ye,style:C({padding:wv,margin:Sv,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:L().optional().nullable()}).optional().nullable()}),_v=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},Cv=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},Av=({props:e,style:t})=>{var c,h;const{src:n,width:r,height:o,title:a,allowFullscreen:i=!0}=e??{};if(!n)return m.jsx(m.Fragment,{});const l=(((c=t==null?void 0:t.margin)==null?void 0:c.left)??0)+(((h=t==null?void 0:t.margin)==null?void 0:h.right)??0),s=t??{},u={width:`calc(100% - ${l}px)`,padding:_v(s.padding),margin:Cv(s.margin),textAlign:s.textAlign||void 0};return m.jsx("div",{className:"calendly-block",style:u,children:m.jsx("iframe",{src:n,title:a||"Calendly scheduling",allowFullScreen:i??!0,style:{width:`var(--ahd-calendly-width,${r||"100%"})`,height:`var(--ahd-calendly-height,${o||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var yv=Object.defineProperty,Ll=Object.getOwnPropertySymbols,Iv=Object.prototype.hasOwnProperty,Rv=Object.prototype.propertyIsEnumerable,zl=(e,t,n)=>t in e?yv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tv=(e,t)=>{for(var n in t||(t={}))Iv.call(t,n)&&zl(e,n,t[n]);if(Ll)for(var n of Ll(t))Rv.call(t,n)&&zl(e,n,t[n]);return e};function Nv(e){return function({type:n,data:r}){const o=e[n].Component;return V.createElement(o,Tv({},r))}}function Ev(e){const t=Object.keys(e).map(n=>C({type:le(n),data:e[n].schema}));return Vg("type",t).transform(n=>n)}const Mv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Pv=$().regex(/^rgba?\([^\)]+\)$/i),Ov=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Lv=le("transparent"),zv=D([Mv,Pv,Ov,Lv]).nullable().optional(),Bv=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),jv=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),yo=Cc([g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish()]).optional().nullable(),Io=T(["fixed","fill","fit"]).optional().nullable(),Dv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Fv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Xc=C({style:C({backgroundColor:zv,padding:Bv,margin:jv}).optional().nullable(),props:C({widthType:Io,widthTypeTablet:Io,widthTypeMobile:Io,fixedWidths:yo,fixedWidthsTablet:yo,fixedWidthsMobile:yo,columnsCount:D([le(2),le(3),le(4),le(5)]).optional().nullable(),columnsGap:g().optional().nullable(),columnsGapTablet:g().optional().nullable(),columnsGapMobile:g().optional().nullable(),columnsDirection:T(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:T(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:T(["horizontal","vertical"]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:T(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),Qt={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function Bl(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
197
+ ${Qe} { .${n} video { ${w(d)?`width: ${w(d)} !important;`:""} ${w(p)?`height: ${w(p)} !important;`:""} max-width: 100% !important; } }
198
+ `.trim(),S=m.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 o?m.jsxs("div",{className:`youtube-url-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:r,children:[k&&m.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),m.jsx("a",{href:o,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:S})]}):m.jsxs("div",{className:`youtube-url-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:r,children:[k&&m.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),S]})}const $v=e=>null;function _v(e){return null}const Cv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Av=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),yv=A({responsive:Ye,style:A({padding:Cv,margin:Av,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:L().optional().nullable()}).optional().nullable()}),Iv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Rv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Tv({style:e,props:t}){var d,f;const n=(t==null?void 0:t.src)??"",r=(t==null?void 0:t.width)??"100%",o=t==null?void 0:t.height,a=!o||/^\s*(0|0px|100vh)\s*$/i.test(o)?"800px":o,i=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=U.useRef(null),u=(((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),c={padding:Iv(e==null?void 0:e.padding),margin:Rv(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:`calc(100% - ${u}px)`},h={width:`var(--ahd-iframe-width,${r})`,height:`var(--ahd-iframe-height,${a})`,minHeight:`var(--ahd-iframe-height,${a})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?m.jsx("div",{className:"iframe-block",style:c,children:m.jsx("iframe",{ref:s,src:n,title:i,style:h,allowFullScreen:l})}):m.jsx(_v,{icon:m.jsx($v,{}),title:"IFrame — enter a URL in the panel",sx:c})}const Ev=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Nv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Mv=A({responsive:Ye,style:A({padding:Ev,margin:Nv,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:L().optional().nullable()}).optional().nullable()}),Pv=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},Ov=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},Lv=({props:e,style:t})=>{var c,h;const{src:n,width:r,height:o,title:a,allowFullscreen:i=!0}=e??{};if(!n)return m.jsx(m.Fragment,{});const l=(((c=t==null?void 0:t.margin)==null?void 0:c.left)??0)+(((h=t==null?void 0:t.margin)==null?void 0:h.right)??0),s=t??{},u={width:`calc(100% - ${l}px)`,padding:Pv(s.padding),margin:Ov(s.margin),textAlign:s.textAlign||void 0};return m.jsx("div",{className:"calendly-block",style:u,children:m.jsx("iframe",{src:n,title:a||"Calendly scheduling",allowFullScreen:i??!0,style:{width:`var(--ahd-calendly-width,${r||"100%"})`,height:`var(--ahd-calendly-height,${o||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var zv=Object.defineProperty,Fl=Object.getOwnPropertySymbols,jv=Object.prototype.hasOwnProperty,Bv=Object.prototype.propertyIsEnumerable,Hl=(e,t,n)=>t in e?zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dv=(e,t)=>{for(var n in t||(t={}))jv.call(t,n)&&Hl(e,n,t[n]);if(Fl)for(var n of Fl(t))Bv.call(t,n)&&Hl(e,n,t[n]);return e};function Fv(e){return function({type:n,data:r}){const o=e[n].Component;return U.createElement(o,Dv({},r))}}function Hv(e){const t=Object.keys(e).map(n=>A({type:le(n),data:e[n].schema}));return Qg("type",t).transform(n=>n)}const Gv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Wv=$().regex(/^rgba?\([^\)]+\)$/i),Uv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Zv=le("transparent"),qv=F([Gv,Wv,Uv,Zv]).nullable().optional(),Vv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Yv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Eo=Tc([g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish()]).optional().nullable(),No=T(["fixed","fill","fit"]).optional().nullable(),Kv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Jv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ru=A({style:A({backgroundColor:qv,padding:Vv,margin:Yv}).optional().nullable(),props:A({widthType:No,widthTypeTablet:No,widthTypeMobile:No,fixedWidths:Eo,fixedWidthsTablet:Eo,fixedWidthsMobile:Eo,columnsCount:F([le(2),le(3),le(4),le(5)]).optional().nullable(),columnsGap:g().optional().nullable(),columnsGapTablet:g().optional().nullable(),columnsGapMobile:g().optional().nullable(),columnsDirection:T(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:T(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:T(["horizontal","vertical"]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:T(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),tn={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function Gl(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
200
199
  ${e} table { table-layout: auto !important; }
201
200
  ${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 jl(e){return`${e} table { display: table !important; table-layout: fixed !important; }
201
+ ${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function Wl(e){return`${e} table { display: table !important; table-layout: fixed !important; }
203
202
  ${e} tbody { display: table-row-group !important; }
204
203
  ${e} tr { display: table-row !important; width: auto !important; }
205
204
  ${e} td { display: table-cell !important; width: auto !important; }
206
- ${e} td + td { margin-top: 0 !important; }`}function Dl(e,t,n,r,o,a){const i=[];for(let l=0;l<t;l+=1){const s=`${e} td:nth-child(${l+1})`,u=l===0?0:n/2,c=l===t-1?0:n/2,h=[`padding-left: ${u}px !important`,`padding-right: ${c}px !important`];r==="fixed"&&(o==null?void 0:o[l])!=null?h.push(`width: ${o[l]}px !important`):h.push("width: auto !important"),i.push(`${s} { ${h.join("; ")}; }`)}return i.join(`
207
- `)}function Hv(e,t){const n=`.${e}.columns-container`,r=(o,a)=>!a&&o?`${n} td { vertical-align: ${o} !important; }`:"";return`
205
+ ${e} td + td { margin-top: 0 !important; }`}function Ul(e,t,n,r,o,a){const i=[];for(let l=0;l<t;l+=1){const s=`${e} td:nth-child(${l+1})`,u=l===0?0:n/2,c=l===t-1?0:n/2,h=[`padding-left: ${u}px !important`,`padding-right: ${c}px !important`];r==="fixed"&&(o==null?void 0:o[l])!=null?h.push(`width: ${o[l]}px !important`):h.push("width: auto !important"),i.push(`${s} { ${h.join("; ")}; }`)}return i.join(`
206
+ `)}function Xv(e,t){const n=`.${e}.columns-container`,r=(o,a)=>!a&&o?`${n} td { vertical-align: ${o} !important; }`:"";return`
208
207
  @media (max-width: ${Ue}px) {
209
208
  ${n} { --columns-gap: ${t.tabletGap}px; }
210
- ${t.tabletVertical?Bl(n):jl(n)}
211
- ${t.tabletVertical?"":Dl(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
209
+ ${t.tabletVertical?Gl(n):Wl(n)}
210
+ ${t.tabletVertical?"":Ul(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
212
211
  ${r(t.tabletAlign,t.tabletVertical)}
213
212
  }
214
213
  @media (max-width: ${Ve}px) {
215
214
  ${n} { --columns-gap: ${t.mobileGap}px; }
216
- ${t.mobileVertical?Bl(n):jl(n)}
217
- ${t.mobileVertical?"":Dl(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
215
+ ${t.mobileVertical?Gl(n):Wl(n)}
216
+ ${t.mobileVertical?"":Ul(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
218
217
  ${r(t.mobileAlign,t.mobileVertical)}
219
218
  }
220
- `.trim()}let Gv=0;function Wv({style:e,columns:t,props:n}){const r=(n==null?void 0:n.widthType)??Qt.widthType,o=(n==null?void 0:n.widthTypeTablet)??r,a=(n==null?void 0:n.widthTypeMobile)??o,i=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??i,s=(n==null?void 0:n.fixedWidthsMobile)??l,u=(n==null?void 0:n.columnsGap)??Qt.columnsGap,c=(n==null?void 0:n.columnsGapTablet)??u,h=(n==null?void 0:n.columnsGapMobile)??c,d=(n==null?void 0:n.columnsDirection)??Qt.columnsDirection,f=(n==null?void 0:n.columnsDirectionTablet)??d,p=(n==null?void 0:n.columnsDirectionMobile)??f,b=(n==null?void 0:n.contentAlignment)??Qt.contentAlignment,x=(n==null?void 0:n.contentAlignmentTablet)??b,w=(n==null?void 0:n.contentAlignmentMobile)??x,k=(n==null?void 0:n.columnsCount)??Qt.columnsCount,S=r,v=i,_=u,y=d,I={widthType:S,columnsCount:k,columnsGap:_,columnsDirection:y,contentAlignment:b,fixedWidths:v},R=y==="vertical",N=V.useMemo(()=>`ahd-cc-${Gv+=1}`,[]),P=Hv(N,{tabletVertical:f==="vertical",mobileVertical:p==="vertical",columnsCount:k,tabletGap:c,mobileGap:h,tabletWidthType:o,mobileWidthType:a,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:x,mobileAlign:w}),M={background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:Dv(e==null?void 0:e.padding),margin:Fv(e==null?void 0:e.margin),"--columns-gap":`${_}px`};return m.jsxs("div",{className:`columns-container ${N}${R?" is-stacked":""}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:M,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),m.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:R||S==="fit"?"auto":"fixed",borderCollapse:"collapse",...R?{display:"block",width:"100%"}:{}},children:m.jsx("tbody",{style:{width:"100%",...R?{display:"block"}:{}},children:m.jsxs("tr",{style:{width:"100%",...R?{display:"block"}:{}},children:[m.jsx(Pn,{index:0,props:I,columns:t}),m.jsx(Pn,{index:1,props:I,columns:t}),m.jsx(Pn,{index:2,props:I,columns:t}),m.jsx(Pn,{index:3,props:I,columns:t}),m.jsx(Pn,{index:4,props:I,columns:t})]})})})]})}function Pn({index:e,props:t,columns:n}){var h;const r=(t==null?void 0:t.columnsCount)??Qt.columnsCount;if(e>=r)return null;const o=t.columnsDirection==="vertical",a=o?0:Uv(e,t),i=o?0:Zv(e,t),l=(h=t.fixedWidths)==null?void 0:h[e],s={boxSizing:o?"border-box":"content-box",verticalAlign:o?"top":(t==null?void 0:t.contentAlignment)??Qt.contentAlignment,paddingLeft:a?`${a}px`:0,paddingRight:i?`${i}px`:0,width:t.widthType==="fixed"&&!o&&l!=null?`${l}px`:void 0,...o?{display:"block",width:"100%",marginTop:e>0?`${t.columnsGap}px`:void 0}:{}},u=(n==null?void 0:n[e])??null,c=t.widthType==="fixed"&&l!=null?l:void 0;return m.jsx("td",{style:s,width:c,children:u})}function Uv(e,{columnsGap:t}){return e===0?0:t/2}function Zv(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const qv=Xc.shape.props.unwrap().unwrap().shape,Vv=Xc.shape.style.unwrap().unwrap().shape,Yv=C({style:C({...Vv,borderRadius:D([g(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:C({...qv,columns:Cc([C({childrenIds:re($())}),C({childrenIds:re($())}),C({childrenIds:re($())})])}).optional().nullable()});function Kv(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Jv({style:e,props:t}){const{columns:n,...r}=t??{};let o;n&&(o=n.map(d=>d.childrenIds.map(f=>m.jsx(Me,{id:f},f))));const{borderRadius:a,borderColor:i,borderWidth:l,...s}=e??{},u={};if(a!=null&&(u.borderRadius=Kv(a)),i){const d=l??{top:1,right:1,bottom:1,left:1};u.borderStyle="solid",u.borderColor=i,u.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}u.overflow="hidden";const c=a!=null||!!i,h=m.jsx(Wv,{props:r,columns:o,style:s});return c?m.jsx("div",{style:u,children:h}):m.jsx(m.Fragment,{children:h})}const Xv=C({style:C({backgroundColor:$().optional().nullable(),padding:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:D([g(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:C({columnsCount:g().int().min(2).optional().nullable(),columnsGap:g().optional().nullable(),columnsGapTablet:g().optional().nullable(),columnsGapMobile:g().optional().nullable(),wrap:L().optional().nullable(),desktopLayout:T(["wrap","row"]).optional().nullable(),mobileLayout:T(["wrap","row"]).optional().nullable(),tabletLayout:T(["wrap","row"]).optional().nullable(),columnShrink:re(L()).optional().nullable(),columnShrinkTablet:re(L()).optional().nullable(),columnShrinkMobile:re(L()).optional().nullable(),columnSpan:re(g().int().min(1).max(12).nullable()).optional().nullable(),columnSpanTablet:re(g().int().min(1).max(12).nullable()).optional().nullable(),columnSpanMobile:re(g().int().min(1).max(12).nullable()).optional().nullable(),equalColumns:L().optional().nullable(),columns:re(C({childrenIds:re($())})).optional().nullable(),align:T(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:T(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:L().optional().nullable(),repeatableEnabled:L().optional().nullable()}).optional().nullable()});function Qv(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function e1(e){var o,a;const t=e??{},n=(((o=t.margin)==null?void 0:o.left)??0)+(((a=t.margin)==null?void 0:a.right)??0),r={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(r.backgroundColor=z(t.backgroundColor,"bgAdaptive")),t.padding){const i=t.padding;r.padding=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}if(t.margin){const i=t.margin;r.margin=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}if(t.borderRadius!=null&&(r.borderRadius=Qv(t.borderRadius),r.overflow="hidden"),t.borderColor){const i=t.borderWidth??{top:1,right:1,bottom:1,left:1};r.borderStyle="solid",r.borderColor=t.borderColor,r.borderWidth=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}return r}function Ro(e,t,n){const r=e??{},o=r.desktopLayout??(r.wrap?"wrap":"row"),a=r.tabletLayout??o,i=r.mobileLayout??"wrap",l=r.columnShrink??[],s=r.columnShrinkTablet??l,u=r.columnShrinkMobile??s,c=r.columnSpan??[],h=r.columnSpanTablet??c,d=r.columnSpanMobile??h,f=r.columnsGap??16,p=r.columnsGapTablet??f,b=r.columnsGapMobile??p,x={desktop:{layout:o,shrink:l,span:c,gap:f},tablet:{layout:a,shrink:s,span:h,gap:p},mobile:{layout:i,shrink:u,span:d,gap:b}}[t];return{layout:x.layout,gap:x.gap,shrink:Array.from({length:n},(w,k)=>x.shrink[k]===!0),span:Array.from({length:n},(w,k)=>{const S=x.span[k];return typeof S=="number"&&S>=1&&S<=12?S:null}),equalColumns:r.equalColumns===!0,reverseColumns:r.reverseColumns===!0}}function t1(e,t){return`calc(${e} / 12 * (100% + ${t}px) - ${t}px)`}function Fl(e,t,n=0){switch(e){case"span":{const r=t1(t??12,n);return`flex: 0 0 ${r}; width: ${r};`}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 n1(e,{shrink:t,span:n,equalColumns:r}){return t[e]?"shrink":n[e]!=null?"span":r?"equal":"plain"}function To(e,t,n,r){const{layout:o,reverseColumns:a,gap:i}=n,l=d=>d.map(f=>`${t}:nth-child(${f+1})`).join(", "),s=Array.from({length:r},(d,f)=>f);if(o==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; gap: ${i}px; }`,`${l(s)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
221
- `);const c=[`${e} { flex-direction: ${a?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${i}px; }`],h=new Map;for(const d of s){const f=n1(d,n);h.set(f,[...h.get(f)??[],d])}for(const[d,f]of h){if(d==="span"){for(const p of f)c.push(`${l([p])} { ${Fl(d,n.span[p],i)} max-width: 100%; }`);continue}c.push(`${l(f)} { ${Fl(d)} max-width: 100%; }`)}return c.join(`
222
- `)}function r1(e,t){const{columnsCount:n,desktop:r,tablet:o,mobile:a}=t,i=`.${e}.flex-columns-block > .fc-row`,l=`${i} > .fc-col`,s=[`${i} { display: flex; width: 100%; box-sizing: border-box; }`,`${l} { min-width: 0; box-sizing: border-box; overflow-wrap: anywhere; }`,`${l} > * { max-width: 100%; }`,`${l} .container-block, ${l} .flex-columns-block { max-width: 100%; min-width: 0; }`,`${l} :is(img, video, svg, table) { max-width: 100%; height: auto; }`].join(`
219
+ `.trim()}let Qv=0;function e1({style:e,columns:t,props:n}){const r=(n==null?void 0:n.widthType)??tn.widthType,o=(n==null?void 0:n.widthTypeTablet)??r,a=(n==null?void 0:n.widthTypeMobile)??o,i=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??i,s=(n==null?void 0:n.fixedWidthsMobile)??l,u=(n==null?void 0:n.columnsGap)??tn.columnsGap,c=(n==null?void 0:n.columnsGapTablet)??u,h=(n==null?void 0:n.columnsGapMobile)??c,d=(n==null?void 0:n.columnsDirection)??tn.columnsDirection,f=(n==null?void 0:n.columnsDirectionTablet)??d,p=(n==null?void 0:n.columnsDirectionMobile)??f,b=(n==null?void 0:n.contentAlignment)??tn.contentAlignment,x=(n==null?void 0:n.contentAlignmentTablet)??b,w=(n==null?void 0:n.contentAlignmentMobile)??x,k=(n==null?void 0:n.columnsCount)??tn.columnsCount,S=r,v=i,_=u,y=d,I={widthType:S,columnsCount:k,columnsGap:_,columnsDirection:y,contentAlignment:b,fixedWidths:v},R=y==="vertical",E=U.useMemo(()=>`ahd-cc-${Qv+=1}`,[]),O=Xv(E,{tabletVertical:f==="vertical",mobileVertical:p==="vertical",columnsCount:k,tabletGap:c,mobileGap:h,tabletWidthType:o,mobileWidthType:a,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:x,mobileAlign:w}),M={background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:Kv(e==null?void 0:e.padding),margin:Jv(e==null?void 0:e.margin),"--columns-gap":`${_}px`};return m.jsxs("div",{className:`columns-container ${E}${R?" is-stacked":""}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:M,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:O}}),m.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:R||S==="fit"?"auto":"fixed",borderCollapse:"collapse",...R?{display:"block",width:"100%"}:{}},children:m.jsx("tbody",{style:{width:"100%",...R?{display:"block"}:{}},children:m.jsxs("tr",{style:{width:"100%",...R?{display:"block"}:{}},children:[m.jsx(Ln,{index:0,props:I,columns:t}),m.jsx(Ln,{index:1,props:I,columns:t}),m.jsx(Ln,{index:2,props:I,columns:t}),m.jsx(Ln,{index:3,props:I,columns:t}),m.jsx(Ln,{index:4,props:I,columns:t})]})})})]})}function Ln({index:e,props:t,columns:n}){var h;const r=(t==null?void 0:t.columnsCount)??tn.columnsCount;if(e>=r)return null;const o=t.columnsDirection==="vertical",a=o?0:t1(e,t),i=o?0:n1(e,t),l=(h=t.fixedWidths)==null?void 0:h[e],s={boxSizing:o?"border-box":"content-box",verticalAlign:o?"top":(t==null?void 0:t.contentAlignment)??tn.contentAlignment,paddingLeft:a?`${a}px`:0,paddingRight:i?`${i}px`:0,width:t.widthType==="fixed"&&!o&&l!=null?`${l}px`:void 0,...o?{display:"block",width:"100%",marginTop:e>0?`${t.columnsGap}px`:void 0}:{}},u=(n==null?void 0:n[e])??null,c=t.widthType==="fixed"&&l!=null?l:void 0;return m.jsx("td",{style:s,width:c,children:u})}function t1(e,{columnsGap:t}){return e===0?0:t/2}function n1(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const r1=ru.shape.props.unwrap().unwrap().shape,o1=ru.shape.style.unwrap().unwrap().shape,a1=A({style:A({...o1,borderRadius:F([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({...r1,columns:Tc([A({childrenIds:oe($())}),A({childrenIds:oe($())}),A({childrenIds:oe($())})])}).optional().nullable()});function i1(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function l1({style:e,props:t}){const{columns:n,...r}=t??{};let o;n&&(o=n.map(d=>d.childrenIds.map(f=>m.jsx(Pe,{id:f},f))));const{borderRadius:a,borderColor:i,borderWidth:l,...s}=e??{},u={};if(a!=null&&(u.borderRadius=i1(a)),i){const d=l??{top:1,right:1,bottom:1,left:1};u.borderStyle="solid",u.borderColor=i,u.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}u.overflow="hidden";const c=a!=null||!!i,h=m.jsx(e1,{props:r,columns:o,style:s});return c?m.jsx("div",{style:u,children:h}):m.jsx(m.Fragment,{children:h})}const s1=A({style:A({backgroundColor:$().optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:F([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({columnsCount:g().int().min(2).optional().nullable(),columnsGap:g().optional().nullable(),columnsGapTablet:g().optional().nullable(),columnsGapMobile:g().optional().nullable(),wrap:L().optional().nullable(),desktopLayout:T(["wrap","row"]).optional().nullable(),mobileLayout:T(["wrap","row"]).optional().nullable(),tabletLayout:T(["wrap","row"]).optional().nullable(),columnShrink:oe(L()).optional().nullable(),columnShrinkTablet:oe(L()).optional().nullable(),columnShrinkMobile:oe(L()).optional().nullable(),columnSpan:oe(g().int().min(1).max(12).nullable()).optional().nullable(),columnSpanTablet:oe(g().int().min(1).max(12).nullable()).optional().nullable(),columnSpanMobile:oe(g().int().min(1).max(12).nullable()).optional().nullable(),equalColumns:L().optional().nullable(),columns:oe(A({childrenIds:oe($())})).optional().nullable(),align:T(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:T(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:L().optional().nullable(),repeatableEnabled:L().optional().nullable()}).optional().nullable()});function c1(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function u1(e){var o,a;const t=e??{},n=(((o=t.margin)==null?void 0:o.left)??0)+(((a=t.margin)==null?void 0:a.right)??0),r={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(r.backgroundColor=z(t.backgroundColor,"bgAdaptive")),t.padding){const i=t.padding;r.padding=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}if(t.margin){const i=t.margin;r.margin=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}if(t.borderRadius!=null&&(r.borderRadius=c1(t.borderRadius),r.overflow="hidden"),t.borderColor){const i=t.borderWidth??{top:1,right:1,bottom:1,left:1};r.borderStyle="solid",r.borderColor=t.borderColor,r.borderWidth=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}return r}function Mo(e,t,n){const r=e??{},o=r.desktopLayout??(r.wrap?"wrap":"row"),a=r.tabletLayout??o,i=r.mobileLayout??"wrap",l=r.columnShrink??[],s=r.columnShrinkTablet??l,u=r.columnShrinkMobile??s,c=r.columnSpan??[],h=r.columnSpanTablet??c,d=r.columnSpanMobile??h,f=r.columnsGap??16,p=r.columnsGapTablet??f,b=r.columnsGapMobile??p,x={desktop:{layout:o,shrink:l,span:c,gap:f},tablet:{layout:a,shrink:s,span:h,gap:p},mobile:{layout:i,shrink:u,span:d,gap:b}}[t];return{layout:x.layout,gap:x.gap,shrink:Array.from({length:n},(w,k)=>x.shrink[k]===!0),span:Array.from({length:n},(w,k)=>{const S=x.span[k];return typeof S=="number"&&S>=1&&S<=12?S:null}),equalColumns:r.equalColumns===!0,reverseColumns:r.reverseColumns===!0}}function d1(e,t){return`calc(${e} / 12 * (100% + ${t}px) - ${t}px)`}function Zl(e,t,n=0){switch(e){case"span":{const r=d1(t??12,n);return`flex: 0 0 ${r}; width: ${r};`}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 h1(e,{shrink:t,span:n,equalColumns:r}){return t[e]?"shrink":n[e]!=null?"span":r?"equal":"plain"}function Po(e,t,n,r){const{layout:o,reverseColumns:a,gap:i}=n,l=d=>d.map(f=>`${t}:nth-child(${f+1})`).join(", "),s=Array.from({length:r},(d,f)=>f);if(o==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; gap: ${i}px; }`,`${l(s)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
220
+ `);const c=[`${e} { flex-direction: ${a?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${i}px; }`],h=new Map;for(const d of s){const f=h1(d,n);h.set(f,[...h.get(f)??[],d])}for(const[d,f]of h){if(d==="span"){for(const p of f)c.push(`${l([p])} { ${Zl(d,n.span[p],i)} max-width: 100%; }`);continue}c.push(`${l(f)} { ${Zl(d)} max-width: 100%; }`)}return c.join(`
221
+ `)}function f1(e,t){const{columnsCount:n,desktop:r,tablet:o,mobile:a}=t,i=`.${e}.flex-columns-block > .fc-row`,l=`${i} > .fc-col`,s=[`${i} { display: flex; width: 100%; box-sizing: border-box; }`,`${l} { min-width: 0; box-sizing: border-box; overflow-wrap: anywhere; }`,`${l} > * { max-width: 100%; }`,`${l} .container-block, ${l} .flex-columns-block { max-width: 100%; min-width: 0; }`,`${l} :is(img, video, svg, table) { max-width: 100%; height: auto; }`].join(`
223
222
  `),c=[r,o,a].some(d=>d.shrink.some(Boolean))?[r,o,a].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
223
  `):"",h=(d,f)=>`@media (max-width: ${d}px) {
225
224
  ${f}
226
225
  }
227
226
  @container ahd-page (max-width: ${d}px) {
228
227
  ${f}
229
- }`;return[s,c,To(i,l,r,n),h(Ue,To(i,l,o,n)),h(Ve,To(i,l,a,n))].filter(Boolean).join(`
230
- `)}let o1=0;function a1({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,r=(t==null?void 0:t.align)??"flex-start",o=(t==null?void 0:t.justify)??"flex-start",a=(t==null?void 0:t.columns)??[],i=Array.from({length:n},(c,h)=>a[h]??{childrenIds:[]}),l=V.useMemo(()=>`ahd-fc-${o1+=1}`,[]),s=r1(l,{columnsCount:n,desktop:Ro(t,"desktop",n),tablet:Ro(t,"tablet",n),mobile:Ro(t,"mobile",n)}),u={alignItems:r,justifyContent:o};return m.jsxs("div",{className:`flex-columns-block ${l}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:e1(e),"data-cols":n,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),m.jsx("div",{className:"fc-row",style:u,children:i.map((c,h)=>m.jsx("div",{className:"fc-col",children:c.childrenIds.map(d=>m.jsx(Me,{id:d},d))},h))})]})}const i1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),l1=$().regex(/^rgba?\([^\)]+\)$/i),s1=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),c1=le("transparent"),u1=D([i1,l1,s1,c1]).nullable().optional(),d1=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),h1=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),f1=C({style:C({backgroundColor:u1,padding:d1,margin:h1}).optional().nullable(),props:C({columnsCount:g().int().min(1).optional().nullable(),columnsCountTablet:g().int().min(1).optional().nullable(),columnsCountMobile:g().int().min(1).optional().nullable(),rowsCount:g().int().min(1).optional().nullable(),columnsGap:g().optional().nullable(),rowsGap:g().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),p1=f1.shape.props.unwrap().unwrap().shape,g1=C({backgroundColor:$().optional().nullable(),padding:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:D([g(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),m1=C({style:g1,props:C({...p1,cells:re(C({childrenIds:re($()),colStart:g().int().min(1).optional().nullable(),colSpan:g().int().min(1).optional().nullable(),rowStart:g().int().min(1).optional().nullable(),rowSpan:g().int().min(1).optional().nullable()})),columnsCountTablet:D([le(1),le(2),le(3),le(4),le(5)]).optional().nullable(),columnsCountMobile:D([le(1),le(2),le(3),le(4),le(5)]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:T(["left","center","right"]).optional().nullable()}).optional().nullable()}),b1={top:"flex-start",middle:"center",bottom:"flex-end"},x1={left:"flex-start",center:"center",right:"flex-end"};let v1=0;function k1({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,r=(t==null?void 0:t.columnsCountTablet)??n,o=(t==null?void 0:t.columnsCountMobile)??1,a=(t==null?void 0:t.rowsCount)??2,i=(t==null?void 0:t.columnsGap)??0,l=(t==null?void 0:t.rowsGap)??0,s=(t==null?void 0:t.contentAlignment)??"middle",u=(t==null?void 0:t.horizontalAlignment)??"left",c=(t==null?void 0:t.cells)??[],d=c.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)?c.length:n*a,f=V.useMemo(()=>`ahd-grid-${v1+=1}`,[]),p=Array.from({length:d},(R,N)=>c[N]??{childrenIds:[]}),b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w=((x==null?void 0:x.left)??0)+((x==null?void 0:x.right)??0),k=w>0?`calc(100% - ${w}px)`:"100%",S={backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),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:k,maxWidth:"100%"},v=e==null?void 0:e.borderRadius;if(v!=null&&(S.borderRadius=typeof v=="number"?`${v}px`:`${v.topLeft}px ${v.topRight}px ${v.bottomRight}px ${v.bottomLeft}px`,S.overflow="hidden"),e!=null&&e.borderColor){const R=e.borderWidth??{top:1,right:1,bottom:1,left:1};S.borderStyle="solid",S.borderColor=e.borderColor,S.borderWidth=`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`}const _={display:"grid",columnGap:`${i}px`,rowGap:`${l}px`,alignItems:b1[s]??"center",justifyContent:x1[u]??"flex-start",width:"100%",boxSizing:"border-box"},y=p.map((R,N)=>{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-${N} { ${P.join(" ")} }
231
- @media (max-width: ${Ve}px) { .${f}-cell-${N} { grid-column: auto; grid-row: auto; } }`}).filter(Boolean).join(`
232
- `),A=`
228
+ }`;return[s,c,Po(i,l,r,n),h(Ue,Po(i,l,o,n)),h(Ve,Po(i,l,a,n))].filter(Boolean).join(`
229
+ `)}let p1=0;function g1({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,r=(t==null?void 0:t.align)??"flex-start",o=(t==null?void 0:t.justify)??"flex-start",a=(t==null?void 0:t.columns)??[],i=Array.from({length:n},(c,h)=>a[h]??{childrenIds:[]}),l=U.useMemo(()=>`ahd-fc-${p1+=1}`,[]),s=f1(l,{columnsCount:n,desktop:Mo(t,"desktop",n),tablet:Mo(t,"tablet",n),mobile:Mo(t,"mobile",n)}),u={alignItems:r,justifyContent:o};return m.jsxs("div",{className:`flex-columns-block ${l}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u1(e),"data-cols":n,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),m.jsx("div",{className:"fc-row",style:u,children:i.map((c,h)=>m.jsx("div",{className:"fc-col",children:c.childrenIds.map(d=>m.jsx(Pe,{id:d},d))},h))})]})}const m1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),b1=$().regex(/^rgba?\([^\)]+\)$/i),x1=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),v1=le("transparent"),k1=F([m1,b1,x1,v1]).nullable().optional(),w1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),S1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),$1=A({style:A({backgroundColor:k1,padding:w1,margin:S1}).optional().nullable(),props:A({columnsCount:g().int().min(1).optional().nullable(),columnsCountTablet:g().int().min(1).optional().nullable(),columnsCountMobile:g().int().min(1).optional().nullable(),rowsCount:g().int().min(1).optional().nullable(),columnsGap:g().optional().nullable(),rowsGap:g().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),_1=$1.shape.props.unwrap().unwrap().shape,C1=A({backgroundColor:$().optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:F([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),A1=A({style:C1,props:A({..._1,cells:oe(A({childrenIds:oe($()),colStart:g().int().min(1).optional().nullable(),colSpan:g().int().min(1).optional().nullable(),rowStart:g().int().min(1).optional().nullable(),rowSpan:g().int().min(1).optional().nullable()})),columnsCountTablet:F([le(1),le(2),le(3),le(4),le(5)]).optional().nullable(),columnsCountMobile:F([le(1),le(2),le(3),le(4),le(5)]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:T(["left","center","right"]).optional().nullable()}).optional().nullable()}),y1={top:"flex-start",middle:"center",bottom:"flex-end"},I1={left:"flex-start",center:"center",right:"flex-end"};let R1=0;function T1({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,r=(t==null?void 0:t.columnsCountTablet)??n,o=(t==null?void 0:t.columnsCountMobile)??1,a=(t==null?void 0:t.rowsCount)??2,i=(t==null?void 0:t.columnsGap)??0,l=(t==null?void 0:t.rowsGap)??0,s=(t==null?void 0:t.contentAlignment)??"middle",u=(t==null?void 0:t.horizontalAlignment)??"left",c=(t==null?void 0:t.cells)??[],d=c.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)?c.length:n*a,f=U.useMemo(()=>`ahd-grid-${R1+=1}`,[]),p=Array.from({length:d},(R,E)=>c[E]??{childrenIds:[]}),b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w=((x==null?void 0:x.left)??0)+((x==null?void 0:x.right)??0),k=w>0?`calc(100% - ${w}px)`:"100%",S={backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),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:k,maxWidth:"100%"},v=e==null?void 0:e.borderRadius;if(v!=null&&(S.borderRadius=typeof v=="number"?`${v}px`:`${v.topLeft}px ${v.topRight}px ${v.bottomRight}px ${v.bottomLeft}px`,S.overflow="hidden"),e!=null&&e.borderColor){const R=e.borderWidth??{top:1,right:1,bottom:1,left:1};S.borderStyle="solid",S.borderColor=e.borderColor,S.borderWidth=`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`}const _={display:"grid",columnGap:`${i}px`,rowGap:`${l}px`,alignItems:y1[s]??"center",justifyContent:I1[u]??"flex-start",width:"100%",boxSizing:"border-box"},y=p.map((R,E)=>{if(R.colStart==null&&R.rowStart==null)return"";const O=[];return R.colStart!=null&&R.colSpan!=null&&O.push(`grid-column: ${R.colStart} / span ${R.colSpan};`),R.rowStart!=null&&R.rowSpan!=null&&O.push(`grid-row: ${R.rowStart} / span ${R.rowSpan};`),O.length===0?"":`.${f}-cell-${E} { ${O.join(" ")} }
230
+ @media (max-width: ${Ve}px) { .${f}-cell-${E} { grid-column: auto; grid-row: auto; } }`}).filter(Boolean).join(`
231
+ `),C=`
233
232
  .${f} > .grid-block-inner { grid-template-columns: repeat(${n}, minmax(0, 1fr)); }
234
233
  @media (max-width: ${Ue}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${r}, minmax(0, 1fr)); } }
235
234
  @media (max-width: ${Ve}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
236
235
  ${y}
237
- `.trim(),I=()=>({minWidth:0,boxSizing:"border-box"});return m.jsxs("div",{className:`grid-block ${f}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),m.jsx("div",{className:"grid-block-inner",style:_,children:p.map((R,N)=>m.jsx("div",{className:`grid-cell ${f}-cell-${N}`,style:I(),children:R.childrenIds.map(P=>m.jsx(Me,{id:P},P))},N))})]})}const w1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),S1=$().regex(/^rgba?\([^\)]+\)$/i),$1=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),_1=le("transparent"),pa=Tc(e=>typeof e=="string"?e.trim():e,D([w1,S1,$1,_1]).nullable().optional()),C1=$().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),A1=$().includes("{{"),y1=D([C1,A1]).nullable().optional(),I1=$().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(),R1=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),T1=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),N1=D([g(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),E1=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Hl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Qc(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function M1(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:Qc(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function P1(e,t){const n=e&&Qc(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function O1(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 L1=C({color:pa,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function z1(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 B1(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${z1(t)}`}}function j1(e,t){const n=Math.max((t==null?void 0:t.top)||0,(t==null?void 0:t.right)||0,(t==null?void 0:t.bottom)||0,(t==null?void 0:t.left)||0);if(e==null)return;if(typeof e=="number")return`${Math.max(0,e-n)}px`;const r=Math.max(0,(e.topLeft||0)-n),o=Math.max(0,(e.topRight||0)-n),a=Math.max(0,(e.bottomRight||0)-n),i=Math.max(0,(e.bottomLeft||0)-n);return`${r}px ${o}px ${a}px ${i}px`}const D1=C({style:C({backgroundColor:pa,backgroundImage:y1,backgroundSize:I1,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable(),borderColor:pa,borderRadius:N1,padding:R1,margin:T1,borderWidth:E1,boxShadow:L1}).optional().nullable(),props:C({fullWidth:L().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:D([g().min(0),le("auto")]).optional().nullable(),heightMobile:D([g().min(0),le("auto")]).optional().nullable(),overflow:L().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),hoverEffect:C({enabled:L(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:T(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()}),un={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};function F1({style:e,props:t,children:n,blockId:r}){const o=si(),a=(t==null?void 0:t.fullWidth)??un.fullWidth,i=(t==null?void 0:t.widthType)??un.widthType,l=(t==null?void 0:t.widthTypeTablet)??null,s=(t==null?void 0:t.widthTypeMobile)??null,u=l??i,c=s??u,h=(t==null?void 0:t.width)??un.width,d=(t==null?void 0:t.widthUnit)??un.widthUnit,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=f??h,x=p??b,w=(t==null?void 0:t.height)??null,k=(t==null?void 0:t.heightTablet)??null,S=(t==null?void 0:t.heightMobile)??null,v=k==="auto"?null:k??w,_=S==="auto"?null:S??(k==="auto"?null:v),y=(t==null?void 0:t.overflow)===!0,A=(t==null?void 0:t.alignment)??un.alignment,I=(t==null?void 0:t.alignmentTablet)??null,R=(t==null?void 0:t.alignmentMobile)??null,N=I??A,P=R??N,M=A,O=(t==null?void 0:t.ariaLabel)??void 0,j=(t==null?void 0:t.elementId)??void 0,F=!!(t!=null&&t.showLink),H=(t==null?void 0:t.linkHref)??null,W=typeof H=="string"?H.trim():H,U=F&&typeof W=="string"&&W.length>0,X=(t==null?void 0:t.linkTarget)??"_blank",Z=U?"a":(t==null?void 0:t.tag)??"div",q=U?{href:W,target:X,...X==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},ae=(ue,ve,nt=!1)=>{if(nt&&a)return"100%";switch(ue){case"fill":return"100%";case"fixed":return`${ve}${d}`;case"fit":default:return"auto"}},$e=ue=>((ue==null?void 0:ue.left)??0)+((ue==null?void 0:ue.right)??0),ce=(ue,ve,nt)=>{const at=(ve==null?void 0:ve.top)??0,Rt=(ve==null?void 0:ve.bottom)??0;if(nt)return{marginTop:at,marginBottom:Rt,marginLeft:(ve==null?void 0:ve.left)??0,marginRight:(ve==null?void 0:ve.right)??0};switch(ue){case"center":return{marginTop:at,marginBottom:Rt,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:at,marginBottom:Rt,marginLeft:"auto",marginRight:(ve==null?void 0:ve.right)??0};case"left":default:return{marginTop:at,marginBottom:Rt,marginLeft:(ve==null?void 0:ve.left)??0,marginRight:"auto"}}},pe=(ue,ve)=>{const nt=$e(ve);return nt<=0?ue:ue==="100%"?`calc(100% - ${nt}px)`:ue},Le=i,ee=h,Y=w,K=ae(Le,ee,o==="desktop"),B=pe(K,e==null?void 0:e.margin),me=K==="100%"?null:{textAlign:M==="left"?"left":M==="right"?"right":"center"},ke=(ue,ve,nt)=>ae(ve,nt)==="100%"||ue==="left"?"left":ue==="right"?"right":"center",be=l!=null||s!=null||f!=null||p!=null||k!=null||S!=null||I!=null||R!=null,ge=(t==null?void 0:t.hoverEffect)??un.hoverEffect,Ce=!!(ge!=null&&ge.enabled),oe=(be||Ce)&&r?`ahd-cb-${r}`:"",Pe=oe?`${oe}-align`:"",De=v!=null?`height: ${v}px !important; --ahd-cb-h: ${v}px !important;`:k==="auto"?"height: auto !important; --ahd-cb-h: auto !important;":"",xe=_!=null?`height: ${_}px !important; --ahd-cb-h: ${_}px !important;`:S==="auto"||S==null&&k==="auto"?"height: auto !important; --ahd-cb-h: auto !important;":"",Fe=be?`
238
- ${_t} { .${oe} { width: ${pe(ae(u,b),e==null?void 0:e.margin)} !important; ${De} max-width: 100% !important; } }
239
- ${et} { .${oe} { width: ${pe(ae(c,x),e==null?void 0:e.margin)} !important; ${xe} max-width: 100% !important; } }
240
- ${_t} { .${Pe} { text-align: ${ke(N,u,b)} !important; } }
241
- ${et} { .${Pe} { text-align: ${ke(P,c,x)} !important; } }
242
- `.trim():null,He=Ce?`
243
- .${oe} { transition: transform ${ge.duration??500}ms ${ge.easing??"ease-in-out"}; }
244
- .${oe}:hover { transform: scale(${ge.scale??1.05}); }
245
- `.trim():null,Q=[Fe,He].filter(Boolean).join(`
246
- `)||null,Be=ue=>{if(ue!=null)return typeof ue=="number"?`${ue}px`:`${ue.topLeft}px ${ue.topRight}px ${ue.bottomRight}px ${ue.bottomLeft}px`},ze=(e==null?void 0:e.borderColor)??null,ie=(e==null?void 0:e.borderWidth)??null,At=O1(z(ze,"borderAdaptive"),ie),Ge=B1(e==null?void 0:e.boxShadow),tt=z(e==null?void 0:e.backgroundColor,"bgAdaptive")??"",ot=M1(tt),Ot=(e==null?void 0:e.backgroundSize)==="none",yt=!Ot&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,Ke=P1(tt,yt),Lt=de(e==null?void 0:e.backgroundColor,yt,"bgAdaptive"),xt=Ot?void 0:(e==null?void 0:e.backgroundSize)??void 0,Zt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",En=ze&&(ze.includes("linear-gradient")||ze.includes("radial-gradient")||ze.includes("repeating-linear-gradient")),Je=Y!=null,It=Je?{"--ahd-cb-h":`${Y}px`}:{},te=Je?" container-block-has-height":"";if(En){const ue={...At,borderRadius:Be(e==null?void 0:e.borderRadius),width:B,maxWidth:"100%",minWidth:0,height:Je?`${Y}px`:void 0,boxSizing:"border-box",...ce(M,e==null?void 0:e.margin,K==="100%"),...me?{display:"inline-block"}:{},...Ge,...It},ve={...ot,backgroundImage:Ke,backgroundSize:xt,backgroundRepeat:Zt,borderRadius:j1((e==null?void 0:e.borderRadius)??0,ie),overflow:y?"auto":"hidden",padding:Hl(e==null?void 0:e.padding),width:"100%",height:Je?"100%":void 0,boxSizing:"border-box"},nt=`container-block${y?" container-block-overflow":""}${te}${oe?` ${oe}`:""}`,at=`container-block-inner${y?" container-block-overflow":""}`,Rt=U?{...ue,...q.style,...me?{display:"inline-block"}:{}}:ue,Vt=m.jsx(Z,{className:nt,"aria-label":O,id:j,...Lt,...q,style:Rt,children:m.jsx("div",{className:at,style:ve,children:n})});return m.jsxs(m.Fragment,{children:[Q&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),me?m.jsx("div",{className:Pe,style:me,children:Vt}):Vt]})}const Ie={...ot,backgroundImage:Ke,backgroundSize:xt,backgroundRepeat:Zt,...At,borderRadius:Be(e==null?void 0:e.borderRadius),padding:Hl(e==null?void 0:e.padding),...ce(M,e==null?void 0:e.margin,K==="100%"),width:B,maxWidth:"100%",minWidth:0,height:Je?`${Y}px`:void 0,overflow:y?"auto":void 0,boxSizing:"border-box",...y?{}:{display:"flow-root"},...me?{display:"inline-block"}:{},...Ge,...It},Ze=`container-block${y?" container-block-overflow":""}${te}${oe?` ${oe}`:""}`,Xe=U?{...Ie,...q.style,...me?{display:"inline-block"}:{}}:Ie;if(!n){const ue=m.jsx(Z,{className:Ze,"aria-label":O,id:j,...Lt,...q,style:Xe});return m.jsxs(m.Fragment,{children:[Q&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),me?m.jsx("div",{className:Pe,style:me,children:ue}):ue]})}const qt=m.jsx(Z,{className:Ze,"aria-label":O,id:j,...Lt,...q,style:Xe,children:n});return m.jsxs(m.Fragment,{children:[Q&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),me?m.jsx("div",{className:Pe,style:me,children:qt}):qt]})}const H1=C({style:D1.shape.style,responsive:Ye,props:C({childrenIds:re($()).optional().nullable(),fullWidth:L().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:D([g().min(0),le("auto")]).optional().nullable(),heightMobile:D([g().min(0),le("auto")]).optional().nullable(),overflow:L().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),animation:C({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:C({enabled:L(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:T(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()});function eu({style:e,props:t,responsive:n,blockId:r}){var l,s,u,c;const o=(t==null?void 0:t.childrenIds)??[],a=(s=(l=n==null?void 0:n.tablet)==null?void 0:l.props)==null?void 0:s.heightTablet,i=(c=(u=n==null?void 0:n.mobile)==null?void 0:u.props)==null?void 0:c.heightMobile;return m.jsx(F1,{style:e,blockId:r,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)??a??void 0,heightMobile:(t==null?void 0:t.heightMobile)??i??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(h=>m.jsx(Me,{id:h},h))})}const G1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),W1=$().regex(/^rgba?\([^\)]+\)$/i),U1=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Z1=le("transparent"),bn=D([G1,W1,U1,Z1]).nullable().optional(),q1=T(["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(),V1=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),No=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Eo=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Y1=$().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(),K1=C({color:bn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable(),J1=C({position:T(["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:L().optional().default(!0),selector:$().optional().default(""),showCloseIcon:L().optional(),iconCloseColor:bn,closeIconPosition:T(["left","center","right"]).optional(),closeIconPaddingTop:g().optional(),closeIconPaddingLeft:g().optional(),closeIconPaddingRight:g().optional(),bannerSubType:$().optional()}).passthrough().optional().nullable(),X1=re(C({id:$(),name:$(),type:$().optional().default("text"),value:$().optional()})).optional().nullable(),Q1=C({formFields:X1,backdropColor:bn.default(null),borderColor:bn.default(null),borderRadius:g().optional().nullable(),canvasColor:bn.default(null),textColor:bn,hostTheme:T(["follow","light"]).optional().nullable(),fontFamily:q1,childrenIds:re($()).optional().nullable(),maxWidth:$().default(""),maxHeight:$().default(""),top:$().default(""),left:$().default(""),padding:No,margin:Eo,maxWidthTablet:$().optional().nullable(),maxWidthMobile:$().optional().nullable(),maxHeightTablet:$().optional().nullable(),maxHeightMobile:$().optional().nullable(),paddingTablet:No,paddingMobile:No,marginTablet:Eo,marginMobile:Eo,borderWidth:V1,boxShadow:K1,behaviour:J1,linkHref:$().optional().default(""),backgroundImage:$().default("").nullable().optional(),backgroundSize:Y1,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable()}),ek=()=>null,tk="INTER";function nk(e){return e||tk}function dn(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function vr(e,t,n){const r=e??{},o=r[t];if(n==="desktop")return dn(o)?o:null;const a=r[`${t}Tablet`];if(n==="tablet")return dn(a)?a:dn(o)?o:null;const i=r[`${t}Mobile`];return dn(i)?i:dn(a)?a:dn(o)?o:null}function Mo(e,t){return{maxWidth:vr(e,"maxWidth",t)??null,maxHeight:vr(e,"maxHeight",t)??null,padding:vr(e,"padding",t)??null,margin:vr(e,"margin",t)??null}}function rk(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function ok(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Po(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:${rk(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${ok(t.margin)};}`),n.join("")}function ak(e,t,n){const r=`.${e}`,o={width:`${r} .ahd-layout-sizer`,table:`${r} .ahd-layout-table`,padding:`${r} .email-layout-content`,margin:`${r} .email-layout-content`},a=Mo(t,"desktop"),i=Po(o,{...a,maxWidth:a.maxWidth??n??null}),l=Po(o,Mo(t,"tablet")),s=Po(o,Mo(t,"mobile")),u=(c,h)=>h?`@media (max-width:${c}px){${h}}@container ahd-page (max-width:${c}px){${h}}`:"";return[i,u(Ue,l),u(Ve,s)].filter(Boolean).join("")}const ik="Made with Page Pilot",lk="https://pagepilot.fabbuilder.com";let sk=0;function ck(e){switch(nk(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 uk(e){const{borderColor:t,borderWidth:n,borderRadius:r}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const o=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),a=r??0,i=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:a?i(a):void 0};if(o){const s=z(e.canvasColor,"canvas"),u=!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:`${u}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:a?i(a):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:a?i(a):void 0}}function dk(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Gl(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e,l=dk(t);return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${l}`}}function hk(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 fk(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 pk(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function gk(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=pk(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function mk({position:e,color:t}){const o="20px",a={position:"absolute",background:t,pointerEvents:"none",zIndex:2},i="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",u="polygon(0 0, 0 100%, 100% 50%)";let c;switch(e){case"top":c={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:i};break;case"top-left":c={top:-8,left:o,width:16,height:8,clipPath:i};break;case"top-right":c={top:-8,right:o,width:16,height:8,clipPath:i};break;case"bottom":c={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":c={bottom:-8,left:o,width:16,height:8,clipPath:l};break;case"bottom-right":c={bottom:-8,right:o,width:16,height:8,clipPath:l};break;case"left":c={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":c={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:u};break;default:return null}return m.jsx("div",{"aria-hidden":!0,style:{...a,...c}})}function bk({color:e,position:t,paddingTop:n,paddingLeft:r,paddingRight:o}){const a=z(e,"closeIcon"),i=t??"right",l=typeof n=="number"?n:2,c=i==="left"?{left:typeof r=="number"?r:2}:i==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof o=="number"?o:2};return m.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...c,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none",stroke:a},children:[m.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),m.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function xk(){const e=z(null,"brandingText");return m.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:e,marginTop:8},children:m.jsx("a",{href:lk,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:ik})})}function vk(e){var pe,Le,ee,Y,K,B,J,me,ke,be,ge,Ce,oe,Pe,De,xe,Fe,He;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",r=n.includes("page")?"page":"",o=n.includes("app-banner"),a=n.includes("demo"),i=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),u=l||s||a,c=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],h=$m(),d=(pe=ek())==null?void 0:pe.getState(),f=(Y=(ee=(Le=d==null?void 0:d.appBanner)==null?void 0:Le.view)==null?void 0:ee.record)==null?void 0:Y.type,p=h??f,b=r==="page"||h==="page",x=o&&(p==="floater"||((K=e.behaviour)==null?void 0:K.bannerSubType)==="floater"||c.includes((B=e.behaviour)==null?void 0:B.position)),w=o&&(p==="modal"||((J=e.behaviour)==null?void 0:J.bannerSubType)==="modal"),k=(u||x||w)&&((me=e.behaviour)==null?void 0:me.showCloseIcon)!==!1,v=u&&!0,_=o&&e.linkHref?e.linkHref:null,y=V.useMemo(()=>`ahd-layout-${sk+=1}`,[]),I=ak(y,e,b||i?"100%":o&&!x?"900px":"320px"),R=(o||a)&&!!e.backgroundImage;e.borderRadius;const N=e.borderRadius??0,P=Q=>typeof Q=="number"?`${Q}px`:`${Q.topLeft}px ${Q.topRight}px ${Q.bottomRight}px ${Q.bottomLeft}px`,O=(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)(N),j=Q=>_?m.jsx("a",{href:_,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:Q}):Q,F=uk({...e,borderColor:z(e.borderColor,"borderAdaptive")??null}),H=o&&!!((ke=e.boxShadow)!=null&&ke.color)&&!!e.boxShadow.inset,W=o&&!H?Gl(e.boxShadow):{},U=H?Gl(e.boxShadow):{},X=fk(((be=e.behaviour)==null?void 0:be.position)??"right"),Z=u&&!x&&!w&&((ge=e.behaviour)==null?void 0:ge.isCaret)!==!1,q=z(e.canvasColor,"canvas"),ae=gk(q,X),$e=(((Ce=e.margin)==null?void 0:Ce.left)??0)+(((oe=e.margin)==null?void 0:oe.right)??0),ce=$e>0?`calc(100% - ${$e}px)`:"100%";return j(m.jsxs("div",{className:y,...e.hostTheme==="light"?{"data-pp-theme":"light"}:null,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[I&&m.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),m.jsx("div",{style:{color:z(e.textColor,"layoutText"),fontFamily:ck(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:m.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...w||x?null:{maxWidth:"100%"}},children:[Z&&m.jsx(mk,{position:X,color:ae}),m.jsxs("div",{style:{position:"relative",borderRadius:P(N),...O?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...W},children:[H&&m.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:P(N),zIndex:1,...U}}),k&&m.jsx(bk,{color:(Pe=e.behaviour)==null?void 0:Pe.iconCloseColor,position:(De=e.behaviour)==null?void 0:De.closeIconPosition,paddingTop:(xe=e.behaviour)==null?void 0:xe.closeIconPaddingTop,paddingLeft:(Fe=e.behaviour)==null?void 0:Fe.closeIconPaddingLeft,paddingRight:(He=e.behaviour)==null?void 0:He.closeIconPaddingRight}),m.jsx("table",{width:"100%",className:"ahd-layout-table",...de(e.canvasColor,e.backgroundImage,"canvas"),style:{width:ce,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",...w||x?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...hk(q,e.backgroundImage,o?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...F,borderRadius:P(N),overflow:O?"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:m.jsx("tbody",{children:m.jsx("tr",{style:{width:"100%"},children:m.jsxs("td",{className:"email-layout-content",children:[t.map(Q=>m.jsx(Me,{id:Q},Q)),v&&m.jsx(xk,{})]})})})})]})]})})]}))}const kk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),wk=$().regex(/^rgba?\([^\)]+\)$/i),Sk=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),$k=le("transparent"),kr=D([kk,wk,Sk,$k]).nullable().optional(),_k=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ck=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ak=T(["left","center","right"]).optional().nullable(),Gr={min:1,max:20},Wr={min:4,max:48},tu=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),yk=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ik=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,On=(e,t,n)=>Math.min(Math.max(e,t),n),Wl=e=>e?tu(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Rk=C({style:C({backgroundColor:kr,textAlign:Ak,padding:_k,margin:Ck}).optional().nullable(),props:C({stepperType:T(["dots","numeric","both"]).optional().nullable(),totalDots:g().min(Gr.min).max(Gr.max).optional().nullable(),activeIndex:g().min(1).optional().nullable(),activeColor:kr,inactiveColor:kr,dotSize:g().min(Wr.min).max(Wr.max).optional().nullable(),dotSpacing:g().min(0).max(40).optional().nullable(),numericColor:kr,numericFontSize:g().min(8).max(48).optional().nullable(),numericPosition:T(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),vt={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Tk({style:e,props:t}){const r=si()==="mobile",a=typeof window<"u"&&window.location.pathname.includes("page")&&r,i=On((t==null?void 0:t.totalDots)??vt.totalDots,Gr.min,Gr.max),l=On((t==null?void 0:t.dotSize)??vt.dotSize,Wr.min,Wr.max),s=On((t==null?void 0:t.dotSpacing)??vt.dotSpacing,0,40),u=(t==null?void 0:t.activeIndex)??vt.activeIndex,c=On(u,1,i),h=se((t==null?void 0:t.activeColor)??vt.activeColor),d=se((t==null?void 0:t.inactiveColor)??vt.inactiveColor),f=(t==null?void 0:t.stepperType)??vt.stepperType,p=f==="numeric"||f==="both",b=f==="dots"||f==="both",x=(t==null?void 0:t.numericColor)??vt.numericColor,w=se(x),k=On((t==null?void 0:t.numericFontSize)??vt.numericFontSize,8,48),S=(t==null?void 0:t.numericPosition)??vt.numericPosition,_={...Wl((e==null?void 0:e.backgroundColor)??void 0),padding:yk(e==null?void 0:e.padding,a),margin:Ik(e==null?void 0:e.margin,a),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},y=p&&b&&(S==="above"||S==="below"),A={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=`${c}/${i}`,N=tu(x),P={fontSize:`${k}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...N?{backgroundImage:w,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:w??void 0}},M=()=>p?m.jsx("span",{style:P,children:R}):null,O=()=>m.jsx("div",{style:I,"aria-hidden":"true",children:Array.from({length:i}).map((j,F)=>{const H=F===c-1,W={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:H?"scale(1.1)":"scale(1)",...Wl(H?h:d)};return m.jsx("span",{style:W,"data-active":H?"true":"false"},F)})});return m.jsx("div",{className:"stepper-block",style:_,role:"progressbar","aria-valuenow":c,"aria-valuemin":1,"aria-valuemax":i,"aria-valuetext":`Step ${c} of ${i}`,"aria-label":`Step ${c} of ${i}`,children:m.jsxs("div",{style:A,children:[p&&S==="above"&&M(),p&&S==="left"&&M(),b&&O(),p&&S==="right"&&M(),p&&S==="below"&&M()]})})}const Nk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Ek=$().regex(/^rgba?\([^\)]+\)$/i),Mk=le("transparent"),Oo=D([Nk,Ek,Mk]).nullable().optional(),nu=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Pk=nu,Ok=T(["left","center","right"]).optional().nullable(),Lk=["disc","circle","square","dash","arrow","check","cross","none"],zk=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Ul={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},Bk=C({text:$()}),jk=C({style:C({color:Oo,backgroundColor:Oo,textAlign:Ok,fontSize:g().min(1).max(200).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:D([g(),$()]).optional().nullable(),lineHeight:g().min(1).max(3).optional().nullable(),padding:nu,margin:Pk}).optional().nullable(),props:C({listType:T(["unordered","ordered"]).optional().nullable(),marker:T([...Lk,...zk]).optional().nullable(),numberSuffix:Tc(e=>e===""?void 0:e,T([".",")"]).optional().nullable()),startNumber:g().min(0).max(9999).optional().nullable(),markerColor:Oo,markerSize:g().min(1).max(200).optional().nullable(),itemGap:g().min(0).max(64).optional().nullable(),items:re(Bk).optional().nullable()}).optional().nullable(),responsive:Ye}),Bt={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"}]},Zl=(e,t,n)=>Math.min(Math.max(e,t),n),ql=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Vl=e=>{if(e<=0)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let n="",r=e;for(const[o,a]of t)for(;r>=o;)n+=a,r-=o;return n},Yl=e=>{let t=e,n="";for(;t>0;){const r=(t-1)%26;n=String.fromCharCode(97+r)+n,t=Math.floor((t-1)/26)}return n||"a"},Dk=(e,t,n,r)=>{const o=n+t;switch(e){case"decimal-zero":return`${String(o).padStart(2,"0")}${r}`;case"lower-alpha":return`${Yl(o)}${r}`;case"upper-alpha":return`${Yl(o).toUpperCase()}${r}`;case"lower-roman":return`${Vl(o).toLowerCase()}${r}`;case"upper-roman":return`${Vl(o)}${r}`;case"decimal":default:return`${o}${r}`}};function Fk({style:e,props:t,renderItemText:n}){var k;const o=((t==null?void 0:t.listType)??Bt.listType)==="ordered",a=(t==null?void 0:t.marker)??(o?"decimal":Bt.marker),i=(t==null?void 0:t.numberSuffix)??Bt.numberSuffix,l=(t==null?void 0:t.startNumber)??Bt.startNumber,s=(t==null?void 0:t.markerColor)??Bt.markerColor,u=Zl((t==null?void 0:t.markerSize)??Bt.markerSize,1,200),c=Zl((t==null?void 0:t.itemGap)??Bt.itemGap,0,64),h=(k=t==null?void 0:t.items)!=null&&k.length?t.items:Bt.items.map(S=>({...S})),d=z(e==null?void 0:e.color,"listText"),f=(e==null?void 0:e.textAlign)??"left",p={backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:ql(e==null?void 0:e.padding),margin:ql(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box",color:d,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},b={textAlign:"left"},x={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:z(s,"listText"),fontSize:`${u}px`},w=S=>a==="none"?null:o?Dk(a,S,l,i):Ul[a]??Ul.disc;return m.jsx("div",{className:"list-block",...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:m.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:f==="left"?"100%":"auto",maxWidth:"100%",marginLeft:f==="left"?void 0:"auto",marginRight:f==="center"?"auto":void 0},children:m.jsx("tbody",{children:h.map((S,v)=>{const _=w(v),y=typeof S.text=="string"&&S.text.indexOf("{{")!==-1;return m.jsxs("tr",{children:[a!=="none"&&m.jsx("td",{style:x,children:_}),m.jsx("td",{style:{...b,paddingBottom:v<h.length-1?`${c}px`:0,width:f==="left"?"100%":void 0},children:(n==null?void 0:n(S,v))??(y?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:ui(S.text)}}):S.text)})]},v)})})})})}const Hk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Gk=$().regex(/^rgba?\([^\)]+\)$/i),Wk=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Uk=le("transparent"),Zk=D([Hk,Gk,Wk,Uk]).nullable().optional(),qk=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Vk=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ga=C({style:C({backgroundColor:Zk,padding:qk,margin:Vk}).optional().nullable(),props:C({direction:T(["row","column"]).optional().nullable(),directionTablet:T(["row","column"]).optional().nullable(),directionMobile:T(["row","column"]).optional().nullable(),gap:g().optional().nullable(),gapTablet:g().optional().nullable(),gapMobile:g().optional().nullable(),alignment:T(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:T(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:T(["start","center","end","space-between"]).optional().nullable(),wrap:L().optional().nullable(),ariaLabel:$().optional().nullable()}).optional().nullable(),responsive:Ye}),wr={direction:"row",gap:12,alignment:"start",wrap:!0},Ur={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},Yk=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Kk=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Kl(e,t,n,r){const o=e==="row"?Ur[t]:"flex-start",a=e==="column"?Ur[t]:"center";return`flex-direction:${e}!important;justify-content:${o}!important;align-items:${a}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${r}px!important;`}let Jk=0;function Xk({style:e,buttons:t,props:n}){const r=(n==null?void 0:n.direction)??wr.direction,o=(n==null?void 0:n.directionTablet)??r,a=(n==null?void 0:n.directionMobile)??o,i=(n==null?void 0:n.gap)??wr.gap,l=(n==null?void 0:n.gapTablet)??i,s=(n==null?void 0:n.gapMobile)??l,u=(n==null?void 0:n.alignment)??wr.alignment,c=(n==null?void 0:n.alignmentTablet)??u,h=(n==null?void 0:n.alignmentMobile)??c,d=(n==null?void 0:n.wrap)??wr.wrap,f=(n==null?void 0:n.ariaLabel)??void 0,p=r,b=u,x=i,w=e==null?void 0:e.margin,k=((w==null?void 0:w.left)??0)+((w==null?void 0:w.right)??0),S={display:"flex",flexDirection:p,gap:`${x}px`,justifyContent:p==="row"?Ur[b]:"flex-start",alignItems:p==="column"?Ur[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:Yk(e==null?void 0:e.padding),margin:Kk(e==null?void 0:e.margin),boxSizing:"border-box",width:k>0?`max(0px, calc(100% - ${k}px))`:"100%"},v=V.useMemo(()=>`ahd-bg-${Jk+=1}`,[]),_=V.useMemo(()=>{const y=`.${v}`;let A="";return(o!==r||c!==u||l!==i)&&(A+=`@media (max-width:${Ue}px){${y}{${Kl(o,c,d,l)}}}`),(a!==o||h!==c||s!==l)&&(A+=`@media (max-width:${Ve}px){${y}{${Kl(a,h,d,s)}}}`),A},[v,r,o,a,u,c,h,i,l,s,d]);return m.jsxs("div",{className:`button-group ${v}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,role:"group","aria-label":f,children:[_&&m.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),t]})}const Qk=ga.shape.props.unwrap().unwrap().shape,ew=C({style:ga.shape.style,props:C({...Qk,childrenIds:re($()).optional().nullable()}).optional().nullable(),responsive:ga.shape.responsive});function tw({style:e,props:t}){const{childrenIds:n,...r}=t??{},o=(n??[]).map(a=>m.jsx(Me,{id:a},a));return m.jsx(Xk,{style:e,props:r,buttons:o})}const nw=C({titleChildrenIds:re($()).optional().nullable(),contentChildrenIds:re($()).optional().nullable()}),rw=C({responsive:Ye,style:C({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:D([g(),$(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),marginBottom:g().optional().nullable(),padding:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:C({items:re(nw).min(1).max(25).optional().nullable(),iconColor:$().optional().nullable(),iconSize:g().optional().nullable(),defaultOpen:L().optional().nullable(),activeBorderColor:$().optional().nullable()}).optional().nullable()});function ow(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 Jl=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function aw(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),r=e.split(" ").map(o=>Math.max(0,parseFloat(o)-n));return r.length===1?`${r[0]}px`:r.map(o=>`${o}px`).join(" ")}function iw({style:e,props:t}){const n=V.useMemo(()=>{const A=t==null?void 0:t.items;return!A||A.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:A[0].titleChildrenIds??[],contentChildrenIds:A[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),r=V.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),o=`${r}-content`,a=e==null?void 0:e.padding,i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s=t==null?void 0:t.activeBorderColor,u=e==null?void 0:e.borderColor,c=se(s),h=se(u),d=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),f=z(null,"surface"),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=ow(e==null?void 0:e.borderRadius),w=Jl(u),k=Jl(s),S=w||k,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:x,margin:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),S?(v.padding=b,w?v.background=z(u,"borderAdaptive"):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b)):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b);const _={background:d??(S?f:void 0),borderRadius:S?aw(x,p):void 0,padding:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,overflow:S&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},y=[];return s&&(k?y.push(`#${r}:checked + .email-accordion-root { background:${z(s,"borderAdaptive")}!important; border-style:none!important; padding:${b}!important; }`):y.push(`#${r}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${c}!important; border-width:${b}!important; ${S?"padding:0!important;":""} }`)),m.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[m.jsx("style",{children:`
236
+ `.trim(),I=()=>({minWidth:0,boxSizing:"border-box"});return m.jsxs("div",{className:`grid-block ${f}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),m.jsx("div",{className:"grid-block-inner",style:_,children:p.map((R,E)=>m.jsx("div",{className:`grid-cell ${f}-cell-${E}`,style:I(),children:R.childrenIds.map(O=>m.jsx(Pe,{id:O},O))},E))})]})}const E1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),N1=$().regex(/^rgba?\([^\)]+\)$/i),M1=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),P1=le("transparent"),xa=Oc(e=>typeof e=="string"?e.trim():e,F([E1,N1,M1,P1]).nullable().optional()),O1=$().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),L1=$().includes("{{"),z1=F([O1,L1]).nullable().optional(),j1=$().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(),B1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),D1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),F1=F([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),H1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ql=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ou(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function G1(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:ou(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function W1(e,t){const n=e&&ou(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function U1(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 Z1=A({color:xa,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function q1(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 V1(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${q1(t)}`}}function Y1(e,t){const n=Math.max((t==null?void 0:t.top)||0,(t==null?void 0:t.right)||0,(t==null?void 0:t.bottom)||0,(t==null?void 0:t.left)||0);if(e==null)return;if(typeof e=="number")return`${Math.max(0,e-n)}px`;const r=Math.max(0,(e.topLeft||0)-n),o=Math.max(0,(e.topRight||0)-n),a=Math.max(0,(e.bottomRight||0)-n),i=Math.max(0,(e.bottomLeft||0)-n);return`${r}px ${o}px ${a}px ${i}px`}const K1=A({style:A({backgroundColor:xa,backgroundImage:z1,backgroundSize:j1,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable(),borderColor:xa,borderRadius:F1,padding:B1,margin:D1,borderWidth:H1,boxShadow:Z1}).optional().nullable(),props:A({fullWidth:L().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:F([g().min(0),le("auto")]).optional().nullable(),heightMobile:F([g().min(0),le("auto")]).optional().nullable(),overflow:L().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),hoverEffect:At}).optional().nullable()}),fn={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};function J1({style:e,props:t,children:n,blockId:r}){const o=fi(),a=(t==null?void 0:t.fullWidth)??fn.fullWidth,i=(t==null?void 0:t.widthType)??fn.widthType,l=(t==null?void 0:t.widthTypeTablet)??null,s=(t==null?void 0:t.widthTypeMobile)??null,u=l??i,c=s??u,h=(t==null?void 0:t.width)??fn.width,d=(t==null?void 0:t.widthUnit)??fn.widthUnit,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=f??h,x=p??b,w=(t==null?void 0:t.height)??null,k=(t==null?void 0:t.heightTablet)??null,S=(t==null?void 0:t.heightMobile)??null,v=k==="auto"?null:k??w,_=S==="auto"?null:S??(k==="auto"?null:v),y=(t==null?void 0:t.overflow)===!0,C=(t==null?void 0:t.alignment)??fn.alignment,I=(t==null?void 0:t.alignmentTablet)??null,R=(t==null?void 0:t.alignmentMobile)??null,E=I??C,O=R??E,M=C,P=(t==null?void 0:t.ariaLabel)??void 0,B=(t==null?void 0:t.elementId)??void 0,D=!!(t!=null&&t.showLink),H=(t==null?void 0:t.linkHref)??null,G=typeof H=="string"?H.trim():H,W=D&&typeof G=="string"&&G.length>0,J=(t==null?void 0:t.linkTarget)??"_blank",X=W?"a":(t==null?void 0:t.tag)??"div",q=W?{href:G,target:J,...J==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},te=(ce,be,tt=!1)=>{if(tt&&a)return"100%";switch(ce){case"fill":return"100%";case"fixed":return`${be}${d}`;case"fit":default:return"auto"}},$e=ce=>((ce==null?void 0:ce.left)??0)+((ce==null?void 0:ce.right)??0),Ce=(ce,be,tt)=>{const at=(be==null?void 0:be.top)??0,Tt=(be==null?void 0:be.bottom)??0;if(tt)return{marginTop:at,marginBottom:Tt,marginLeft:(be==null?void 0:be.left)??0,marginRight:(be==null?void 0:be.right)??0};switch(ce){case"center":return{marginTop:at,marginBottom:Tt,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:at,marginBottom:Tt,marginLeft:"auto",marginRight:(be==null?void 0:be.right)??0};case"left":default:return{marginTop:at,marginBottom:Tt,marginLeft:(be==null?void 0:be.left)??0,marginRight:"auto"}}},xe=(ce,be)=>{const tt=$e(be);return tt<=0?ce:ce==="100%"?`calc(100% - ${tt}px)`:ce},ve=i,ee=h,Y=w,K=te(ve,ee,o==="desktop"),j=xe(K,e==null?void 0:e.margin),pe=K==="100%"?null:{textAlign:M==="left"?"left":M==="right"?"right":"center"},ke=(ce,be,tt)=>te(be,tt)==="100%"||ce==="left"?"left":ce==="right"?"right":"center",ge=l!=null||s!=null||f!=null||p!=null||k!=null||S!=null||I!=null||R!=null,fe=(t==null?void 0:t.hoverEffect)??fn.hoverEffect,Ie=!!(fe!=null&&fe.enabled),ae=(ge||Ie)&&r?`ahd-cb-${r}`:"",Oe=ae?`${ae}-align`:"",De=v!=null?`height: ${v}px !important; --ahd-cb-h: ${v}px !important;`:k==="auto"?"height: auto !important; --ahd-cb-h: auto !important;":"",me=_!=null?`height: ${_}px !important; --ahd-cb-h: ${_}px !important;`:S==="auto"||S==null&&k==="auto"?"height: auto !important; --ahd-cb-h: auto !important;":"",Fe=ge?`
237
+ ${_t} { .${ae} { width: ${xe(te(u,b),e==null?void 0:e.margin)} !important; ${De} max-width: 100% !important; } }
238
+ ${Qe} { .${ae} { width: ${xe(te(c,x),e==null?void 0:e.margin)} !important; ${me} max-width: 100% !important; } }
239
+ ${_t} { .${Oe} { text-align: ${ke(E,u,b)} !important; } }
240
+ ${Qe} { .${Oe} { text-align: ${ke(O,c,x)} !important; } }
241
+ `.trim():null,He=Lt(ae,fe,{themedBorderColor:z(fe==null?void 0:fe.borderColor,"borderAdaptive")}),Q=[Fe,He].filter(Boolean).join(`
242
+ `)||null,je=ce=>{if(ce!=null)return typeof ce=="number"?`${ce}px`:`${ce.topLeft}px ${ce.topRight}px ${ce.bottomRight}px ${ce.bottomLeft}px`},ze=(e==null?void 0:e.borderColor)??null,ie=(e==null?void 0:e.borderWidth)??null,yt=U1(z(ze,"borderAdaptive"),ie),Ge=V1(e==null?void 0:e.boxShadow),et=z(e==null?void 0:e.backgroundColor,"bgAdaptive")??"",ot=G1(et),zt=(e==null?void 0:e.backgroundSize)==="none",It=!zt&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,rt=W1(et,It),jt=ue(e==null?void 0:e.backgroundColor,It,"bgAdaptive"),xt=zt?void 0:(e==null?void 0:e.backgroundSize)??void 0,Vt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",Pn=ze&&(ze.includes("linear-gradient")||ze.includes("radial-gradient")||ze.includes("repeating-linear-gradient")),Ke=Y!=null,Rt=Ke?{"--ahd-cb-h":`${Y}px`}:{},ne=Ke?" container-block-has-height":"";if(Pn){const ce={...yt,borderRadius:je(e==null?void 0:e.borderRadius),width:j,maxWidth:"100%",minWidth:0,height:Ke?`${Y}px`:void 0,boxSizing:"border-box",...Ce(M,e==null?void 0:e.margin,K==="100%"),...pe?{display:"inline-block"}:{},...Ge,...Rt},be={...ot,backgroundImage:rt,backgroundSize:xt,backgroundRepeat:Vt,borderRadius:Y1((e==null?void 0:e.borderRadius)??0,ie),overflow:y?"auto":"hidden",padding:ql(e==null?void 0:e.padding),width:"100%",height:Ke?"100%":void 0,boxSizing:"border-box"},tt=`container-block${y?" container-block-overflow":""}${ne}${ae?` ${ae}`:""}`,at=`container-block-inner${y?" container-block-overflow":""}`,Tt=W?{...ce,...q.style,...pe?{display:"inline-block"}:{}}:ce,Kt=m.jsx(X,{className:tt,"aria-label":P,id:B,...jt,...q,style:Tt,children:m.jsx("div",{className:at,style:be,children:n})});return m.jsxs(m.Fragment,{children:[Q&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),pe?m.jsx("div",{className:Oe,style:pe,children:Kt}):Kt]})}const Re={...ot,backgroundImage:rt,backgroundSize:xt,backgroundRepeat:Vt,...yt,borderRadius:je(e==null?void 0:e.borderRadius),padding:ql(e==null?void 0:e.padding),...Ce(M,e==null?void 0:e.margin,K==="100%"),width:j,maxWidth:"100%",minWidth:0,height:Ke?`${Y}px`:void 0,overflow:y?"auto":void 0,boxSizing:"border-box",...y?{}:{display:"flow-root"},...pe?{display:"inline-block"}:{},...Ge,...Rt},Ze=`container-block${y?" container-block-overflow":""}${ne}${ae?` ${ae}`:""}`,Je=W?{...Re,...q.style,...pe?{display:"inline-block"}:{}}:Re;if(!n){const ce=m.jsx(X,{className:Ze,"aria-label":P,id:B,...jt,...q,style:Je});return m.jsxs(m.Fragment,{children:[Q&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),pe?m.jsx("div",{className:Oe,style:pe,children:ce}):ce]})}const Yt=m.jsx(X,{className:Ze,"aria-label":P,id:B,...jt,...q,style:Je,children:n});return m.jsxs(m.Fragment,{children:[Q&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),pe?m.jsx("div",{className:Oe,style:pe,children:Yt}):Yt]})}const X1=A({style:K1.shape.style,responsive:Ye,props:A({childrenIds:oe($()).optional().nullable(),fullWidth:L().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:F([g().min(0),le("auto")]).optional().nullable(),heightMobile:F([g().min(0),le("auto")]).optional().nullable(),overflow:L().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:At}).optional().nullable()});function au({style:e,props:t,responsive:n,blockId:r}){var l,s,u,c;const o=(t==null?void 0:t.childrenIds)??[],a=(s=(l=n==null?void 0:n.tablet)==null?void 0:l.props)==null?void 0:s.heightTablet,i=(c=(u=n==null?void 0:n.mobile)==null?void 0:u.props)==null?void 0:c.heightMobile;return m.jsx(J1,{style:e,blockId:r,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)??a??void 0,heightMobile:(t==null?void 0:t.heightMobile)??i??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(h=>m.jsx(Pe,{id:h},h))})}const Q1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),ek=$().regex(/^rgba?\([^\)]+\)$/i),tk=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),nk=le("transparent"),kn=F([Q1,ek,tk,nk]).nullable().optional(),rk=T(["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(),ok=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Oo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Lo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ak=$().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(),ik=A({color:kn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable(),lk=A({position:T(["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:L().optional().default(!0),selector:$().optional().default(""),showCloseIcon:L().optional(),iconCloseColor:kn,closeIconPosition:T(["left","center","right"]).optional(),closeIconPaddingTop:g().optional(),closeIconPaddingLeft:g().optional(),closeIconPaddingRight:g().optional(),bannerSubType:$().optional()}).passthrough().optional().nullable(),sk=oe(A({id:$(),name:$(),type:$().optional().default("text"),value:$().optional()})).optional().nullable(),ck=A({formFields:sk,backdropColor:kn.default(null),borderColor:kn.default(null),borderRadius:g().optional().nullable(),canvasColor:kn.default(null),textColor:kn,hostTheme:T(["follow","light"]).optional().nullable(),fontFamily:rk,childrenIds:oe($()).optional().nullable(),maxWidth:$().default(""),maxHeight:$().default(""),top:$().default(""),left:$().default(""),padding:Oo,margin:Lo,maxWidthTablet:$().optional().nullable(),maxWidthMobile:$().optional().nullable(),maxHeightTablet:$().optional().nullable(),maxHeightMobile:$().optional().nullable(),paddingTablet:Oo,paddingMobile:Oo,marginTablet:Lo,marginMobile:Lo,borderWidth:ok,boxShadow:ik,behaviour:lk,linkHref:$().optional().default(""),backgroundImage:$().default("").nullable().optional(),backgroundSize:ak,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable()}),uk=()=>null,dk="INTER";function hk(e){return e||dk}function pn(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function $r(e,t,n){const r=e??{},o=r[t];if(n==="desktop")return pn(o)?o:null;const a=r[`${t}Tablet`];if(n==="tablet")return pn(a)?a:pn(o)?o:null;const i=r[`${t}Mobile`];return pn(i)?i:pn(a)?a:pn(o)?o:null}function zo(e,t){return{maxWidth:$r(e,"maxWidth",t)??null,maxHeight:$r(e,"maxHeight",t)??null,padding:$r(e,"padding",t)??null,margin:$r(e,"margin",t)??null}}function fk(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function pk(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function jo(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:${fk(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${pk(t.margin)};}`),n.join("")}function gk(e,t,n){const r=`.${e}`,o={width:`${r} .ahd-layout-sizer`,table:`${r} .ahd-layout-table`,padding:`${r} .email-layout-content`,margin:`${r} .email-layout-content`},a=zo(t,"desktop"),i=jo(o,{...a,maxWidth:a.maxWidth??n??null}),l=jo(o,zo(t,"tablet")),s=jo(o,zo(t,"mobile")),u=(c,h)=>h?`@media (max-width:${c}px){${h}}@container ahd-page (max-width:${c}px){${h}}`:"";return[i,u(Ue,l),u(Ve,s)].filter(Boolean).join("")}const mk="Made with Page Pilot",bk="https://pagepilot.fabbuilder.com";let xk=0;function vk(e){switch(hk(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 kk(e){const{borderColor:t,borderWidth:n,borderRadius:r}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const o=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),a=r??0,i=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:a?i(a):void 0};if(o){const s=z(e.canvasColor,"canvas"),u=!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:`${u}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:a?i(a):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:a?i(a):void 0}}function wk(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Vl(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e,l=wk(t);return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${l}`}}function Sk(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 $k(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 _k(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function Ck(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=_k(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function Ak({position:e,color:t}){const o="20px",a={position:"absolute",background:t,pointerEvents:"none",zIndex:2},i="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",u="polygon(0 0, 0 100%, 100% 50%)";let c;switch(e){case"top":c={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:i};break;case"top-left":c={top:-8,left:o,width:16,height:8,clipPath:i};break;case"top-right":c={top:-8,right:o,width:16,height:8,clipPath:i};break;case"bottom":c={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":c={bottom:-8,left:o,width:16,height:8,clipPath:l};break;case"bottom-right":c={bottom:-8,right:o,width:16,height:8,clipPath:l};break;case"left":c={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":c={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:u};break;default:return null}return m.jsx("div",{"aria-hidden":!0,style:{...a,...c}})}function yk({color:e,position:t,paddingTop:n,paddingLeft:r,paddingRight:o}){const a=z(e,"closeIcon"),i=t??"right",l=typeof n=="number"?n:2,c=i==="left"?{left:typeof r=="number"?r:2}:i==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof o=="number"?o:2};return m.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...c,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none",stroke:a},children:[m.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),m.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function Ik(){const e=z(null,"brandingText");return m.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:e,marginTop:8},children:m.jsx("a",{href:bk,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:mk})})}function Rk(e){var xe,ve,ee,Y,K,j,V,pe,ke,ge,fe,Ie,ae,Oe,De,me,Fe,He;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",r=n.includes("page")?"page":"",o=n.includes("app-banner"),a=n.includes("demo"),i=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),u=l||s||a,c=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],h=Vm(),d=(xe=uk())==null?void 0:xe.getState(),f=(Y=(ee=(ve=d==null?void 0:d.appBanner)==null?void 0:ve.view)==null?void 0:ee.record)==null?void 0:Y.type,p=h??f,b=r==="page"||h==="page",x=o&&(p==="floater"||((K=e.behaviour)==null?void 0:K.bannerSubType)==="floater"||c.includes((j=e.behaviour)==null?void 0:j.position)),w=o&&(p==="modal"||((V=e.behaviour)==null?void 0:V.bannerSubType)==="modal"),k=(u||x||w)&&((pe=e.behaviour)==null?void 0:pe.showCloseIcon)!==!1,v=u&&!0,_=o&&e.linkHref?e.linkHref:null,y=U.useMemo(()=>`ahd-layout-${xk+=1}`,[]),I=gk(y,e,b||i?"100%":o&&!x?"900px":"320px"),R=(o||a)&&!!e.backgroundImage;e.borderRadius;const E=e.borderRadius??0,O=Q=>typeof Q=="number"?`${Q}px`:`${Q.topLeft}px ${Q.topRight}px ${Q.bottomRight}px ${Q.bottomLeft}px`,P=(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)(E),B=Q=>_?m.jsx("a",{href:_,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:Q}):Q,D=kk({...e,borderColor:z(e.borderColor,"borderAdaptive")??null}),H=o&&!!((ke=e.boxShadow)!=null&&ke.color)&&!!e.boxShadow.inset,G=o&&!H?Vl(e.boxShadow):{},W=H?Vl(e.boxShadow):{},J=$k(((ge=e.behaviour)==null?void 0:ge.position)??"right"),X=u&&!x&&!w&&((fe=e.behaviour)==null?void 0:fe.isCaret)!==!1,q=z(e.canvasColor,"canvas"),te=Ck(q,J),$e=(((Ie=e.margin)==null?void 0:Ie.left)??0)+(((ae=e.margin)==null?void 0:ae.right)??0),Ce=$e>0?`calc(100% - ${$e}px)`:"100%";return B(m.jsxs("div",{className:y,...e.hostTheme==="light"?{"data-pp-theme":"light"}:null,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[I&&m.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),m.jsx("div",{style:{color:z(e.textColor,"layoutText"),fontFamily:vk(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:m.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...w||x?null:{maxWidth:"100%"}},children:[X&&m.jsx(Ak,{position:J,color:te}),m.jsxs("div",{style:{position:"relative",borderRadius:O(E),...P?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...G},children:[H&&m.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:O(E),zIndex:1,...W}}),k&&m.jsx(yk,{color:(Oe=e.behaviour)==null?void 0:Oe.iconCloseColor,position:(De=e.behaviour)==null?void 0:De.closeIconPosition,paddingTop:(me=e.behaviour)==null?void 0:me.closeIconPaddingTop,paddingLeft:(Fe=e.behaviour)==null?void 0:Fe.closeIconPaddingLeft,paddingRight:(He=e.behaviour)==null?void 0:He.closeIconPaddingRight}),m.jsx("table",{width:"100%",className:"ahd-layout-table",...ue(e.canvasColor,e.backgroundImage,"canvas"),style:{width:Ce,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",...w||x?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...Sk(q,e.backgroundImage,o?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...D,borderRadius:O(E),overflow:P?"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:m.jsx("tbody",{children:m.jsx("tr",{style:{width:"100%"},children:m.jsxs("td",{className:"email-layout-content",children:[t.map(Q=>m.jsx(Pe,{id:Q},Q)),v&&m.jsx(Ik,{})]})})})})]})]})})]}))}const Tk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Ek=$().regex(/^rgba?\([^\)]+\)$/i),Nk=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Mk=le("transparent"),_r=F([Tk,Ek,Nk,Mk]).nullable().optional(),Pk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ok=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Lk=T(["left","center","right"]).optional().nullable(),qr={min:1,max:20},Vr={min:4,max:48},iu=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),zk=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,jk=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,zn=(e,t,n)=>Math.min(Math.max(e,t),n),Yl=e=>e?iu(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Bk=A({style:A({backgroundColor:_r,textAlign:Lk,padding:Pk,margin:Ok}).optional().nullable(),props:A({stepperType:T(["dots","numeric","both"]).optional().nullable(),totalDots:g().min(qr.min).max(qr.max).optional().nullable(),activeIndex:g().min(1).optional().nullable(),activeColor:_r,inactiveColor:_r,dotSize:g().min(Vr.min).max(Vr.max).optional().nullable(),dotSpacing:g().min(0).max(40).optional().nullable(),numericColor:_r,numericFontSize:g().min(8).max(48).optional().nullable(),numericPosition:T(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),vt={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Dk({style:e,props:t}){const r=fi()==="mobile",a=typeof window<"u"&&window.location.pathname.includes("page")&&r,i=zn((t==null?void 0:t.totalDots)??vt.totalDots,qr.min,qr.max),l=zn((t==null?void 0:t.dotSize)??vt.dotSize,Vr.min,Vr.max),s=zn((t==null?void 0:t.dotSpacing)??vt.dotSpacing,0,40),u=(t==null?void 0:t.activeIndex)??vt.activeIndex,c=zn(u,1,i),h=se((t==null?void 0:t.activeColor)??vt.activeColor),d=se((t==null?void 0:t.inactiveColor)??vt.inactiveColor),f=(t==null?void 0:t.stepperType)??vt.stepperType,p=f==="numeric"||f==="both",b=f==="dots"||f==="both",x=(t==null?void 0:t.numericColor)??vt.numericColor,w=se(x),k=zn((t==null?void 0:t.numericFontSize)??vt.numericFontSize,8,48),S=(t==null?void 0:t.numericPosition)??vt.numericPosition,_={...Yl((e==null?void 0:e.backgroundColor)??void 0),padding:zk(e==null?void 0:e.padding,a),margin:jk(e==null?void 0:e.margin,a),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},y=p&&b&&(S==="above"||S==="below"),C={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=`${c}/${i}`,E=iu(x),O={fontSize:`${k}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...E?{backgroundImage:w,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:w??void 0}},M=()=>p?m.jsx("span",{style:O,children:R}):null,P=()=>m.jsx("div",{style:I,"aria-hidden":"true",children:Array.from({length:i}).map((B,D)=>{const H=D===c-1,G={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:H?"scale(1.1)":"scale(1)",...Yl(H?h:d)};return m.jsx("span",{style:G,"data-active":H?"true":"false"},D)})});return m.jsx("div",{className:"stepper-block",style:_,role:"progressbar","aria-valuenow":c,"aria-valuemin":1,"aria-valuemax":i,"aria-valuetext":`Step ${c} of ${i}`,"aria-label":`Step ${c} of ${i}`,children:m.jsxs("div",{style:C,children:[p&&S==="above"&&M(),p&&S==="left"&&M(),b&&P(),p&&S==="right"&&M(),p&&S==="below"&&M()]})})}const Fk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Hk=$().regex(/^rgba?\([^\)]+\)$/i),Gk=le("transparent"),Bo=F([Fk,Hk,Gk]).nullable().optional(),lu=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Wk=lu,Uk=T(["left","center","right"]).optional().nullable(),Zk=["disc","circle","square","dash","arrow","check","cross","none"],qk=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Kl={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},Vk=A({text:$()}),Yk=A({style:A({color:Bo,backgroundColor:Bo,textAlign:Uk,fontSize:g().min(1).max(200).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:F([g(),$()]).optional().nullable(),lineHeight:g().min(1).max(3).optional().nullable(),padding:lu,margin:Wk}).optional().nullable(),props:A({listType:T(["unordered","ordered"]).optional().nullable(),marker:T([...Zk,...qk]).optional().nullable(),numberSuffix:Oc(e=>e===""?void 0:e,T([".",")"]).optional().nullable()),startNumber:g().min(0).max(9999).optional().nullable(),markerColor:Bo,markerSize:g().min(1).max(200).optional().nullable(),itemGap:g().min(0).max(64).optional().nullable(),items:oe(Vk).optional().nullable()}).optional().nullable(),responsive:Ye}),Dt={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"}]},Jl=(e,t,n)=>Math.min(Math.max(e,t),n),Xl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ql=e=>{if(e<=0)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let n="",r=e;for(const[o,a]of t)for(;r>=o;)n+=a,r-=o;return n},es=e=>{let t=e,n="";for(;t>0;){const r=(t-1)%26;n=String.fromCharCode(97+r)+n,t=Math.floor((t-1)/26)}return n||"a"},Kk=(e,t,n,r)=>{const o=n+t;switch(e){case"decimal-zero":return`${String(o).padStart(2,"0")}${r}`;case"lower-alpha":return`${es(o)}${r}`;case"upper-alpha":return`${es(o).toUpperCase()}${r}`;case"lower-roman":return`${Ql(o).toLowerCase()}${r}`;case"upper-roman":return`${Ql(o)}${r}`;case"decimal":default:return`${o}${r}`}};function Jk({style:e,props:t,renderItemText:n}){var k;const o=((t==null?void 0:t.listType)??Dt.listType)==="ordered",a=(t==null?void 0:t.marker)??(o?"decimal":Dt.marker),i=(t==null?void 0:t.numberSuffix)??Dt.numberSuffix,l=(t==null?void 0:t.startNumber)??Dt.startNumber,s=(t==null?void 0:t.markerColor)??Dt.markerColor,u=Jl((t==null?void 0:t.markerSize)??Dt.markerSize,1,200),c=Jl((t==null?void 0:t.itemGap)??Dt.itemGap,0,64),h=(k=t==null?void 0:t.items)!=null&&k.length?t.items:Dt.items.map(S=>({...S})),d=z(e==null?void 0:e.color,"listText"),f=(e==null?void 0:e.textAlign)??"left",p={backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:Xl(e==null?void 0:e.padding),margin:Xl(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box",color:d,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},b={textAlign:"left"},x={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:z(s,"listText"),fontSize:`${u}px`},w=S=>a==="none"?null:o?Kk(a,S,l,i):Kl[a]??Kl.disc;return m.jsx("div",{className:"list-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:m.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:f==="left"?"100%":"auto",maxWidth:"100%",marginLeft:f==="left"?void 0:"auto",marginRight:f==="center"?"auto":void 0},children:m.jsx("tbody",{children:h.map((S,v)=>{const _=w(v),y=typeof S.text=="string"&&S.text.indexOf("{{")!==-1;return m.jsxs("tr",{children:[a!=="none"&&m.jsx("td",{style:x,children:_}),m.jsx("td",{style:{...b,paddingBottom:v<h.length-1?`${c}px`:0,width:f==="left"?"100%":void 0},children:(n==null?void 0:n(S,v))??(y?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:pi(S.text)}}):S.text)})]},v)})})})})}const Xk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Qk=$().regex(/^rgba?\([^\)]+\)$/i),ew=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),tw=le("transparent"),nw=F([Xk,Qk,ew,tw]).nullable().optional(),rw=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ow=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),va=A({style:A({backgroundColor:nw,padding:rw,margin:ow}).optional().nullable(),props:A({direction:T(["row","column"]).optional().nullable(),directionTablet:T(["row","column"]).optional().nullable(),directionMobile:T(["row","column"]).optional().nullable(),gap:g().optional().nullable(),gapTablet:g().optional().nullable(),gapMobile:g().optional().nullable(),alignment:T(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:T(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:T(["start","center","end","space-between"]).optional().nullable(),wrap:L().optional().nullable(),ariaLabel:$().optional().nullable()}).optional().nullable(),responsive:Ye}),Cr={direction:"row",gap:12,alignment:"start",wrap:!0},Yr={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},aw=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,iw=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ts(e,t,n,r){const o=e==="row"?Yr[t]:"flex-start",a=e==="column"?Yr[t]:"center";return`flex-direction:${e}!important;justify-content:${o}!important;align-items:${a}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${r}px!important;`}let lw=0;function sw({style:e,buttons:t,props:n}){const r=(n==null?void 0:n.direction)??Cr.direction,o=(n==null?void 0:n.directionTablet)??r,a=(n==null?void 0:n.directionMobile)??o,i=(n==null?void 0:n.gap)??Cr.gap,l=(n==null?void 0:n.gapTablet)??i,s=(n==null?void 0:n.gapMobile)??l,u=(n==null?void 0:n.alignment)??Cr.alignment,c=(n==null?void 0:n.alignmentTablet)??u,h=(n==null?void 0:n.alignmentMobile)??c,d=(n==null?void 0:n.wrap)??Cr.wrap,f=(n==null?void 0:n.ariaLabel)??void 0,p=r,b=u,x=i,w=e==null?void 0:e.margin,k=((w==null?void 0:w.left)??0)+((w==null?void 0:w.right)??0),S={display:"flex",flexDirection:p,gap:`${x}px`,justifyContent:p==="row"?Yr[b]:"flex-start",alignItems:p==="column"?Yr[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:aw(e==null?void 0:e.padding),margin:iw(e==null?void 0:e.margin),boxSizing:"border-box",width:k>0?`max(0px, calc(100% - ${k}px))`:"100%"},v=U.useMemo(()=>`ahd-bg-${lw+=1}`,[]),_=U.useMemo(()=>{const y=`.${v}`;let C="";return(o!==r||c!==u||l!==i)&&(C+=`@media (max-width:${Ue}px){${y}{${ts(o,c,d,l)}}}`),(a!==o||h!==c||s!==l)&&(C+=`@media (max-width:${Ve}px){${y}{${ts(a,h,d,s)}}}`),C},[v,r,o,a,u,c,h,i,l,s,d]);return m.jsxs("div",{className:`button-group ${v}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,role:"group","aria-label":f,children:[_&&m.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),t]})}const cw=va.shape.props.unwrap().unwrap().shape,uw=A({style:va.shape.style,props:A({...cw,childrenIds:oe($()).optional().nullable()}).optional().nullable(),responsive:va.shape.responsive});function dw({style:e,props:t}){const{childrenIds:n,...r}=t??{},o=(n??[]).map(a=>m.jsx(Pe,{id:a},a));return m.jsx(sw,{style:e,props:r,buttons:o})}const hw=A({titleChildrenIds:oe($()).optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),fw=A({responsive:Ye,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:F([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),marginBottom:g().optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({items:oe(hw).min(1).max(25).optional().nullable(),iconColor:$().optional().nullable(),iconSize:g().optional().nullable(),defaultOpen:L().optional().nullable(),activeBorderColor:$().optional().nullable()}).optional().nullable()});function pw(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 ns=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function gw(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),r=e.split(" ").map(o=>Math.max(0,parseFloat(o)-n));return r.length===1?`${r[0]}px`:r.map(o=>`${o}px`).join(" ")}function mw({style:e,props:t}){const n=U.useMemo(()=>{const C=t==null?void 0:t.items;return!C||C.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:C[0].titleChildrenIds??[],contentChildrenIds:C[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),r=U.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),o=`${r}-content`,a=e==null?void 0:e.padding,i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s=t==null?void 0:t.activeBorderColor,u=e==null?void 0:e.borderColor,c=se(s),h=se(u),d=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),f=z(null,"surface"),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=pw(e==null?void 0:e.borderRadius),w=ns(u),k=ns(s),S=w||k,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:x,margin:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),S?(v.padding=b,w?v.background=z(u,"borderAdaptive"):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b)):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b);const _={background:d??(S?f:void 0),borderRadius:S?gw(x,p):void 0,padding:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,overflow:S&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},y=[];return s&&(k?y.push(`#${r}:checked + .email-accordion-root { background:${z(s,"borderAdaptive")}!important; border-style:none!important; padding:${b}!important; }`):y.push(`#${r}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${c}!important; border-width:${b}!important; ${S?"padding:0!important;":""} }`)),m.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[m.jsx("style",{children:`
247
243
  .email-accordion-root { width:100%; }
248
244
  .email-accordion-toggle { display:none; }
249
245
  .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; }
@@ -254,41 +250,41 @@ ${y}
254
250
  .email-accordion-toggle:checked + .email-accordion-root .email-accordion-arrow { transform: rotate(180deg); }
255
251
  ${y.join(`
256
252
  `)}
257
- `}),m.jsx("input",{id:r,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":o,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),m.jsx("div",{className:"email-accordion-root",...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:v,children:m.jsxs("div",{className:"email-accordion-inner",style:_,children:[m.jsxs("label",{htmlFor:r,className:"email-accordion-label",children:[m.jsx("div",{className:"title",children:n.titleChildrenIds.map(A=>m.jsx(Me,{id:A},A))}),m.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:z(t==null?void 0:t.iconColor,"blockText")},children:m.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:m.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"})})})]}),m.jsx("div",{id:o,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(A=>m.jsx(Me,{id:A},A))})]})})]})}const lw=C({label:$().optional().nullable(),cardChildrenIds:re($()).optional().nullable(),detailChildrenIds:re($()).optional().nullable()}),sw=C({style:C({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),borderRadius:D([g(),$(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cardGap:g().optional().nullable(),equalCardWidth:L().optional().nullable(),cardBgColor:$().optional().nullable(),cardBorderColor:$().optional().nullable(),cardBorderWidth:g().optional().nullable(),cardBorderRadius:g().optional().nullable(),cardPadding:g().optional().nullable(),cardShadow:$().optional().nullable(),cardTextColor:$().optional().nullable(),cardFontSize:g().optional().nullable(),cardFontFamily:$().optional().nullable(),cardFontWeight:$().optional().nullable(),cardTextAlign:T(["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:g().optional().nullable(),detailBgColor:$().optional().nullable(),detailBorderColor:$().optional().nullable(),detailBorderWidth:g().optional().nullable(),detailBorderRadius:g().optional().nullable(),detailPadding:g().optional().nullable(),detailShadow:$().optional().nullable(),detailGap:g().optional().nullable(),rightCardWidth:g().optional().nullable(),cardListWidth:g().optional().nullable(),panelGap:g().optional().nullable()}).optional().nullable(),props:C({items:re(lw).min(1).max(10).optional().nullable(),defaultOpenIndex:g().optional().nullable(),accordionEnabled:L().optional().nullable(),detailPosition:T(["bottom","right"]).optional().nullable()}).optional().nullable()});function cw(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 uw({style:e,props:t}){const n=V.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Plan 1",cardChildrenIds:[],detailChildrenIds:[]}],[t==null?void 0:t.items]),r=V.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.accordionEnabled)??!1,a=(t==null?void 0:t.defaultOpenIndex)??null,i=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,u=z(e==null?void 0:e.cardBgColor,"surface"),c=z(e==null?void 0:e.cardBorderColor,"borderSubtle"),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=se((e==null?void 0:e.cardTextColor)??"inherit"),x=(e==null?void 0:e.cardFontSize)??null,w=(e==null?void 0:e.cardFontFamily)??"inherit",k=(e==null?void 0:e.cardFontWeight)??"inherit",S=(e==null?void 0:e.cardTextAlign)??"left",v=se((e==null?void 0:e.cardHoverBgColor)??null),_=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",y=se(e==null?void 0:e.activeCardBgColor)??u,A=se(e==null?void 0:e.activeCardBorderColor)??c,I=(e==null?void 0:e.activeCardShadow)??p,R=se(e==null?void 0:e.activeCardTextColor)??b,N=se((e==null?void 0:e.arrowColor)??"currentColor"),P=se(e==null?void 0:e.arrowActiveColor)??N,M=(e==null?void 0:e.arrowSize)??13,O=z(e==null?void 0:e.detailBgColor,{role:"surface-alt",seeds:[],nullFallback:"#f8fafc"}),j=z(e==null?void 0:e.detailBorderColor,{role:"border-subtle",seeds:[],nullFallback:"rgba(0,0,0,0.08)"}),F=(e==null?void 0:e.detailBorderWidth)??1,H=(e==null?void 0:e.detailBorderRadius)??12,W=(e==null?void 0:e.detailPadding)??24,U=(e==null?void 0:e.detailShadow)??"none",X=(e==null?void 0:e.detailGap)??12,Z=(e==null?void 0:e.rightCardWidth)??280,q=e==null?void 0:e.padding,ae={width:"100%",boxSizing:"border-box",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:cw(e==null?void 0:e.borderRadius),padding:q?`${q.top}px ${q.right}px ${q.bottom}px ${q.left}px`:void 0},$e=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,ce=x?`${x}px`:"inherit";if(!o){const ee=`
253
+ `}),m.jsx("input",{id:r,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":o,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),m.jsx("div",{className:"email-accordion-root",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:v,children:m.jsxs("div",{className:"email-accordion-inner",style:_,children:[m.jsxs("label",{htmlFor:r,className:"email-accordion-label",children:[m.jsx("div",{className:"title",children:n.titleChildrenIds.map(C=>m.jsx(Pe,{id:C},C))}),m.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:z(t==null?void 0:t.iconColor,"blockText")},children:m.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:m.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"})})})]}),m.jsx("div",{id:o,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(C=>m.jsx(Pe,{id:C},C))})]})})]})}const bw=A({label:$().optional().nullable(),cardChildrenIds:oe($()).optional().nullable(),detailChildrenIds:oe($()).optional().nullable()}),xw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),borderRadius:F([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cardGap:g().optional().nullable(),equalCardWidth:L().optional().nullable(),cardBgColor:$().optional().nullable(),cardBorderColor:$().optional().nullable(),cardBorderWidth:g().optional().nullable(),cardBorderRadius:g().optional().nullable(),cardPadding:g().optional().nullable(),cardShadow:$().optional().nullable(),cardTextColor:$().optional().nullable(),cardFontSize:g().optional().nullable(),cardFontFamily:$().optional().nullable(),cardFontWeight:$().optional().nullable(),cardTextAlign:T(["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:g().optional().nullable(),detailBgColor:$().optional().nullable(),detailBorderColor:$().optional().nullable(),detailBorderWidth:g().optional().nullable(),detailBorderRadius:g().optional().nullable(),detailPadding:g().optional().nullable(),detailShadow:$().optional().nullable(),detailGap:g().optional().nullable(),rightCardWidth:g().optional().nullable(),cardListWidth:g().optional().nullable(),panelGap:g().optional().nullable()}).optional().nullable(),props:A({items:oe(bw).min(1).max(10).optional().nullable(),defaultOpenIndex:g().optional().nullable(),accordionEnabled:L().optional().nullable(),detailPosition:T(["bottom","right"]).optional().nullable()}).optional().nullable()});function vw(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 kw({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]),r=U.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.accordionEnabled)??!1,a=(t==null?void 0:t.defaultOpenIndex)??null,i=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,u=z(e==null?void 0:e.cardBgColor,"surface"),c=z(e==null?void 0:e.cardBorderColor,"borderSubtle"),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=se((e==null?void 0:e.cardTextColor)??"inherit"),x=(e==null?void 0:e.cardFontSize)??null,w=(e==null?void 0:e.cardFontFamily)??"inherit",k=(e==null?void 0:e.cardFontWeight)??"inherit",S=(e==null?void 0:e.cardTextAlign)??"left",v=se((e==null?void 0:e.cardHoverBgColor)??null),_=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",y=se(e==null?void 0:e.activeCardBgColor)??u,C=se(e==null?void 0:e.activeCardBorderColor)??c,I=(e==null?void 0:e.activeCardShadow)??p,R=se(e==null?void 0:e.activeCardTextColor)??b,E=se((e==null?void 0:e.arrowColor)??"currentColor"),O=se(e==null?void 0:e.arrowActiveColor)??E,M=(e==null?void 0:e.arrowSize)??13,P=z(e==null?void 0:e.detailBgColor,{role:"surface-alt",seeds:[],nullFallback:"#f8fafc"}),B=z(e==null?void 0:e.detailBorderColor,{role:"border-subtle",seeds:[],nullFallback:"rgba(0,0,0,0.08)"}),D=(e==null?void 0:e.detailBorderWidth)??1,H=(e==null?void 0:e.detailBorderRadius)??12,G=(e==null?void 0:e.detailPadding)??24,W=(e==null?void 0:e.detailShadow)??"none",J=(e==null?void 0:e.detailGap)??12,X=(e==null?void 0:e.rightCardWidth)??280,q=e==null?void 0:e.padding,te={width:"100%",boxSizing:"border-box",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:vw(e==null?void 0:e.borderRadius),padding:q?`${q.top}px ${q.right}px ${q.bottom}px ${q.left}px`:void 0},$e=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,Ce=x?`${x}px`:"inherit";if(!o){const ee=`
258
254
  .pacc-grid{display:grid;grid-template-columns:${$e};gap:${l}px;width:100%;box-sizing:border-box}
259
- .pacc-grid-card{background:${u};border:${h}px solid ${c};border-radius:${d}px;padding:${f}px;box-sizing:border-box;box-shadow:${p};color:${b};font-size:${ce};font-family:${w};font-weight:${k};text-align:${S}}
255
+ .pacc-grid-card{background:${u};border:${h}px solid ${c};border-radius:${d}px;padding:${f}px;box-sizing:border-box;box-shadow:${p};color:${b};font-size:${Ce};font-family:${w};font-weight:${k};text-align:${S}}
260
256
  ${v?`.pacc-grid-card:hover{background:${v};box-shadow:${_}}`:`.pacc-grid-card:hover{box-shadow:${_}}`}
261
257
  @media(max-width:640px){.pacc-grid{grid-template-columns:1fr}}
262
- `;return m.jsxs("div",{...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ae,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),m.jsx("div",{className:"pacc-grid",children:n.map((Y,K)=>m.jsx("div",{className:"pacc-grid-card",children:(Y.cardChildrenIds??[]).map(B=>m.jsx(Me,{id:B},B))},K))})]})}if(i==="bottom"){const ee=n.map((K,B)=>{const J=`#${r}-cb${B}:checked ~ .pacc-wrap`;return`${J}{grid-template-columns:1fr}`+n.map((me,ke)=>ke!==B?`${J} .pacc-item:nth-child(${ke+1}){display:none}`:"").join("")+`${J} .pacc-item:nth-child(${B+1}){display:block}${J} .pacc-item:nth-child(${B+1}) .pacc-card{background:${y};border-color:${A};box-shadow:${I};color:${R}}${J} .pacc-item:nth-child(${B+1}) .pacc-arrow{transform:rotate(180deg);color:${P}}${J} .pacc-item:nth-child(${B+1}) .pacc-detail{display:block}`}).join(""),Y=`
258
+ `;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:te,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),m.jsx("div",{className:"pacc-grid",children:n.map((Y,K)=>m.jsx("div",{className:"pacc-grid-card",children:(Y.cardChildrenIds??[]).map(j=>m.jsx(Pe,{id:j},j))},K))})]})}if(i==="bottom"){const ee=n.map((K,j)=>{const V=`#${r}-cb${j}:checked ~ .pacc-wrap`;return`${V}{grid-template-columns:1fr}`+n.map((pe,ke)=>ke!==j?`${V} .pacc-item:nth-child(${ke+1}){display:none}`:"").join("")+`${V} .pacc-item:nth-child(${j+1}){display:block}${V} .pacc-item:nth-child(${j+1}) .pacc-card{background:${y};border-color:${C};box-shadow:${I};color:${R}}${V} .pacc-item:nth-child(${j+1}) .pacc-arrow{transform:rotate(180deg);color:${O}}${V} .pacc-item:nth-child(${j+1}) .pacc-detail{display:block}`}).join(""),Y=`
263
259
  .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
260
  .pacc-wrap{display:grid;grid-template-columns:${$e};gap:${l}px;width:100%;box-sizing:border-box}
265
261
  .pacc-item{box-sizing:border-box}
266
- .pacc-card{background:${u};border:${h}px solid ${c};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:${S};color:${b};font-size:${ce};font-family:${w};font-weight:${k};box-shadow:${p}}
262
+ .pacc-card{background:${u};border:${h}px solid ${c};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:${S};color:${b};font-size:${Ce};font-family:${w};font-weight:${k};box-shadow:${p}}
267
263
  ${v?`.pacc-card:hover{background:${v};box-shadow:${_}}`:`.pacc-card:hover{box-shadow:${_}}`}
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:${N}}
264
+ .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:${E}}
269
265
  .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${M}px;line-height:1}
270
- .pacc-detail{display:none;margin-top:${X}px;background:${O};border:${F}px solid ${j};border-radius:${H}px;padding:${W}px;box-sizing:border-box;box-shadow:${U}}
266
+ .pacc-detail{display:none;margin-top:${J}px;background:${P};border:${D}px solid ${B};border-radius:${H}px;padding:${G}px;box-sizing:border-box;box-shadow:${W}}
271
267
  @media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}}
272
268
  ${ee}
273
- `;return m.jsxs("div",{...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ae,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Y}}),n.map((K,B)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${B}`,className:"pacc-cb",defaultChecked:B===a},B)),m.jsx("div",{className:"pacc-wrap",children:n.map((K,B)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${B}`,className:"pacc-card",children:[(K.cardChildrenIds??[]).map(J=>m.jsx(Me,{id:J},J)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-down"})})]}),m.jsx("div",{className:"pacc-detail",children:(K.detailChildrenIds??[]).map(J=>m.jsx(Me,{id:J},J))})]},B))})]})}const pe=n.map((ee,Y)=>{const K=`#${r}-cb${Y}:checked ~ .pacc-wrap`;return`${K}{grid-template-columns:1fr}`+n.map((B,J)=>J!==Y?`${K} .pacc-item:nth-child(${J+1}){display:none}`:"").join("")+`${K} .pacc-item:nth-child(${Y+1}){display:flex;flex-direction:row;gap:${X}px;align-items:flex-start}${K} .pacc-item:nth-child(${Y+1}) .pacc-card{flex-shrink:0;width:${Z}px;background:${y};border-color:${A};box-shadow:${I};color:${R}}${K} .pacc-item:nth-child(${Y+1}) .pacc-arrow{transform:rotate(90deg);color:${P}}${K} .pacc-item:nth-child(${Y+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),Le=`
269
+ `;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:te,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Y}}),n.map((K,j)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${j}`,className:"pacc-cb",defaultChecked:j===a},j)),m.jsx("div",{className:"pacc-wrap",children:n.map((K,j)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${j}`,className:"pacc-card",children:[(K.cardChildrenIds??[]).map(V=>m.jsx(Pe,{id:V},V)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-down"})})]}),m.jsx("div",{className:"pacc-detail",children:(K.detailChildrenIds??[]).map(V=>m.jsx(Pe,{id:V},V))})]},j))})]})}const xe=n.map((ee,Y)=>{const K=`#${r}-cb${Y}:checked ~ .pacc-wrap`;return`${K}{grid-template-columns:1fr}`+n.map((j,V)=>V!==Y?`${K} .pacc-item:nth-child(${V+1}){display:none}`:"").join("")+`${K} .pacc-item:nth-child(${Y+1}){display:flex;flex-direction:row;gap:${J}px;align-items:flex-start}${K} .pacc-item:nth-child(${Y+1}) .pacc-card{flex-shrink:0;width:${X}px;background:${y};border-color:${C};box-shadow:${I};color:${R}}${K} .pacc-item:nth-child(${Y+1}) .pacc-arrow{transform:rotate(90deg);color:${O}}${K} .pacc-item:nth-child(${Y+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),ve=`
274
270
  .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
271
  .pacc-wrap{display:grid;grid-template-columns:${$e};gap:${l}px;width:100%;box-sizing:border-box}
276
272
  .pacc-item{box-sizing:border-box}
277
- .pacc-card{background:${u};border:${h}px solid ${c};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:${S};color:${b};font-size:${ce};font-family:${w};font-weight:${k};box-shadow:${p}}
273
+ .pacc-card{background:${u};border:${h}px solid ${c};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:${S};color:${b};font-size:${Ce};font-family:${w};font-weight:${k};box-shadow:${p}}
278
274
  ${v?`.pacc-card:hover{background:${v};box-shadow:${_}}`:`.pacc-card:hover{box-shadow:${_}}`}
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:${N}}
275
+ .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:${E}}
280
276
  .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${M}px;line-height:1}
281
- .pacc-detail{display:none;background:${O};border:${F}px solid ${j};border-radius:${H}px;padding:${W}px;box-sizing:border-box;box-shadow:${U}}
277
+ .pacc-detail{display:none;background:${P};border:${D}px solid ${B};border-radius:${H}px;padding:${G}px;box-sizing:border-box;box-shadow:${W}}
282
278
  @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
- ${pe}
284
- `;return m.jsxs("div",{...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ae,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Le}}),n.map((ee,Y)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${Y}`,className:"pacc-cb",defaultChecked:Y===a},Y)),m.jsx("div",{className:"pacc-wrap",children:n.map((ee,Y)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${Y}`,className:"pacc-card",children:[(ee.cardChildrenIds??[]).map(K=>m.jsx(Me,{id:K},K)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-right"})})]}),m.jsx("div",{className:"pacc-detail",children:(ee.detailChildrenIds??[]).map(K=>m.jsx(Me,{id:K},K))})]},Y))})]})}const dw=160,hw=C({label:$().optional().nullable(),contentChildrenIds:re($()).optional().nullable()}),fw=C({responsive:Ye,style:C({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:D([g(),$(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tabActiveColor:$().optional().nullable(),tabActiveBgColor:$().optional().nullable(),tabInactiveTextColor:$().optional().nullable(),tabInactiveBgColor:$().optional().nullable(),tabInactiveBorderColor:$().optional().nullable(),tabInactiveBorderWidth:g().optional().nullable(),tabTextColor:$().optional().nullable(),tabBgColor:$().optional().nullable(),tabBorderRadius:g().optional().nullable(),tabGap:g().optional().nullable(),contentGap:g().optional().nullable(),navBorderColor:$().optional().nullable(),navWidth:g().optional().nullable(),fontSize:D([$(),g()]).optional().nullable(),lineHeight:D([$(),g()]).optional().nullable(),activeFontSize:D([$(),g()]).optional().nullable(),showActiveBorder:L().optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable()}).optional().nullable(),props:C({orientation:T(["horizontal","vertical"]).optional().nullable(),orientationTablet:T(["horizontal","vertical"]).optional().nullable(),orientationMobile:T(["horizontal","vertical"]).optional().nullable(),behavior:T(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:T(["left","center","right"]).optional().nullable(),dropdown:L().optional().nullable(),dropdownTablet:L().optional().nullable(),dropdownMobile:L().optional().nullable(),activeTabIndex:g().optional().nullable(),stickyNav:L().optional().nullable(),items:re(hw).min(1).max(20).optional().nullable()}).optional().nullable()});function pw(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function gw(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 Xl(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const mw={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},bw={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function Ct(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Zr(e,t=!1){const n=t?"!important":"";return e?Ct(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function qr(e,t=!1){const n=t?"!important":"";return Ct(e)?`color:transparent${n}`:`color:${e}${n}`}function Vr(e,t=!1){const n=t?"!important":"";return Ct(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function ma(e,t,n,r=!1){const o=r?"!important":"";return Ct(e)?`border-${n}-style:solid${o};border-${n}-width:${t}${o};border-image-source:${e}${o};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${o}`:`border-${n}-color:${e}${o}`}function xw(e,t,n=!1){const r=n?"!important":"";return e?Ct(e)?`box-sizing:border-box${r};border:${t}px solid transparent${r};border-image-source:${e}${r};border-image-slice:1${r};box-shadow:none${r}`:`box-shadow:inset 0 0 0 ${t}px ${e}${r}`:`box-shadow:none${r}`}function hn(e,t,n,r,o,a,i,l){const s=Ct(l),u=s?ma(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,c=s?ma(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:${r};align-items:center;justify-content:${a};width:100%;${u};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:${o};margin-left:0}`;const h=`${i??dw}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:${o};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;${c};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:${r};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 vw(e,t,n,r,o,a,i,l,s,u,c,h,d,f,p,b,x=1){let w="";for(let _=0;_<p;_++){const y=`${e} #${f}-r${_}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${_+1})`;w+=`${y}{${Zr(i,!0)};${qr(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${Vr(l,!0)}}${y}:hover{${Zr(i,!0)}}`}const k=`${e} > .ahd-tabs-dd-wrap`,S=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${k}:focus-within`,v=s?`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${k}{display:block!important;position:relative!important;width:100%!important}${k} > .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:${r};background:${o};color:${a};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+v+`${k} > .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}${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${k} > .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:${r}!important;background:var(--pp-surface,#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}${S} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${k} > .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;${qr(u??"inherit",!0)};background:${c??"transparent"}!important;box-shadow:${h}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${k} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${Vr(u??"inherit",!0)}}${k} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${k} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${c??"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 Lo(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 kw({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",r=(t==null?void 0:t.orientationTablet)??n,o=(t==null?void 0:t.orientationMobile)??"vertical",i=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=V.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),u=V.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),c=se(e==null?void 0:e.tabActiveColor),h=se(e==null?void 0:e.tabActiveBgColor),d=se(e==null?void 0:e.tabInactiveTextColor),f=se(e==null?void 0:e.tabInactiveBgColor),p=se(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",w=se(e==null?void 0:e.tabTextColor),k=se((e==null?void 0:e.tabBgColor)??"transparent"),S=se(e==null?void 0:e.navBorderColor),v=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",A=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,I="var(--ahd-tabs-tab-gap,"+_+")",R="var(--ahd-tabs-content-gap,"+y+")",N=(e==null?void 0:e.activeFontSize)!=null?Xl(e.activeFontSize):void 0,M=((e==null?void 0:e.showActiveBorder)??!0)&&!h?c||"currentColor":"transparent",O=(t==null?void 0:t.tabsAlign)??"left",j=O==="center"?"center":O==="right"?"flex-end":"flex-start",F=(t==null?void 0:t.dropdown)??!1,H=(t==null?void 0:t.dropdownTablet)??F,W=(t==null?void 0:t.dropdownMobile)??H,U=e==null?void 0:e.padding,X=e==null?void 0:e.margin,Z=((X==null?void 0:X.left)??0)+((X==null?void 0:X.right)??0),q=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},ae=`${q.top}px ${q.right}px ${q.bottom}px ${q.left}px`,$e=Ct(e==null?void 0:e.borderColor),ce=e!=null&&e.borderColor?$e?{borderStyle:"solid",borderColor:"transparent",borderWidth:ae,borderImageSource:e.borderColor,borderImageSlice:1}:{borderStyle:"solid",borderColor:e.borderColor,borderWidth:ae}:{},pe={width:Z>0?`calc(100% - ${Z}px)`:"100%",boxSizing:"border-box",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),...ce,borderRadius:gw(e==null?void 0:e.borderRadius),padding:U?`${U.top}px ${U.right}px ${U.bottom}px ${U.left}px`:void 0,margin:X?`${X.top}px ${X.right}px ${X.bottom}px ${X.left}px`:void 0,fontFamily:pw(e==null?void 0:e.fontFamily),fontSize:Xl(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":S??"transparent"},Le=()=>s.map((B,J)=>m.jsx("input",{type:"radio",id:`${u}-r${J}`,name:u,className:"ahd-tabs-radio",defaultChecked:J===0,style:mw},J)),ee=V.useMemo(()=>{const B=`.${u}`,J=c||"currentColor",me=w||"inherit",ke=`${B} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,be=`${ke} > .ahd-tabs-label-text`,ge=`${B} > .ahd-tabs-panels > .ahd-tabs-panel`,Ce=d??me;let oe=`${ke}{${qr(Ce)};${Zr(f)};${xw(p,b)};border-radius:${x}}${be}{${Vr(Ce)}}`+(i?"":`${ge}{display:none}`)+`${B} > .ahd-tabs-dd-wrap{display:contents}${B} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${B} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((At,Ge)=>{const tt=`#${u}-r${Ge}:checked`,ot=`${tt} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${Ge+1})`,Ot=`${tt} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${Ge+1})`,yt=Ct(M),Ke=`${qr(J,!0)};${Zr(h,!0)};box-shadow:none!important`+(yt?`;${ma(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`);oe+=`${ot}{${Ke}}`,oe+=`${ot} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${N??"inherit"})!important;${Vr(J,!0)}}`,i||(oe+=`${Ot}{display:block!important}`),oe+=`${tt} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${Ge+1}){display:inline}`}),oe+=hn(B,n,v,I,R,j,A!=null?String(A):void 0,S??void 0),r!==n&&(oe+=`${zo}{${hn(B,r,v,I,R,j,A!=null?String(A):void 0,S??void 0)}}`),o!==r&&(oe+=`${Bo}{${hn(B,o,v,I,R,j,A!=null?String(A):void 0,S??void 0)}}`);const Pe=p||S||z(null,"tabsRing"),De=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",xe=z(e==null?void 0:e.tabBgColor,{role:"surface",seeds:[],nullFallback:"#fff"}),Fe=w??"inherit",He=h??"transparent",Q=c??"inherit",Be=p?Ct(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",ze=Ct(p)?p:void 0,ie=vw(B,Pe,R,De,xe,Fe,He,Q,N,d,f,Be,I,u,s.length,ze,b);return l&&(oe+=`${B} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${B}){position:sticky;top:0;z-index:50}`),F?(oe+=ie,H||(oe+=`${zo}{${Lo(B,x)}${hn(B,r,v,I,R,j,A!=null?String(A):void 0,S??void 0)}}`),!W&&H&&(oe+=`${Bo}{${Lo(B,x)}${hn(B,o,v,I,R,j,A!=null?String(A):void 0,S??void 0)}}`)):(H&&(oe+=`${zo}{${ie}}`),W!==H&&(oe+=`${Bo}{${W?ie:Lo(B,x)+hn(B,o,v,I,R,j,A!=null?String(A):void 0,S??void 0)}}`)),oe},[s,u,c,h,x,w,N,M,n,r,o,i,v,S,A,I,R,j,d,f,p,b,F,H,W,l]),Y=B=>i?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:B===0?void 0:R}:{display:B===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},K=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return m.jsxs("div",{className:`${u} ahd-tabs ${K}${l?" ahd-tabs-sticky":""}${i?" ahd-tabs-scroll-sections":""}`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:pe,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),Le(),m.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[m.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[m.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((B,J)=>m.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":J,children:B.label??`Tab ${J+1}`},J))}),m.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),m.jsx("div",{className:"ahd-tabs-nav",style:{background:k,...l?{position:"sticky",top:0}:{}},children:s.map((B,J)=>m.jsx("label",{htmlFor:`${u}-r${J}`,className:"ahd-tabs-label","data-ahd-tab-index":J,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:m.jsx("span",{className:"ahd-tabs-label-text",style:bw,children:B.label??`Tab ${J+1}`})},J))})]}),m.jsx("div",{className:"ahd-tabs-panels",children:s.map((B,J)=>m.jsx("div",{id:`${u}-panel-${J}`,className:"ahd-tabs-panel","data-ahd-tab-index":J,style:Y(J),children:(B.contentChildrenIds??[]).map(me=>m.jsx(Me,{id:me},me))},J))})]})}const zo=`@media (max-width:${Ue}px)`,Bo=`@media (max-width:${Ve}px)`,ww=C({contentChildrenIds:re($()).optional().nullable()}),Sw=C({style:C({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:D([g(),$(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),slideGap:g().optional().nullable(),arrowColor:$().optional().nullable(),arrowBgColor:$().optional().nullable(),arrowBorderColor:$().optional().nullable(),arrowSize:g().min(16).max(80).optional().nullable(),dotColor:$().optional().nullable(),dotActiveColor:$().optional().nullable(),dotSize:g().min(4).max(24).optional().nullable()}).optional().nullable(),props:C({slidesPerView:g().min(1).max(6).optional().nullable(),slidesPerViewTablet:g().min(1).max(6).optional().nullable(),slidesPerViewMobile:g().min(1).max(6).optional().nullable(),showArrows:L().optional().nullable(),showDots:L().optional().nullable(),autoplay:L().optional().nullable(),autoplayInterval:g().min(500).max(2e4).optional().nullable(),loop:L().optional().nullable(),transitionMs:g().min(0).max(3e3).optional().nullable(),items:re(ww).min(1).max(20).optional().nullable()}).optional().nullable()});function $w(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 _w="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",Cw="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Ql=({d:e,size:t=20})=>m.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{d:e})});function Aw({style:e,props:t}){const n=V.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),r=V.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),o=Math.max(1,(t==null?void 0:t.slidesPerView)??1),a=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(o,2)),i=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,u=(t==null?void 0:t.autoplay)??!1,c=(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=z(e==null?void 0:e.arrowColor,"carouselArrow"),b=z(e==null?void 0:e.arrowBgColor,"carouselArrowBg"),x=z(e==null?void 0:e.arrowBorderColor,"carouselArrowBorder"),w=(e==null?void 0:e.arrowSize)??40,k=z(e==null?void 0:e.dotColor,"carouselDot"),S=z(e==null?void 0:e.dotActiveColor,"carouselDotActive"),v=(e==null?void 0:e.dotSize)??8,_=Math.max(12,Math.min(40,Math.round(w*.5))),y=e==null?void 0:e.padding,A=e==null?void 0:e.margin,I=((A==null?void 0:A.left)??0)+((A==null?void 0:A.right)??0),R={width:I>0?`calc(100% - ${I}px)`:"100%",boxSizing:"border-box",position:"relative",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:$w(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0},N=V.useMemo(()=>{const j=`.${r}`,F=H=>`calc((100% - ${f*(H-1)}px) / ${H})`;return`${j} .ahd-carousel-viewport{overflow:hidden;width:100%}${j} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${f}px);transition:transform ${d}ms ease;will-change:transform}${j} .ahd-carousel-slide{flex:0 0 ${F(o)};min-width:0;box-sizing:border-box}${j} .ahd-carousel-prev svg,${j} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${_}px);height:var(--ahd-carousel-chevron-size,${_}px)}@media (max-width:${Ue}px){${j} .ahd-carousel-slide{flex-basis:${F(a)}}}@media (max-width:${Ve}px){${j} .ahd-carousel-slide{flex-basis:${F(i)}}}`},[r,f,d,o,a,i,_]),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},M=Math.min(o,a,i),O=Math.max(1,n.length-M+1);return m.jsxs("div",{className:`${r} ahd-carousel`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:R,"data-per-view":o,"data-per-view-tablet":a,"data-per-view-mobile":i,"data-autoplay":u?"1":"0","data-autoplay-interval":c,"data-loop":h?"1":"0",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:N}}),m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&m.jsx("button",{type:"button",className:"ahd-carousel-prev",style:P,"aria-label":"Previous slide",children:m.jsx(Ql,{d:_w,size:_})}),m.jsx("div",{className:"ahd-carousel-viewport",children:m.jsx("div",{className:"ahd-carousel-track",children:n.map((j,F)=>m.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":F,children:(j.contentChildrenIds??[]).map(H=>m.jsx(Me,{id:H},H))},F))})}),l&&m.jsx("button",{type:"button",className:"ahd-carousel-next",style:P,"aria-label":"Next slide",children:m.jsx(Ql,{d:Cw,size:_})})]}),s&&O>1&&m.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":k,"data-dot-active-color":S,children:Array.from({length:O}).map((j,F)=>m.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":F,"aria-label":`Go to slide ${F+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${v}px)`,height:`var(--ahd-carousel-dot-size, ${v}px)`,minWidth:`var(--ahd-carousel-dot-size, ${v}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:F===0?S:k,backgroundImage:"none"}},F))})]})}const yw=T(["left","center","right","space-between"]),Iw=C({contentChildrenIds:re($()).optional().nullable()}),Rw=C({childrenIds:re($())}),Tw=C({style:C({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:D([g(),$(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(120).optional().nullable(),columnsGap:g().min(0).max(120).optional().nullable(),rowsGap:g().min(0).max(120).optional().nullable(),controlGap:g().min(0).max(120).optional().nullable(),controlAlign:yw.optional().nullable(),buttonSize:g().min(20).max(72).optional().nullable(),buttonGap:g().min(0).max(40).optional().nullable(),buttonRadius:g().min(0).max(999).optional().nullable(),buttonBg:$().optional().nullable(),buttonColor:$().optional().nullable(),buttonBorderColor:$().optional().nullable(),activeButtonBg:$().optional().nullable(),activeButtonColor:$().optional().nullable(),activeButtonBorderColor:$().optional().nullable(),arrowColor:$().optional().nullable(),fontSize:g().min(8).max(40).optional().nullable(),fontFamily:$().optional().nullable()}).optional().nullable(),props:C({items:re(Iw).min(1).max(50).optional().nullable(),cells:re(Rw).optional().nullable(),columnsCount:g().int().min(1).max(12).optional().nullable(),rowsCount:g().int().min(1).max(24).optional().nullable(),columnsCountTablet:g().int().min(1).max(12).optional().nullable(),columnsCountMobile:g().int().min(1).max(12).optional().nullable(),rowsCountTablet:g().int().min(1).max(24).optional().nullable(),rowsCountMobile:g().int().min(1).max(24).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:T(["left","center","right"]).optional().nullable(),cellsPerPage:g().int().min(1).max(100).optional().nullable(),repeatableEnabled:L().optional().nullable(),pageParam:$().min(1).max(40).optional().nullable(),syncUrl:L().optional().nullable(),showNumbers:L().optional().nullable(),showPrevNext:L().optional().nullable(),showFirstLast:L().optional().nullable(),maxVisiblePages:g().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:L().optional().nullable(),explicitFirstPage:L().optional().nullable()}).optional().nullable()}),ba={columnsCount:2,rowsCount:2};function jo(e,t="desktop"){const n=ba,r=(e==null?void 0:e.columnsCount)??n.columnsCount,o=(e==null?void 0:e.rowsCount)??n.rowsCount,a=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??r:r,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;let l;Array.isArray(e==null?void 0:e.cells)?l=e.cells:Array.isArray(e==null?void 0:e.items)?l=e.items.map(c=>({childrenIds:Array.isArray(c==null?void 0:c.contentChildrenIds)?c.contentChildrenIds:[]})):l=[];const s=Math.max(1,r*o,a*i,l.length),u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=l[h])==null?void 0:d.childrenIds)?l[h].childrenIds:[]}});return{columnsCount:a,rowsCount:i,cells:u}}function Do(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)??ba.columnsCount,r=(e==null?void 0:e.rowsCount)??ba.rowsCount,o=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;return Math.max(1,o*a)}function Nw(e,t,n){const r=Math.max(1,e),o=Math.min(Math.max(1,n),r*Math.max(1,t));return Math.max(1,Math.ceil(o/r))}function Ew(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const r=[];for(let o=0;o<e.length;o+=n)r.push(e.slice(o,o+n));return r}const Mw={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 Pw({style:e,props:t}){const n=Mw;return{pageParam:((t==null?void 0:t.pageParam)??n.pageParam).trim()||n.pageParam,syncUrl:(t==null?void 0:t.syncUrl)??n.syncUrl,showNumbers:(t==null?void 0:t.showNumbers)??n.showNumbers,showPrevNext:(t==null?void 0:t.showPrevNext)??n.showPrevNext,showFirstLast:(t==null?void 0:t.showFirstLast)??n.showFirstLast,maxVisiblePages:(()=>{const r=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return r<=0?0:Math.max(5,r)})(),scrollToTopOnChange:(t==null?void 0:t.scrollToTopOnChange)??n.scrollToTopOnChange,explicitFirstPage:(t==null?void 0:t.syncUrl)??n.syncUrl,prevLabel:(t==null?void 0:t.prevLabel)??n.prevLabel,nextLabel:(t==null?void 0:t.nextLabel)??n.nextLabel,firstLabel:(t==null?void 0:t.firstLabel)??n.firstLabel,lastLabel:(t==null?void 0:t.lastLabel)??n.lastLabel,itemGap:(e==null?void 0:e.itemGap)??n.itemGap,controlGap:(e==null?void 0:e.controlGap)??n.controlGap,controlAlign:(e==null?void 0:e.controlAlign)??n.controlAlign,buttonSize:(e==null?void 0:e.buttonSize)??n.buttonSize,buttonGap:(e==null?void 0:e.buttonGap)??n.buttonGap,buttonRadius:(e==null?void 0:e.buttonRadius)??n.buttonRadius,buttonBg:(e==null?void 0:e.buttonBg)??n.buttonBg,buttonColor:(e==null?void 0:e.buttonColor)??n.buttonColor,buttonBorderColor:(e==null?void 0:e.buttonBorderColor)??n.buttonBorderColor,activeButtonBg:(e==null?void 0:e.activeButtonBg)??n.activeButtonBg,activeButtonColor:(e==null?void 0:e.activeButtonColor)??n.activeButtonColor,activeButtonBorderColor:(e==null?void 0:e.activeButtonBorderColor)??n.activeButtonBorderColor,arrowColor:(e==null?void 0:e.arrowColor)??n.arrowColor,fontSize:(e==null?void 0:e.fontSize)??n.fontSize,fontFamily:(e==null?void 0:e.fontFamily)??void 0}}function Ow(e){return Math.max(1,e)}function Lw(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,u)=>u+1);const r=[],o=Math.max(1,n-2),a=Math.floor(o/2);let i=Math.max(2,e-a),l=Math.min(t-1,i+o-1);i=Math.max(2,Math.min(i,l-o+1)),r.push(1),i>2&&r.push("ellipsis");for(let s=i;s<=l;s++)r.push(s);return l<t-1&&r.push("ellipsis"),r.push(t),r}function zw(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 Bw({style:e,props:t}){const n=Pw({style:e,props:t}),r=jo(t,"desktop"),o=jo(t,"tablet"),a=jo(t,"mobile"),i=Math.max(Do(t,"desktop"),Do(t,"tablet"),Do(t,"mobile")),l=V.useMemo(()=>r.cells.length>=i?r.cells:Array.from({length:i},(W,U)=>r.cells[U]??{childrenIds:[]}),[r.cells,i]),s=V.useMemo(()=>Ew(l,i),[l,i]),u=Ow(s.length),c=(e==null?void 0:e.columnsGap)??n.itemGap,h=(e==null?void 0:e.rowsGap)??n.itemGap,d=V.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),f=V.useMemo(()=>Lw(1,u,n.maxVisiblePages),[u,n.maxVisiblePages]),p=ci(),b=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),x=p(e==null?void 0:e.borderColor),w=z(n.buttonBg,"paginationBg"),k=z(n.buttonColor,"paginationText"),S=z(n.buttonBorderColor,"paginationBorder"),v=z(n.arrowColor,"paginationText"),_=p(n.activeButtonBg),y=p(n.activeButtonColor),A=p(n.activeButtonBorderColor),I=e==null?void 0:e.padding,R=e==null?void 0:e.margin,N=((R==null?void 0:R.left)??0)+((R==null?void 0:R.right)??0),P={width:N>0?`calc(100% - ${N}px)`:"100%",boxSizing:"border-box",background:b??void 0,border:x?`1px solid ${x}`:void 0,borderRadius:zw(e==null?void 0:e.borderRadius),padding:I?`${I.top}px ${I.right}px ${I.bottom}px ${I.left}px`:void 0,margin:R?`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`:void 0,fontFamily:n.fontFamily},M=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",O={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 ${S}`,backgroundColor:w,backgroundImage:"none",color:k,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},j={...O,color:v},F=V.useMemo(()=>{const W=Z=>`grid-template-columns:repeat(${Z.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${Nw(Z.columnsCount,Z.rowsCount,i)},auto)`,U=(Z,q)=>{const ae=Math.min(Math.max(1,q.columnsCount*q.rowsCount),Math.max(1,i));return ae>=i?"":`${Z} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${ae+1}){display:none}`},X=`.${d}`;return`${X} .ahd-pgn-item{display:grid;${W(r)};column-gap:${c}px;row-gap:${h}px}${X} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+U(X,r)+`@media (max-width:${Ue}px){${X} .ahd-pgn-item{${W(o)}}${X} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+U(X,o)+`}@media (max-width:${Ve}px){${X} .ahd-pgn-item{${W(a)}}${X} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+U(X,a)+"}"},[d,r,o,a,i,c,h,n.itemGap]),H=(W,U,X)=>m.jsx("button",{type:"button",className:`ahd-pgn-btn ${W}`,"data-ahd-page":X,style:j,"aria-label":U,children:U});return m.jsxs("div",{className:`${d} ahd-pagination`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:P,"data-total-pages":u,"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":w,"data-btn-color":k,"data-btn-border":S,"data-active-bg":_,"data-active-color":y,"data-active-border":A,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:F}}),m.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((W,U)=>m.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":U,style:U===0?void 0:{display:"none"},children:W.map((X,Z)=>m.jsx("div",{className:"ahd-pgn-cell",children:(X.childrenIds??[]).map(q=>m.jsx(Me,{id:q},q))},Z))},U))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&m.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:M,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&&H("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&H("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&m.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((W,U)=>W==="ellipsis"?m.jsx("span",{className:"ahd-pgn-ellipsis",style:{...O,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${U}`):m.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":W,"aria-label":`Page ${W}`,"aria-current":W===1?"true":void 0,style:W===1?{...O,backgroundColor:_,color:y,border:`1px solid ${A}`}:O,children:W},W))}),n.showPrevNext&&H("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&H("ahd-pgn-last",n.lastLabel,u)]})]})}const jw=C({style:C({starColor:$().optional().nullable(),starEmptyColor:$().optional().nullable(),starSize:g().min(8).max(80).optional().nullable(),starGap:g().min(0).max(40).optional().nullable(),textColor:$().optional().nullable(),fontSize:D([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:C({value:D([g(),$()]).optional().nullable(),max:D([g(),$()]).optional().nullable(),showValue:L().optional().nullable()}).optional().nullable()}),es="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 Dw(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Fw(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Hw({fillPct:e,size:t,filledColor:n,emptyColor:r}){return m.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:[m.jsx("svg",{viewBox:"0 0 24 24",fill:r,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:m.jsx("path",{d:es})}),m.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:m.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:m.jsx("path",{d:es})})})]})}function Gw({style:e,props:t}){const n=V.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),r=(w,k)=>{if(typeof w=="number")return Number.isFinite(w)?w:k;const S=parseFloat(String(w??""));return Number.isFinite(S)?S:k},o=Math.max(1,Math.min(10,Math.round(r(t==null?void 0:t.max,5)))),a=Math.max(0,Math.min(o,r(t==null?void 0:t.value,0))),i=(t==null?void 0:t.showValue)??!0,l=se((e==null?void 0:e.starColor)??"#facc15")??"#facc15",s=z((e==null?void 0:e.starEmptyColor)??"#e5e7eb","track"),u=(e==null?void 0:e.starSize)??24,c=(e==null?void 0:e.starGap)??4,h=z((e==null?void 0:e.textColor)??"#262626","trackText"),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, ${c}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:h,fontFamily:Dw(e==null?void 0:e.fontFamily),fontSize:Fw(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=w=>{const k=a-w;return k>=1?100:k>=.5?50:k>0?Math.round(k*100):0};return m.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[m.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${c}px)`},children:Array.from({length:o}).map((w,k)=>m.jsx(Hw,{fillPct:x(k),size:u,filledColor:l,emptyColor:s},k))}),i&&m.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(a)?a:a.toFixed(1),m.jsxs("span",{style:{opacity:.55},children:["/",o]})]})]})}const Ww=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Uw=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Zw=C({style:C({trackColor:$().optional().nullable(),fillColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:D([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),barHeight:g().min(2).max(60).optional().nullable(),barRadius:g().min(0).max(40).optional().nullable(),circleSize:g().min(40).max(320).optional().nullable(),strokeWidth:g().min(2).max(40).optional().nullable(),stepSize:g().min(4).max(48).optional().nullable(),stepGap:g().min(0).max(40).optional().nullable(),padding:Ww,margin:Uw}).optional().nullable(),props:C({variant:T(["linear","circular","steps"]).optional().nullable(),value:D([g(),$()]).optional().nullable(),max:D([g(),$()]).optional().nullable(),showLabel:L().optional().nullable(),labelFormat:T(["percent","fraction"]).optional().nullable(),steps:g().min(2).max(20).optional().nullable(),striped:L().optional().nullable(),animated:L().optional().nullable()}).optional().nullable()});function qw(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Vw(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function ts(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function ns(e,t,n,r){return r==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function Yw({pct:e,label:t,trackColor:n,fillColor:r,barHeight:o,barRadius:a,striped:i,animated:l,ariaLabel:s,value:u,max:c}){const h=i&&l;return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[h&&m.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}}"}}),m.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{width:"100%",height:o,borderRadius:a,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:m.jsx("div",{className:`ahd-progress-fill${i?" ahd-progress-striped":""}${h?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:a,backgroundColor:r,backgroundImage:i?"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:i?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&m.jsx("span",{children:t})]})}function Kw({pct:e,label:t,trackColor:n,fillColor:r,size:o,strokeWidth:a,textColor:i,fontWeight:l,ariaLabel:s,value:u,max:c}){const h=(o-a)/2,d=2*Math.PI*h,f=d*(1-e/100),p=o/2;return m.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{position:"relative",width:o,height:o,display:"inline-flex"},children:[m.jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,children:[m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:n,strokeWidth:a}),m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:a,strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:f,transform:`rotate(-90 ${p} ${p})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&m.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:i,fontWeight:l??600},children:t})]})}function Jw({steps:e,activeIndex:t,trackColor:n,fillColor:r,stepSize:o,stepGap:a,label:i,ariaLabel:l,value:s,max:u}){return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[m.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":u,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:a},children:Array.from({length:e}).map((c,h)=>m.jsx("span",{"data-active":h<t?"true":"false",style:{width:o,height:o,borderRadius:"50%",backgroundColor:h<t?r:n,transition:"background-color 200ms ease",display:"inline-block"}},h))}),i!=null&&m.jsx("span",{children:i})]})}function Xw({style:e,props:t}){const n=V.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.variant)??"linear",o=Math.max(1,ts(t==null?void 0:t.max,100)),a=Math.max(0,Math.min(o,ts(t==null?void 0:t.value,0))),i=a/o*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",u=l?ns(i,a,o,s):null,c=`Progress: ${ns(i,a,o,"percent")}`,h=z((e==null?void 0:e.trackColor)??"#e5e7eb","track"),d=se((e==null?void 0:e.fillColor)??"#3F73FF")??"#3F73FF",f=z((e==null?void 0:e.textColor)??"#262626","trackText"),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:f,fontFamily:qw(e==null?void 0:e.fontFamily),fontSize:Vw((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"},k=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),S=Math.round(i/100*k);return m.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:r==="circular"?m.jsx(Kw,{pct:i,label:u,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:c,value:a,max:o}):r==="steps"?m.jsx(Jw,{steps:k,activeIndex:S,trackColor:h,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:u,ariaLabel:c,value:a,max:o}):m.jsx(Yw,{pct:i,label:u,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:c,value:a,max:o})})}const Qw=C({responsive:Ye,style:C({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),borderRadius:D([g(),$(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(200).optional().nullable(),viewportHeight:g().min(40).max(1200).optional().nullable()}).optional().nullable(),props:C({direction:T(["left","right","up","down"]).optional().nullable(),speed:g().min(5).max(200).optional().nullable(),pauseOnHover:L().optional().nullable(),repeat:g().min(2).max(6).optional().nullable(),fadeEdges:L().optional().nullable(),verticalAlign:T(["top","middle","bottom"]).optional().nullable(),items:re(C({contentChildrenIds:re($()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),eS=40,tS=32,nS=200,ru=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,ou=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,rS=e=>Math.max(2,Math.round(1200/e)),oS=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),au=e=>e==="up"||e==="down",aS=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",Yr=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function iS(e,t){return{speed:ou(t==null?void 0:t.speed,eS),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??tS,viewportHeight:ru(e==null?void 0:e.viewportHeight,nS)}}function lS(e,t,n){var o,a,i,l,s;const r=e==null?void 0:e[t];return{speed:ou((o=r==null?void 0:r.props)==null?void 0:o.speed,n.speed),pauseOnHover:((a=r==null?void 0:r.props)==null?void 0:a.pauseOnHover)??n.pauseOnHover,fadeEdges:((i=r==null?void 0:r.props)==null?void 0:i.fadeEdges)??n.fadeEdges,itemGap:((l=r==null?void 0:r.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:ru((s=r==null?void 0:r.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const sS=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},rs=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${rS(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,cS=(e,t)=>e.fadeEdges?`-webkit-mask-image:${Yr(t)}!important;mask-image:${Yr(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function uS({instanceId:e,direction:t,repeat:n,desktop:r,responsive:o,verticalAlign:a}){const i=`.${e}`,l=au(t),s=l?"column":"row",u=t==="right"||t==="down"?"reverse":"normal",c=l?"flex-start":aS(a),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(!sS(o,x))return"";const w=lS(o,x,r);return`${b}{${i}{${rs(w)};${cS(w,l)}}}`},p=l?`${i} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${i} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${i}{${rs(r)}}`+p+`${i} .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 ${u};will-change:transform}${i} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${c}}${i} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${i}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+f(on,"tablet")+f(et,"mobile")+`@media (prefers-reduced-motion: reduce){${i} .ahd-marquee-track{animation:none}}`}function dS(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 hS(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,r=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:r>0?`${r}px solid ${e}`:void 0}}function fS({style:e,props:t,responsive:n}){const r=V.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),o=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],a=(t==null?void 0:t.direction)??"left",i=oS(t==null?void 0:t.repeat),l=au(a),s=iS(e,t),u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=se(e==null?void 0:e.borderColor),h=e==null?void 0:e.padding,d=e==null?void 0:e.margin,f=((d==null?void 0:d.left)??0)+((d==null?void 0:d.right)??0),p={width:f>0?`calc(100% - ${f}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:u??void 0,...hS(c,e==null?void 0:e.borderWidth),borderRadius:dS(e==null?void 0:e.borderRadius),padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:d?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:Yr(l),maskImage:Yr(l)}:{}},b=(t==null?void 0:t.verticalAlign)??"middle",x=V.useMemo(()=>uS({instanceId:r,direction:a,repeat:i,desktop:s,responsive:n,verticalAlign:b}),[r,a,i,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,b]),w=k=>m.jsx("div",{className:"ahd-marquee-group","aria-hidden":k>0?!0:void 0,children:o.map((S,v)=>m.jsx("div",{className:"ahd-marquee-item",children:(S.contentChildrenIds??[]).map(_=>m.jsx(Me,{id:_},_))},v))},k);return m.jsxs("div",{className:`${r} ahd-marquee`,...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("div",{className:"ahd-marquee-viewport",children:m.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:i}).map((k,S)=>w(S))})})]})}const pS=C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),gS=C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),mS=C({style:C({backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),accentColor:$().optional().nullable(),numberColor:$().optional().nullable(),numberFontWeight:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:D([g(),$(),C({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:pS,margin:gS}).optional().nullable(),props:C({layout:T(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:$().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:L().default(!0),expiredBehavior:T(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:$().default("Offer has ended"),showConfetti:L().default(!1)}).optional().nullable()});function bS(e){return String(Math.max(0,e)).padStart(2,"0")}function xS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,fallbackInk:s="#1f1f1f",fallbackMuted:u="#6b7280",fallbackOnAccent:c="#ffffff"}){const h=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:r,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:h.map(d=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[m.jsx("div",{"data-ahd-timer-unit":d.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:a??s,color:l??c,fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:bS(d.value)}),o&&m.jsx("span",{style:{fontSize:11,color:i??u,textTransform:"uppercase"},children:d.label})]},d.label))})}function vS(e){return String(Math.max(0,e)).padStart(2,"0")}const xa=26,os=2*Math.PI*xa;function kS({value:e,max:t,accentColor:n,numberColor:r,numberFontWeight:o,unit:a,trackColor:i}){const l=t>0?Math.min(1,Math.max(0,e/t)):0,s=os*(1-l);return m.jsxs("svg",{"data-ahd-timer-unit":a,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[m.jsx("circle",{cx:32,cy:32,r:xa,fill:"none",stroke:i,strokeWidth:5}),m.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:xa,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:os,strokeDashoffset:s,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),m.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:o??700,fill:r,children:vS(e)})]})}function wS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,numberFontWeight:s,fallbackInk:u="#1f1f1f",fallbackMuted:c="#6b7280",fallbackAccent:h="#7c3aed",fallbackTrack:d="#e5e7eb"}){const f=a??h,p=l??u,b=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:r,max:60,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:b.map(x=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[m.jsx(kS,{value:x.value,max:x.max,accentColor:f,numberColor:p,numberFontWeight:s,unit:x.label.toLowerCase(),trackColor:d}),o&&m.jsx("span",{style:{fontSize:11,color:i??c,textTransform:"uppercase"},children:x.label})]},x.label))})}function Yt(e){return String(Math.max(0,e)).padStart(2,"0")}function SS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,fallbackInk:l="#1f1f1f",fallbackAccent:s="#7c3aed"}){const u=[{key:"days",text:o?`${e}d`:Yt(e)},{key:"hours",text:o?`${Yt(t)}h`:Yt(t)},{key:"minutes",text:o?`${Yt(n)}m`:Yt(n)},{key:"seconds",text:o?`${Yt(r)}s`:Yt(r)}],c=o?" ":" : ";return m.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":o?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:i??l},children:[m.jsx("span",{style:{color:a??s,marginRight:6},children:"Ends in"}),u.map((h,d)=>m.jsxs(V.Fragment,{children:[d>0&&c,m.jsx("span",{"data-ahd-timer-unit":h.key,children:h.text})]},h.key))]})}function $S(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(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const r=Math.max(0,n-t),o=r<=0,a=Math.floor(r/1e3);return{days:Math.floor(a/86400),hours:Math.floor(a%86400/3600),minutes:Math.floor(a%3600/60),seconds:a%60,completed:o}}function CS({style:e,props:t}){const n=t??{},r=n.layout??"digitalFlip",o=n.showLabels??!0,a=n.expiredBehavior??"showMessage",i=n.expiredMessage||"Offer has ended",l=_S(n.targetDate),s=l.completed,u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=se(e==null?void 0:e.borderColor),h=se(e==null?void 0:e.accentColor),d=se(e==null?void 0:e.textColor),f=se(e==null?void 0:e.numberColor),p=z(null,"timerText"),b=z(null,"timerLabel"),x=se("#7c3aed")??"#7c3aed",w=se("#ffffff")??"#ffffff",k=z(null,"timerTrack"),S=e==null?void 0:e.padding,v=e==null?void 0:e.margin,_=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),y={width:_>0?`calc(100% - ${_}px)`:"100%",boxSizing:"border-box",background:u??void 0,border:c?`1px solid ${c}`:void 0,borderRadius:$S(e==null?void 0:e.borderRadius),padding:S?`${S.top}px ${S.right}px ${S.bottom}px ${S.left}px`:"16px",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0},A={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:o,accentColor:h,textColor:d,numberColor:f,fallbackInk:p,fallbackMuted:b,fallbackAccent:x,fallbackOnAccent:w,fallbackTrack:k,numberFontWeight:e==null?void 0:e.numberFontWeight},I=s&&a==="showMessage",R=s&&a==="hide";return m.jsxs("div",{className:"ahd-timer","data-layout":r,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":a,"data-ahd-timer-expired-message":i,"data-ahd-timer-show-labels":o?"1":"0","data-ahd-timer-confetti":n.showConfetti?"1":"0",...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...y,display:R?"none":void 0},children:[m.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:d??p,display:I?void 0:"none"},children:i}),m.jsxs("div",{"data-ahd-timer-body":!0,style:{display:I?"none":void 0},children:[r==="digitalFlip"&&m.jsx(xS,{...A}),r==="circularProgress"&&m.jsx(wS,{...A}),r==="textInline"&&m.jsx(SS,{...A})]})]})}function iu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var AS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},IS=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,RS=/[&<>"']/g;function TS(e){return AS[e]}function NS(e){return yS[e]}function va(e){return e==null?"":String(e).replace(RS,TS)}function ka(e){return e==null?"":String(e).replace(IS,NS)}va.options=ka.options={};var lu={encode:va,escape:va,decode:ka,unescape:ka,version:"1.0.0-browser"};function su(e){for(var t=Array.prototype.slice.call(arguments,1),n,r;t.length;){n=t.shift();for(r in n)n.hasOwnProperty(r)&&(Object.prototype.toString.call(e[r])==="[object Object]"?e[r]=su(e[r],n[r]):e[r]=n[r])}return e}var ES=su,cu=function(t){return typeof t=="string"?t.toLowerCase():t};function MS(e){return e.reduce(PS,{})}function PS(e,t){return e[t]=!0,e}var uu=MS,OS=uu,LS=["background","base","cite","href","longdesc","src","usemap"],zS={uris:OS(LS)},BS=uu,jS=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"],du={voids:BS(jS)},DS=lu,as=cu,FS=du,HS=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,GS=/^<\s*\/\s*([\w:-]+)[^>]*>/,WS=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,US=/^</,ZS=/^<\s*\//;function qS(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}function VS(e,t){for(var n=qS(),r=e,o;e;)a();h();function a(){o=!0,i();var d=e===r;r=e,d&&(e="")}function i(){e.substr(0,4)==="<!--"?s():ZS.test(e)?l(GS,h):US.test(e)&&l(HS,c),u()}function l(d,f){var p=e.match(d);p&&(e=e.substring(p[0].length),p[0].replace(d,f),o=!1)}function s(){var d=e.indexOf("-->");d>=0&&(t.comment&&t.comment(e.substring(4,d)),e=e.substring(d+3),o=!1)}function u(){if(o){var d,f=e.indexOf("<");f>=0?(d=e.substring(0,f),e=e.substring(f)):(d=e,e=""),t.chars&&t.chars(d)}}function c(d,f,p,b){var x={},w=as(f),k=FS.voids[w]||!!b;p.replace(WS,S),k||n.push(w),t.start&&t.start(w,x,k);function S(v,_,y,A,I){y===void 0&&A===void 0&&I===void 0?x[_]=void 0:x[_]=DS.decode(y||A||I||"")}}function h(d,f){var p,b=0,x=as(f);if(x)for(b=n.length-1;b>=0&&n[b]!==x;b--);if(b>=0){for(p=n.length-1;p>=b;p--)t.end&&t.end(n[p]);n.length=b}}}var YS=VS,KS=lu,Fo=cu,JS=zS,XS=du;function QS(e,t){var n,r=t||{};return h(),{start:a,end:i,chars:s};function o(d){e.push(d)}function a(d,f,p){var b=Fo(d);if(n.ignoring){u(b);return}if((r.allowedTags||[]).indexOf(b)===-1){u(b);return}if(r.filter&&!r.filter({tag:b,attrs:f})){u(b);return}o("<"),o(b),Object.keys(f).forEach(x),o(p?"/>":">");function x(w){var k=f[w],S=(r.allowedClasses||{})[b]||[],v=(r.allowedAttributes||{})[b]||[],_,y=Fo(w);y==="class"&&v.indexOf(y)===-1?(k=k.split(" ").filter(A).join(" ").trim(),_=k.length):_=v.indexOf(y)!==-1&&(JS.uris[y]!==!0||l(k)),_&&(o(" "),o(w),typeof k=="string"&&(o('="'),o(KS.encode(k)),o('"')));function A(I){return S&&S.indexOf(I)!==-1}}}function i(d){var f=Fo(d),p=(r.allowedTags||[]).indexOf(f)!==-1;p&&n.ignoring===!1?(o("</"),o(f),o(">")):c(f)}function l(d){var f=d[0];if(f==="#"||f==="/")return!0;var p=d.indexOf(":");if(p===-1)return!0;var b=d.indexOf("?");if(b!==-1&&p>b)return!0;var x=d.indexOf("#");if(x!==-1&&p>x)return!0;return r.allowedSchemes.some(w);function w(k){return d.indexOf(k+":")===0}}function s(d){n.ignoring===!1&&o(r.transformText?r.transformText(d):d)}function u(d){XS.voids[d]||(n.ignoring===!1?n={ignoring:d,depth:1}:n.ignoring===d&&n.depth++)}function c(d){n.ignoring===d&&--n.depth<=0&&h()}function h(){n={ignoring:!1,depth:0}}}var e$=QS,t$={allowedAttributes:{a:["href","name","target","title","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null},n$=t$,r$=ES,o$=YS,a$=e$,hu=n$;function fu(e,t,n){var r=[],o=n===!0?t:r$({},hu,t),a=a$(r,o);return o$(e,a),r.join("")}fu.defaults=hu;var i$=fu;const l$=iu(i$);function gi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var an=gi();function pu(e){an=e}var en={exec:()=>null};function fn(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function fe(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(qe.caret,"$1"),n=n.replace(o,i),r},getRegex:()=>new RegExp(n,t)};return r}var s$=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),qe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:fn(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:fn(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:fn(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:fn(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:fn(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:fn(e=>new RegExp(`^ {0,${e}}>`))},c$=/^(?:[ \t]*(?:\n|$))+/,u$=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,d$=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ar=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,h$=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,mi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,gu=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,mu=fe(gu).replace(/bull/g,mi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),f$=fe(gu).replace(/bull/g,mi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),bi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,p$=/^[^\n]+/,xi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,g$=fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),m$=fe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,mi).getRegex(),ho="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,b$=fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vi).replace("tag",ho).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bu=fe(bi).replace("hr",ar).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ho).getRegex(),x$=fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",bu).getRegex(),ki={blockquote:x$,code:u$,def:g$,fences:d$,heading:h$,hr:ar,html:b$,lheading:mu,list:m$,newline:c$,paragraph:bu,table:en,text:p$},is=fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ar).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ho).getRegex(),v$={...ki,lheading:f$,table:is,paragraph:fe(bi).replace("hr",ar).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",is).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ho).getRegex()},k$={...ki,html:fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:en,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fe(bi).replace("hr",ar).replace("heading",` *#{1,6} *[^
285
- ]`).replace("lheading",mu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},w$=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,S$=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,xu=/^( {2,}|\\)\n(?!\s*$)/,$$=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Rn=/[\p{P}\p{S}]/u,fo=/[\s\p{P}\p{S}]/u,wi=/[^\s\p{P}\p{S}]/u,_$=fe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,fo).getRegex(),vu=/(?!~)[\p{P}\p{S}]/u,C$=/(?!~)[\s\p{P}\p{S}]/u,A$=/(?:[^\s\p{P}\p{S}]|~)/u,y$=fe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",s$?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ku=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,I$=fe(ku,"u").replace(/punct/g,Rn).getRegex(),R$=fe(ku,"u").replace(/punct/g,vu).getRegex(),wu="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",T$=fe(wu,"gu").replace(/notPunctSpace/g,wi).replace(/punctSpace/g,fo).replace(/punct/g,Rn).getRegex(),N$=fe(wu,"gu").replace(/notPunctSpace/g,A$).replace(/punctSpace/g,C$).replace(/punct/g,vu).getRegex(),E$=fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,wi).replace(/punctSpace/g,fo).replace(/punct/g,Rn).getRegex(),M$=fe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Rn).getRegex(),P$="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",O$=fe(P$,"gu").replace(/notPunctSpace/g,wi).replace(/punctSpace/g,fo).replace(/punct/g,Rn).getRegex(),L$=fe(/\\(punct)/,"gu").replace(/punct/g,Rn).getRegex(),z$=fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),B$=fe(vi).replace("(?:-->|$)","-->").getRegex(),j$=fe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",B$).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Kr=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,D$=fe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Kr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Su=fe(/^!?\[(label)\]\[(ref)\]/).replace("label",Kr).replace("ref",xi).getRegex(),$u=fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",xi).getRegex(),F$=fe("reflink|nolink(?!\\()","g").replace("reflink",Su).replace("nolink",$u).getRegex(),ls=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Si={_backpedal:en,anyPunctuation:L$,autolink:z$,blockSkip:y$,br:xu,code:S$,del:en,delLDelim:en,delRDelim:en,emStrongLDelim:I$,emStrongRDelimAst:T$,emStrongRDelimUnd:E$,escape:w$,link:D$,nolink:$u,punctuation:_$,reflink:Su,reflinkSearch:F$,tag:j$,text:$$,url:en},H$={...Si,link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",Kr).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Kr).getRegex()},wa={...Si,emStrongRDelimAst:N$,emStrongLDelim:R$,delLDelim:M$,delRDelim:O$,url:fe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ls).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:fe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ls).getRegex()},G$={...wa,br:fe(xu).replace("{2,}","*").getRegex(),text:fe(wa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Sr={normal:ki,gfm:v$,pedantic:k$},Ln={normal:Si,gfm:wa,breaks:G$,pedantic:H$},W$={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ss=e=>W$[e];function St(e,t){if(t){if(qe.escapeTest.test(e))return e.replace(qe.escapeReplace,ss)}else if(qe.escapeTestNoEncode.test(e))return e.replace(qe.escapeReplaceNoEncode,ss);return e}function cs(e){try{e=encodeURI(e).replace(qe.percentDecode,"%")}catch{return null}return e}function us(e,t){var a;let n=e.replace(qe.findPipe,(i,l,s)=>{let u=!1,c=l;for(;--c>=0&&s[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split(qe.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!((a=r.at(-1))!=null&&a.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(qe.slashPipe,"|");return r}function jt(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function ds(e){let t=e.split(`
279
+ ${xe}
280
+ `;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:te,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:ve}}),n.map((ee,Y)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${Y}`,className:"pacc-cb",defaultChecked:Y===a},Y)),m.jsx("div",{className:"pacc-wrap",children:n.map((ee,Y)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${Y}`,className:"pacc-card",children:[(ee.cardChildrenIds??[]).map(K=>m.jsx(Pe,{id:K},K)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-right"})})]}),m.jsx("div",{className:"pacc-detail",children:(ee.detailChildrenIds??[]).map(K=>m.jsx(Pe,{id:K},K))})]},Y))})]})}const ww=160,Sw=A({label:$().optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),$w=A({responsive:Ye,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:F([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tabActiveColor:$().optional().nullable(),tabActiveBgColor:$().optional().nullable(),tabInactiveTextColor:$().optional().nullable(),tabInactiveBgColor:$().optional().nullable(),tabInactiveBorderColor:$().optional().nullable(),tabInactiveBorderWidth:g().optional().nullable(),tabTextColor:$().optional().nullable(),tabBgColor:$().optional().nullable(),tabBorderRadius:g().optional().nullable(),tabGap:g().optional().nullable(),contentGap:g().optional().nullable(),navBorderColor:$().optional().nullable(),navWidth:g().optional().nullable(),fontSize:F([$(),g()]).optional().nullable(),lineHeight:F([$(),g()]).optional().nullable(),activeFontSize:F([$(),g()]).optional().nullable(),showActiveBorder:L().optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable()}).optional().nullable(),props:A({orientation:T(["horizontal","vertical"]).optional().nullable(),orientationTablet:T(["horizontal","vertical"]).optional().nullable(),orientationMobile:T(["horizontal","vertical"]).optional().nullable(),behavior:T(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:T(["left","center","right"]).optional().nullable(),dropdown:L().optional().nullable(),dropdownTablet:L().optional().nullable(),dropdownMobile:L().optional().nullable(),activeTabIndex:g().optional().nullable(),stickyNav:L().optional().nullable(),items:oe(Sw).min(1).max(20).optional().nullable()}).optional().nullable()});function _w(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Cw(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 rs(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const Aw={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},yw={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function Ct(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Kr(e,t=!1){const n=t?"!important":"";return e?Ct(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function Jr(e,t=!1){const n=t?"!important":"";return Ct(e)?`color:transparent${n}`:`color:${e}${n}`}function Xr(e,t=!1){const n=t?"!important":"";return Ct(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function ka(e,t,n,r=!1){const o=r?"!important":"";return Ct(e)?`border-${n}-style:solid${o};border-${n}-width:${t}${o};border-image-source:${e}${o};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${o}`:`border-${n}-color:${e}${o}`}function Iw(e,t,n=!1){const r=n?"!important":"";return e?Ct(e)?`box-sizing:border-box${r};border:${t}px solid transparent${r};border-image-source:${e}${r};border-image-slice:1${r};box-shadow:none${r}`:`box-shadow:inset 0 0 0 ${t}px ${e}${r}`:`box-shadow:none${r}`}function gn(e,t,n,r,o,a,i,l){const s=Ct(l),u=s?ka(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,c=s?ka(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:${r};align-items:center;justify-content:${a};width:100%;${u};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:${o};margin-left:0}`;const h=`${i??ww}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:${o};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;${c};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:${r};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 Rw(e,t,n,r,o,a,i,l,s,u,c,h,d,f,p,b,x=1){let w="";for(let _=0;_<p;_++){const y=`${e} #${f}-r${_}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${_+1})`;w+=`${y}{${Kr(i,!0)};${Jr(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${Xr(l,!0)}}${y}:hover{${Kr(i,!0)}}`}const k=`${e} > .ahd-tabs-dd-wrap`,S=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${k}:focus-within`,v=s?`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${k}{display:block!important;position:relative!important;width:100%!important}${k} > .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:${r};background:${o};color:${a};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+v+`${k} > .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}${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${k} > .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:${r}!important;background:var(--pp-surface,#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}${S} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${k} > .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;${Jr(u??"inherit",!0)};background:${c??"transparent"}!important;box-shadow:${h}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${k} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${Xr(u??"inherit",!0)}}${k} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${k} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${c??"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 Do(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 Tw({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",r=(t==null?void 0:t.orientationTablet)??n,o=(t==null?void 0:t.orientationMobile)??"vertical",i=((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]),u=U.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),c=se(e==null?void 0:e.tabActiveColor),h=se(e==null?void 0:e.tabActiveBgColor),d=se(e==null?void 0:e.tabInactiveTextColor),f=se(e==null?void 0:e.tabInactiveBgColor),p=se(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",w=se(e==null?void 0:e.tabTextColor),k=se((e==null?void 0:e.tabBgColor)??"transparent"),S=se(e==null?void 0:e.navBorderColor),v=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,I="var(--ahd-tabs-tab-gap,"+_+")",R="var(--ahd-tabs-content-gap,"+y+")",E=(e==null?void 0:e.activeFontSize)!=null?rs(e.activeFontSize):void 0,M=((e==null?void 0:e.showActiveBorder)??!0)&&!h?c||"currentColor":"transparent",P=(t==null?void 0:t.tabsAlign)??"left",B=P==="center"?"center":P==="right"?"flex-end":"flex-start",D=(t==null?void 0:t.dropdown)??!1,H=(t==null?void 0:t.dropdownTablet)??D,G=(t==null?void 0:t.dropdownMobile)??H,W=e==null?void 0:e.padding,J=e==null?void 0:e.margin,X=((J==null?void 0:J.left)??0)+((J==null?void 0:J.right)??0),q=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},te=`${q.top}px ${q.right}px ${q.bottom}px ${q.left}px`,$e=Ct(e==null?void 0:e.borderColor),Ce=e!=null&&e.borderColor?$e?{borderStyle:"solid",borderColor:"transparent",borderWidth:te,borderImageSource:e.borderColor,borderImageSlice:1}:{borderStyle:"solid",borderColor:e.borderColor,borderWidth:te}:{},xe={width:X>0?`calc(100% - ${X}px)`:"100%",boxSizing:"border-box",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),...Ce,borderRadius:Cw(e==null?void 0:e.borderRadius),padding:W?`${W.top}px ${W.right}px ${W.bottom}px ${W.left}px`:void 0,margin:J?`${J.top}px ${J.right}px ${J.bottom}px ${J.left}px`:void 0,fontFamily:_w(e==null?void 0:e.fontFamily),fontSize:rs(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":S??"transparent"},ve=()=>s.map((j,V)=>m.jsx("input",{type:"radio",id:`${u}-r${V}`,name:u,className:"ahd-tabs-radio",defaultChecked:V===0,style:Aw},V)),ee=U.useMemo(()=>{const j=`.${u}`,V=c||"currentColor",pe=w||"inherit",ke=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,ge=`${ke} > .ahd-tabs-label-text`,fe=`${j} > .ahd-tabs-panels > .ahd-tabs-panel`,Ie=d??pe;let ae=`${ke}{${Jr(Ie)};${Kr(f)};${Iw(p,b)};border-radius:${x}}${ge}{${Xr(Ie)}}`+(i?"":`${fe}{display:none}`)+`${j} > .ahd-tabs-dd-wrap{display:contents}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((yt,Ge)=>{const et=`#${u}-r${Ge}:checked`,ot=`${et} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${Ge+1})`,zt=`${et} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${Ge+1})`,It=Ct(M),rt=`${Jr(V,!0)};${Kr(h,!0)};box-shadow:none!important`+(It?`;${ka(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`);ae+=`${ot}{${rt}}`,ae+=`${ot} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${E??"inherit"})!important;${Xr(V,!0)}}`,i||(ae+=`${zt}{display:block!important}`),ae+=`${et} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${Ge+1}){display:inline}`}),ae+=gn(j,n,v,I,R,B,C!=null?String(C):void 0,S??void 0),r!==n&&(ae+=`${Fo}{${gn(j,r,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`),o!==r&&(ae+=`${Ho}{${gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`);const Oe=p||S||z(null,"tabsRing"),De=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",me=z(e==null?void 0:e.tabBgColor,{role:"surface",seeds:[],nullFallback:"#fff"}),Fe=w??"inherit",He=h??"transparent",Q=c??"inherit",je=p?Ct(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",ze=Ct(p)?p:void 0,ie=Rw(j,Oe,R,De,me,Fe,He,Q,E,d,f,je,I,u,s.length,ze,b);return l&&(ae+=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${j}){position:sticky;top:0;z-index:50}`),D?(ae+=ie,H||(ae+=`${Fo}{${Do(j,x)}${gn(j,r,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`),!G&&H&&(ae+=`${Ho}{${Do(j,x)}${gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`)):(H&&(ae+=`${Fo}{${ie}}`),G!==H&&(ae+=`${Ho}{${G?ie:Do(j,x)+gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`)),ae},[s,u,c,h,x,w,E,M,n,r,o,i,v,S,C,I,R,B,d,f,p,b,D,H,G,l]),Y=j=>i?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:j===0?void 0:R}:{display:j===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},K=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return m.jsxs("div",{className:`${u} ahd-tabs ${K}${l?" ahd-tabs-sticky":""}${i?" ahd-tabs-scroll-sections":""}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:xe,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),ve(),m.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[m.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[m.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((j,V)=>m.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":V,children:j.label??`Tab ${V+1}`},V))}),m.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),m.jsx("div",{className:"ahd-tabs-nav",style:{background:k,...l?{position:"sticky",top:0}:{}},children:s.map((j,V)=>m.jsx("label",{htmlFor:`${u}-r${V}`,className:"ahd-tabs-label","data-ahd-tab-index":V,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:m.jsx("span",{className:"ahd-tabs-label-text",style:yw,children:j.label??`Tab ${V+1}`})},V))})]}),m.jsx("div",{className:"ahd-tabs-panels",children:s.map((j,V)=>m.jsx("div",{id:`${u}-panel-${V}`,className:"ahd-tabs-panel","data-ahd-tab-index":V,style:Y(V),children:(j.contentChildrenIds??[]).map(pe=>m.jsx(Pe,{id:pe},pe))},V))})]})}const Fo=`@media (max-width:${Ue}px)`,Ho=`@media (max-width:${Ve}px)`,Ew=A({contentChildrenIds:oe($()).optional().nullable()}),Nw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:F([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),slideGap:g().optional().nullable(),arrowColor:$().optional().nullable(),arrowBgColor:$().optional().nullable(),arrowBorderColor:$().optional().nullable(),arrowSize:g().min(16).max(80).optional().nullable(),dotColor:$().optional().nullable(),dotActiveColor:$().optional().nullable(),dotSize:g().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({slidesPerView:g().min(1).max(6).optional().nullable(),slidesPerViewTablet:g().min(1).max(6).optional().nullable(),slidesPerViewMobile:g().min(1).max(6).optional().nullable(),showArrows:L().optional().nullable(),showDots:L().optional().nullable(),autoplay:L().optional().nullable(),autoplayInterval:g().min(500).max(2e4).optional().nullable(),loop:L().optional().nullable(),transitionMs:g().min(0).max(3e3).optional().nullable(),items:oe(Ew).min(1).max(20).optional().nullable()}).optional().nullable()});function Mw(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 Pw="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",Ow="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",os=({d:e,size:t=20})=>m.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{d:e})});function Lw({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]),r=U.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),o=Math.max(1,(t==null?void 0:t.slidesPerView)??1),a=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(o,2)),i=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,u=(t==null?void 0:t.autoplay)??!1,c=(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=z(e==null?void 0:e.arrowColor,"carouselArrow"),b=z(e==null?void 0:e.arrowBgColor,"carouselArrowBg"),x=z(e==null?void 0:e.arrowBorderColor,"carouselArrowBorder"),w=(e==null?void 0:e.arrowSize)??40,k=z(e==null?void 0:e.dotColor,"carouselDot"),S=z(e==null?void 0:e.dotActiveColor,"carouselDotActive"),v=(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,I=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),R={width:I>0?`calc(100% - ${I}px)`:"100%",boxSizing:"border-box",position:"relative",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:Mw(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=U.useMemo(()=>{const B=`.${r}`,D=H=>`calc((100% - ${f*(H-1)}px) / ${H})`;return`${B} .ahd-carousel-viewport{overflow:hidden;width:100%}${B} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${f}px);transition:transform ${d}ms ease;will-change:transform}${B} .ahd-carousel-slide{flex:0 0 ${D(o)};min-width:0;box-sizing:border-box}${B} .ahd-carousel-prev svg,${B} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${_}px);height:var(--ahd-carousel-chevron-size,${_}px)}@media (max-width:${Ue}px){${B} .ahd-carousel-slide{flex-basis:${D(a)}}}@media (max-width:${Ve}px){${B} .ahd-carousel-slide{flex-basis:${D(i)}}}`},[r,f,d,o,a,i,_]),O={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},M=Math.min(o,a,i),P=Math.max(1,n.length-M+1);return m.jsxs("div",{className:`${r} ahd-carousel`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:R,"data-per-view":o,"data-per-view-tablet":a,"data-per-view-mobile":i,"data-autoplay":u?"1":"0","data-autoplay-interval":c,"data-loop":h?"1":"0",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&m.jsx("button",{type:"button",className:"ahd-carousel-prev",style:O,"aria-label":"Previous slide",children:m.jsx(os,{d:Pw,size:_})}),m.jsx("div",{className:"ahd-carousel-viewport",children:m.jsx("div",{className:"ahd-carousel-track",children:n.map((B,D)=>m.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":D,children:(B.contentChildrenIds??[]).map(H=>m.jsx(Pe,{id:H},H))},D))})}),l&&m.jsx("button",{type:"button",className:"ahd-carousel-next",style:O,"aria-label":"Next slide",children:m.jsx(os,{d:Ow,size:_})})]}),s&&P>1&&m.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":k,"data-dot-active-color":S,children:Array.from({length:P}).map((B,D)=>m.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":D,"aria-label":`Go to slide ${D+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${v}px)`,height:`var(--ahd-carousel-dot-size, ${v}px)`,minWidth:`var(--ahd-carousel-dot-size, ${v}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:D===0?S:k,backgroundImage:"none"}},D))})]})}const zw=T(["left","center","right","space-between"]),jw=A({contentChildrenIds:oe($()).optional().nullable()}),Bw=A({childrenIds:oe($())}),Dw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:F([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(120).optional().nullable(),columnsGap:g().min(0).max(120).optional().nullable(),rowsGap:g().min(0).max(120).optional().nullable(),controlGap:g().min(0).max(120).optional().nullable(),controlAlign:zw.optional().nullable(),buttonSize:g().min(20).max(72).optional().nullable(),buttonGap:g().min(0).max(40).optional().nullable(),buttonRadius:g().min(0).max(999).optional().nullable(),buttonBg:$().optional().nullable(),buttonColor:$().optional().nullable(),buttonBorderColor:$().optional().nullable(),activeButtonBg:$().optional().nullable(),activeButtonColor:$().optional().nullable(),activeButtonBorderColor:$().optional().nullable(),arrowColor:$().optional().nullable(),fontSize:g().min(8).max(40).optional().nullable(),fontFamily:$().optional().nullable()}).optional().nullable(),props:A({items:oe(jw).min(1).max(50).optional().nullable(),cells:oe(Bw).optional().nullable(),columnsCount:g().int().min(1).max(12).optional().nullable(),rowsCount:g().int().min(1).max(24).optional().nullable(),columnsCountTablet:g().int().min(1).max(12).optional().nullable(),columnsCountMobile:g().int().min(1).max(12).optional().nullable(),rowsCountTablet:g().int().min(1).max(24).optional().nullable(),rowsCountMobile:g().int().min(1).max(24).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:T(["left","center","right"]).optional().nullable(),cellsPerPage:g().int().min(1).max(100).optional().nullable(),repeatableEnabled:L().optional().nullable(),pageParam:$().min(1).max(40).optional().nullable(),syncUrl:L().optional().nullable(),showNumbers:L().optional().nullable(),showPrevNext:L().optional().nullable(),showFirstLast:L().optional().nullable(),maxVisiblePages:g().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:L().optional().nullable(),explicitFirstPage:L().optional().nullable()}).optional().nullable()}),wa={columnsCount:2,rowsCount:2};function Go(e,t="desktop"){const n=wa,r=(e==null?void 0:e.columnsCount)??n.columnsCount,o=(e==null?void 0:e.rowsCount)??n.rowsCount,a=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??r:r,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;let l;Array.isArray(e==null?void 0:e.cells)?l=e.cells:Array.isArray(e==null?void 0:e.items)?l=e.items.map(c=>({childrenIds:Array.isArray(c==null?void 0:c.contentChildrenIds)?c.contentChildrenIds:[]})):l=[];const s=Math.max(1,r*o,a*i,l.length),u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=l[h])==null?void 0:d.childrenIds)?l[h].childrenIds:[]}});return{columnsCount:a,rowsCount:i,cells:u}}function Wo(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)??wa.columnsCount,r=(e==null?void 0:e.rowsCount)??wa.rowsCount,o=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;return Math.max(1,o*a)}function Fw(e,t,n){const r=Math.max(1,e),o=Math.min(Math.max(1,n),r*Math.max(1,t));return Math.max(1,Math.ceil(o/r))}function Hw(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const r=[];for(let o=0;o<e.length;o+=n)r.push(e.slice(o,o+n));return r}const Gw={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 Ww({style:e,props:t}){const n=Gw;return{pageParam:((t==null?void 0:t.pageParam)??n.pageParam).trim()||n.pageParam,syncUrl:(t==null?void 0:t.syncUrl)??n.syncUrl,showNumbers:(t==null?void 0:t.showNumbers)??n.showNumbers,showPrevNext:(t==null?void 0:t.showPrevNext)??n.showPrevNext,showFirstLast:(t==null?void 0:t.showFirstLast)??n.showFirstLast,maxVisiblePages:(()=>{const r=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return r<=0?0:Math.max(5,r)})(),scrollToTopOnChange:(t==null?void 0:t.scrollToTopOnChange)??n.scrollToTopOnChange,explicitFirstPage:(t==null?void 0:t.syncUrl)??n.syncUrl,prevLabel:(t==null?void 0:t.prevLabel)??n.prevLabel,nextLabel:(t==null?void 0:t.nextLabel)??n.nextLabel,firstLabel:(t==null?void 0:t.firstLabel)??n.firstLabel,lastLabel:(t==null?void 0:t.lastLabel)??n.lastLabel,itemGap:(e==null?void 0:e.itemGap)??n.itemGap,controlGap:(e==null?void 0:e.controlGap)??n.controlGap,controlAlign:(e==null?void 0:e.controlAlign)??n.controlAlign,buttonSize:(e==null?void 0:e.buttonSize)??n.buttonSize,buttonGap:(e==null?void 0:e.buttonGap)??n.buttonGap,buttonRadius:(e==null?void 0:e.buttonRadius)??n.buttonRadius,buttonBg:(e==null?void 0:e.buttonBg)??n.buttonBg,buttonColor:(e==null?void 0:e.buttonColor)??n.buttonColor,buttonBorderColor:(e==null?void 0:e.buttonBorderColor)??n.buttonBorderColor,activeButtonBg:(e==null?void 0:e.activeButtonBg)??n.activeButtonBg,activeButtonColor:(e==null?void 0:e.activeButtonColor)??n.activeButtonColor,activeButtonBorderColor:(e==null?void 0:e.activeButtonBorderColor)??n.activeButtonBorderColor,arrowColor:(e==null?void 0:e.arrowColor)??n.arrowColor,fontSize:(e==null?void 0:e.fontSize)??n.fontSize,fontFamily:(e==null?void 0:e.fontFamily)??void 0}}function Uw(e){return Math.max(1,e)}function Zw(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,u)=>u+1);const r=[],o=Math.max(1,n-2),a=Math.floor(o/2);let i=Math.max(2,e-a),l=Math.min(t-1,i+o-1);i=Math.max(2,Math.min(i,l-o+1)),r.push(1),i>2&&r.push("ellipsis");for(let s=i;s<=l;s++)r.push(s);return l<t-1&&r.push("ellipsis"),r.push(t),r}function qw(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 Vw({style:e,props:t}){const n=Ww({style:e,props:t}),r=Go(t,"desktop"),o=Go(t,"tablet"),a=Go(t,"mobile"),i=Math.max(Wo(t,"desktop"),Wo(t,"tablet"),Wo(t,"mobile")),l=U.useMemo(()=>r.cells.length>=i?r.cells:Array.from({length:i},(G,W)=>r.cells[W]??{childrenIds:[]}),[r.cells,i]),s=U.useMemo(()=>Hw(l,i),[l,i]),u=Uw(s.length),c=(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(()=>Zw(1,u,n.maxVisiblePages),[u,n.maxVisiblePages]),p=hi(),b=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),x=p(e==null?void 0:e.borderColor),w=z(n.buttonBg,"paginationBg"),k=z(n.buttonColor,"paginationText"),S=z(n.buttonBorderColor,"paginationBorder"),v=z(n.arrowColor,"paginationText"),_=p(n.activeButtonBg),y=p(n.activeButtonColor),C=p(n.activeButtonBorderColor),I=e==null?void 0:e.padding,R=e==null?void 0:e.margin,E=((R==null?void 0:R.left)??0)+((R==null?void 0:R.right)??0),O={width:E>0?`calc(100% - ${E}px)`:"100%",boxSizing:"border-box",background:b??void 0,border:x?`1px solid ${x}`:void 0,borderRadius:qw(e==null?void 0:e.borderRadius),padding:I?`${I.top}px ${I.right}px ${I.bottom}px ${I.left}px`:void 0,margin:R?`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`:void 0,fontFamily:n.fontFamily},M=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",P={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 ${S}`,backgroundColor:w,backgroundImage:"none",color:k,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},B={...P,color:v},D=U.useMemo(()=>{const G=X=>`grid-template-columns:repeat(${X.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${Fw(X.columnsCount,X.rowsCount,i)},auto)`,W=(X,q)=>{const te=Math.min(Math.max(1,q.columnsCount*q.rowsCount),Math.max(1,i));return te>=i?"":`${X} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${te+1}){display:none}`},J=`.${d}`;return`${J} .ahd-pgn-item{display:grid;${G(r)};column-gap:${c}px;row-gap:${h}px}${J} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+W(J,r)+`@media (max-width:${Ue}px){${J} .ahd-pgn-item{${G(o)}}${J} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+W(J,o)+`}@media (max-width:${Ve}px){${J} .ahd-pgn-item{${G(a)}}${J} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+W(J,a)+"}"},[d,r,o,a,i,c,h,n.itemGap]),H=(G,W,J)=>m.jsx("button",{type:"button",className:`ahd-pgn-btn ${G}`,"data-ahd-page":J,style:B,"aria-label":W,children:W});return m.jsxs("div",{className:`${d} ahd-pagination`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:O,"data-total-pages":u,"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":w,"data-btn-color":k,"data-btn-border":S,"data-active-bg":_,"data-active-color":y,"data-active-border":C,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:D}}),m.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((G,W)=>m.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":W,style:W===0?void 0:{display:"none"},children:G.map((J,X)=>m.jsx("div",{className:"ahd-pgn-cell",children:(J.childrenIds??[]).map(q=>m.jsx(Pe,{id:q},q))},X))},W))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&m.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:M,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&&H("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&H("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&m.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((G,W)=>G==="ellipsis"?m.jsx("span",{className:"ahd-pgn-ellipsis",style:{...P,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${W}`):m.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":G,"aria-label":`Page ${G}`,"aria-current":G===1?"true":void 0,style:G===1?{...P,backgroundColor:_,color:y,border:`1px solid ${C}`}:P,children:G},G))}),n.showPrevNext&&H("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&H("ahd-pgn-last",n.lastLabel,u)]})]})}const Yw=A({style:A({starColor:$().optional().nullable(),starEmptyColor:$().optional().nullable(),starSize:g().min(8).max(80).optional().nullable(),starGap:g().min(0).max(40).optional().nullable(),textColor:$().optional().nullable(),fontSize:F([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({value:F([g(),$()]).optional().nullable(),max:F([g(),$()]).optional().nullable(),showValue:L().optional().nullable()}).optional().nullable()}),as="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 Kw(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Jw(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Xw({fillPct:e,size:t,filledColor:n,emptyColor:r}){return m.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:[m.jsx("svg",{viewBox:"0 0 24 24",fill:r,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:m.jsx("path",{d:as})}),m.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:m.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:m.jsx("path",{d:as})})})]})}function Qw({style:e,props:t}){const n=U.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),r=(w,k)=>{if(typeof w=="number")return Number.isFinite(w)?w:k;const S=parseFloat(String(w??""));return Number.isFinite(S)?S:k},o=Math.max(1,Math.min(10,Math.round(r(t==null?void 0:t.max,5)))),a=Math.max(0,Math.min(o,r(t==null?void 0:t.value,0))),i=(t==null?void 0:t.showValue)??!0,l=se((e==null?void 0:e.starColor)??"#facc15")??"#facc15",s=z((e==null?void 0:e.starEmptyColor)??"#e5e7eb","track"),u=(e==null?void 0:e.starSize)??24,c=(e==null?void 0:e.starGap)??4,h=z((e==null?void 0:e.textColor)??"#262626","trackText"),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, ${c}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:h,fontFamily:Kw(e==null?void 0:e.fontFamily),fontSize:Jw(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=w=>{const k=a-w;return k>=1?100:k>=.5?50:k>0?Math.round(k*100):0};return m.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[m.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${c}px)`},children:Array.from({length:o}).map((w,k)=>m.jsx(Xw,{fillPct:x(k),size:u,filledColor:l,emptyColor:s},k))}),i&&m.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(a)?a:a.toFixed(1),m.jsxs("span",{style:{opacity:.55},children:["/",o]})]})]})}const eS=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tS=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),nS=A({style:A({trackColor:$().optional().nullable(),fillColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:F([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),barHeight:g().min(2).max(60).optional().nullable(),barRadius:g().min(0).max(40).optional().nullable(),circleSize:g().min(40).max(320).optional().nullable(),strokeWidth:g().min(2).max(40).optional().nullable(),stepSize:g().min(4).max(48).optional().nullable(),stepGap:g().min(0).max(40).optional().nullable(),padding:eS,margin:tS}).optional().nullable(),props:A({variant:T(["linear","circular","steps"]).optional().nullable(),value:F([g(),$()]).optional().nullable(),max:F([g(),$()]).optional().nullable(),showLabel:L().optional().nullable(),labelFormat:T(["percent","fraction"]).optional().nullable(),steps:g().min(2).max(20).optional().nullable(),striped:L().optional().nullable(),animated:L().optional().nullable()}).optional().nullable()});function rS(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function oS(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function is(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function ls(e,t,n,r){return r==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function aS({pct:e,label:t,trackColor:n,fillColor:r,barHeight:o,barRadius:a,striped:i,animated:l,ariaLabel:s,value:u,max:c}){const h=i&&l;return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[h&&m.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}}"}}),m.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{width:"100%",height:o,borderRadius:a,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:m.jsx("div",{className:`ahd-progress-fill${i?" ahd-progress-striped":""}${h?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:a,backgroundColor:r,backgroundImage:i?"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:i?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&m.jsx("span",{children:t})]})}function iS({pct:e,label:t,trackColor:n,fillColor:r,size:o,strokeWidth:a,textColor:i,fontWeight:l,ariaLabel:s,value:u,max:c}){const h=(o-a)/2,d=2*Math.PI*h,f=d*(1-e/100),p=o/2;return m.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{position:"relative",width:o,height:o,display:"inline-flex"},children:[m.jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,children:[m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:n,strokeWidth:a}),m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:a,strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:f,transform:`rotate(-90 ${p} ${p})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&m.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:i,fontWeight:l??600},children:t})]})}function lS({steps:e,activeIndex:t,trackColor:n,fillColor:r,stepSize:o,stepGap:a,label:i,ariaLabel:l,value:s,max:u}){return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[m.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":u,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:a},children:Array.from({length:e}).map((c,h)=>m.jsx("span",{"data-active":h<t?"true":"false",style:{width:o,height:o,borderRadius:"50%",backgroundColor:h<t?r:n,transition:"background-color 200ms ease",display:"inline-block"}},h))}),i!=null&&m.jsx("span",{children:i})]})}function sS({style:e,props:t}){const n=U.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.variant)??"linear",o=Math.max(1,is(t==null?void 0:t.max,100)),a=Math.max(0,Math.min(o,is(t==null?void 0:t.value,0))),i=a/o*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",u=l?ls(i,a,o,s):null,c=`Progress: ${ls(i,a,o,"percent")}`,h=z((e==null?void 0:e.trackColor)??"#e5e7eb","track"),d=se((e==null?void 0:e.fillColor)??"#3F73FF")??"#3F73FF",f=z((e==null?void 0:e.textColor)??"#262626","trackText"),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:f,fontFamily:rS(e==null?void 0:e.fontFamily),fontSize:oS((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"},k=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),S=Math.round(i/100*k);return m.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:r==="circular"?m.jsx(iS,{pct:i,label:u,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:c,value:a,max:o}):r==="steps"?m.jsx(lS,{steps:k,activeIndex:S,trackColor:h,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:u,ariaLabel:c,value:a,max:o}):m.jsx(aS,{pct:i,label:u,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:c,value:a,max:o})})}const cS=A({responsive:Ye,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),borderRadius:F([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(200).optional().nullable(),viewportHeight:g().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:T(["left","right","up","down"]).optional().nullable(),speed:g().min(5).max(200).optional().nullable(),pauseOnHover:L().optional().nullable(),repeat:g().min(2).max(6).optional().nullable(),fadeEdges:L().optional().nullable(),verticalAlign:T(["top","middle","bottom"]).optional().nullable(),hoverEffect:At,items:oe(A({contentChildrenIds:oe($()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),uS=40,dS=32,hS=200,su=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,cu=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,fS=e=>Math.max(2,Math.round(1200/e)),pS=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),uu=e=>e==="up"||e==="down",gS=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",Qr=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function mS(e,t){return{speed:cu(t==null?void 0:t.speed,uS),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??dS,viewportHeight:su(e==null?void 0:e.viewportHeight,hS)}}function bS(e,t,n){var o,a,i,l,s;const r=e==null?void 0:e[t];return{speed:cu((o=r==null?void 0:r.props)==null?void 0:o.speed,n.speed),pauseOnHover:((a=r==null?void 0:r.props)==null?void 0:a.pauseOnHover)??n.pauseOnHover,fadeEdges:((i=r==null?void 0:r.props)==null?void 0:i.fadeEdges)??n.fadeEdges,itemGap:((l=r==null?void 0:r.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:su((s=r==null?void 0:r.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const xS=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},ss=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${fS(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,vS=(e,t)=>e.fadeEdges?`-webkit-mask-image:${Qr(t)}!important;mask-image:${Qr(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function kS({instanceId:e,direction:t,repeat:n,desktop:r,responsive:o,verticalAlign:a}){const i=`.${e}`,l=uu(t),s=l?"column":"row",u=t==="right"||t==="down"?"reverse":"normal",c=l?"flex-start":gS(a),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(!xS(o,x))return"";const w=bS(o,x,r);return`${b}{${i}{${ss(w)};${vS(w,l)}}}`},p=l?`${i} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${i} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${i}{${ss(r)}}`+p+`${i} .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 ${u};will-change:transform}${i} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${c}}${i} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${i}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+f(ln,"tablet")+f(Qe,"mobile")+`@media (prefers-reduced-motion: reduce){${i} .ahd-marquee-track{animation:none}}`}function wS(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 SS(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,r=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:r>0?`${r}px solid ${e}`:void 0}}function $S({style:e,props:t,responsive:n}){var S;const r=U.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),o=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],a=(t==null?void 0:t.direction)??"left",i=pS(t==null?void 0:t.repeat),l=uu(a),s=mS(e,t),u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=se(e==null?void 0:e.borderColor),h=e==null?void 0:e.padding,d=e==null?void 0:e.margin,f=((d==null?void 0:d.left)??0)+((d==null?void 0:d.right)??0),p={width:f>0?`calc(100% - ${f}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:u??void 0,...SS(c,e==null?void 0:e.borderWidth),borderRadius:wS(e==null?void 0:e.borderRadius),padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:d?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:Qr(l),maskImage:Qr(l)}:{}},b=(t==null?void 0:t.verticalAlign)??"middle",x=U.useMemo(()=>kS({instanceId:r,direction:a,repeat:i,desktop:s,responsive:n,verticalAlign:b}),[r,a,i,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,b]),w=Lt(r,t==null?void 0:t.hoverEffect,{themedBorderColor:z((S=t==null?void 0:t.hoverEffect)==null?void 0:S.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),k=v=>m.jsx("div",{className:"ahd-marquee-group","aria-hidden":v>0?!0:void 0,children:o.map((_,y)=>m.jsx("div",{className:"ahd-marquee-item",children:(_.contentChildrenIds??[]).map(C=>m.jsx(Pe,{id:C},C))},y))},v);return m.jsxs("div",{className:`${r} ahd-marquee`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{className:"ahd-marquee-viewport",children:m.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:i}).map((v,_)=>k(_))})})]})}const _S=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),CS=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),AS=A({style:A({backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),accentColor:$().optional().nullable(),numberColor:$().optional().nullable(),numberFontWeight:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:F([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:_S,margin:CS}).optional().nullable(),props:A({layout:T(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:$().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:L().default(!0),expiredBehavior:T(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:$().default("Offer has ended"),showConfetti:L().default(!1),hoverEffect:At}).optional().nullable()});function yS(e){return String(Math.max(0,e)).padStart(2,"0")}function IS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,fallbackInk:s="#1f1f1f",fallbackMuted:u="#6b7280",fallbackOnAccent:c="#ffffff"}){const h=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:r,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:h.map(d=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[m.jsx("div",{"data-ahd-timer-unit":d.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:a??s,color:l??c,fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:yS(d.value)}),o&&m.jsx("span",{style:{fontSize:11,color:i??u,textTransform:"uppercase"},children:d.label})]},d.label))})}function RS(e){return String(Math.max(0,e)).padStart(2,"0")}const Sa=26,cs=2*Math.PI*Sa;function TS({value:e,max:t,accentColor:n,numberColor:r,numberFontWeight:o,unit:a,trackColor:i}){const l=t>0?Math.min(1,Math.max(0,e/t)):0,s=cs*(1-l);return m.jsxs("svg",{"data-ahd-timer-unit":a,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[m.jsx("circle",{cx:32,cy:32,r:Sa,fill:"none",stroke:i,strokeWidth:5}),m.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Sa,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:cs,strokeDashoffset:s,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),m.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:o??700,fill:r,children:RS(e)})]})}function ES({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,numberFontWeight:s,fallbackInk:u="#1f1f1f",fallbackMuted:c="#6b7280",fallbackAccent:h="#7c3aed",fallbackTrack:d="#e5e7eb"}){const f=a??h,p=l??u,b=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:r,max:60,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:b.map(x=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[m.jsx(TS,{value:x.value,max:x.max,accentColor:f,numberColor:p,numberFontWeight:s,unit:x.label.toLowerCase(),trackColor:d}),o&&m.jsx("span",{style:{fontSize:11,color:i??c,textTransform:"uppercase"},children:x.label})]},x.label))})}function Jt(e){return String(Math.max(0,e)).padStart(2,"0")}function NS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,fallbackInk:l="#1f1f1f",fallbackAccent:s="#7c3aed"}){const u=[{key:"days",text:o?`${e}d`:Jt(e)},{key:"hours",text:o?`${Jt(t)}h`:Jt(t)},{key:"minutes",text:o?`${Jt(n)}m`:Jt(n)},{key:"seconds",text:o?`${Jt(r)}s`:Jt(r)}],c=o?" ":" : ";return m.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":o?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:i??l},children:[m.jsx("span",{style:{color:a??s,marginRight:6},children:"Ends in"}),u.map((h,d)=>m.jsxs(U.Fragment,{children:[d>0&&c,m.jsx("span",{"data-ahd-timer-unit":h.key,children:h.text})]},h.key))]})}let MS=0;function PS(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 OS(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const r=Math.max(0,n-t),o=r<=0,a=Math.floor(r/1e3);return{days:Math.floor(a/86400),hours:Math.floor(a%86400/3600),minutes:Math.floor(a%3600/60),seconds:a%60,completed:o}}function LS({style:e,props:t}){var M;const n=t??{},r=n.layout??"digitalFlip",o=n.showLabels??!0,a=n.expiredBehavior??"showMessage",i=n.expiredMessage||"Offer has ended",l=OS(n.targetDate),s=l.completed,u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=se(e==null?void 0:e.borderColor),h=se(e==null?void 0:e.accentColor),d=se(e==null?void 0:e.textColor),f=se(e==null?void 0:e.numberColor),p=z(null,"timerText"),b=z(null,"timerLabel"),x=se("#7c3aed")??"#7c3aed",w=se("#ffffff")??"#ffffff",k=z(null,"timerTrack"),S=e==null?void 0:e.padding,v=e==null?void 0:e.margin,_=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),y={width:_>0?`calc(100% - ${_}px)`:"100%",boxSizing:"border-box",background:u??void 0,border:c?`1px solid ${c}`:void 0,borderRadius:PS(e==null?void 0:e.borderRadius),padding:S?`${S.top}px ${S.right}px ${S.bottom}px ${S.left}px`:"16px",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0},C={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:o,accentColor:h,textColor:d,numberColor:f,fallbackInk:p,fallbackMuted:b,fallbackAccent:x,fallbackOnAccent:w,fallbackTrack:k,numberFontWeight:e==null?void 0:e.numberFontWeight},I=s&&a==="showMessage",R=s&&a==="hide",E=U.useMemo(()=>`ahd-hv-timer-${++MS}`,[]),O=Lt(E,n.hoverEffect,{themedBorderColor:z((M=n.hoverEffect)==null?void 0:M.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1});return m.jsxs("div",{className:`ahd-timer ${E}`,"data-layout":r,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":a,"data-ahd-timer-expired-message":i,"data-ahd-timer-show-labels":o?"1":"0","data-ahd-timer-confetti":n.showConfetti?"1":"0",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...y,display:R?"none":void 0},children:[O&&m.jsx("style",{dangerouslySetInnerHTML:{__html:O}}),m.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:d??p,display:I?void 0:"none"},children:i}),m.jsxs("div",{"data-ahd-timer-body":!0,style:{display:I?"none":void 0},children:[r==="digitalFlip"&&m.jsx(IS,{...C}),r==="circularProgress"&&m.jsx(ES,{...C}),r==="textInline"&&m.jsx(NS,{...C})]})]})}function du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},jS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},BS=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,DS=/[&<>"']/g;function FS(e){return zS[e]}function HS(e){return jS[e]}function $a(e){return e==null?"":String(e).replace(DS,FS)}function _a(e){return e==null?"":String(e).replace(BS,HS)}$a.options=_a.options={};var hu={encode:$a,escape:$a,decode:_a,unescape:_a,version:"1.0.0-browser"};function fu(e){for(var t=Array.prototype.slice.call(arguments,1),n,r;t.length;){n=t.shift();for(r in n)n.hasOwnProperty(r)&&(Object.prototype.toString.call(e[r])==="[object Object]"?e[r]=fu(e[r],n[r]):e[r]=n[r])}return e}var GS=fu,pu=function(t){return typeof t=="string"?t.toLowerCase():t};function WS(e){return e.reduce(US,{})}function US(e,t){return e[t]=!0,e}var gu=WS,ZS=gu,qS=["background","base","cite","href","longdesc","src","usemap"],VS={uris:ZS(qS)},YS=gu,KS=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"],mu={voids:YS(KS)},JS=hu,us=pu,XS=mu,QS=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,e$=/^<\s*\/\s*([\w:-]+)[^>]*>/,t$=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,n$=/^</,r$=/^<\s*\//;function o$(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}function a$(e,t){for(var n=o$(),r=e,o;e;)a();h();function a(){o=!0,i();var d=e===r;r=e,d&&(e="")}function i(){e.substr(0,4)==="<!--"?s():r$.test(e)?l(e$,h):n$.test(e)&&l(QS,c),u()}function l(d,f){var p=e.match(d);p&&(e=e.substring(p[0].length),p[0].replace(d,f),o=!1)}function s(){var d=e.indexOf("-->");d>=0&&(t.comment&&t.comment(e.substring(4,d)),e=e.substring(d+3),o=!1)}function u(){if(o){var d,f=e.indexOf("<");f>=0?(d=e.substring(0,f),e=e.substring(f)):(d=e,e=""),t.chars&&t.chars(d)}}function c(d,f,p,b){var x={},w=us(f),k=XS.voids[w]||!!b;p.replace(t$,S),k||n.push(w),t.start&&t.start(w,x,k);function S(v,_,y,C,I){y===void 0&&C===void 0&&I===void 0?x[_]=void 0:x[_]=JS.decode(y||C||I||"")}}function h(d,f){var p,b=0,x=us(f);if(x)for(b=n.length-1;b>=0&&n[b]!==x;b--);if(b>=0){for(p=n.length-1;p>=b;p--)t.end&&t.end(n[p]);n.length=b}}}var i$=a$,l$=hu,Uo=pu,s$=VS,c$=mu;function u$(e,t){var n,r=t||{};return h(),{start:a,end:i,chars:s};function o(d){e.push(d)}function a(d,f,p){var b=Uo(d);if(n.ignoring){u(b);return}if((r.allowedTags||[]).indexOf(b)===-1){u(b);return}if(r.filter&&!r.filter({tag:b,attrs:f})){u(b);return}o("<"),o(b),Object.keys(f).forEach(x),o(p?"/>":">");function x(w){var k=f[w],S=(r.allowedClasses||{})[b]||[],v=(r.allowedAttributes||{})[b]||[],_,y=Uo(w);y==="class"&&v.indexOf(y)===-1?(k=k.split(" ").filter(C).join(" ").trim(),_=k.length):_=v.indexOf(y)!==-1&&(s$.uris[y]!==!0||l(k)),_&&(o(" "),o(w),typeof k=="string"&&(o('="'),o(l$.encode(k)),o('"')));function C(I){return S&&S.indexOf(I)!==-1}}}function i(d){var f=Uo(d),p=(r.allowedTags||[]).indexOf(f)!==-1;p&&n.ignoring===!1?(o("</"),o(f),o(">")):c(f)}function l(d){var f=d[0];if(f==="#"||f==="/")return!0;var p=d.indexOf(":");if(p===-1)return!0;var b=d.indexOf("?");if(b!==-1&&p>b)return!0;var x=d.indexOf("#");if(x!==-1&&p>x)return!0;return r.allowedSchemes.some(w);function w(k){return d.indexOf(k+":")===0}}function s(d){n.ignoring===!1&&o(r.transformText?r.transformText(d):d)}function u(d){c$.voids[d]||(n.ignoring===!1?n={ignoring:d,depth:1}:n.ignoring===d&&n.depth++)}function c(d){n.ignoring===d&&--n.depth<=0&&h()}function h(){n={ignoring:!1,depth:0}}}var d$=u$,h$={allowedAttributes:{a:["href","name","target","title","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null},f$=h$,p$=GS,g$=i$,m$=d$,bu=f$;function xu(e,t,n){var r=[],o=n===!0?t:p$({},bu,t),a=m$(r,o);return g$(e,a),r.join("")}xu.defaults=bu;var b$=xu;const x$=du(b$);function vi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sn=vi();function vu(e){sn=e}var nn={exec:()=>null};function mn(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function he(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(qe.caret,"$1"),n=n.replace(o,i),r},getRegex:()=>new RegExp(n,t)};return r}var v$=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),qe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:mn(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:mn(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:mn(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:mn(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:mn(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:mn(e=>new RegExp(`^ {0,${e}}>`))},k$=/^(?:[ \t]*(?:\n|$))+/,w$=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,S$=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,lr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$$=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ki=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ku=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wu=he(ku).replace(/bull/g,ki).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),_$=he(ku).replace(/bull/g,ki).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),wi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,C$=/^[^\n]+/,Si=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,A$=he(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Si).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),y$=he(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ki).getRegex(),mo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$i=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,I$=he("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",$i).replace("tag",mo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Su=he(wi).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),R$=he(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Su).getRegex(),_i={blockquote:R$,code:w$,def:A$,fences:S$,heading:$$,hr:lr,html:I$,lheading:wu,list:y$,newline:k$,paragraph:Su,table:nn,text:C$},ds=he("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),T$={..._i,lheading:_$,table:ds,paragraph:he(wi).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ds).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex()},E$={..._i,html:he(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$i).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:he(wi).replace("hr",lr).replace("heading",` *#{1,6} *[^
281
+ ]`).replace("lheading",wu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},N$=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,M$=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,$u=/^( {2,}|\\)\n(?!\s*$)/,P$=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Nn=/[\p{P}\p{S}]/u,bo=/[\s\p{P}\p{S}]/u,Ci=/[^\s\p{P}\p{S}]/u,O$=he(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,bo).getRegex(),_u=/(?!~)[\p{P}\p{S}]/u,L$=/(?!~)[\s\p{P}\p{S}]/u,z$=/(?:[^\s\p{P}\p{S}]|~)/u,j$=he(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",v$?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Cu=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,B$=he(Cu,"u").replace(/punct/g,Nn).getRegex(),D$=he(Cu,"u").replace(/punct/g,_u).getRegex(),Au="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",F$=he(Au,"gu").replace(/notPunctSpace/g,Ci).replace(/punctSpace/g,bo).replace(/punct/g,Nn).getRegex(),H$=he(Au,"gu").replace(/notPunctSpace/g,z$).replace(/punctSpace/g,L$).replace(/punct/g,_u).getRegex(),G$=he("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ci).replace(/punctSpace/g,bo).replace(/punct/g,Nn).getRegex(),W$=he(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Nn).getRegex(),U$="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Z$=he(U$,"gu").replace(/notPunctSpace/g,Ci).replace(/punctSpace/g,bo).replace(/punct/g,Nn).getRegex(),q$=he(/\\(punct)/,"gu").replace(/punct/g,Nn).getRegex(),V$=he(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Y$=he($i).replace("(?:-->|$)","-->").getRegex(),K$=he("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Y$).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,J$=he(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",eo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),yu=he(/^!?\[(label)\]\[(ref)\]/).replace("label",eo).replace("ref",Si).getRegex(),Iu=he(/^!?\[(ref)\](?:\[\])?/).replace("ref",Si).getRegex(),X$=he("reflink|nolink(?!\\()","g").replace("reflink",yu).replace("nolink",Iu).getRegex(),hs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ai={_backpedal:nn,anyPunctuation:q$,autolink:V$,blockSkip:j$,br:$u,code:M$,del:nn,delLDelim:nn,delRDelim:nn,emStrongLDelim:B$,emStrongRDelimAst:F$,emStrongRDelimUnd:G$,escape:N$,link:J$,nolink:Iu,punctuation:O$,reflink:yu,reflinkSearch:X$,tag:K$,text:P$,url:nn},Q$={...Ai,link:he(/^!?\[(label)\]\((.*?)\)/).replace("label",eo).getRegex(),reflink:he(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eo).getRegex()},Ca={...Ai,emStrongRDelimAst:H$,emStrongLDelim:D$,delLDelim:W$,delRDelim:Z$,url:he(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",hs).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:he(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",hs).getRegex()},e2={...Ca,br:he($u).replace("{2,}","*").getRegex(),text:he(Ca.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ar={normal:_i,gfm:T$,pedantic:E$},jn={normal:Ai,gfm:Ca,breaks:e2,pedantic:Q$},t2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fs=e=>t2[e];function St(e,t){if(t){if(qe.escapeTest.test(e))return e.replace(qe.escapeReplace,fs)}else if(qe.escapeTestNoEncode.test(e))return e.replace(qe.escapeReplaceNoEncode,fs);return e}function ps(e){try{e=encodeURI(e).replace(qe.percentDecode,"%")}catch{return null}return e}function gs(e,t){var a;let n=e.replace(qe.findPipe,(i,l,s)=>{let u=!1,c=l;for(;--c>=0&&s[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split(qe.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!((a=r.at(-1))!=null&&a.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(qe.slashPipe,"|");return r}function Ft(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function ms(e){let t=e.split(`
286
282
  `),n=t.length-1;for(;n>=0&&qe.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
287
- `)}function U$(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Z$(e,t=0){let n=t,r="";for(let o of e)if(o===" "){let a=4-n%4;r+=" ".repeat(a),n+=a}else r+=o,n++;return r}function hs(e,t,n,r,o){let a=t.href,i=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}function q$(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
283
+ `)}function n2(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function r2(e,t=0){let n=t,r="";for(let o of e)if(o===" "){let a=4-n%4;r+=" ".repeat(a),n+=a}else r+=o,n++;return r}function bs(e,t,n,r,o){let a=t.href,i=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}function o2(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
288
284
  `).map(a=>{let i=a.match(n.other.beginningSpace);if(i===null)return a;let[l]=i;return l.length>=o.length?a.slice(o.length):a}).join(`
289
- `)}var Jr=class{constructor(e){Se(this,"options");Se(this,"rules");Se(this,"lexer");this.options=e||an}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:ds(t[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=q$(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=jt(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:jt(t[0],`
290
- `),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:jt(t[0],`
291
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=jt(t[0],`
285
+ `)}var to=class{constructor(e){Se(this,"options");Se(this,"rules");Se(this,"lexer");this.options=e||sn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:ms(t[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=o2(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Ft(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:Ft(t[0],`
286
+ `),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ft(t[0],`
287
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Ft(t[0],`
292
288
  `).split(`
293
289
  `),r="",o="",a=[];for(;n.length>0;){let i=!1,l=[],s;for(s=0;s<n.length;s++)if(this.rules.other.blockquoteStart.test(n[s]))l.push(n[s]),i=!0;else if(!i)l.push(n[s]);else break;n=n.slice(s);let u=l.join(`
294
290
  `),c=u.replace(this.rules.other.blockquoteSetextReplace,`
@@ -299,19 +295,19 @@ ${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
299
295
  `),b=this.blockquote(p);a[a.length-1]=b,r=r.substring(0,r.length-f.raw.length)+b.raw,o=o.substring(0,o.length-f.text.length)+b.text;break}else if((d==null?void 0:d.type)==="list"){let f=d,p=f.raw+`
300
296
  `+n.join(`
301
297
  `),b=this.list(p);a[a.length-1]=b,r=r.substring(0,r.length-d.raw.length)+b.raw,o=o.substring(0,o.length-f.raw.length)+b.raw,n=p.substring(a.at(-1).raw.length).split(`
302
- `);continue}}return{type:"blockquote",raw:r,tokens:a,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),i=!1;for(;e;){let s=!1,u="",c="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let h=Z$(t[2].split(`
298
+ `);continue}}return{type:"blockquote",raw:r,tokens:a,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),i=!1;for(;e;){let s=!1,u="",c="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let h=r2(t[2].split(`
303
299
  `,1)[0],t[1].length),d=e.split(`
304
300
  `,1)[0],f=!h.trim(),p=0;if(this.options.pedantic?(p=2,c=h.trimStart()):f?p=t[1].length+1:(p=h.search(this.rules.other.nonSpaceChar),p=p>4?1:p,c=h.slice(p),p+=t[1].length),f&&this.rules.other.blankLine.test(d)&&(u+=d+`
305
301
  `,e=e.substring(d.length+1),s=!0),!s){let b=this.rules.other.nextBulletRegex(p),x=this.rules.other.hrRegex(p),w=this.rules.other.fencesBeginRegex(p),k=this.rules.other.headingBeginRegex(p),S=this.rules.other.htmlBeginRegex(p),v=this.rules.other.blockquoteBeginRegex(p);for(;e;){let _=e.split(`
306
302
  `,1)[0],y;if(d=_,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),y=d):y=d.replace(this.rules.other.tabCharGlobal," "),w.test(d)||k.test(d)||S.test(d)||v.test(d)||b.test(d)||x.test(d))break;if(y.search(this.rules.other.nonSpaceChar)>=p||!d.trim())c+=`
307
303
  `+y.slice(p);else{if(f||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(h)||k.test(h)||x.test(h))break;c+=`
308
304
  `+d}f=!d.trim(),u+=_+`
309
- `,e=e.substring(_.length+1),h=y.slice(p)}}o.loose||(i?o.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(i=!0)),o.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),o.raw+=u}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let s of o.items){this.lexer.state.top=!1,s.tokens=this.lexer.blockTokens(s.text,[]);let u=s.tokens[0];if(s.task&&((u==null?void 0:u.type)==="text"||(u==null?void 0:u.type)==="paragraph")){s.text=s.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(s.raw);if(c){let h={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};s.checked=h.checked,o.loose?s.tokens[0]&&["paragraph","text"].includes(s.tokens[0].type)&&"tokens"in s.tokens[0]&&s.tokens[0].tokens?(s.tokens[0].raw=h.raw+s.tokens[0].raw,s.tokens[0].text=h.raw+s.tokens[0].text,s.tokens[0].tokens.unshift(h)):s.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):s.tokens.unshift(h)}}else s.task&&(s.task=!1);if(!o.loose){let c=s.tokens.filter(d=>d.type==="space"),h=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));o.loose=h}}if(o.loose)for(let s of o.items){s.loose=!0;for(let u of s.tokens)u.type==="text"&&(u.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=ds(t[0]);return{type:"html",block:!0,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:jt(t[0],`
310
- `),href:r,title:o}}}table(e){var i;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=us(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(i=t[3])!=null&&i.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
311
- `):[],a={type:"table",raw:jt(t[0],`
312
- `),header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of o)a.rows.push(us(l,a.header.length).map((s,u)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:a.align[u]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:jt(t[0],`
305
+ `,e=e.substring(_.length+1),h=y.slice(p)}}o.loose||(i?o.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(i=!0)),o.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),o.raw+=u}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let s of o.items){this.lexer.state.top=!1,s.tokens=this.lexer.blockTokens(s.text,[]);let u=s.tokens[0];if(s.task&&((u==null?void 0:u.type)==="text"||(u==null?void 0:u.type)==="paragraph")){s.text=s.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(s.raw);if(c){let h={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};s.checked=h.checked,o.loose?s.tokens[0]&&["paragraph","text"].includes(s.tokens[0].type)&&"tokens"in s.tokens[0]&&s.tokens[0].tokens?(s.tokens[0].raw=h.raw+s.tokens[0].raw,s.tokens[0].text=h.raw+s.tokens[0].text,s.tokens[0].tokens.unshift(h)):s.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):s.tokens.unshift(h)}}else s.task&&(s.task=!1);if(!o.loose){let c=s.tokens.filter(d=>d.type==="space"),h=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));o.loose=h}}if(o.loose)for(let s of o.items){s.loose=!0;for(let u of s.tokens)u.type==="text"&&(u.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=ms(t[0]);return{type:"html",block:!0,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:Ft(t[0],`
306
+ `),href:r,title:o}}}table(e){var i;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=gs(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(i=t[3])!=null&&i.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
307
+ `):[],a={type:"table",raw:Ft(t[0],`
308
+ `),header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of o)a.rows.push(gs(l,a.header.length).map((s,u)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:a.align[u]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:Ft(t[0],`
313
309
  `),depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
314
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=jt(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=U$(t[2],"()");if(a===-2)return;if(a>-1){let i=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),hs(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return hs(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=0,u=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);(r=u.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(i=[...a].length,r[3]||r[4]){l+=i;continue}else if((r[5]||r[6])&&o%3&&!((o+i)%3)){s+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+s);let c=[...r[0]][0].length,h=e.slice(0,o+r.index+c+i);if(Math.min(o,i)%2){let f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}let d=h.slice(2,-2);return{type:"strong",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+o);(r=s.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(i=[...a].length,i!==o))continue;if(r[3]||r[4]){l+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l);let u=[...r[0]][0].length,c=e.slice(0,o+r.index+u+i),h=c.slice(o,-o);return{type:"del",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,o;if(t[2]==="@")r=t[0],o="mailto:"+r;else{let a;do a=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(a!==t[0]);r=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},pt=class Sa{constructor(t){Se(this,"tokens");Se(this,"options");Se(this,"state");Se(this,"inlineQueue");Se(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||an,this.options.tokenizer=this.options.tokenizer||new Jr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:qe,block:Sr.normal,inline:Ln.normal};this.options.pedantic?(n.block=Sr.pedantic,n.inline=Ln.pedantic):this.options.gfm&&(n.block=Sr.gfm,this.options.breaks?n.inline=Ln.breaks:n.inline=Ln.gfm),this.tokenizer.rules=n}static get rules(){return{block:Sr,inline:Ln}}static lex(t,n){return new Sa(n).lex(t)}static lexInline(t,n){return new Sa(n).inlineTokens(t)}lex(t){t=t.replace(qe.carriageReturn,`
310
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=Ft(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=n2(t[2],"()");if(a===-2)return;if(a>-1){let i=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),bs(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return bs(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=0,u=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);(r=u.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(i=[...a].length,r[3]||r[4]){l+=i;continue}else if((r[5]||r[6])&&o%3&&!((o+i)%3)){s+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+s);let c=[...r[0]][0].length,h=e.slice(0,o+r.index+c+i);if(Math.min(o,i)%2){let f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}let d=h.slice(2,-2);return{type:"strong",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+o);(r=s.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(i=[...a].length,i!==o))continue;if(r[3]||r[4]){l+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l);let u=[...r[0]][0].length,c=e.slice(0,o+r.index+u+i),h=c.slice(o,-o);return{type:"del",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,o;if(t[2]==="@")r=t[0],o="mailto:"+r;else{let a;do a=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(a!==t[0]);r=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},pt=class Aa{constructor(t){Se(this,"tokens");Se(this,"options");Se(this,"state");Se(this,"inlineQueue");Se(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||sn,this.options.tokenizer=this.options.tokenizer||new to,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:qe,block:Ar.normal,inline:jn.normal};this.options.pedantic?(n.block=Ar.pedantic,n.inline=jn.pedantic):this.options.gfm&&(n.block=Ar.gfm,this.options.breaks?n.inline=jn.breaks:n.inline=jn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ar,inline:jn}}static lex(t,n){return new Aa(n).lex(t)}static lexInline(t,n){return new Aa(n).inlineTokens(t)}lex(t){t=t.replace(qe.carriageReturn,`
315
311
  `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var a,i,l;this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(qe.tabCharGlobal," ").replace(qe.spaceLine,""));let o=1/0;for(;t;){if(t.length<o)o=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let s;if((i=(a=this.options.extensions)==null?void 0:a.block)!=null&&i.some(c=>(s=c.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let c=n.at(-1);s.raw.length===1&&c!==void 0?c.raw+=`
316
312
  `:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
317
313
  `)?"":`
@@ -325,7 +321,7 @@ ${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
325
321
  `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(s),r=u.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
326
322
  `)?"":`
327
323
  `)+s.raw,c.text+=`
328
- `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(s);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var u,c,h,d,f;this.tokenizer.lexer=this;let r=t,o=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)p.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)a=o[2]?o[2].length:0,r=r.slice(0,o.index+a)+"["+"a".repeat(o[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((c=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:c.call({lexer:this},r))??r;let i=!1,l="",s=1/0;for(;t;){if(t.length<s)s=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}i||(l=""),i=!1;let p;if((d=(h=this.options.extensions)==null?void 0:h.inline)!=null&&d.some(x=>(p=x.call({lexer:this},t,n))?(t=t.substring(p.raw.length),n.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let x=n.at(-1);p.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):n.push(p);continue}if(p=this.tokenizer.emStrong(t,r,l)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.del(t,r,l)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),n.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),n.push(p);continue}let b=t;if((f=this.options.extensions)!=null&&f.startInline){let x=1/0,w=t.slice(1),k;this.options.extensions.startInline.forEach(S=>{k=S.call({lexer:this},w),typeof k=="number"&&k>=0&&(x=Math.min(x,k))}),x<1/0&&x>=0&&(b=t.substring(0,x+1))}if(p=this.tokenizer.inlineText(b)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(l=p.raw.slice(-1)),i=!0;let x=n.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):n.push(p);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return n}infiniteLoopError(t){let n="Infinite loop on byte: "+t;if(this.options.silent)console.error(n);else throw new Error(n)}},Qn=class{constructor(e){Se(this,"options");Se(this,"parser");this.options=e||an}space(e){return""}code({text:e,lang:t,escaped:n}){var a;let r=(a=(t||"").match(qe.notSpaceStart))==null?void 0:a[0],o=e.replace(qe.endingNewline,"")+`
324
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(s);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var u,c,h,d,f;this.tokenizer.lexer=this;let r=t,o=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)p.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)a=o[2]?o[2].length:0,r=r.slice(0,o.index+a)+"["+"a".repeat(o[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((c=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:c.call({lexer:this},r))??r;let i=!1,l="",s=1/0;for(;t;){if(t.length<s)s=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}i||(l=""),i=!1;let p;if((d=(h=this.options.extensions)==null?void 0:h.inline)!=null&&d.some(x=>(p=x.call({lexer:this},t,n))?(t=t.substring(p.raw.length),n.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let x=n.at(-1);p.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):n.push(p);continue}if(p=this.tokenizer.emStrong(t,r,l)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.del(t,r,l)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),n.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),n.push(p);continue}let b=t;if((f=this.options.extensions)!=null&&f.startInline){let x=1/0,w=t.slice(1),k;this.options.extensions.startInline.forEach(S=>{k=S.call({lexer:this},w),typeof k=="number"&&k>=0&&(x=Math.min(x,k))}),x<1/0&&x>=0&&(b=t.substring(0,x+1))}if(p=this.tokenizer.inlineText(b)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(l=p.raw.slice(-1)),i=!0;let x=n.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):n.push(p);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return n}infiniteLoopError(t){let n="Infinite loop on byte: "+t;if(this.options.silent)console.error(n);else throw new Error(n)}},tr=class{constructor(e){Se(this,"options");Se(this,"parser");this.options=e||sn}space(e){return""}code({text:e,lang:t,escaped:n}){var a;let r=(a=(t||"").match(qe.notSpaceStart))==null?void 0:a[0],o=e.replace(qe.endingNewline,"")+`
329
325
  `;return r?'<pre><code class="language-'+St(r)+'">'+(n?o:St(o,!0))+`</code></pre>
330
326
  `:"<pre><code>"+(n?o:St(o,!0))+`</code></pre>
331
327
  `}blockquote({tokens:e}){return`<blockquote>
@@ -343,15 +339,15 @@ ${this.parser.parse(e)}</blockquote>
343
339
  `}tablerow({text:e}){return`<tr>
344
340
  ${e}</tr>
345
341
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
346
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${St(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=cs(e);if(o===null)return r;e=o;let a='<a href="'+e+'"';return t&&(a+=' title="'+St(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=cs(e);if(o===null)return St(n);e=o;let a=`<img src="${e}" alt="${St(n)}"`;return t&&(a+=` title="${St(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:St(e.text)}},$i=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},gt=class $a{constructor(t){Se(this,"options");Se(this,"renderer");Se(this,"textRenderer");this.options=t||an,this.options.renderer=this.options.renderer||new Qn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $i}static parse(t,n){return new $a(n).parse(t)}static parseInline(t,n){return new $a(n).parseInline(t)}parse(t){var r,o;this.renderer.parser=this;let n="";for(let a=0;a<t.length;a++){let i=t[a];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[i.type]){let s=i,u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=u||"";continue}}let l=i;switch(l.type){case"space":{n+=this.renderer.space(l);break}case"hr":{n+=this.renderer.hr(l);break}case"heading":{n+=this.renderer.heading(l);break}case"code":{n+=this.renderer.code(l);break}case"table":{n+=this.renderer.table(l);break}case"blockquote":{n+=this.renderer.blockquote(l);break}case"list":{n+=this.renderer.list(l);break}case"checkbox":{n+=this.renderer.checkbox(l);break}case"html":{n+=this.renderer.html(l);break}case"def":{n+=this.renderer.def(l);break}case"paragraph":{n+=this.renderer.paragraph(l);break}case"text":{n+=this.renderer.text(l);break}default:{let s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){var o,a;this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let l=t[i];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[l.type]){let u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=u||"";continue}}let s=l;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let u='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},yr,Gn=(yr=class{constructor(e){Se(this,"options");Se(this,"block");this.options=e||an}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?pt.lex:pt.lexInline}provideParser(e=this.block){return e?gt.parse:gt.parseInline}},Se(yr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Se(yr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),yr),V$=class{constructor(...e){Se(this,"defaults",gi());Se(this,"options",this.setOptions);Se(this,"parse",this.parseMarkdown(!0));Se(this,"parseInline",this.parseMarkdown(!1));Se(this,"Parser",gt);Se(this,"Renderer",Qn);Se(this,"TextRenderer",$i);Se(this,"Lexer",pt);Se(this,"Tokenizer",Jr);Se(this,"Hooks",Gn);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":{let i=a;for(let l of i.header)n=n.concat(this.walkTokens(l.tokens,t));for(let l of i.rows)for(let s of l)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=a;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=a;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[i.type]?this.defaults.extensions.childTokens[i.type].forEach(l=>{let s=i[l].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let a=t.renderers[o.name];a?t.renderers[o.name]=function(...i){let l=o.renderer.apply(this,i);return l===!1&&(l=a.apply(this,i)),l}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[o.level];a?a.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new Qn(this.defaults);for(let a in n.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,l=n.renderer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new Jr(this.defaults);for(let a in n.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,l=n.tokenizer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Gn;for(let a in n.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,l=n.hooks[i],s=o[i];Gn.passThroughHooks.has(a)?o[i]=u=>{if(this.defaults.async&&Gn.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await l.call(o,u);return s.call(o,h)})();let c=l.call(o,u);return s.call(o,c)}:o[i]=(...u)=>{if(this.defaults.async)return(async()=>{let h=await l.apply(o,u);return h===!1&&(h=await s.apply(o,u)),h})();let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(i){let l=[];return l.push(a.call(this,i)),o&&(l=l.concat(o.call(this,i))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return pt.lex(e,t??this.defaults)}parser(e,t){return gt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let i=o.hooks?await o.hooks.preprocess(t):t,l=await(o.hooks?await o.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(i,o),s=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(s,o.walkTokens));let u=await(o.hooks?await o.hooks.provideParser(e):e?gt.parse:gt.parseInline)(s,o);return o.hooks?await o.hooks.postprocess(u):u})().catch(a);try{o.hooks&&(t=o.hooks.preprocess(t));let i=(o.hooks?o.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(t,o);o.hooks&&(i=o.hooks.processAllTokens(i)),o.walkTokens&&this.walkTokens(i,o.walkTokens);let l=(o.hooks?o.hooks.provideParser(e):e?gt.parse:gt.parseInline)(i,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(i){return a(i)}}}onError(e,t){return n=>{if(n.message+=`
347
- Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+St(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},tn=new V$;function we(e,t){return tn.parse(e,t)}we.options=we.setOptions=function(e){return tn.setOptions(e),we.defaults=tn.defaults,pu(we.defaults),we};we.getDefaults=gi;we.defaults=an;we.use=function(...e){return tn.use(...e),we.defaults=tn.defaults,pu(we.defaults),we};we.walkTokens=function(e,t){return tn.walkTokens(e,t)};we.parseInline=tn.parseInline;we.Parser=gt;we.parser=gt.parse;we.Renderer=Qn;we.TextRenderer=$i;we.Lexer=pt;we.lexer=pt.lex;we.Tokenizer=Jr;we.Hooks=Gn;we.parse=we;we.options;we.setOptions;we.use;we.walkTokens;we.parseInline;gt.parse;pt.lex;function Y$(e,t){return"<pre><code>"+(r=>r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))(e??"")+"</code></pre>"}const fs=["a","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","ol","p","pre","section","span","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],Tt=["style","title"];function K$(e){return l$(e,{allowedTags:fs,allowedAttributes:{...fs.reduce((t,n)=>(t[n]=[...Tt],t),{}),code:["class",...Tt],img:["src","srcset","alt","width","height",...Tt],table:["width",...Tt],td:["align","width",...Tt],th:["align","width",...Tt],a:["href","target",...Tt],ol:["start",...Tt],ul:["start",...Tt]}})}class J$ extends Qn{table({header:t,rows:n}){const r=this.tablerow({text:t.map(a=>this.tablecell(a)).join("")}),o=n.map(a=>this.tablerow({text:a.map(i=>this.tablecell(i)).join("")})).join("");return`<table width="100%">
342
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${St(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=ps(e);if(o===null)return r;e=o;let a='<a href="'+e+'"';return t&&(a+=' title="'+St(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=ps(e);if(o===null)return St(n);e=o;let a=`<img src="${e}" alt="${St(n)}"`;return t&&(a+=` title="${St(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:St(e.text)}},yi=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},gt=class ya{constructor(t){Se(this,"options");Se(this,"renderer");Se(this,"textRenderer");this.options=t||sn,this.options.renderer=this.options.renderer||new tr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yi}static parse(t,n){return new ya(n).parse(t)}static parseInline(t,n){return new ya(n).parseInline(t)}parse(t){var r,o;this.renderer.parser=this;let n="";for(let a=0;a<t.length;a++){let i=t[a];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[i.type]){let s=i,u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=u||"";continue}}let l=i;switch(l.type){case"space":{n+=this.renderer.space(l);break}case"hr":{n+=this.renderer.hr(l);break}case"heading":{n+=this.renderer.heading(l);break}case"code":{n+=this.renderer.code(l);break}case"table":{n+=this.renderer.table(l);break}case"blockquote":{n+=this.renderer.blockquote(l);break}case"list":{n+=this.renderer.list(l);break}case"checkbox":{n+=this.renderer.checkbox(l);break}case"html":{n+=this.renderer.html(l);break}case"def":{n+=this.renderer.def(l);break}case"paragraph":{n+=this.renderer.paragraph(l);break}case"text":{n+=this.renderer.text(l);break}default:{let s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){var o,a;this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let l=t[i];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[l.type]){let u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=u||"";continue}}let s=l;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let u='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},Er,Un=(Er=class{constructor(e){Se(this,"options");Se(this,"block");this.options=e||sn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?pt.lex:pt.lexInline}provideParser(e=this.block){return e?gt.parse:gt.parseInline}},Se(Er,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Se(Er,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Er),a2=class{constructor(...e){Se(this,"defaults",vi());Se(this,"options",this.setOptions);Se(this,"parse",this.parseMarkdown(!0));Se(this,"parseInline",this.parseMarkdown(!1));Se(this,"Parser",gt);Se(this,"Renderer",tr);Se(this,"TextRenderer",yi);Se(this,"Lexer",pt);Se(this,"Tokenizer",to);Se(this,"Hooks",Un);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":{let i=a;for(let l of i.header)n=n.concat(this.walkTokens(l.tokens,t));for(let l of i.rows)for(let s of l)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=a;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=a;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[i.type]?this.defaults.extensions.childTokens[i.type].forEach(l=>{let s=i[l].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let a=t.renderers[o.name];a?t.renderers[o.name]=function(...i){let l=o.renderer.apply(this,i);return l===!1&&(l=a.apply(this,i)),l}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[o.level];a?a.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new tr(this.defaults);for(let a in n.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,l=n.renderer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new to(this.defaults);for(let a in n.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,l=n.tokenizer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Un;for(let a in n.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,l=n.hooks[i],s=o[i];Un.passThroughHooks.has(a)?o[i]=u=>{if(this.defaults.async&&Un.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await l.call(o,u);return s.call(o,h)})();let c=l.call(o,u);return s.call(o,c)}:o[i]=(...u)=>{if(this.defaults.async)return(async()=>{let h=await l.apply(o,u);return h===!1&&(h=await s.apply(o,u)),h})();let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(i){let l=[];return l.push(a.call(this,i)),o&&(l=l.concat(o.call(this,i))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return pt.lex(e,t??this.defaults)}parser(e,t){return gt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let i=o.hooks?await o.hooks.preprocess(t):t,l=await(o.hooks?await o.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(i,o),s=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(s,o.walkTokens));let u=await(o.hooks?await o.hooks.provideParser(e):e?gt.parse:gt.parseInline)(s,o);return o.hooks?await o.hooks.postprocess(u):u})().catch(a);try{o.hooks&&(t=o.hooks.preprocess(t));let i=(o.hooks?o.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(t,o);o.hooks&&(i=o.hooks.processAllTokens(i)),o.walkTokens&&this.walkTokens(i,o.walkTokens);let l=(o.hooks?o.hooks.provideParser(e):e?gt.parse:gt.parseInline)(i,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(i){return a(i)}}}onError(e,t){return n=>{if(n.message+=`
343
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+St(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},rn=new a2;function we(e,t){return rn.parse(e,t)}we.options=we.setOptions=function(e){return rn.setOptions(e),we.defaults=rn.defaults,vu(we.defaults),we};we.getDefaults=vi;we.defaults=sn;we.use=function(...e){return rn.use(...e),we.defaults=rn.defaults,vu(we.defaults),we};we.walkTokens=function(e,t){return rn.walkTokens(e,t)};we.parseInline=rn.parseInline;we.Parser=gt;we.parser=gt.parse;we.Renderer=tr;we.TextRenderer=yi;we.Lexer=pt;we.lexer=pt.lex;we.Tokenizer=to;we.Hooks=Un;we.parse=we;we.options;we.setOptions;we.use;we.walkTokens;we.parseInline;gt.parse;pt.lex;function i2(e,t){return"<pre><code>"+(r=>r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))(e??"")+"</code></pre>"}const xs=["a","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","ol","p","pre","section","span","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],Et=["style","title"];function l2(e){return x$(e,{allowedTags:xs,allowedAttributes:{...xs.reduce((t,n)=>(t[n]=[...Et],t),{}),code:["class",...Et],img:["src","srcset","alt","width","height",...Et],table:["width",...Et],td:["align","width",...Et],th:["align","width",...Et],a:["href","target",...Et],ol:["start",...Et],ul:["start",...Et]}})}class s2 extends tr{table({header:t,rows:n}){const r=this.tablerow({text:t.map(a=>this.tablecell(a)).join("")}),o=n.map(a=>this.tablerow({text:a.map(i=>this.tablecell(i)).join("")})).join("");return`<table width="100%">
348
344
  <thead>
349
345
  ${r}</thead>
350
346
  <tbody>
351
347
  ${o}</tbody>
352
- </table>`}link({href:t,title:n,tokens:r}){const o=this.parser.parseInline(r),a=n?` title="${n}"`:"";return`<a href="${t}"${a} target="_blank" rel="noopener noreferrer">${o}</a>`}code({text:t,lang:n}){return Y$(t)}}function X$(e){return e.replace(/^---[\s\S]*?---\s*\n?/,"")}function Q$(e){return e.replace(/\^([^^]+)\^/g,"<sup>$1</sup>").replace(new RegExp("(?<!~)~(?!~)([^~]+)(?<!~)~(?!~)","g"),"<sub>$1</sub>")}function e2(e){const t=X$(e),n=Q$(t),r=we.parse(n,{async:!1,breaks:!0,gfm:!0,pedantic:!1,silent:!1,renderer:new J$});if(typeof r!="string")throw new Error("marked.parse did not return a string");return K$(r)}function t2({markdown:e,...t}){const n=V.useMemo(()=>e2(e),[e]);return m.jsx("div",{...t,dangerouslySetInnerHTML:{__html:n}})}const n2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),r2=$().regex(/^rgba?\([^\)]+\)$/i),o2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ps=D([n2,r2,o2,le("transparent")]).nullable().optional(),a2=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),i2=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),l2=C({style:C({color:ps,backgroundColor:ps,fontSize:g().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...or]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:a2,margin:i2}).optional().nullable(),props:C({markdown:$().optional().nullable(),html:$().optional().nullable()}).optional().nullable(),responsive:Ye}),s2={markdown:""};function c2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function u2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function d2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:c2(e==null?void 0:e.padding),margin:u2(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},r=(t==null?void 0:t.markdown)??s2.markdown,o=t==null?void 0:t.html,a=m.jsx("style",{children:".mdx-block ul,.mdx-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}"});return o?m.jsxs("div",{className:"mdx-block",...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx("div",{dangerouslySetInnerHTML:{__html:so(o)}})]}):m.jsxs("div",{className:"mdx-block",...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx(t2,{markdown:r,style:n})]})}const h2=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e},f2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),p2=$().regex(/^rgba?\([^\)]+\)$/i),g2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),m2=le("transparent"),gs=D([f2,p2,g2,m2]).nullable().optional(),b2=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),x2=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),v2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,k2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,w2=C({style:C({color:gs,backgroundColor:gs,fontSize:g().gte(0).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:T(["bold","normal",...or]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:b2,margin:x2}).optional().nullable(),props:C({text:$().optional().nullable()}).optional().nullable(),responsive:Ye}),S2={text:""};function $2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:h2(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:v2(e==null?void 0:e.padding)??0,margin:k2(e==null?void 0:e.margin)??0,wordBreak:"break-word",overflowWrap:"break-word"},r=jc(so((t==null?void 0:t.text)??S2.text));return m.jsxs("div",{className:"quill-block ql-editor",...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...n,maxWidth:"100%",boxSizing:"border-box"},children:[m.jsx("style",{children:".quill-block ul,.quill-block ol{margin:0.5em 0;padding-left:2.5em}.quill-block li:not(.ql-direction-rtl)::before{margin-left:-2.5em}.quill-block blockquote{border-left:4px solid var(--pp-text-muted,#9ca3af);margin:0;padding:0.25em 0 0.25em 12px;font-style:italic;color:inherit}.quill-block *:not(blockquote)+blockquote{margin-top:0.75em}.quill-block blockquote+*:not(blockquote){margin-top:0.75em}.quill-block blockquote p{margin:0}.quill-block pre,.quill-block .ql-code-block-container,.quill-block .ql-code-block{background:var(--pp-surface-alt,#f3f4f6);border-radius:4px;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.9em;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;box-sizing:border-box}.quill-block img{max-width:100%;height:auto;display:block}"}),m.jsx("div",{dangerouslySetInnerHTML:{__html:r}})]})}const ms=C({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),_2=C({responsive:Ye,style:C({padding:ms,margin:ms,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({demoId:$().default(""),iframeSrc:$().default(""),width:D([g(),$()]).optional().nullable(),height:D([g(),$()]).optional().nullable(),borderRadius:g().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable()}).optional().nullable()}),bs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,C2=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,Ho=1440,Go=830,A2=({style:e,props:t})=>{const{demoId:n,iframeSrc:r,width:o,borderRadius:a,borderColor:i,borderWidth:l}=t??{},s={padding:bs(e==null?void 0:e.padding),margin:bs(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!r)return m.jsx(m.Fragment,{});const u=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return m.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:u},children:m.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${C2(o,"100%")})`,aspectRatio:`${Ho} / ${Go}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${a??10}px`,border:i?`${l??1}px solid ${i}`:"none"},children:m.jsx("div",{id:"demoScaler",style:{width:Ho,height:Go,transformOrigin:"top left"},children:m.jsx("iframe",{src:r,style:{width:Ho,height:Go,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},r)})})})},_u=pm(()=>C({id:$().optional(),name:$().optional(),href:$().optional(),pageId:$().optional().nullable(),menuImage:$().optional(),children:re(_u).optional()})),Wo=C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),y2=C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),I2=C({menuId:$().default(""),useCustomMenu:L().default(!1),navRole:T(["header","footer"]).optional().nullable(),stickyNav:L().default(!1),stickyNavTablet:L().optional().nullable(),stickyNavMobile:L().optional().nullable(),position:T(["left","center","right"]).default("left"),orientation:T(["horizontal","vertical","columns"]).default("horizontal"),menuItems:re(_u).optional().nullable(),startChildrenIds:re($()).optional().nullable(),endChildrenIds:re($()).optional().nullable(),layout:T(["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:g().optional().nullable(),submenuIconSize:g().optional().nullable(),submenuTextColor:$().optional().nullable(),submenuFontSize:$().optional().nullable(),submenuFontWeight:$().optional().nullable(),submenuPadding:Wo,submenuItemPadding:Wo,submenuMinWidth:g().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),padding:$().default("8px 16px"),blockPadding:Wo,blockMargin:y2,gap:$().default("16px"),showIcons:L().default(!0),iconSize:$().default("24px")}),R2=C({style:C({}).passthrough().optional().nullable(),responsive:Ye,props:I2.optional().nullable()}),T2={left:"flex-start",center:"center",right:"flex-end"},Cu=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,N2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,E2=e=>e?e.left+e.right:0,M2=e=>!!e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")),_i=e=>M2(e)?{backgroundImage:e,backgroundColor:"transparent"}:{backgroundColor:e??void 0},Au=(e,t,n=!1,r,o)=>{const a=E2(o);return{..._i(e),width:`calc(100% - ${a}px)`,display:"flex",alignItems:"center",gap:"16px",padding:Cu(r),margin:N2(o),justifyContent:n?"space-between":T2[t]||"flex-start"}},Uo=(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}),P2=(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"}),O2={position:"relative"},yu=(e,t,n,r,o,a,i,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:r,fontWeight:(l==null?void 0:l.fontWeight)??o,fontFamily:i||void 0,padding:(l==null?void 0:l.padding)??a,textDecoration:"none",whiteSpace:"nowrap",..._i(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}),Iu=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),L2=e=>({paddingLeft:e===0?"0":"12px"}),z2=(e,t,n,r,o)=>({..._i(e),borderRadius:`${t}px`,border:n?`1px solid ${n}`:void 0,boxShadow:"0 12px 32px color-mix(in srgb, currentColor 18%, transparent)",padding:Cu(r)??"8px",minWidth:`${o??260}px`}),B2=e=>({display:"inline-flex",alignItems:"center",marginLeft:"6px",width:`${e}px`,height:`${e}px`,flexShrink:0}),j2="M6 9l6 6 6-6",Ru={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},D2=e=>({color:e});function F2(e,t){const n=`.ahd-menu-${e}`,r=(t==null?void 0:t.dropdownBackground)||"#fff",o=t!=null&&t.hasSubmenuItemPadding?"padding-left:32px!important":"padding:10px 16px 10px 32px!important",a=[`${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(""),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:${r};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-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{${o}}`,`${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:${Ue}px)`;return a+`@media ${l}{${i}}@container ahd-page ${l}{${i}}`}const H2=(e,t)=>{const n=!!t.stickyNav,r=t.stickyNavTablet??n,o=t.stickyNavMobile??r,a=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 i=n?a(!0):"";if(r!==n){const l=`(max-width:${Ue}px)`;i+=`@media ${l}{${a(r)}}`,i+=`@container ahd-page ${l}{${a(r)}}`}if(o!==r){const l=`(max-width:${Ve}px)`;i+=`@media ${l}{${a(o)}}`,i+=`@container ahd-page ${l}{${a(o)}}`}return i},G2=({p:e,menuItems:t,menuKey:n,textColor:r,submenuTextColor:o,submenuFontSize:a,backgroundColor:i,fontFamily:l,start:s,end:u})=>{const{fontSize:c="14px",fontWeight:h="400",padding:d="8px 16px",gap:f="16px",showIcons:p=!0,iconSize:b="24px",blockPadding:x,blockMargin:w,borderColor:k,borderWidth:S,borderRadius:v,submenuItemPadding:_}=e||{},y=o||(e==null?void 0:e.submenuTextColor)||r,A=a||(e==null?void 0:e.submenuFontSize)||c,I=(e==null?void 0:e.submenuFontWeight)||h,R=_?`${_.top}px ${_.right}px ${_.bottom}px ${_.left}px`:d,N=(P,M,O=!1)=>m.jsx("li",{style:{listStyle:"none"},children:m.jsxs("a",{href:P.href||"#",style:yu(p,!!P.menuImage,O?y:r,O?A:c,O?I:h,O?R:d,l,P),children:[p&&P.menuImage&&m.jsx("img",{src:P.menuImage,alt:"","aria-hidden":"true",style:Iu(b)}),P.name||P.label||""]})},P.id||M);return m.jsxs("nav",{className:`ahd-menu-cols ahd-menu-cols-${n}`,"data-block":"menu","data-layout":"columns","aria-label":"Footer navigation",style:{...Au(i,"left",!0,x,w),alignItems:"flex-start",flexWrap:"wrap",gap:"32px",boxSizing:"border-box",...k?{borderStyle:"solid",borderColor:k,borderWidth:S?`${S.top??1}px ${S.right??1}px ${S.bottom??1}px ${S.left??1}px`:"1px"}:{},...v!=null?{borderRadius:typeof v=="number"?`${v}px`:`${(v==null?void 0:v.topLeft)??0}px ${(v==null?void 0:v.topRight)??0}px ${(v==null?void 0:v.bottomRight)??0}px ${(v==null?void 0:v.bottomLeft)??0}px`}:{}},children:[s&&m.jsx("div",{className:"ahd-menu-cols-start",style:{flex:"1 1 240px",minWidth:0},children:s}),m.jsx("div",{className:"ahd-menu-cols-grid",style:{flex:"2 1 420px",minWidth:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:f},children:t.map((P,M)=>m.jsxs("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:f},children:[N(P,M),(Array.isArray(P.children)?P.children:[]).map((O,j)=>N(O,j,!0))]},P.id||M))}),u&&m.jsx("div",{className:"ahd-menu-cols-end",style:{flex:"0 0 auto",minWidth:0},children:u})]})},W2=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},_a=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},xs=({size:e,className:t})=>m.jsx("span",{className:t,style:B2(e),"aria-hidden":"true",children:m.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:j2})})}),Ca=(e,t,n=0)=>{if(!e||e.length===0)return null;const{textColor:r,fontSize:o,fontWeight:a,padding:i,orientation:l,gap:s,showIcons:u,iconSize:c,toggleId:h,listId:d,fontFamily:f,menuKey:p,submenuBackground:b,submenuRadius:x,submenuBorderColor:w,submenuIconSize:k,submenuPadding:S,submenuItemPadding:v,submenuMinWidth:_,submenuTextColor:y,submenuFontSize:A,submenuFontWeight:I}=t,R=n>0&&v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:i,N=n>0&&y?y:r,P=n>0&&A?A:o,M=n>0&&I?I:a;return m.jsx("ul",{id:n===0?d:void 0,className:n===0?"ahd-menu-list":"ahd-menu-sublist",style:P2(l,n,s),children:e.map((O,j)=>{const F=Array.isArray(O.children)?O.children:[],H=F.length>0,W=`ahd-submenu-${p}-${n}-${O.id||j}`,U=O.name||O.label||"",X=m.jsxs("a",{href:O.href||"#",style:yu(u,!!O.menuImage,N,P,M,R,f,O),children:[u&&O.menuImage&&m.jsx("img",{src:O.menuImage,alt:"","aria-hidden":"true",style:Iu(c)}),U,H&&m.jsx(xs,{size:k,className:"ahd-menu-caret"})]}),Z=H?m.jsxs("span",{className:"ahd-menu-item-row",children:[m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:q=>q.stopPropagation(),children:X}),m.jsx("label",{htmlFor:W,className:"ahd-menu-sub-caret","aria-label":`Toggle ${U} submenu`,onClick:_a(W),children:m.jsx(xs,{size:k,className:"ahd-menu-sub-caret-icon"})})]}):m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:q=>q.stopPropagation(),children:X});return m.jsxs("li",{style:O2,children:[H&&m.jsx("input",{type:"checkbox",id:W,className:"ahd-menu-sub-toggle","aria-hidden":"true",tabIndex:-1,style:Ru,onClick:q=>q.stopPropagation()}),Z,H&&m.jsx("div",{className:"ahd-menu-submenu",style:L2(n),children:m.jsx("div",{style:z2(b,x,w,S,_),children:Ca(F,{...t,orientation:"vertical"},n+1)})})]},O.id||j)})})},U2=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:r=!1,stickyNavTablet:o,stickyNavMobile:a,menuItems:i,startChildrenIds:l,endChildrenIds:s,layout:u="menu-only",position:c="left",orientation:h="horizontal",backgroundColor:d="transparent",textColor:f="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:w="400",padding:k="8px 16px",blockPadding:S,blockMargin:v,gap:_="16px",showIcons:y=!0,iconSize:A="24px",borderColor:I,borderWidth:R,borderRadius:N,submenuBackgroundColor:P,submenuRadius:M,submenuIconSize:O,submenuPadding:j,submenuItemPadding:F,submenuMinWidth:H,submenuTextColor:W,submenuFontSize:U,submenuFontWeight:X,bare:Z}=e??{},q=ci(),ae=z(d,"bgAdaptive")??d,$e=z(f,"menuText")??f,ce=q(I),pe=q(p),Le=q(P),ee=q(W),Y=z(null,"menuSurface");if(!(Array.isArray(i)&&i.length>0)||!n&&!t)return m.jsx(m.Fragment,{});const B=u==="logo-menu"||u==="logo-menu-cta",J=u==="menu-cta"||u==="logo-menu-cta",me=B||J,ke=c==="right"?"end":c==="center"?"center":"start",be=V.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),ge=t||be,Ce=(Z==null?void 0:Z.toggleId)??`ahd-menu-toggle-${ge}`,oe=(Z==null?void 0:Z.listId)??`ahd-menu-list-${ge}`,Pe=W2(x),De=Z?Z.toggleId.replace(/^ahd-menu-toggle-/,""):ge,xe={textColor:$e,fontSize:b,fontWeight:w,padding:k,orientation:h,gap:_,showIcons:y,iconSize:A,toggleId:Ce,listId:oe,fontFamily:Pe,menuKey:De,submenuBackground:Le||pe||(d!=="transparent"?ae:Y),submenuRadius:M??8,submenuBorderColor:ce??null,submenuIconSize:O??14,submenuPadding:j??null,submenuItemPadding:F??null,submenuMinWidth:H??null,submenuTextColor:ee||null,submenuFontSize:U||null,submenuFontWeight:X||null};if(h==="columns"&&!Z){const Q=Be=>Be!=null&&Be.length?Be.map(ze=>m.jsx(Me,{id:ze},ze)):null;return m.jsx(G2,{p:{...e,borderColor:ce},menuItems:i,menuKey:ge,textColor:$e,submenuTextColor:ee||null,submenuFontSize:U||null,backgroundColor:ae,fontFamily:Pe,start:B?Q(l):null,end:J?Q(s):null})}if(Z)return m.jsx(m.Fragment,{children:Ca(i,xe)});const Fe=H2(ge,{stickyNav:r,stickyNavTablet:o,stickyNavMobile:a}),He=F2(ge,{dropdownBackground:pe??(d!=="transparent"?ae:null),hasSubmenuItemPadding:!!F});return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:He}},ge),Fe&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Fe}}),m.jsxs("nav",{className:`ahd-menu ahd-menu-${ge} ahd-menu-sticky-${ge}`,"data-block":"menu","data-layout":u,...de(d,void 0,"bgAdaptive"),style:{...Au(ae,c,me,S,v),...ce?{borderStyle:"solid",borderColor:ce,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...N!=null?{borderRadius:typeof N=="number"?`${N}px`:`${(N==null?void 0:N.topLeft)??0}px ${(N==null?void 0:N.topRight)??0}px ${(N==null?void 0:N.bottomRight)??0}px ${(N==null?void 0:N.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[m.jsx("input",{type:"checkbox",id:Ce,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":oe,style:Ru,onClick:Q=>Q.stopPropagation()}),m.jsx("label",{htmlFor:Ce,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:_a(Ce)}),B&&m.jsx("div",{className:"ahd-menu-start",style:Uo("start"),children:(l??[]).map(Q=>m.jsx(Me,{id:Q},Q))}),m.jsx("div",{className:"ahd-menu-center",style:Uo(ke,me),children:Ca(i,xe)}),J&&m.jsx("div",{className:"ahd-menu-end",style:Uo("end"),children:(s??[]).map(Q=>m.jsx(Me,{id:Q},Q))}),m.jsxs("label",{htmlFor:Ce,className:"ahd-menu-burger","aria-hidden":"true",style:D2($e),onClick:_a(Ce),children:[m.jsx("span",{}),m.jsx("span",{}),m.jsx("span",{})]})]})]})},Z2=C({id:$().optional(),label:$().optional(),href:$().optional(),textColor:$().optional().nullable()}),q2=C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),V2=C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),Y2=C({items:re(Z2).optional().nullable(),separator:T(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:$().optional().nullable(),showHomeIcon:L().default(!1),homeHref:$().default("/"),collapseOnMobile:L().default(!0),currentItemLinked:L().default(!1),textColor:$().default("#595959"),currentItemColor:$().optional().nullable(),separatorColor:$().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),gap:$().default("8px"),blockPadding:q2,blockMargin:V2}),K2=C({style:C({}).passthrough().optional().nullable(),responsive:Ye,props:Y2.optional().nullable()}),Zo={slash:"/",chevron:"›",dot:"•",pipe:"|"};function J2(e,t){return e==="custom"?t||"›":e&&Zo[e]?Zo[e]:Zo.chevron}function X2(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),r=`(max-width:${Ve}px)`;return`@media ${r}{${n}}@container ahd-page ${r}{${n}}`}const Q2=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Tu=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,e_=Tu,t_="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",n_=({size:e,color:t})=>m.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:m.jsx("path",{d:t_,fill:t})}),r_=({color:e,fontSize:t})=>m.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),o_=({props:e,renderLabel:t})=>{const{items:n,separator:r="chevron",customSeparator:o,showHomeIcon:a=!1,homeHref:i="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:u="#595959",currentItemColor:c,separatorColor:h,fontSize:d="14px",fontFamily:f,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:w}=e??{},k=ci(),S=z(u,"breadcrumbText"),v=k(c),_=k(h);if(!(Array.isArray(n)&&n.length>0))return m.jsx(m.Fragment,{});const A=Q2(f),I=J2(r,o),R=n.length-1,N=V.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),P=l?X2(N):"",M=(O,j,F)=>{const H=(F?v:null)||k(O.textColor)||S,W=!F||s,U={color:H,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:O,index:j,isLast:F,style:U}):W?m.jsx("a",{href:O.href||"#",style:U,"aria-current":F?"page":void 0,children:O.label||""}):m.jsx("span",{style:U,"aria-current":"page",children:O.label||""})};return m.jsxs(m.Fragment,{children:[P&&m.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),m.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${N}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Tu(x),margin:e_(w)},children:m.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:A,fontWeight:p},children:[a&&m.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[m.jsx("a",{href:i||"/",style:{display:"flex",color:S},children:m.jsx(n_,{size:parseInt(d,10)||14,color:S})}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]}),n.map((O,j)=>{const F=j===R,H=l&&j!==0&&!F;return m.jsxs("li",{className:H?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[M(O,j,F),!F&&m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]},O.id||j)}),l&&n.length>2&&m.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[m.jsx(r_,{color:S,fontSize:d}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]})]})})]})},a_=C({style:C({}).passthrough().optional().nullable(),props:C({formId:$().default(""),formName:$().default(""),iframeSrc:$().default(""),width:$().default("100%"),height:$().default("500px"),heightTablet:$().optional(),heightMobile:$().optional(),autoHeight:L().default(!1),alignment:T(["left","center","right"]).default("left")}).optional().nullable()}),i_=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)}`},l_=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},s_=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},c_=({props:e,style:t})=>{var S,v;const{formId:n,iframeSrc:r,width:o,height:a,heightTablet:i,heightMobile:l,autoHeight:s=!1,alignment:u="left",formName:c}=e??{};if(!n||!r)return m.jsx(m.Fragment,{});const h=u==="center"?"center":u==="right"?"flex-end":"flex-start",d=t??{},f=(((S=d.margin)==null?void 0:S.left)||0)+(((v=d.margin)==null?void 0:v.right)||0),p=Ux(d.borderRadius),b={display:"flex",justifyContent:h,width:`calc(100% - ${f}px)`,padding:l_(d.padding),margin:s_(d.margin),backgroundColor:z(d.backgroundColor,"bgAdaptive")||void 0,borderRadius:p},x=i_(`${n}|${r??""}`),w=!s&&(i||l)?`
353
- ${i?`${on} { #${x} { height: ${i} !important; } }`:""}
354
- ${l?`${et} { #${x} { height: ${l} !important; } }`:""}
348
+ </table>`}link({href:t,title:n,tokens:r}){const o=this.parser.parseInline(r),a=n?` title="${n}"`:"";return`<a href="${t}"${a} target="_blank" rel="noopener noreferrer">${o}</a>`}code({text:t,lang:n}){return i2(t)}}function c2(e){return e.replace(/^---[\s\S]*?---\s*\n?/,"")}function u2(e){return e.replace(/\^([^^]+)\^/g,"<sup>$1</sup>").replace(new RegExp("(?<!~)~(?!~)([^~]+)(?<!~)~(?!~)","g"),"<sub>$1</sub>")}function d2(e){const t=c2(e),n=u2(t),r=we.parse(n,{async:!1,breaks:!0,gfm:!0,pedantic:!1,silent:!1,renderer:new s2});if(typeof r!="string")throw new Error("marked.parse did not return a string");return l2(r)}function h2({markdown:e,...t}){const n=U.useMemo(()=>d2(e),[e]);return m.jsx("div",{...t,dangerouslySetInnerHTML:{__html:n}})}const f2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),p2=$().regex(/^rgba?\([^\)]+\)$/i),g2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),vs=F([f2,p2,g2,le("transparent")]).nullable().optional(),m2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),b2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),x2=A({style:A({color:vs,backgroundColor:vs,fontSize:g().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:m2,margin:b2}).optional().nullable(),props:A({markdown:$().optional().nullable(),html:$().optional().nullable()}).optional().nullable(),responsive:Ye}),v2={markdown:""};function k2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function w2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function S2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:k2(e==null?void 0:e.padding),margin:w2(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},r=(t==null?void 0:t.markdown)??v2.markdown,o=t==null?void 0:t.html,a=m.jsx("style",{children:".mdx-block ul,.mdx-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}"});return o?m.jsxs("div",{className:"mdx-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx("div",{dangerouslySetInnerHTML:{__html:fo(o)}})]}):m.jsxs("div",{className:"mdx-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx(h2,{markdown:r,style:n})]})}const $2=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e},_2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),C2=$().regex(/^rgba?\([^\)]+\)$/i),A2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),y2=le("transparent"),ks=F([_2,C2,A2,y2]).nullable().optional(),I2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),R2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),T2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,E2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,N2=A({style:A({color:ks,backgroundColor:ks,fontSize:g().gte(0).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:I2,margin:R2}).optional().nullable(),props:A({text:$().optional().nullable()}).optional().nullable(),responsive:Ye}),M2={text:""};function P2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:$2(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:T2(e==null?void 0:e.padding)??0,margin:E2(e==null?void 0:e.margin)??0,wordBreak:"break-word",overflowWrap:"break-word"},r=Gc(fo((t==null?void 0:t.text)??M2.text));return m.jsxs("div",{className:"quill-block ql-editor",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...n,maxWidth:"100%",boxSizing:"border-box"},children:[m.jsx("style",{children:".quill-block ul,.quill-block ol{margin:0.5em 0;padding-left:2.5em}.quill-block li:not(.ql-direction-rtl)::before{margin-left:-2.5em}.quill-block blockquote{border-left:4px solid var(--pp-text-muted,#9ca3af);margin:0;padding:0.25em 0 0.25em 12px;font-style:italic;color:inherit}.quill-block *:not(blockquote)+blockquote{margin-top:0.75em}.quill-block blockquote+*:not(blockquote){margin-top:0.75em}.quill-block blockquote p{margin:0}.quill-block pre,.quill-block .ql-code-block-container,.quill-block .ql-code-block{background:var(--pp-surface-alt,#f3f4f6);border-radius:4px;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.9em;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;box-sizing:border-box}.quill-block img{max-width:100%;height:auto;display:block}"}),m.jsx("div",{dangerouslySetInnerHTML:{__html:r}})]})}const ws=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),O2=A({responsive:Ye,style:A({padding:ws,margin:ws,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:$().default(""),iframeSrc:$().default(""),width:F([g(),$()]).optional().nullable(),height:F([g(),$()]).optional().nullable(),borderRadius:g().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable()}).optional().nullable()}),Ss=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,L2=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,Zo=1440,qo=830,z2=({style:e,props:t})=>{const{demoId:n,iframeSrc:r,width:o,borderRadius:a,borderColor:i,borderWidth:l}=t??{},s={padding:Ss(e==null?void 0:e.padding),margin:Ss(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!r)return m.jsx(m.Fragment,{});const u=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return m.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:u},children:m.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${L2(o,"100%")})`,aspectRatio:`${Zo} / ${qo}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${a??10}px`,border:i?`${l??1}px solid ${i}`:"none"},children:m.jsx("div",{id:"demoScaler",style:{width:Zo,height:qo,transformOrigin:"top left"},children:m.jsx("iframe",{src:r,style:{width:Zo,height:qo,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},r)})})})},Ru=vm(()=>A({id:$().optional(),name:$().optional(),href:$().optional(),pageId:$().optional().nullable(),menuImage:$().optional(),children:oe(Ru).optional()})),Vo=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),j2=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),B2=A({menuId:$().default(""),useCustomMenu:L().default(!1),navRole:T(["header","footer"]).optional().nullable(),stickyNav:L().default(!1),stickyNavTablet:L().optional().nullable(),stickyNavMobile:L().optional().nullable(),position:T(["left","center","right"]).default("left"),orientation:T(["horizontal","vertical","columns"]).default("horizontal"),menuItems:oe(Ru).optional().nullable(),startChildrenIds:oe($()).optional().nullable(),endChildrenIds:oe($()).optional().nullable(),layout:T(["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:g().optional().nullable(),submenuIconSize:g().optional().nullable(),submenuTextColor:$().optional().nullable(),submenuFontSize:$().optional().nullable(),submenuFontWeight:$().optional().nullable(),submenuPadding:Vo,submenuItemPadding:Vo,submenuMinWidth:g().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),padding:$().default("8px 16px"),blockPadding:Vo,blockMargin:j2,gap:$().default("16px"),showIcons:L().default(!0),iconSize:$().default("24px")}),D2=A({style:A({}).passthrough().optional().nullable(),responsive:Ye,props:B2.optional().nullable()}),F2={left:"flex-start",center:"center",right:"flex-end"},Tu=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,H2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,G2=e=>e?e.left+e.right:0,W2=e=>!!e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")),Ii=e=>W2(e)?{backgroundImage:e,backgroundColor:"transparent"}:{backgroundColor:e??void 0},Eu=(e,t,n=!1,r,o)=>{const a=G2(o);return{...Ii(e),width:`calc(100% - ${a}px)`,display:"flex",alignItems:"center",gap:"16px",padding:Tu(r),margin:H2(o),justifyContent:n?"space-between":F2[t]||"flex-start"}},Yo=(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}),U2=(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"}),Z2={position:"relative"},Nu=(e,t,n,r,o,a,i,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:r,fontWeight:(l==null?void 0:l.fontWeight)??o,fontFamily:i||void 0,padding:(l==null?void 0:l.padding)??a,textDecoration:"none",whiteSpace:"nowrap",...Ii(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}),Mu=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),q2=e=>({paddingLeft:e===0?"0":"12px"}),V2=(e,t,n,r,o)=>({...Ii(e),borderRadius:`${t}px`,border:n?`1px solid ${n}`:void 0,boxShadow:"0 12px 32px color-mix(in srgb, currentColor 18%, transparent)",padding:Tu(r)??"8px",minWidth:`${o??260}px`}),Y2=e=>({display:"inline-flex",alignItems:"center",marginLeft:"6px",width:`${e}px`,height:`${e}px`,flexShrink:0}),K2="M6 9l6 6 6-6",Pu={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},J2=e=>({color:e});function X2(e,t){const n=`.ahd-menu-${e}`,r=(t==null?void 0:t.dropdownBackground)||"#fff",o=t!=null&&t.hasSubmenuItemPadding?"padding-left:32px!important":"padding:10px 16px 10px 32px!important",a=[`${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(""),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:${r};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-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{${o}}`,`${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:${Ue}px)`;return a+`@media ${l}{${i}}@container ahd-page ${l}{${i}}`}const Q2=(e,t)=>{const n=!!t.stickyNav,r=t.stickyNavTablet??n,o=t.stickyNavMobile??r,a=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 i=n?a(!0):"";if(r!==n){const l=`(max-width:${Ue}px)`;i+=`@media ${l}{${a(r)}}`,i+=`@container ahd-page ${l}{${a(r)}}`}if(o!==r){const l=`(max-width:${Ve}px)`;i+=`@media ${l}{${a(o)}}`,i+=`@container ahd-page ${l}{${a(o)}}`}return i},e_=({p:e,menuItems:t,menuKey:n,textColor:r,submenuTextColor:o,submenuFontSize:a,backgroundColor:i,fontFamily:l,start:s,end:u})=>{const{fontSize:c="14px",fontWeight:h="400",padding:d="8px 16px",gap:f="16px",showIcons:p=!0,iconSize:b="24px",blockPadding:x,blockMargin:w,borderColor:k,borderWidth:S,borderRadius:v,submenuItemPadding:_}=e||{},y=o||(e==null?void 0:e.submenuTextColor)||r,C=a||(e==null?void 0:e.submenuFontSize)||c,I=(e==null?void 0:e.submenuFontWeight)||h,R=_?`${_.top}px ${_.right}px ${_.bottom}px ${_.left}px`:d,E=(O,M,P=!1)=>m.jsx("li",{style:{listStyle:"none"},children:m.jsxs("a",{href:O.href||"#",style:Nu(p,!!O.menuImage,P?y:r,P?C:c,P?I:h,P?R:d,l,O),children:[p&&O.menuImage&&m.jsx("img",{src:O.menuImage,alt:"","aria-hidden":"true",style:Mu(b)}),O.name||O.label||""]})},O.id||M);return m.jsxs("nav",{className:`ahd-menu-cols ahd-menu-cols-${n}`,"data-block":"menu","data-layout":"columns","aria-label":"Footer navigation",style:{...Eu(i,"left",!0,x,w),alignItems:"flex-start",flexWrap:"wrap",gap:"32px",boxSizing:"border-box",...k?{borderStyle:"solid",borderColor:k,borderWidth:S?`${S.top??1}px ${S.right??1}px ${S.bottom??1}px ${S.left??1}px`:"1px"}:{},...v!=null?{borderRadius:typeof v=="number"?`${v}px`:`${(v==null?void 0:v.topLeft)??0}px ${(v==null?void 0:v.topRight)??0}px ${(v==null?void 0:v.bottomRight)??0}px ${(v==null?void 0:v.bottomLeft)??0}px`}:{}},children:[s&&m.jsx("div",{className:"ahd-menu-cols-start",style:{flex:"1 1 240px",minWidth:0},children:s}),m.jsx("div",{className:"ahd-menu-cols-grid",style:{flex:"2 1 420px",minWidth:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:f},children:t.map((O,M)=>m.jsxs("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:f},children:[E(O,M),(Array.isArray(O.children)?O.children:[]).map((P,B)=>E(P,B,!0))]},O.id||M))}),u&&m.jsx("div",{className:"ahd-menu-cols-end",style:{flex:"0 0 auto",minWidth:0},children:u})]})},t_=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Ia=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},$s=({size:e,className:t})=>m.jsx("span",{className:t,style:Y2(e),"aria-hidden":"true",children:m.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:K2})})}),Ra=(e,t,n=0)=>{if(!e||e.length===0)return null;const{textColor:r,fontSize:o,fontWeight:a,padding:i,orientation:l,gap:s,showIcons:u,iconSize:c,toggleId:h,listId:d,fontFamily:f,menuKey:p,submenuBackground:b,submenuRadius:x,submenuBorderColor:w,submenuIconSize:k,submenuPadding:S,submenuItemPadding:v,submenuMinWidth:_,submenuTextColor:y,submenuFontSize:C,submenuFontWeight:I}=t,R=n>0&&v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:i,E=n>0&&y?y:r,O=n>0&&C?C:o,M=n>0&&I?I:a;return m.jsx("ul",{id:n===0?d:void 0,className:n===0?"ahd-menu-list":"ahd-menu-sublist",style:U2(l,n,s),children:e.map((P,B)=>{const D=Array.isArray(P.children)?P.children:[],H=D.length>0,G=`ahd-submenu-${p}-${n}-${P.id||B}`,W=P.name||P.label||"",J=m.jsxs("a",{href:P.href||"#",style:Nu(u,!!P.menuImage,E,O,M,R,f,P),children:[u&&P.menuImage&&m.jsx("img",{src:P.menuImage,alt:"","aria-hidden":"true",style:Mu(c)}),W,H&&m.jsx($s,{size:k,className:"ahd-menu-caret"})]}),X=H?m.jsxs("span",{className:"ahd-menu-item-row",children:[m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:q=>q.stopPropagation(),children:J}),m.jsx("label",{htmlFor:G,className:"ahd-menu-sub-caret","aria-label":`Toggle ${W} submenu`,onClick:Ia(G),children:m.jsx($s,{size:k,className:"ahd-menu-sub-caret-icon"})})]}):m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:q=>q.stopPropagation(),children:J});return m.jsxs("li",{style:Z2,children:[H&&m.jsx("input",{type:"checkbox",id:G,className:"ahd-menu-sub-toggle","aria-hidden":"true",tabIndex:-1,style:Pu,onClick:q=>q.stopPropagation()}),X,H&&m.jsx("div",{className:"ahd-menu-submenu",style:q2(n),children:m.jsx("div",{style:V2(b,x,w,S,_),children:Ra(D,{...t,orientation:"vertical"},n+1)})})]},P.id||B)})})},n_=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:r=!1,stickyNavTablet:o,stickyNavMobile:a,menuItems:i,startChildrenIds:l,endChildrenIds:s,layout:u="menu-only",position:c="left",orientation:h="horizontal",backgroundColor:d="transparent",textColor:f="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:w="400",padding:k="8px 16px",blockPadding:S,blockMargin:v,gap:_="16px",showIcons:y=!0,iconSize:C="24px",borderColor:I,borderWidth:R,borderRadius:E,submenuBackgroundColor:O,submenuRadius:M,submenuIconSize:P,submenuPadding:B,submenuItemPadding:D,submenuMinWidth:H,submenuTextColor:G,submenuFontSize:W,submenuFontWeight:J,bare:X}=e??{},q=hi(),te=z(d,"bgAdaptive")??d,$e=z(f,"menuText")??f,Ce=q(I),xe=q(p),ve=q(O),ee=q(G),Y=z(null,"menuSurface");if(!(Array.isArray(i)&&i.length>0)||!n&&!t)return m.jsx(m.Fragment,{});const j=u==="logo-menu"||u==="logo-menu-cta",V=u==="menu-cta"||u==="logo-menu-cta",pe=j||V,ke=c==="right"?"end":c==="center"?"center":"start",ge=U.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),fe=t||ge,Ie=(X==null?void 0:X.toggleId)??`ahd-menu-toggle-${fe}`,ae=(X==null?void 0:X.listId)??`ahd-menu-list-${fe}`,Oe=t_(x),De=X?X.toggleId.replace(/^ahd-menu-toggle-/,""):fe,me={textColor:$e,fontSize:b,fontWeight:w,padding:k,orientation:h,gap:_,showIcons:y,iconSize:C,toggleId:Ie,listId:ae,fontFamily:Oe,menuKey:De,submenuBackground:ve||xe||(d!=="transparent"?te:Y),submenuRadius:M??8,submenuBorderColor:Ce??null,submenuIconSize:P??14,submenuPadding:B??null,submenuItemPadding:D??null,submenuMinWidth:H??null,submenuTextColor:ee||null,submenuFontSize:W||null,submenuFontWeight:J||null};if(h==="columns"&&!X){const Q=je=>je!=null&&je.length?je.map(ze=>m.jsx(Pe,{id:ze},ze)):null;return m.jsx(e_,{p:{...e,borderColor:Ce},menuItems:i,menuKey:fe,textColor:$e,submenuTextColor:ee||null,submenuFontSize:W||null,backgroundColor:te,fontFamily:Oe,start:j?Q(l):null,end:V?Q(s):null})}if(X)return m.jsx(m.Fragment,{children:Ra(i,me)});const Fe=Q2(fe,{stickyNav:r,stickyNavTablet:o,stickyNavMobile:a}),He=X2(fe,{dropdownBackground:xe??(d!=="transparent"?te:null),hasSubmenuItemPadding:!!D});return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:He}},fe),Fe&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Fe}}),m.jsxs("nav",{className:`ahd-menu ahd-menu-${fe} ahd-menu-sticky-${fe}`,"data-block":"menu","data-layout":u,...ue(d,void 0,"bgAdaptive"),style:{...Eu(te,c,pe,S,v),...Ce?{borderStyle:"solid",borderColor:Ce,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.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:[m.jsx("input",{type:"checkbox",id:Ie,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":ae,style:Pu,onClick:Q=>Q.stopPropagation()}),m.jsx("label",{htmlFor:Ie,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Ia(Ie)}),j&&m.jsx("div",{className:"ahd-menu-start",style:Yo("start"),children:(l??[]).map(Q=>m.jsx(Pe,{id:Q},Q))}),m.jsx("div",{className:"ahd-menu-center",style:Yo(ke,pe),children:Ra(i,me)}),V&&m.jsx("div",{className:"ahd-menu-end",style:Yo("end"),children:(s??[]).map(Q=>m.jsx(Pe,{id:Q},Q))}),m.jsxs("label",{htmlFor:Ie,className:"ahd-menu-burger","aria-hidden":"true",style:J2($e),onClick:Ia(Ie),children:[m.jsx("span",{}),m.jsx("span",{}),m.jsx("span",{})]})]})]})},r_=A({id:$().optional(),label:$().optional(),href:$().optional(),textColor:$().optional().nullable()}),o_=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),a_=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),i_=A({items:oe(r_).optional().nullable(),separator:T(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:$().optional().nullable(),showHomeIcon:L().default(!1),homeHref:$().default("/"),collapseOnMobile:L().default(!0),currentItemLinked:L().default(!1),textColor:$().default("#595959"),currentItemColor:$().optional().nullable(),separatorColor:$().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),gap:$().default("8px"),blockPadding:o_,blockMargin:a_}),l_=A({style:A({}).passthrough().optional().nullable(),responsive:Ye,props:i_.optional().nullable()}),Ko={slash:"/",chevron:"›",dot:"•",pipe:"|"};function s_(e,t){return e==="custom"?t||"›":e&&Ko[e]?Ko[e]:Ko.chevron}function c_(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),r=`(max-width:${Ve}px)`;return`@media ${r}{${n}}@container ahd-page ${r}{${n}}`}const u_=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Ou=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,d_=Ou,h_="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",f_=({size:e,color:t})=>m.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:m.jsx("path",{d:h_,fill:t})}),p_=({color:e,fontSize:t})=>m.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),g_=({props:e,renderLabel:t})=>{const{items:n,separator:r="chevron",customSeparator:o,showHomeIcon:a=!1,homeHref:i="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:u="#595959",currentItemColor:c,separatorColor:h,fontSize:d="14px",fontFamily:f,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:w}=e??{},k=hi(),S=z(u,"breadcrumbText"),v=k(c),_=k(h);if(!(Array.isArray(n)&&n.length>0))return m.jsx(m.Fragment,{});const C=u_(f),I=s_(r,o),R=n.length-1,E=U.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),O=l?c_(E):"",M=(P,B,D)=>{const H=(D?v:null)||k(P.textColor)||S,G=!D||s,W={color:H,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:P,index:B,isLast:D,style:W}):G?m.jsx("a",{href:P.href||"#",style:W,"aria-current":D?"page":void 0,children:P.label||""}):m.jsx("span",{style:W,"aria-current":"page",children:P.label||""})};return m.jsxs(m.Fragment,{children:[O&&m.jsx("style",{dangerouslySetInnerHTML:{__html:O}}),m.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${E}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Ou(x),margin:d_(w)},children:m.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:C,fontWeight:p},children:[a&&m.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[m.jsx("a",{href:i||"/",style:{display:"flex",color:S},children:m.jsx(f_,{size:parseInt(d,10)||14,color:S})}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]}),n.map((P,B)=>{const D=B===R,H=l&&B!==0&&!D;return m.jsxs("li",{className:H?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[M(P,B,D),!D&&m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]},P.id||B)}),l&&n.length>2&&m.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[m.jsx(p_,{color:S,fontSize:d}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]})]})})]})},m_=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:L().default(!1),alignment:T(["left","center","right"]).default("left")}).optional().nullable()}),b_=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)}`},x_=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},v_=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},k_=({props:e,style:t})=>{var S,v;const{formId:n,iframeSrc:r,width:o,height:a,heightTablet:i,heightMobile:l,autoHeight:s=!1,alignment:u="left",formName:c}=e??{};if(!n||!r)return m.jsx(m.Fragment,{});const h=u==="center"?"center":u==="right"?"flex-end":"flex-start",d=t??{},f=(((S=d.margin)==null?void 0:S.left)||0)+(((v=d.margin)==null?void 0:v.right)||0),p=ev(d.borderRadius),b={display:"flex",justifyContent:h,width:`calc(100% - ${f}px)`,padding:x_(d.padding),margin:v_(d.margin),backgroundColor:z(d.backgroundColor,"bgAdaptive")||void 0,borderRadius:p},x=b_(`${n}|${r??""}`),w=!s&&(i||l)?`
349
+ ${i?`${ln} { #${x} { height: ${i} !important; } }`:""}
350
+ ${l?`${Qe} { #${x} { height: ${l} !important; } }`:""}
355
351
  `:"",k=s?`
356
352
  (function(){
357
353
  var el = document.getElementById(${JSON.stringify(x)});
@@ -365,7 +361,7 @@ ${o}</tbody>
365
361
  el.style.height = Math.ceil(h) + 'px';
366
362
  });
367
363
  })();
368
- `:"";return m.jsxs(m.Fragment,{children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{...de(d.backgroundColor,void 0,"bgAdaptive"),style:b,children:m.jsx("div",{style:{width:o||"100%",borderRadius:p,overflow:p?"hidden":void 0},children:m.jsx("iframe",{id:x,src:r,title:c||"Form",style:{width:"100%",height:s?"auto":a||"500px",border:"none",display:"block"},scrolling:s?"no":void 0,loading:"lazy"})})}),k&&m.jsx("script",{dangerouslySetInnerHTML:{__html:k}})]})},u_=C({style:C({padding:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({text:$().optional().nullable(),targetId:$().optional().nullable(),backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:g().optional().nullable(),borderRadius:g().optional().nullable(),paddingX:g().optional().nullable(),paddingY:g().optional().nullable(),marginX:g().optional().nullable(),marginY:g().optional().nullable(),displayMode:T(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),kt={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 d_=0;function Nu({style:e,props:t}){var w,k;const n=((w=t==null?void 0:t.text)==null?void 0:w.trim())||kt.text,r=((k=t==null?void 0:t.targetId)==null?void 0:k.trim())||kt.targetId,o=(t==null?void 0:t.backgroundColor)??kt.backgroundColor,a=(t==null?void 0:t.textColor)??kt.textColor,i=(t==null?void 0:t.fontSize)??kt.fontSize,l=(t==null?void 0:t.borderRadius)??kt.borderRadius,s=(t==null?void 0:t.paddingX)??kt.paddingX,u=(t==null?void 0:t.paddingY)??kt.paddingY,c=(t==null?void 0:t.marginX)??kt.marginX,h=(t==null?void 0:t.marginY)??kt.marginY,d="always-visible",f=`skip-link-${++d_}`,p={padding:fi(e==null?void 0:e.padding),margin:pi(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
364
+ `:"";return m.jsxs(m.Fragment,{children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{...ue(d.backgroundColor,void 0,"bgAdaptive"),style:b,children:m.jsx("div",{style:{width:o||"100%",borderRadius:p,overflow:p?"hidden":void 0},children:m.jsx("iframe",{id:x,src:r,title:c||"Form",style:{width:"100%",height:s?"auto":a||"500px",border:"none",display:"block"},scrolling:s?"no":void 0,loading:"lazy"})})}),k&&m.jsx("script",{dangerouslySetInnerHTML:{__html:k}})]})},w_=A({style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({text:$().optional().nullable(),targetId:$().optional().nullable(),backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:g().optional().nullable(),borderRadius:g().optional().nullable(),paddingX:g().optional().nullable(),paddingY:g().optional().nullable(),marginX:g().optional().nullable(),marginY:g().optional().nullable(),displayMode:T(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),kt={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 S_=0;function Lu({style:e,props:t}){var w,k;const n=((w=t==null?void 0:t.text)==null?void 0:w.trim())||kt.text,r=((k=t==null?void 0:t.targetId)==null?void 0:k.trim())||kt.targetId,o=(t==null?void 0:t.backgroundColor)??kt.backgroundColor,a=(t==null?void 0:t.textColor)??kt.textColor,i=(t==null?void 0:t.fontSize)??kt.fontSize,l=(t==null?void 0:t.borderRadius)??kt.borderRadius,s=(t==null?void 0:t.paddingX)??kt.paddingX,u=(t==null?void 0:t.paddingY)??kt.paddingY,c=(t==null?void 0:t.marginX)??kt.marginX,h=(t==null?void 0:t.marginY)??kt.marginY,d="always-visible",f=`skip-link-${++S_}`,p={padding:bi(e==null?void 0:e.padding),margin:xi(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
369
365
  display:inline-block;
370
366
  background:${o};
371
367
  color:${a};
@@ -378,7 +374,7 @@ ${o}</tbody>
378
374
  line-height:1.2;
379
375
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
380
376
  `,x=`.${f}{${b}}
381
- .${f}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return m.jsxs("div",{className:"skip-link-block",style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:`#${r}`,className:f,"data-skip-link":d,children:n})]})}const h_=C({style:C({padding:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({renderMode:T(["inline","floating"]).optional().nullable(),position:T(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:$().optional().nullable(),triggerText:$().optional().nullable(),showLabelText:L().optional().nullable(),triggerBg:$().optional().nullable(),triggerColor:$().optional().nullable(),triggerFontSize:g().optional().nullable(),triggerBorderRadius:g().optional().nullable(),triggerPadding:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),triggerMargin:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),icon:T(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:C({contrast:L().optional().nullable(),invert:L().optional().nullable(),saturation:L().optional().nullable(),highlightLinks:L().optional().nullable(),textSize:L().optional().nullable(),textSpacing:L().optional().nullable(),lineHeight:L().optional().nullable(),hideImages:L().optional().nullable(),bigCursor:L().optional().nullable(),reset:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),wt={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"},qo={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 f_(e){return e&&qo[e]?qo[e]:qo.accessibility}function p_(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${f_(e)}"/></svg>`}const g_={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function m_(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 Eu(e){const{containerPos:t}=m_(e.position);return`
377
+ .${f}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return m.jsxs("div",{className:"skip-link-block",style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:`#${r}`,className:f,"data-skip-link":d,children:n})]})}const $_=A({style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({renderMode:T(["inline","floating"]).optional().nullable(),position:T(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:$().optional().nullable(),triggerText:$().optional().nullable(),showLabelText:L().optional().nullable(),triggerBg:$().optional().nullable(),triggerColor:$().optional().nullable(),triggerFontSize:g().optional().nullable(),triggerBorderRadius:g().optional().nullable(),triggerPadding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),triggerMargin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),icon:T(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:A({contrast:L().optional().nullable(),invert:L().optional().nullable(),saturation:L().optional().nullable(),highlightLinks:L().optional().nullable(),textSize:L().optional().nullable(),textSpacing:L().optional().nullable(),lineHeight:L().optional().nullable(),hideImages:L().optional().nullable(),bigCursor:L().optional().nullable(),reset:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),wt={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"},Jo={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 __(e){return e&&Jo[e]?Jo[e]:Jo.accessibility}function C_(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${__(e)}"/></svg>`}const A_={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function y_(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 zu(e){const{containerPos:t}=y_(e.position);return`
382
378
  /* Accessibility Tools widget */
383
379
  .ahd-a11y-widget{position:relative;display:inline-block}
384
380
  .ahd-a11y-widget.ahd-a11y-floating{position:fixed;${t}z-index:99999}
@@ -410,7 +406,7 @@ html.a11y-spacing,html.a11y-spacing *{letter-spacing:0.12em !important;word-spac
410
406
  html.a11y-lineheight,html.a11y-lineheight *{line-height:1.8 !important}
411
407
  html.a11y-hide-images img,html.a11y-hide-images picture,html.a11y-hide-images video{visibility:hidden !important}
412
408
  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}
413
- `.trim()}function Mu(e){const t={...g_,...e.features??{}},n=(h,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${h}" aria-pressed="false">${d}</button>`,r=t.contrast||t.invert||t.saturation?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Color &amp; Contrast</div><div class="ahd-a11y-row">${[t.contrast?n("contrast","High contrast"):"",t.invert?n("invert","Invert colors"):"",t.saturation?n("desat","Grayscale"):""].filter(Boolean).join("")}</div></div>`:"",o=t.textSize||t.textSpacing||t.lineHeight?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Text</div><div class="ahd-a11y-row">${[t.textSize?n("text-sm","A-"):"",t.textSize?n("text-lg","A+"):"",t.textSize?n("text-xl","A++"):"",t.textSpacing?n("spacing","Spacing"):"",t.lineHeight?n("lineheight","Line height"):"",t.highlightLinks?n("highlight-links","Highlight links"):""].filter(Boolean).join("")}</div></div>`:"",a=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>`:"",i=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=p_(e.icon??"accessibility"),u=Zx(e.triggerText,e.showLabelText!==!1,"Accessibility"),c=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
409
+ `.trim()}function ju(e){const t={...A_,...e.features??{}},n=(h,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${h}" aria-pressed="false">${d}</button>`,r=t.contrast||t.invert||t.saturation?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Color &amp; Contrast</div><div class="ahd-a11y-row">${[t.contrast?n("contrast","High contrast"):"",t.invert?n("invert","Invert colors"):"",t.saturation?n("desat","Grayscale"):""].filter(Boolean).join("")}</div></div>`:"",o=t.textSize||t.textSpacing||t.lineHeight?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Text</div><div class="ahd-a11y-row">${[t.textSize?n("text-sm","A-"):"",t.textSize?n("text-lg","A+"):"",t.textSize?n("text-xl","A++"):"",t.textSpacing?n("spacing","Spacing"):"",t.lineHeight?n("lineheight","Line height"):"",t.highlightLinks?n("highlight-links","Highlight links"):""].filter(Boolean).join("")}</div></div>`:"",a=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>`:"",i=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=C_(e.icon??"accessibility"),u=tv(e.triggerText,e.showLabelText!==!1,"Accessibility"),c=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
414
410
  <div class="ahd-a11y-widget ahd-a11y-${l}">
415
411
  <button type="button" class="ahd-a11y-trigger" aria-label="${c}" aria-expanded="false" aria-controls="ahd-a11y-panel">${s}${u!==null?`<span>${u}</span>`:""}</button>
416
412
  <div class="ahd-a11y-panel" id="ahd-a11y-panel" role="dialog" aria-label="Accessibility tools" aria-hidden="true" data-open="false">
@@ -418,7 +414,7 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
418
414
  ${r}${o}${a}${i}
419
415
  </div>
420
416
  </div>
421
- `.trim()}function Pu(){return`
417
+ `.trim()}function Bu(){return`
422
418
  (function(){
423
419
  var STORAGE_KEY='ahdA11yPrefs';
424
420
  // Classes that are mutually exclusive within their group
@@ -526,23 +522,23 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
526
522
  init();
527
523
  }
528
524
  })();
529
- `.trim()}function Ou({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??wt.renderMode,r=(t==null?void 0:t.position)??wt.position,o=(t==null?void 0:t.features)??void 0,a=(t==null?void 0:t.triggerBg)??wt.triggerBg,i=(t==null?void 0:t.triggerColor)??wt.triggerColor,l=(t==null?void 0:t.triggerLabel)??wt.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,u=(t==null?void 0:t.triggerFontSize)??wt.triggerFontSize,c=(t==null?void 0:t.triggerBorderRadius)??wt.triggerBorderRadius,h=(t==null?void 0:t.triggerPadding)??wt.triggerPadding,d=(t==null?void 0:t.triggerMargin)??wt.triggerMargin,f=(t==null?void 0:t.icon)??wt.icon,p={padding:fi(e==null?void 0:e.padding),margin:pi(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:r,features:o,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:f,triggerLabel:l},x=Eu(b),w=`.ahd-a11y-trigger{background:${a};color:${i};font-size:${u}px;border-radius:${c}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}`,k=Mu(b),S=Pu();return m.jsxs("div",{className:"accessibility-tools-block",style:p,"data-a11y-instance":"1",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x+w}}),m.jsx("div",{dangerouslySetInnerHTML:{__html:k}}),m.jsx("script",{dangerouslySetInnerHTML:{__html:S}}),m.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}const b_=C({style:C({}).passthrough().optional().nullable(),props:C({bannerId:$().default(""),bannerName:$().optional().nullable(),contentDocument:_n($(),Kn()).optional().nullable(),padding:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),x_=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},v_=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},k_=({props:e})=>{const{bannerId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?n&&n.root?m.jsx("div",{className:"app-banner-picker-block",style:{...x_(r),...v_(o)},children:m.jsx(nr,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{}):m.jsx(m.Fragment,{})},w_=C({style:C({}).passthrough().optional().nullable(),props:C({faqGroupId:$().default(""),faqGroupName:$().optional().nullable(),contentDocument:_n($(),Kn()).optional().nullable(),padding:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),S_=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},$_=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},__=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?!n||!n.root?m.jsx(m.Fragment,{}):m.jsx("div",{className:"faq-picker-block",style:{...S_(r),...$_(o)},children:m.jsx(nr,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{})},C_=C({responsive:Ye,style:C({padding:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:C({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),tableAlign:T(["left","center","right"]).optional().nullable(),fontSize:g().optional().nullable(),fontFamily:$().optional().nullable(),color:$().optional().nullable(),backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),cellPadding:g().optional().nullable(),headerBackground:$().optional().nullable(),headerColor:$().optional().nullable(),stripedRowColor:$().optional().nullable(),stripedColColor:$().optional().nullable()}).optional().nullable(),props:C({rows:g().int().min(1).max(50).optional().nullable(),columns:g().int().min(1).max(20).optional().nullable(),hasHeader:L().optional().nullable(),cells:re($()).optional().nullable(),caption:$().optional().nullable(),width:$().optional().nullable(),enableScroll:L().optional().nullable(),enableScrollTablet:L().optional().nullable(),enableScrollMobile:L().optional().nullable()}).optional().nullable()}),ft={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function A_(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Lu(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function $r(e){return e?Lu(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function Vo(e){return e?Lu(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function y_({style:e,props:t,renderCell:n}){const r=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??ft.rows)),o=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??ft.columns)),a=(t==null?void 0:t.hasHeader)??ft.hasHeader,i=(t==null?void 0:t.cells)??[],l=r*o,s=i.length===l?i:Array.from({length:l},(Y,K)=>i[K]??""),u=z((e==null?void 0:e.borderColor)??ft.borderColor,"tableBorder"),c=(e==null?void 0:e.borderWidth)??ft.borderWidth,h=(e==null?void 0:e.cellPadding)??ft.cellPadding,d=z((e==null?void 0:e.headerBackground)??ft.headerBackground,"tableHeaderBg"),f=z((e==null?void 0:e.headerColor)??ft.headerColor,"tableHeaderText"),p=z((e==null?void 0:e.color)??ft.color,"tableText"),b=(e==null?void 0:e.fontSize)??ft.fontSize,x=z((e==null?void 0:e.backgroundColor)??null,"bgAdaptive"),w=z((e==null?void 0:e.stripedRowColor)===void 0?ft.stripedRowColor:e.stripedRowColor,"tableStripe"),k=se((e==null?void 0:e.stripedColColor)??null),S=`ahd-table-${V.useId().replace(/:/g,"")}`,v=(t==null?void 0:t.width)||"100%",_=v!=="100%",y={padding:fi(e==null?void 0:e.padding),margin:pi(e==null?void 0:e.margin),textAlign:_?(e==null?void 0:e.tableAlign)??"left":void 0,width:0,minWidth:"100%",maxWidth:"100%",height:"fit-content",boxSizing:"border-box"},A=A_(e==null?void 0:e.fontFamily),I={borderCollapse:"collapse",width:"100%",fontSize:b},R={display:_?"inline-block":"block",width:v,maxWidth:"100%",verticalAlign:"top",overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",height:"fit-content"},N={border:`${c}px solid ${u}`,padding:h,verticalAlign:"top"},P={...N,fontWeight:600,textAlign:(e==null?void 0:e.textAlign)??"left"},M=A?`.${S}, .${S} * { font-family: ${A} !important; }`:"",O=`${S}-scroll`,j=(t==null?void 0:t.enableScroll)??!1,F=(t==null?void 0:t.enableScrollTablet)??j,H=(t==null?void 0:t.enableScrollMobile)??j,W=Y=>Y?`.${O} > .${S} { table-layout: auto; width: max-content !important; min-width: 100%; max-width: none; }`:`.${O} > .${S} { table-layout: fixed; width: 100% !important; max-width: 100%; }
530
- .${O} > .${S} .ahd-table-cell-text { overflow-wrap: anywhere; }`,X=[W(j),F!==j?`@media (max-width: 1024px) { ${W(F)} }
531
- @container ahd-page (max-width: 1024px) { ${W(F)} }`:"",H!==F?`@media (max-width: 640px) { ${W(H)} }
532
- @container ahd-page (max-width: 640px) { ${W(H)} }`:""].filter(Boolean).join(`
533
- `),Z=`
534
- .${O} {
525
+ `.trim()}function Du({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??wt.renderMode,r=(t==null?void 0:t.position)??wt.position,o=(t==null?void 0:t.features)??void 0,a=(t==null?void 0:t.triggerBg)??wt.triggerBg,i=(t==null?void 0:t.triggerColor)??wt.triggerColor,l=(t==null?void 0:t.triggerLabel)??wt.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,u=(t==null?void 0:t.triggerFontSize)??wt.triggerFontSize,c=(t==null?void 0:t.triggerBorderRadius)??wt.triggerBorderRadius,h=(t==null?void 0:t.triggerPadding)??wt.triggerPadding,d=(t==null?void 0:t.triggerMargin)??wt.triggerMargin,f=(t==null?void 0:t.icon)??wt.icon,p={padding:bi(e==null?void 0:e.padding),margin:xi(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:r,features:o,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:f,triggerLabel:l},x=zu(b),w=`.ahd-a11y-trigger{background:${a};color:${i};font-size:${u}px;border-radius:${c}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}`,k=ju(b),S=Bu();return m.jsxs("div",{className:"accessibility-tools-block",style:p,"data-a11y-instance":"1",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x+w}}),m.jsx("div",{dangerouslySetInnerHTML:{__html:k}}),m.jsx("script",{dangerouslySetInnerHTML:{__html:S}}),m.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}const I_=A({style:A({}).passthrough().optional().nullable(),props:A({bannerId:$().default(""),bannerName:$().optional().nullable(),contentDocument:yn($(),Xn()).optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),R_=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},T_=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},E_=({props:e})=>{const{bannerId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?n&&n.root?m.jsx("div",{className:"app-banner-picker-block",style:{...R_(r),...T_(o)},children:m.jsx(or,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{}):m.jsx(m.Fragment,{})},N_=A({style:A({}).passthrough().optional().nullable(),props:A({faqGroupId:$().default(""),faqGroupName:$().optional().nullable(),contentDocument:yn($(),Xn()).optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),M_=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},P_=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},O_=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?!n||!n.root?m.jsx(m.Fragment,{}):m.jsx("div",{className:"faq-picker-block",style:{...M_(r),...P_(o)},children:m.jsx(or,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{})},L_=A({responsive:Ye,style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),tableAlign:T(["left","center","right"]).optional().nullable(),fontSize:g().optional().nullable(),fontFamily:$().optional().nullable(),color:$().optional().nullable(),backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),cellPadding:g().optional().nullable(),headerBackground:$().optional().nullable(),headerColor:$().optional().nullable(),stripedRowColor:$().optional().nullable(),stripedColColor:$().optional().nullable()}).optional().nullable(),props:A({rows:g().int().min(1).max(50).optional().nullable(),columns:g().int().min(1).max(20).optional().nullable(),hasHeader:L().optional().nullable(),cells:oe($()).optional().nullable(),caption:$().optional().nullable(),width:$().optional().nullable(),enableScroll:L().optional().nullable(),enableScrollTablet:L().optional().nullable(),enableScrollMobile:L().optional().nullable()}).optional().nullable()}),ft={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function z_(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Fu(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function yr(e){return e?Fu(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function Xo(e){return e?Fu(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function j_({style:e,props:t,renderCell:n}){const r=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??ft.rows)),o=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??ft.columns)),a=(t==null?void 0:t.hasHeader)??ft.hasHeader,i=(t==null?void 0:t.cells)??[],l=r*o,s=i.length===l?i:Array.from({length:l},(Y,K)=>i[K]??""),u=z((e==null?void 0:e.borderColor)??ft.borderColor,"tableBorder"),c=(e==null?void 0:e.borderWidth)??ft.borderWidth,h=(e==null?void 0:e.cellPadding)??ft.cellPadding,d=z((e==null?void 0:e.headerBackground)??ft.headerBackground,"tableHeaderBg"),f=z((e==null?void 0:e.headerColor)??ft.headerColor,"tableHeaderText"),p=z((e==null?void 0:e.color)??ft.color,"tableText"),b=(e==null?void 0:e.fontSize)??ft.fontSize,x=z((e==null?void 0:e.backgroundColor)??null,"bgAdaptive"),w=z((e==null?void 0:e.stripedRowColor)===void 0?ft.stripedRowColor:e.stripedRowColor,"tableStripe"),k=se((e==null?void 0:e.stripedColColor)??null),S=`ahd-table-${U.useId().replace(/:/g,"")}`,v=(t==null?void 0:t.width)||"100%",_=v!=="100%",y={padding:bi(e==null?void 0:e.padding),margin:xi(e==null?void 0:e.margin),textAlign:_?(e==null?void 0:e.tableAlign)??"left":void 0,width:0,minWidth:"100%",maxWidth:"100%",height:"fit-content",boxSizing:"border-box"},C=z_(e==null?void 0:e.fontFamily),I={borderCollapse:"collapse",width:"100%",fontSize:b},R={display:_?"inline-block":"block",width:v,maxWidth:"100%",verticalAlign:"top",overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",height:"fit-content"},E={border:`${c}px solid ${u}`,padding:h,verticalAlign:"top"},O={...E,fontWeight:600,textAlign:(e==null?void 0:e.textAlign)??"left"},M=C?`.${S}, .${S} * { font-family: ${C} !important; }`:"",P=`${S}-scroll`,B=(t==null?void 0:t.enableScroll)??!1,D=(t==null?void 0:t.enableScrollTablet)??B,H=(t==null?void 0:t.enableScrollMobile)??B,G=Y=>Y?`.${P} > .${S} { table-layout: auto; width: max-content !important; min-width: 100%; max-width: none; }`:`.${P} > .${S} { table-layout: fixed; width: 100% !important; max-width: 100%; }
526
+ .${P} > .${S} .ahd-table-cell-text { overflow-wrap: anywhere; }`,J=[G(B),D!==B?`@media (max-width: 1024px) { ${G(D)} }
527
+ @container ahd-page (max-width: 1024px) { ${G(D)} }`:"",H!==D?`@media (max-width: 640px) { ${G(H)} }
528
+ @container ahd-page (max-width: 640px) { ${G(H)} }`:""].filter(Boolean).join(`
529
+ `),X=`
530
+ .${P} {
535
531
  overflow-x: auto;
536
532
  -webkit-overflow-scrolling: touch;
537
533
  scrollbar-width: thin;
538
534
  scrollbar-color: #C4C4C4 transparent;
539
535
  }
540
- .${O}::-webkit-scrollbar {
536
+ .${P}::-webkit-scrollbar {
541
537
  width: 6px;
542
538
  height: 6px;
543
539
  background: transparent;
544
540
  }
545
- .${O}::-webkit-scrollbar-track {
541
+ .${P}::-webkit-scrollbar-track {
546
542
  background: transparent;
547
543
  border: 0;
548
544
  box-shadow: none;
@@ -550,13 +546,13 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
550
546
  /* Kill the stepper arrows and the corner square. Without these the
551
547
  platform default chrome (arrow buttons at both ends of the track) still
552
548
  paints around the styled thumb. */
553
- .${O}::-webkit-scrollbar-button {
549
+ .${P}::-webkit-scrollbar-button {
554
550
  display: none;
555
551
  width: 0;
556
552
  height: 0;
557
553
  }
558
- .${O}::-webkit-scrollbar-corner { background: transparent; }
559
- .${O}::-webkit-scrollbar-thumb {
554
+ .${P}::-webkit-scrollbar-corner { background: transparent; }
555
+ .${P}::-webkit-scrollbar-thumb {
560
556
  background-color: #C4C4C4;
561
557
  border-radius: 4px;
562
558
  /* 1px (not the app shell's 2px): on a 6px track a 2px inset on each side
@@ -564,35 +560,35 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
564
560
  border: 1px solid transparent;
565
561
  background-clip: content-box;
566
562
  }
567
- .${O}::-webkit-scrollbar-thumb:hover {
563
+ .${P}::-webkit-scrollbar-thumb:hover {
568
564
  background-color: #A0A0A0;
569
565
  background-clip: content-box;
570
566
  }
571
- ${X}
572
- `,q=w?`.${S} > tbody > tr:nth-child(even) > td { ${$r(w)} }`:"",ae=k?`.${S} > tbody > tr > td:nth-child(even) { ${$r(k)} }`:"",$e=`
573
- .${S} { ${$r(x)} }
567
+ ${J}
568
+ `,q=w?`.${S} > tbody > tr:nth-child(even) > td { ${yr(w)} }`:"",te=k?`.${S} > tbody > tr > td:nth-child(even) { ${yr(k)} }`:"",$e=`
569
+ .${S} { ${yr(x)} }
574
570
  ${M}
575
- .${S} > tbody > tr > td > .ahd-table-cell-text { ${Vo(p)} display: block; }
576
- .${S} > thead > tr > th { ${$r(d)} }
577
- .${S} > thead > tr > th > .ahd-table-cell-text { ${Vo(f)} display: block; }
578
- .${S} > caption > .ahd-table-cell-text { ${Vo(p)} display: block; }
571
+ .${S} > tbody > tr > td > .ahd-table-cell-text { ${Xo(p)} display: block; }
572
+ .${S} > thead > tr > th { ${yr(d)} }
573
+ .${S} > thead > tr > th > .ahd-table-cell-text { ${Xo(f)} display: block; }
574
+ .${S} > caption > .ahd-table-cell-text { ${Xo(p)} display: block; }
579
575
  ${q}
580
- ${ae}
581
- ${Z}
582
- `,ce=Array.from({length:r},(Y,K)=>K),pe=Array.from({length:o},(Y,K)=>K),Le=Y=>Y.includes("<"),ee=(Y,K,B,J)=>n?n({row:Y,col:K,value:B,isHeader:J}):Le(B)?m.jsx("span",{dangerouslySetInnerHTML:{__html:B}}):B.split(`
583
- `).map((me,ke,be)=>m.jsxs(V.Fragment,{children:[me,ke<be.length-1?m.jsx("br",{}):null]},ke));return m.jsxs("div",{className:"table-block",...de(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:y,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:$e}}),m.jsx("div",{className:O,style:R,children:m.jsxs("table",{className:S,style:I,role:"table",children:[t!=null&&t.caption?m.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:m.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,a?m.jsx("thead",{children:m.jsx("tr",{children:pe.map(Y=>m.jsx("th",{scope:"col",style:P,children:m.jsx("div",{className:"ahd-table-cell-text",children:ee(0,Y,s[Y]??"",!0)})},Y))})}):null,m.jsx("tbody",{children:ce.slice(a?1:0).map(Y=>m.jsx("tr",{children:pe.map(K=>m.jsx("td",{style:N,children:m.jsx("div",{className:"ahd-table-cell-text",children:ee(Y,K,s[Y*o+K]??"",!1)})},K))},Y))})]})})]})}var Aa={exports:{}},ya={exports:{}},st={},ye={};ye.__esModule=!0;ye.extend=zu;ye.indexOf=E_;ye.escapeExpression=M_;ye.isEmpty=P_;ye.createFrame=O_;ye.blockParams=L_;ye.appendContextPath=z_;var I_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},R_=/[&<>"'`=]/g,T_=/[&<>"'`=]/;function N_(e){return I_[e]}function zu(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 Ci=Object.prototype.toString;ye.toString=Ci;var Ia=function(t){return typeof t=="function"};Ia(/x/)&&(ye.isFunction=Ia=function(e){return typeof e=="function"&&Ci.call(e)==="[object Function]"});ye.isFunction=Ia;var Bu=Array.isArray||function(e){return e&&typeof e=="object"?Ci.call(e)==="[object Array]":!1};ye.isArray=Bu;function E_(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function M_(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return T_.test(e)?e.replace(R_,N_):e}function P_(e){return!e&&e!==0?!0:!!(Bu(e)&&e.length===0)}function O_(e){var t=zu({},e);return t._parent=e,t}function L_(e,t){return e.path=t,e}function z_(e,t){return(e?e+".":"")+t}var Ra={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(o,a){var i=a&&a.loc,l=void 0,s=void 0,u=void 0,c=void 0;i&&(l=i.start.line,s=i.end.line,u=i.start.column,c=i.end.column,o+=" - "+l+":"+u);for(var h=Error.prototype.constructor.call(this,o),d=0;d<n.length;d++)this[n[d]]=h[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:u,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=u,this.endColumn=c))}catch{}}r.prototype=new Error,t.default=r,e.exports=t.default})(Ra,Ra.exports);var ct=Ra.exports,ir={},Ta={exports:{}};(function(e,t){t.__esModule=!0;var n=ye;t.default=function(r){r.registerHelper("blockHelperMissing",function(o,a){var i=a.inverse,l=a.fn;if(o===!0)return l(this);if(o===!1||o==null)return i(this);if(n.isArray(o))return o.length>0?(a.ids&&(a.ids=[a.name]),r.helpers.each(o,a)):i(this);if(a.data&&a.ids){var s=n.createFrame(a.data);s.contextPath=n.appendContextPath(a.data.contextPath,a.name),a={data:s}}return l(o,a)})},e.exports=t.default})(Ta,Ta.exports);var B_=Ta.exports,Na={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=ye,o=ct,a=n(o);t.default=function(i){i.registerHelper("each",function(l,s){if(!s)throw new a.default("Must pass iterator to #each");var u=s.fn,c=s.inverse,h=0,d="",f=void 0,p=void 0;s.data&&s.ids&&(p=r.appendContextPath(s.data.contextPath,s.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),s.data&&(f=r.createFrame(s.data));function b(v,_,y){f&&(f.key=v,f.index=_,f.first=_===0,f.last=!!y,p&&(f.contextPath=p+v)),d=d+u(l[v],{data:f,blockParams:r.blockParams([l[v],v],[p+v,null])})}if(l&&typeof l=="object")if(r.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 w=[],k=l[Symbol.iterator](),S=k.next();!S.done;S=k.next())w.push(S.value);l=w;for(var x=l.length;h<x;h++)b(h,h,h===l.length-1)}else(function(){var v=void 0;Object.keys(l).forEach(function(_){v!==void 0&&b(v,h-1),v=_,h++}),v!==void 0&&b(v,h-1,!0)})();return h===0&&(d=c(this)),d})},e.exports=t.default})(Na,Na.exports);var j_=Na.exports,Ea={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var r=ct,o=n(r);t.default=function(a){a.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(Ea,Ea.exports);var D_=Ea.exports,Ma={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=ye,o=ct,a=n(o);t.default=function(i){i.registerHelper("if",function(l,s){if(arguments.length!=2)throw new a.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||r.isEmpty(l)?s.inverse(this):s.fn(this)}),i.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new a.default("#unless requires exactly one argument");return i.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(Ma,Ma.exports);var F_=Ma.exports,Pa={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var r=[void 0],o=arguments[arguments.length-1],a=0;a<arguments.length-1;a++)r.push(arguments[a]);var i=1;o.hash.level!=null?i=o.hash.level:o.data&&o.data.level!=null&&(i=o.data.level),r[0]=i,n.log.apply(n,r)})},e.exports=t.default})(Pa,Pa.exports);var H_=Pa.exports,Oa={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(r,o,a){return r&&a.lookupProperty(r,o)})},e.exports=t.default})(Oa,Oa.exports);var G_=Oa.exports,La={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=ye,o=ct,a=n(o);t.default=function(i){i.registerHelper("with",function(l,s){if(arguments.length!=2)throw new a.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var u=s.fn;if(r.isEmpty(l))return s.inverse(this);var c=s.data;return s.data&&s.ids&&(c=r.createFrame(s.data),c.contextPath=r.appendContextPath(s.data.contextPath,s.ids[0])),u(l,{data:c,blockParams:r.blockParams([l],[c&&c.contextPath])})})},e.exports=t.default})(La,La.exports);var W_=La.exports;ir.__esModule=!0;ir.registerDefaultHelpers=aC;ir.moveHelperToHooks=iC;function ln(e){return e&&e.__esModule?e:{default:e}}var U_=B_,Z_=ln(U_),q_=j_,V_=ln(q_),Y_=D_,K_=ln(Y_),J_=F_,X_=ln(J_),Q_=H_,eC=ln(Q_),tC=G_,nC=ln(tC),rC=W_,oC=ln(rC);function aC(e){Z_.default(e),V_.default(e),K_.default(e),X_.default(e),eC.default(e),nC.default(e),oC.default(e)}function iC(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var Ai={},za={exports:{}};(function(e,t){t.__esModule=!0;var n=ye;t.default=function(r){r.registerDecorator("inline",function(o,a,i,l){var s=o;return a.partials||(a.partials={},s=function(u,c){var h=i.partials;i.partials=n.extend({},h,a.partials);var d=o(u,c);return i.partials=h,d}),a.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(za,za.exports);var lC=za.exports;Ai.__esModule=!0;Ai.registerDefaultDecorators=dC;function sC(e){return e&&e.__esModule?e:{default:e}}var cC=lC,uC=sC(cC);function dC(e){uC.default(e)}var Ba={exports:{}};(function(e,t){t.__esModule=!0;var n=ye,r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(a){if(typeof a=="string"){var i=n.indexOf(r.methodMap,a.toLowerCase());i>=0?a=i:a=parseInt(a,10)}return a},log:function(a){if(a=r.lookupLevel(a),typeof console<"u"&&r.lookupLevel(r.level)<=a){var i=r.methodMap[a];console[i]||(i="log");for(var l=arguments.length,s=Array(l>1?l-1:0),u=1;u<l;u++)s[u-1]=arguments[u];console[i].apply(console,s)}}};t.default=r,e.exports=t.default})(Ba,Ba.exports);var ju=Ba.exports,Tn={};Tn.__esModule=!0;Tn.createProtoAccessControl=gC;Tn.resultIsAllowed=mC;Tn.resetLoggedProperties=xC;function hC(e){return e&&e.__esModule?e:{default:e}}var vs=ye,fC=ju,pC=hC(fC),Xr=Object.create(null);function gC(e){var t=Object.create(null);t.__proto__=!1,vs.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,vs.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function mC(e,t,n){return ks(typeof e=="function"?t.methods:t.properties,n)}function ks(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(bC(t),!1)}function bC(e){Xr[e]!==!0&&(Xr[e]=!0,pC.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
576
+ ${te}
577
+ ${X}
578
+ `,Ce=Array.from({length:r},(Y,K)=>K),xe=Array.from({length:o},(Y,K)=>K),ve=Y=>Y.includes("<"),ee=(Y,K,j,V)=>n?n({row:Y,col:K,value:j,isHeader:V}):ve(j)?m.jsx("span",{dangerouslySetInnerHTML:{__html:j}}):j.split(`
579
+ `).map((pe,ke,ge)=>m.jsxs(U.Fragment,{children:[pe,ke<ge.length-1?m.jsx("br",{}):null]},ke));return m.jsxs("div",{className:"table-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:y,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:$e}}),m.jsx("div",{className:P,style:R,children:m.jsxs("table",{className:S,style:I,role:"table",children:[t!=null&&t.caption?m.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:m.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,a?m.jsx("thead",{children:m.jsx("tr",{children:xe.map(Y=>m.jsx("th",{scope:"col",style:O,children:m.jsx("div",{className:"ahd-table-cell-text",children:ee(0,Y,s[Y]??"",!0)})},Y))})}):null,m.jsx("tbody",{children:Ce.slice(a?1:0).map(Y=>m.jsx("tr",{children:xe.map(K=>m.jsx("td",{style:E,children:m.jsx("div",{className:"ahd-table-cell-text",children:ee(Y,K,s[Y*o+K]??"",!1)})},K))},Y))})]})})]})}var Ta={exports:{}},Ea={exports:{}},st={},ye={};ye.__esModule=!0;ye.extend=Hu;ye.indexOf=G_;ye.escapeExpression=W_;ye.isEmpty=U_;ye.createFrame=Z_;ye.blockParams=q_;ye.appendContextPath=V_;var B_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},D_=/[&<>"'`=]/g,F_=/[&<>"'`=]/;function H_(e){return B_[e]}function Hu(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 Ri=Object.prototype.toString;ye.toString=Ri;var Na=function(t){return typeof t=="function"};Na(/x/)&&(ye.isFunction=Na=function(e){return typeof e=="function"&&Ri.call(e)==="[object Function]"});ye.isFunction=Na;var Gu=Array.isArray||function(e){return e&&typeof e=="object"?Ri.call(e)==="[object Array]":!1};ye.isArray=Gu;function G_(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function W_(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return F_.test(e)?e.replace(D_,H_):e}function U_(e){return!e&&e!==0?!0:!!(Gu(e)&&e.length===0)}function Z_(e){var t=Hu({},e);return t._parent=e,t}function q_(e,t){return e.path=t,e}function V_(e,t){return(e?e+".":"")+t}var Ma={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(o,a){var i=a&&a.loc,l=void 0,s=void 0,u=void 0,c=void 0;i&&(l=i.start.line,s=i.end.line,u=i.start.column,c=i.end.column,o+=" - "+l+":"+u);for(var h=Error.prototype.constructor.call(this,o),d=0;d<n.length;d++)this[n[d]]=h[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:u,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=u,this.endColumn=c))}catch{}}r.prototype=new Error,t.default=r,e.exports=t.default})(Ma,Ma.exports);var ct=Ma.exports,sr={},Pa={exports:{}};(function(e,t){t.__esModule=!0;var n=ye;t.default=function(r){r.registerHelper("blockHelperMissing",function(o,a){var i=a.inverse,l=a.fn;if(o===!0)return l(this);if(o===!1||o==null)return i(this);if(n.isArray(o))return o.length>0?(a.ids&&(a.ids=[a.name]),r.helpers.each(o,a)):i(this);if(a.data&&a.ids){var s=n.createFrame(a.data);s.contextPath=n.appendContextPath(a.data.contextPath,a.name),a={data:s}}return l(o,a)})},e.exports=t.default})(Pa,Pa.exports);var Y_=Pa.exports,Oa={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=ye,o=ct,a=n(o);t.default=function(i){i.registerHelper("each",function(l,s){if(!s)throw new a.default("Must pass iterator to #each");var u=s.fn,c=s.inverse,h=0,d="",f=void 0,p=void 0;s.data&&s.ids&&(p=r.appendContextPath(s.data.contextPath,s.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),s.data&&(f=r.createFrame(s.data));function b(v,_,y){f&&(f.key=v,f.index=_,f.first=_===0,f.last=!!y,p&&(f.contextPath=p+v)),d=d+u(l[v],{data:f,blockParams:r.blockParams([l[v],v],[p+v,null])})}if(l&&typeof l=="object")if(r.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 w=[],k=l[Symbol.iterator](),S=k.next();!S.done;S=k.next())w.push(S.value);l=w;for(var x=l.length;h<x;h++)b(h,h,h===l.length-1)}else(function(){var v=void 0;Object.keys(l).forEach(function(_){v!==void 0&&b(v,h-1),v=_,h++}),v!==void 0&&b(v,h-1,!0)})();return h===0&&(d=c(this)),d})},e.exports=t.default})(Oa,Oa.exports);var K_=Oa.exports,La={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var r=ct,o=n(r);t.default=function(a){a.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(La,La.exports);var J_=La.exports,za={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=ye,o=ct,a=n(o);t.default=function(i){i.registerHelper("if",function(l,s){if(arguments.length!=2)throw new a.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||r.isEmpty(l)?s.inverse(this):s.fn(this)}),i.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new a.default("#unless requires exactly one argument");return i.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(za,za.exports);var X_=za.exports,ja={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var r=[void 0],o=arguments[arguments.length-1],a=0;a<arguments.length-1;a++)r.push(arguments[a]);var i=1;o.hash.level!=null?i=o.hash.level:o.data&&o.data.level!=null&&(i=o.data.level),r[0]=i,n.log.apply(n,r)})},e.exports=t.default})(ja,ja.exports);var Q_=ja.exports,Ba={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(r,o,a){return r&&a.lookupProperty(r,o)})},e.exports=t.default})(Ba,Ba.exports);var eC=Ba.exports,Da={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=ye,o=ct,a=n(o);t.default=function(i){i.registerHelper("with",function(l,s){if(arguments.length!=2)throw new a.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var u=s.fn;if(r.isEmpty(l))return s.inverse(this);var c=s.data;return s.data&&s.ids&&(c=r.createFrame(s.data),c.contextPath=r.appendContextPath(s.data.contextPath,s.ids[0])),u(l,{data:c,blockParams:r.blockParams([l],[c&&c.contextPath])})})},e.exports=t.default})(Da,Da.exports);var tC=Da.exports;sr.__esModule=!0;sr.registerDefaultHelpers=mC;sr.moveHelperToHooks=bC;function cn(e){return e&&e.__esModule?e:{default:e}}var nC=Y_,rC=cn(nC),oC=K_,aC=cn(oC),iC=J_,lC=cn(iC),sC=X_,cC=cn(sC),uC=Q_,dC=cn(uC),hC=eC,fC=cn(hC),pC=tC,gC=cn(pC);function mC(e){rC.default(e),aC.default(e),lC.default(e),cC.default(e),dC.default(e),fC.default(e),gC.default(e)}function bC(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var Ti={},Fa={exports:{}};(function(e,t){t.__esModule=!0;var n=ye;t.default=function(r){r.registerDecorator("inline",function(o,a,i,l){var s=o;return a.partials||(a.partials={},s=function(u,c){var h=i.partials;i.partials=n.extend({},h,a.partials);var d=o(u,c);return i.partials=h,d}),a.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Fa,Fa.exports);var xC=Fa.exports;Ti.__esModule=!0;Ti.registerDefaultDecorators=SC;function vC(e){return e&&e.__esModule?e:{default:e}}var kC=xC,wC=vC(kC);function SC(e){wC.default(e)}var Ha={exports:{}};(function(e,t){t.__esModule=!0;var n=ye,r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(a){if(typeof a=="string"){var i=n.indexOf(r.methodMap,a.toLowerCase());i>=0?a=i:a=parseInt(a,10)}return a},log:function(a){if(a=r.lookupLevel(a),typeof console<"u"&&r.lookupLevel(r.level)<=a){var i=r.methodMap[a];console[i]||(i="log");for(var l=arguments.length,s=Array(l>1?l-1:0),u=1;u<l;u++)s[u-1]=arguments[u];console[i].apply(console,s)}}};t.default=r,e.exports=t.default})(Ha,Ha.exports);var Wu=Ha.exports,Mn={};Mn.__esModule=!0;Mn.createProtoAccessControl=AC;Mn.resultIsAllowed=yC;Mn.resetLoggedProperties=RC;function $C(e){return e&&e.__esModule?e:{default:e}}var _s=ye,_C=Wu,CC=$C(_C),no=Object.create(null);function AC(e){var t=Object.create(null);t.__proto__=!1,_s.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,_s.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function yC(e,t,n){return Cs(typeof e=="function"?t.methods:t.properties,n)}function Cs(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(IC(t),!1)}function IC(e){no[e]!==!0&&(no[e]=!0,CC.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
584
580
  You can add a runtime option to disable the check or this warning:
585
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function xC(){Object.keys(Xr).forEach(function(e){delete Xr[e]})}st.__esModule=!0;st.HandlebarsEnvironment=ja;function Du(e){return e&&e.__esModule?e:{default:e}}var Jt=ye,vC=ct,Yo=Du(vC),kC=ir,wC=Ai,SC=ju,Qr=Du(SC),$C=Tn,_C="4.7.9";st.VERSION=_C;var CC=8;st.COMPILER_REVISION=CC;var AC=7;st.LAST_COMPATIBLE_COMPILER_REVISION=AC;var yC={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"};st.REVISION_CHANGES=yC;var Ko="[object Object]";function ja(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},kC.registerDefaultHelpers(this),wC.registerDefaultDecorators(this)}ja.prototype={constructor:ja,logger:Qr.default,log:Qr.default.log,registerHelper:function(t,n){if(Jt.toString.call(t)===Ko){if(n)throw new Yo.default("Arg not supported with multiple helpers");Jt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(Jt.toString.call(t)===Ko)Jt.extend(this.partials,t);else{if(typeof n>"u")throw new Yo.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(Jt.toString.call(t)===Ko){if(n)throw new Yo.default("Arg not supported with multiple decorators");Jt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){$C.resetLoggedProperties()}};var IC=Qr.default.log;st.log=IC;st.createFrame=Jt.createFrame;st.logger=Qr.default;var Da={exports:{}};(function(e,t){t.__esModule=!0;function n(r){this.string=r}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Da,Da.exports);var RC=Da.exports,Ut={},yi={};yi.__esModule=!0;yi.wrapHelper=TC;function TC(e,t){if(typeof e!="function")return e;var n=function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=t(o),e.apply(this,arguments)};return n}Ut.__esModule=!0;Ut.checkRevision=LC;Ut.template=zC;Ut.wrapProgram=Mr;Ut.resolvePartial=BC;Ut.invokePartial=jC;Ut.noop=Fu;function NC(e){return e&&e.__esModule?e:{default:e}}function EC(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 MC=ye,xn=EC(MC),PC=ct,Nt=NC(PC),Et=st,ws=ir,OC=yi,Ss=Tn;function LC(e){var t=e&&e[0]||1,n=Et.COMPILER_REVISION;if(!(t>=Et.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Et.COMPILER_REVISION))if(t<Et.LAST_COMPATIBLE_COMPILER_REVISION){var r=Et.REVISION_CHANGES[n],o=Et.REVISION_CHANGES[t];throw new Nt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}else throw new Nt.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 zC(e,t){if(!t)throw new Nt.default("No environment passed to template");if(!e||!e.main)throw new Nt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function r(i,l,s){s.hash&&(l=xn.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),i=t.VM.resolvePartial.call(this,i,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var u=t.VM.invokePartial.call(this,i,l,s);if(u==null&&t.compile&&(s.partials[s.name]=t.compile(i,e.compilerOptions,t),u=s.partials[s.name](l,s)),u!=null){if(s.indent){for(var c=u.split(`
581
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function RC(){Object.keys(no).forEach(function(e){delete no[e]})}st.__esModule=!0;st.HandlebarsEnvironment=Ga;function Uu(e){return e&&e.__esModule?e:{default:e}}var Qt=ye,TC=ct,Qo=Uu(TC),EC=sr,NC=Ti,MC=Wu,ro=Uu(MC),PC=Mn,OC="4.7.9";st.VERSION=OC;var LC=8;st.COMPILER_REVISION=LC;var zC=7;st.LAST_COMPATIBLE_COMPILER_REVISION=zC;var jC={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"};st.REVISION_CHANGES=jC;var ea="[object Object]";function Ga(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},EC.registerDefaultHelpers(this),NC.registerDefaultDecorators(this)}Ga.prototype={constructor:Ga,logger:ro.default,log:ro.default.log,registerHelper:function(t,n){if(Qt.toString.call(t)===ea){if(n)throw new Qo.default("Arg not supported with multiple helpers");Qt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(Qt.toString.call(t)===ea)Qt.extend(this.partials,t);else{if(typeof n>"u")throw new Qo.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(Qt.toString.call(t)===ea){if(n)throw new Qo.default("Arg not supported with multiple decorators");Qt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){PC.resetLoggedProperties()}};var BC=ro.default.log;st.log=BC;st.createFrame=Qt.createFrame;st.logger=ro.default;var Wa={exports:{}};(function(e,t){t.__esModule=!0;function n(r){this.string=r}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Wa,Wa.exports);var DC=Wa.exports,qt={},Ei={};Ei.__esModule=!0;Ei.wrapHelper=FC;function FC(e,t){if(typeof e!="function")return e;var n=function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=t(o),e.apply(this,arguments)};return n}qt.__esModule=!0;qt.checkRevision=qC;qt.template=VC;qt.wrapProgram=zr;qt.resolvePartial=YC;qt.invokePartial=KC;qt.noop=Zu;function HC(e){return e&&e.__esModule?e:{default:e}}function GC(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 WC=ye,wn=GC(WC),UC=ct,Nt=HC(UC),Mt=st,As=sr,ZC=Ei,ys=Mn;function qC(e){var t=e&&e[0]||1,n=Mt.COMPILER_REVISION;if(!(t>=Mt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Mt.COMPILER_REVISION))if(t<Mt.LAST_COMPATIBLE_COMPILER_REVISION){var r=Mt.REVISION_CHANGES[n],o=Mt.REVISION_CHANGES[t];throw new Nt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}else throw new Nt.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 VC(e,t){if(!t)throw new Nt.default("No environment passed to template");if(!e||!e.main)throw new Nt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function r(i,l,s){s.hash&&(l=wn.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),i=t.VM.resolvePartial.call(this,i,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var u=t.VM.invokePartial.call(this,i,l,s);if(u==null&&t.compile&&(s.partials[s.name]=t.compile(i,e.compilerOptions,t),u=s.partials[s.name](l,s)),u!=null){if(s.indent){for(var c=u.split(`
586
582
  `),h=0,d=c.length;h<d&&!(!c[h]&&h+1===d);h++)c[h]=s.indent+c[h];u=c.join(`
587
- `)}return u}else throw new Nt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var o={strict:function(l,s,u){if(!l||!(s in l))throw new Nt.default('"'+s+'" not defined in '+l,{loc:u});return o.lookupProperty(l,s)},lookupProperty:function(l,s){var u=l[s];if(u==null||Object.prototype.hasOwnProperty.call(l,s)||Ss.resultIsAllowed(u,o.protoAccessControl,s))return u},lookup:function(l,s){for(var u=l.length,c=0;c<u;c++){var h=l[c]&&o.lookupProperty(l[c],s);if(h!=null)return h}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:xn.escapeExpression,invokePartial:r,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,u,c,h){var d=this.programs[l],f=this.fn(l);return s||h||c||u?d=Mr(this,l,f,s,u,c,h):d||(d=this.programs[l]=Mr(this,l,f)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var u=l||s;return l&&s&&l!==s&&(u=xn.extend({},s,l)),u},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function a(i){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;a._setup(l),!l.partial&&e.useData&&(s=DC(i,s));var u=void 0,c=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?u=i!=l.depths[0]?[i].concat(l.depths):l.depths:u=[i]);function h(d){return""+e.main(o,d,o.helpers,o.partials,s,c,u)}return h=Hu(e.main,h,o,l.depths||[],s,c),h(i,l)}return a.isTop=!0,a._setup=function(i){if(i.partial)o.protoAccessControl=i.protoAccessControl,o.helpers=i.helpers,o.partials=i.partials,o.decorators=i.decorators,o.hooks=i.hooks;else{var l={};$s(l,t.helpers,o),$s(l,i.helpers,o),o.helpers=l,e.usePartial&&(o.partials=o.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(o.decorators=xn.extend({},t.decorators,i.decorators)),o.hooks={},o.protoAccessControl=Ss.createProtoAccessControl(i);var s=i.allowCallsToHelperMissing||n;ws.moveHelperToHooks(o,"helperMissing",s),ws.moveHelperToHooks(o,"blockHelperMissing",s)}},a._child=function(i,l,s,u){if(e.useBlockParams&&!s)throw new Nt.default("must pass block params");if(e.useDepths&&!u)throw new Nt.default("must pass parent depths");return Mr(o,i,e[i],l,0,s,u)},a}function Mr(e,t,n,r,o,a,i){function l(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=i;return i&&s!=i[0]&&!(s===e.nullContext&&i[0]===null)&&(c=[s].concat(i)),n(e,s,e.helpers,e.partials,u.data||r,a&&[u.blockParams].concat(a),c)}return l=Hu(n,l,e,i,r,a),l.program=t,l.depth=i?i.length:0,l.blockParams=o||0,l}function BC(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=Pr(n.partials,e)):n.name==="@partial-block"?e=Pr(n.data,"partial-block"):e=Pr(n.partials,n.name),e}function jC(e,t,n){var r=Pr(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;if(n.fn&&n.fn!==Fu&&function(){n.data=Et.createFrame(n.data);var a=n.fn;o=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=Et.createFrame(s.data),s.data["partial-block"]=r,a(l,s)},a.partials&&(n.partials=xn.extend({},n.partials,a.partials))}(),e===void 0&&o&&(e=o),e===void 0)throw new Nt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function Fu(){return""}function Pr(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function DC(e,t){return(!t||!("root"in t))&&(t=t?Et.createFrame(t):{},t.root=e),t}function Hu(e,t,n,r,o,a){if(e.decorator){var i={};t=e.decorator(t,i,n,r&&r[0],o,a,r),xn.extend(t,i)}return t}function $s(e,t,n){t&&Object.keys(t).forEach(function(r){var o=t[r];e[r]=FC(o,n)})}function FC(e,t){var n=t.lookupProperty;return OC.wrapHelper(e,function(r){return r.lookupProperty=n,r})}var Fa={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var r=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=r),n}},e.exports=t.default})(Fa,Fa.exports);var Gu=Fa.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}function r(k){if(k&&k.__esModule)return k;var S={};if(k!=null)for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(S[v]=k[v]);return S.default=k,S}var o=st,a=r(o),i=RC,l=n(i),s=ct,u=n(s),c=ye,h=r(c),d=Ut,f=r(d),p=Gu,b=n(p);function x(){var k=new a.HandlebarsEnvironment;return h.extend(k,a),k.SafeString=l.default,k.Exception=u.default,k.Utils=h,k.escapeExpression=h.escapeExpression,k.VM=f,k.template=function(S){return f.template(S,k)},k}var w=x();w.create=x,b.default(w),w.default=w,t.default=w,e.exports=t.default})(ya,ya.exports);var HC=ya.exports,Ha={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!n.helpers.scopedId(o)&&!o.depth}}};t.default=n,e.exports=t.default})(Ha,Ha.exports);var Wu=Ha.exports,lr={},Ga={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var r={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(l,s,u,c,h,d,f){var p=d.length-1;switch(h){case 1:return d[p-1];case 2:this.$=c.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:c.stripComment(d[p]),strip:c.stripFlags(d[p],d[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.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.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=c.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:c.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:c.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:c.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:c.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=c.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=c.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:c.stripFlags(d[p-2],d[p])};break;case 22:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.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:c.stripFlags(d[p-4],d[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.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:c.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:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(d[p-2]),value:d[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.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:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=c.preparePath(!0,d[p],this._$);break;case 43:this.$=c.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:c.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:c.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,u=[0],c=[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 w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function k(){var O;return O=s.lexer.lex()||1,typeof O!="number"&&(O=s.symbols_[O]||O),O}for(var S,v,_,y,A={},I,R,N,P;;){if(v=u[u.length-1],this.defaultActions[v]?_=this.defaultActions[v]:((S===null||typeof S>"u")&&(S=k()),_=d[v]&&d[v][S]),typeof _>"u"||!_.length||!_[0]){var M="";{P=[];for(I in d[v])this.terminals_[I]&&I>2&&P.push("'"+this.terminals_[I]+"'");this.lexer.showPosition?M="Parse error on line "+(p+1)+`:
583
+ `)}return u}else throw new Nt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var o={strict:function(l,s,u){if(!l||!(s in l))throw new Nt.default('"'+s+'" not defined in '+l,{loc:u});return o.lookupProperty(l,s)},lookupProperty:function(l,s){var u=l[s];if(u==null||Object.prototype.hasOwnProperty.call(l,s)||ys.resultIsAllowed(u,o.protoAccessControl,s))return u},lookup:function(l,s){for(var u=l.length,c=0;c<u;c++){var h=l[c]&&o.lookupProperty(l[c],s);if(h!=null)return h}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:wn.escapeExpression,invokePartial:r,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,u,c,h){var d=this.programs[l],f=this.fn(l);return s||h||c||u?d=zr(this,l,f,s,u,c,h):d||(d=this.programs[l]=zr(this,l,f)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var u=l||s;return l&&s&&l!==s&&(u=wn.extend({},s,l)),u},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function a(i){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;a._setup(l),!l.partial&&e.useData&&(s=JC(i,s));var u=void 0,c=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?u=i!=l.depths[0]?[i].concat(l.depths):l.depths:u=[i]);function h(d){return""+e.main(o,d,o.helpers,o.partials,s,c,u)}return h=qu(e.main,h,o,l.depths||[],s,c),h(i,l)}return a.isTop=!0,a._setup=function(i){if(i.partial)o.protoAccessControl=i.protoAccessControl,o.helpers=i.helpers,o.partials=i.partials,o.decorators=i.decorators,o.hooks=i.hooks;else{var l={};Is(l,t.helpers,o),Is(l,i.helpers,o),o.helpers=l,e.usePartial&&(o.partials=o.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(o.decorators=wn.extend({},t.decorators,i.decorators)),o.hooks={},o.protoAccessControl=ys.createProtoAccessControl(i);var s=i.allowCallsToHelperMissing||n;As.moveHelperToHooks(o,"helperMissing",s),As.moveHelperToHooks(o,"blockHelperMissing",s)}},a._child=function(i,l,s,u){if(e.useBlockParams&&!s)throw new Nt.default("must pass block params");if(e.useDepths&&!u)throw new Nt.default("must pass parent depths");return zr(o,i,e[i],l,0,s,u)},a}function zr(e,t,n,r,o,a,i){function l(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=i;return i&&s!=i[0]&&!(s===e.nullContext&&i[0]===null)&&(c=[s].concat(i)),n(e,s,e.helpers,e.partials,u.data||r,a&&[u.blockParams].concat(a),c)}return l=qu(n,l,e,i,r,a),l.program=t,l.depth=i?i.length:0,l.blockParams=o||0,l}function YC(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=jr(n.partials,e)):n.name==="@partial-block"?e=jr(n.data,"partial-block"):e=jr(n.partials,n.name),e}function KC(e,t,n){var r=jr(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;if(n.fn&&n.fn!==Zu&&function(){n.data=Mt.createFrame(n.data);var a=n.fn;o=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=Mt.createFrame(s.data),s.data["partial-block"]=r,a(l,s)},a.partials&&(n.partials=wn.extend({},n.partials,a.partials))}(),e===void 0&&o&&(e=o),e===void 0)throw new Nt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function Zu(){return""}function jr(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function JC(e,t){return(!t||!("root"in t))&&(t=t?Mt.createFrame(t):{},t.root=e),t}function qu(e,t,n,r,o,a){if(e.decorator){var i={};t=e.decorator(t,i,n,r&&r[0],o,a,r),wn.extend(t,i)}return t}function Is(e,t,n){t&&Object.keys(t).forEach(function(r){var o=t[r];e[r]=XC(o,n)})}function XC(e,t){var n=t.lookupProperty;return ZC.wrapHelper(e,function(r){return r.lookupProperty=n,r})}var Ua={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var r=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=r),n}},e.exports=t.default})(Ua,Ua.exports);var Vu=Ua.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}function r(k){if(k&&k.__esModule)return k;var S={};if(k!=null)for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(S[v]=k[v]);return S.default=k,S}var o=st,a=r(o),i=DC,l=n(i),s=ct,u=n(s),c=ye,h=r(c),d=qt,f=r(d),p=Vu,b=n(p);function x(){var k=new a.HandlebarsEnvironment;return h.extend(k,a),k.SafeString=l.default,k.Exception=u.default,k.Utils=h,k.escapeExpression=h.escapeExpression,k.VM=f,k.template=function(S){return f.template(S,k)},k}var w=x();w.create=x,b.default(w),w.default=w,t.default=w,e.exports=t.default})(Ea,Ea.exports);var QC=Ea.exports,Za={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!n.helpers.scopedId(o)&&!o.depth}}};t.default=n,e.exports=t.default})(Za,Za.exports);var Yu=Za.exports,cr={},qa={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var r={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(l,s,u,c,h,d,f){var p=d.length-1;switch(h){case 1:return d[p-1];case 2:this.$=c.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:c.stripComment(d[p]),strip:c.stripFlags(d[p],d[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.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.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=c.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:c.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:c.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:c.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:c.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=c.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=c.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:c.stripFlags(d[p-2],d[p])};break;case 22:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.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:c.stripFlags(d[p-4],d[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.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:c.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:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(d[p-2]),value:d[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.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:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=c.preparePath(!0,d[p],this._$);break;case 43:this.$=c.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:c.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:c.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,u=[0],c=[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 w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function k(){var P;return P=s.lexer.lex()||1,typeof P!="number"&&(P=s.symbols_[P]||P),P}for(var S,v,_,y,C={},I,R,E,O;;){if(v=u[u.length-1],this.defaultActions[v]?_=this.defaultActions[v]:((S===null||typeof S>"u")&&(S=k()),_=d[v]&&d[v][S]),typeof _>"u"||!_.length||!_[0]){var M="";{O=[];for(I in d[v])this.terminals_[I]&&I>2&&O.push("'"+this.terminals_[I]+"'");this.lexer.showPosition?M="Parse error on line "+(p+1)+`:
588
584
  `+this.lexer.showPosition()+`
589
- Expecting `+P.join(", ")+", got '"+(this.terminals_[S]||S)+"'":M="Parse error on line "+(p+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(M,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:x,expected:P})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+S);switch(_[0]){case 1:u.push(S),c.push(this.lexer.yytext),h.push(this.lexer.yylloc),u.push(_[1]),S=null,b=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc;break;case 2:if(R=this.productions_[_[1]][1],A.$=c[c.length-R],A._$={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},w&&(A._$.range=[h[h.length-(R||1)].range[0],h[h.length-1].range[1]]),y=this.performAction.call(A,f,b,p,this.yy,_[1],c,h),typeof y<"u")return y;R&&(u=u.slice(0,-1*R*2),c=c.slice(0,-1*R),h=h.slice(0,-1*R)),u.push(this.productions_[_[1]][0]),c.push(A.$),h.push(A._$),N=d[u[u.length-2]][u[u.length-1]],u.push(N);break;case 3:return!0}}return!0}},o=function(){var i={EOF:1,parseError:function(s,u){if(this.yy.parser)this.yy.parser.parseError(s,u);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 u=s.match(/(?:\r\n?|\n).*/g);return u?(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 u=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u-1),this.offset-=u;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),c.length-1&&(this.yylineno-=c.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:c?(c.length===h.length?this.yylloc.first_column:0)+h[h.length-c.length].length-c[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-u]),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(),u=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
585
+ Expecting `+O.join(", ")+", got '"+(this.terminals_[S]||S)+"'":M="Parse error on line "+(p+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(M,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:x,expected:O})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+S);switch(_[0]){case 1:u.push(S),c.push(this.lexer.yytext),h.push(this.lexer.yylloc),u.push(_[1]),S=null,b=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc;break;case 2:if(R=this.productions_[_[1]][1],C.$=c[c.length-R],C._$={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},w&&(C._$.range=[h[h.length-(R||1)].range[0],h[h.length-1].range[1]]),y=this.performAction.call(C,f,b,p,this.yy,_[1],c,h),typeof y<"u")return y;R&&(u=u.slice(0,-1*R*2),c=c.slice(0,-1*R),h=h.slice(0,-1*R)),u.push(this.productions_[_[1]][0]),c.push(C.$),h.push(C._$),E=d[u[u.length-2]][u[u.length-1]],u.push(E);break;case 3:return!0}}return!0}},o=function(){var i={EOF:1,parseError:function(s,u){if(this.yy.parser)this.yy.parser.parseError(s,u);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 u=s.match(/(?:\r\n?|\n).*/g);return u?(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 u=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u-1),this.offset-=u;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),c.length-1&&(this.yylineno-=c.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:c?(c.length===h.length?this.yylloc.first_column:0)+h[h.length-c.length].length-c[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-u]),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(),u=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
590
586
  `+u+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,u,c,h,d;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),p=0;p<f.length&&(c=this._input.match(this.rules[f[p]]),!(c&&(!u||c[0].length>u[0].length)&&(u=c,h=p,!this.options.flex)));p++);return u?(d=u[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+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[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.
591
- `+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 i.options={},i.performAction=function(s,u,c,h){function d(f,p){return u.yytext=u.yytext.substring(f,u.yyleng-p+f)}switch(c){case 0:if(u.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):u.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),u.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(u.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 u.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return u.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 u.yytext=u.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},i.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.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}},i}();r.lexer=o;function a(){this.yy={}}return a.prototype=r,r.Parser=a,new a}();t.default=n,e.exports=t.default})(Ga,Ga.exports);var GC=Ga.exports,Wa={exports:{}},Ua={exports:{}};(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var r=ct,o=n(r);function a(){this.parents=[]}a.prototype={constructor:a,mutating:!1,acceptKey:function(c,h){var d=this.accept(c[h]);if(this.mutating){if(d&&!a.prototype[d.type])throw new o.default('Unexpected node type "'+d.type+'" found when accepting '+h+" on "+c.type);c[h]=d}},acceptRequired:function(c,h){if(this.acceptKey(c,h),!c[h])throw new o.default(c.type+" requires "+h)},acceptArray:function(c){for(var h=0,d=c.length;h<d;h++)this.acceptKey(c,h),c[h]||(c.splice(h,1),h--,d--)},accept:function(c){if(c){if(!this[c.type])throw new o.default("Unknown type: "+c.type,c);this.current&&this.parents.unshift(this.current),this.current=c;var h=this[c.type](c);if(this.current=this.parents.shift(),!this.mutating||h)return h;if(h!==!1)return c}},Program:function(c){this.acceptArray(c.body)},MustacheStatement:i,Decorator:i,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(c){s.call(this,c),this.acceptKey(c,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(c){this.acceptArray(c.pairs)},HashPair:function(c){this.acceptRequired(c,"value")}};function i(u){this.acceptRequired(u,"path"),this.acceptArray(u.params),this.acceptKey(u,"hash")}function l(u){i.call(this,u),this.acceptKey(u,"program"),this.acceptKey(u,"inverse")}function s(u){this.acceptRequired(u,"name"),this.acceptArray(u.params),this.acceptKey(u,"hash")}t.default=a,e.exports=t.default})(Ua,Ua.exports);var Uu=Ua.exports;(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var r=Uu,o=n(r);function a(){var c=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=c}a.prototype=new o.default,a.prototype.Program=function(c){var h=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var f=c.body,p=0,b=f.length;p<b;p++){var x=f[p],w=this.accept(x);if(w){var k=i(f,p,d),S=l(f,p,d),v=w.openStandalone&&k,_=w.closeStandalone&&S,y=w.inlineStandalone&&k&&S;w.close&&s(f,p,!0),w.open&&u(f,p,!0),h&&y&&(s(f,p),u(f,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(f[p-1].original)[1])),h&&v&&(s((x.program||x.inverse).body),u(f,p)),h&&_&&(s(f,p),u((x.inverse||x.program).body))}}return c},a.prototype.BlockStatement=a.prototype.DecoratorBlock=a.prototype.PartialBlockStatement=function(c){this.accept(c.program),this.accept(c.inverse);var h=c.program||c.inverse,d=c.program&&c.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:c.openStrip.open,close:c.closeStrip.close,openStandalone:l(h.body),closeStandalone:i((f||h).body)};if(c.openStrip.close&&s(h.body,null,!0),d){var x=c.inverseStrip;x.open&&u(h.body,null,!0),x.close&&s(f.body,null,!0),c.closeStrip.open&&u(p.body,null,!0),!this.options.ignoreStandalone&&i(h.body)&&l(f.body)&&(u(h.body),s(f.body))}else c.closeStrip.open&&u(h.body,null,!0);return b},a.prototype.Decorator=a.prototype.MustacheStatement=function(c){return c.strip},a.prototype.PartialStatement=a.prototype.CommentStatement=function(c){var h=c.strip||{};return{inlineStandalone:!0,open:h.open,close:h.close}};function i(c,h,d){h===void 0&&(h=c.length);var f=c[h-1],p=c[h-2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function l(c,h,d){h===void 0&&(h=-1);var f=c[h+1],p=c[h+2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function s(c,h,d){var f=c[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 u(c,h,d){var f=c[h==null?c.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=a,e.exports=t.default})(Wa,Wa.exports);var WC=Wa.exports,ut={};ut.__esModule=!0;ut.SourceLocation=qC;ut.id=VC;ut.stripFlags=YC;ut.stripComment=KC;ut.preparePath=JC;ut.prepareMustache=XC;ut.prepareRawBlock=QC;ut.prepareBlock=eA;ut.prepareProgram=tA;ut.preparePartialBlock=nA;function UC(e){return e&&e.__esModule?e:{default:e}}var ZC=ct,Ii=UC(ZC);function Ri(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new Ii.default(e.path.original+" doesn't match "+t,n)}}function qC(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 VC(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function YC(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function KC(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function JC(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",o=[],a=0,i=0,l=t.length;i<l;i++){var s=t[i].part,u=t[i].original!==s;if(r+=(t[i].separator||"")+s,!u&&(s===".."||s==="."||s==="this")){if(o.length>0)throw new Ii.default("Invalid path: "+r,{loc:n});s===".."&&a++}else o.push(s)}return{type:"PathExpression",data:e,depth:a,parts:o,original:r,loc:n}}function XC(e,t,n,r,o,a){var i=r.charAt(3)||r.charAt(2),l=i!=="{"&&i!=="&",s=/\*/.test(r);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:o,loc:this.locInfo(a)}}function QC(e,t,n,r){Ri(e,n),r=this.locInfo(r);var o={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function eA(e,t,n,r,o,a){r&&r.path&&Ri(e,r);var i=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(i)throw new Ii.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),s=n.strip,l=n.program}return o&&(o=l,l=t,t=o),{type:i?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:r&&r.strip,loc:this.locInfo(a)}}function tA(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function nA(e,t,n,r){return Ri(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}}lr.__esModule=!0;lr.parseWithoutProcessing=Zu;lr.parse=dA;function rA(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 Ti(e){return e&&e.__esModule?e:{default:e}}var oA=GC,Za=Ti(oA),aA=WC,iA=Ti(aA),lA=ut,sA=rA(lA),cA=ct,zn=Ti(cA),uA=ye;lr.parser=Za.default;var Or={};uA.extend(Or,sA);function Zu(e,t){if(e.type==="Program")return hA(e),e;Za.default.yy=Or,Or.locInfo=function(r){return new Or.SourceLocation(t&&t.srcName,r)};var n=Za.default.parse(e);return n}function dA(e,t){var n=Zu(e,t),r=new iA.default(t);return r.accept(n)}function hA(e){qa(e)}function qa(e){if(e!=null){if(Array.isArray(e)){e.forEach(qa);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!fA(e.depth))throw new zn.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new zn.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 zn.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new zn.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new zn.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&qa(e[n])})}}}function fA(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var sr={};sr.__esModule=!0;sr.Compiler=Va;sr.precompile=bA;sr.compile=xA;function qu(e){return e&&e.__esModule?e:{default:e}}var pA=ct,Zn=qu(pA),er=ye,gA=Wu,Bn=qu(gA),mA=[].slice;function Va(){}Va.prototype={compiler:Va,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var r=0;r<n;r++){var o=this.opcodes[r],a=t.opcodes[r];if(o.opcode!==a.opcode||!Vu(o.args,a.args))return!1}n=this.children.length;for(var r=0;r<n;r++)if(!this.children[r].equals(t.children[r]))return!1;return!0},guid:0,compile:function(t,n){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[],n.knownHelpers=er.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n.knownHelpers),this.accept(t)},compileProgram:function(t){var n=new this.compiler,r=n.compile(t,this.options),o=this.guid++;return this.usePartial=this.usePartial||r.usePartial,this.children[o]=r,this.useDepths=this.useDepths||r.useDepths,o},accept:function(t){if(!this[t.type])throw new Zn.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var n=t.body,r=n.length,o=0;o<r;o++)this.accept(n[o]);return this.options.blockParams.shift(),this.isSimple=r===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){_s(t);var n=t.program,r=t.inverse;n=n&&this.compileProgram(n),r=r&&this.compileProgram(r);var o=this.classifySexpr(t);o==="helper"?this.helperSexpr(t,n,r):o==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,r),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),r=this.setupFullMustacheParams(t,n,void 0),o=t.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,o.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var r=t.params;if(r.length>1)throw new Zn.default("Unsupported number of partial arguments: "+r.length,t);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var o=t.name.original,a=t.name.type==="SubExpression";a&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var i=t.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",a,o,i),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){_s(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,r){var o=t.path,a=o.parts[0],i=n!=null||r!=null;this.opcode("getContext",o.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",r),o.strict=!0,this.accept(o),this.opcode("invokeAmbiguous",a,i)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,r){var o=this.setupFullMustacheParams(t,n,r),a=t.path,i=a.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",o.length,i);else{if(this.options.knownHelpersOnly)throw new Zn.default("You specified knownHelpersOnly, but used the unknown helper "+i,t);a.strict=!0,a.falsy=!0,this.accept(a),this.opcode("invokeHelper",o.length,a.original,Bn.default.helpers.simpleId(a))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],r=Bn.default.helpers.scopedId(t),o=!t.depth&&!r&&this.blockParamIndex(n);o?this.opcode("lookupBlockParam",o,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,r):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,r=0,o=n.length;for(this.opcode("pushHash");r<o;r++)this.pushParam(n[r].value);for(;r--;)this.opcode("assignToHash",n[r].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:mA.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),r=n&&!!this.blockParamIndex(t.path.parts[0]),o=!r&&Bn.default.helpers.helperExpression(t),a=!r&&(o||n);if(a&&!o){var i=t.path.parts[0],l=this.options;l.knownHelpers[i]?o=!0:l.knownHelpersOnly&&(a=!1)}return o?"helper":a?"ambiguous":"simple"},pushParams:function(t){for(var n=0,r=t.length;n<r;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var r=void 0;if(t.parts&&!Bn.default.helpers.scopedId(t)&&!t.depth&&(r=this.blockParamIndex(t.parts[0])),r){var o=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,o)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,r,o){var a=t.params;return this.pushParams(a),this.opcode("pushProgram",n),this.opcode("pushProgram",r),t.hash?this.accept(t.hash):this.opcode("emptyHash",o),a},blockParamIndex:function(t){for(var n=0,r=this.options.blockParams.length;n<r;n++){var o=this.options.blockParams[n],a=o&&er.indexOf(o,t);if(o&&a>=0)return[n,a]}}};function bA(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Zn.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),o=new n.Compiler().compile(r,t);return new n.JavaScriptCompiler().compile(o,t)}function xA(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Zn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=er.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function o(){var i=n.parse(e,t),l=new n.Compiler().compile(i,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function a(i,l){return r||(r=o()),r.call(this,i,l)}return a._setup=function(i){return r||(r=o()),r._setup(i)},a._child=function(i,l,s,u){return r||(r=o()),r._child(i,l,s,u)},a}function Vu(e,t){if(e===t)return!0;if(er.isArray(e)&&er.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!Vu(e[n],t[n]))return!1;return!0}}function _s(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 Ya={exports:{}},Ka={exports:{}},jn={},Jo={},_r={},Cr={},Cs;function vA(){if(Cs)return Cr;Cs=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Cr.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Cr.decode=function(t){var n=65,r=90,o=97,a=122,i=48,l=57,s=43,u=47,c=26,h=52;return n<=t&&t<=r?t-n:o<=t&&t<=a?t-o+c:i<=t&&t<=l?t-i+h:t==s?62:t==u?63:-1},Cr}var As;function Yu(){if(As)return _r;As=1;var e=vA(),t=5,n=1<<t,r=n-1,o=n;function a(l){return l<0?(-l<<1)+1:(l<<1)+0}function i(l){var s=(l&1)===1,u=l>>1;return s?-u:u}return _r.encode=function(s){var u="",c,h=a(s);do c=h&r,h>>>=t,h>0&&(c|=o),u+=e.encode(c);while(h>0);return u},_r.decode=function(s,u,c){var h=s.length,d=0,f=0,p,b;do{if(u>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(u++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(u-1));p=!!(b&o),b&=r,d=d+(b<<f),f+=t}while(p);c.value=i(d),c.rest=u},_r}var Xo={},ys;function cr(){return ys||(ys=1,function(e){function t(v,_,y){if(_ in v)return v[_];if(arguments.length===3)return y;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=o;function a(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}e.urlGenerate=a;function i(v){var _=v,y=o(v);if(y){if(!y.path)return v;_=y.path}for(var A=e.isAbsolute(_),I=_.split(/\/+/),R,N=0,P=I.length-1;P>=0;P--)R=I[P],R==="."?I.splice(P,1):R===".."?N++:N>0&&(R===""?(I.splice(P+1,N),N=0):(I.splice(P,2),N--));return _=I.join("/"),_===""&&(_=A?"/":"."),y?(y.path=_,a(y)):_}e.normalize=i;function l(v,_){v===""&&(v="."),_===""&&(_=".");var y=o(_),A=o(v);if(A&&(v=A.path||"/"),y&&!y.scheme)return A&&(y.scheme=A.scheme),a(y);if(y||_.match(r))return _;if(A&&!A.host&&!A.path)return A.host=_,a(A);var I=_.charAt(0)==="/"?_:i(v.replace(/\/+$/,"")+"/"+_);return A?(A.path=I,a(A)):I}e.join=l,e.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function s(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var y=0;_.indexOf(v+"/")!==0;){var A=v.lastIndexOf("/");if(A<0||(v=v.slice(0,A),v.match(/^([^\/]+:\/)?\/*$/)))return _;++y}return Array(y+1).join("../")+_.substr(v.length+1)}e.relative=s;var u=function(){var v=Object.create(null);return!("__proto__"in v)}();function c(v){return v}function h(v){return f(v)?"$"+v:v}e.toSetString=u?c:h;function d(v){return f(v)?v.slice(1):v}e.fromSetString=u?c:d;function f(v){if(!v)return!1;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return!1;for(var y=_-10;y>=0;y--)if(v.charCodeAt(y)!==36)return!1;return!0}function p(v,_,y){var A=x(v.source,_.source);return A!==0||(A=v.originalLine-_.originalLine,A!==0)||(A=v.originalColumn-_.originalColumn,A!==0||y)||(A=v.generatedColumn-_.generatedColumn,A!==0)||(A=v.generatedLine-_.generatedLine,A!==0)?A:x(v.name,_.name)}e.compareByOriginalPositions=p;function b(v,_,y){var A=v.generatedLine-_.generatedLine;return A!==0||(A=v.generatedColumn-_.generatedColumn,A!==0||y)||(A=x(v.source,_.source),A!==0)||(A=v.originalLine-_.originalLine,A!==0)||(A=v.originalColumn-_.originalColumn,A!==0)?A:x(v.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function x(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function w(v,_){var y=v.generatedLine-_.generatedLine;return y!==0||(y=v.generatedColumn-_.generatedColumn,y!==0)||(y=x(v.source,_.source),y!==0)||(y=v.originalLine-_.originalLine,y!==0)||(y=v.originalColumn-_.originalColumn,y!==0)?y:x(v.name,_.name)}e.compareByGeneratedPositionsInflated=w;function k(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=k;function S(v,_,y){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),y){var A=o(y);if(!A)throw new Error("sourceMapURL could not be parsed");if(A.path){var I=A.path.lastIndexOf("/");I>=0&&(A.path=A.path.substring(0,I+1))}_=l(a(A),_)}return i(_)}e.computeSourceURL=S}(Xo)),Xo}var Qo={},Is;function Ku(){if(Is)return Qo;Is=1;var e=cr(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(a,i){for(var l=new r,s=0,u=a.length;s<u;s++)l.add(a[s],i);return l},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(a,i){var l=n?a:e.toSetString(a),s=n?this.has(a):t.call(this._set,l),u=this._array.length;(!s||i)&&this._array.push(a),s||(n?this._set.set(a,u):this._set[l]=u)},r.prototype.has=function(a){if(n)return this._set.has(a);var i=e.toSetString(a);return t.call(this._set,i)},r.prototype.indexOf=function(a){if(n){var i=this._set.get(a);if(i>=0)return i}else{var l=e.toSetString(a);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+a+'" is not in the set.')},r.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},r.prototype.toArray=function(){return this._array.slice()},Qo.ArraySet=r,Qo}var ea={},Rs;function kA(){if(Rs)return ea;Rs=1;var e=cr();function t(r,o){var a=r.generatedLine,i=o.generatedLine,l=r.generatedColumn,s=o.generatedColumn;return i>a||i==a&&s>=l||e.compareByGeneratedPositionsInflated(r,o)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(o,a){this._array.forEach(o,a)},n.prototype.add=function(o){t(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},ea.MappingList=n,ea}var Ts;function Ju(){if(Ts)return Jo;Ts=1;var e=Yu(),t=cr(),n=Ku().ArraySet,r=kA().MappingList;function o(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(i){var l=i.sourceRoot,s=new o({file:i.file,sourceRoot:l});return i.eachMapping(function(u){var c={generated:{line:u.generatedLine,column:u.generatedColumn}};u.source!=null&&(c.source=u.source,l!=null&&(c.source=t.relative(l,c.source)),c.original={line:u.originalLine,column:u.originalColumn},u.name!=null&&(c.name=u.name)),s.addMapping(c)}),i.sources.forEach(function(u){var c=u;l!==null&&(c=t.relative(l,u)),s._sources.has(c)||s._sources.add(c);var h=i.sourceContentFor(u);h!=null&&s.setSourceContent(u,h)}),s},o.prototype.addMapping=function(i){var l=t.getArg(i,"generated"),s=t.getArg(i,"original",null),u=t.getArg(i,"source",null),c=t.getArg(i,"name",null);this._skipValidation||this._validateMapping(l,s,u,c),u!=null&&(u=String(u),this._sources.has(u)||this._sources.add(u)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:u,name:c})},o.prototype.setSourceContent=function(i,l){var s=i;this._sourceRoot!=null&&(s=t.relative(this._sourceRoot,s)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(s)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(i,l,s){var u=l;if(l==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);u=i.file}var c=this._sourceRoot;c!=null&&(u=t.relative(c,u));var h=new n,d=new n;this._mappings.unsortedForEach(function(f){if(f.source===u&&f.originalLine!=null){var p=i.originalPositionFor({line:f.originalLine,column:f.originalColumn});p.source!=null&&(f.source=p.source,s!=null&&(f.source=t.join(s,f.source)),c!=null&&(f.source=t.relative(c,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,i.sources.forEach(function(f){var p=i.sourceContentFor(f);p!=null&&(s!=null&&(f=t.join(s,f)),c!=null&&(f=t.relative(c,f)),this.setSourceContent(f,p))},this)},o.prototype._validateMapping=function(i,l,s,u){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(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!l&&!s&&!u)){if(i&&"line"in i&&"column"in i&&l&&"line"in l&&"column"in l&&i.line>0&&i.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:i,source:s,original:l,name:u}))}},o.prototype._serializeMappings=function(){for(var i=0,l=1,s=0,u=0,c=0,h=0,d="",f,p,b,x,w=this._mappings.toArray(),k=0,S=w.length;k<S;k++){if(p=w[k],f="",p.generatedLine!==l)for(i=0;p.generatedLine!==l;)f+=";",l++;else if(k>0){if(!t.compareByGeneratedPositionsInflated(p,w[k-1]))continue;f+=","}f+=e.encode(p.generatedColumn-i),i=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),f+=e.encode(x-h),h=x,f+=e.encode(p.originalLine-1-u),u=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-c),c=b)),d+=f}return d},o.prototype._generateSourcesContent=function(i,l){return i.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var u=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,u)?this._sourcesContents[u]:null},this)},o.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},Jo.SourceMapGenerator=o,Jo}var Dn={},ta={},Ns;function wA(){return Ns||(Ns=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,o,a,i,l){var s=Math.floor((r-n)/2)+n,u=i(o,a[s],!0);return u===0?s:u>0?r-s>1?t(s,r,o,a,i,l):l==e.LEAST_UPPER_BOUND?r<a.length?r:-1:s:s-n>1?t(n,s,o,a,i,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(r,o,a,i){if(o.length===0)return-1;var l=t(-1,o.length,r,o,a,i||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&a(o[l],o[l-1],!0)===0;)--l;return l}}(ta)),ta}var na={},Es;function SA(){if(Es)return na;Es=1;function e(r,o,a){var i=r[o];r[o]=r[a],r[a]=i}function t(r,o){return Math.round(r+Math.random()*(o-r))}function n(r,o,a,i){if(a<i){var l=t(a,i),s=a-1;e(r,l,i);for(var u=r[i],c=a;c<i;c++)o(r[c],u)<=0&&(s+=1,e(r,s,c));e(r,s+1,c);var h=s+1;n(r,o,a,h-1),n(r,o,h+1,i)}}return na.quickSort=function(r,o){n(r,o,0,r.length-1)},na}var Ms;function $A(){if(Ms)return Dn;Ms=1;var e=cr(),t=wA(),n=Ku().ArraySet,r=Yu(),o=SA().quickSort;function a(u,c){var h=u;return typeof u=="string"&&(h=e.parseSourceMapInput(u)),h.sections!=null?new s(h,c):new i(h,c)}a.fromSourceMap=function(u,c){return i.fromSourceMap(u,c)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(c,h){var d=c.charAt(h);return d===";"||d===","},a.prototype._parseMappings=function(c,h){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(c,h,d){var f=h||null,p=d||a.GENERATED_ORDER,b;switch(p){case a.GENERATED_ORDER:b=this._generatedMappings;break;case a.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;b.map(function(w){var k=w.source===null?null:this._sources.at(w.source);return k=e.computeSourceURL(x,k,this._sourceMapURL),{source:k,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(c,f)},a.prototype.allGeneratedPositionsFor=function(c){var h=e.getArg(c,"line"),d={source:e.getArg(c,"source"),originalLine:h,originalColumn:e.getArg(c,"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(c.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 w=b.originalColumn;b&&b.originalLine===h&&b.originalColumn==w;)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},Dn.SourceMapConsumer=a;function i(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));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),w=e.getArg(h,"mappings"),k=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(S){return b&&e.isAbsolute(b)&&e.isAbsolute(S)?e.relative(b,S):S}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(S){return e.computeSourceURL(b,S,c)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=w,this._sourceMapURL=c,this.file=k}i.prototype=Object.create(a.prototype),i.prototype.consumer=a,i.prototype._findSourceIndex=function(u){var c=u;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this._sources.indexOf(c);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==u)return h;return-1},i.fromSourceMap=function(c,h){var d=Object.create(i.prototype),f=d._names=n.fromArray(c._names.toArray(),!0),p=d._sources=n.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file,d._sourceMapURL=h,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,h)});for(var b=c._mappings.toArray().slice(),x=d.__generatedMappings=[],w=d.__originalMappings=[],k=0,S=b.length;k<S;k++){var v=b[k],_=new l;_.generatedLine=v.generatedLine,_.generatedColumn=v.generatedColumn,v.source&&(_.source=p.indexOf(v.source),_.originalLine=v.originalLine,_.originalColumn=v.originalColumn,v.name&&(_.name=f.indexOf(v.name)),w.push(_)),x.push(_)}return o(d.__originalMappings,e.compareByOriginalPositions),d},i.prototype._version=3,Object.defineProperty(i.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}i.prototype._parseMappings=function(c,h){for(var d=1,f=0,p=0,b=0,x=0,w=0,k=c.length,S=0,v={},_={},y=[],A=[],I,R,N,P,M;S<k;)if(c.charAt(S)===";")d++,S++,f=0;else if(c.charAt(S)===",")S++;else{for(I=new l,I.generatedLine=d,P=S;P<k&&!this._charIsMappingSeparator(c,P);P++);if(R=c.slice(S,P),N=v[R],N)S+=R.length;else{for(N=[];S<P;)r.decode(c,S,_),M=_.value,S=_.rest,N.push(M);if(N.length===2)throw new Error("Found a source, but no line and column");if(N.length===3)throw new Error("Found a source and line, but no column");v[R]=N}I.generatedColumn=f+N[0],f=I.generatedColumn,N.length>1&&(I.source=x+N[1],x+=N[1],I.originalLine=p+N[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=b+N[3],b=I.originalColumn,N.length>4&&(I.name=w+N[4],w+=N[4])),A.push(I),typeof I.originalLine=="number"&&y.push(I)}o(A,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,o(y,e.compareByOriginalPositions),this.__originalMappings=y},i.prototype._findMapping=function(c,h,d,f,p,b){if(c[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(c[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[f]);return t.search(c,h,p,b)},i.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var h=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var d=this._generatedMappings[c+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",a.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}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},i.prototype.sourceContentFor=function(c,h){if(!this.sourcesContent)return null;var d=this._findSourceIndex(c);if(d>=0)return this.sourcesContent[d];var f=c;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.')},i.prototype.generatedPositionFor=function(c){var h=e.getArg(c,"source");if(h=this._findSourceIndex(h),h<0)return{line:null,column:null,lastColumn:null};var d={source:h,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",a.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}},Dn.BasicSourceMapConsumer=i;function s(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));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"),w=e.getArg(x,"line"),k=e.getArg(x,"column");if(w<p.line||w===p.line&&k<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:w+1,generatedColumn:k+1},consumer:new a(e.getArg(b,"map"),c)}})}return s.prototype=Object.create(a.prototype),s.prototype.constructor=a,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var u=[],c=0;c<this._sections.length;c++)for(var h=0;h<this._sections[c].consumer.sources.length;h++)u.push(this._sections[c].consumer.sources[h]);return u}}),s.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"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:c.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(c,h){for(var d=0;d<this._sections.length;d++){var f=this._sections[d],p=f.consumer.sourceContentFor(c,!0);if(p)return p}if(h)return null;throw new Error('"'+c+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(c){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer._findSourceIndex(e.getArg(c,"source"))!==-1){var f=d.consumer.generatedPositionFor(c);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(c,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],w=f.consumer._sources.at(x.source);w=e.computeSourceURL(f.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var k=null;x.name&&(k=f.consumer._names.at(x.name),this._names.add(k),k=this._names.indexOf(k));var S={source:w,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:k};this.__generatedMappings.push(S),typeof S.originalLine=="number"&&this.__originalMappings.push(S)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},Dn.IndexedSourceMapConsumer=s,Dn}var ra={},Ps;function _A(){if(Ps)return ra;Ps=1;var e=Ju().SourceMapGenerator,t=cr(),n=/(\r?\n)/,r=10,o="$$$isSourceNode$$$";function a(i,l,s,u,c){this.children=[],this.sourceContents={},this.line=i??null,this.column=l??null,this.source=s??null,this.name=c??null,this[o]=!0,u!=null&&this.add(u)}return a.fromStringWithSourceMap=function(l,s,u){var c=new a,h=l.split(n),d=0,f=function(){var k=v(),S=v()||"";return k+S;function v(){return d<h.length?h[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(k){if(x!==null)if(p<k.generatedLine)w(x,f()),p++,b=0;else{var S=h[d]||"",v=S.substr(0,k.generatedColumn-b);h[d]=S.substr(k.generatedColumn-b),b=k.generatedColumn,w(x,v),x=k;return}for(;p<k.generatedLine;)c.add(f()),p++;if(b<k.generatedColumn){var S=h[d]||"";c.add(S.substr(0,k.generatedColumn)),h[d]=S.substr(k.generatedColumn),b=k.generatedColumn}x=k},this),d<h.length&&(x&&w(x,f()),c.add(h.splice(d).join(""))),s.sources.forEach(function(k){var S=s.sourceContentFor(k);S!=null&&(u!=null&&(k=t.join(u,k)),c.setSourceContent(k,S))}),c;function w(k,S){if(k===null||k.source===void 0)c.add(S);else{var v=u?t.join(u,k.source):k.source;c.add(new a(k.originalLine,k.originalColumn,v,S,k.name))}}},a.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[o]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},a.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[o]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},a.prototype.walk=function(l){for(var s,u=0,c=this.children.length;u<c;u++)s=this.children[u],s[o]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(l){var s,u,c=this.children.length;if(c>0){for(s=[],u=0;u<c-1;u++)s.push(this.children[u]),s.push(l);s.push(this.children[u]),this.children=s}return this},a.prototype.replaceRight=function(l,s){var u=this.children[this.children.length-1];return u[o]?u.replaceRight(l,s):typeof u=="string"?this.children[this.children.length-1]=u.replace(l,s):this.children.push("".replace(l,s)),this},a.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},a.prototype.walkSourceContents=function(l){for(var s=0,u=this.children.length;s<u;s++)this.children[s][o]&&this.children[s].walkSourceContents(l);for(var c=Object.keys(this.sourceContents),s=0,u=c.length;s<u;s++)l(t.fromSetString(c[s]),this.sourceContents[c[s]])},a.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},a.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},u=new e(l),c=!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)&&u.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,c=!0):c&&(u.addMapping({generated:{line:s.line,column:s.column}}),h=null,c=!1);for(var w=0,k=b.length;w<k;w++)b.charCodeAt(w)===r?(s.line++,s.column=0,w+1===k?(h=null,c=!1):c&&u.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){u.setSourceContent(b,x)}),{code:s.code,map:u}},ra.SourceNode=a,ra}var Os;function CA(){return Os||(Os=1,jn.SourceMapGenerator=Ju().SourceMapGenerator,jn.SourceMapConsumer=$A().SourceMapConsumer,jn.SourceNode=_A().SourceNode),jn}(function(e,t){t.__esModule=!0;var n=ye,r=void 0;try{var o=CA();r=o.SourceNode}catch{}r||(r=function(l,s,u,c){this.src="",c&&this.add(c)},r.prototype={add:function(s){n.isArray(s)&&(s=s.join("")),this.src+=s},prepend:function(s){n.isArray(s)&&(s=s.join("")),this.src=s+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function a(l,s,u){if(n.isArray(l)){for(var c=[],h=0,d=l.length;h<d;h++)c.push(s.wrap(l[h],u));return c}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function i(l){this.srcFile=l,this.source=[]}i.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,u){this.source.unshift(this.wrap(s,u))},push:function(s,u){this.source.push(this.wrap(s,u))},merge:function(){var s=this.empty();return this.each(function(u){s.add([" ",u,`
592
- `])}),s},each:function(s){for(var u=0,c=this.source.length;u<c;u++)s(this.source[u])},empty:function(){var s=this.currentLocation||{start:{}};return new r(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var u=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof r?s:(s=a(s,this,u),new r(u.start.line,u.start.column,this.srcFile,s))},functionCall:function(s,u,c){return c=this.generateList(c),this.wrap([s,u?"."+u+"(":"(",c,")"])},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 u=this,c=[];Object.keys(s).forEach(function(d){var f=a(s[d],u);f!=="undefined"&&c.push([u.quotedString(d),":",f])});var h=this.generateList(c);return h.prepend("{"),h.add("}"),h},generateList:function(s){for(var u=this.empty(),c=0,h=s.length;c<h;c++)c&&u.add(","),u.add(a(s[c],this));return u},generateArray:function(s){var u=this.generateList(s);return u.prepend("["),u.add("]"),u}},t.default=i,e.exports=t.default})(Ka,Ka.exports);var AA=Ka.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var r=st,o=ct,a=n(o),i=ye,l=AA,s=n(l);function u(d){this.value=d}function c(){}c.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=r.COMPILER_REVISION,p=r.REVISION_CHANGES[f];return[f,p]},appendToBuffer:function(f,p,b){return i.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 w=f.opcodes,k=void 0,S=void 0,v=void 0,_=void 0;for(v=0,_=w.length;v<_;v++)k=w[v],this.source.currentLocation=k.loc,S=S||k.loc,this[k.opcode].apply(this,k.args);if(this.source.currentLocation=S,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new a.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(),`;
587
+ `+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 i.options={},i.performAction=function(s,u,c,h){function d(f,p){return u.yytext=u.yytext.substring(f,u.yyleng-p+f)}switch(c){case 0:if(u.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):u.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),u.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(u.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 u.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return u.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 u.yytext=u.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},i.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.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}},i}();r.lexer=o;function a(){this.yy={}}return a.prototype=r,r.Parser=a,new a}();t.default=n,e.exports=t.default})(qa,qa.exports);var eA=qa.exports,Va={exports:{}},Ya={exports:{}};(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var r=ct,o=n(r);function a(){this.parents=[]}a.prototype={constructor:a,mutating:!1,acceptKey:function(c,h){var d=this.accept(c[h]);if(this.mutating){if(d&&!a.prototype[d.type])throw new o.default('Unexpected node type "'+d.type+'" found when accepting '+h+" on "+c.type);c[h]=d}},acceptRequired:function(c,h){if(this.acceptKey(c,h),!c[h])throw new o.default(c.type+" requires "+h)},acceptArray:function(c){for(var h=0,d=c.length;h<d;h++)this.acceptKey(c,h),c[h]||(c.splice(h,1),h--,d--)},accept:function(c){if(c){if(!this[c.type])throw new o.default("Unknown type: "+c.type,c);this.current&&this.parents.unshift(this.current),this.current=c;var h=this[c.type](c);if(this.current=this.parents.shift(),!this.mutating||h)return h;if(h!==!1)return c}},Program:function(c){this.acceptArray(c.body)},MustacheStatement:i,Decorator:i,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(c){s.call(this,c),this.acceptKey(c,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(c){this.acceptArray(c.pairs)},HashPair:function(c){this.acceptRequired(c,"value")}};function i(u){this.acceptRequired(u,"path"),this.acceptArray(u.params),this.acceptKey(u,"hash")}function l(u){i.call(this,u),this.acceptKey(u,"program"),this.acceptKey(u,"inverse")}function s(u){this.acceptRequired(u,"name"),this.acceptArray(u.params),this.acceptKey(u,"hash")}t.default=a,e.exports=t.default})(Ya,Ya.exports);var Ku=Ya.exports;(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var r=Ku,o=n(r);function a(){var c=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=c}a.prototype=new o.default,a.prototype.Program=function(c){var h=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var f=c.body,p=0,b=f.length;p<b;p++){var x=f[p],w=this.accept(x);if(w){var k=i(f,p,d),S=l(f,p,d),v=w.openStandalone&&k,_=w.closeStandalone&&S,y=w.inlineStandalone&&k&&S;w.close&&s(f,p,!0),w.open&&u(f,p,!0),h&&y&&(s(f,p),u(f,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(f[p-1].original)[1])),h&&v&&(s((x.program||x.inverse).body),u(f,p)),h&&_&&(s(f,p),u((x.inverse||x.program).body))}}return c},a.prototype.BlockStatement=a.prototype.DecoratorBlock=a.prototype.PartialBlockStatement=function(c){this.accept(c.program),this.accept(c.inverse);var h=c.program||c.inverse,d=c.program&&c.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:c.openStrip.open,close:c.closeStrip.close,openStandalone:l(h.body),closeStandalone:i((f||h).body)};if(c.openStrip.close&&s(h.body,null,!0),d){var x=c.inverseStrip;x.open&&u(h.body,null,!0),x.close&&s(f.body,null,!0),c.closeStrip.open&&u(p.body,null,!0),!this.options.ignoreStandalone&&i(h.body)&&l(f.body)&&(u(h.body),s(f.body))}else c.closeStrip.open&&u(h.body,null,!0);return b},a.prototype.Decorator=a.prototype.MustacheStatement=function(c){return c.strip},a.prototype.PartialStatement=a.prototype.CommentStatement=function(c){var h=c.strip||{};return{inlineStandalone:!0,open:h.open,close:h.close}};function i(c,h,d){h===void 0&&(h=c.length);var f=c[h-1],p=c[h-2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function l(c,h,d){h===void 0&&(h=-1);var f=c[h+1],p=c[h+2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function s(c,h,d){var f=c[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 u(c,h,d){var f=c[h==null?c.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=a,e.exports=t.default})(Va,Va.exports);var tA=Va.exports,ut={};ut.__esModule=!0;ut.SourceLocation=oA;ut.id=aA;ut.stripFlags=iA;ut.stripComment=lA;ut.preparePath=sA;ut.prepareMustache=cA;ut.prepareRawBlock=uA;ut.prepareBlock=dA;ut.prepareProgram=hA;ut.preparePartialBlock=fA;function nA(e){return e&&e.__esModule?e:{default:e}}var rA=ct,Ni=nA(rA);function Mi(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new Ni.default(e.path.original+" doesn't match "+t,n)}}function oA(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 aA(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function iA(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function lA(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function sA(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",o=[],a=0,i=0,l=t.length;i<l;i++){var s=t[i].part,u=t[i].original!==s;if(r+=(t[i].separator||"")+s,!u&&(s===".."||s==="."||s==="this")){if(o.length>0)throw new Ni.default("Invalid path: "+r,{loc:n});s===".."&&a++}else o.push(s)}return{type:"PathExpression",data:e,depth:a,parts:o,original:r,loc:n}}function cA(e,t,n,r,o,a){var i=r.charAt(3)||r.charAt(2),l=i!=="{"&&i!=="&",s=/\*/.test(r);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:o,loc:this.locInfo(a)}}function uA(e,t,n,r){Mi(e,n),r=this.locInfo(r);var o={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function dA(e,t,n,r,o,a){r&&r.path&&Mi(e,r);var i=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(i)throw new Ni.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),s=n.strip,l=n.program}return o&&(o=l,l=t,t=o),{type:i?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:r&&r.strip,loc:this.locInfo(a)}}function hA(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function fA(e,t,n,r){return Mi(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}}cr.__esModule=!0;cr.parseWithoutProcessing=Ju;cr.parse=SA;function pA(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 Pi(e){return e&&e.__esModule?e:{default:e}}var gA=eA,Ka=Pi(gA),mA=tA,bA=Pi(mA),xA=ut,vA=pA(xA),kA=ct,Bn=Pi(kA),wA=ye;cr.parser=Ka.default;var Br={};wA.extend(Br,vA);function Ju(e,t){if(e.type==="Program")return $A(e),e;Ka.default.yy=Br,Br.locInfo=function(r){return new Br.SourceLocation(t&&t.srcName,r)};var n=Ka.default.parse(e);return n}function SA(e,t){var n=Ju(e,t),r=new bA.default(t);return r.accept(n)}function $A(e){Ja(e)}function Ja(e){if(e!=null){if(Array.isArray(e)){e.forEach(Ja);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!_A(e.depth))throw new Bn.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new Bn.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 Bn.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new Bn.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new Bn.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&Ja(e[n])})}}}function _A(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var ur={};ur.__esModule=!0;ur.Compiler=Xa;ur.precompile=IA;ur.compile=RA;function Xu(e){return e&&e.__esModule?e:{default:e}}var CA=ct,Vn=Xu(CA),nr=ye,AA=Yu,Dn=Xu(AA),yA=[].slice;function Xa(){}Xa.prototype={compiler:Xa,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var r=0;r<n;r++){var o=this.opcodes[r],a=t.opcodes[r];if(o.opcode!==a.opcode||!Qu(o.args,a.args))return!1}n=this.children.length;for(var r=0;r<n;r++)if(!this.children[r].equals(t.children[r]))return!1;return!0},guid:0,compile:function(t,n){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[],n.knownHelpers=nr.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n.knownHelpers),this.accept(t)},compileProgram:function(t){var n=new this.compiler,r=n.compile(t,this.options),o=this.guid++;return this.usePartial=this.usePartial||r.usePartial,this.children[o]=r,this.useDepths=this.useDepths||r.useDepths,o},accept:function(t){if(!this[t.type])throw new Vn.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var n=t.body,r=n.length,o=0;o<r;o++)this.accept(n[o]);return this.options.blockParams.shift(),this.isSimple=r===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){Rs(t);var n=t.program,r=t.inverse;n=n&&this.compileProgram(n),r=r&&this.compileProgram(r);var o=this.classifySexpr(t);o==="helper"?this.helperSexpr(t,n,r):o==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,r),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),r=this.setupFullMustacheParams(t,n,void 0),o=t.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,o.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var r=t.params;if(r.length>1)throw new Vn.default("Unsupported number of partial arguments: "+r.length,t);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var o=t.name.original,a=t.name.type==="SubExpression";a&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var i=t.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",a,o,i),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){Rs(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,r){var o=t.path,a=o.parts[0],i=n!=null||r!=null;this.opcode("getContext",o.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",r),o.strict=!0,this.accept(o),this.opcode("invokeAmbiguous",a,i)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,r){var o=this.setupFullMustacheParams(t,n,r),a=t.path,i=a.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",o.length,i);else{if(this.options.knownHelpersOnly)throw new Vn.default("You specified knownHelpersOnly, but used the unknown helper "+i,t);a.strict=!0,a.falsy=!0,this.accept(a),this.opcode("invokeHelper",o.length,a.original,Dn.default.helpers.simpleId(a))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],r=Dn.default.helpers.scopedId(t),o=!t.depth&&!r&&this.blockParamIndex(n);o?this.opcode("lookupBlockParam",o,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,r):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,r=0,o=n.length;for(this.opcode("pushHash");r<o;r++)this.pushParam(n[r].value);for(;r--;)this.opcode("assignToHash",n[r].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:yA.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=Dn.default.helpers.simpleId(t.path),r=n&&!!this.blockParamIndex(t.path.parts[0]),o=!r&&Dn.default.helpers.helperExpression(t),a=!r&&(o||n);if(a&&!o){var i=t.path.parts[0],l=this.options;l.knownHelpers[i]?o=!0:l.knownHelpersOnly&&(a=!1)}return o?"helper":a?"ambiguous":"simple"},pushParams:function(t){for(var n=0,r=t.length;n<r;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var r=void 0;if(t.parts&&!Dn.default.helpers.scopedId(t)&&!t.depth&&(r=this.blockParamIndex(t.parts[0])),r){var o=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,o)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,r,o){var a=t.params;return this.pushParams(a),this.opcode("pushProgram",n),this.opcode("pushProgram",r),t.hash?this.accept(t.hash):this.opcode("emptyHash",o),a},blockParamIndex:function(t){for(var n=0,r=this.options.blockParams.length;n<r;n++){var o=this.options.blockParams[n],a=o&&nr.indexOf(o,t);if(o&&a>=0)return[n,a]}}};function IA(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Vn.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),o=new n.Compiler().compile(r,t);return new n.JavaScriptCompiler().compile(o,t)}function RA(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Vn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=nr.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function o(){var i=n.parse(e,t),l=new n.Compiler().compile(i,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function a(i,l){return r||(r=o()),r.call(this,i,l)}return a._setup=function(i){return r||(r=o()),r._setup(i)},a._child=function(i,l,s,u){return r||(r=o()),r._child(i,l,s,u)},a}function Qu(e,t){if(e===t)return!0;if(nr.isArray(e)&&nr.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!Qu(e[n],t[n]))return!1;return!0}}function Rs(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 Qa={exports:{}},ei={exports:{}},Fn={},ta={},Ir={},Rr={},Ts;function TA(){if(Ts)return Rr;Ts=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Rr.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Rr.decode=function(t){var n=65,r=90,o=97,a=122,i=48,l=57,s=43,u=47,c=26,h=52;return n<=t&&t<=r?t-n:o<=t&&t<=a?t-o+c:i<=t&&t<=l?t-i+h:t==s?62:t==u?63:-1},Rr}var Es;function ed(){if(Es)return Ir;Es=1;var e=TA(),t=5,n=1<<t,r=n-1,o=n;function a(l){return l<0?(-l<<1)+1:(l<<1)+0}function i(l){var s=(l&1)===1,u=l>>1;return s?-u:u}return Ir.encode=function(s){var u="",c,h=a(s);do c=h&r,h>>>=t,h>0&&(c|=o),u+=e.encode(c);while(h>0);return u},Ir.decode=function(s,u,c){var h=s.length,d=0,f=0,p,b;do{if(u>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(u++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(u-1));p=!!(b&o),b&=r,d=d+(b<<f),f+=t}while(p);c.value=i(d),c.rest=u},Ir}var na={},Ns;function dr(){return Ns||(Ns=1,function(e){function t(v,_,y){if(_ in v)return v[_];if(arguments.length===3)return y;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=o;function a(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}e.urlGenerate=a;function i(v){var _=v,y=o(v);if(y){if(!y.path)return v;_=y.path}for(var C=e.isAbsolute(_),I=_.split(/\/+/),R,E=0,O=I.length-1;O>=0;O--)R=I[O],R==="."?I.splice(O,1):R===".."?E++:E>0&&(R===""?(I.splice(O+1,E),E=0):(I.splice(O,2),E--));return _=I.join("/"),_===""&&(_=C?"/":"."),y?(y.path=_,a(y)):_}e.normalize=i;function l(v,_){v===""&&(v="."),_===""&&(_=".");var y=o(_),C=o(v);if(C&&(v=C.path||"/"),y&&!y.scheme)return C&&(y.scheme=C.scheme),a(y);if(y||_.match(r))return _;if(C&&!C.host&&!C.path)return C.host=_,a(C);var I=_.charAt(0)==="/"?_:i(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=I,a(C)):I}e.join=l,e.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function s(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var y=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++y}return Array(y+1).join("../")+_.substr(v.length+1)}e.relative=s;var u=function(){var v=Object.create(null);return!("__proto__"in v)}();function c(v){return v}function h(v){return f(v)?"$"+v:v}e.toSetString=u?c:h;function d(v){return f(v)?v.slice(1):v}e.fromSetString=u?c:d;function f(v){if(!v)return!1;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return!1;for(var y=_-10;y>=0;y--)if(v.charCodeAt(y)!==36)return!1;return!0}function p(v,_,y){var C=x(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||y)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:x(v.name,_.name)}e.compareByOriginalPositions=p;function b(v,_,y){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||y)||(C=x(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:x(v.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function x(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function w(v,_){var y=v.generatedLine-_.generatedLine;return y!==0||(y=v.generatedColumn-_.generatedColumn,y!==0)||(y=x(v.source,_.source),y!==0)||(y=v.originalLine-_.originalLine,y!==0)||(y=v.originalColumn-_.originalColumn,y!==0)?y:x(v.name,_.name)}e.compareByGeneratedPositionsInflated=w;function k(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=k;function S(v,_,y){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),y){var C=o(y);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var I=C.path.lastIndexOf("/");I>=0&&(C.path=C.path.substring(0,I+1))}_=l(a(C),_)}return i(_)}e.computeSourceURL=S}(na)),na}var ra={},Ms;function td(){if(Ms)return ra;Ms=1;var e=dr(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(a,i){for(var l=new r,s=0,u=a.length;s<u;s++)l.add(a[s],i);return l},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(a,i){var l=n?a:e.toSetString(a),s=n?this.has(a):t.call(this._set,l),u=this._array.length;(!s||i)&&this._array.push(a),s||(n?this._set.set(a,u):this._set[l]=u)},r.prototype.has=function(a){if(n)return this._set.has(a);var i=e.toSetString(a);return t.call(this._set,i)},r.prototype.indexOf=function(a){if(n){var i=this._set.get(a);if(i>=0)return i}else{var l=e.toSetString(a);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+a+'" is not in the set.')},r.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},r.prototype.toArray=function(){return this._array.slice()},ra.ArraySet=r,ra}var oa={},Ps;function EA(){if(Ps)return oa;Ps=1;var e=dr();function t(r,o){var a=r.generatedLine,i=o.generatedLine,l=r.generatedColumn,s=o.generatedColumn;return i>a||i==a&&s>=l||e.compareByGeneratedPositionsInflated(r,o)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(o,a){this._array.forEach(o,a)},n.prototype.add=function(o){t(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},oa.MappingList=n,oa}var Os;function nd(){if(Os)return ta;Os=1;var e=ed(),t=dr(),n=td().ArraySet,r=EA().MappingList;function o(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(i){var l=i.sourceRoot,s=new o({file:i.file,sourceRoot:l});return i.eachMapping(function(u){var c={generated:{line:u.generatedLine,column:u.generatedColumn}};u.source!=null&&(c.source=u.source,l!=null&&(c.source=t.relative(l,c.source)),c.original={line:u.originalLine,column:u.originalColumn},u.name!=null&&(c.name=u.name)),s.addMapping(c)}),i.sources.forEach(function(u){var c=u;l!==null&&(c=t.relative(l,u)),s._sources.has(c)||s._sources.add(c);var h=i.sourceContentFor(u);h!=null&&s.setSourceContent(u,h)}),s},o.prototype.addMapping=function(i){var l=t.getArg(i,"generated"),s=t.getArg(i,"original",null),u=t.getArg(i,"source",null),c=t.getArg(i,"name",null);this._skipValidation||this._validateMapping(l,s,u,c),u!=null&&(u=String(u),this._sources.has(u)||this._sources.add(u)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:u,name:c})},o.prototype.setSourceContent=function(i,l){var s=i;this._sourceRoot!=null&&(s=t.relative(this._sourceRoot,s)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(s)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(i,l,s){var u=l;if(l==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);u=i.file}var c=this._sourceRoot;c!=null&&(u=t.relative(c,u));var h=new n,d=new n;this._mappings.unsortedForEach(function(f){if(f.source===u&&f.originalLine!=null){var p=i.originalPositionFor({line:f.originalLine,column:f.originalColumn});p.source!=null&&(f.source=p.source,s!=null&&(f.source=t.join(s,f.source)),c!=null&&(f.source=t.relative(c,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,i.sources.forEach(function(f){var p=i.sourceContentFor(f);p!=null&&(s!=null&&(f=t.join(s,f)),c!=null&&(f=t.relative(c,f)),this.setSourceContent(f,p))},this)},o.prototype._validateMapping=function(i,l,s,u){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(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!l&&!s&&!u)){if(i&&"line"in i&&"column"in i&&l&&"line"in l&&"column"in l&&i.line>0&&i.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:i,source:s,original:l,name:u}))}},o.prototype._serializeMappings=function(){for(var i=0,l=1,s=0,u=0,c=0,h=0,d="",f,p,b,x,w=this._mappings.toArray(),k=0,S=w.length;k<S;k++){if(p=w[k],f="",p.generatedLine!==l)for(i=0;p.generatedLine!==l;)f+=";",l++;else if(k>0){if(!t.compareByGeneratedPositionsInflated(p,w[k-1]))continue;f+=","}f+=e.encode(p.generatedColumn-i),i=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),f+=e.encode(x-h),h=x,f+=e.encode(p.originalLine-1-u),u=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-c),c=b)),d+=f}return d},o.prototype._generateSourcesContent=function(i,l){return i.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var u=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,u)?this._sourcesContents[u]:null},this)},o.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},ta.SourceMapGenerator=o,ta}var Hn={},aa={},Ls;function NA(){return Ls||(Ls=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,o,a,i,l){var s=Math.floor((r-n)/2)+n,u=i(o,a[s],!0);return u===0?s:u>0?r-s>1?t(s,r,o,a,i,l):l==e.LEAST_UPPER_BOUND?r<a.length?r:-1:s:s-n>1?t(n,s,o,a,i,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(r,o,a,i){if(o.length===0)return-1;var l=t(-1,o.length,r,o,a,i||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&a(o[l],o[l-1],!0)===0;)--l;return l}}(aa)),aa}var ia={},zs;function MA(){if(zs)return ia;zs=1;function e(r,o,a){var i=r[o];r[o]=r[a],r[a]=i}function t(r,o){return Math.round(r+Math.random()*(o-r))}function n(r,o,a,i){if(a<i){var l=t(a,i),s=a-1;e(r,l,i);for(var u=r[i],c=a;c<i;c++)o(r[c],u)<=0&&(s+=1,e(r,s,c));e(r,s+1,c);var h=s+1;n(r,o,a,h-1),n(r,o,h+1,i)}}return ia.quickSort=function(r,o){n(r,o,0,r.length-1)},ia}var js;function PA(){if(js)return Hn;js=1;var e=dr(),t=NA(),n=td().ArraySet,r=ed(),o=MA().quickSort;function a(u,c){var h=u;return typeof u=="string"&&(h=e.parseSourceMapInput(u)),h.sections!=null?new s(h,c):new i(h,c)}a.fromSourceMap=function(u,c){return i.fromSourceMap(u,c)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(c,h){var d=c.charAt(h);return d===";"||d===","},a.prototype._parseMappings=function(c,h){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(c,h,d){var f=h||null,p=d||a.GENERATED_ORDER,b;switch(p){case a.GENERATED_ORDER:b=this._generatedMappings;break;case a.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;b.map(function(w){var k=w.source===null?null:this._sources.at(w.source);return k=e.computeSourceURL(x,k,this._sourceMapURL),{source:k,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(c,f)},a.prototype.allGeneratedPositionsFor=function(c){var h=e.getArg(c,"line"),d={source:e.getArg(c,"source"),originalLine:h,originalColumn:e.getArg(c,"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(c.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 w=b.originalColumn;b&&b.originalLine===h&&b.originalColumn==w;)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},Hn.SourceMapConsumer=a;function i(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));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),w=e.getArg(h,"mappings"),k=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(S){return b&&e.isAbsolute(b)&&e.isAbsolute(S)?e.relative(b,S):S}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(S){return e.computeSourceURL(b,S,c)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=w,this._sourceMapURL=c,this.file=k}i.prototype=Object.create(a.prototype),i.prototype.consumer=a,i.prototype._findSourceIndex=function(u){var c=u;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this._sources.indexOf(c);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==u)return h;return-1},i.fromSourceMap=function(c,h){var d=Object.create(i.prototype),f=d._names=n.fromArray(c._names.toArray(),!0),p=d._sources=n.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file,d._sourceMapURL=h,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,h)});for(var b=c._mappings.toArray().slice(),x=d.__generatedMappings=[],w=d.__originalMappings=[],k=0,S=b.length;k<S;k++){var v=b[k],_=new l;_.generatedLine=v.generatedLine,_.generatedColumn=v.generatedColumn,v.source&&(_.source=p.indexOf(v.source),_.originalLine=v.originalLine,_.originalColumn=v.originalColumn,v.name&&(_.name=f.indexOf(v.name)),w.push(_)),x.push(_)}return o(d.__originalMappings,e.compareByOriginalPositions),d},i.prototype._version=3,Object.defineProperty(i.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}i.prototype._parseMappings=function(c,h){for(var d=1,f=0,p=0,b=0,x=0,w=0,k=c.length,S=0,v={},_={},y=[],C=[],I,R,E,O,M;S<k;)if(c.charAt(S)===";")d++,S++,f=0;else if(c.charAt(S)===",")S++;else{for(I=new l,I.generatedLine=d,O=S;O<k&&!this._charIsMappingSeparator(c,O);O++);if(R=c.slice(S,O),E=v[R],E)S+=R.length;else{for(E=[];S<O;)r.decode(c,S,_),M=_.value,S=_.rest,E.push(M);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");v[R]=E}I.generatedColumn=f+E[0],f=I.generatedColumn,E.length>1&&(I.source=x+E[1],x+=E[1],I.originalLine=p+E[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=b+E[3],b=I.originalColumn,E.length>4&&(I.name=w+E[4],w+=E[4])),C.push(I),typeof I.originalLine=="number"&&y.push(I)}o(C,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,o(y,e.compareByOriginalPositions),this.__originalMappings=y},i.prototype._findMapping=function(c,h,d,f,p,b){if(c[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(c[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[f]);return t.search(c,h,p,b)},i.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var h=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var d=this._generatedMappings[c+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",a.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}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},i.prototype.sourceContentFor=function(c,h){if(!this.sourcesContent)return null;var d=this._findSourceIndex(c);if(d>=0)return this.sourcesContent[d];var f=c;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.')},i.prototype.generatedPositionFor=function(c){var h=e.getArg(c,"source");if(h=this._findSourceIndex(h),h<0)return{line:null,column:null,lastColumn:null};var d={source:h,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",a.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}},Hn.BasicSourceMapConsumer=i;function s(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));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"),w=e.getArg(x,"line"),k=e.getArg(x,"column");if(w<p.line||w===p.line&&k<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:w+1,generatedColumn:k+1},consumer:new a(e.getArg(b,"map"),c)}})}return s.prototype=Object.create(a.prototype),s.prototype.constructor=a,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var u=[],c=0;c<this._sections.length;c++)for(var h=0;h<this._sections[c].consumer.sources.length;h++)u.push(this._sections[c].consumer.sources[h]);return u}}),s.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"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:c.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(c,h){for(var d=0;d<this._sections.length;d++){var f=this._sections[d],p=f.consumer.sourceContentFor(c,!0);if(p)return p}if(h)return null;throw new Error('"'+c+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(c){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer._findSourceIndex(e.getArg(c,"source"))!==-1){var f=d.consumer.generatedPositionFor(c);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(c,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],w=f.consumer._sources.at(x.source);w=e.computeSourceURL(f.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var k=null;x.name&&(k=f.consumer._names.at(x.name),this._names.add(k),k=this._names.indexOf(k));var S={source:w,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:k};this.__generatedMappings.push(S),typeof S.originalLine=="number"&&this.__originalMappings.push(S)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},Hn.IndexedSourceMapConsumer=s,Hn}var la={},Bs;function OA(){if(Bs)return la;Bs=1;var e=nd().SourceMapGenerator,t=dr(),n=/(\r?\n)/,r=10,o="$$$isSourceNode$$$";function a(i,l,s,u,c){this.children=[],this.sourceContents={},this.line=i??null,this.column=l??null,this.source=s??null,this.name=c??null,this[o]=!0,u!=null&&this.add(u)}return a.fromStringWithSourceMap=function(l,s,u){var c=new a,h=l.split(n),d=0,f=function(){var k=v(),S=v()||"";return k+S;function v(){return d<h.length?h[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(k){if(x!==null)if(p<k.generatedLine)w(x,f()),p++,b=0;else{var S=h[d]||"",v=S.substr(0,k.generatedColumn-b);h[d]=S.substr(k.generatedColumn-b),b=k.generatedColumn,w(x,v),x=k;return}for(;p<k.generatedLine;)c.add(f()),p++;if(b<k.generatedColumn){var S=h[d]||"";c.add(S.substr(0,k.generatedColumn)),h[d]=S.substr(k.generatedColumn),b=k.generatedColumn}x=k},this),d<h.length&&(x&&w(x,f()),c.add(h.splice(d).join(""))),s.sources.forEach(function(k){var S=s.sourceContentFor(k);S!=null&&(u!=null&&(k=t.join(u,k)),c.setSourceContent(k,S))}),c;function w(k,S){if(k===null||k.source===void 0)c.add(S);else{var v=u?t.join(u,k.source):k.source;c.add(new a(k.originalLine,k.originalColumn,v,S,k.name))}}},a.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[o]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},a.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[o]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},a.prototype.walk=function(l){for(var s,u=0,c=this.children.length;u<c;u++)s=this.children[u],s[o]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(l){var s,u,c=this.children.length;if(c>0){for(s=[],u=0;u<c-1;u++)s.push(this.children[u]),s.push(l);s.push(this.children[u]),this.children=s}return this},a.prototype.replaceRight=function(l,s){var u=this.children[this.children.length-1];return u[o]?u.replaceRight(l,s):typeof u=="string"?this.children[this.children.length-1]=u.replace(l,s):this.children.push("".replace(l,s)),this},a.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},a.prototype.walkSourceContents=function(l){for(var s=0,u=this.children.length;s<u;s++)this.children[s][o]&&this.children[s].walkSourceContents(l);for(var c=Object.keys(this.sourceContents),s=0,u=c.length;s<u;s++)l(t.fromSetString(c[s]),this.sourceContents[c[s]])},a.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},a.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},u=new e(l),c=!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)&&u.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,c=!0):c&&(u.addMapping({generated:{line:s.line,column:s.column}}),h=null,c=!1);for(var w=0,k=b.length;w<k;w++)b.charCodeAt(w)===r?(s.line++,s.column=0,w+1===k?(h=null,c=!1):c&&u.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){u.setSourceContent(b,x)}),{code:s.code,map:u}},la.SourceNode=a,la}var Ds;function LA(){return Ds||(Ds=1,Fn.SourceMapGenerator=nd().SourceMapGenerator,Fn.SourceMapConsumer=PA().SourceMapConsumer,Fn.SourceNode=OA().SourceNode),Fn}(function(e,t){t.__esModule=!0;var n=ye,r=void 0;try{var o=LA();r=o.SourceNode}catch{}r||(r=function(l,s,u,c){this.src="",c&&this.add(c)},r.prototype={add:function(s){n.isArray(s)&&(s=s.join("")),this.src+=s},prepend:function(s){n.isArray(s)&&(s=s.join("")),this.src=s+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function a(l,s,u){if(n.isArray(l)){for(var c=[],h=0,d=l.length;h<d;h++)c.push(s.wrap(l[h],u));return c}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function i(l){this.srcFile=l,this.source=[]}i.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,u){this.source.unshift(this.wrap(s,u))},push:function(s,u){this.source.push(this.wrap(s,u))},merge:function(){var s=this.empty();return this.each(function(u){s.add([" ",u,`
588
+ `])}),s},each:function(s){for(var u=0,c=this.source.length;u<c;u++)s(this.source[u])},empty:function(){var s=this.currentLocation||{start:{}};return new r(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var u=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof r?s:(s=a(s,this,u),new r(u.start.line,u.start.column,this.srcFile,s))},functionCall:function(s,u,c){return c=this.generateList(c),this.wrap([s,u?"."+u+"(":"(",c,")"])},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 u=this,c=[];Object.keys(s).forEach(function(d){var f=a(s[d],u);f!=="undefined"&&c.push([u.quotedString(d),":",f])});var h=this.generateList(c);return h.prepend("{"),h.add("}"),h},generateList:function(s){for(var u=this.empty(),c=0,h=s.length;c<h;c++)c&&u.add(","),u.add(a(s[c],this));return u},generateArray:function(s){var u=this.generateList(s);return u.prepend("["),u.add("]"),u}},t.default=i,e.exports=t.default})(ei,ei.exports);var zA=ei.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var r=st,o=ct,a=n(o),i=ye,l=zA,s=n(l);function u(d){this.value=d}function c(){}c.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=r.COMPILER_REVISION,p=r.REVISION_CHANGES[f];return[f,p]},appendToBuffer:function(f,p,b){return i.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 w=f.opcodes,k=void 0,S=void 0,v=void 0,_=void 0;for(v=0,_=w.length;v<_;v++)k=w[v],this.source.currentLocation=k.loc,S=S||k.loc,this[k.opcode].apply(this,k.args);if(this.source.currentLocation=S,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new a.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(),`;
593
589
  `]),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) {
594
590
  `),this.decorators.push(`}
595
- `),this.decorators=this.decorators.merge()));var y=this.createFunctionContext(x);if(this.isChild)return y;var A={compiler:this.compilerInfo(),main:y};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var I=this.context,R=I.programs,N=I.decorators;for(v=0,_=R.length;v<_;v++)A[v]=R[v],N[v]&&(A[v+"_d"]=N[v],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),x?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),p.srcName?(A=A.toStringWithSourceMap({file:p.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},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 w=0;Object.keys(this.aliases).forEach(function(v){var _=p.aliases[v];_.children&&_.referenceCount>1&&(b+=", alias"+ ++w+"="+v,_.children[0]="alias"+w)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var k=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&k.push("blockParams"),this.useDepths&&k.push("depths");var S=this.mergeSource(b);return f?(k.push(S),Function.apply(this,k)):this.source.wrap(["function(",k.join(","),`) {
591
+ `),this.decorators=this.decorators.merge()));var y=this.createFunctionContext(x);if(this.isChild)return y;var C={compiler:this.compilerInfo(),main:y};this.decorators&&(C.main_d=this.decorators,C.useDecorators=!0);var I=this.context,R=I.programs,E=I.decorators;for(v=0,_=R.length;v<_;v++)C[v]=R[v],E[v]&&(C[v+"_d"]=E[v],C.useDecorators=!0);return this.environment.usePartial&&(C.usePartial=!0),this.options.data&&(C.useData=!0),this.useDepths&&(C.useDepths=!0),this.useBlockParams&&(C.useBlockParams=!0),this.options.compat&&(C.compat=!0),x?C.compilerOptions=this.options:(C.compiler=JSON.stringify(C.compiler),this.source.currentLocation={start:{line:1,column:0}},C=this.objectLiteral(C),p.srcName?(C=C.toStringWithSourceMap({file:p.destName}),C.map=C.map&&C.map.toString()):C=C.toString()),C},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(f){var p=this,b="",x=this.stackVars.concat(this.registers.list);x.length>0&&(b+=", "+x.join(", "));var w=0;Object.keys(this.aliases).forEach(function(v){var _=p.aliases[v];_.children&&_.referenceCount>1&&(b+=", alias"+ ++w+"="+v,_.children[0]="alias"+w)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var k=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&k.push("blockParams"),this.useDepths&&k.push("depths");var S=this.mergeSource(b);return f?(k.push(S),Function.apply(this,k)):this.source.wrap(["function(",k.join(","),`) {
596
592
  `,S,"}"])},mergeSource:function(f){var p=this.environment.isSimple,b=!this.forceBuffer,x=void 0,w=void 0,k=void 0,S=void 0;return this.source.each(function(v){v.appendToBuffer?(k?v.prepend(" + "):k=v,S=v):(k&&(w?k.prepend("buffer += "):x=!0,S.add(";"),k=S=void 0),w=!0,p||(b=!1))}),b?k?(k.prepend("return "),S.add(";")):w||this.source.push('return "";'):(f+=", buffer = "+(x?"":this.initializeBuffer()),k?(k.prepend("return buffer + "),S.add(";")):this.source.push("return buffer;")),f&&this.source.prepend("var "+f.substring(2)+(x?"":`;
597
593
  `)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
598
594
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -601,10 +597,10 @@ Expecting `+P.join(", ")+", got '"+(this.terminals_[S]||S)+"'":M="Parse error on
601
597
  }
602
598
  return undefined
603
599
  }
604
- `.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 w=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(f[w++])):this.pushContext(),this.resolvePath("context",f,w,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,w){var k=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&w,this,p,b,f));return}for(var S=p.length,v=function(y){k.replaceStack(function(A){var I=k.nameLookup(A,p[y],f);return x?[" && ",I]:[" != null ? ",I," : ",A]})},_=b;_<S;_++)v(_)},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(),w=this.setupHelper(f,p),k=[];b&&k.push(w.name),k.push(x),this.options.strict||k.push(this.aliasable("container.hooks.helperMissing"));var S=["(",this.itemsSeparatedBy(k,"||"),")"],v=this.source.functionCall(S,"call",w.callParams);this.push(v)},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),w=this.lastHelper=this.nameLookup("helpers",f,"helper"),k=["(","(helper = ",w," || ",b,")"];this.options.strict||(k[0]="(helper = ",k.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",k,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(f,p,b){var x=[],w=this.setupParams(p,1,x);f&&(p=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",f?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(f){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 k=this.hash;b&&(k.contexts[f]=b),x&&(k.types[f]=x),w&&(k.ids[f]=w),k.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:c,compileChildren:function(f,p){for(var b=f.children,x=void 0,w=void 0,k=0,S=b.length;k<S;k++){x=b[k],w=new this.compiler;var v=this.matchExistingProgram(x);if(v==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=v.index,x.name="program"+v.index,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.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 u||(f=this.source.wrap(f)),this.inlineStack.push(f),f},pushStackLiteral:function(f){this.push(new u(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,w=void 0;if(!this.isInline())throw new a.default("replaceStack on non-inline");var k=this.popStack(!0);if(k instanceof u)b=[k.value],p=["(",b],w=!0;else{x=!0;var S=this.incrStack();p=["((",this.push(S)," = ",k,")"],b=this.topStack()}var v=f.call(this,b);w||this.popStack(),x&&this.stackSlot--,this.push(p.concat(v,")"))},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 u)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(f){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!f&&b instanceof u)return b.value;if(!p){if(!this.stackSlot)throw new a.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 u?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=[],w=this.setupHelperArgs(p,f,x,b),k=this.nameLookup("helpers",p,"helper"),S=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:w,name:k,callParams:[S].concat(x)}},setupParams:function(f,p,b){var x={},w=[],k=[],S=[],v=!b,_=void 0;v&&(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(),A=this.popStack();(A||y)&&(x.fn=A||"container.noop",x.inverse=y||"container.noop");for(var I=p;I--;)_=this.popStack(),b[I]=_,this.trackIds&&(S[I]=this.popStack()),this.stringParams&&(k[I]=this.popStack(),w[I]=this.popStack());return v&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(S)),this.stringParams&&(x.types=this.source.generateArray(k),x.contexts=this.source.generateArray(w)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(f,p,b,x){var w=this.setupParams(f,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(" "),f=c.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)f[d[p]]=!0}(),c.isValidJavaScriptVariableName=function(d){return!c.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function h(d,f,p,b,x){var w=f.popStack(),k=p.length;d&&k--;for(var S=b;S<k;S++)w=f.nameLookup(w,p[S],x);return d?[f.aliasable("container.strict"),"(",w,", ",f.quotedString(p[k]),", ",JSON.stringify(f.source.currentLocation)," )"]:w}t.default=c,e.exports=t.default})(Ya,Ya.exports);var yA=Ya.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}var r=HC,o=n(r),a=Wu,i=n(a),l=lr,s=sr,u=yA,c=n(u),h=Uu,d=n(h),f=Gu,p=n(f),b=o.default.create;function x(){var k=b();return k.compile=function(S,v){return s.compile(S,v,k)},k.precompile=function(S,v){return s.precompile(S,v,k)},k.AST=i.default,k.Compiler=s.Compiler,k.JavaScriptCompiler=c.default,k.Parser=l.parser,k.parse=l.parse,k.parseWithoutProcessing=l.parseWithoutProcessing,k}var w=x();w.create=x,p.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(Aa,Aa.exports);var IA=Aa.exports;const RA=iu(IA);function eo(e,t){const n=[],r=new Set,o=a=>{var l,s,u,c,h,d,f,p,b,x;if(r.has(a)||!e[a])return;r.add(a),n.push(a);const i=e[a];switch(i.type){case"Container":case"ButtonGroup":(((l=i.data.props)==null?void 0:l.childrenIds)||[]).forEach(o);break;case"ColumnsContainer":case"FlexColumns":(((s=i.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Grid":(((u=i.data.props)==null?void 0:u.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Accordion":(((c=i.data.props)==null?void 0:c.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(o),(w.contentChildrenIds||[]).forEach(o)});break;case"TabsBlock":case"Carousel":case"Marquee":(((h=i.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"Pagination":(((d=i.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o)),(((f=i.data.props)==null?void 0:f.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"PricingAccordion":(((p=i.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(o),(w.detailChildrenIds||[]).forEach(o)});break;case"MenuPicker":(((b=i.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(o),(((x=i.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(o);break;case"EmailLayout":(i.data.childrenIds||[]).forEach(o);break}};return o(t),n}const to="relative",tr="24h",TA=864e5;function Ni(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function Ls(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function NA(e,t){const n=Ni(e);if(!n)return"";const r=(t==null?void 0:t.now)??new Date,o=t==null?void 0:t.locale,a=Math.round((Ls(n).getTime()-Ls(r).getTime())/TA);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(o,{weekday:"short"});const i=n.getFullYear()===r.getFullYear();return n.toLocaleDateString(o,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function oa(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`}}const EA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],MA=["January","February","March","April","May","June","July","August","September","October","November","December"],PA=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function qn(e,t=2){const n=String(Math.abs(e));return n.length>=t?n:"0".repeat(t-n.length)+n}function Xu(e,t){const r=new Intl.DateTimeFormat("en-US",{timeZone:t||void 0,era:"short",year:"numeric",month:"numeric",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hourCycle:"h23"}).formatToParts(e),o=u=>{var c;return((c=r.find(h=>h.type===u))==null?void 0:c.value)??""},a=o("era"),i=Number(o("year")),l=a==="BC"||a==="B"?1-i:i,s=o("weekday");return{year:l,month:Number(o("month"))-1,day:Number(o("day")),weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].indexOf(s),hour:Number(o("hour"))%24,minute:Number(o("minute"))}}function OA(e){const t=String(e);return t.length>=4?t:"0".repeat(4-t.length)+t}function Ja(e,t=to,n){if(t==="relative")return NA(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const r=Ni(e);if(!r)return"";const{year:o,month:a,day:i,weekday:l}=Xu(r,n==null?void 0:n.tz),s=EA[a],u=OA(o),c=qn(a+1),h=qn(i);switch(t){case"do-mmm-yyyy":return`${oa(i)} ${s} ${u}`;case"mmm-d-yyyy":return`${s} ${i}, ${u}`;case"d-mmm-yyyy":return`${i} ${s} ${u}`;case"dd-mm-yyyy":return`${h}/${c}/${u}`;case"mm-dd-yyyy":return`${c}/${h}/${u}`;case"yyyy-mm-dd":return`${u}-${c}-${h}`;case"do-mmm":return`${oa(i)} ${s}`;case"full":return`${PA[l]}, ${i} ${MA[a]} ${u}`;default:return`${oa(i)} ${s} ${u}`}}function no(e,t=tr,n){const r=Ni(e);if(!r)return"";const{hour:o,minute:a}=Xu(r,n==null?void 0:n.tz);return t==="12h"?`${o%12===0?12:o%12}:${qn(a)} ${o<12?"AM":"PM"}`:`${qn(o)}:${qn(a)}`}function Qu(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const r=e;for(const o of t){if((o==null?void 0:o.type)!=="array"||!o.sourceBlockId)continue;const a=Array.isArray(o.value)?o.value:[];a.forEach((i,l)=>{if(l!==0)return;const s=o.sourceBlockId;if(!(!s||!r[s]))for(const u of eo(r,s))n.set(u,i||{})}),a.forEach((i,l)=>{var u;if(l===0)return;const s=(u=o.rowIds)==null?void 0:u[l-1];if(!(!s||!r[s]))for(const c of eo(r,s))n.set(c,i||{})})}return n}const LA={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function zA(e){return e?LA[e]:void 0}const Xa=RA.create();Xa.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new Xa.SafeString(`{{${t.name}}}`)});const zs=new Map;function BA(e){let t=zs.get(e);return t||(t=Xa.compile(e,{noEscape:!0,strict:!1}),zs.set(e,t)),t}const Bs=new WeakMap;function ed(e){const t=Bs.get(e);if(t)return t;const n=jA(e);return Bs.set(e,n),n}function jA(e){const t={};for(const n of e)if(!(!n||!n.id)){if(n.type==="array"){if(!Array.isArray(n.value)||n.value.length===0)continue;const r=new Map;for(const a of n.itemFields??[])((a==null?void 0:a.type)==="date"||(a==null?void 0:a.type)==="time"||(a==null?void 0:a.type)==="datetime")&&a.id&&r.set(a.id,a);const o=n.value.map(a=>{const i={};if(a&&typeof a=="object")for(const l of Object.keys(a)){const s=a[l];if(s==null||s==="")continue;const u=r.get(l);if((u==null?void 0:u.type)==="datetime"){const c=Lr(l,String(s),r,"date"),h=Lr(l,String(s),r,"time"),d={date:c,time:h};Object.defineProperty(d,"toString",{value:()=>[c,h].filter(Boolean).join(" "),enumerable:!1}),i[l]=d}else i[l]=u?Lr(l,String(s),r):s}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}if(n.type==="datetime"){const r=n.id,o=typeof n.value=="string"?n.value:"";if(!o){const u={date:`{{${r}.date}}`,time:`{{${r}.time}}`};Object.defineProperty(u,"toString",{value:()=>`{{${r}}}`,enumerable:!1}),t[r]=u;continue}const a=n.dateFormat??to,i=a==="relative"?ua(r,o):Ja(o,a,{tz:n.dateTz}),l=no(o,n.timeFormat??tr,{tz:n.dateTz}),s={date:i,time:l};Object.defineProperty(s,"toString",{value:()=>[i,l].filter(Boolean).join(" "),enumerable:!1}),t[r]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const r=n.dateFormat??to;t[n.id]=r==="relative"?ua(n.id,n.value):Ja(n.value,r,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=no(n.value,n.timeFormat??tr,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function Ei(e){var r,o;const t=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;if(Array.isArray(t))return t;const n=e==null?void 0:e.formFields;return Array.isArray(n)?n:[]}const DA=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function FA(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let r=0;return{masked:e.replace(DA,(a,i)=>{const l=t[i];if(Array.isArray(l)&&l.length>0)return a;const u="HB_EACH_"+r+++"_";return n.set(u,a),u}),restore:n}}const td=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function HA(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 r of n.itemFields)((r==null?void 0:r.type)==="date"||(r==null?void 0:r.type)==="time"||(r==null?void 0:r.type)==="datetime")&&r.id&&!t.has(r.id)&&t.set(r.id,r);return t}function js(e,t,n){const r=n.dateFormat??to;return r==="relative"?ua(e,t):Ja(t,r,{tz:n.dateTz})}function Lr(e,t,n,r){const o=n.get(e);if(!o)return t;if(o.type==="time")return no(t,o.timeFormat??tr,{tz:o.dateTz});if(o.type==="datetime"){const a=no(t,o.timeFormat??tr,{tz:o.dateTz});if(r==="time")return a;const i=js(e,t,o);return r==="date"?i:[i,a].filter(Boolean).join(" ")}return js(e,t,o)}function GA(e,t,n){return e.replace(td,(r,o,a)=>{const i=t==null?void 0:t[o];return i==null||i===""?r:n?Lr(o,String(i),n,a):String(i)})}function pn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let r=e;if(n&&(r=GA(r,n,HA(t)),r.indexOf("{{")===-1)||!t||t.length===0)return r;try{const o=t&&t.length>0?ed(t):{},{masked:a,restore:i}=FA(r,o),l=new Map;let s=a;if(a.indexOf("{{")!==-1&&a.indexOf("#each")===-1){let c=0;s=a.replace(td,h=>{const d="HB_THIS_"+c+++"_";return l.set(d,h),d})}let u=BA(s)(o);for(const[c,h]of l)u=u.split(c).join(h);if(i.size>0)for(const[c,h]of i)u=u.split(c).join(h);return u}catch{return r}}function nd(e,t,n,r){var s,u,c,h,d,f,p,b,x,w,k;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const S=(u=(s=e.data)==null?void 0:s.props)==null?void 0:u.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const A=_==null?void 0:_.label;if(typeof A!="string"||A.indexOf("{{")===-1)return;const I=Array.isArray(_==null?void 0:_.contentChildrenIds)?_.contentChildrenIds[0]:void 0,R=I&&r?r.get(I):n,N=pn(A,t,R??null);N!==A&&(v||(v=S.map(P=>({...P}))),v[y]={...v[y],label:N})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="List"){const S=(h=(c=e.data)==null?void 0:c.props)==null?void 0:h.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const A=_==null?void 0:_.text;if(typeof A!="string"||A.indexOf("{{")===-1)return;const I=pn(A,t,n);I!==A&&(v||(v=S.map(R=>({...R}))),v[y]={...v[y],text:I})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Breadcrumb"){const S=(f=(d=e.data)==null?void 0:d.props)==null?void 0:f.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{for(const A of["label","href"]){const I=_==null?void 0:_[A];if(typeof I!="string"||I.indexOf("{{")===-1)continue;const R=pn(I,t,n);R!==I&&(v||(v=S.map(N=>({...N}))),v[y]={...v[y],[A]:R})}}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Table"){const S=(b=(p=e.data)==null?void 0:p.props)==null?void 0:b.cells;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{if(typeof _!="string"||_.indexOf("{{")===-1)return;const A=pn(_,t,n);A!==_&&(v||(v=[...S]),v[y]=A)}),v?{...e,data:{...e.data,props:{...e.data.props,cells:v}}}:e}let o=e;if(e.type==="Container"){const S=(w=(x=e.data)==null?void 0:x.style)==null?void 0:w.backgroundImage;if(typeof S=="string"&&S.indexOf("{{")!==-1){const v=pn(S,t,n);v!==S&&(o={...o,data:{...o.data,style:{...o.data.style,backgroundImage:v}}})}}const a=zA(o.type);if(!a)return o;const i=(k=o.data)==null?void 0:k.props;if(!i)return o;let l=null;for(const S of a){const v=i[S];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const _=pn(v,t,n);_!==v&&(l||(l={...i}),l[S]=_)}return l?{...o,data:{...o.data,props:l}}:o}function Mi(e,t){var l;if(!e)return e;const n=t??Ei(e);let r={...e},o=!1;const a=Qu(e,n);if(n&&n.length>0&&(Object.keys(ed(n)).length>0||a.size>0))for(const s of Object.keys(r)){const u=r[s],c=nd(u,n,a.get(s),a);c!==u&&(r[s]=c,o=!0)}const i=r.root;if(((l=i==null?void 0:i.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...u}=i.data;r.root={...i,data:u},o=!0}return o?r:e}const Ds=Object.fromEntries(bt.map(e=>[e.key,e.value]));function nn(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function Pi(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function WA(e,t){const n=e.borderColor??(t==null?void 0:t.borderColor)??null;if(!n)return"";if(n==="transparent")return"border:none!important";const r=nn(e.borderWidth)?e.borderWidth:nn(t==null?void 0:t.borderWidth)?t==null?void 0:t.borderWidth:null;return Pi(n)?`padding:${(r==null?void 0:r.top)??0}px ${(r==null?void 0:r.right)??0}px ${(r==null?void 0:r.bottom)??0}px ${(r==null?void 0:r.left)??0}px!important`:[`border-top:${(r==null?void 0:r.top)??0}px solid ${n}!important`,`border-right:${(r==null?void 0:r.right)??0}px solid ${n}!important`,`border-bottom:${(r==null?void 0:r.bottom)??0}px solid ${n}!important`,`border-left:${(r==null?void 0:r.left)??0}px solid ${n}!important`].join(";")}function UA(e,t,n){const r=t.borderColor??(n==null?void 0:n.borderColor)??null;if(!r||!Pi(r))return"";const o=t.padding;if(!nn(o))return"";const a=`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`;return`${e}>.container-block>.container-block-inner{${a}}`}function ZA(e,t){const n=[],r=e.borderColor!==void 0||e.borderWidth!==void 0,o=Pi((t==null?void 0:t.borderColor)??"");if(r||e.padding!==void 0&&o){const i=WA(e,t);i&&n.push(i)}const a=e.backgroundSize==="none";a&&n.push("background-image:none!important");for(const i of Object.keys(e)){const l=e[i];if(l!=null)switch(i){case"borderColor":case"borderWidth":break;case"fontSize":n.push(`font-size:${l}px!important`);break;case"fontFamily":Ds[l]&&n.push(`font-family:${Ds[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":nn(l)&&!o&&n.push(`padding:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"margin":nn(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&&!a?`background-image:url("${String(l).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":a||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:u=0,bottomRight:c=0,bottomLeft:h=0}=l;n.push(`border-radius:${s}px ${u}px ${c}px ${h}px!important`)}else n.push(`border-radius:${l}!important`);break}}return n.join(";")}function qA(e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(r!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${r}px!important`);break;case"height":{const o=typeof r=="number"?`${r}px`:r;t.push(`height:${o}!important`),t.push(`--ahd-iframe-height:${o}`),t.push(`--ahd-calendly-height:${o}`),t.push(`--ahd-demo-height:${o}`);break}case"width":{const o=typeof r=="number"?`${r}px`:r;t.push(`--ahd-iframe-width:${o}`),t.push(`--ahd-calendly-width:${o}`),t.push(`--ahd-demo-width:${o}`);break}case"blockPadding":nn(r)&&t.push(`padding:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break;case"blockMargin":nn(r)&&t.push(`margin:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break}}return t.join(";")}function VA(e){return`${e}>.text-block>div,${e}>.heading-block-wrapper>.heading-block`}function YA(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 Fs(e,t){if(!t)return null;const n=e??{},r={};for(const o of Object.keys(t)){const a=t[o],i=n[o],l=!!a&&typeof a=="object"&&!Array.isArray(a)&&!!i&&typeof i=="object"&&!Array.isArray(i);r[o]=l?{...i,...a}:a}return r}function KA(e,t,n,r){if(!t)return"";const o=`#${e}`,a=XA(o),i=VA(o),l=[],s=(c,h)=>{var S;const d=Fs(n,h==null?void 0:h.style),f=Fs(r,h==null?void 0:h.props),p=[d?ZA(d,n):"",f?qA(f):""].filter(Boolean).join(";"),b=d?UA(o,d,n):"",x=(S=h==null?void 0:h.style)==null?void 0:S.textAlign,w=x?`${o}>.image-block,${o}>.logo-block{justify-content:${x==="center"?"center":x==="right"?"flex-end":"flex-start"}!important}`:"",k=[p?`${a}{${p}}`:"",w,b,h!=null&&h.hidden?`${o}{display:none}`:""].filter(Boolean).join("");if(k&&l.push(`${c}{${k}}`),h!=null&&h.style&&"lineClamp"in h.style){const v=YA(d==null?void 0:d.lineClamp);v&&l.push(`${c}{${i}{${v}}}`)}};s(on,t.tablet),s(`@media (max-width:${Ve}px)`,t.mobile);const u=ey(e,t,n,r);return u&&l.push(u),l.join("")}function JA(e,t){return t?e?{...e,...t}:t:e}function Qa(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function Hs(e,t,n){const r=Qa(e,t),o=Qa(n==null?void 0:n.style,n==null?void 0:n.props);return JA(r,o)}function aa(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 XA(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 QA(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 ey(e,t,n,r){if(!t)return"";const o=`#${e}`,a=QA(o),i=Qa(n,r),l=aa(i),s=aa(Hs(n,r,t.tablet)),u=aa(Hs(n,r,t.mobile));return s===l&&u===l?"":`
605
- ${on} { ${a} { width: ${s} !important; max-width: 100% !important; } }
600
+ `.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 w=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(f[w++])):this.pushContext(),this.resolvePath("context",f,w,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,w){var k=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&w,this,p,b,f));return}for(var S=p.length,v=function(y){k.replaceStack(function(C){var I=k.nameLookup(C,p[y],f);return x?[" && ",I]:[" != null ? ",I," : ",C]})},_=b;_<S;_++)v(_)},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(),w=this.setupHelper(f,p),k=[];b&&k.push(w.name),k.push(x),this.options.strict||k.push(this.aliasable("container.hooks.helperMissing"));var S=["(",this.itemsSeparatedBy(k,"||"),")"],v=this.source.functionCall(S,"call",w.callParams);this.push(v)},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),w=this.lastHelper=this.nameLookup("helpers",f,"helper"),k=["(","(helper = ",w," || ",b,")"];this.options.strict||(k[0]="(helper = ",k.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",k,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(f,p,b){var x=[],w=this.setupParams(p,1,x);f&&(p=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",f?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(f){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 k=this.hash;b&&(k.contexts[f]=b),x&&(k.types[f]=x),w&&(k.ids[f]=w),k.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:c,compileChildren:function(f,p){for(var b=f.children,x=void 0,w=void 0,k=0,S=b.length;k<S;k++){x=b[k],w=new this.compiler;var v=this.matchExistingProgram(x);if(v==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=v.index,x.name="program"+v.index,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.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 u||(f=this.source.wrap(f)),this.inlineStack.push(f),f},pushStackLiteral:function(f){this.push(new u(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,w=void 0;if(!this.isInline())throw new a.default("replaceStack on non-inline");var k=this.popStack(!0);if(k instanceof u)b=[k.value],p=["(",b],w=!0;else{x=!0;var S=this.incrStack();p=["((",this.push(S)," = ",k,")"],b=this.topStack()}var v=f.call(this,b);w||this.popStack(),x&&this.stackSlot--,this.push(p.concat(v,")"))},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 u)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(f){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!f&&b instanceof u)return b.value;if(!p){if(!this.stackSlot)throw new a.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 u?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=[],w=this.setupHelperArgs(p,f,x,b),k=this.nameLookup("helpers",p,"helper"),S=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:w,name:k,callParams:[S].concat(x)}},setupParams:function(f,p,b){var x={},w=[],k=[],S=[],v=!b,_=void 0;v&&(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(),C=this.popStack();(C||y)&&(x.fn=C||"container.noop",x.inverse=y||"container.noop");for(var I=p;I--;)_=this.popStack(),b[I]=_,this.trackIds&&(S[I]=this.popStack()),this.stringParams&&(k[I]=this.popStack(),w[I]=this.popStack());return v&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(S)),this.stringParams&&(x.types=this.source.generateArray(k),x.contexts=this.source.generateArray(w)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(f,p,b,x){var w=this.setupParams(f,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(" "),f=c.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)f[d[p]]=!0}(),c.isValidJavaScriptVariableName=function(d){return!c.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function h(d,f,p,b,x){var w=f.popStack(),k=p.length;d&&k--;for(var S=b;S<k;S++)w=f.nameLookup(w,p[S],x);return d?[f.aliasable("container.strict"),"(",w,", ",f.quotedString(p[k]),", ",JSON.stringify(f.source.currentLocation)," )"]:w}t.default=c,e.exports=t.default})(Qa,Qa.exports);var jA=Qa.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}var r=QC,o=n(r),a=Yu,i=n(a),l=cr,s=ur,u=jA,c=n(u),h=Ku,d=n(h),f=Vu,p=n(f),b=o.default.create;function x(){var k=b();return k.compile=function(S,v){return s.compile(S,v,k)},k.precompile=function(S,v){return s.precompile(S,v,k)},k.AST=i.default,k.Compiler=s.Compiler,k.JavaScriptCompiler=c.default,k.Parser=l.parser,k.parse=l.parse,k.parseWithoutProcessing=l.parseWithoutProcessing,k}var w=x();w.create=x,p.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(Ta,Ta.exports);var BA=Ta.exports;const DA=du(BA);function oo(e,t){const n=[],r=new Set,o=a=>{var l,s,u,c,h,d,f,p,b,x;if(r.has(a)||!e[a])return;r.add(a),n.push(a);const i=e[a];switch(i.type){case"Container":case"ButtonGroup":(((l=i.data.props)==null?void 0:l.childrenIds)||[]).forEach(o);break;case"ColumnsContainer":case"FlexColumns":(((s=i.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Grid":(((u=i.data.props)==null?void 0:u.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Accordion":(((c=i.data.props)==null?void 0:c.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(o),(w.contentChildrenIds||[]).forEach(o)});break;case"TabsBlock":case"Carousel":case"Marquee":(((h=i.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"Pagination":(((d=i.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o)),(((f=i.data.props)==null?void 0:f.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"PricingAccordion":(((p=i.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(o),(w.detailChildrenIds||[]).forEach(o)});break;case"MenuPicker":(((b=i.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(o),(((x=i.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(o);break;case"EmailLayout":(i.data.childrenIds||[]).forEach(o);break}};return o(t),n}const ao="relative",rr="24h",FA=864e5;function Oi(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function Fs(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function HA(e,t){const n=Oi(e);if(!n)return"";const r=(t==null?void 0:t.now)??new Date,o=t==null?void 0:t.locale,a=Math.round((Fs(n).getTime()-Fs(r).getTime())/FA);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(o,{weekday:"short"});const i=n.getFullYear()===r.getFullYear();return n.toLocaleDateString(o,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function sa(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`}}const GA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],WA=["January","February","March","April","May","June","July","August","September","October","November","December"],UA=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Yn(e,t=2){const n=String(Math.abs(e));return n.length>=t?n:"0".repeat(t-n.length)+n}function rd(e,t){const r=new Intl.DateTimeFormat("en-US",{timeZone:t||void 0,era:"short",year:"numeric",month:"numeric",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hourCycle:"h23"}).formatToParts(e),o=u=>{var c;return((c=r.find(h=>h.type===u))==null?void 0:c.value)??""},a=o("era"),i=Number(o("year")),l=a==="BC"||a==="B"?1-i:i,s=o("weekday");return{year:l,month:Number(o("month"))-1,day:Number(o("day")),weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].indexOf(s),hour:Number(o("hour"))%24,minute:Number(o("minute"))}}function ZA(e){const t=String(e);return t.length>=4?t:"0".repeat(4-t.length)+t}function ti(e,t=ao,n){if(t==="relative")return HA(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const r=Oi(e);if(!r)return"";const{year:o,month:a,day:i,weekday:l}=rd(r,n==null?void 0:n.tz),s=GA[a],u=ZA(o),c=Yn(a+1),h=Yn(i);switch(t){case"do-mmm-yyyy":return`${sa(i)} ${s} ${u}`;case"mmm-d-yyyy":return`${s} ${i}, ${u}`;case"d-mmm-yyyy":return`${i} ${s} ${u}`;case"dd-mm-yyyy":return`${h}/${c}/${u}`;case"mm-dd-yyyy":return`${c}/${h}/${u}`;case"yyyy-mm-dd":return`${u}-${c}-${h}`;case"do-mmm":return`${sa(i)} ${s}`;case"full":return`${UA[l]}, ${i} ${WA[a]} ${u}`;default:return`${sa(i)} ${s} ${u}`}}function io(e,t=rr,n){const r=Oi(e);if(!r)return"";const{hour:o,minute:a}=rd(r,n==null?void 0:n.tz);return t==="12h"?`${o%12===0?12:o%12}:${Yn(a)} ${o<12?"AM":"PM"}`:`${Yn(o)}:${Yn(a)}`}function od(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const r=e;for(const o of t){if((o==null?void 0:o.type)!=="array"||!o.sourceBlockId)continue;const a=Array.isArray(o.value)?o.value:[];a.forEach((i,l)=>{if(l!==0)return;const s=o.sourceBlockId;if(!(!s||!r[s]))for(const u of oo(r,s))n.set(u,i||{})}),a.forEach((i,l)=>{var u;if(l===0)return;const s=(u=o.rowIds)==null?void 0:u[l-1];if(!(!s||!r[s]))for(const c of oo(r,s))n.set(c,i||{})})}return n}const qA={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function VA(e){return e?qA[e]:void 0}const ni=DA.create();ni.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new ni.SafeString(`{{${t.name}}}`)});const Hs=new Map;function YA(e){let t=Hs.get(e);return t||(t=ni.compile(e,{noEscape:!0,strict:!1}),Hs.set(e,t)),t}const Gs=new WeakMap;function ad(e){const t=Gs.get(e);if(t)return t;const n=KA(e);return Gs.set(e,n),n}function KA(e){const t={};for(const n of e)if(!(!n||!n.id)){if(n.type==="array"){if(!Array.isArray(n.value)||n.value.length===0)continue;const r=new Map;for(const a of n.itemFields??[])((a==null?void 0:a.type)==="date"||(a==null?void 0:a.type)==="time"||(a==null?void 0:a.type)==="datetime")&&a.id&&r.set(a.id,a);const o=n.value.map(a=>{const i={};if(a&&typeof a=="object")for(const l of Object.keys(a)){const s=a[l];if(s==null||s==="")continue;const u=r.get(l);if((u==null?void 0:u.type)==="datetime"){const c=Dr(l,String(s),r,"date"),h=Dr(l,String(s),r,"time"),d={date:c,time:h};Object.defineProperty(d,"toString",{value:()=>[c,h].filter(Boolean).join(" "),enumerable:!1}),i[l]=d}else i[l]=u?Dr(l,String(s),r):s}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}if(n.type==="datetime"){const r=n.id,o=typeof n.value=="string"?n.value:"";if(!o){const u={date:`{{${r}.date}}`,time:`{{${r}.time}}`};Object.defineProperty(u,"toString",{value:()=>`{{${r}}}`,enumerable:!1}),t[r]=u;continue}const a=n.dateFormat??ao,i=a==="relative"?pa(r,o):ti(o,a,{tz:n.dateTz}),l=io(o,n.timeFormat??rr,{tz:n.dateTz}),s={date:i,time:l};Object.defineProperty(s,"toString",{value:()=>[i,l].filter(Boolean).join(" "),enumerable:!1}),t[r]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const r=n.dateFormat??ao;t[n.id]=r==="relative"?pa(n.id,n.value):ti(n.value,r,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=io(n.value,n.timeFormat??rr,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function Li(e){var r,o;const t=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;if(Array.isArray(t))return t;const n=e==null?void 0:e.formFields;return Array.isArray(n)?n:[]}const JA=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function XA(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let r=0;return{masked:e.replace(JA,(a,i)=>{const l=t[i];if(Array.isArray(l)&&l.length>0)return a;const u="HB_EACH_"+r+++"_";return n.set(u,a),u}),restore:n}}const id=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function QA(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 r of n.itemFields)((r==null?void 0:r.type)==="date"||(r==null?void 0:r.type)==="time"||(r==null?void 0:r.type)==="datetime")&&r.id&&!t.has(r.id)&&t.set(r.id,r);return t}function Ws(e,t,n){const r=n.dateFormat??ao;return r==="relative"?pa(e,t):ti(t,r,{tz:n.dateTz})}function Dr(e,t,n,r){const o=n.get(e);if(!o)return t;if(o.type==="time")return io(t,o.timeFormat??rr,{tz:o.dateTz});if(o.type==="datetime"){const a=io(t,o.timeFormat??rr,{tz:o.dateTz});if(r==="time")return a;const i=Ws(e,t,o);return r==="date"?i:[i,a].filter(Boolean).join(" ")}return Ws(e,t,o)}function ey(e,t,n){return e.replace(id,(r,o,a)=>{const i=t==null?void 0:t[o];return i==null||i===""?r:n?Dr(o,String(i),n,a):String(i)})}function bn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let r=e;if(n&&(r=ey(r,n,QA(t)),r.indexOf("{{")===-1)||!t||t.length===0)return r;try{const o=t&&t.length>0?ad(t):{},{masked:a,restore:i}=XA(r,o),l=new Map;let s=a;if(a.indexOf("{{")!==-1&&a.indexOf("#each")===-1){let c=0;s=a.replace(id,h=>{const d="HB_THIS_"+c+++"_";return l.set(d,h),d})}let u=YA(s)(o);for(const[c,h]of l)u=u.split(c).join(h);if(i.size>0)for(const[c,h]of i)u=u.split(c).join(h);return u}catch{return r}}function ld(e,t,n,r){var s,u,c,h,d,f,p,b,x,w,k;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const S=(u=(s=e.data)==null?void 0:s.props)==null?void 0:u.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.label;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=Array.isArray(_==null?void 0:_.contentChildrenIds)?_.contentChildrenIds[0]:void 0,R=I&&r?r.get(I):n,E=bn(C,t,R??null);E!==C&&(v||(v=S.map(O=>({...O}))),v[y]={...v[y],label:E})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="List"){const S=(h=(c=e.data)==null?void 0:c.props)==null?void 0:h.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.text;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=bn(C,t,n);I!==C&&(v||(v=S.map(R=>({...R}))),v[y]={...v[y],text:I})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Breadcrumb"){const S=(f=(d=e.data)==null?void 0:d.props)==null?void 0:f.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{for(const C of["label","href"]){const I=_==null?void 0:_[C];if(typeof I!="string"||I.indexOf("{{")===-1)continue;const R=bn(I,t,n);R!==I&&(v||(v=S.map(E=>({...E}))),v[y]={...v[y],[C]:R})}}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Table"){const S=(b=(p=e.data)==null?void 0:p.props)==null?void 0:b.cells;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{if(typeof _!="string"||_.indexOf("{{")===-1)return;const C=bn(_,t,n);C!==_&&(v||(v=[...S]),v[y]=C)}),v?{...e,data:{...e.data,props:{...e.data.props,cells:v}}}:e}let o=e;if(e.type==="Container"){const S=(w=(x=e.data)==null?void 0:x.style)==null?void 0:w.backgroundImage;if(typeof S=="string"&&S.indexOf("{{")!==-1){const v=bn(S,t,n);v!==S&&(o={...o,data:{...o.data,style:{...o.data.style,backgroundImage:v}}})}}const a=VA(o.type);if(!a)return o;const i=(k=o.data)==null?void 0:k.props;if(!i)return o;let l=null;for(const S of a){const v=i[S];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const _=bn(v,t,n);_!==v&&(l||(l={...i}),l[S]=_)}return l?{...o,data:{...o.data,props:l}}:o}function zi(e,t){var l;if(!e)return e;const n=t??Li(e);let r={...e},o=!1;const a=od(e,n);if(n&&n.length>0&&(Object.keys(ad(n)).length>0||a.size>0))for(const s of Object.keys(r)){const u=r[s],c=ld(u,n,a.get(s),a);c!==u&&(r[s]=c,o=!0)}const i=r.root;if(((l=i==null?void 0:i.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...u}=i.data;r.root={...i,data:u},o=!0}return o?r:e}const Us=Object.fromEntries(bt.map(e=>[e.key,e.value]));function on(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function ji(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function ty(e,t){const n=e.borderColor??(t==null?void 0:t.borderColor)??null;if(!n)return"";if(n==="transparent")return"border:none!important";const r=on(e.borderWidth)?e.borderWidth:on(t==null?void 0:t.borderWidth)?t==null?void 0:t.borderWidth:null;return ji(n)?`padding:${(r==null?void 0:r.top)??0}px ${(r==null?void 0:r.right)??0}px ${(r==null?void 0:r.bottom)??0}px ${(r==null?void 0:r.left)??0}px!important`:[`border-top:${(r==null?void 0:r.top)??0}px solid ${n}!important`,`border-right:${(r==null?void 0:r.right)??0}px solid ${n}!important`,`border-bottom:${(r==null?void 0:r.bottom)??0}px solid ${n}!important`,`border-left:${(r==null?void 0:r.left)??0}px solid ${n}!important`].join(";")}function ny(e,t,n){const r=t.borderColor??(n==null?void 0:n.borderColor)??null;if(!r||!ji(r))return"";const o=t.padding;if(!on(o))return"";const a=`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`;return`${e}>.container-block>.container-block-inner{${a}}`}function ry(e,t){const n=[],r=e.borderColor!==void 0||e.borderWidth!==void 0,o=ji((t==null?void 0:t.borderColor)??"");if(r||e.padding!==void 0&&o){const i=ty(e,t);i&&n.push(i)}const a=e.backgroundSize==="none";a&&n.push("background-image:none!important");for(const i of Object.keys(e)){const l=e[i];if(l!=null)switch(i){case"borderColor":case"borderWidth":break;case"fontSize":n.push(`font-size:${l}px!important`);break;case"fontFamily":Us[l]&&n.push(`font-family:${Us[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":on(l)&&!o&&n.push(`padding:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"margin":on(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&&!a?`background-image:url("${String(l).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":a||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:u=0,bottomRight:c=0,bottomLeft:h=0}=l;n.push(`border-radius:${s}px ${u}px ${c}px ${h}px!important`)}else n.push(`border-radius:${l}!important`);break}}return n.join(";")}function oy(e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(r!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${r}px!important`);break;case"height":{const o=typeof r=="number"?`${r}px`:r;t.push(`height:${o}!important`),t.push(`--ahd-iframe-height:${o}`),t.push(`--ahd-calendly-height:${o}`),t.push(`--ahd-demo-height:${o}`);break}case"width":{const o=typeof r=="number"?`${r}px`:r;t.push(`--ahd-iframe-width:${o}`),t.push(`--ahd-calendly-width:${o}`),t.push(`--ahd-demo-width:${o}`);break}case"blockPadding":on(r)&&t.push(`padding:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break;case"blockMargin":on(r)&&t.push(`margin:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break}}return t.join(";")}function ay(e){return`${e}>.text-block>div,${e}>.heading-block-wrapper>.heading-block`}function iy(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 Zs(e,t){if(!t)return null;const n=e??{},r={};for(const o of Object.keys(t)){const a=t[o],i=n[o],l=!!a&&typeof a=="object"&&!Array.isArray(a)&&!!i&&typeof i=="object"&&!Array.isArray(i);r[o]=l?{...i,...a}:a}return r}function ly(e,t,n,r){if(!t)return"";const o=`#${e}`,a=cy(o),i=ay(o),l=[],s=(c,h)=>{var S;const d=Zs(n,h==null?void 0:h.style),f=Zs(r,h==null?void 0:h.props),p=[d?ry(d,n):"",f?oy(f):""].filter(Boolean).join(";"),b=d?ny(o,d,n):"",x=(S=h==null?void 0:h.style)==null?void 0:S.textAlign,w=x?`${o}>.image-block,${o}>.logo-block{justify-content:${x==="center"?"center":x==="right"?"flex-end":"flex-start"}!important}`:"",k=[p?`${a}{${p}}`:"",w,b,h!=null&&h.hidden?`${o}{display:none}`:""].filter(Boolean).join("");if(k&&l.push(`${c}{${k}}`),h!=null&&h.style&&"lineClamp"in h.style){const v=iy(d==null?void 0:d.lineClamp);v&&l.push(`${c}{${i}{${v}}}`)}};s(ln,t.tablet),s(`@media (max-width:${Ve}px)`,t.mobile);const u=dy(e,t,n,r);return u&&l.push(u),l.join("")}function sy(e,t){return t?e?{...e,...t}:t:e}function ri(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function qs(e,t,n){const r=ri(e,t),o=ri(n==null?void 0:n.style,n==null?void 0:n.props);return sy(r,o)}function ca(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 cy(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 uy(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 dy(e,t,n,r){if(!t)return"";const o=`#${e}`,a=uy(o),i=ri(n,r),l=ca(i),s=ca(qs(n,r,t.tablet)),u=ca(qs(n,r,t.mobile));return s===l&&u===l?"":`
601
+ ${ln} { ${a} { width: ${s} !important; max-width: 100% !important; } }
606
602
  @media (max-width:${Ve}px) { ${a} { width: ${u} !important; max-width: 100% !important; } }
607
- `.trim()}const ty=e=>{var r,o;const t=!!((r=e==null?void 0:e.props)!=null&&r.decorative),n=((o=e==null?void 0:e.props)==null?void 0:o.alt)??"";return t?m.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:m.jsx(kl,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):m.jsx(kl,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},ny=({props:e})=>m.jsx("div",{"aria-hidden":"true",className:"spacer-block",style:{height:(e==null?void 0:e.height)??Nx.height}}),ry=vk,rd=V.createContext({}),Gs=V.createContext(!1),oy=typeof window<"u"?V.useLayoutEffect:V.useEffect;function od(e){var n,r;const t=(r=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:r.formFields;return Array.isArray(t)?t:[]}const Ws=new WeakMap;function ay(e){if(!e||typeof e!="object")return new Map;let t=Ws.get(e);return t||(t=Qu(e,od(e)),Ws.set(e,t)),t}const ad=V.createContext({});function iy(){return V.useContext(rd)}function ly(){return V.useContext(ad)}const id={ColumnsContainer:{schema:Yv,Component:Jv},FlexColumns:{schema:Xv,Component:a1},Grid:{schema:m1,Component:k1},ButtonGroup:{schema:ew,Component:tw},Container:{schema:H1,Component:eu},EmailLayout:{schema:Q1,Component:ry},Accordion:{schema:rw,Component:iw},PricingAccordion:{schema:sw,Component:uw},TabsBlock:{schema:fw,Component:kw},Carousel:{schema:Sw,Component:Aw},Pagination:{schema:Tw,Component:Bw},Rating:{schema:jw,Component:Gw},Progress:{schema:Zw,Component:Xw},Marquee:{schema:Qw,Component:fS},Timer:{schema:mS,Component:CS},Avatar:{schema:Sm,Component:ty},Button:{schema:Ib,Component:Rb},Divider:{schema:Bb,Component:jb},Heading:{schema:Kb,Component:Jb},Html:{schema:A0,Component:R0},Image:{schema:U0,Component:q0},Logo:{schema:cx,Component:dx},Video:{schema:Cx,Component:Rx},IFrame:{schema:bv,Component:kv},Calendly:{schema:$v,Component:Av},YouTubeUrl:{schema:uv,Component:hv},Spacer:{schema:Tx,Component:ny},SkipLink:{schema:u_,Component:Nu},AccessibilityTools:{schema:h_,Component:Ou},Stepper:{schema:Rk,Component:Tk},List:{schema:jk,Component:Fk},Text:{schema:rv,Component:av},Mdx:{schema:l2,Component:d2},QuillBlock:{schema:w2,Component:$2},DemoPicker:{schema:_2,Component:e=>m.jsx(A2,{...e})},MenuPicker:{schema:R2,Component:e=>m.jsx(U2,{...e})},Breadcrumb:{schema:K2,Component:o_},FormsPicker:{schema:a_,Component:e=>m.jsx(c_,{...e})},AppBannerPicker:{schema:b_,Component:e=>m.jsx(k_,{...e})},FaqPicker:{schema:w_,Component:e=>m.jsx(__,{...e})},Table:{schema:C_,Component:y_}},ld=Ev(id),sy=_n($(),ld),cy=Nv(id);function Me({id:e}){var _,y,A,I,R,N,P;const t=iy(),{staticRender:n,injectElementIds:r,mainBlockId:o,hoistedSkipLinkId:a,hoistedA11yToolsId:i}=ly(),l=t[e];if(a&&e===a&&(l==null?void 0:l.type)==="SkipLink"||i&&e===i&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=o&&e===o&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((_=l.data)==null?void 0:_.props)??{},elementId:"main-content"}}}:l,u=od(t),c=ay(t),h=c.get(e),d=nd(s,u,h,c),f=d,p=(f==null?void 0:f.type)==="Container"?m.jsx(eu,{...f.data,blockId:e}):m.jsx(cy,{...f});if(e==="root")return p;const b=!!((y=f==null?void 0:f.data)!=null&&y.hidden),x=n&&r?`ahd-${e}`:e,w=KA(x,(A=f==null?void 0:f.data)==null?void 0:A.responsive,(I=f==null?void 0:f.data)==null?void 0:I.style,(R=f==null?void 0:f.data)==null?void 0:R.props),S=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]).has(f==null?void 0:f.type)?(P=(N=f==null?void 0:f.data)==null?void 0:N.props)==null?void 0:P.animation:null,v=S&&S.type&&S.type!=="none"?{"data-animate-type":S.type,"data-animate-trigger":S.trigger??"load","data-animate-speed":S.speed??"medium","data-animate-delay":S.delay??0,...S.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{};return n&&r?m.jsxs("div",{id:x,className:"ahd-block-wrapper",style:b?{display:"none"}:void 0,...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]}):m.jsxs("div",{id:x,style:{scrollMarginTop:"80px",...b?{display:"none"}:null},...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]})}function nr({document:e,rootBlockId:t,staticRender:n,injectElementIds:r,isBanner:o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}){const s=V.useMemo(()=>({staticRender:!!n,injectElementIds:!!r,isBanner:!!o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}),[n,r,o,a,i,l]),u=V.useContext(Gs),c=V.useRef(null);return oy(()=>{n||u||c.current&&(hb(c.current),fb(c.current))},[n,u,e,t]),m.jsx("div",{ref:c,style:{display:"contents"},children:m.jsx(rd.Provider,{value:e,children:m.jsx(ad.Provider,{value:s,children:m.jsx(Gs.Provider,{value:!0,children:m.jsx(Me,{id:t})})})})})}function uy(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function dy(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function hy(e,t){const n=new Set;function r(o){var s,u,c,h;if(n.has(o))return;n.add(o);const a=e[o];if(!a)return;if(a.type==="Container"&&((u=(s=a.data)==null?void 0:s.props)==null?void 0:u.tag)==="main")return o;const i=((c=a.data)==null?void 0:c.props)??{},l=[];Array.isArray(i.childrenIds)&&l.push(i.childrenIds),Array.isArray((h=a.data)==null?void 0:h.childrenIds)&&l.push(a.data.childrenIds),Array.isArray(i.columns)&&i.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=r(f);if(p)return p}}return r(t)}const fy=()=>`<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,"&quot;")}">`,py=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),gy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),my=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),by=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Pagination"),xy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Timer"),vy=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),Us=e=>Object.values(e??{}).some(t=>{var n,r,o;return vy.has(t==null?void 0:t.type)&&((o=(r=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:r.animation)==null?void 0:o.type)&&t.data.props.animation.type!=="none"}),Nn="https://pagepilot.fabbuilder.com/scripts",ky=`${Nn}/pagePilotTabs.js`,wy=`${Nn}/pagePilotCarousel.js`,Sy=`${Nn}/pagePilotPagination.js`,$y=`${Nn}/pagePilotDemoScale.js`,_y=`${Nn}/pagePilotTimer.js`,Cy=`${Nn}/pagePilotAnimation.js`,Ay=`
603
+ `.trim()}const hy=e=>{var r,o;const t=!!((r=e==null?void 0:e.props)!=null&&r.decorative),n=((o=e==null?void 0:e.props)==null?void 0:o.alt)??"";return t?m.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:m.jsx(Cl,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):m.jsx(Cl,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},fy=e=>{var t;return m.jsx(qm,{hoverEffect:(t=e==null?void 0:e.props)==null?void 0:t.hoverEffect,children:m.jsx(hy,{...e})})},py=({props:e})=>m.jsx("div",{"aria-hidden":"true",className:"spacer-block",style:{height:(e==null?void 0:e.height)??Dx.height}}),gy=Rk,sd=U.createContext({}),Vs=U.createContext(!1),my=typeof window<"u"?U.useLayoutEffect:U.useEffect;function cd(e){var n,r;const t=(r=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:r.formFields;return Array.isArray(t)?t:[]}const Ys=new WeakMap;function by(e){if(!e||typeof e!="object")return new Map;let t=Ys.get(e);return t||(t=od(e,cd(e)),Ys.set(e,t)),t}const ud=U.createContext({});function xy(){return U.useContext(sd)}function vy(){return U.useContext(ud)}const dd={ColumnsContainer:{schema:a1,Component:l1},FlexColumns:{schema:s1,Component:g1},Grid:{schema:A1,Component:T1},ButtonGroup:{schema:uw,Component:dw},Container:{schema:X1,Component:au},EmailLayout:{schema:ck,Component:gy},Accordion:{schema:fw,Component:mw},PricingAccordion:{schema:xw,Component:kw},TabsBlock:{schema:$w,Component:Tw},Carousel:{schema:Nw,Component:Lw},Pagination:{schema:Dw,Component:Vw},Rating:{schema:Yw,Component:Qw},Progress:{schema:nS,Component:sS},Marquee:{schema:cS,Component:$S},Timer:{schema:AS,Component:LS},Avatar:{schema:Im,Component:fy},Button:{schema:Lb,Component:zb},Divider:{schema:Zb,Component:qb},Heading:{schema:o0,Component:i0},Html:{schema:O0,Component:j0},Image:{schema:ex,Component:nx},Logo:{schema:xx,Component:kx},Video:{schema:Px,Component:jx},IFrame:{schema:yv,Component:Tv},Calendly:{schema:Mv,Component:Lv},YouTubeUrl:{schema:kv,Component:Sv},Spacer:{schema:Bx,Component:py},SkipLink:{schema:w_,Component:Lu},AccessibilityTools:{schema:$_,Component:Du},Stepper:{schema:Bk,Component:Dk},List:{schema:Yk,Component:Jk},Text:{schema:hv,Component:gv},Mdx:{schema:x2,Component:S2},QuillBlock:{schema:N2,Component:P2},DemoPicker:{schema:O2,Component:e=>m.jsx(z2,{...e})},MenuPicker:{schema:D2,Component:e=>m.jsx(n_,{...e})},Breadcrumb:{schema:l_,Component:g_},FormsPicker:{schema:m_,Component:e=>m.jsx(k_,{...e})},AppBannerPicker:{schema:I_,Component:e=>m.jsx(E_,{...e})},FaqPicker:{schema:N_,Component:e=>m.jsx(O_,{...e})},Table:{schema:L_,Component:j_}},hd=Hv(dd),ky=yn($(),hd),wy=Fv(dd);function Pe({id:e}){var _,y,C,I,R,E,O;const t=xy(),{staticRender:n,injectElementIds:r,mainBlockId:o,hoistedSkipLinkId:a,hoistedA11yToolsId:i}=vy(),l=t[e];if(a&&e===a&&(l==null?void 0:l.type)==="SkipLink"||i&&e===i&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=o&&e===o&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((_=l.data)==null?void 0:_.props)??{},elementId:"main-content"}}}:l,u=cd(t),c=by(t),h=c.get(e),d=ld(s,u,h,c),f=d,p=(f==null?void 0:f.type)==="Container"?m.jsx(au,{...f.data,blockId:e}):m.jsx(wy,{...f});if(e==="root")return p;const b=!!((y=f==null?void 0:f.data)!=null&&y.hidden),x=n&&r?`ahd-${e}`:e,w=ly(x,(C=f==null?void 0:f.data)==null?void 0:C.responsive,(I=f==null?void 0:f.data)==null?void 0:I.style,(R=f==null?void 0:f.data)==null?void 0:R.props),S=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]).has(f==null?void 0:f.type)?(O=(E=f==null?void 0:f.data)==null?void 0:E.props)==null?void 0:O.animation:null,v=S&&S.type&&S.type!=="none"?{"data-animate-type":S.type,"data-animate-trigger":S.trigger??"load","data-animate-speed":S.speed??"medium","data-animate-delay":S.delay??0,...S.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{};return n&&r?m.jsxs("div",{id:x,className:"ahd-block-wrapper",style:b?{display:"none"}:void 0,...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]}):m.jsxs("div",{id:x,style:{scrollMarginTop:"80px",...b?{display:"none"}:null},...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]})}function or({document:e,rootBlockId:t,staticRender:n,injectElementIds:r,isBanner:o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}){const s=U.useMemo(()=>({staticRender:!!n,injectElementIds:!!r,isBanner:!!o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}),[n,r,o,a,i,l]),u=U.useContext(Vs),c=U.useRef(null);return my(()=>{n||u||c.current&&(kb(c.current),wb(c.current))},[n,u,e,t]),m.jsx("div",{ref:c,style:{display:"contents"},children:m.jsx(sd.Provider,{value:e,children:m.jsx(ud.Provider,{value:s,children:m.jsx(Vs.Provider,{value:!0,children:m.jsx(Pe,{id:t})})})})})}function Sy(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function $y(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function _y(e,t){const n=new Set;function r(o){var s,u,c,h;if(n.has(o))return;n.add(o);const a=e[o];if(!a)return;if(a.type==="Container"&&((u=(s=a.data)==null?void 0:s.props)==null?void 0:u.tag)==="main")return o;const i=((c=a.data)==null?void 0:c.props)??{},l=[];Array.isArray(i.childrenIds)&&l.push(i.childrenIds),Array.isArray((h=a.data)==null?void 0:h.childrenIds)&&l.push(a.data.childrenIds),Array.isArray(i.columns)&&i.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=r(f);if(p)return p}}return r(t)}const Cy=()=>`<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,"&quot;")}">`,Ay=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${`var s=this;if(!window.__ahdPostMessageBound){window.__ahdPostMessageBound=true;document.addEventListener('click',function(e){try{var t=(e.composedPath&&e.composedPath()[0])||e.target;var b=t&&t.closest&&t.closest('[data-action="postMessageEvent"][data-post-message-event],[data-action="postMessageEvent"][data-action-payload]');if(!b)return;var n=b.getAttribute('data-post-message-event');if(!n){try{n=JSON.parse(b.getAttribute('data-action-payload')||'{}').postMessageEvent;}catch(x){}}if(!n)return;var ts=window.parent!==window?[window,window.parent]:[window];for(var i=0;i<ts.length;i++){ts[i].postMessage({type:n},'*');ts[i].postMessage({type:'ahd-button-click',event:n},'*');}}catch(x){}});}s.parentNode&&s.parentNode.removeChild(s);`.replace(/"/g,"&quot;")}">`,yy=e=>Object.values(e??{}).some(t=>{var n,r;return(t==null?void 0:t.type)==="Button"&&((r=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:r.action)==="postMessageEvent"}),Iy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),Ry=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),Ty=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),Ey=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Pagination"),Ny=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Timer"),My=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),Ks=e=>Object.values(e??{}).some(t=>{var n,r,o;return My.has(t==null?void 0:t.type)&&((o=(r=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:r.animation)==null?void 0:o.type)&&t.data.props.animation.type!=="none"}),un="https://pagepilot.fabbuilder.com/scripts",Py=`${un}/pagePilotTabs.js`,Oy=`${un}/pagePilotCarousel.js`,Ly=`${un}/pagePilotPagination.js`,zy=`${un}/pagePilotDemoScale.js`,jy=`${un}/pagePilotTimer.js`,By=`${un}/pagePilotAnimation.js`,Dy=`${un}/pagePilotActions.js`,Fy=`
608
604
  @keyframes ahd-anim-fade-in { from { opacity: 0; } to { opacity: 1; } }
609
605
  @keyframes ahd-anim-slide-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
610
606
  @keyframes ahd-anim-slide-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@@ -617,8 +613,8 @@ ${on} { ${a} { width: ${s} !important; max-width: 100% !important; } }
617
613
  80% { transform: translateY(-2px); }
618
614
  100% { opacity: 1; transform: translateY(0); }
619
615
  }
620
- `.trim(),sd=`
621
- ${Ay}
616
+ `.trim(),fd=`
617
+ ${Fy}
622
618
 
623
619
  /* Elements that animate on scroll/hover/click start hidden so there is no
624
620
  flash of the final state before the trigger fires. Load-triggered elements
@@ -645,7 +641,7 @@ html.ahd-anim-ready [data-animate-type]:not([data-animate-trigger="load"]):not(.
645
641
  animation-fill-mode: both;
646
642
  animation-timing-function: ease-out;
647
643
  }
648
- `.trim(),yy=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,>~+])\s*/g,"$1").replace(/\s+/g," ").replace(/;}/g,"}").trim(),Iy=(e,t=!1)=>yy(`
644
+ `.trim(),Hy=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,>~+])\s*/g,"$1").replace(/\s+/g," ").replace(/;}/g,"}").trim(),Gy=(e,t=!1)=>Hy(`
649
645
 
650
646
  @import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css');
651
647
 
@@ -1000,22 +996,22 @@ table[style*="maxHeight"] {
1000
996
  table-layout: fixed !important;
1001
997
  }
1002
998
 
1003
- ${sd}
999
+ ${fd}
1004
1000
 
1005
- `),Ry=[{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'}],Ty={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]},Ny=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},Ey=`https://fonts.googleapis.com/css2?${Object.entries(Ty).map(([e,t])=>`family=${Ny(e,t)}`).join("&")}&display=swap`,cd=Ry.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));cd.map(e=>e.css);const My=e=>e.replace(/"/g,'\\"');cd.map(e=>{const t=My(e.css);return`
1001
+ `),Wy=[{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'}],Uy={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]},Zy=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},qy=`https://fonts.googleapis.com/css2?${Object.entries(Uy).map(([e,t])=>`family=${Zy(e,t)}`).join("&")}&display=swap`,pd=Wy.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));pd.map(e=>e.css);const Vy=e=>e.replace(/"/g,'\\"');pd.map(e=>{const t=Vy(e.css);return`
1006
1002
  .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
1007
1003
  .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
1008
1004
  content: '${e.label}';
1009
1005
  font-family: ${e.css};
1010
1006
  }`}).join(`
1011
- `);const Py=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(r,o,a)=>{t++;const i=String(a).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${o}>${i}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Oi(e,{rootBlockId:t,seo:n,injectElementIds:r,minifyCss:o,lang:a,skipLink:i,accessibilityTools:l,includePageCSS:s,headHtml:u,bodyBottomHtml:c,isBanner:h,injectTabsScrollSyncScript:d=!0,injectCarouselScript:f=!0,injectPaginationScript:p=!0,injectFontAssets:b=!0,injectTimerScript:x=!0,injectAnimationScript:w=!0}){var $e;const k=(($e=e==null?void 0:e[t])==null?void 0:$e.data)??{};a??k.lang;const S=i??k.skipLink??void 0,v=l??k.accessibilityTools??void 0,_=Object.values(e??{}).some(ce=>(ce==null?void 0:ce.type)==="SkipLink"),y=Object.values(e??{}).some(ce=>(ce==null?void 0:ce.type)==="AccessibilityTools");!_&&(S==null||S.enabled);const A=!y&&!!(v!=null&&v.enabled),I=A?Eu(v):"",R=A?Mu(v):"",N=A?Pu():"",P=d&&py(e),M=f&&my(e),O=p&&by(e),j=x&&xy(e),F=gy(e),H=w&&Us(e),W=Us(e),U=m.jsxs("div",{style:{margin:0,padding:0},"data-ahd-tpl-root":"true",children:[m.jsx("style",{"data-pp-theme-css":"",dangerouslySetInnerHTML:{__html:Dm}}),s&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Iy(void 0,!1)}}),I&&m.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),W&&m.jsx("style",{dangerouslySetInnerHTML:{__html:sd}}),b&&m.jsx("link",{rel:"stylesheet",href:Ey}),m.jsx("style",{children:`.gc-tooltip * {
1007
+ `);const Yy=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(r,o,a)=>{t++;const i=String(a).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${o}>${i}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Bi(e,{rootBlockId:t,seo:n,injectElementIds:r,minifyCss:o,lang:a,skipLink:i,accessibilityTools:l,includePageCSS:s,headHtml:u,bodyBottomHtml:c,isBanner:h,injectTabsScrollSyncScript:d=!0,injectCarouselScript:f=!0,injectPaginationScript:p=!0,injectFontAssets:b=!0,injectTimerScript:x=!0,injectAnimationScript:w=!0,injectPostMessageScript:k=!1}){var xe;const S=((xe=e==null?void 0:e[t])==null?void 0:xe.data)??{};a??S.lang;const v=i??S.skipLink??void 0,_=l??S.accessibilityTools??void 0,y=Object.values(e??{}).some(ve=>(ve==null?void 0:ve.type)==="SkipLink"),C=Object.values(e??{}).some(ve=>(ve==null?void 0:ve.type)==="AccessibilityTools");!y&&(v==null||v.enabled);const I=!C&&!!(_!=null&&_.enabled),R=I?zu(_):"",E=I?ju(_):"",O=I?Bu():"",M=d&&Iy(e),P=f&&Ty(e),B=p&&Ey(e),D=x&&Ny(e),H=Ry(e),G=w&&Ks(e),W=k&&yy(e),J=Ks(e),X=m.jsxs("div",{style:{margin:0,padding:0},"data-ahd-tpl-root":"true",children:[m.jsx("style",{"data-pp-theme-css":"",dangerouslySetInnerHTML:{__html:Um}}),s&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Gy(void 0,!1)}}),R&&m.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),J&&m.jsx("style",{dangerouslySetInnerHTML:{__html:fd}}),b&&m.jsx("link",{rel:"stylesheet",href:qy}),m.jsx("style",{children:`.gc-tooltip * {
1012
1008
  margin: 0;
1013
1009
  padding: 0;
1014
1010
  box-sizing: border-box;
1015
1011
  }
1016
1012
  .gc-tooltip .gc-close { display: none !important; }
1017
- .gc-tooltip .gc-copyright { display: none !important; }`}),m.jsx("style",{dangerouslySetInnerHTML:{__html:hi}}),R&&m.jsx("div",{dangerouslySetInnerHTML:{__html:R}}),N&&m.jsx("script",{dangerouslySetInnerHTML:{__html:N}}),(()=>{const ce=uy(e),pe=dy(e),Le=hy(e,t),ee=ce?e[ce]:null,Y=pe?e[pe]:null,K=Le?m.jsx(nr,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,mainBlockId:Le,hoistedSkipLinkId:ce,hoistedA11yToolsId:pe}):m.jsx("main",{id:"main-content",tabIndex:-1,children:m.jsx(nr,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,hoistedSkipLinkId:ce,hoistedA11yToolsId:pe})});return m.jsxs(m.Fragment,{children:[ee&&m.jsx(Nu,{...ee.data??{}}),h?K:m.jsx("div",{className:"ahd-page-root",children:K}),Y&&m.jsx(Ou,{...Y.data??{}})]})})(),P&&m.jsx("script",{src:ky,defer:!0}),M&&m.jsx("script",{src:wy,defer:!0}),O&&m.jsx("script",{src:Sy,defer:!0}),j&&m.jsx("script",{src:_y,defer:!0}),F&&m.jsx("script",{src:$y,defer:!0}),H&&m.jsx("script",{src:Cy,defer:!0})]}),X=$d.renderToStaticMarkup(U);let Z=o?Py(X):X;const q=fy(),ae=Z.lastIndexOf("</div>");return Z=ae!==-1?Z.slice(0,ae)+q+Z.slice(ae):Z+q,u&&(Z=Z.replace("</head>",`${u}</head>`)),c&&(Z=Z.replace("</body>",`${c}</body>`)),Z}function ud(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function Oy(e){var t;return String((e==null?void 0:e.identifier)||((t=e==null?void 0:e.metadata)==null?void 0:t.identifier)||"")}function Ly(e){const t=Oy(e);return t?`<div id="${zr(t)}"></div>`:""}function zy(e,t={}){var a;if(!e)return"";const n=t.rootBlockId??"root",r=((a=e==null?void 0:e[n])==null?void 0:a.data)??{},o=t.rootOverrides??{};try{return Oi(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang??r.lang,skipLink:o.skipLink??r.skipLink,accessibilityTools:o.accessibilityTools??r.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectPaginationScript:t.injectPaginationScript,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 zr(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function By(e,t,n={}){var d,f,p;const r=t.find(b=>!ud(b)),o=((p=(f=(d=r==null?void 0:r.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)??{},a=n.lang||o.lang||"en",i=n.canvasColor||o.canvasColor||"#FFFFFF",l=n.fontFamily||(typeof o.fontFamily=="string"?o.fontFamily:"Inter, system-ui, sans-serif"),s=n.seoTitle?`<title>${zr(n.seoTitle)}</title>`:"",u=n.seoDescription?`<meta name="description" content="${zr(n.seoDescription)}" />`:"",c=n.extraHead??"",h=n.extraBodyBottom??"";return`<!doctype html>
1018
- <html lang="${zr(a)}">
1013
+ .gc-tooltip .gc-copyright { display: none !important; }`}),m.jsx("style",{dangerouslySetInnerHTML:{__html:mi}}),E&&m.jsx("div",{dangerouslySetInnerHTML:{__html:E}}),O&&m.jsx("script",{dangerouslySetInnerHTML:{__html:O}}),(()=>{const ve=Sy(e),ee=$y(e),Y=_y(e,t),K=ve?e[ve]:null,j=ee?e[ee]:null,V=Y?m.jsx(or,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,mainBlockId:Y,hoistedSkipLinkId:ve,hoistedA11yToolsId:ee}):m.jsx("main",{id:"main-content",tabIndex:-1,children:m.jsx(or,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,hoistedSkipLinkId:ve,hoistedA11yToolsId:ee})});return m.jsxs(m.Fragment,{children:[K&&m.jsx(Lu,{...K.data??{}}),h?V:m.jsx("div",{className:"ahd-page-root",children:V}),j&&m.jsx(Du,{...j.data??{}})]})})(),M&&m.jsx("script",{src:Py,defer:!0}),P&&m.jsx("script",{src:Oy,defer:!0}),B&&m.jsx("script",{src:Ly,defer:!0}),D&&m.jsx("script",{src:jy,defer:!0}),H&&m.jsx("script",{src:zy,defer:!0}),G&&m.jsx("script",{src:By,defer:!0}),W&&m.jsx("script",{src:Dy,defer:!0})]}),q=Id.renderToStaticMarkup(X);let te=o?Yy(q):q;const $e=Cy()+(W?Ay():""),Ce=te.lastIndexOf("</div>");return te=Ce!==-1?te.slice(0,Ce)+$e+te.slice(Ce):te+$e,u&&(te=te.replace("</head>",`${u}</head>`)),c&&(te=te.replace("</body>",`${c}</body>`)),te}function gd(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function Ky(e){var t;return String((e==null?void 0:e.identifier)||((t=e==null?void 0:e.metadata)==null?void 0:t.identifier)||"")}function Jy(e){const t=Ky(e);return t?`<div id="${Fr(t)}"></div>`:""}function Xy(e,t={}){var a;if(!e)return"";const n=t.rootBlockId??"root",r=((a=e==null?void 0:e[n])==null?void 0:a.data)??{},o=t.rootOverrides??{};try{return Bi(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang??r.lang,skipLink:o.skipLink??r.skipLink,accessibilityTools:o.accessibilityTools??r.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectPaginationScript:t.injectPaginationScript,injectAnimationScript:t.injectAnimationScript,injectPostMessageScript:t.injectPostMessageScript??!0,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 Fr(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Qy(e,t,n={}){var d,f,p;const r=t.find(b=>!gd(b)),o=((p=(f=(d=r==null?void 0:r.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)??{},a=n.lang||o.lang||"en",i=n.canvasColor||o.canvasColor||"#FFFFFF",l=n.fontFamily||(typeof o.fontFamily=="string"?o.fontFamily:"Inter, system-ui, sans-serif"),s=n.seoTitle?`<title>${Fr(n.seoTitle)}</title>`:"",u=n.seoDescription?`<meta name="description" content="${Fr(n.seoDescription)}" />`:"",c=n.extraHead??"",h=n.extraBodyBottom??"";return`<!doctype html>
1014
+ <html lang="${Fr(a)}">
1019
1015
  <head>
1020
1016
  <meta charset="utf-8" />
1021
1017
  <meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -1032,5 +1028,5 @@ ${c}
1032
1028
  ${e}
1033
1029
  ${h}
1034
1030
  </body>
1035
- </html>`}function jy(e,t={}){const n=t.includeExternalSections??!0,r=t.wrapInDocumentShell??!0,o=[],a=e.map(l=>{var c;if(ud(l)){const h=Ly(l);return n&&h&&o.push(h),{...l,content:h}}const s=(c=l==null?void 0:l.contentMetadata)==null?void 0:c.document;if(!s)return l!=null&&l.content&&o.push(String(l.content)),l;const u=zy(s,t);return u&&o.push(u),{...l,content:u,contentMetadata:{...l.contentMetadata??{},document:s}}}),i=o.join(`
1036
- `);return r?{html:By(i,e,t),sectionHtml:o,flushedSections:a}:{html:i,sectionHtml:o,flushedSections:a}}function Dy(e){var a,i,l,s,u,c,h,d,f,p,b;if(!e)return[];const t=e.configuration??{},n=(i=(a=t==null?void 0:t.root)==null?void 0:a.data)==null?void 0:i.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const r=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(r){const x=new Set,w=[];for(const k of r){const S=(c=(u=(s=(l=k==null?void 0:k.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:u.data)==null?void 0:c.formFields;if(Array.isArray(S))for(const v of S)!(v!=null&&v.id)||x.has(v.id)||(x.add(v.id),w.push(v))}if(w.length>0)return w}const o=(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(o)&&o.length>0?o:Array.isArray(e.formFields)?e.formFields:[]}function Fy(e){var n,r,o,a,i,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 u=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:u}}}}return(o=(r=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:r.document)!=null&&o.root?t.content.contentMetadata.document:(i=(a=t.contentMetadata)==null?void 0:a.document)!=null&&i.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function Zs(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,r)=>n==null?n:n[r],e)}function Li(e,t){if(t){const n=Zs(e,t);if(Array.isArray(n))return n;const r=Li(e);if(r){const o=r.map(a=>Zs(a,t)).filter(a=>a&&typeof a=="object");if(o.length>0)return o}}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 Hy(e,t){if(!t||t.length===0){const r={};for(const[o,a]of Object.entries(e))a!=null&&(r[o]=String(a));return r}const n={};for(const r of t){const o=e[r.id];o!=null&&o!==""&&(n[r.id]=String(o))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function Gy(e,t,n,r){if(typeof AbortController>"u")return n(e,t);const o=new AbortController,a=setTimeout(()=>o.abort(),r);try{return await n(e,{...t,signal:o.signal})}finally{clearTimeout(a)}}async function dd(e,t={}){var h;const n=Array.isArray(e)?e:[],r=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(r.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const o=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!o){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const f of r)(h=t.onError)==null||h.call(t,f,d);return{fields:n,attempted:r.length,refreshed:0,errors:Object.fromEntries(r.map(f=>[f.id,d.message]))}}const a=t.timeoutMs??1e4,i={};let l=0;const s=await Promise.all(r.map(async d=>{var x;const{apiUrl:f,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const w=await Gy(f,{method:p,headers:{Accept:"application/json",...t.headers}},o,a);if(!w.ok)throw new Error(`GET ${f} → HTTP ${w.status}`);const k=await w.json(),S=Li(k,b);if(!S)throw new Error(`GET ${f} → response had no array of rows`);const v=S.map(_=>Hy(_,d.itemFields));return l+=1,{id:d.id,value:v}}catch(w){const k=w instanceof Error?w:new Error(String(w));return i[d.id]=k.message,(x=t.onError)==null||x.call(t,d,k),null}}));if(l===0)return{fields:n,attempted:r.length,refreshed:0,errors:i};const u=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>u.has(d.id)?{...d,value:u.get(d.id)}:d),attempted:r.length,refreshed:l,errors:i}}async function hd(e,t={}){var r,o;const n=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;return dd(Array.isArray(n)?n:[],t)}function fd(e,t){if(!e)return t();wl(e);try{return t()}finally{wl(null)}}function Wy(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function Uy(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function Zy(e){const t=e;return!!(t.templateId&&t.baseUrl)}function qy(e){if(!e||typeof e!="object")return e;const t=Ei(e);return!t||t.length===0?e:Mi(e,t)}async function qs(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=Ei(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let r=n,o=null;return t.refreshApiDataSources&&(o=await hd(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),r=o.fields),{document:Mi(e,r),apiRefresh:o}}const Vy=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Progress","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","Breadcrumb","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text","Mdx","QuillBlock"]);function Yy(e){var r,o,a;const t=((r=e==null?void 0:e.data)==null?void 0:r.props)??{};return{type:"Text",data:{props:{text:typeof t.html=="string"&&t.html||typeof t.text=="string"&&t.text||typeof t.markdown=="string"&&t.markdown||""},style:((o=e==null?void 0:e.data)==null?void 0:o.style)??{},hidden:(a=e==null?void 0:e.data)==null?void 0:a.hidden}}}function pd(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[r,o]of Object.entries(e)){const a=o==null?void 0:o.type;a&&!Vy.has(a)?(n[r]=Yy(o),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${r}" has unsupported type "${a}" — coerced to Text.`)):n[r]=o}return t?n:e}function zi(e,t){var i;if(!e)return"";const n=t.rootBlockId??"root",r=qy(e),o=pd(r),a=((i=o==null?void 0:o[n])==null?void 0:i.data)??{};return fd(t.recordType,()=>Oi(o,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??a.lang,skipLink:t.skipLink??a.skipLink,accessibilityTools:t.accessibilityTools??a.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner}))}function Bi(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 ji(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Di(e,t,n){const r=await n(e,t);if(!r.ok){const o=await r.text().catch(()=>"");return{ok:!1,body:null,status:r.status,text:o}}return{ok:!0,body:await r.json(),status:r.status,text:""}}async function gd(e,t,n){var u;const{wrapInDocumentShell:r=!0,headHtml:o,bodyBottomHtml:a}=n,i=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(i.length===0){const{document:c}=await qs(((u=t==null?void 0:t.contentMetadata)==null?void 0:u.document)??e,n);return zi(c,{...n,recordType:n.recordType??"page"})}const l=await Promise.all(i.map(async c=>{var p;const h=(p=c==null?void 0:c.contentMetadata)==null?void 0:p.document;if(!h)return c;const{document:d}=await qs(h,n),f=pd(d);return{...c,contentMetadata:{...c.contentMetadata??{},document:f}}})),{html:s}=fd(n.recordType??"page",()=>jy(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:r,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:o??(t==null?void 0:t.head)??"",extraBodyBottom:a??(t==null?void 0:t.bodyBottom)??""}));return s}async function Ky(e,t){const{baseUrl:n,tenantId:r,pageId:o}=t,i=`${n.replace(/\/+$/,"")}/tenant/${r}/page/${o}`,l=Bi(t),s=await Di(i,{method:"GET",headers:ji(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${i} → ${s.status}${s.text?`: ${s.text}`:""}`);return gd(e,s.body,{...t,fetchFn:l})}async function Jy(e,t){var d,f;const{baseUrl:n,tenantId:r,pagePath:o,cache:a=!1,update:i=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${r}/pagebypath/${encodeURIComponent(o)}?cache=${a}&update=${i}`,u=Bi(t),c=await Di(s,{method:"GET",headers:ji(t)},u);if(!c.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${c.status}${c.text?`: ${c.text}`:""}`);const h=((d=c.body)==null?void 0:d.data)??((f=c.body)==null?void 0:f.payload)??c.body;return gd(e,h,{...t,fetchFn:u})}async function Xy(e){const{baseUrl:t,tenantId:n,templateId:r,isGlobal:o=!1}=e,a=t.replace(/\/+$/,""),i=Bi(e),l=o?`${a}/global-template/${r}`:`${a}/tenant/${n}/template/${r}`,s=o?{"Content-Type":"application/json"}:ji(e),u=await Di(l,{method:"GET",headers:s},i);if(u.ok)return u.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${u.status}${u.text?`: ${u.text}`:""}`)}function Qy(e,t){if(!t)return e;const n=new Map;for(const o of e)o!=null&&o.id&&n.set(o.id,o);if(Array.isArray(t)){for(const o of t){if(!(o!=null&&o.id))continue;const i={...n.get(o.id)??{id:o.id,name:o.id,type:"text"},...o};n.set(o.id,i)}return Array.from(n.values())}const r=Object.entries(t).filter(([,o])=>o!=null);if(r.length===0)return e;for(const[o,a]of r){const i=String(a),l=n.get(o);l?n.set(o,{...l,value:i}):n.set(o,{id:o,name:o,type:"text",value:i})}return Array.from(n.values())}async function eI(e,t){const n=await Xy(t),r=Fy(n)??(e&&Object.keys(e).length>0?e:null);if(!r)return"";const o=Dy(n),a=Qy(o,t.variables),i=Mi(r,a);return zi(i,t)}function tI(e,t){return Zy(t)?eI(e,t):Uy(t)?Jy(e,t):Wy(t)?Ky(e,t):zi(e,t)}function nI(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function rI(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(r=>t[r]??r)}))),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(r=>t[r]??r)})),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(r=>t[r]??r)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(r=>t[r]??r)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(r=>t[r]??r)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(r=>t[r]??r)}:{}})))))}function Xt(e,t){const n=eo(e,t),r={};n.forEach(a=>{r[a]=nI()});const o={};return n.forEach(a=>{const i=JSON.parse(JSON.stringify(e[a]));rI(i,r),o[r[a]]=i}),{newBlocks:o,idMap:r,newRootId:r[t]}}function oI(e,t,n){var r,o,a,i;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const u=s;if(u.data&&Array.isArray(u.data.childrenIds)&&u.data.childrenIds.includes(t)){const c=u.data.childrenIds.indexOf(t),h=[...u.data.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,childrenIds:h}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.childrenIds)&&u.data.props.childrenIds.includes(t)){const c=u.data.props.childrenIds.indexOf(t),h=[...u.data.props.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,childrenIds:h}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.columns)){const c=u.data.props.columns;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,columns:p}}}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.cells)){const c=u.data.props.cells;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,cells:p}}}}}}}if(u.type==="PricingAccordion"&&((r=u.data)!=null&&r.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].cardChildrenIds)?c[h].cardChildrenIds:[],f=Array.isArray(c[h].detailChildrenIds)?c[h].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[f,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),w=c.map(k=>({...k,cardChildrenIds:Array.isArray(k.cardChildrenIds)?[...k.cardChildrenIds]:[],detailChildrenIds:Array.isArray(k.detailChildrenIds)?[...k.detailChildrenIds]:[]}));return w[h][b].splice(x+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:w}}}}}}}if((u.type==="TabsBlock"||u.type==="VerticalAccordion"||u.type==="Carousel"||u.type==="Marquee"||u.type==="Pagination")&&((o=u.data)!=null&&o.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].contentChildrenIds)?c[h].contentChildrenIds:[];if(d.includes(t)){const f=d.indexOf(t),p=c.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[h].contentChildrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:p}}}}}}}if(u.type==="MenuPicker"&&((a=u.data)!=null&&a.props))for(const c of["startChildrenIds","endChildrenIds"]){const h=Array.isArray(u.data.props[c])?u.data.props[c]:[];if(h.includes(t)){const d=h.indexOf(t),f=[...h];return f.splice(d+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,[c]:f}}}}}}if(u.type==="Accordion"&&((i=u.data)!=null&&i.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=c[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=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}}}}return null}function aI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="FlexColumns")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:a,columnIndex:s}}}return null}function iI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(!((i==null?void 0:i.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:a,cellIndex:s}}}return null}function lI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="Pagination")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:a,cellIndex:s}}}return null}function sI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=i==null?void 0:i.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.items;if(Array.isArray(s)){for(let u=0;u<s.length;u++)if(Array.isArray((o=s[u])==null?void 0:o.contentChildrenIds)&&s[u].contentChildrenIds.includes(t))return{parentId:a,itemIndex:u,parentType:l}}}return null}function Vs(e,t,n){var d,f,p;if(!e[t])return null;const r=e[t];if((r==null?void 0:r.type)==="TabsBlock"){const x=Array.isArray((f=(d=r.data)==null?void 0:d.props)==null?void 0:f.items)?r.data.props.items:[];if(x.length>=10)return null;const w=x[0]??{},k=Array.isArray(w.contentChildrenIds)?w.contentChildrenIds:[];let S={...e};const v=[];let _=null;for(const I of k){if(!S[I])continue;const{newBlocks:R,newRootId:N}=Xt(S,I);S={...S,...R},v.push(N),_||(_=N)}const y=_??t,A=[...x,{label:w.label??`Tab ${x.length+1}`,contentChildrenIds:v}];return S={...S,[t]:{...r,data:{...r.data,props:{...r.data.props,items:A}}}},{updatedDocument:S,newRootId:y}}const o=iI(e,n);if(o){const b=e[o.gridId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],_=S.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)?S.length:w*k,y=Array.from({length:_},(M,O)=>S[O]??{childrenIds:[]});let A=y.findIndex((M,O)=>O>o.cellIndex&&(!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0));if(A===-1&&(A=y.findIndex(M=>!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0)),A===-1)return null;const{newBlocks:I,newRootId:R}=Xt(e,t),N=y.map((M,O)=>O===A?{...M,childrenIds:[...(M==null?void 0:M.childrenIds)??[],R]}:M);return{updatedDocument:{...e,...I,[o.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:N}}}},newRootId:R}}const a=lI(e,n);if(a){const b=e[a.paginationId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],v=Math.max(w*k,S.length),_=Array.from({length:v},(P,M)=>S[M]??{childrenIds:[]});let y=_.findIndex((P,M)=>M>a.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:A,newRootId:I}=Xt(e,t),R=_.map((P,M)=>M===y?{...P,childrenIds:[...(P==null?void 0:P.childrenIds)??[],I]}:P);return{updatedDocument:{...e,...A,[a.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:R}}}},newRootId:I}}const i=aI(e,n);if(i){const b=e[i.flexId],x=b.data.props??{},w=x.columnsCount??2,k=Array.isArray(x.columns)?x.columns:[],S=Array.from({length:w},(R,N)=>k[N]??{childrenIds:[]});let v=S.findIndex((R,N)=>N>i.columnIndex&&(!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0));if(v===-1&&(v=S.findIndex(R=>!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0)),v===-1)return null;const{newBlocks:_,newRootId:y}=Xt(e,t),A=S.map((R,N)=>N===v?{...R,childrenIds:[...(R==null?void 0:R.childrenIds)??[],y]}:R);return{updatedDocument:{...e,..._,[i.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:A}}}},newRootId:y}}const l=sI(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,k=x.findIndex((A,I)=>I>l.itemIndex&&(!Array.isArray(A==null?void 0:A.contentChildrenIds)||A.contentChildrenIds.length===0));if(k===-1&&(k=x.findIndex(A=>!Array.isArray(A==null?void 0:A.contentChildrenIds)||A.contentChildrenIds.length===0)),k===-1)if(l.parentType==="TabsBlock"&&x.length<10){const A=[...x,{label:`Tab ${x.length+1}`,contentChildrenIds:[]}];w={...w,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:A}}}},b=w[l.parentId],x=A,k=x.length-1}else return null;const{newBlocks:S,newRootId:v}=Xt(w,t),_=x.map((A,I)=>I===k?{...A,...l.parentType==="TabsBlock"&&!(A!=null&&A.label)?{label:`Tab ${I+1}`}:{},contentChildrenIds:[...(A==null?void 0:A.contentChildrenIds)??[],v]}:A);return{updatedDocument:{...w,...S,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:_}}}},newRootId:v}}const{newBlocks:s,newRootId:u}=Xt(e,t),c={...e,...s},h=oI(c,n,u);return h&&(c[h.parentId]=h.updatedParent),{updatedDocument:c,newRootId:u}}function md(e,t){const n=o=>Array.isArray(o)?o.filter(a=>!t.has(a)):o,r={};for(const[o,a]of Object.entries(e)){if(t.has(o))continue;const i=a;if(!(i!=null&&i.data)){r[o]=i;continue}const l={...i.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(u=>({...u,childrenIds:n(u.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(u=>u===null||typeof u!="object"?u:{...u,childrenIds:n(u.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(u=>({...u,...u.titleChildrenIds!==void 0?{titleChildrenIds:n(u.titleChildrenIds)}:{},...u.contentChildrenIds!==void 0?{contentChildrenIds:n(u.contentChildrenIds)}:{},...u.cardChildrenIds!==void 0?{cardChildrenIds:n(u.cardChildrenIds)}:{},...u.detailChildrenIds!==void 0?{detailChildrenIds:n(u.detailChildrenIds)}:{}}))),l.props=s}r[o]={...i,data:l}}return r}function cI(e){var r;const t=e==null?void 0:e.type,n=((r=e==null?void 0:e.data)==null?void 0:r.props)??{};if(t==="Grid"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],s=i.some(c=>(c==null?void 0:c.colStart)!=null||(c==null?void 0:c.rowStart)!=null||(c==null?void 0:c.colSpan)!=null||(c==null?void 0:c.rowSpan)!=null)?i.length:o*a,u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=i[h])==null?void 0:d.childrenIds)?i[h].childrenIds:[]}});return{slotCount:s,slots:u}}if(t==="FlexColumns"){const o=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),a=Array.isArray(n.columns)?n.columns:[],i=Array.from({length:o},(l,s)=>{var u;return{childrenIds:Array.isArray((u=a[s])==null?void 0:u.childrenIds)?a[s].childrenIds:[]}});return{slotCount:o,slots:i}}if(t==="Carousel"||t==="Marquee"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="TabsBlock"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="Pagination"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],l=Math.max(o*a,i.length),s=Array.from({length:l},(u,c)=>{var h;return{childrenIds:Array.isArray((h=i[c])==null?void 0:h.childrenIds)?i[c].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function ur(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const Ar=new WeakMap;function po(e,t){const n=e[t];if(!n||typeof n!="object")return null;const r=Ar.get(n);if(r!==void 0)return r&&r.containerId===t?r:r&&{...r,containerId:t};if(!ur(n.type))return Ar.set(n,null),null;const o=cI(n);if(!o)return Ar.set(n,null),null;const{slotCount:a,slots:i}=o,l=i.findIndex(c=>c.childrenIds.length>0),s=i.filter(c=>c.childrenIds.length===0).length,u={containerId:t,type:n.type,slotCount:a,slots:i,firstFilledSlot:l,emptySlotCount:s};return Ar.set(n,u),u}function ei(e,t){for(const[n,r]of Object.entries(e)){if(!ur(r==null?void 0:r.type))continue;const o=po(e,n);if(o!=null&&o.slots.some(a=>a.childrenIds.includes(t)))return n}return null}function bd(e,t,n,r){var u;const o=e[t];if(!o||!ur(o.type))return e;const a=((u=o.data)==null?void 0:u.props)??{};if(o.type==="Grid"){let c=a.columnsCount??2,h=a.rowsCount??2;if(c*h>=n)return e;r==="columns"?c=Math.max(c,Math.ceil(n/Math.max(1,h))):h=Math.max(h,Math.ceil(n/Math.max(1,c)));const d=c*h,f=Array.isArray(a.cells)?a.cells:[],p=Array.from({length:d},(b,x)=>f[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:c,rowsCount:h,cells:p}}}}}if(o.type==="Carousel"){const h=Array.isArray(a.items)?a.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]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Marquee"){const h=Array.isArray(a.items)?a.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]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="TabsBlock"){const h=Array.isArray(a.items)?a.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]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Pagination"){const c=a.columnsCount??2,h=a.rowsCount??2,d=Array.isArray(a.cells)?a.cells:[];if(Math.max(c*h,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,cells:p}}}}}if((a.columnsCount??(Array.isArray(a.columns)?a.columns.length:2))>=n)return e;const l=Array.isArray(a.columns)?a.columns:[],s=Array.from({length:n},(c,h)=>l[h]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:n,columns:s}}}}}function xd(e,t,n){var u;const r=e[t];if(!r||!ur(r.type))return e;const o=po(e,t);if(!o)return e;let a=-1;o.slots.forEach((c,h)=>{c.childrenIds.length>0&&(a=h)});const i=Math.max(n,a+1,1);if(i>=o.slotCount)return e;const l=((u=r.data)==null?void 0:u.props)??{};if(r.type==="Pagination"){const c=(l.columnsCount??2)*(l.rowsCount??2),h=Math.max(i,c);if(h>=o.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,cells:d.slice(0,h)}}}}}if(r.type==="Carousel"||r.type==="Marquee"||r.type==="TabsBlock"){const c=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,items:c.slice(0,i)}}}}}if(r.type==="Grid"){const c=l.columnsCount??2,h=l.rowsCount??2,d=Math.max(1,Math.ceil(i/Math.max(1,c)));if(d>=h)return e;const f=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,rowsCount:d,cells:f.slice(0,c*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,columnsCount:i,columns:s.slice(0,i)}}}}}function uI(e,t,n,r="columns"){const o=t==null?void 0:t.sourceBlockId;if(!o||!e[o])return null;const a=Math.max(1,n);let i=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===a)return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<a){let h=!1;for(;s<a;){const d=l.length>0?l[l.length-1]:o;let f=Vs(i,o,d);if(!f){const p=ei(i,o);if(!p){h=!0;break}const b=po(i,p),x=((b==null?void 0:b.slotCount)??0)+(a-s),w=bd(i,p,x,r);if(w===i){h=!0;break}if(i=w,f=Vs(i,o,d),!f){h=!0;break}}i=f.updatedDocument,l=[...l,f.newRootId],s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:h}}const u=a,c=l.slice(u-1);if(c.length>0){const h=new Set;for(const f of c)for(const p of eo(i,f))h.add(p);i=md(i,h);const d=ei(i,o);d&&(i=xd(i,d,u)),l=l.slice(0,u-1),s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=nr;exports.ReaderBlock=Me;exports.ReaderBlockSchema=ld;exports.ReaderDocumentSchema=sy;exports.cloneSubtree=Xt;exports.extractApiRows=Li;exports.findRepeatableContainerOf=ei;exports.getRepeatableContainerInfo=po;exports.growContainerToFit=bd;exports.isRepeatableContainerType=ur;exports.reconcileRepeatFieldRowCount=uI;exports.refreshApiDataSources=dd;exports.refreshDocumentApiDataSources=hd;exports.removeSubtree=md;exports.renderToStaticHtml=tI;exports.renderToStaticMarkup=Oi;exports.shrinkContainerToFit=xd;
1031
+ </html>`}function eI(e,t={}){const n=t.includeExternalSections??!0,r=t.wrapInDocumentShell??!0,o=[],a=e.map(l=>{var c;if(gd(l)){const h=Jy(l);return n&&h&&o.push(h),{...l,content:h}}const s=(c=l==null?void 0:l.contentMetadata)==null?void 0:c.document;if(!s)return l!=null&&l.content&&o.push(String(l.content)),l;const u=Xy(s,t);return u&&o.push(u),{...l,content:u,contentMetadata:{...l.contentMetadata??{},document:s}}}),i=o.join(`
1032
+ `);return r?{html:Qy(i,e,t),sectionHtml:o,flushedSections:a}:{html:i,sectionHtml:o,flushedSections:a}}function tI(e){var a,i,l,s,u,c,h,d,f,p,b;if(!e)return[];const t=e.configuration??{},n=(i=(a=t==null?void 0:t.root)==null?void 0:a.data)==null?void 0:i.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const r=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(r){const x=new Set,w=[];for(const k of r){const S=(c=(u=(s=(l=k==null?void 0:k.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:u.data)==null?void 0:c.formFields;if(Array.isArray(S))for(const v of S)!(v!=null&&v.id)||x.has(v.id)||(x.add(v.id),w.push(v))}if(w.length>0)return w}const o=(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(o)&&o.length>0?o:Array.isArray(e.formFields)?e.formFields:[]}function nI(e){var n,r,o,a,i,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 u=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:u}}}}return(o=(r=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:r.document)!=null&&o.root?t.content.contentMetadata.document:(i=(a=t.contentMetadata)==null?void 0:a.document)!=null&&i.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function Js(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,r)=>n==null?n:n[r],e)}function Di(e,t){if(t){const n=Js(e,t);if(Array.isArray(n))return n;const r=Di(e);if(r){const o=r.map(a=>Js(a,t)).filter(a=>a&&typeof a=="object");if(o.length>0)return o}}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 rI(e,t){if(!t||t.length===0){const r={};for(const[o,a]of Object.entries(e))a!=null&&(r[o]=String(a));return r}const n={};for(const r of t){const o=e[r.id];o!=null&&o!==""&&(n[r.id]=String(o))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function oI(e,t,n,r){if(typeof AbortController>"u")return n(e,t);const o=new AbortController,a=setTimeout(()=>o.abort(),r);try{return await n(e,{...t,signal:o.signal})}finally{clearTimeout(a)}}async function md(e,t={}){var h;const n=Array.isArray(e)?e:[],r=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(r.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const o=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!o){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const f of r)(h=t.onError)==null||h.call(t,f,d);return{fields:n,attempted:r.length,refreshed:0,errors:Object.fromEntries(r.map(f=>[f.id,d.message]))}}const a=t.timeoutMs??1e4,i={};let l=0;const s=await Promise.all(r.map(async d=>{var x;const{apiUrl:f,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const w=await oI(f,{method:p,headers:{Accept:"application/json",...t.headers}},o,a);if(!w.ok)throw new Error(`GET ${f} → HTTP ${w.status}`);const k=await w.json(),S=Di(k,b);if(!S)throw new Error(`GET ${f} → response had no array of rows`);const v=S.map(_=>rI(_,d.itemFields));return l+=1,{id:d.id,value:v}}catch(w){const k=w instanceof Error?w:new Error(String(w));return i[d.id]=k.message,(x=t.onError)==null||x.call(t,d,k),null}}));if(l===0)return{fields:n,attempted:r.length,refreshed:0,errors:i};const u=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>u.has(d.id)?{...d,value:u.get(d.id)}:d),attempted:r.length,refreshed:l,errors:i}}async function bd(e,t={}){var r,o;const n=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;return md(Array.isArray(n)?n:[],t)}function xd(e,t){if(!e)return t();El(e);try{return t()}finally{El(null)}}function aI(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function iI(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function lI(e){const t=e;return!!(t.templateId&&t.baseUrl)}function sI(e){if(!e||typeof e!="object")return e;const t=Li(e);return!t||t.length===0?e:zi(e,t)}async function Xs(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=Li(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let r=n,o=null;return t.refreshApiDataSources&&(o=await bd(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),r=o.fields),{document:zi(e,r),apiRefresh:o}}const cI=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Progress","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","Breadcrumb","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text","Mdx","QuillBlock"]);function uI(e){var r,o,a;const t=((r=e==null?void 0:e.data)==null?void 0:r.props)??{};return{type:"Text",data:{props:{text:typeof t.html=="string"&&t.html||typeof t.text=="string"&&t.text||typeof t.markdown=="string"&&t.markdown||""},style:((o=e==null?void 0:e.data)==null?void 0:o.style)??{},hidden:(a=e==null?void 0:e.data)==null?void 0:a.hidden}}}function vd(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[r,o]of Object.entries(e)){const a=o==null?void 0:o.type;a&&!cI.has(a)?(n[r]=uI(o),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${r}" has unsupported type "${a}" — coerced to Text.`)):n[r]=o}return t?n:e}function Fi(e,t){var i;if(!e)return"";const n=t.rootBlockId??"root",r=sI(e),o=vd(r),a=((i=o==null?void 0:o[n])==null?void 0:i.data)??{};return xd(t.recordType,()=>Bi(o,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??a.lang,skipLink:t.skipLink??a.skipLink,accessibilityTools:t.accessibilityTools??a.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner}))}function Hi(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 Gi(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Wi(e,t,n){const r=await n(e,t);if(!r.ok){const o=await r.text().catch(()=>"");return{ok:!1,body:null,status:r.status,text:o}}return{ok:!0,body:await r.json(),status:r.status,text:""}}async function kd(e,t,n){var u;const{wrapInDocumentShell:r=!0,headHtml:o,bodyBottomHtml:a}=n,i=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(i.length===0){const{document:c}=await Xs(((u=t==null?void 0:t.contentMetadata)==null?void 0:u.document)??e,n);return Fi(c,{...n,recordType:n.recordType??"page"})}const l=await Promise.all(i.map(async c=>{var p;const h=(p=c==null?void 0:c.contentMetadata)==null?void 0:p.document;if(!h)return c;const{document:d}=await Xs(h,n),f=vd(d);return{...c,contentMetadata:{...c.contentMetadata??{},document:f}}})),{html:s}=xd(n.recordType??"page",()=>eI(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:r,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:o??(t==null?void 0:t.head)??"",extraBodyBottom:a??(t==null?void 0:t.bodyBottom)??""}));return s}async function dI(e,t){const{baseUrl:n,tenantId:r,pageId:o}=t,i=`${n.replace(/\/+$/,"")}/tenant/${r}/page/${o}`,l=Hi(t),s=await Wi(i,{method:"GET",headers:Gi(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${i} → ${s.status}${s.text?`: ${s.text}`:""}`);return kd(e,s.body,{...t,fetchFn:l})}async function hI(e,t){var d,f;const{baseUrl:n,tenantId:r,pagePath:o,cache:a=!1,update:i=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${r}/pagebypath/${encodeURIComponent(o)}?cache=${a}&update=${i}`,u=Hi(t),c=await Wi(s,{method:"GET",headers:Gi(t)},u);if(!c.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${c.status}${c.text?`: ${c.text}`:""}`);const h=((d=c.body)==null?void 0:d.data)??((f=c.body)==null?void 0:f.payload)??c.body;return kd(e,h,{...t,fetchFn:u})}async function fI(e){const{baseUrl:t,tenantId:n,templateId:r,isGlobal:o=!1}=e,a=t.replace(/\/+$/,""),i=Hi(e),l=o?`${a}/global-template/${r}`:`${a}/tenant/${n}/template/${r}`,s=o?{"Content-Type":"application/json"}:Gi(e),u=await Wi(l,{method:"GET",headers:s},i);if(u.ok)return u.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${u.status}${u.text?`: ${u.text}`:""}`)}function pI(e,t){if(!t)return e;const n=new Map;for(const o of e)o!=null&&o.id&&n.set(o.id,o);if(Array.isArray(t)){for(const o of t){if(!(o!=null&&o.id))continue;const i={...n.get(o.id)??{id:o.id,name:o.id,type:"text"},...o};n.set(o.id,i)}return Array.from(n.values())}const r=Object.entries(t).filter(([,o])=>o!=null);if(r.length===0)return e;for(const[o,a]of r){const i=String(a),l=n.get(o);l?n.set(o,{...l,value:i}):n.set(o,{id:o,name:o,type:"text",value:i})}return Array.from(n.values())}async function gI(e,t){const n=await fI(t),r=nI(n)??(e&&Object.keys(e).length>0?e:null);if(!r)return"";const o=tI(n),a=pI(o,t.variables),i=zi(r,a);return Fi(i,t)}function mI(e,t){return lI(t)?gI(e,t):iI(t)?hI(e,t):aI(t)?dI(e,t):Fi(e,t)}function bI(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function xI(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(r=>t[r]??r)}))),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(r=>t[r]??r)})),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(r=>t[r]??r)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(r=>t[r]??r)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(r=>t[r]??r)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(r=>t[r]??r)}:{}})))))}function en(e,t){const n=oo(e,t),r={};n.forEach(a=>{r[a]=bI()});const o={};return n.forEach(a=>{const i=JSON.parse(JSON.stringify(e[a]));xI(i,r),o[r[a]]=i}),{newBlocks:o,idMap:r,newRootId:r[t]}}function vI(e,t,n){var r,o,a,i;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const u=s;if(u.data&&Array.isArray(u.data.childrenIds)&&u.data.childrenIds.includes(t)){const c=u.data.childrenIds.indexOf(t),h=[...u.data.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,childrenIds:h}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.childrenIds)&&u.data.props.childrenIds.includes(t)){const c=u.data.props.childrenIds.indexOf(t),h=[...u.data.props.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,childrenIds:h}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.columns)){const c=u.data.props.columns;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,columns:p}}}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.cells)){const c=u.data.props.cells;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,cells:p}}}}}}}if(u.type==="PricingAccordion"&&((r=u.data)!=null&&r.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].cardChildrenIds)?c[h].cardChildrenIds:[],f=Array.isArray(c[h].detailChildrenIds)?c[h].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[f,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),w=c.map(k=>({...k,cardChildrenIds:Array.isArray(k.cardChildrenIds)?[...k.cardChildrenIds]:[],detailChildrenIds:Array.isArray(k.detailChildrenIds)?[...k.detailChildrenIds]:[]}));return w[h][b].splice(x+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:w}}}}}}}if((u.type==="TabsBlock"||u.type==="VerticalAccordion"||u.type==="Carousel"||u.type==="Marquee"||u.type==="Pagination")&&((o=u.data)!=null&&o.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].contentChildrenIds)?c[h].contentChildrenIds:[];if(d.includes(t)){const f=d.indexOf(t),p=c.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[h].contentChildrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:p}}}}}}}if(u.type==="MenuPicker"&&((a=u.data)!=null&&a.props))for(const c of["startChildrenIds","endChildrenIds"]){const h=Array.isArray(u.data.props[c])?u.data.props[c]:[];if(h.includes(t)){const d=h.indexOf(t),f=[...h];return f.splice(d+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,[c]:f}}}}}}if(u.type==="Accordion"&&((i=u.data)!=null&&i.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=c[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=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}}}}return null}function kI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="FlexColumns")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:a,columnIndex:s}}}return null}function wI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(!((i==null?void 0:i.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:a,cellIndex:s}}}return null}function SI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="Pagination")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:a,cellIndex:s}}}return null}function $I(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=i==null?void 0:i.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.items;if(Array.isArray(s)){for(let u=0;u<s.length;u++)if(Array.isArray((o=s[u])==null?void 0:o.contentChildrenIds)&&s[u].contentChildrenIds.includes(t))return{parentId:a,itemIndex:u,parentType:l}}}return null}function Qs(e,t,n){var d,f,p;if(!e[t])return null;const r=e[t];if((r==null?void 0:r.type)==="TabsBlock"){const x=Array.isArray((f=(d=r.data)==null?void 0:d.props)==null?void 0:f.items)?r.data.props.items:[];if(x.length>=10)return null;const w=x[0]??{},k=Array.isArray(w.contentChildrenIds)?w.contentChildrenIds:[];let S={...e};const v=[];let _=null;for(const I of k){if(!S[I])continue;const{newBlocks:R,newRootId:E}=en(S,I);S={...S,...R},v.push(E),_||(_=E)}const y=_??t,C=[...x,{label:w.label??`Tab ${x.length+1}`,contentChildrenIds:v}];return S={...S,[t]:{...r,data:{...r.data,props:{...r.data.props,items:C}}}},{updatedDocument:S,newRootId:y}}const o=wI(e,n);if(o){const b=e[o.gridId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],_=S.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)?S.length:w*k,y=Array.from({length:_},(M,P)=>S[P]??{childrenIds:[]});let C=y.findIndex((M,P)=>P>o.cellIndex&&(!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0));if(C===-1&&(C=y.findIndex(M=>!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0)),C===-1)return null;const{newBlocks:I,newRootId:R}=en(e,t),E=y.map((M,P)=>P===C?{...M,childrenIds:[...(M==null?void 0:M.childrenIds)??[],R]}:M);return{updatedDocument:{...e,...I,[o.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:E}}}},newRootId:R}}const a=SI(e,n);if(a){const b=e[a.paginationId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],v=Math.max(w*k,S.length),_=Array.from({length:v},(O,M)=>S[M]??{childrenIds:[]});let y=_.findIndex((O,M)=>M>a.cellIndex&&(!Array.isArray(O==null?void 0:O.childrenIds)||O.childrenIds.length===0));y===-1&&(y=_.findIndex(O=>!Array.isArray(O==null?void 0:O.childrenIds)||O.childrenIds.length===0)),y===-1&&(_.push({childrenIds:[]}),y=_.length-1);const{newBlocks:C,newRootId:I}=en(e,t),R=_.map((O,M)=>M===y?{...O,childrenIds:[...(O==null?void 0:O.childrenIds)??[],I]}:O);return{updatedDocument:{...e,...C,[a.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:R}}}},newRootId:I}}const i=kI(e,n);if(i){const b=e[i.flexId],x=b.data.props??{},w=x.columnsCount??2,k=Array.isArray(x.columns)?x.columns:[],S=Array.from({length:w},(R,E)=>k[E]??{childrenIds:[]});let v=S.findIndex((R,E)=>E>i.columnIndex&&(!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0));if(v===-1&&(v=S.findIndex(R=>!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0)),v===-1)return null;const{newBlocks:_,newRootId:y}=en(e,t),C=S.map((R,E)=>E===v?{...R,childrenIds:[...(R==null?void 0:R.childrenIds)??[],y]}:R);return{updatedDocument:{...e,..._,[i.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:C}}}},newRootId:y}}const l=$I(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,k=x.findIndex((C,I)=>I>l.itemIndex&&(!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0));if(k===-1&&(k=x.findIndex(C=>!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0)),k===-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,k=x.length-1}else return null;const{newBlocks:S,newRootId:v}=en(w,t),_=x.map((C,I)=>I===k?{...C,...l.parentType==="TabsBlock"&&!(C!=null&&C.label)?{label:`Tab ${I+1}`}:{},contentChildrenIds:[...(C==null?void 0:C.contentChildrenIds)??[],v]}:C);return{updatedDocument:{...w,...S,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:_}}}},newRootId:v}}const{newBlocks:s,newRootId:u}=en(e,t),c={...e,...s},h=vI(c,n,u);return h&&(c[h.parentId]=h.updatedParent),{updatedDocument:c,newRootId:u}}function wd(e,t){const n=o=>Array.isArray(o)?o.filter(a=>!t.has(a)):o,r={};for(const[o,a]of Object.entries(e)){if(t.has(o))continue;const i=a;if(!(i!=null&&i.data)){r[o]=i;continue}const l={...i.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(u=>({...u,childrenIds:n(u.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(u=>u===null||typeof u!="object"?u:{...u,childrenIds:n(u.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(u=>({...u,...u.titleChildrenIds!==void 0?{titleChildrenIds:n(u.titleChildrenIds)}:{},...u.contentChildrenIds!==void 0?{contentChildrenIds:n(u.contentChildrenIds)}:{},...u.cardChildrenIds!==void 0?{cardChildrenIds:n(u.cardChildrenIds)}:{},...u.detailChildrenIds!==void 0?{detailChildrenIds:n(u.detailChildrenIds)}:{}}))),l.props=s}r[o]={...i,data:l}}return r}function _I(e){var r;const t=e==null?void 0:e.type,n=((r=e==null?void 0:e.data)==null?void 0:r.props)??{};if(t==="Grid"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],s=i.some(c=>(c==null?void 0:c.colStart)!=null||(c==null?void 0:c.rowStart)!=null||(c==null?void 0:c.colSpan)!=null||(c==null?void 0:c.rowSpan)!=null)?i.length:o*a,u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=i[h])==null?void 0:d.childrenIds)?i[h].childrenIds:[]}});return{slotCount:s,slots:u}}if(t==="FlexColumns"){const o=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),a=Array.isArray(n.columns)?n.columns:[],i=Array.from({length:o},(l,s)=>{var u;return{childrenIds:Array.isArray((u=a[s])==null?void 0:u.childrenIds)?a[s].childrenIds:[]}});return{slotCount:o,slots:i}}if(t==="Carousel"||t==="Marquee"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="TabsBlock"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="Pagination"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],l=Math.max(o*a,i.length),s=Array.from({length:l},(u,c)=>{var h;return{childrenIds:Array.isArray((h=i[c])==null?void 0:h.childrenIds)?i[c].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function hr(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const Tr=new WeakMap;function xo(e,t){const n=e[t];if(!n||typeof n!="object")return null;const r=Tr.get(n);if(r!==void 0)return r&&r.containerId===t?r:r&&{...r,containerId:t};if(!hr(n.type))return Tr.set(n,null),null;const o=_I(n);if(!o)return Tr.set(n,null),null;const{slotCount:a,slots:i}=o,l=i.findIndex(c=>c.childrenIds.length>0),s=i.filter(c=>c.childrenIds.length===0).length,u={containerId:t,type:n.type,slotCount:a,slots:i,firstFilledSlot:l,emptySlotCount:s};return Tr.set(n,u),u}function oi(e,t){for(const[n,r]of Object.entries(e)){if(!hr(r==null?void 0:r.type))continue;const o=xo(e,n);if(o!=null&&o.slots.some(a=>a.childrenIds.includes(t)))return n}return null}function Sd(e,t,n,r){var u;const o=e[t];if(!o||!hr(o.type))return e;const a=((u=o.data)==null?void 0:u.props)??{};if(o.type==="Grid"){let c=a.columnsCount??2,h=a.rowsCount??2;if(c*h>=n)return e;r==="columns"?c=Math.max(c,Math.ceil(n/Math.max(1,h))):h=Math.max(h,Math.ceil(n/Math.max(1,c)));const d=c*h,f=Array.isArray(a.cells)?a.cells:[],p=Array.from({length:d},(b,x)=>f[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:c,rowsCount:h,cells:p}}}}}if(o.type==="Carousel"){const h=Array.isArray(a.items)?a.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]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Marquee"){const h=Array.isArray(a.items)?a.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]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="TabsBlock"){const h=Array.isArray(a.items)?a.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]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Pagination"){const c=a.columnsCount??2,h=a.rowsCount??2,d=Array.isArray(a.cells)?a.cells:[];if(Math.max(c*h,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,cells:p}}}}}if((a.columnsCount??(Array.isArray(a.columns)?a.columns.length:2))>=n)return e;const l=Array.isArray(a.columns)?a.columns:[],s=Array.from({length:n},(c,h)=>l[h]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:n,columns:s}}}}}function $d(e,t,n){var u;const r=e[t];if(!r||!hr(r.type))return e;const o=xo(e,t);if(!o)return e;let a=-1;o.slots.forEach((c,h)=>{c.childrenIds.length>0&&(a=h)});const i=Math.max(n,a+1,1);if(i>=o.slotCount)return e;const l=((u=r.data)==null?void 0:u.props)??{};if(r.type==="Pagination"){const c=(l.columnsCount??2)*(l.rowsCount??2),h=Math.max(i,c);if(h>=o.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,cells:d.slice(0,h)}}}}}if(r.type==="Carousel"||r.type==="Marquee"||r.type==="TabsBlock"){const c=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,items:c.slice(0,i)}}}}}if(r.type==="Grid"){const c=l.columnsCount??2,h=l.rowsCount??2,d=Math.max(1,Math.ceil(i/Math.max(1,c)));if(d>=h)return e;const f=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,rowsCount:d,cells:f.slice(0,c*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,columnsCount:i,columns:s.slice(0,i)}}}}}function CI(e,t,n,r="columns"){const o=t==null?void 0:t.sourceBlockId;if(!o||!e[o])return null;const a=Math.max(1,n);let i=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===a)return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<a){let h=!1;for(;s<a;){const d=l.length>0?l[l.length-1]:o;let f=Qs(i,o,d);if(!f){const p=oi(i,o);if(!p){h=!0;break}const b=xo(i,p),x=((b==null?void 0:b.slotCount)??0)+(a-s),w=Sd(i,p,x,r);if(w===i){h=!0;break}if(i=w,f=Qs(i,o,d),!f){h=!0;break}}i=f.updatedDocument,l=[...l,f.newRootId],s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:h}}const u=a,c=l.slice(u-1);if(c.length>0){const h=new Set;for(const f of c)for(const p of oo(i,f))h.add(p);i=wd(i,h);const d=oi(i,o);d&&(i=$d(i,d,u)),l=l.slice(0,u-1),s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=or;exports.ReaderBlock=Pe;exports.ReaderBlockSchema=hd;exports.ReaderDocumentSchema=ky;exports.cloneSubtree=en;exports.extractApiRows=Di;exports.findRepeatableContainerOf=oi;exports.getRepeatableContainerInfo=xo;exports.growContainerToFit=Sd;exports.isRepeatableContainerType=hr;exports.reconcileRepeatFieldRowCount=CI;exports.refreshApiDataSources=md;exports.refreshDocumentApiDataSources=bd;exports.removeSubtree=wd;exports.renderToStaticHtml=mI;exports.renderToStaticMarkup=Bi;exports.shrinkContainerToFit=$d;