@windstream/react-shared-components 0.0.95 → 0.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful/index.esm.js +1 -1
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +1 -1
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/primary-hero/index.tsx +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import o,{forwardRef as i,useRef as s,useState as a,useEffect as l,useCallback as c,useMemo as d,createContext as u,useLayoutEffect as h,useContext as m,useInsertionEffect as p,createElement as f,useId as g,Children as v,isValidElement as y,cloneElement as b,Fragment as x,useReducer as w}from"react";import k from"next/image";import N,{flushSync as C}from"react-dom";function P(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=P(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function E(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=P(e))&&(r&&(r+=" "),r+=t);return r}const T=e=>{const t=D(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),S(n,t)||M(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},S=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?S(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},A=/^\[(.+)\]$/,M=e=>{if(A.test(e)){const t=A.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},D=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)V(n[e],r,e,t);return r},V=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:L(t,e)).classGroupId=n)}if("function"==typeof e)return B(e)?void V(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{V(o,L(t,e),n,r)})})},L=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},B=e=>e.isThemeGetter,j=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},R=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(0===r&&0===o){if(":"===a){t.push(e.slice(i,s)),i=s+1;continue}if("/"===a){n=s;continue}}"["===a?r++:"]"===a?r--:"("===a?o++:")"===a&&o--}const s=0===t.length?e:e.substring(i),a=F(s);return{modifiers:t,hasImportantModifier:a!==s,baseClassName:a,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},F=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,I=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},O=/\s+/;function $(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=z(e))&&(r&&(r+=" "),r+=t);return r}const z=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=z(e[r]))&&(n&&(n+=" "),n+=t);return n};function _(e,...t){let n,r,o,i=function(a){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:j(e.cacheSize),parseClassName:R(e),sortModifiers:I(e),...T(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(O);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:c,modifiers:d,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:m}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!m,f=r(p?h.substring(0,m):h);if(!f){if(!p){l=t+(l.length>0?" "+l:l);continue}if(f=r(h),!f){l=t+(l.length>0?" "+l:l);continue}p=!1}const g=i(d).join(":"),v=u?g+"!":g,y=v+f;if(s.includes(y))continue;s.push(y);const b=o(f,p);for(let e=0;e<b.length;++e){const t=b[e];s.push(v+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i($.apply(null,arguments))}}const U=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},W=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,G=/^\((?:(\w[\w-]*):)?(.+)\)$/i,H=/^\d+\/\d+$/,Y=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,X=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,q=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,K=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,J=e=>H.test(e),Q=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>!!e&&Number.isInteger(Number(e)),te=e=>e.endsWith("%")&&Q(e.slice(0,-1)),ne=e=>Y.test(e),re=()=>!0,oe=e=>X.test(e)&&!q.test(e),ie=()=>!1,se=e=>K.test(e),ae=e=>Z.test(e),le=e=>!de(e)&&!ge(e),ce=e=>Ne(e,Te,ie),de=e=>W.test(e),ue=e=>Ne(e,Se,oe),he=e=>Ne(e,Ae,Q),me=e=>Ne(e,Pe,ie),pe=e=>Ne(e,Ee,ae),fe=e=>Ne(e,De,se),ge=e=>G.test(e),ve=e=>Ce(e,Se),ye=e=>Ce(e,Me),be=e=>Ce(e,Pe),xe=e=>Ce(e,Te),we=e=>Ce(e,Ee),ke=e=>Ce(e,De,!0),Ne=(e,t,n)=>{const r=W.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},Ce=(e,t,n=!1)=>{const r=G.exec(e);return!!r&&(r[1]?t(r[1]):n)},Pe=e=>"position"===e||"percentage"===e,Ee=e=>"image"===e||"url"===e,Te=e=>"length"===e||"size"===e||"bg-size"===e,Se=e=>"length"===e,Ae=e=>"number"===e,Me=e=>"family-name"===e,De=e=>"shadow"===e,Ve=()=>{const e=U("color"),t=U("font"),n=U("text"),r=U("font-weight"),o=U("tracking"),i=U("leading"),s=U("breakpoint"),a=U("container"),l=U("spacing"),c=U("radius"),d=U("shadow"),u=U("inset-shadow"),h=U("text-shadow"),m=U("drop-shadow"),p=U("blur"),f=U("perspective"),g=U("aspect"),v=U("ease"),y=U("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ge,de],x=()=>[ge,de,l],w=()=>[J,"full","auto",...x()],k=()=>[ee,"none","subgrid",ge,de],N=()=>["auto",{span:["full",ee,ge,de]},ee,ge,de],C=()=>[ee,"auto",ge,de],P=()=>["auto","min","max","fr",ge,de],E=()=>["auto",...x()],T=()=>[J,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],S=()=>[e,ge,de],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",be,me,{position:[ge,de]}],M=()=>["auto","cover","contain",xe,ce,{size:[ge,de]}],D=()=>[te,ve,ue],V=()=>["","none","full",c,ge,de],L=()=>["",Q,ve,ue],B=()=>[Q,te,be,me],j=()=>["","none",p,ge,de],R=()=>["none",Q,ge,de],F=()=>["none",Q,ge,de],I=()=>[Q,ge,de],O=()=>[J,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[re],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[le],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ne],shadow:[ne],spacing:["px",Q],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",J,de,ge,g]}],container:["container"],columns:[{columns:[Q,de,ge,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[ee,"auto",ge,de]}],basis:[{basis:[J,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,J,"auto","initial","none",de]}],grow:[{grow:["",Q,ge,de]}],shrink:[{shrink:["",Q,ge,de]}],order:[{order:[ee,"first","last","none",ge,de]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],w:[{w:[a,"screen",...T()]}],"min-w":[{"min-w":[a,"screen","none",...T()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",n,ve,ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ge,he]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",te,de]}],"font-family":[{font:[ye,de,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ge,de]}],"line-clamp":[{"line-clamp":[Q,"none",ge,he]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",ge,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",ge,ue]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[Q,"auto",ge,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ee,ge,de],radial:["",ge,de],conic:[ee,ge,de]},we,pe]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Q,ge,de]}],"outline-w":[{outline:["",Q,ve,ue]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",d,ke,fe]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",u,ke,fe]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[Q,ue]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",h,ke,fe]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[Q,ge,de]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Q]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[ge,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Q]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,de]}],filter:[{filter:["","none",ge,de]}],blur:[{blur:j()}],brightness:[{brightness:[Q,ge,de]}],contrast:[{contrast:[Q,ge,de]}],"drop-shadow":[{"drop-shadow":["","none",m,ke,fe]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",Q,ge,de]}],"hue-rotate":[{"hue-rotate":[Q,ge,de]}],invert:[{invert:["",Q,ge,de]}],saturate:[{saturate:[Q,ge,de]}],sepia:[{sepia:["",Q,ge,de]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,de]}],"backdrop-blur":[{"backdrop-blur":j()}],"backdrop-brightness":[{"backdrop-brightness":[Q,ge,de]}],"backdrop-contrast":[{"backdrop-contrast":[Q,ge,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,ge,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,ge,de]}],"backdrop-invert":[{"backdrop-invert":["",Q,ge,de]}],"backdrop-opacity":[{"backdrop-opacity":[Q,ge,de]}],"backdrop-saturate":[{"backdrop-saturate":[Q,ge,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,ge,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",ge,de]}],ease:[{ease:["linear","initial",v,ge,de]}],delay:[{delay:[Q,ge,de]}],animate:[{animate:["none",y,ge,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,ge,de]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:I()}],"skew-x":[{"skew-x":I()}],"skew-y":[{"skew-y":I()}],transform:[{transform:[ge,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:O()}],"translate-x":[{"translate-x":O()}],"translate-y":[{"translate-y":O()}],"translate-z":[{"translate-z":O()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,de]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[Q,ve,ue,he]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Le=(e,t,n)=>{void 0!==n&&(e[t]=n)},Be=(e,t)=>{if(t)for(const n in t)Le(e,n,t[n])},je=(e,t)=>{if(t)for(const n in t)Re(e,t,n)},Re=(e,t,n)=>{const r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)},Fe=((e,...t)=>"function"==typeof e?_(Ve,e,...t):_(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(Le(e,"cacheSize",t),Le(e,"prefix",n),Le(e,"experimentalParseClassName",r),Be(e.theme,i.theme),Be(e.classGroups,i.classGroups),Be(e.conflictingClassGroups,i.conflictingClassGroups),Be(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Le(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),je(e.theme,o.theme),je(e.classGroups,o.classGroups),je(e.conflictingClassGroups,o.conflictingClassGroups),je(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Re(e,o,"orderSensitiveModifiers"),e))(Ve(),e),...t))({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),Ie=(...e)=>Fe(E(...e)),Oe=i(({children:t,className:n="",style:r,disabled:o,...i},s)=>e("button",{ref:s,className:Ie(n),style:r,disabled:o,...i,children:t}));Oe.displayName="Button";const $e=t=>{const{open:n,children:r}=t,o=s(null),[i,c]=a(0);return l(()=>{const e=o.current;if(!e)return;const t=()=>{c(n?e.scrollHeight:0)};let r;return t(),n&&(r=new ResizeObserver(()=>t()),r.observe(e)),()=>{r&&r.disconnect()}},[n,r]),e("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:i,opacity:n?1:0},"aria-hidden":!n,children:e("div",{ref:o,children:r})})};$e.displayName="Collapse";const ze=({name:t,fill:n=0,opticalSize:r="48dp",weight:o="200",emphasis:i=145,size:s=24,color:a="currentColor",style:l={},className:c,onClick:d,dataTestId:u})=>{const h={fontVariationSettings:`'FILL' ${n}, 'wght' ${o}, 'GRAD' ${i}, 'opsz' ${r.substring(0,2)}`,fontSize:`${s}px`,fontFamily:"'Material Symbols Rounded'",color:a||"currentColor",...l};return e("span",{style:h,className:Ie("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:d,"data-testid":u,children:t})};ze.displayName="MaterialIcon";const _e=n=>{const{title:r,defaultOpen:o,children:i,containerClassName:s,titleClassName:c,className:d,buttonClassName:u,openOnlyOnDesktop:h,borderRadiusNone:m=!1}=n,[p,f]=a(Boolean(!1));return l(()=>{if(h){const e=window.innerWidth>=1024;f(e)}else f(Boolean(o))},[h,o]),t("div",{className:Ie(m?"rounded-none border":"rounded-surface-xs border",s),children:[t(Oe,{type:"button",className:Ie(m?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",u),onClick:()=>f(e=>!e),children:[e("span",{className:Ie("label5",c),children:r}),e(ze,{name:p?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e($e,{open:p,children:e("div",{className:Ie("px-4 py-4",d),children:i})})]})};_e.displayName="Accordion";const Ue=i(({children:e,as:t,className:n="",style:r,...i},s)=>{const a=t||"p";return o.createElement(a,{ref:s,className:n,style:r,...i},e)});Ue.displayName="Text";const We=({items:n,title:r,background:o="white",enableHeading:i=!1,maxWidth:s=!0})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[o]} component-container`,children:t("div",{className:(s?"max-w-120 xl:mx-auto":"")+" mx-5 my-8 lg:mx-20 lg:my-18",children:[e("div",{children:e(Ue,{as:i?"h1":"h2",className:"heading1 text-left lg:text-center",children:r})}),e("div",{className:"question-answer-section mt-10 lg:mt-16",children:null==n?void 0:n.map((t,n)=>e("div",{children:e(_e,{title:t.title,containerClassName:"border-0 border-b-[1px]",buttonClassName:"px-0 label1",borderRadiusNone:!0,openOnlyOnDesktop:!0,children:e(Ue,{children:t.description})})},`item-${n}`))})]})}),Ge=e=>{let t="";return e.base&&(t="x-large"===e.base?"label3 ":"label4 "),e.md&&(t+="x-large"===e.md?"md:label3 ":"md:label4 "),e.lg&&(t+="x-large"===e.lg?"lg:label3 ":"lg:label4 "),t.trim()},He=i(({variant:r="primary_brand",isLoading:o=!1,text:i,label:s,disabled:a,fullWidth:l,size:c={base:"medium"},as:d="button",...u},h)=>{const m=(()=>{const e=Ie((e=>{let t="";return e.base&&(t=`btn-${e.base} `),e.md&&(t+=`${(e=>{switch(e){case"small":return"md:btn-small";case"medium":return"md:btn-medium";case"large":return"md:btn-large";case"x-large":return"md:btn-x-large"}})(e.md)} `),e.lg&&(t+=`lg:btn-${e.lg} `),t.trim()})(c),"rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top",l&&"w-full"),t=Ie((a||o)&&"cursor-not-allowed",o&&"pl-7",a&&"bg-bg-fill-brand-disabled");return Ie(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand",primary_inverse:"bg-bg-surface-inverse text-text-inverse enabled:hover:bg-bg-fill-inverse-hover focus:ring-bg-surface-inverse",secondary:"border-2 border-border-secondary-on-bg-fill bg-bg text-text focus:ring-bg-surface-inverse"}[r]||"",t)})();let p=`button--${r}`;o&&(p+=" button--loading"),a&&(p+=" button--disabled");const f=`${p} ${m}`,g=t(n,{children:[o?e(ze,{name:"progress_activity",className:"animate-spin"}):null,s?t("span",{className:"flex flex-col",children:[e("span",{className:Ie(Ge(c)),children:s}),i]}):i]});return"a"===d?e("a",{ref:h,className:Ie(f),...u,children:g}):e("button",{ref:h,className:Ie(f),disabled:a||o,...u,children:g})});He.displayName="BrandButton";const Ye=i(({children:t,href:n,className:r="",onClick:o,variant:i="unstyled",style:s,external:a=!1,disabled:l=!1,...c},d)=>{const u=(()=>{if("unstyled"===i)return"";const e={default:"text-text underline"},t=[l?"opacity-60 cursor-not-allowed pointer-events-none":"cursor-pointer"].filter(Boolean).join(" ");return["transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",e[i]||e.default,t].filter(Boolean).join(" ")})(),h={...c,ref:d,className:Ie(u,`link--${i}`,l&&"link--disabled",r),style:s,href:l?void 0:n,onClick:e=>{l?e.preventDefault():null==o||o(e)},...a&&!l&&{target:"_blank",rel:"noopener noreferrer"},...l&&{"aria-disabled":!0,tabIndex:-1}};return e("a",{...h,children:t})});Ye.displayName="Link";const Xe=n=>{const{showButtonAs:r="solid",buttonVariant:o="primary_brand",buttonLabel:i,buttonPrefix:s,href:a,target:l="_blank",anchorId:c,linkClassName:d,linkVariant:u,fullWidth:h,preDefinedFunctionExecution:m,renderCheckPlans:p,buttonClassName:f,clickToOpen:g,tabmodalNameToOpen:v,onModalButtonClick:y,onClick:b,iconName:x,...w}=n;if("check availability"===m){return null==p?void 0:p({ctaText:i,buttonVariant:o,showButtonAs:r,cta:{...n}})}function k(){"modal"===g&&(null==y||y(v))}function N(e){k(),null==b||b(e)}function C(e){k(),null==b||b(e)}let P=e(Oe,{onClick:C,className:f,...w});switch(r){case"solid":P=e(He,a?{as:"a",href:a,id:c,variant:o,text:i,label:s,fullWidth:h,onClick:N}:{id:c,variant:o,text:i,label:s,fullWidth:h,onClick:C});break;case"text":P=t(Ye,{href:a,target:l,variant:u||"default",className:`text-text-brand ${d||""}`,onClick:N,children:[i," ",x&&e(ze,{name:x,size:24})]})}return P},qe={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},Ke=i(({className:t,...n},r)=>{const o="string"==typeof n.src?n.src:"",i=o.toLowerCase().split("?")[0]||"",s=o.includes("images.ctfassets.net")&&i.endsWith(".svg");return e(k,{ref:r,className:Ie(t),...n,unoptimized:s})});Ke.displayName="NextImage";const Ze=({card:n,lgWidth:r,mdWidth:o})=>{var i,s,a;const l=(null===(i=n.imageAlignment)||void 0===i?void 0:i.toLowerCase())||"left",c="left"===l?"lg:items-start":"right"===l?"lg:items-end":"lg:items-center";return e("div",{className:`callout-card ${o} ${r} w-full ${null!==(a=qe[null!==(s=n.backgroundColor)&&void 0!==s?s:""])&&void 0!==a?a:""}`,children:t("div",{className:`card-template flex h-full flex-col items-center gap-8 p-8 text-center ${c}`,children:[e("div",{className:"card-header",children:(t=>{var n,r,o;if(!t.image)return null;const i=null===(n=t.imageView)||void 0===n?void 0:n.toLowerCase();return e(Ke,"full"===i?{width:400,height:280,src:t.image,alt:null!==(r=t.title)&&void 0!==r?r:"card-icon",className:"rounded-3xl"}:{width:88,height:88,src:t.image,alt:null!==(o=t.title)&&void 0!==o?o:"card-icon"})})(n)}),t("div",{className:"card-body flex flex-col gap-3 text-start",children:[n.title&&e(Ue,{as:"h5",className:"heading5 font-black",children:n.title}),n.body&&e(Ue,{as:"div",className:"body1",children:n.body})]}),n.cta&&e("div",{className:"card-footer",children:e(Xe,{linkVariant:"unstyled",linkClassName:"label1 flex items-center text-text gap-2",...n.cta,iconName:"expand_circle_right"})})]})})},Je=({title:n,items:r,enableHeading:o=!1,subtitle:i,color:s="dark",maxWidth:a=!0,maxCardsPerRow:l})=>{const c={1:" lg:w-full",2:" lg:w-[calc(50%-0.75rem)]",3:" lg:w-[calc(33.3333%-1rem)]",4:" lg:w-[calc(25%-1.125rem)]"}[l||4]||" lg:w-[calc(25%-1.125rem)]",d=1===r.length?" md:w-full":" md:w-[calc(50%-1rem)]";return e("div",{className:"component-container",children:e("div",{className:`mx-5 mb-5 mt-12 ${a?"max-w-120 xl:mx-auto":""} ${"dark"==s?"text-text":"text-white"}`,children:t("div",{className:"callout-container flex flex-col gap-8",children:[t("div",{className:"title-holder",children:[n&&e(Ue,{as:o?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:n}),i&&e(Ue,{as:o?"h2":"h3",className:"subheading3 mt-3 md:subheading1 md:text-center",children:i})]}),e("div",{className:"card-holder flex flex-wrap items-stretch justify-center gap-8 self-stretch lg:gap-6",children:r.map((t,n)=>e(Ze,{card:t,lgWidth:c,mdWidth:d},n))})]})})})},Qe=({fields:t})=>e("div",{children:e(Ue,{children:"Cards"})}),et={green:"#209A61",yellow:"#F5FF36"},tt=i(({children:t,className:n="",variant:r="unstyled",style:o,...i},s)=>{const a=Ie("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e("li",{ref:s,className:a,style:o,...i,children:t})});tt.displayName="ListItem";const nt=i(({type:t="ul",items:n,className:r="",renderItem:o,children:i,variant:s="unstyled",style:a,...l},c)=>{const d=(()=>{if("unstyled"===s)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),u={className:Ie(d,`list--${t}`,`list--${s}`,r),style:a,...l,children:i||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e(tt,{className:t.className,variant:s,children:t.content},t.id||n)):null)};return e("ol"===t?"ol":"ul",{...u,ref:c})});nt.displayName="List";const rt=n=>{const{items:r,listIconName:o="check",listItemClassName:i,iconSize:s=20,iconPosition:a="center",iconColor:l="green"}=n,c="disc"!==o;return(null==r?void 0:r.length)?e(nt,{className:"mt-2 space-y-1",variant:c?"unstyled":"default",children:r.map((n,r)=>t(tt,{variant:c?"unstyled":"default",className:Ie(`${c?"flex":""} ${"top"===a?"items-start":"items-center"} gap-2 text-text-secondary`,i),children:[c&&e("div",{children:e(ze,{name:o,size:s,color:et[l],weight:"600",className:"top"===a?"mt-1":""})}),e(Ue,{as:"div",children:n})]},r))}):null};rt.displayName="Checklist";const ot=i(({as:t,className:n="",...r},o)=>{const i=Ie(n);if(t){return e(t,{ref:o,className:i,...r})}return e("img",{ref:o,className:i,...r})});ot.displayName="Image";const it=({onSelect:r,speed:o,isSelected:i=!1,renderCheckPlans:s,cta:l,techType:c,isMax:d})=>{const[u,h]=a(!1),m=`btn-medium rounded-2xl pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${i?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `,p=null==s?void 0:s({speedCardConfig:{isModalOpen:u,setModalOpen:()=>{h(!1)},speed:o,techType:c,isMax:d},cta:l});return t(n,{children:[t(Oe,{onClick:()=>{h(!0),r()},className:Ie(m,"w-full justify-between pl-5 pr-5"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${o}`,"data-track-element-clicked":"speed_plan_card",children:[e("span",{children:"Select plan"}),e("span",{className:"inline-flex h-6 w-6 items-center justify-center rounded-full "+(i?"bg-bg-fill-surface-inverse text-text-inverse":"bg-bg text-text"),children:e(ze,{name:"chevron_right",fill:1,size:24})})]}),p]})},st=({planName:r,planSubtext:o,speed:i,price:s,description:l,bestValue:c=!1,bestValueText:d="best value",giftBadge:u,innerBadge:h,theme:m="light",featuresTitle:p="Business Ready Internet features",features:f=[],isExpanded:g,onToggleExpand:v,onCtaClick:y,renderCheckPlans:b,cta:x,techType:w,ismaxSpeed:k})=>{const[N,C]=a(!1),P=void 0!==g?g:N,E="dark"===m;return t("article",{className:Ie("relative flex h-full w-full max-w-[392px] flex-col",!c&&"pt-[28px]"),children:[c&&e("div",{className:"rounded-t-[20px] bg-bg-fill-brand-accent px-4 py-1 text-center text-sm font-bold text-text",children:d}),t("div",{className:Ie("flex flex-grow flex-col gap-6 rounded-[20px] px-5 shadow-cardDrop",E?"bg-bg-fill-inverse text-white":"bg-white text-text",c?"rounded-t-none":""),children:[t("header",{className:"overflow-none flex items-start justify-between gap-4 pt-7",children:[t("div",{className:"flex flex-col",children:[e(Ue,{as:"h3",className:Ie("subheading2 whitespace-nowrap font-black",E?"text-bg-fill-brand-accent":"text-text-brand"),children:r}),e(Ue,{as:"p",className:`text-label3 font-black ${E?"text-bg-fill-brand-accent":"text-text-brand"} md:whitespace-nowrap`,children:o})]}),t("div",{className:"flex items-start",children:[e("span",{className:"text-xl font-normal",children:"$"}),e("span",{className:"text-subheading6 font-medium leading-none",children:s.split(".")[0]}),t("span",{className:"text-sm font-black",children:[s.split(".")[1],"/mo"]})]})]}),e("section",{children:e(Ue,{className:Ie("text-base",E?"text-white":"text-text"),children:l})}),e("div",{className:Ie("flex-col items-center rounded-xl p-2",E?"bg-bg-surface-inverse":"bg-gray-200"),children:u&&(null==u?void 0:u.map(n=>t("div",{className:"flex items-center gap-2 p-1",children:[e(ot,{src:n.icon,alt:n.title,width:24,height:24}),e(Ue,{className:"text-sm font-bold",children:n.title})]},n.title)))}),e(it,{onSelect:y,speed:i,isSelected:E,renderCheckPlans:b,cta:x,techType:w,isMax:k}),f.length>0&&t("section",{className:"flex flex-col gap-6",children:[t(Oe,{onClick:()=>{v?v():C(!N)},className:"group flex w-full items-center justify-between text-left",children:[e(Ue,{as:"h4",className:"text-base font-bold",children:p}),e(ze,{name:"keyboard_arrow_up",fill:1,size:24,className:Ie("transition-transform duration-300",P&&"rotate-180")})]}),t("div",{className:Ie("overflow-hidden transition-all duration-300 ease-in-out",P?"pb-7 opacity-100":"max-h-0 opacity-0"),children:[e("div",{className:"flex flex-col gap-3",children:e(rt,{items:f,iconColor:E?"yellow":"green",listItemClassName:""+(E?"text-white":"text-text")})}),(null==h?void 0:h.badgeIcon)?t("div",{className:"flex items-center gap-2 text-center",children:[e(ot,{src:h.badgeIcon,alt:"Inner Badge",width:12,height:12}),e("span",{className:"text-sm",children:h.badgeText.includes("|")?t(n,{children:[e("span",{className:"font-bold",children:h.badgeText.split("|")[0]}),e("span",{className:"font-normal",children:h.badgeText.split("|")[1]})]}):e(Ue,{className:"font-bold",children:h.badgeText})})]}):null]})]})]})]})},at=({title:n,quote:r,rating:o,author:i,role:s,avatarUrl:a,isActive:l=!1,className:c})=>t("figure",{className:E("flex h-full w-full flex-col rounded-3xl p-6 font-sans transition-all duration-300 md:p-13",l?"bg-white shadow-lg":"bg-gray-50 opacity-60",c),children:[e("header",{children:e(Ue,{as:"h3",className:"mb-4 text-xl font-black lowercase text-text",children:n})}),e("blockquote",{className:"mb-5 flex-grow text-xl leading-relaxed text-text",children:r}),o?e("div",{className:"mb-5 flex gap-1",children:[...Array(5)].map((t,n)=>e(ze,{size:24,name:"star",fill:1,className:E("h-5 w-5",n<o?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null,i&&t("figcaption",{className:"flex items-center gap-3",children:[e("div",{className:"relative h-10 w-10 shrink-0 overflow-hidden rounded-full bg-gray-300",children:a?e(k,{src:a,alt:i,fill:!0,className:"object-cover",sizes:"40px"}):e("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:i.charAt(0)})}),t("div",{className:"flex flex-col",children:[e("cite",{className:"text-sm font-bold not-italic text-text",children:i}),e(Ue,{as:"p",className:"text-xs text-text",children:s})]})]})]});function lt({fields:r,renderCheckPlans:o}){var i,d,u,h;const m=(null===(u=null===(d=null===(i=null==r?void 0:r.items)||void 0===i?void 0:i.items)||void 0===d?void 0:d[0])||void 0===u?void 0:u.benefitsExpanded)||!1,[p,f]=a(m),[g,v]=a({}),[y,b]=a(0),x=(null===(h=null==r?void 0:r.items)||void 0===h?void 0:h.items)||[],w=x.length>2,k=s([]),N=c(()=>{w&&b(e=>(e+3)%x.length)},[w,x.length]),C=c(()=>{w&&b(e=>(e-3+x.length)%x.length)},[w,x.length]);if(l(()=>{if(!w)return;const e=()=>{const e=k.current.filter(Boolean);if(0===e.length)return;e.forEach(e=>{e.style.height="auto"});const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})};e();const t=setTimeout(e,100);return()=>clearTimeout(t)},[w,p,x.length]),!x.length&&!(null==r?void 0:r.title))return null;const P=(t,n,r=!1)=>{var i,s,a,l,c,d,u,h;const m=null===(i=null==t?void 0:t.speed)||void 0===i?void 0:i.split("|"),y=(null==m?void 0:m[0])||"",b=(null==m?void 0:m[1])||"",x=(null===(a=null===(s=null==t?void 0:t.priceSuffix)||void 0===s?void 0:s.split("/"))||void 0===a?void 0:a[0])||"00",w=`${(null==t?void 0:t.price)||"0"}.${x}`,N=(null===(l=null==t?void 0:t.benefits)||void 0===l?void 0:l.items)||[],C=(null==t?void 0:t.highlighted)||!1,P=(null===(d=null===(c=null==t?void 0:t.giftRewards)||void 0===c?void 0:c.list)||void 0===d?void 0:d.items)||[],E={badgeText:t.innerBadge||"",badgeIcon:(null===(u=t.innerBadgeIcon)||void 0===u?void 0:u.url)||""},T=r?g[n]||!1:p;return e("div",{ref:r?void 0:e=>{e&&!k.current.includes(e)&&(k.current[n]=e)},className:Ie(r?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e(st,{planName:y,planSubtext:b,speed:(null==t?void 0:t.speed)||"",techType:(null==t?void 0:t.techType)||"",ismaxSpeed:(null==t?void 0:t.ismaxSpeed)||"",price:w,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:P,innerBadge:E,theme:(null==t?void 0:t.highlighted)?"dark":"light",bestValue:C,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",featuresTitle:null==t?void 0:t.benefitsTitle,features:N,isExpanded:T,onToggleExpand:()=>{r?v(e=>({...e,[n]:!e[n]})):f(!p)},ctaText:(null===(h=null==t?void 0:t.cta)||void 0===h?void 0:h.buttonLabel)||"Select plan",onCtaClick:()=>{},renderCheckPlans:o,cta:t.cta,hostType:"smb"})},n)},E=[...x,...x,...x,...x,...x],T=2*x.length;return w?t(n,{children:[e("div",{className:"flex flex-col gap-6 md:hidden",children:x.map((e,t)=>P(e,t,!0))}),t("div",{className:"relative hidden w-full md:block",children:[t("div",{className:"pointer-events-none absolute -left-16 -right-16 top-[50%] z-30 flex -translate-y-1/2 justify-between px-4 md:px-10",children:[e(Oe,{onClick:N,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Previous",children:e(ze,{name:"arrow_back",size:24})}),e(Oe,{onClick:C,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Next",children:e(ze,{name:"arrow_forward",size:24})})]}),e("div",{className:"mx-auto max-w-[1280px] overflow-hidden",children:e("div",{className:"flex items-stretch gap-4 pb-4 transition-transform duration-500 ease-in-out",style:{transform:`translateX(calc(-${T+y} * (392px + 12px)))`},children:E.map((e,t)=>P(e,t,!1))})})]})]}):e("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-8 px-4",children:x.map((e,t)=>P(e,t))})}const ct=({fields:n})=>{var r;const o=(null===(r=null==n?void 0:n.items)||void 0===r?void 0:r.items)||[],[i,d]=a(0),u=s(null),h=c(()=>{0!==o.length&&d(e=>(e+1)%o.length)},[o.length]),m=c(()=>{0!==o.length&&d(e=>0===e?o.length-1:e-1)},[o.length]);return l(()=>{if(0!==o.length)return u.current=setInterval(()=>{h()},8e3),()=>{u.current&&clearInterval(u.current)}},[h,o.length]),o&&0!==o.length?t("div",{className:"relative mx-auto max-w-[1280px] overflow-hidden md:px-24",children:[e(Oe,{onClick:m,className:"group absolute left-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Previous",children:e(ze,{name:"arrow_back",size:24})}),e("div",{className:"grid grid-cols-1 justify-items-center",children:o.map((t,n)=>{let r=n-i;const s=o.length;r>s/2&&(r-=s),r<-s/2&&(r+=s);const a=0===r;return e("div",{className:Ie("col-start-1 row-start-1 w-full md:max-w-[815px]",a?"opacity-100":"opacity-0","md:opacity-100"),style:{transform:`translateX(${a?"0%":105*r+"%"})`,zIndex:a?10:5,visibility:Math.abs(r)>1?"hidden":"visible",transition:"all 0.5s ease-in-out"},children:e(at,{...t,isActive:a,className:"h-full"})},n)})}),e(Oe,{onClick:h,className:"group absolute right-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Next",children:e(ze,{name:"arrow_forward",size:24})}),e("div",{className:"mt-8 hidden justify-center gap-2 md:flex",children:o.map((t,n)=>e("button",{onClick:()=>d(n),className:Ie("h-2 w-2 rounded-full transition-all duration-300",i===n?"w-6 bg-white":"bg-white/40 hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]}):null},dt=({tabs:t,activeTab:n,onChange:r,className:o})=>e("div",{className:Ie("mx-auto my-6 flex w-fit rounded-2xl bg-white p-1",o),children:t.map(t=>e("button",{onClick:()=>r(t),className:Ie("min-w-[160px] whitespace-nowrap rounded-2xl bg-[#EEEEEE] px-4 py-2.5 text-label1 font-black transition-all duration-300",n===t?"bg-bg-fill-brand text-white shadow-md":"text-text-info hover:bg-[#E5E5E7]"),children:t},t))}),ut=({fields:n,hasTestimonialCards:r,hasProductCards:o,disclaimerText:i,backgroundColor:s,activeTab:a,setActiveTab:l,tabs:c,onModalButtonClick:d,renderCheckPlans:u,showSwitch:h=!1})=>e("div",{className:`${s} mx-auto overflow-hidden px-5 py-9 md:py-20`,children:t("div",{className:"relative mx-auto flex max-w-[1280px] flex-col gap-12 overflow-visible",children:[t("div",{children:[e(Ue,{as:"h2",className:"text-center text-4xl font-bold text-text md:text-5xl",children:null==n?void 0:n.title}),(null==n?void 0:n.subTitle)&&e(Ue,{as:"h3",className:"body1 px-4 pt-4 text-center",children:null==n?void 0:n.subTitle})]}),h&&o&&c.length>1&&e(dt,{tabs:c,activeTab:a,onChange:l,className:"mb-8"}),r&&e(ct,{fields:n}),o&&e(lt,{onModalButtonClick:d,renderCheckPlans:u,fields:n}),e(Ue,{as:"div",className:"body1 mt-8 px-4 text-center text-neutral-600",children:i})]})}),ht=({title:n,subtitle:r,description:o,disclaimer:i,icon:s,cta:a,background:l="navy",color:c="light",enableHeading:d,maxWidth:u=!0})=>e("div",{className:"component-container",children:t("div",{className:"mx-5 my-8 lg:mx-20 lg:my-12 lg:rounded-[40px] xl:mx-auto "+(u?"max-w-120":""),children:[t("div",{className:`flex flex-col rounded-[28px] px-5 py-7 lg:flex-row lg:rounded-[40px] lg:px-16 lg:py-9 ${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[l]} ${"dark"==c?"text-text":"text-white"} `,children:[s&&e("div",{className:"floating-banner-icon mb-5 flex justify-center lg:mb-0 lg:items-center",children:e("div",{className:"h-[80px] w-[80px] overflow-hidden",children:e(Ke,{width:80,height:80,alt:"icon",src:s})})}),t("div",{className:"flex w-full flex-col justify-center lg:mx-5 lg:w-4/5",children:[n&&e(Ue,{as:d?"h1":"h2",className:"heading2 mb-3 text-center lg:w-[95%] lg:text-left",children:n}),r&&e(Ue,{as:"h3",className:"heading3 mb-3 text-center lg:text-left",children:r}),o&&e(Ue,{as:"div",className:"body1 text-center lg:w-[95%] lg:text-left",children:o})]}),a&&e("div",{className:"mt-5 flex justify-center lg:mt-0 lg:w-[500px] lg:items-center",children:e(Xe,{...a})})]}),i&&e("div",{children:e(Ue,{as:"div",className:"body3 mt-3 text-center",children:i})})]})}),mt=({body:n,links:r,bottomLinks:i,copyrights:s,terms:a,maxWidth:l=!0,onClick:c})=>{function d(e){null==c||c(e)}return e("div",{className:"component-container bg-bg-inverse text-white",children:t("div",{className:` ${l?"mx-auto max-w-120":""} px-5 py-8`,children:[e("aside",{className:"break-words","aria-label":"Promotions and disclaimers",children:n}),e("div",{className:"my-8 h-[1px] border-t-0 bg-white opacity-100 lg:my-16 dark:opacity-50"}),e("div",{className:"grid-1 grid gap-8 py-8 md:grid-cols-2 lg:grid-cols-4",children:null==r?void 0:r.map((n,r)=>{var i,s;return t(o.Fragment,{children:[e("div",{children:t("nav",{"aria-labelledby":`footer-${null==n?void 0:n.title}`,className:"site-links-group",children:[e(Ue,{as:"div",className:"label3",children:null==n?void 0:n.title}),e("ul",{className:"flex flex-col",children:null===(s=null===(i=null==n?void 0:n.items)||void 0===i?void 0:i.items)||void 0===s?void 0:s.map((t,n)=>e("li",{className:"pt-3",children:e(Xe,{...t,linkVariant:"unstyled",linkClassName:"text-white body3",onClick:d})},`site-links-${n}`))})]},`link-group-${r}`)},`footer-link-group-${r}`),e("div",{className:"block h-[1px] border-t-0 bg-white opacity-100 md:hidden dark:opacity-50"})]},`footer-link-group-${r}`)})}),t("div",{className:"pt-8",children:[e("p",{className:"copy-rights",children:s}),t("p",{className:"terms-text footnote text-white",children:["© ",(new Date).getFullYear()," ",a]}),e("nav",{"aria-label":"Footer legal",children:e("ul",{className:"bottom-links list-none",children:null==i?void 0:i.map((t,n)=>e("li",{className:"relative float-left pl-[8px] before:absolute before:left-[3px] before:top-1/2 before:-translate-y-1/2 before:text-[14px] before:content-['•'] first-of-type:pl-0 first-of-type:before:content-['']",children:e(Xe,{...t,linkClassName:"footnote text-white",linkVariant:"unstyled",onClick:d})},`links-${n}`))})})]})]})})},pt=({isHovered:t,containerClassName:n})=>e("button",{tabIndex:-1,className:`group flex h-20 w-20 items-center justify-center rounded-full bg-white shadow-xl transition-all duration-300 hover:scale-110 active:scale-95 ${n||""}`,"aria-label":"Play button",children:e(ze,{name:"play_arrow",size:72,fill:1,className:"transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),ft=t=>{const{link:n,containerClassName:r,autoplay:o=!1,debug:i=!1}=t,{href:s,embedId:a}=d(()=>{if(!n)return{href:"",embedId:""};const e=n.toString(),t=(e=>{const t=e.split(/[?#]/)[0].replace(/\/+$/,""),n=t.match(/vimeo\.com\/(?:.*\/)?(\d{6,})/)||t.match(/player\.vimeo\.com\/video\/(\d{6,})/),r=t.split("/"),o=r[r.length-1];return(null==n?void 0:n[1])?n[1]===o?n[1]:`${n[1]}/${o}`:""})(e);return{href:e,embedId:t}},[n]);if(i&&console.log("[VimeoEmbed] href:",s,"id:",a),!a)return null;const l=function(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean);if("video"===n[0]&&n.length>=2){const e=n[1],r=n[2],o=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${o}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${a}?${new URLSearchParams({autoplay:o?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}).toString()}`);return e("div",{className:Ie("relative h-0 w-full overflow-hidden pb-[56.25%]",r),children:e("iframe",{className:"absolute left-0 top-0 h-full w-full",src:l,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:"Embedded vimeo"})})};const gt=t=>{const{link:n,containerClassName:r,autoplay:o=!1}=t,i=d(()=>{if(!n)return"";const e=n.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return e&&11===e[7].length?e[7]:""},[n]),s=o?"?autoplay=1":"";return e("div",{className:Ie("relative h-0 w-full overflow-hidden pb-[56.25%]",r),children:e("iframe",{className:"absolute left-0 top-0 h-full w-full",src:`https://www.youtube.com/embed/${i}${s}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})},vt=({brow:n,enableHeading:r,title:o,subTitle:i,ctaDisclaimer:s,disclaimer:l,description:c,image:d,imageLinks:u,mediaPosition:h=!0,checklist:m,secondaryCta:p,cta:f,videoLink:g,maxWidth:v=!0,color:y="light",imageWidth:b=660,imageHeight:x=660,onModalButtonClick:w,renderCheckPlans:k})=>{var N,C;const[P,E]=a(""),[T,S]=a(!1),A=null!==(N=null==g?void 0:g.link)&&void 0!==N?N:"",M=null==g?void 0:g.image,D=null!==(C=null==g?void 0:g.videoPopup)&&void 0!==C&&C,V=Boolean(P&&P===A),L=g&&M?A.includes("vimeo")?e(ft,{link:A,autoplay:V}):e(gt,{link:A,autoplay:V}):null;return t("div",{className:"component-container",children:[e("div",{className:`image-promo-bar-content ${v?"max-w-120 xl:mx-auto":""} mx-5 mb-8 mt-16`,children:t("div",{className:"flex shrink-0 flex-col items-center gap-8 xl:items-start xl:gap-[126px] "+(h?"xl:flex-row-reverse":"xl:flex-row"),children:[t("div",{className:"flex flex-[1_0_0] flex-col items-start justify-center gap-8 xl:gap-10 "+("dark"==y?"text-text":"text-white"),children:[t("div",{className:"heading holder",children:[n&&e(Ue,{as:"div",className:"subheading4 mb-4 text-text-brand xl:subheading2 xl:mb-3",children:n}),o&&e(Ue,{as:r?"h1":"h2",className:"heading2 xl:heading1",children:o}),i&&e(Ue,{as:r?"h2":"h3",className:"subheading1 mt-3",children:i})]}),c&&e(Ue,{as:"div",className:"body1",children:c}),m.length>0&&e(rt,{items:m,iconPosition:"top",iconSize:24}),e("div",{className:"flex gap-4",children:null==u?void 0:u.map((t,n)=>e("div",{className:"image-link w-[147px]",children:e(Ye,{variant:"unstyled",href:t.url,target:"_blank",rel:"noopener noreferrer",children:e(ot,{src:t.image,alt:"icon-link"})})},n))}),t("div",{className:"flex w-full flex-col gap-8 xl:flex-row xl:gap-3",children:[f&&e("div",{className:"primary-cta w-full xl:w-auto",children:e(Xe,{...f,fullWidth:!0,renderCheckPlans:k,onModalButtonClick:w})}),p&&e("div",{className:"secondary-cta",children:e(Xe,{...p,fullWidth:!0,renderCheckPlans:k,onModalButtonClick:w})})]}),s&&e("div",{children:s}),l&&e("div",{children:l})]}),t("aside",{className:"flex w-full shrink-0 items-center justify-center xl:w-auto",children:[d&&e("div",{className:"relative aspect-[16/9] w-full xl:aspect-square xl:max-h-[486px] xl:w-[486px]",children:e(Ke,{src:d,alt:"section-image",width:b,height:x,className:"bottom-0 left-0 right-0 top-0 h-full rounded-[40px] object-cover"})}),(null==g?void 0:g.link)&&t("div",{className:Ie("video-section relative w-full cursor-pointer overflow-hidden rounded-[40px] transition-all duration-300 xl:w-[486px]",!V&&"hover:shadow-2xl"),onClick:()=>{var e;E(null!==(e=null==g?void 0:g.link)&&void 0!==e?e:"")},onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:[t("div",{className:Ie(V&&!D&&"hidden",V&&!D?"opacity-0":"opacity-100","relative aspect-[16/9] w-full transition-opacity duration-300 xl:aspect-square"),children:[g.image&&e(Ke,{src:g.image,alt:"Video preview",width:486,height:486,className:"absolute inset-0 h-full w-full rounded-[40px] object-cover"}),e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(pt,{isHovered:T})})]}),!D&&V&&e("div",{className:Ie("aspect-[16/9] w-full overflow-hidden rounded-[40px] transition-opacity duration-300",V?"opacity-100":"opacity-0"),children:L})]})]})]})}),D&&V&&e("div",{className:"fixed inset-0 top-20 z-[100] flex items-center justify-center bg-black/80 p-4 transition-all duration-300",onClick:e=>{e.stopPropagation(),E("")},children:e("div",{className:"max-w-6xl aspect-video w-full overflow-hidden rounded-3xl bg-black shadow-2xl md:w-4/6",onClick:e=>e.stopPropagation(),children:L})})]})},yt=({link:n,anchorName:r})=>{const[i,s]=o.useState(!1),a=o.useRef(null);if(((e,t)=>{const n=n=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(n.target))||t()};l(()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}))})(a,()=>s(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e(Xe,{...n,linkClassName:"body3 flex items-center text-text-link h-full",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:c,title:d,items:u}=n,h=Array.isArray(null==u?void 0:u.items)?u.items:[],m=`--link-anchor-${r}`;return t("div",{className:"relative h-full",style:{anchorName:m},ref:a,children:[t(Xe,{onClick:()=>s(e=>!e),"aria-expanded":i,buttonClassName:"group body3 flex h-full items-center",showButtonAs:"unstyled",children:[e(Ue,{as:"span",className:"group-hover:underline",children:null!=d?d:null}),e(ze,{weight:"700",className:"text-icon-info group-hover:opacity-50",name:i?"keyboard_arrow_up":"keyboard_arrow_down"})]},c),e("div",{className:Ie("fixed z-10 min-w-44 rounded-xl bg-bg shadow-lg","transition-[opacity,transform] ease-out",i&&h.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:m,top:"anchor(bottom)",right:"anchor(right)"},children:e("ul",{className:"flex flex-col gap-2 py-2",children:h.map((t,n)=>e("li",{className:"submenu-link",children:e(Xe,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},bt=({link:r})=>{const[i,s]=o.useState(!1);if(!r)return null;if((e=>"string"==typeof e.href)(r))return e(Xe,{...r,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${r.anchorId}`);const{anchorId:a,title:l,items:c}=r,d=Array.isArray(null==c?void 0:c.items)?c.items:[];return t(n,{children:[t(Xe,{onClick:()=>s(e=>!e),"aria-expanded":i,buttonClassName:"label3 flex h-11 w-full items-center px-4",showButtonAs:"unstyled",children:[null!=l?l:null,e(ze,{weight:"700",name:i?"keyboard_arrow_up":"keyboard_arrow_down"})]},a),i&&d.length>0&&e(xt,{items:d})]})},xt=({items:t})=>e("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e("li",{className:"submenu-link",children:e(Xe,{...t,linkVariant:"unstyled",linkClassName:"body3 pl-8 pr-4 flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))},`submenu-${t.length}`),wt=n=>{const{showBlinkDot:r=!1,buttonStyle:o="primary",size:i="md",children:s,className:a,...l}=n;return t(Ye,{...l,className:Ie("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[i],{primary:"border-[0.727px] border-border text-text"}[o],a),children:[r?e("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[i]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[i]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e("span",{className:`relative inline-flex ${{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[i]} items-center justify-center rounded-full bg-icon-brand`,children:e(ze,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[i],className:"text-white"})}),e("span",{className:"font-normal tracking-wide",children:s})]})};wt.displayName="CallButton";const kt=i((n,r)=>{const{className:o,size:i,required:s,placeholder:l,label:d,state:u,errorText:h,prefixIconName:m,prefixIconFill:p=!0,suffixIconFill:f=!1,prefixIconSize:g=24,suffixIconName:v,suffixIconSize:y=24,containerClassName:b,prefixIconClassName:x,loading:w,hasError:k,type:N,...C}=n,P=k?"error":u,[E,T]=a(!1),[S,A]=a(!1),[M,D]=a(N||"text"),V=c(e=>{e.stopPropagation(),D(e=>"password"===e?"text":"password")},[]);return t("div",{className:"relative",children:[d?e("label",{htmlFor:d,className:Ie("inline-block pb-1"),children:t(Ue,{as:"span",className:"footnote text-text",children:[d,s?e("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,t("div",{className:Ie("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[i||"medium"],b,(E||"hover"===P)&&!S&&"error"!==P&&"border-input-border-hover",(S||"focus"===P||"active"===P)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===P&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[m?e("div",{className:"mr-1",style:{width:g,height:g,overflow:"hidden"},children:e(ze,{name:m,fill:p?1:0,size:g,className:Ie(x)})}):null,e("input",{ref:r,id:d,disabled:w||C.disabled,className:Ie("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===i&&"text-body3",o),placeholder:l,type:M,...C,onMouseOver:()=>T(!0),onMouseOut:()=>T(!1),onFocus:e=>{var t;null===(t=C.onFocus)||void 0===t||t.call(C,e),A(!0)},onBlur:e=>{var t;null===(t=C.onBlur)||void 0===t||t.call(C,e),A(!1)}}),v?e("div",{className:"ml-2",style:{width:y,height:y,overflow:"hidden"},onClick:V,children:e(ze,{name:"text"===M?"visibility":"visibility_off",size:y,fill:f?1:0})}):null]}),"error"===P&&h&&""!=h?t(Ue,{className:Ie("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e(ze,{name:"info",size:20,className:"mr-1"}),h||"Error"]}):null]})});kt.displayName="Input";const Nt=n=>{const{primaryNavigationLinks:r,utilityNavigationLinks:o,checkPlansJSX:i,primaryNavigationLogo:s,accountNavigationLinks:a,supportNavigationLinks:l,searchBarIcon:c,invocaPhoneNumberLink:d,invocaPhoneNumberDisplayText:u,onSearch:h=()=>{}}=n;return t("div",{className:"component-container",children:[t("nav",{className:"menu-container",children:[e("div",{className:"utility-container hidden lg:block lg:border-b lg:px-2",children:t("div",{className:"mx-auto flex max-w-120 justify-between",children:[e("ul",{className:"flex gap-5","aria-label":"Utility Navigation",children:null==o?void 0:o.map((t,n)=>e("li",{children:e(Xe,{linkClassName:Ie("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled",...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t))})},`main-menu-items-${n}`))}),t("div",{className:"flex items-center gap-10",children:[e(wt,{className:"border-none",href:d,children:e(Ue,{className:"body3",children:u})}),null==a?void 0:a.map((t,n)=>e(yt,{anchorName:`my-account-${n}`,link:t},`my-account-${n}`))]})]})}),t("div",{className:"main-nav-container","aria-label":"Main Navigation",children:[t("div",{className:"mobile-nav-section flex h-14 items-center justify-between px-5 py-[10px] lg:hidden",children:[e("div",{children:e(Ye,{href:"/",className:"flex",children:e(Ke,{src:"string"==typeof s?s:(null==s?void 0:s.url)||"",alt:"Kinetic business logo",width:76.5,height:24})})}),t("div",{className:"flex items-center gap-6",children:[e(wt,{href:d,children:e(Ue,{as:"span",className:"footnote",children:u})}),e(Ct,{...n})]})]}),e("div",{className:"desktop-nav-section hidden lg:block lg:border-b lg:px-2",children:t("div",{className:"mx-auto flex h-14 max-w-120 items-center justify-between",children:[t("div",{className:"flex h-full",children:[e(Ye,{href:"/",className:"flex",children:e(Ke,{src:"string"==typeof s?s:(null==s?void 0:s.url)||"",alt:"Kinetic business logo",width:76.5,height:24,className:"mr-14"})}),e("div",{className:"flex h-full items-center gap-5",children:null==r?void 0:r.map((t,n)=>e(yt,{anchorName:`main-menu-${n}`,link:t},`main-menu-${n}`))})]}),t("div",{className:"flex h-full items-center gap-10",children:[e(Et,{searchBarIconURL:"string"==typeof c?c:(null==c?void 0:c.url)||"",onSearch:h}),null==l?void 0:l.map((t,n)=>e(yt,{anchorName:`support-menu-${n}`,link:t},`support-menu-${n}`))]})]})})]})]}),i&&e("div",{className:"md:hidden",children:i})]})},Ct=n=>{var r;const{primaryNavigationLinks:i,utilityNavigationLinks:s}=n,[a,l]=o.useState(!1);o.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=a?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],r=t[t.length-1],o=e=>{var t,o,i,s;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(o=(t=r).focus)||void 0===o||o.call(t),e.preventDefault()):document.activeElement===r&&(null===(s=(i=n).focus)||void 0===s||s.call(i),e.preventDefault()))};return window.addEventListener("keydown",o),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",o)}},[a]);const c=()=>{l(!1)};return t("div",{children:[e(Xe,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>l(!0),children:e(ze,{name:"menu"})}),a?e("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[90] h-full w-full bg-scrim-bg-modal"}):null,e("div",{className:Ie("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4","transition-all duration-300 ease-in-out","block",a?"right-0":"-right-96"),id:"mobile-menu-overlay",children:t("div",{id:"drawer-items",className:"flex h-full flex-col gap-3",children:[t("div",{className:"flex items-center justify-between px-4",children:[e("div",{children:e(wt,{className:"border-none",href:n.invocaPhoneNumberLink,children:n.invocaPhoneNumberDisplayText})}),e("div",{children:e(Xe,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:c,children:e(ze,{name:"close"})})})]}),e(Pt,{closeMenu:c,isMenuOpen:a,searchBarIconURL:"string"==typeof n.searchBarIcon?n.searchBarIcon:(null===(r=n.searchBarIcon)||void 0===r?void 0:r.url)||"",onSearch:n.onSearch||(()=>{})}),t("div",{className:"flex-grow overflow-y-auto",children:[e("ul",{className:"mt-2 flex flex-col gap-2",children:null==i?void 0:i.map((t,n)=>e("li",{children:e(bt,{link:t})},`main-menu-items-${n}`))}),e("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==s?void 0:s.map((t,n)=>e("li",{children:e(Xe,{...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t)),linkClassName:Ie("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`)},`main-menu-items-${n}`))})]})]})})]})},Pt=n=>{const{closeMenu:r,onSearch:i,isMenuOpen:s,searchBarIconURL:a}=n,[l,c]=o.useState(""),d=o.useRef(null),u=e=>{r(),e.preventDefault(),i(l)};return o.useEffect(()=>{s||c("")},[s]),t("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:u,children:[e(Ke,{src:a,width:32,height:32,alt:"Search icon",role:"button",className:"ml-2",onClick:u}),e("div",{className:"flex-grow",children:e(kt,{ref:d,className:"h-[34px] rounded-none text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:l,onChange:e=>c(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},Et=n=>{const{searchBarIconURL:r,onSearch:i}=n,[s,a]=o.useState(""),l=o.useRef(null),c=e=>{e.preventDefault(),i(s)};return t("form",{name:"searchForm",className:"flex h-9 w-60 rounded-full border transition-colors focus-within:border-border-focus",onSubmit:c,children:[e(Ke,{src:r,width:32,height:32,alt:"Search icon",role:"button",onClick:c}),e(kt,{ref:l,className:"rounded-full p-0 text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:s,onChange:e=>a(e.target.value),autoComplete:"off",containerClassName:"px-0 h-full border-none rounded-full"})]})},Tt=n=>{var r;const{title:o,showAsHeading:i,subTitle:s,primaryCta1:a,carouselImages:l,bottomLink:c,price:d,priceCallout:u,priceSuffix:h,checklist:m,renderCheckPlans:p,badgeImage:f,pricingDescriptionDisclaimer:g,secondaryCta:v,secondaryCtaPrefix:y,onModalButtonClick:b}=n,x=null!==(r=null==c?void 0:c.buttonLabel)&&void 0!==r?r:null==c?void 0:c.label;return e("div",{className:"component-container p-5 lg:h-[724px] lg:p-0",children:t("div",{className:Ie("primary-hero-container mx-auto flex flex-col sm:items-center sm:text-center lg:h-full lg:max-w-120 lg:flex-row lg:items-center lg:justify-between lg:gap-4 lg:px-4 lg:text-left"),children:[e("div",{className:Ie("relative flex flex-col text-white sm:w-[485px]"),children:t("div",{className:"flex flex-col gap-5 lg:gap-6",children:[o&&e(Ue,{as:i?"h1":"h2",className:"heading2 lg:heading1",children:o}),s&&e(Ue,{as:"p",className:"subheading3 lg:subheading1",children:s}),d?t("div",{className:"flex",children:[e("div",{className:"mr-2 mt-0.5",children:u?u.split("|").map((t,n)=>e(Ue,{as:"p",className:"body2",children:t},n)):null}),t("div",{className:"flex",children:[e(Ue,{as:"p",className:"subheading1 mt-0.5",children:"$"}),e(Ue,{as:"p",className:"subheading5",children:d}),h?e(Ue,{as:"p",className:"subheading1 mt-0.5",children:h}):null]})]}):null,m&&e(rt,{listItemClassName:"text-white body2",items:m.map(e=>e.title)}),t("div",{className:"flex flex-col gap-3",children:[a&&e("div",{className:Ie("hidden lg:flex lg:flex-col"),children:e(Xe,{...a,renderCheckPlans:p,onModalButtonClick:b})}),y||v?t("div",{className:"flex",children:[y&&e(Ue,{as:"span",className:"body2 mr-1",children:y}),v&&e(Xe,{linkClassName:"body2 text-text-inverse",onModalButtonClick:b,...v})]}):null,c&&(x||(null==c?void 0:c.href))&&e("div",{className:"hidden lg:block",children:e(Xe,{...c,linkClassName:"text-footnote text-white",onModalButtonClick:b})}),g?e(Ue,{as:"p",className:"body3",children:g}):null]})]})}),t("div",{className:"lg:hidden",children:[t("div",{className:"relative my-8",children:[f?e(Ke,{src:f,alt:"Badge",className:"absolute left-5 top-5 aspect-square w-26 object-cover object-center",width:100,height:100,loading:"eager"}):null,l&&l[0]?e(Ke,{src:l[0],alt:"Hero",className:"aspect-[1.71:1] sm:aspect-[1.41:1] rounded-[40px] object-cover object-center sm:h-[420px]",width:350,height:205,loading:"eager"}):null]}),c&&(x||(null==c?void 0:c.href))&&e("div",{children:e(Xe,{...c,onModalButtonClick:b,linkClassName:"body3 text-white"})}),g?e(Ue,{as:"p",className:"body3",children:g}):null,y||v?t("div",{className:"flex",children:[y&&e(Ue,{as:"span",className:"body2 mr-1",children:y}),v&&e(Xe,{...v,onModalButtonClick:b})]}):null]}),t("div",{className:Ie("relative hidden lg:block"),children:[f?e(Ke,{src:f,alt:"Badge",className:"absolute -left-26 top-18 aspect-square w-52 object-cover object-center",width:200,height:200,loading:"eager"}):null,l&&l[0]?e(Ke,{src:l[0],alt:"Hero",className:"aspect-square rounded-[40px] object-cover object-center",width:600,height:600,loading:"eager"}):null]})]})})},St=({fields:t})=>e("div",{children:e(Ue,{children:"Text Block"})}),At={closed:{opacity:0},open:{opacity:1}},Mt={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},Dt={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Vt=u({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Lt=u({}),Bt=u(null),jt="undefined"!=typeof document,Rt=jt?h:l,Ft=u({strict:!1});function It(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ot(e){return"string"==typeof e||Array.isArray(e)}function $t(e){return"object"==typeof e&&"function"==typeof e.start}const zt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_t=["initial",...zt];function Ut(e){return $t(e.animate)||_t.some(t=>Ot(e[t]))}function Wt(e){return Boolean(Ut(e)||e.variants)}function Gt(e){const{initial:t,animate:n}=function(e,t){if(Ut(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Ot(t)?t:void 0,animate:Ot(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,m(Lt));return d(()=>({initial:t,animate:n}),[Ht(t),Ht(n)])}function Ht(e){return Array.isArray(e)?e.join(" "):e}const Yt={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Xt={};for(const e in Yt)Xt[e]={isEnabled:t=>Yt[e].some(e=>!!t[e])};const qt=u({}),Kt=u({}),Zt=Symbol.for("motionComponentSymbol");function Jt({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:a}){e&&function(e){for(const t in e)Xt[t]={...Xt[t],...e[t]}}(e);const d=i(function(i,d){let u;const h={...m(Vt),...i,layoutId:Qt(i)},{isStatic:f}=h,g=Gt(i),v=o(i,f);if(!f&&jt){g.visualElement=function(e,t,n,r){const{visualElement:o}=m(Lt),i=m(Ft),a=m(Bt),c=m(Vt).reducedMotion,d=s();r=r||i.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:c}));const u=d.current;return p(()=>{u&&u.update(n,a)}),Rt(()=>{u&&u.render()}),l(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?Rt:l)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(a,v,h,t);const n=m(Kt),r=m(Ft).strict;g.visualElement&&(u=g.visualElement.loadFeatures(h,r,e,n))}return r.createElement(Lt.Provider,{value:g},u&&g.visualElement?r.createElement(u,{visualElement:g.visualElement,...h}):null,n(a,i,function(e,t,n){return c(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):It(n)&&(n.current=r))},[t])}(v,g.visualElement,d),v,f,g.visualElement))});return d[Zt]=a,d}function Qt({layoutId:e}){const t=m(qt).id;return t&&void 0!==e?t+"-"+e:e}function en(e){function t(t,n={}){return Jt(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const tn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nn(e){return"string"==typeof e&&!e.includes("-")&&!!(tn.indexOf(e)>-1||/[A-Z]/.test(e))}const rn={};const on=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],sn=new Set(on);function an(e,{layout:t,layoutId:n}){return sn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rn[e]||"opacity"===e)}const ln=e=>Boolean(e&&e.getVelocity),cn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dn=on.length;const un=e=>t=>"string"==typeof t&&t.startsWith(e),hn=un("--"),mn=un("var(--"),pn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,fn=(e,t,n)=>Math.min(Math.max(n,e),t),gn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},vn={...gn,transform:e=>fn(0,1,e)},yn={...gn,default:1},bn=e=>Math.round(1e5*e)/1e5,xn=/(-)?([\d]*\.?[\d])+/g,wn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,kn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Nn(e){return"string"==typeof e}const Cn=e=>({test:t=>Nn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Pn=Cn("deg"),En=Cn("%"),Tn=Cn("px"),Sn=Cn("vh"),An=Cn("vw"),Mn={...En,parse:e=>En.parse(e)/100,transform:e=>En.transform(100*e)},Dn={...gn,transform:Math.round},Vn={borderWidth:Tn,borderTopWidth:Tn,borderRightWidth:Tn,borderBottomWidth:Tn,borderLeftWidth:Tn,borderRadius:Tn,radius:Tn,borderTopLeftRadius:Tn,borderTopRightRadius:Tn,borderBottomRightRadius:Tn,borderBottomLeftRadius:Tn,width:Tn,maxWidth:Tn,height:Tn,maxHeight:Tn,size:Tn,top:Tn,right:Tn,bottom:Tn,left:Tn,padding:Tn,paddingTop:Tn,paddingRight:Tn,paddingBottom:Tn,paddingLeft:Tn,margin:Tn,marginTop:Tn,marginRight:Tn,marginBottom:Tn,marginLeft:Tn,rotate:Pn,rotateX:Pn,rotateY:Pn,rotateZ:Pn,scale:yn,scaleX:yn,scaleY:yn,scaleZ:yn,skew:Pn,skewX:Pn,skewY:Pn,distance:Tn,translateX:Tn,translateY:Tn,translateZ:Tn,x:Tn,y:Tn,z:Tn,perspective:Tn,transformPerspective:Tn,opacity:vn,originX:Mn,originY:Mn,originZ:Tn,zIndex:Dn,fillOpacity:vn,strokeOpacity:vn,numOctaves:Dn};function Ln(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,c=!1,d=!0;for(const e in t){const n=t[e];if(hn(e)){i[e]=n;continue}const r=Vn[e],u=pn(n,r);if(sn.has(e)){if(l=!0,s[e]=u,!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,a[e]=u):o[e]=u}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<dn;t++){const n=on[t];void 0!==e[n]&&(i+=`${cn[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,d,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;o.transformOrigin=`${e} ${t} ${n}`}}const Bn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jn(e,t,n){for(const r in t)ln(t[r])||an(r,n)||(e[r]=t[r])}function Rn(e,t,n){const r={};return jn(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return d(()=>{const r={style:{},transform:{},transformOrigin:{},vars:{}};return Ln(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function Fn(e,t,n){const r={},o=Rn(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const In=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function On(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||In.has(e)}let $n=e=>!On(e);try{(zn=require("@emotion/is-prop-valid").default)&&($n=e=>e.startsWith("on")?!On(e):zn(e))}catch(e){}var zn;function _n(e,t,n){return"string"==typeof e?e:Tn.transform(t+n*e)}const Un={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wn={offset:"strokeDashoffset",array:"strokeDasharray"};function Gn(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},d,u,h){if(Ln(e,c,d,h),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:f}=e;m.transform&&(f&&(p.transform=m.transform),delete m.transform),f&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${_n(t,e.x,e.width)} ${_n(n,e.y,e.height)}`}(f,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Un:Wn;e[i.offset]=Tn.transform(-r);const s=Tn.transform(t),a=Tn.transform(n);e[i.array]=`${s} ${a}`}(m,s,a,l,!1)}const Hn=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Yn=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Xn(e,t,n,r){const o=d(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Gn(n,t,{enableHardwareAcceleration:!1},Yn(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};jn(t,e.style,e),o.style={...t,...o.style}}return o}function qn(e=!1){return(t,n,r,{latestValues:o},i)=>{const s=(nn(t)?Xn:Fn)(n,o,i,t),a=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||($n(o)||!0===n&&On(o)||!t&&!On(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l={...a,...s,ref:r},{children:c}=n,u=d(()=>ln(c)?c.get():c,[c]);return f(t,{...l,children:u})}}const Kn=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Zn(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Jn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Qn(e,t,n,r){Zn(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Jn.has(n)?n:Kn(n),t.attrs[n])}function er(e,t){const{style:n}=e,r={};for(const o in n)(ln(n[o])||t.style&&ln(t.style[o])||an(o,e))&&(r[o]=n[o]);return r}function tr(e,t){const n=er(e,t);for(const r in e)if(ln(e[r])||ln(t[r])){n[-1!==on.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function nr(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const rr=e=>Array.isArray(e),or=e=>rr(e)?e[e.length-1]||0:e;function ir(e){const t=ln(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const sr=e=>(t,n)=>{const r=m(Lt),o=m(Bt),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:ar(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,t,r,o);return n?i():function(e){const t=s(null);return null===t.current&&(t.current=e()),t.current}(i)};function ar(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=ir(i[e]);let{initial:s,animate:a}=e;const l=Ut(e),c=Wt(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let d=!!n&&!1===n.initial;d=d||!1===s;const u=d?a:s;if(u&&"boolean"!=typeof u&&!$t(u)){(Array.isArray(u)?u:[u]).forEach(t=>{const n=nr(e,t);if(!n)return;const{transitionEnd:r,transition:i,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[d?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]})}return o}const lr={useVisualState:sr({scrapeMotionValuesFromProps:tr,createRenderState:Hn,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}Gn(n,r,{enableHardwareAcceleration:!1},Yn(t.tagName),e.transformTemplate),Qn(t,n)}})},cr={useVisualState:sr({scrapeMotionValuesFromProps:er,createRenderState:Bn})};function dr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ur=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function hr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function mr(e,t,n,r){return dr(e,t,(e=>t=>ur(t)&&e(t,hr(t)))(n),r)}const pr=(e,t)=>n=>t(e(n)),fr=(...e)=>e.reduce(pr);function gr(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const vr=gr("dragHorizontal"),yr=gr("dragVertical");function br(e){let t=!1;if("y"===e)t=yr();else if("x"===e)t=vr();else{const e=vr(),n=yr();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function xr(){const e=br(!0);return!e||(e(),!1)}class wr{constructor(e){this.isMounted=!1,this.node=e}update(){}}const kr={delta:0,timestamp:0,isProcessing:!1};let Nr=!0,Cr=!1;const Pr=["read","update","preRender","render","postRender"],Er=Pr.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(e,i=!1,a=!1)=>{const l=a&&o,c=l?t:n;return i&&s.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),s.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),s.has(r)&&(a.schedule(r),e())}o=!1,i&&(i=!1,a.process(l))}}};return a}(()=>Cr=!0),e),{}),Tr=e=>Er[e].process(kr),Sr=e=>{Cr=!1,kr.delta=Nr?1e3/60:Math.max(Math.min(e-kr.timestamp,40),1),kr.timestamp=e,kr.isProcessing=!0,Pr.forEach(Tr),kr.isProcessing=!1,Cr&&(Nr=!1,requestAnimationFrame(Sr))},Ar=Pr.reduce((e,t)=>{const n=Er[t];return e[t]=(e,t=!1,r=!1)=>(Cr||(Cr=!0,Nr=!0,kr.isProcessing||requestAnimationFrame(Sr)),n.schedule(e,t,r)),e},{});function Mr(e){Pr.forEach(t=>Er[t].cancel(e))}function Dr(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return mr(e.current,n,(n,o)=>{if("touch"===n.type||xr())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Ar.update(()=>i[r](n,o))},{passive:!e.getProps()[r]})}const Vr=(e,t)=>!!t&&(e===t||Vr(e,t.parentElement)),Lr=e=>e;function Br(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,hr(n))}const jr=new WeakMap,Rr=new WeakMap,Fr=e=>{const t=jr.get(e.target);t&&t(e)},Ir=e=>{e.forEach(Fr)};function Or(e,t,n){const r=function({root:e,...t}){const n=e||document;Rr.has(n)||Rr.set(n,{});const r=Rr.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Ir,{root:e,...t})),r[o]}(t);return jr.set(e,n),r.observe(e),()=>{jr.delete(e),r.unobserve(e)}}const $r={some:0,all:1};const zr={inView:{Feature:class extends wr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:$r[r]};return Or(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends wr{constructor(){super(...arguments),this.removeStartListeners=Lr,this.removeEndListeners=Lr,this.removeAccessibleListeners=Lr,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=mr(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Ar.update(()=>{Vr(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=mr(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=fr(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=dr(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=dr(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&Br("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&Ar.update(()=>n(e,t))})}),Br("down",(e,t)=>{this.startPress(e,t)})}),t=dr(this.node.current,"blur",()=>{this.isPressing&&Br("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=fr(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ar.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xr()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ar.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=mr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=dr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=fr(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends wr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fr(dr(this.node.current,"focus",()=>this.onFocus()),dr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends wr{mount(){this.unmount=fr(Dr(this.node,!0),Dr(this.node,!1))}unmount(){}}}};function _r(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ur(e,t,n){const r=e.getProps();return nr(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const Wr="data-"+Kn("framerAppearId");let Gr=Lr,Hr=Lr;"production"!==process.env.NODE_ENV&&(Gr=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Hr=(e,t)=>{if(!e)throw new Error(t)});const Yr=e=>1e3*e,Xr=e=>e/1e3,qr=!1,Kr=e=>Array.isArray(e)&&"number"==typeof e[0];function Zr(e){return Boolean(!e||"string"==typeof e&&Qr[e]||Kr(e)||Array.isArray(e)&&e.every(Zr))}const Jr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jr([0,.65,.55,1]),circOut:Jr([.55,0,1,.45]),backIn:Jr([.31,.01,.66,-.59]),backOut:Jr([.33,1.53,.69,.99])};function eo(e){if(e)return Kr(e)?Jr(e):Array.isArray(e)?e.map(eo):Qr[e]}const to={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},no={},ro={};for(const e in to)ro[e]=()=>(void 0===no[e]&&(no[e]=to[e]()),no[e]);const oo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function io(e,t,n,r){if(e===t&&n===r)return Lr;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=oo(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(t,0,1,e,n);return e=>0===e||1===e?e:oo(o(e),t,r)}const so=io(.42,0,1,1),ao=io(0,0,.58,1),lo=io(.42,0,.58,1),co=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,uo=e=>t=>1-e(1-t),ho=e=>1-Math.sin(Math.acos(e)),mo=uo(ho),po=co(mo),fo=io(.33,1.53,.69,.99),go=uo(fo),vo=co(go),yo={linear:Lr,easeIn:so,easeInOut:lo,easeOut:ao,circIn:ho,circInOut:po,circOut:mo,backIn:go,backInOut:vo,backOut:fo,anticipate:e=>(e*=2)<1?.5*go(e):.5*(2-Math.pow(2,-10*(e-1)))},bo=e=>{if(Array.isArray(e)){Hr(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return io(t,n,r,o)}return"string"==typeof e?(Hr(void 0!==yo[e],`Invalid easing type '${e}'`),yo[e]):e},xo=(e,t)=>n=>Boolean(Nn(n)&&kn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),wo=(e,t,n)=>r=>{if(!Nn(r))return r;const[o,i,s,a]=r.match(xn);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},ko={...gn,transform:e=>Math.round((e=>fn(0,255,e))(e))},No={test:xo("rgb","red"),parse:wo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ko.transform(e)+", "+ko.transform(t)+", "+ko.transform(n)+", "+bn(vn.transform(r))+")"};const Co={test:xo("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:No.transform},Po={test:xo("hsl","hue"),parse:wo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+En.transform(bn(t))+", "+En.transform(bn(n))+", "+bn(vn.transform(r))+")"},Eo={test:e=>No.test(e)||Co.test(e)||Po.test(e),parse:e=>No.test(e)?No.parse(e):Po.test(e)?Po.parse(e):Co.parse(e),transform:e=>Nn(e)?e:e.hasOwnProperty("red")?No.transform(e):Po.transform(e)},To=(e,t,n)=>-n*e+n*t+e;function So(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Ao=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Mo=[Co,No,Po];function Do(e){const t=(n=e,Mo.find(e=>e.test(n)));var n;Hr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Po&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=So(a,r,e+1/3),i=So(a,r,e),s=So(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const Vo=(e,t)=>{const n=Do(e),r=Do(t),o={...n};return e=>(o.red=Ao(n.red,r.red,e),o.green=Ao(n.green,r.green,e),o.blue=Ao(n.blue,r.blue,e),o.alpha=To(n.alpha,r.alpha,e),No.transform(o))};const Lo={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Lr},Bo={regex:wn,countKey:"Colors",token:"${c}",parse:Eo.parse},jo={regex:xn,countKey:"Numbers",token:"${n}",parse:gn.parse};function Ro(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function Fo(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Ro(n,Lo),Ro(n,Bo),Ro(n,jo),n}function Io(e){return Fo(e).values}function Oo(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Fo(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(Lo.token,e[o]):o<r+n?t.replace(Bo.token,Eo.transform(e[o])):t.replace(jo.token,bn(e[o]));return t}}const $o=e=>"number"==typeof e?0:e;const zo={test:function(e){var t,n;return isNaN(e)&&Nn(e)&&((null===(t=e.match(xn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(wn))||void 0===n?void 0:n.length)||0)>0},parse:Io,createTransformer:Oo,getAnimatableNone:function(e){const t=Io(e);return Oo(e)(t.map($o))}},_o=(e,t)=>n=>`${n>0?t:e}`;function Uo(e,t){return"number"==typeof e?n=>To(e,t,n):Eo.test(e)?Vo(e,t):e.startsWith("var(")?_o(e,t):Ho(e,t)}const Wo=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>Uo(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Go=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Uo(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Ho=(e,t)=>{const n=zo.createTransformer(t),r=Fo(e),o=Fo(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?fr(Wo(r.values,o.values),n):(Gr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),_o(e,t))},Yo=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Xo=(e,t)=>n=>To(e,t,n);function qo(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?Xo:"string"==typeof i?Eo.test(i)?Vo:Ho:Array.isArray(i)?Wo:"object"==typeof i?Go:Xo);var i;const s=e.length-1;for(let n=0;n<s;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Lr:t;i=fr(e,i)}r.push(i)}return r}function Ko(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Hr(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=qo(t,r,o),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Yo(e[n],e[n+1],t);return s[n](r)};return n?t=>l(fn(e[0],e[i-1],t)):l}function Zo(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Yo(0,t,r);e.push(To(n,1,o))}}(t,e.length-1),t}function Jo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(bo):bo(r),i={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:Zo(t),e),a=Ko(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||lo).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}function Qo(e,t){return t?e*(1e3/t):0}function ei(e,t,n){const r=Math.max(t-5,0);return Qo(n-e(r),t-r)}const ti=.001;function ni({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Gr(e<=Yr(10),"Spring duration must be 10 seconds or less");let s=1-t;s=fn(.05,1,s),e=fn(.01,10,Xr(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=oi(t,s),l=Math.exp(-o);return ti-i/a*l},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=oi(Math.pow(t,2),s);return(-o(t)+ti>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<ri;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Yr(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const ri=12;function oi(e,t){return e*Math.sqrt(1-t*t)}const ii=["duration","bounce"],si=["stiffness","damping","mass"];function ai(e,t){return t.some(t=>void 0!==e[t])}function li({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,velocity:d,duration:u,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ai(e,si)&&ai(e,ii)){const n=ni(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=d?-Xr(d):0,p=l/(2*Math.sqrt(a*c)),f=i-o,g=Xr(Math.sqrt(a/c)),v=Math.abs(f)<5;let y;if(n||(n=v?.01:2),t||(t=v?.005:.5),p<1){const e=oi(g,p);y=t=>{const n=Math.exp(-p*g*t);return i-n*((m+p*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===p)y=e=>i-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(p*p-1);y=t=>{const n=Math.exp(-p*g*t),r=Math.min(e*t,300);return i-n*((m+p*g*f)*Math.sinh(r)+e*f*Math.cosh(r))/e}}return{calculatedDuration:h&&u||null,next:e=>{const r=y(e);if(h)s.done=e>=u;else{let o=m;0!==e&&(o=p<1?ei(y,e,r):0);const a=Math.abs(o)<=n,l=Math.abs(i-r)<=t;s.done=a&&l}return s.value=s.done?i:r,s}}}function ci({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let p=n*t;const f=u+p,g=void 0===s?f:s(f);g!==f&&(p=g-u);const v=e=>-p*Math.exp(-e/r),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);h.done=Math.abs(t)<=c,h.value=h.done?g:n};let x,w;const k=e=>{var t;(t=h.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(x=e,w=li({keyframes:[h.value,m(h.value)],velocity:ei(y,e,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,b(e),k(e)),void 0!==x&&e>x?w.next(e-x):(!t&&b(e),h)}}}const di=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Ar.update(t,!0),stop:()=>Mr(t),now:()=>kr.isProcessing?kr.timestamp:performance.now()}};function ui(e){let t=0;let n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}const hi={decay:ci,inertia:ci,tween:Jo,keyframes:Jo,spring:li};function mi({autoplay:e=!0,delay:t=0,driver:n=di,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:u,...h}){let m,p,f=1,g=!1;const v=()=>{m&&m(),p=new Promise(e=>{m=e})};let y;v();const b=hi[o]||Jo;let x;b!==Jo&&"number"!=typeof r[0]&&(x=Ko([0,100],r,{clamp:!1}),r=[0,100]);const w=b({...h,keyframes:r});let k;"mirror"===a&&(k=b({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let N="idle",C=null,P=null,E=null;null===w.calculatedDuration&&i&&(w.calculatedDuration=ui(w));const{calculatedDuration:T}=w;let S=1/0,A=1/0;null!==T&&(S=T+s,A=S*(i+1)-s);let M=0;const D=e=>{if(null===P)return;f>0&&(P=Math.min(P,e)),M=null!==C?C:(e-P)*f;const n=M-t,o=n<0;M=Math.max(n,0),"finished"===N&&null===C&&(M=A);let l=M,c=w;if(i){const e=M/S;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/S)):"mirror"===a&&(c=k));let o=fn(0,1,n);M>A&&(o="reverse"===a&&r?1:0),l=o*S}const d=o?{done:!1,value:r[0]}:c.next(l);x&&(d.value=x(d.value));let{done:h}=d;o||null===T||(h=M>=A);const m=null===C&&("finished"===N||"running"===N&&h||f<0&&M<=0);return u&&u(d.value),m&&B(),d},V=()=>{y&&y.stop(),y=void 0},L=()=>{N="idle",V(),v(),P=E=null},B=()=>{N="finished",d&&d(),V(),v()},j=()=>{if(g)return;y||(y=n(D));const e=y.now();l&&l(),null!==C?P=e-C:P&&"finished"!==N||(P=e),E=P,C=null,N="running",y.start()};e&&j();const R={then:(e,t)=>p.then(e,t),get time(){return Xr(M)},set time(e){e=Yr(e),M=e,null===C&&y&&0!==f?P=y.now()-e/f:C=e},get duration(){const e=null===w.calculatedDuration?ui(w):w.calculatedDuration;return Xr(e)},get speed(){return f},set speed(e){e!==f&&y&&(f=e,R.time=Xr(M))},get state(){return N},play:j,pause:()=>{N="paused",C=M},stop:()=>{g=!0,"idle"!==N&&(N="idle",c&&c(),L())},cancel:()=>{null!==E&&D(E),L()},complete:()=>{N="finished"},sample:e=>(P=0,D(e))};return R}const pi=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function fi(e,t,{onUpdate:n,onComplete:r,...o}){if(!(ro.waapi()&&pi.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,s,a=!1;const l=()=>{s=new Promise(e=>{i=e})};l();let{keyframes:c,duration:d=300,ease:u,times:h}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Zr(t.ease))(t,o)){const e=mi({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;h=void 0,c=n,d=r-10,u="linear"}const m=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=eo(a);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:d,ease:u,times:h}),p=()=>m.cancel(),f=()=>{Ar.update(p),i(),l()};return m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),f()},{then:(e,t)=>s.then(e,t),get time(){return Xr(m.currentTime||0)},set time(e){m.currentTime=Yr(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return Xr(d)},play:()=>{a||(m.play(),Mr(p))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=mi({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const gi={type:"spring",stiffness:500,damping:25,restSpeed:10},vi={type:"keyframes",duration:.8},yi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bi=(e,{keyframes:t})=>t.length>2?vi:sn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:gi:yi,xi=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!zo.test(t)&&"0"!==t||t.startsWith("url("))),wi=new Set(["brightness","contrast","saturate","opacity"]);function ki(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(xn)||[];if(!r)return e;const o=n.replace(r,"");let i=wi.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Ni=/([a-z-]*)\(.*?\)/g,Ci={...zo,getAnimatableNone:e=>{const t=e.match(Ni);return t?t.map(ki).join(" "):e}},Pi={...Vn,color:Eo,backgroundColor:Eo,outlineColor:Eo,fill:Eo,stroke:Eo,borderColor:Eo,borderTopColor:Eo,borderRightColor:Eo,borderBottomColor:Eo,borderLeftColor:Eo,filter:Ci,WebkitFilter:Ci},Ei=e=>Pi[e];function Ti(e,t){let n=Ei(e);return n!==Ci&&(n=zo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Si=e=>/^0[^.\s]+$/.test(e);function Ai(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||Si(e):void 0}function Mi(e,t){return e[t]||e.default||e}const Di=(e,t,n,r={})=>o=>{const i=Mi(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a-=Yr(s);const l=function(e,t,n,r){const o=xi(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const s=void 0!==r.from?r.from:e.get();let a;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?s:i[e-1]),Ai(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(a=i[e]);if(o&&l.length&&a)for(let e=0;e<l.length;e++)i[l[e]]=Ti(t,a);return i}(t,e,n,i),c=l[0],d=l[l.length-1],u=xi(e,c),h=xi(e,d);Gr(u===h,`You are trying to animate ${e} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}(i)||(m={...m,...bi(e,m)}),m.duration&&(m.duration=Yr(m.duration)),m.repeatDelay&&(m.repeatDelay=Yr(m.repeatDelay)),!u||!h||qr||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Lr,pause:Lr,stop:Lr,then:e=>(e(),Promise.resolve()),cancel:Lr,complete:Lr});return t?mi({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=fi(t,e,m);if(n)return n}return mi(m)};function Vi(e){return Boolean(ln(e)&&e.add)}const Li=e=>/^\-?\d*\.?\d+$/.test(e);function Bi(e,t){-1===e.indexOf(t)&&e.push(t)}function ji(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ri{constructor(){this.subscriptions=[]}add(e){return Bi(this.subscriptions,e),()=>ji(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Fi=new Set;function Ii(e,t,n){e||Fi.has(t)||(console.warn(t),Fi.add(t))}class Oi{constructor(e,t={}){var n;this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=kr;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Ar.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ar.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&Ii(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Ri);const n=this.events[e].add(t);return"change"===e?()=>{n(),Ar.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Qo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function $i(e,t){return new Oi(e,t)}const zi=e=>t=>t.test(e),_i=[gn,Tn,En,Pn,An,Sn,{test:e=>"auto"===e,parse:e=>e}],Ui=e=>_i.find(zi(e)),Wi=[..._i,Eo,zo],Gi=e=>Wi.find(zi(e));function Hi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$i(n))}function Yi(e,t){if(!t)return;return(t[e]||t.default||t).from}function Xi({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function qi(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const t in a){const r=e.getValue(t),o=a[t];if(!r||void 0===o||d&&Xi(d,t))continue;const s={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[Wr];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,Ar))}r.start(Di(t,r,o,e.shouldReduceMotion&&sn.has(t)?{type:!1}:s));const u=r.animation;Vi(l)&&(l.add(t),u.then(()=>l.remove(t))),c.push(u)}return s&&Promise.all(c).then(()=>{s&&function(e,t){const n=Ur(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)Hi(e,t,or(i[t]))}(e,s)}),c}function Ki(e,t,n={}){const r=Ur(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(qi(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Zi).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(Ki(e,t,{...i,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+r,s,a,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[e,t]="beforeChildren"===a?[i,s]:[s,i];return e().then(()=>t())}return Promise.all([i(),s(n.delay)])}function Zi(e,t){return e.sortNodePosition(t)}const Ji=[...zt].reverse(),Qi=zt.length;function es(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>Ki(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=Ki(e,t,n);else{const o="function"==typeof t?Ur(e,t,n.custom):t;r=Promise.all(qi(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function ts(e){let t=es(e);const n={animate:rs(!0),whileInView:rs(),whileHover:rs(),whileTap:rs(),whileDrag:rs(),whileFocus:rs(),exit:rs()};let r=!0;const o=(t,n)=>{const r=Ur(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,s){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],d=new Set;let u={},h=1/0;for(let t=0;t<Qi;t++){const m=Ji[t],p=n[m],f=void 0!==a[m]?a[m]:l[m],g=Ot(f),v=m===s?p.isActive:null;!1===v&&(h=t);let y=f===l[m]&&f!==a[m]&&g;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...u},!p.isActive&&null===v||!f&&!p.prevProp||$t(f)||"boolean"==typeof f)continue;const b=ns(p.prevProp,f);let x=b||m===s&&p.isActive&&!y&&g||t>h&&g;const w=Array.isArray(f)?f:[f];let k=w.reduce(o,{});!1===v&&(k={});const{prevResolvedValues:N={}}=p,C={...N,...k},P=e=>{x=!0,d.delete(e),p.needsAnimating[e]=!0};for(const e in C){const t=k[e],n=N[e];u.hasOwnProperty(e)||(t!==n?rr(t)&&rr(n)?!_r(t,n)||b?P(e):p.protectedKeys[e]=!0:void 0!==t?P(e):d.add(e):void 0!==t&&d.has(e)?P(e):p.protectedKeys[e]=!0)}p.prevProp=f,p.prevResolvedValues=k,p.isActive&&(u={...u,...k}),r&&e.blockInitialAnimation&&(x=!1),x&&!y&&c.push(...w.map(e=>({animation:e,options:{type:m,...i}})))}if(d.size){const t={};d.forEach(n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),c.push({animation:t})}let m=Boolean(c.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=i(o,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function ns(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!_r(t,e)}function rs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let os=0;const is={animation:{Feature:class extends wr{constructor(e){super(e),e.animationState||(e.animationState=ts(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),$t(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends wr{constructor(){super(...arguments),this.id=os++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},ss=(e,t)=>Math.abs(e-t);class as{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=ds(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=ss(e.x,t.x),r=ss(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=kr;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=ls(t,this.transformPagePoint),Ar.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=ds("pointercancel"===e.type?this.lastMoveEventInfo:ls(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!ur(e))return;this.handlers=t,this.transformPagePoint=n;const r=ls(hr(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=kr;this.history=[{...o,timestamp:i}];const{onSessionStart:s}=t;s&&s(e,ds(r,this.history)),this.removeListeners=fr(mr(window,"pointermove",this.handlePointerMove),mr(window,"pointerup",this.handlePointerUp),mr(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Mr(this.updatePoint)}}function ls(e,t){return t?{point:t(e.point)}:e}function cs(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ds({point:e},t){return{point:e,delta:cs(e,hs(t)),offset:cs(e,us(t)),velocity:ms(t,.1)}}function us(e){return e[0]}function hs(e){return e[e.length-1]}function ms(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=hs(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Yr(t)));)n--;if(!r)return{x:0,y:0};const i=Xr(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ps(e){return e.max-e.min}function fs(e,t=0,n=.01){return Math.abs(e-t)<=n}function gs(e,t,n,r=.5){e.origin=r,e.originPoint=To(t.min,t.max,e.origin),e.scale=ps(n)/ps(t),(fs(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=To(n.min,n.max,e.origin)-e.originPoint,(fs(e.translate)||isNaN(e.translate))&&(e.translate=0)}function vs(e,t,n,r){gs(e.x,t.x,n.x,r?r.originX:void 0),gs(e.y,t.y,n.y,r?r.originY:void 0)}function ys(e,t,n){e.min=n.min+t.min,e.max=e.min+ps(t)}function bs(e,t,n){e.min=t.min-n.min,e.max=e.min+ps(t)}function xs(e,t,n){bs(e.x,t.x,n.x),bs(e.y,t.y,n.y)}function ws(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ks(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Ns=.35;function Cs(e,t,n){return{min:Ps(e,t),max:Ps(e,n)}}function Ps(e,t){return"number"==typeof e?e:e[t]||0}const Es=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ts(e){return[e("x"),e("y")]}function Ss({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function As(e){return void 0===e||1===e}function Ms({scale:e,scaleX:t,scaleY:n}){return!As(e)||!As(t)||!As(n)}function Ds(e){return Ms(e)||Vs(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Vs(e){return Ls(e.x)||Ls(e.y)}function Ls(e){return e&&"0%"!==e}function Bs(e,t,n){return n+t*(e-n)}function js(e,t,n,r,o){return void 0!==o&&(e=Bs(e,o,r)),Bs(e,n,r)+t}function Rs(e,t=0,n=1,r,o){e.min=js(e.min,t,n,r,o),e.max=js(e.max,t,n,r,o)}function Fs(e,{x:t,y:n}){Rs(e.x,t.translate,t.scale,t.originPoint),Rs(e.y,n.translate,n.scale,n.originPoint)}function Is(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Os(e,t){e.min=e.min+t,e.max=e.max+t}function $s(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=To(e.min,e.max,i);Rs(e,t[n],t[r],s,t.scale)}const zs=["x","scaleX","originX"],_s=["y","scaleY","originY"];function Us(e,t){$s(e.x,t,zs),$s(e.y,t,_s)}function Ws(e,t){return Ss(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Gs=new WeakMap;class Hs{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new as(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(hr(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=br(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ts(e=>{let t=this.getAxisMotionValue(e).get()||0;if(En.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=ps(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&Ar.update(()=>o(e,t),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Ar.update(()=>o(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Ys(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?To(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?To(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&It(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:ws(e.x,n,o),y:ws(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Ns){return!1===e?e=0:!0===e&&(e=Ns),{x:Cs(e,"left","right"),y:Cs(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ts(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!It(e))return!1;const n=e.current;Hr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Ws(e,n),{scroll:o}=t;return o&&(Os(r.x,o.offset.x),Os(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:ks(e.x,t.x),y:ks(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Ss(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Ts(s=>{if(!Ys(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,d=r?40:1e7,u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,u)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Di(e,n,0,t))}stopAnimation(){Ts(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ts(t=>{const{drag:n}=this.getProps();if(!Ys(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-To(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!It(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ts(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=ps(e),o=ps(t);return o>r?n=Yo(t.min,t.max-r,e.min):r>o&&(n=Yo(e.min,e.max-o,t.min)),fn(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ts(t=>{if(!Ys(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(To(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;Gs.set(this.visualElement,this);const e=mr(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();It(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=dr(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ts(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Ns,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Ys(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Xs=e=>(t,n)=>{e&&Ar.update(()=>e(t,n))};const qs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ks(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Zs={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Tn.test(e))return e;e=parseFloat(e)}return`${Ks(e,t.target.x)}% ${Ks(e,t.target.y)}%`}},Js={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=zo.parse(e);if(o.length>5)return r;const i=zo.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=To(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}};class Qs extends o.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=ta,Object.assign(rn,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),qs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Ar.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ea(e){const[t,n]=function(){const e=m(Bt);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=g();return l(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=m(qt);return o.createElement(Qs,{...e,layoutGroup:r,switchLayoutGroup:m(Kt),isPresent:t,safeToRemove:n})}const ta={borderRadius:{...Zs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zs,borderTopRightRadius:Zs,borderBottomLeftRadius:Zs,borderBottomRightRadius:Zs,boxShadow:Js},na=["TopLeft","TopRight","BottomLeft","BottomRight"],ra=na.length,oa=e=>"string"==typeof e?parseFloat(e):e,ia=e=>"number"==typeof e||Tn.test(e);function sa(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const aa=ca(0,.5,mo),la=ca(.5,.95,Lr);function ca(e,t,n){return r=>r<e?0:r>t?1:n(Yo(e,t,r))}function da(e,t){e.min=t.min,e.max=t.max}function ua(e,t){da(e.x,t.x),da(e.y,t.y)}function ha(e,t,n,r,o){return e=Bs(e-=t,1/n,r),void 0!==o&&(e=Bs(e,1/o,r)),e}function ma(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){En.test(t)&&(t=parseFloat(t),t=To(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=To(i.min,i.max,r);e===i&&(a-=t),e.min=ha(e.min,t,n,a,o),e.max=ha(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const pa=["x","scaleX","originX"],fa=["y","scaleY","originY"];function ga(e,t,n,r){ma(e.x,t,pa,n?n.x:void 0,r?r.x:void 0),ma(e.y,t,fa,n?n.y:void 0,r?r.y:void 0)}function va(e){return 0===e.translate&&1===e.scale}function ya(e){return va(e.x)&&va(e.y)}function ba(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function xa(e){return ps(e.x)/ps(e.y)}class wa{constructor(){this.members=[]}add(e){Bi(this.members,e),e.scheduleRender()}remove(e){if(ji(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ka(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const Na=(e,t)=>e.depth-t.depth;class Ca{constructor(){this.children=[],this.isDirty=!1}add(e){Bi(this.children,e),this.isDirty=!0}remove(e){ji(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Na),this.isDirty=!1,this.children.forEach(e)}}const Pa=["","X","Y","Z"];let Ea=0;const Ta={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Sa({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Ea++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Ta.totalNodes=Ta.resolvedTargetDeltas=Ta.recalculatedProjection=0,this.nodes.forEach(Da),this.nodes.forEach(Ia),this.nodes.forEach(Oa),this.nodes.forEach(Va),e=Ta,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ca)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ri),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Mr(r),e(i-t))};return Ar.read(r,!0),()=>Mr(r)}(r,250),qs.hasAnimatedSinceResize&&(qs.hasAnimatedSinceResize=!1,this.nodes.forEach(Fa))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||Ga,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!ba(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Mi(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Fa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach($a),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ba);this.isUpdating||this.nodes.forEach(ja),this.isUpdating=!1,this.nodes.forEach(Ra),this.nodes.forEach(Aa),this.nodes.forEach(Ma),this.clearAllSnapshots();const e=performance.now();kr.delta=fn(0,1e3/60,e-kr.timestamp),kr.timestamp=e,kr.isProcessing=!0,Er.update.process(kr),Er.preRender.process(kr),Er.render.process(kr),kr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(La),this.sharedNodes.forEach(za)}scheduleUpdateProjection(){Ar.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ar.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!ya(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Ds(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Ha((r=n).x),Ha(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Os(t.x,n.offset.x),Os(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};ua(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){ua(t,e);const{scroll:n}=this.root;n&&(Os(t.x,-n.offset.x),Os(t.y,-n.offset.y))}Os(t.x,o.offset.x),Os(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};ua(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Us(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Ds(r.latestValues)&&Us(n,r.latestValues)}return Ds(this.latestValues)&&Us(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};ua(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Ds(n.latestValues))continue;Ms(n.latestValues)&&n.updateSnapshot();const r=Es();ua(r,n.measurePageBox()),ga(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Ds(this.latestValues)&&ga(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==kr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=kr.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},xs(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),ua(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,ys(s.x,a.x,l.x),ys(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ua(this.target,this.layout.layoutBox),Fs(this.target,this.targetDelta)):ua(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},xs(this.relativeTargetOrigin,this.target,e.target),ua(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ta.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ms(this.parent.latestValues)&&!Vs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===kr.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;ua(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Us(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Fs(e,s)),r&&Ds(i.latestValues)&&Us(e,i.latestValues))}t.x=Is(t.x),t.y=Is(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.projectionTransform;vs(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ka(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Ta.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,d=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Wa));let u;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,h,m,p;_a(i.x,e.x,n),_a(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xs(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,h=this.relativeTargetOrigin,m=s,p=n,Ua(l.x,h.x,m.x,p),Ua(l.y,h.y,m.y,p),u&&ba(this.relativeTarget,u)&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),ua(u,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=To(0,void 0!==n.opacity?n.opacity:1,aa(r)),e.opacityExit=To(void 0!==t.opacity?t.opacity:1,0,la(r))):i&&(e.opacity=To(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<ra;o++){const i=`border${na[o]}Radius`;let s=sa(t,i),a=sa(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||ia(s)===ia(a)?(e[i]=Math.max(To(oa(s),oa(a),r),0),(En.test(a)||En.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=To(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ar.update(()=>{qs.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=ln(e)?e:$i(e);return r.start(Di("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Ya(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=ps(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=ps(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}ua(t,n),Us(t,o),vs(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new wa);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<Pa.length;t++){const o="rotate"+Pa[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=ir(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ir(e.pointerEvents)||""),this.hasProjected&&!Ds(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ka(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in rn){if(void 0===s[e])continue;const{correct:t,applyTo:n}=rn[e],o="none"===r.transform?s[e]:t(s[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?ir(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Ba),this.root.sharedNodes.clear()}}}function Aa(e){e.updateLayout()}function Ma(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Ts(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=ps(r);r.min=t[e].min,r.max=r.min+o}):Ya(o,n.layoutBox,t)&&Ts(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=ps(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};vs(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?vs(a,e.applyTransform(r,!0),n.measuredBox):vs(a,t,n.layoutBox);const l=!ya(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s={x:{min:0,max:0},y:{min:0,max:0}};xs(s,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};xs(a,t,i.layoutBox),ba(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Da(e){Ta.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Va(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function La(e){e.clearSnapshot()}function Ba(e){e.clearMeasurements()}function ja(e){e.isLayoutDirty=!1}function Ra(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Fa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ia(e){e.resolveTargetDelta()}function Oa(e){e.calcProjection()}function $a(e){e.resetRotation()}function za(e){e.removeLeadSnapshot()}function _a(e,t,n){e.translate=To(t.translate,0,n),e.scale=To(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ua(e,t,n,r){e.min=To(t.min,n.min,r),e.max=To(t.max,n.max,r)}function Wa(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Ga={duration:.45,ease:[.4,0,.1,1]};function Ha(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Ya(e,t,n){return"position"===e||"preserve-aspect"===e&&!fs(xa(t),xa(n),.2)}const Xa=Sa({attachResizeListener:(e,t)=>dr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qa={current:void 0},Ka=Sa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qa.current){const e=new Xa({});e.mount(window),e.setOptions({layoutScroll:!0}),qa.current=e}return qa.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Za={pan:{Feature:class extends wr{constructor(){super(...arguments),this.removePointerDownListener=Lr}onPointerDown(e){this.session=new as(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Xs(e),onStart:Xs(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Ar.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=mr(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends wr{constructor(e){super(e),this.removeGroupControls=Lr,this.removeListeners=Lr,this.controls=new Hs(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Lr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ka,MeasureLayout:ea}},Ja=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Qa(e,t,n=1){Hr(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Ja.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():mn(o)?Qa(o,t,n+1):o}const el=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tl=e=>el.has(e),nl=e=>e===gn||e===Tn,rl=(e,t)=>parseFloat(e.split(", ")[t]),ol=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return rl(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?rl(t[1],e):0}},il=new Set(["x","y","z"]),sl=on.filter(e=>!il.has(e));const al={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ol(4,13),y:ol(5,14)},ll=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(tl);let i=[],s=!1;const a=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],d=Ui(c);const u=t[o];let h;if(rr(u)){const e=u.length,t=null===u[0]?1:0;c=u[t],d=Ui(c);for(let n=t;n<e&&null!==u[n];n++)h?Hr(Ui(u[n])===h,"All keyframes must be of the same type"):(h=Ui(u[n]),Hr(h===d||nl(d)&&nl(h),"Keyframes must be of the same dimension as the current value"))}else h=Ui(u);if(d!==h)if(nl(d)&&nl(h)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof u?t[o]=parseFloat(u):Array.isArray(u)&&h===Tn&&(t[o]=u.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==h?void 0:h.transform)&&(0===c||0===u)?0===c?l.set(h.transform(c)):t[o]=d.transform(u):(s||(i=function(e){const t=[];return sl.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),a.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(u))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};"none"===s&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=al[e](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const r=t.getValue(n);r&&r.jump(a[n]),e[n]=al[n](l,i)}),e})(t,e,a);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),jt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function cl(e,t,n,r){return(e=>Object.keys(e).some(tl))(t)?ll(e,t,n,r):{target:t,transitionEnd:r}}const dl=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!mn(t))return;const n=Qa(t,r);n&&e.set(n)});for(const e in t){const o=t[e];if(!mn(o))continue;const i=Qa(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return cl(e,t=o.target,n,r=o.transitionEnd)},ul={current:null},hl={current:!1};const ml=new WeakMap,pl=Object.keys(Xt),fl=pl.length,gl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],vl=_t.length;class yl{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ar.render(this.render,!1,!0);const{latestValues:s,renderState:a}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Ut(t),this.isVariantNode=Wt(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==s[e]&&ln(t)&&(t.set(s[e],!1),Vi(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,ml.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),hl.current||function(){if(hl.current=!0,jt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ul.current=e.matches;e.addListener(t),t()}else ul.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ul.current),"production"!==process.env.NODE_ENV&&Ii(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ml.delete(this.current),this.projection&&this.projection.unmount(),Mr(this.notifyUpdate),Mr(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=sn.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Ar.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,s;if("production"!==process.env.NODE_ENV&&r&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Gr(!1,e):Hr(!1,e)}for(let e=0;e<fl;e++){const n=pl[e],{isEnabled:r,Feature:o,ProjectionNode:a,MeasureLayout:l}=Xt[n];a&&(i=a),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(s=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&It(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<gl.length;t++){const n=gl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(ln(i))e.addValue(o,i),Vi(r)&&r.add(o),"development"===process.env.NODE_ENV&&Ii("10.12.16"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.12.16 may not work as expected.`);else if(ln(s))e.addValue(o,$i(i,{owner:e})),Vi(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,$i(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<vl;e++){const n=_t[e],r=this.props[n];(Ot(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=$i(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=nr(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||ln(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Ri),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class bl extends yl{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=Yi(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter(t=>!e.hasValue(t)),s=i.length;if(s)for(let a=0;a<s;a++){const s=i[a],l=t[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==o?o:t[s]),null!=c&&("string"==typeof c&&(Li(c)||Si(c))?c=parseFloat(c):!Gi(c)&&zo.test(l)&&(c=Ti(s,l)),e.addValue(s,$i(c,{owner:e})),void 0===n[s]&&(n[s]=c),null!==c&&e.setBaseTarget(s,c))}}(this,n,i);const e=dl(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class xl extends bl{readValueFromInstance(e,t){if(sn.has(t)){const e=Ei(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(hn(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ws(e,t)}build(e,t,n,r){Ln(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return er(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ln(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){Zn(e,t,n,r)}}class wl extends bl{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(sn.has(t)){const e=Ei(t);return e&&e.default||0}return t=Jn.has(t)?t:Kn(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return tr(e,t)}build(e,t,n,r){Gn(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Qn(e,t,0,r)}mount(e){this.isSVGTag=Yn(e.tagName),super.mount(e)}}const kl=(e,t)=>nn(e)?new wl(t,{enableHardwareAcceleration:!1}):new xl(t,{enableHardwareAcceleration:!0}),Nl={...is,...zr,...Za,...{layout:{ProjectionNode:Ka,MeasureLayout:ea}}},Cl=en((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...nn(e)?lr:cr,preloadedFeatures:n,useRender:qn(t),createVisualElement:r,Component:e}}(e,t,Nl,kl));function Pl(){return Pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pl.apply(null,arguments)}function El(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Tl(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function Sl(...e){return c(Tl(...e),e)}function Al(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return d(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}const Ml=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?h:()=>{},Dl=r["useId".toString()]||(()=>{});let Vl=0;function Ll(e){const[t,n]=r.useState(Dl());return Ml(()=>{n(e=>null!=e?e:String(Vl++))},[e]),e||(t?`radix-${t}`:"")}function Bl(e){const t=s(e);return l(()=>{t.current=e}),d(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function jl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=function({defaultProp:e,onChange:t}){const n=a(e),[r]=n,o=s(r),i=Bl(t);return l(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,d=i?e:r,u=Bl(n);return[d,c(t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[i,e,o,u])]}const Rl=i((e,t)=>{const{children:n,...r}=e,o=v.toArray(n),i=o.find(Ol);if(i){const e=i.props.children,n=o.map(t=>t===i?v.count(e)>1?v.only(null):y(e)?e.props.children:null:t);return f(Fl,Pl({},r,{ref:t}),y(e)?b(e,void 0,n):null)}return f(Fl,Pl({},r,{ref:t}),n)});Rl.displayName="Slot";const Fl=i((e,t)=>{const{children:n,...r}=e;return y(n)?b(n,{...$l(r,n.props),ref:t?Tl(t,n.ref):n.ref}):v.count(n)>1?v.only(null):null});Fl.displayName="SlotClone";const Il=({children:e})=>f(x,null,e);function Ol(e){return y(e)&&e.type===Il}function $l(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const zl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=i((e,n)=>{const{asChild:r,...o}=e,i=r?Rl:t;return l(()=>{window[Symbol.for("radix-ui")]=!0},[]),f(i,Pl({},o,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});const _l="dismissableLayer.update",Ul="dismissableLayer.pointerDownOutside",Wl="dismissableLayer.focusOutside";let Gl;const Hl=u({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yl=i((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:d,onDismiss:u,...h}=e,p=m(Hl),[g,v]=a(null),y=null!==(n=null==g?void 0:g.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,b]=a({}),x=Sl(t,e=>v(e)),w=Array.from(p.layers),[k]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),N=w.indexOf(k),C=g?w.indexOf(g):-1,P=p.layersWithOutsidePointerEventsDisabled.size>0,E=C>=N,T=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Bl(e),r=s(!1),o=s(()=>{});return l(()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function s(){ql(Ul,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=s,t.addEventListener("click",o.current,{once:!0})):s()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...p.branches].some(e=>e.contains(t));E&&!n&&(null==i||i(e),null==d||d(e),e.defaultPrevented||null==u||u())},y),S=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Bl(e),r=s(!1);return l(()=>{const e=e=>{if(e.target&&!r.current){ql(Wl,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...p.branches].some(e=>e.contains(t))||(null==c||c(e),null==d||d(e),e.defaultPrevented||null==u||u())},y);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Bl(e);l(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{C===p.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},y),l(()=>{if(g)return r&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(Gl=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),Xl(),()=>{r&&1===p.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=Gl)}},[g,y,r,p]),l(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),Xl())},[g,p]),l(()=>{const e=()=>b({});return document.addEventListener(_l,e),()=>document.removeEventListener(_l,e)},[]),f(zl.div,Pl({},h,{ref:x,style:{pointerEvents:P?E?"auto":"none":void 0,...e.style},onFocusCapture:El(e.onFocusCapture,S.onFocusCapture),onBlurCapture:El(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:El(e.onPointerDownCapture,T.onPointerDownCapture)}))});function Xl(){const e=new CustomEvent(_l);document.dispatchEvent(e)}function ql(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&C(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}const Kl="focusScope.autoFocusOnMount",Zl="focusScope.autoFocusOnUnmount",Jl={bubbles:!1,cancelable:!0},Ql=i((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...d}=e,[u,h]=a(null),m=Bl(o),p=Bl(i),g=s(null),v=Sl(t,e=>h(e)),y=s({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l(()=>{if(r){function e(e){if(y.paused||!u)return;const t=e.target;u.contains(t)?g.current=t:rc(g.current,{select:!0})}function t(e){if(y.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||rc(g.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&rc(u)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return u&&o.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}},[r,u,y.paused]),l(()=>{if(u){oc.add(y);const t=document.activeElement;if(!u.contains(t)){const n=new CustomEvent(Kl,Jl);u.addEventListener(Kl,m),u.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rc(r,{select:t}),document.activeElement!==n)return}((e=ec(u),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&rc(u))}return()=>{u.removeEventListener(Kl,m),setTimeout(()=>{const e=new CustomEvent(Zl,Jl);u.addEventListener(Zl,p),u.dispatchEvent(e),e.defaultPrevented||rc(null!=t?t:document.body,{select:!0}),u.removeEventListener(Zl,p),oc.remove(y)},0)}}var e},[u,m,p,y]);const b=c(e=>{if(!n&&!r)return;if(y.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=ec(e),n=tc(t,e),r=tc(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&rc(i,{select:!0})):(e.preventDefault(),n&&rc(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,y.paused]);return f(zl.div,Pl({tabIndex:-1},d,{ref:v,onKeyDown:b}))});function ec(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tc(e,t){for(const n of e)if(!nc(n,{upTo:t}))return n}function nc(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function rc(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const oc=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=ic(e,t),e.unshift(t)},remove(t){var n;e=ic(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function ic(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const sc=i((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?N.createPortal(f(zl.div,Pl({},o,{ref:t})),r):null});const ac=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a(),r=s({}),o=s(e),i=s("none"),d=e?"mounted":"unmounted",[u,h]=function(e,t){return w((e,n)=>{const r=t[e][n];return null!=r?r:e},e)}(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l(()=>{const e=lc(r.current);i.current="mounted"===u?e:"none"},[u]),Ml(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,s=lc(t);if(e)h("MOUNT");else if("none"===s||"none"===(null==t?void 0:t.display))h("UNMOUNT");else{h(n&&r!==s?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,h]),Ml(()=>{if(t){const e=e=>{const n=lc(r.current).includes(e.animationName);e.target===t&&n&&C(()=>h("ANIMATION_END"))},n=e=>{e.target===t&&(i.current=lc(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:c(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):v.only(n),i=Sl(r.ref,o.ref);return"function"==typeof n||r.isPresent?b(o,{ref:i}):null};function lc(e){return(null==e?void 0:e.animationName)||"none"}ac.displayName="Presence";let cc=0;function dc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var uc=function(){return uc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},uc.apply(this,arguments)};function hc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var mc="right-scroll-bar-position",pc="width-before-scroll-bar";function fc(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var gc="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,vc=new WeakMap;function yc(e,t){var n,r,o,i=(n=null,r=function(t){return e.forEach(function(e){return fc(e,t)})},(o=a(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return gc(function(){var t=vc.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach(function(e){r.has(e)||fc(e,null)}),r.forEach(function(e){n.has(e)||fc(e,o)})}vc.set(i,e)},[e]),i}function bc(e){return e}var xc=function(e){var t=e.sideCar,n=hc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,uc({},n))};xc.isSideCarExport=!0;var wc=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=bc);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=uc({async:!0,ssr:!1},e),t}(),kc=function(){},Nc=r.forwardRef(function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:kc,onWheelCapture:kc,onTouchMoveCapture:kc}),i=o[0],s=o[1],a=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,h=e.shards,m=e.sideCar,p=e.noIsolation,f=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=hc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=m,w=yc([n,t]),k=uc(uc({},b),i);return r.createElement(r.Fragment,null,u&&r.createElement(x,{sideCar:wc,removeScrollBar:d,shards:h,noIsolation:p,inert:f,setCallbacks:s,allowPinchZoom:!!g,lockRef:n}),a?r.cloneElement(r.Children.only(l),uc(uc({},k),{ref:w})):r.createElement(y,uc({},k,{className:c,ref:w}),l))});Nc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Nc.classNames={fullWidth:pc,zeroRight:mc};function Cc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Pc=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Cc())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ec=function(){var e,t=(e=Pc(),function(t,n){r.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Tc={left:0,top:0,right:0,gap:0},Sc=function(e){return parseInt(e||"",10)||0},Ac=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Tc;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Sc(n),Sc(r),Sc(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Mc=Ec(),Dc="data-scroll-locked",Vc=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(Dc,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(mc," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(pc," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(mc," .").concat(mc," {\n right: 0 ").concat(r,";\n }\n \n .").concat(pc," .").concat(pc," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Dc,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},Lc=function(){var e=parseInt(document.body.getAttribute(Dc)||"0",10);return isFinite(e)?e:0},Bc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;r.useEffect(function(){return document.body.setAttribute(Dc,(Lc()+1).toString()),function(){var e=Lc()-1;e<=0?document.body.removeAttribute(Dc):document.body.setAttribute(Dc,e.toString())}},[]);var s=r.useMemo(function(){return Ac(i)},[i]);return r.createElement(Mc,{styles:Vc(s,!t,i,n?"":"!important")})},jc=!1;if("undefined"!=typeof window)try{var Rc=Object.defineProperty({},"passive",{get:function(){return jc=!0,!0}});window.addEventListener("test",Rc,Rc),window.removeEventListener("test",Rc,Rc)}catch(e){jc=!1}var Fc=!!jc&&{passive:!1},Ic=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Oc=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),$c(e,n)){var r=zc(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},$c=function(e,t){return"v"===e?function(e){return Ic(e,"overflowY")}(t):function(e){return Ic(e,"overflowX")}(t)},zc=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},_c=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Uc=function(e){return[e.deltaX,e.deltaY]},Wc=function(e){return e&&"current"in e?e.current:e},Gc=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Hc=0,Yc=[];var Xc,qc=(Xc=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(Hc++)[0],s=r.useState(function(){return Ec()})[0],a=r.useRef(e);r.useEffect(function(){a.current=e},[e]),r.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Wc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=r.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var r,i=_c(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var h=Oc(u,d);if(!h)return!0;if(h?r=u:(r="v"===u?"h":"v",h=Oc(u,d)),!h)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=r),!r)return!0;var m=o.current||r;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,s=n.target,a=t.contains(s),l=!1,c=i>0,d=0,u=0;do{var h=zc(e,s),m=h[0],p=h[1]-h[2]-o*m;(m||p)&&$c(e,s)&&(d+=p,u+=m),s=s.parentNode}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return c&&0===d?l=!0:c||0!==u||(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=r.useCallback(function(e){var n=e;if(Yc.length&&Yc[Yc.length-1]===s){var r="deltaY"in n?Uc(n):_c(n),o=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(a.current.shards||[]).map(Wc).filter(Boolean).filter(function(e){return e.contains(n.target)});(i.length>0?l(n,i[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),d=r.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=r.useCallback(function(e){n.current=_c(e),o.current=void 0},[]),h=r.useCallback(function(t){d(t.type,Uc(t),t.target,l(t,e.lockRef.current))},[]),m=r.useCallback(function(t){d(t.type,_c(t),t.target,l(t,e.lockRef.current))},[]);r.useEffect(function(){return Yc.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Fc),document.addEventListener("touchmove",c,Fc),document.addEventListener("touchstart",u,Fc),function(){Yc=Yc.filter(function(e){return e!==s}),document.removeEventListener("wheel",c,Fc),document.removeEventListener("touchmove",c,Fc),document.removeEventListener("touchstart",u,Fc)}},[]);var p=e.removeScrollBar,f=e.inert;return r.createElement(r.Fragment,null,f?r.createElement(s,{styles:Gc(i)}):null,p?r.createElement(Bc,{gapMode:"margin"}):null)},wc.useMedium(Xc),xc),Kc=r.forwardRef(function(e,t){return r.createElement(Nc,uc({},e,{ref:t,sideCar:qc}))});Kc.classNames=Nc.classNames;var Zc=new WeakMap,Jc=new WeakMap,Qc={},ed=0,td=function(e){return e&&(e.host||td(e.parentNode))},nd=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=td(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Qc[n]||(Qc[n]=new WeakMap);var i=Qc[n],s=[],a=new Set,l=new Set(o),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};o.forEach(c);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))d(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Zc.get(e)||0)+1,c=(i.get(e)||0)+1;Zc.set(e,l),i.set(e,c),s.push(e),1===l&&o&&Jc.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),a.clear(),ed++,function(){s.forEach(function(e){var t=Zc.get(e)-1,o=i.get(e)-1;Zc.set(e,t),i.set(e,o),t||(Jc.has(e)||e.removeAttribute(r),Jc.delete(e)),o||e.removeAttribute(n)}),--ed||(Zc=new WeakMap,Zc=new WeakMap,Jc=new WeakMap,Qc={})}},rd=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),nd(r,o,n,"aria-hidden")):function(){return null}};const od="Dialog",[id,sd]=function(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>u(e));return function(n){const r=(null==n?void 0:n[e])||t;return d(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=u(r),i=n.length;function s(t){const{scope:n,children:r,...s}=t,a=(null==n?void 0:n[e][i])||o,l=d(()=>s,Object.values(s));return f(a.Provider,{value:l},r)}return n=[...n,r],s.displayName=t+"Provider",[s,function(n,s){const a=(null==s?void 0:s[e][i])||o,l=m(a);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Al(r,...t)]}(od),[ad,ld]=id(od),cd="DialogPortal",[dd,ud]=id(cd,{forceMount:void 0}),hd="DialogOverlay",md=i((e,t)=>{const n=ud(hd,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ld(hd,e.__scopeDialog);return i.modal?f(ac,{present:r||i.open},f(pd,Pl({},o,{ref:t}))):null}),pd=i((e,t)=>{const{__scopeDialog:n,...r}=e,o=ld(hd,n);return f(Kc,{as:Rl,allowPinchZoom:!0,shards:[o.contentRef]},f(zl.div,Pl({"data-state":Nd(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),fd="DialogContent",gd=i((e,t)=>{const n=ud(fd,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ld(fd,e.__scopeDialog);return f(ac,{present:r||i.open},i.modal?f(vd,Pl({},o,{ref:t})):f(yd,Pl({},o,{ref:t})))}),vd=i((e,t)=>{const n=ld(fd,e.__scopeDialog),r=s(null),o=Sl(t,n.contentRef,r);return l(()=>{const e=r.current;if(e)return rd(e)},[]),f(bd,Pl({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:El(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:El(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:El(e.onFocusOutside,e=>e.preventDefault())}))}),yd=i((e,t)=>{const n=ld(fd,e.__scopeDialog),r=s(!1),o=s(!1);return f(bd,Pl({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,s;(null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented)||(r.current||null===(s=n.triggerRef.current)||void 0===s||s.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var i,s;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target;(null===(s=n.triggerRef.current)||void 0===s?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),bd=i((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,c=ld(fd,n),d=Sl(t,s(null));return l(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:dc()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:dc()),cc++,()=>{1===cc&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),cc--}},[]),f(x,null,f(Ql,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},f(Yl,Pl({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Nd(c.open)},a,{ref:d,onDismiss:()=>c.onOpenChange(!1)}))),!1)}),xd="DialogTitle",wd="DialogClose",kd=i((e,t)=>{const{__scopeDialog:n,...r}=e,o=ld(wd,n);return f(zl.button,Pl({type:"button"},r,{ref:t,onClick:El(e.onClick,()=>o.onOpenChange(!1))}))});function Nd(e){return e?"open":"closed"}!function(e,t){const n=u(t);function r(e){const{children:t,...r}=e,o=d(()=>r,Object.values(r));return f(n.Provider,{value:o},t)}r.displayName=e+"Provider"}("DialogTitleWarning",{contentName:fd,titleName:xd,docsSlug:"dialog"});const Cd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=s(null),d=s(null),[u=!1,h]=jl({prop:r,defaultProp:o,onChange:i});return f(ad,{scope:t,triggerRef:l,contentRef:d,contentId:Ll(),titleId:Ll(),descriptionId:Ll(),open:u,onOpenChange:h,onOpenToggle:c(()=>h(e=>!e),[h]),modal:a},n)},Pd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=ld(cd,t);return f(dd,{scope:t,forceMount:n},v.map(r,e=>f(ac,{present:n||i.open},f(sc,{asChild:!0,container:o},e))))},Ed=md,Td=gd,Sd=kd,Ad=n=>{const{isOpen:r,onRequestClose:o,size:i,title:s,content:a,description:l,children:c,bodyClassName:d}=n;return e(Cd,{open:r,onOpenChange:()=>r&&(null==o?void 0:o()),children:t(Pd,{children:[e(Cl.div,{initial:"closed",animate:r?"open":"closed",variants:At,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e(Ed,{})}),e(Cl.div,{initial:"closed",animate:r?"open":"closed",variants:Mt,transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"fixed left-1/2 top-1/2 z-[1001] w-auto -translate-x-1/2 -translate-y-1/2 focus:outline-none",children:t(Td,{className:Ie("fixed left-[50%] top-[50%] w-[90vw] translate-x-[-50%] translate-y-[-50%] rounded-[6px] bg-bg p-[25px] shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] focus:outline-none",d),style:{maxWidth:Dt[i||"lg"]},children:[e(Sd,{asChild:!0,children:e(Xe,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 mr-2 mt-2 bg-bg",children:e(ze,{name:"close"})})}),t("div",{className:"custom-modal-body max-h-[85vh] overflow-visible",children:[s?e(Ue,{className:Ie("mx-auto mb-3 mt-5 text-center","heading5 md:max-w-[80%] md:pt-0","mb-5 md:mb-[60px]"),as:"h2",children:s}):null,l?e(Ue,{as:"div",children:l}):null,a,c||null]})]})})]})})},Md=({children:n,background:r,className:o,fill:i="yellow",maxFit:s,show:a=!0,path:l="path2"})=>{const c=`${l}`,d={blue:"text-[#07B2E2]",green:"text-[#26B170]",yellow:"text-[#F5FF1E]",purple:"text-[#931D69]",white:"text-white",navy:"text-[#00002D]"},u={blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"},h="string"==typeof r&&r in u,m=h?u[r]:void 0,p=r&&!h?{background:r}:void 0,f=i in d?d[i]:"text-[#F5FF1E]";return a?t("div",{className:`shape-bg relative overflow-hidden ${null!=o?o:""} ${s?"max-content":""} ${null!=m?m:p?"":"bg-white"}`,style:p,children:["path1"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2371px] z-0 translate-x-[-55%] ${c} fill-current ${f}`,width:"2262",height:"4359",viewBox:"0 0 2262 4359",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1838.72 444.021C2216.45 758.242 2351.22 1060.81 2202.83 1982.25C2062.95 2851.55 1923.57 4265.14 1394.48 4348.94C1079.75 4409.66 766.955 4172.68 508.523 4003.04C340.876 3884.89 192.855 3774.9 26.6866 3661.93C-27.6562 3624.7 8.69435 3542.15 74.1261 3555.69C415.628 3626.61 686.916 3615.36 942.942 3443.48C1410.95 3163.54 1632.32 2141.02 1629.56 1543.75C1637.51 910.76 1276.06 582.318 829.643 352.709C587.562 235.528 333.508 169.963 100.699 149.757C31.9431 143.965 25.0259 47.9703 92.459 33.1281C623.196 -84.6769 1404.59 131.886 1839.84 443.573"})}),"path2"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[45.8px] z-0 translate-x-[-101%] ${c} fill-current ${f}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.09 4009.1 647.09 3634.26 264.38C3417.79 27.9944 3025.37 31.7818 2716.76 13.9013C2511.72 8.81634 2327.31 8.87399 2126.55 0.511773C2060.73 -2.00127 2040.7 85.9475 2101.3 114.087C2417.76 260.743 2628.86 431.51 2731.94 722.142C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.97 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path3"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2600px] z-0 translate-x-[-55%] ${c} fill-current ${f}`,width:"3044",height:"3248",viewBox:"0 0 3044 3248",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1.21857 1353.6C-0.931975 1765.46 120.504 2015.15 791.765 2417.01C1424.98 2796.19 2407.16 3469.31 2746.34 3175.04C2955.08 3005.86 2971.76 2677.32 3002.33 2420C3016.95 2248.7 3026.23 2094.39 3043.38 1926.83C3048.81 1871.88 2976.24 1850.67 2949.63 1899.96C2810.91 2157.33 2657.35 2325.33 2408.95 2396.88C1976.88 2546.15 1201.39 2136.59 819.655 1812.63C409.231 1476.27 393.475 1067.19 486.97 656.895C542.372 438.358 637.352 239.983 749.974 79.7081C783.347 32.4684 725.487 -23.7534 679.587 11.5067C317.699 288.49 35.1358 906.671 0.328344 1354.07"})}),"path4"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-1966.1px] z-0 translate-x-[-48%] ${c} fill-current ${f}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.1 4009.1 647.091 3634.26 264.381C3417.79 27.9951 3025.37 31.7826 2716.76 13.902C2511.72 8.81709 2327.31 8.87474 2126.55 0.512528C2060.73 -2.00052 2040.7 85.9483 2101.3 114.088C2417.76 260.743 2628.86 431.51 2731.94 722.143C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.98 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),e("div",{className:"shape-bg-content relative z-[1]",children:n})]}):e("div",{className:o,style:p,children:n})},Dd=({title:n,background:r="white",button:o,color:i,contentAlignment:s,description:a,descriptionAlignment:l,enableHeading:c,subTitle:d,maxWidth:u=!0,onModalButtonClick:h,renderCheckPlans:m})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[r]} component-container`,children:t("div",{className:`${u?"mx-auto max-w-120":""} color-${i} flex flex-col ${"dark"==i?"text-text":"text-white"} px-5 py-16 lg:px-13 lg:py-24`,children:[e(Ue,{as:c?"h1":"h2",className:`heading2 lg:heading1 text-${s}`,children:n}),e(Ue,{as:"h3",className:`subheading3 pt-2 lg:subheading1 lg:pt-3 text-${s}`,children:d}),e("div",{className:`pt-2 text-body1 lg:pt-3 text-${l}`,children:a}),e("div",{className:"flex justify-center pt-5 lg:pt-14",children:e(Xe,{...o,renderCheckPlans:m,onModalButtonClick:h})})]})}),Vd=({background:r="white",description:o,enableHeading:i,image:s,list:a=[],subTitle:l,title:c,color:d="dark",maxWidth:u=!0})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[r]} component-container overflow-hidden ${"dark"==d?"text-text":"text-white"}`,children:t("div",{className:(u?"max-w-120 xl:mx-auto":"")+" mx-5 mb-5 mt-12 xl:my-20",children:[c&&e(Ue,{as:i?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:c}),l&&e(Ue,{as:i?"h2":"h3",className:"heading3 mt-4 text-center",children:l}),t("div",{className:"mt-8 flex items-center xl:mt-16 xl:gap-10",children:[t("div",{className:"flex flex-col items-start gap-10 self-stretch xl:flex-[1_0_0]",children:[o&&e(Ue,{as:"p",className:"body1",children:o}),a.length>0&&t(n,{children:[e("ul",{className:"grid w-full grid-cols-2 gap-x-8 gap-y-4 md:hidden",children:(()=>{const t=[...a].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/2),r=[];for(let e=0;e<n;e++)for(let o=0;o<2;o++){const i=o*n+e;i<t.length&&r.push(t[i])}return r.map((t,n)=>e("li",{children:e(Ye,{href:`/local/${t.code.toLowerCase()}`,className:"label1",children:t.name})},`item-list-2-${n}`))})()}),e("ul",{className:"hidden gap-x-8 gap-y-4 md:grid md:grid-cols-3",children:(()=>{const t=[...a].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/3),r=[];for(let e=0;e<n;e++)for(let o=0;o<3;o++){const i=o*n+e;i<t.length&&r.push(t[i])}return r.map((t,n)=>e("li",{children:e(Ye,{href:`/local/${t.code.toLowerCase()}`,className:"label1",children:t.name})},`item-list-3-${n}`))})()})]})]}),s&&e("aside",{className:"hidden xl:block",children:e(Ke,{width:472,height:100,src:s,alt:"image"})})]})]})}),Ld=({title:n,disclaimer:r,table:o,maxWidth:i=!0})=>e("div",{className:"component-container",children:t("div",{className:"mx-5 mb-5 mt-8 lg:mt-10 "+(i?"max-w-120 xl:mx-auto":""),children:[e(Ue,{as:"h2",className:"heading2 lg:heading1 lg:text-center",children:n}),e("div",{className:"comparison-table-container mt-20 xl:mt-10",children:o}),e(Ue,{as:"div",className:"micro mt-8 text-center",children:r})]})});export{We as Accordion,Xe as Button,Je as Callout,Qe as Cards,ut as Carousel,Ld as ComparisonTable,Dd as CtaCallout,Vd as FindKinetic,ht as FloatingBanner,mt as Footer,vt as ImagePromoBar,Ad as Modal,Nt as Navigation,Tt as PrimaryHero,st as ProductCard,Md as ShapeBackgroundWrapper,Ze as SimpleCard,at as TestimonialCard,St as Text};
|
|
3
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import o,{forwardRef as i,useRef as s,useState as a,useEffect as l,useCallback as c,useMemo as d,createContext as u,useLayoutEffect as h,useContext as m,useInsertionEffect as p,createElement as f,useId as g,Children as v,isValidElement as y,cloneElement as b,Fragment as x,useReducer as w}from"react";import k from"next/image";import N,{flushSync as C}from"react-dom";function P(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=P(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function E(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=P(e))&&(r&&(r+=" "),r+=t);return r}const T=e=>{const t=D(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),S(n,t)||M(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},S=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?S(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},A=/^\[(.+)\]$/,M=e=>{if(A.test(e)){const t=A.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},D=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)V(n[e],r,e,t);return r},V=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:L(t,e)).classGroupId=n)}if("function"==typeof e)return B(e)?void V(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{V(o,L(t,e),n,r)})})},L=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},B=e=>e.isThemeGetter,j=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},R=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(0===r&&0===o){if(":"===a){t.push(e.slice(i,s)),i=s+1;continue}if("/"===a){n=s;continue}}"["===a?r++:"]"===a?r--:"("===a?o++:")"===a&&o--}const s=0===t.length?e:e.substring(i),a=F(s);return{modifiers:t,hasImportantModifier:a!==s,baseClassName:a,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},F=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,I=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},O=/\s+/;function $(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=z(e))&&(r&&(r+=" "),r+=t);return r}const z=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=z(e[r]))&&(n&&(n+=" "),n+=t);return n};function _(e,...t){let n,r,o,i=function(a){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:j(e.cacheSize),parseClassName:R(e),sortModifiers:I(e),...T(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(O);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:c,modifiers:d,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:m}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!m,f=r(p?h.substring(0,m):h);if(!f){if(!p){l=t+(l.length>0?" "+l:l);continue}if(f=r(h),!f){l=t+(l.length>0?" "+l:l);continue}p=!1}const g=i(d).join(":"),v=u?g+"!":g,y=v+f;if(s.includes(y))continue;s.push(y);const b=o(f,p);for(let e=0;e<b.length;++e){const t=b[e];s.push(v+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i($.apply(null,arguments))}}const U=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},W=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,G=/^\((?:(\w[\w-]*):)?(.+)\)$/i,H=/^\d+\/\d+$/,Y=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,X=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,q=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,K=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,J=e=>H.test(e),Q=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>!!e&&Number.isInteger(Number(e)),te=e=>e.endsWith("%")&&Q(e.slice(0,-1)),ne=e=>Y.test(e),re=()=>!0,oe=e=>X.test(e)&&!q.test(e),ie=()=>!1,se=e=>K.test(e),ae=e=>Z.test(e),le=e=>!de(e)&&!ge(e),ce=e=>Ne(e,Te,ie),de=e=>W.test(e),ue=e=>Ne(e,Se,oe),he=e=>Ne(e,Ae,Q),me=e=>Ne(e,Pe,ie),pe=e=>Ne(e,Ee,ae),fe=e=>Ne(e,De,se),ge=e=>G.test(e),ve=e=>Ce(e,Se),ye=e=>Ce(e,Me),be=e=>Ce(e,Pe),xe=e=>Ce(e,Te),we=e=>Ce(e,Ee),ke=e=>Ce(e,De,!0),Ne=(e,t,n)=>{const r=W.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},Ce=(e,t,n=!1)=>{const r=G.exec(e);return!!r&&(r[1]?t(r[1]):n)},Pe=e=>"position"===e||"percentage"===e,Ee=e=>"image"===e||"url"===e,Te=e=>"length"===e||"size"===e||"bg-size"===e,Se=e=>"length"===e,Ae=e=>"number"===e,Me=e=>"family-name"===e,De=e=>"shadow"===e,Ve=()=>{const e=U("color"),t=U("font"),n=U("text"),r=U("font-weight"),o=U("tracking"),i=U("leading"),s=U("breakpoint"),a=U("container"),l=U("spacing"),c=U("radius"),d=U("shadow"),u=U("inset-shadow"),h=U("text-shadow"),m=U("drop-shadow"),p=U("blur"),f=U("perspective"),g=U("aspect"),v=U("ease"),y=U("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ge,de],x=()=>[ge,de,l],w=()=>[J,"full","auto",...x()],k=()=>[ee,"none","subgrid",ge,de],N=()=>["auto",{span:["full",ee,ge,de]},ee,ge,de],C=()=>[ee,"auto",ge,de],P=()=>["auto","min","max","fr",ge,de],E=()=>["auto",...x()],T=()=>[J,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],S=()=>[e,ge,de],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",be,me,{position:[ge,de]}],M=()=>["auto","cover","contain",xe,ce,{size:[ge,de]}],D=()=>[te,ve,ue],V=()=>["","none","full",c,ge,de],L=()=>["",Q,ve,ue],B=()=>[Q,te,be,me],j=()=>["","none",p,ge,de],R=()=>["none",Q,ge,de],F=()=>["none",Q,ge,de],I=()=>[Q,ge,de],O=()=>[J,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[re],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[le],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ne],shadow:[ne],spacing:["px",Q],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",J,de,ge,g]}],container:["container"],columns:[{columns:[Q,de,ge,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[ee,"auto",ge,de]}],basis:[{basis:[J,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,J,"auto","initial","none",de]}],grow:[{grow:["",Q,ge,de]}],shrink:[{shrink:["",Q,ge,de]}],order:[{order:[ee,"first","last","none",ge,de]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],w:[{w:[a,"screen",...T()]}],"min-w":[{"min-w":[a,"screen","none",...T()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",n,ve,ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ge,he]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",te,de]}],"font-family":[{font:[ye,de,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ge,de]}],"line-clamp":[{"line-clamp":[Q,"none",ge,he]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",ge,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",ge,ue]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[Q,"auto",ge,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ee,ge,de],radial:["",ge,de],conic:[ee,ge,de]},we,pe]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Q,ge,de]}],"outline-w":[{outline:["",Q,ve,ue]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",d,ke,fe]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",u,ke,fe]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[Q,ue]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",h,ke,fe]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[Q,ge,de]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Q]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[ge,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Q]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,de]}],filter:[{filter:["","none",ge,de]}],blur:[{blur:j()}],brightness:[{brightness:[Q,ge,de]}],contrast:[{contrast:[Q,ge,de]}],"drop-shadow":[{"drop-shadow":["","none",m,ke,fe]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",Q,ge,de]}],"hue-rotate":[{"hue-rotate":[Q,ge,de]}],invert:[{invert:["",Q,ge,de]}],saturate:[{saturate:[Q,ge,de]}],sepia:[{sepia:["",Q,ge,de]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,de]}],"backdrop-blur":[{"backdrop-blur":j()}],"backdrop-brightness":[{"backdrop-brightness":[Q,ge,de]}],"backdrop-contrast":[{"backdrop-contrast":[Q,ge,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,ge,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,ge,de]}],"backdrop-invert":[{"backdrop-invert":["",Q,ge,de]}],"backdrop-opacity":[{"backdrop-opacity":[Q,ge,de]}],"backdrop-saturate":[{"backdrop-saturate":[Q,ge,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,ge,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",ge,de]}],ease:[{ease:["linear","initial",v,ge,de]}],delay:[{delay:[Q,ge,de]}],animate:[{animate:["none",y,ge,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,ge,de]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:I()}],"skew-x":[{"skew-x":I()}],"skew-y":[{"skew-y":I()}],transform:[{transform:[ge,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:O()}],"translate-x":[{"translate-x":O()}],"translate-y":[{"translate-y":O()}],"translate-z":[{"translate-z":O()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,de]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[Q,ve,ue,he]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Le=(e,t,n)=>{void 0!==n&&(e[t]=n)},Be=(e,t)=>{if(t)for(const n in t)Le(e,n,t[n])},je=(e,t)=>{if(t)for(const n in t)Re(e,t,n)},Re=(e,t,n)=>{const r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)},Fe=((e,...t)=>"function"==typeof e?_(Ve,e,...t):_(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(Le(e,"cacheSize",t),Le(e,"prefix",n),Le(e,"experimentalParseClassName",r),Be(e.theme,i.theme),Be(e.classGroups,i.classGroups),Be(e.conflictingClassGroups,i.conflictingClassGroups),Be(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Le(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),je(e.theme,o.theme),je(e.classGroups,o.classGroups),je(e.conflictingClassGroups,o.conflictingClassGroups),je(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Re(e,o,"orderSensitiveModifiers"),e))(Ve(),e),...t))({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),Ie=(...e)=>Fe(E(...e)),Oe=i(({children:t,className:n="",style:r,disabled:o,...i},s)=>e("button",{ref:s,className:Ie(n),style:r,disabled:o,...i,children:t}));Oe.displayName="Button";const $e=t=>{const{open:n,children:r}=t,o=s(null),[i,c]=a(0);return l(()=>{const e=o.current;if(!e)return;const t=()=>{c(n?e.scrollHeight:0)};let r;return t(),n&&(r=new ResizeObserver(()=>t()),r.observe(e)),()=>{r&&r.disconnect()}},[n,r]),e("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:i,opacity:n?1:0},"aria-hidden":!n,children:e("div",{ref:o,children:r})})};$e.displayName="Collapse";const ze=({name:t,fill:n=0,opticalSize:r="48dp",weight:o="200",emphasis:i=145,size:s=24,color:a="currentColor",style:l={},className:c,onClick:d,dataTestId:u})=>{const h={fontVariationSettings:`'FILL' ${n}, 'wght' ${o}, 'GRAD' ${i}, 'opsz' ${r.substring(0,2)}`,fontSize:`${s}px`,fontFamily:"'Material Symbols Rounded'",color:a||"currentColor",...l};return e("span",{style:h,className:Ie("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:d,"data-testid":u,children:t})};ze.displayName="MaterialIcon";const _e=n=>{const{title:r,defaultOpen:o,children:i,containerClassName:s,titleClassName:c,className:d,buttonClassName:u,openOnlyOnDesktop:h,borderRadiusNone:m=!1}=n,[p,f]=a(Boolean(!1));return l(()=>{if(h){const e=window.innerWidth>=1024;f(e)}else f(Boolean(o))},[h,o]),t("div",{className:Ie(m?"rounded-none border":"rounded-surface-xs border",s),children:[t(Oe,{type:"button",className:Ie(m?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",u),onClick:()=>f(e=>!e),children:[e("span",{className:Ie("label5",c),children:r}),e(ze,{name:p?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e($e,{open:p,children:e("div",{className:Ie("px-4 py-4",d),children:i})})]})};_e.displayName="Accordion";const Ue=i(({children:e,as:t,className:n="",style:r,...i},s)=>{const a=t||"p";return o.createElement(a,{ref:s,className:n,style:r,...i},e)});Ue.displayName="Text";const We=({items:n,title:r,background:o="white",enableHeading:i=!1,maxWidth:s=!0})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[o]} component-container`,children:t("div",{className:(s?"max-w-120 xl:mx-auto":"")+" mx-5 my-8 lg:mx-20 lg:my-18",children:[e("div",{children:e(Ue,{as:i?"h1":"h2",className:"heading1 text-left lg:text-center",children:r})}),e("div",{className:"question-answer-section mt-10 lg:mt-16",children:null==n?void 0:n.map((t,n)=>e("div",{children:e(_e,{title:t.title,containerClassName:"border-0 border-b-[1px]",buttonClassName:"px-0 label1",borderRadiusNone:!0,openOnlyOnDesktop:!0,children:e(Ue,{children:t.description})})},`item-${n}`))})]})}),Ge=e=>{let t="";return e.base&&(t="x-large"===e.base?"label3 ":"label4 "),e.md&&(t+="x-large"===e.md?"md:label3 ":"md:label4 "),e.lg&&(t+="x-large"===e.lg?"lg:label3 ":"lg:label4 "),t.trim()},He=i(({variant:r="primary_brand",isLoading:o=!1,text:i,label:s,disabled:a,fullWidth:l,size:c={base:"medium"},as:d="button",...u},h)=>{const m=(()=>{const e=Ie((e=>{let t="";return e.base&&(t=`btn-${e.base} `),e.md&&(t+=`${(e=>{switch(e){case"small":return"md:btn-small";case"medium":return"md:btn-medium";case"large":return"md:btn-large";case"x-large":return"md:btn-x-large"}})(e.md)} `),e.lg&&(t+=`lg:btn-${e.lg} `),t.trim()})(c),"rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top",l&&"w-full"),t=Ie((a||o)&&"cursor-not-allowed",o&&"pl-7",a&&"bg-bg-fill-brand-disabled");return Ie(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand",primary_inverse:"bg-bg-surface-inverse text-text-inverse enabled:hover:bg-bg-fill-inverse-hover focus:ring-bg-surface-inverse",secondary:"border-2 border-border-secondary-on-bg-fill bg-bg text-text focus:ring-bg-surface-inverse"}[r]||"",t)})();let p=`button--${r}`;o&&(p+=" button--loading"),a&&(p+=" button--disabled");const f=`${p} ${m}`,g=t(n,{children:[o?e(ze,{name:"progress_activity",className:"animate-spin"}):null,s?t("span",{className:"flex flex-col",children:[e("span",{className:Ie(Ge(c)),children:s}),i]}):i]});return"a"===d?e("a",{ref:h,className:Ie(f),...u,children:g}):e("button",{ref:h,className:Ie(f),disabled:a||o,...u,children:g})});He.displayName="BrandButton";const Ye=i(({children:t,href:n,className:r="",onClick:o,variant:i="unstyled",style:s,external:a=!1,disabled:l=!1,...c},d)=>{const u=(()=>{if("unstyled"===i)return"";const e={default:"text-text underline"},t=[l?"opacity-60 cursor-not-allowed pointer-events-none":"cursor-pointer"].filter(Boolean).join(" ");return["transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",e[i]||e.default,t].filter(Boolean).join(" ")})(),h={...c,ref:d,className:Ie(u,`link--${i}`,l&&"link--disabled",r),style:s,href:l?void 0:n,onClick:e=>{l?e.preventDefault():null==o||o(e)},...a&&!l&&{target:"_blank",rel:"noopener noreferrer"},...l&&{"aria-disabled":!0,tabIndex:-1}};return e("a",{...h,children:t})});Ye.displayName="Link";const Xe=n=>{const{showButtonAs:r="solid",buttonVariant:o="primary_brand",buttonLabel:i,buttonPrefix:s,href:a,target:l="_blank",anchorId:c,linkClassName:d,linkVariant:u,fullWidth:h,preDefinedFunctionExecution:m,renderCheckPlans:p,buttonClassName:f,clickToOpen:g,tabmodalNameToOpen:v,onModalButtonClick:y,onClick:b,iconName:x,...w}=n;if("check availability"===m){return null==p?void 0:p({ctaText:i,buttonVariant:o,showButtonAs:r,cta:{...n}})}function k(){"modal"===g&&(null==y||y(v))}function N(e){k(),null==b||b(e)}function C(e){k(),null==b||b(e)}let P=e(Oe,{onClick:C,className:f,...w});switch(r){case"solid":P=e(He,a?{as:"a",href:a,id:c,variant:o,text:i,label:s,fullWidth:h,onClick:N}:{id:c,variant:o,text:i,label:s,fullWidth:h,onClick:C});break;case"text":P=t(Ye,{href:a,target:l,variant:u||"default",className:`text-text-brand ${d||""}`,onClick:N,children:[i," ",x&&e(ze,{name:x,size:24})]})}return P},qe={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},Ke=i(({className:t,...n},r)=>{const o="string"==typeof n.src?n.src:"",i=o.toLowerCase().split("?")[0]||"",s=o.includes("images.ctfassets.net")&&i.endsWith(".svg");return e(k,{ref:r,className:Ie(t),...n,unoptimized:s})});Ke.displayName="NextImage";const Ze=({card:n,lgWidth:r,mdWidth:o})=>{var i,s,a;const l=(null===(i=n.imageAlignment)||void 0===i?void 0:i.toLowerCase())||"left",c="left"===l?"lg:items-start":"right"===l?"lg:items-end":"lg:items-center";return e("div",{className:`callout-card ${o} ${r} w-full ${null!==(a=qe[null!==(s=n.backgroundColor)&&void 0!==s?s:""])&&void 0!==a?a:""}`,children:t("div",{className:`card-template flex h-full flex-col items-center gap-8 p-8 text-center ${c}`,children:[e("div",{className:"card-header",children:(t=>{var n,r,o;if(!t.image)return null;const i=null===(n=t.imageView)||void 0===n?void 0:n.toLowerCase();return e(Ke,"full"===i?{width:400,height:280,src:t.image,alt:null!==(r=t.title)&&void 0!==r?r:"card-icon",className:"rounded-3xl"}:{width:88,height:88,src:t.image,alt:null!==(o=t.title)&&void 0!==o?o:"card-icon"})})(n)}),t("div",{className:"card-body flex flex-col gap-3 text-start",children:[n.title&&e(Ue,{as:"h5",className:"heading5 font-black",children:n.title}),n.body&&e(Ue,{as:"div",className:"body1",children:n.body})]}),n.cta&&e("div",{className:"card-footer",children:e(Xe,{linkVariant:"unstyled",linkClassName:"label1 flex items-center text-text gap-2",...n.cta,iconName:"expand_circle_right"})})]})})},Je=({title:n,items:r,enableHeading:o=!1,subtitle:i,color:s="dark",maxWidth:a=!0,maxCardsPerRow:l})=>{const c={1:" lg:w-full",2:" lg:w-[calc(50%-0.75rem)]",3:" lg:w-[calc(33.3333%-1rem)]",4:" lg:w-[calc(25%-1.125rem)]"}[l||4]||" lg:w-[calc(25%-1.125rem)]",d=1===r.length?" md:w-full":" md:w-[calc(50%-1rem)]";return e("div",{className:"component-container",children:e("div",{className:`mx-5 mb-5 mt-12 ${a?"max-w-120 xl:mx-auto":""} ${"dark"==s?"text-text":"text-white"}`,children:t("div",{className:"callout-container flex flex-col gap-8",children:[t("div",{className:"title-holder",children:[n&&e(Ue,{as:o?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:n}),i&&e(Ue,{as:o?"h2":"h3",className:"subheading3 mt-3 md:subheading1 md:text-center",children:i})]}),e("div",{className:"card-holder flex flex-wrap items-stretch justify-center gap-8 self-stretch lg:gap-6",children:r.map((t,n)=>e(Ze,{card:t,lgWidth:c,mdWidth:d},n))})]})})})},Qe=({fields:t})=>e("div",{children:e(Ue,{children:"Cards"})}),et={green:"#209A61",yellow:"#F5FF36"},tt=i(({children:t,className:n="",variant:r="unstyled",style:o,...i},s)=>{const a=Ie("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e("li",{ref:s,className:a,style:o,...i,children:t})});tt.displayName="ListItem";const nt=i(({type:t="ul",items:n,className:r="",renderItem:o,children:i,variant:s="unstyled",style:a,...l},c)=>{const d=(()=>{if("unstyled"===s)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),u={className:Ie(d,`list--${t}`,`list--${s}`,r),style:a,...l,children:i||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e(tt,{className:t.className,variant:s,children:t.content},t.id||n)):null)};return e("ol"===t?"ol":"ul",{...u,ref:c})});nt.displayName="List";const rt=n=>{const{items:r,listIconName:o="check",listItemClassName:i,iconSize:s=20,iconPosition:a="center",iconColor:l="green"}=n,c="disc"!==o;return(null==r?void 0:r.length)?e(nt,{className:"mt-2 space-y-1",variant:c?"unstyled":"default",children:r.map((n,r)=>t(tt,{variant:c?"unstyled":"default",className:Ie(`${c?"flex":""} ${"top"===a?"items-start":"items-center"} gap-2 text-text-secondary`,i),children:[c&&e("div",{children:e(ze,{name:o,size:s,color:et[l],weight:"600",className:"top"===a?"mt-1":""})}),e(Ue,{as:"div",children:n})]},r))}):null};rt.displayName="Checklist";const ot=i(({as:t,className:n="",...r},o)=>{const i=Ie(n);if(t){return e(t,{ref:o,className:i,...r})}return e("img",{ref:o,className:i,...r})});ot.displayName="Image";const it=({onSelect:r,speed:o,isSelected:i=!1,renderCheckPlans:s,cta:l,techType:c,isMax:d})=>{const[u,h]=a(!1),m=`btn-medium rounded-2xl pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${i?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `,p=null==s?void 0:s({speedCardConfig:{isModalOpen:u,setModalOpen:()=>{h(!1)},speed:o,techType:c,isMax:d},cta:l});return t(n,{children:[t(Oe,{onClick:()=>{h(!0),r()},className:Ie(m,"w-full justify-between pl-5 pr-5"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${o}`,"data-track-element-clicked":"speed_plan_card",children:[e("span",{children:"Select plan"}),e("span",{className:"inline-flex h-6 w-6 items-center justify-center rounded-full "+(i?"bg-bg-fill-surface-inverse text-text-inverse":"bg-bg text-text"),children:e(ze,{name:"chevron_right",fill:1,size:24})})]}),p]})},st=({planName:r,planSubtext:o,speed:i,price:s,description:l,bestValue:c=!1,bestValueText:d="best value",giftBadge:u,innerBadge:h,theme:m="light",featuresTitle:p="Business Ready Internet features",features:f=[],isExpanded:g,onToggleExpand:v,onCtaClick:y,renderCheckPlans:b,cta:x,techType:w,ismaxSpeed:k})=>{const[N,C]=a(!1),P=void 0!==g?g:N,E="dark"===m;return t("article",{className:Ie("relative flex h-full w-full max-w-[392px] flex-col",!c&&"pt-[28px]"),children:[c&&e("div",{className:"rounded-t-[20px] bg-bg-fill-brand-accent px-4 py-1 text-center text-sm font-bold text-text",children:d}),t("div",{className:Ie("flex flex-grow flex-col gap-6 rounded-[20px] px-5 shadow-cardDrop",E?"bg-bg-fill-inverse text-white":"bg-white text-text",c?"rounded-t-none":""),children:[t("header",{className:"overflow-none flex items-start justify-between gap-4 pt-7",children:[t("div",{className:"flex flex-col",children:[e(Ue,{as:"h3",className:Ie("subheading2 whitespace-nowrap font-black",E?"text-bg-fill-brand-accent":"text-text-brand"),children:r}),e(Ue,{as:"p",className:`text-label3 font-black ${E?"text-bg-fill-brand-accent":"text-text-brand"} md:whitespace-nowrap`,children:o})]}),t("div",{className:"flex items-start",children:[e("span",{className:"text-xl font-normal",children:"$"}),e("span",{className:"text-subheading6 font-medium leading-none",children:s.split(".")[0]}),t("span",{className:"text-sm font-black",children:[s.split(".")[1],"/mo"]})]})]}),e("section",{children:e(Ue,{className:Ie("text-base",E?"text-white":"text-text"),children:l})}),e("div",{className:Ie("flex-col items-center rounded-xl p-2",E?"bg-bg-surface-inverse":"bg-gray-200"),children:u&&(null==u?void 0:u.map(n=>t("div",{className:"flex items-center gap-2 p-1",children:[e(ot,{src:n.icon,alt:n.title,width:24,height:24}),e(Ue,{className:"text-sm font-bold",children:n.title})]},n.title)))}),e(it,{onSelect:y,speed:i,isSelected:E,renderCheckPlans:b,cta:x,techType:w,isMax:k}),f.length>0&&t("section",{className:"flex flex-col gap-6",children:[t(Oe,{onClick:()=>{v?v():C(!N)},className:"group flex w-full items-center justify-between text-left",children:[e(Ue,{as:"h4",className:"text-base font-bold",children:p}),e(ze,{name:"keyboard_arrow_up",fill:1,size:24,className:Ie("transition-transform duration-300",P&&"rotate-180")})]}),t("div",{className:Ie("overflow-hidden transition-all duration-300 ease-in-out",P?"pb-7 opacity-100":"max-h-0 opacity-0"),children:[e("div",{className:"flex flex-col gap-3",children:e(rt,{items:f,iconColor:E?"yellow":"green",listItemClassName:""+(E?"text-white":"text-text")})}),(null==h?void 0:h.badgeIcon)?t("div",{className:"flex items-center gap-2 text-center",children:[e(ot,{src:h.badgeIcon,alt:"Inner Badge",width:12,height:12}),e("span",{className:"text-sm",children:h.badgeText.includes("|")?t(n,{children:[e("span",{className:"font-bold",children:h.badgeText.split("|")[0]}),e("span",{className:"font-normal",children:h.badgeText.split("|")[1]})]}):e(Ue,{className:"font-bold",children:h.badgeText})})]}):null]})]})]})]})},at=({title:n,quote:r,rating:o,author:i,role:s,avatarUrl:a,isActive:l=!1,className:c})=>t("figure",{className:E("flex h-full w-full flex-col rounded-3xl p-6 font-sans transition-all duration-300 md:p-13",l?"bg-white shadow-lg":"bg-gray-50 opacity-60",c),children:[e("header",{children:e(Ue,{as:"h3",className:"mb-4 text-xl font-black lowercase text-text",children:n})}),e("blockquote",{className:"mb-5 flex-grow text-xl leading-relaxed text-text",children:r}),o?e("div",{className:"mb-5 flex gap-1",children:[...Array(5)].map((t,n)=>e(ze,{size:24,name:"star",fill:1,className:E("h-5 w-5",n<o?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null,i&&t("figcaption",{className:"flex items-center gap-3",children:[e("div",{className:"relative h-10 w-10 shrink-0 overflow-hidden rounded-full bg-gray-300",children:a?e(k,{src:a,alt:i,fill:!0,className:"object-cover",sizes:"40px"}):e("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:i.charAt(0)})}),t("div",{className:"flex flex-col",children:[e("cite",{className:"text-sm font-bold not-italic text-text",children:i}),e(Ue,{as:"p",className:"text-xs text-text",children:s})]})]})]});function lt({fields:r,renderCheckPlans:o}){var i,d,u,h;const m=(null===(u=null===(d=null===(i=null==r?void 0:r.items)||void 0===i?void 0:i.items)||void 0===d?void 0:d[0])||void 0===u?void 0:u.benefitsExpanded)||!1,[p,f]=a(m),[g,v]=a({}),[y,b]=a(0),x=(null===(h=null==r?void 0:r.items)||void 0===h?void 0:h.items)||[],w=x.length>2,k=s([]),N=c(()=>{w&&b(e=>(e+3)%x.length)},[w,x.length]),C=c(()=>{w&&b(e=>(e-3+x.length)%x.length)},[w,x.length]);if(l(()=>{if(!w)return;const e=()=>{const e=k.current.filter(Boolean);if(0===e.length)return;e.forEach(e=>{e.style.height="auto"});const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})};e();const t=setTimeout(e,100);return()=>clearTimeout(t)},[w,p,x.length]),!x.length&&!(null==r?void 0:r.title))return null;const P=(t,n,r=!1)=>{var i,s,a,l,c,d,u,h;const m=null===(i=null==t?void 0:t.speed)||void 0===i?void 0:i.split("|"),y=(null==m?void 0:m[0])||"",b=(null==m?void 0:m[1])||"",x=(null===(a=null===(s=null==t?void 0:t.priceSuffix)||void 0===s?void 0:s.split("/"))||void 0===a?void 0:a[0])||"00",w=`${(null==t?void 0:t.price)||"0"}.${x}`,N=(null===(l=null==t?void 0:t.benefits)||void 0===l?void 0:l.items)||[],C=(null==t?void 0:t.highlighted)||!1,P=(null===(d=null===(c=null==t?void 0:t.giftRewards)||void 0===c?void 0:c.list)||void 0===d?void 0:d.items)||[],E={badgeText:t.innerBadge||"",badgeIcon:(null===(u=t.innerBadgeIcon)||void 0===u?void 0:u.url)||""},T=r?g[n]||!1:p;return e("div",{ref:r?void 0:e=>{e&&!k.current.includes(e)&&(k.current[n]=e)},className:Ie(r?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e(st,{planName:y,planSubtext:b,speed:(null==t?void 0:t.speed)||"",techType:(null==t?void 0:t.techType)||"",ismaxSpeed:(null==t?void 0:t.ismaxSpeed)||"",price:w,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:P,innerBadge:E,theme:(null==t?void 0:t.highlighted)?"dark":"light",bestValue:C,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",featuresTitle:null==t?void 0:t.benefitsTitle,features:N,isExpanded:T,onToggleExpand:()=>{r?v(e=>({...e,[n]:!e[n]})):f(!p)},ctaText:(null===(h=null==t?void 0:t.cta)||void 0===h?void 0:h.buttonLabel)||"Select plan",onCtaClick:()=>{},renderCheckPlans:o,cta:t.cta,hostType:"smb"})},n)},E=[...x,...x,...x,...x,...x],T=2*x.length;return w?t(n,{children:[e("div",{className:"flex flex-col gap-6 md:hidden",children:x.map((e,t)=>P(e,t,!0))}),t("div",{className:"relative hidden w-full md:block",children:[t("div",{className:"pointer-events-none absolute -left-16 -right-16 top-[50%] z-30 flex -translate-y-1/2 justify-between px-4 md:px-10",children:[e(Oe,{onClick:N,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Previous",children:e(ze,{name:"arrow_back",size:24})}),e(Oe,{onClick:C,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Next",children:e(ze,{name:"arrow_forward",size:24})})]}),e("div",{className:"mx-auto max-w-[1280px] overflow-hidden",children:e("div",{className:"flex items-stretch gap-4 pb-4 transition-transform duration-500 ease-in-out",style:{transform:`translateX(calc(-${T+y} * (392px + 12px)))`},children:E.map((e,t)=>P(e,t,!1))})})]})]}):e("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-8 px-4",children:x.map((e,t)=>P(e,t))})}const ct=({fields:n})=>{var r;const o=(null===(r=null==n?void 0:n.items)||void 0===r?void 0:r.items)||[],[i,d]=a(0),u=s(null),h=c(()=>{0!==o.length&&d(e=>(e+1)%o.length)},[o.length]),m=c(()=>{0!==o.length&&d(e=>0===e?o.length-1:e-1)},[o.length]);return l(()=>{if(0!==o.length)return u.current=setInterval(()=>{h()},8e3),()=>{u.current&&clearInterval(u.current)}},[h,o.length]),o&&0!==o.length?t("div",{className:"relative mx-auto max-w-[1280px] overflow-hidden md:px-24",children:[e(Oe,{onClick:m,className:"group absolute left-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Previous",children:e(ze,{name:"arrow_back",size:24})}),e("div",{className:"grid grid-cols-1 justify-items-center",children:o.map((t,n)=>{let r=n-i;const s=o.length;r>s/2&&(r-=s),r<-s/2&&(r+=s);const a=0===r;return e("div",{className:Ie("col-start-1 row-start-1 w-full md:max-w-[815px]",a?"opacity-100":"opacity-0","md:opacity-100"),style:{transform:`translateX(${a?"0%":105*r+"%"})`,zIndex:a?10:5,visibility:Math.abs(r)>1?"hidden":"visible",transition:"all 0.5s ease-in-out"},children:e(at,{...t,isActive:a,className:"h-full"})},n)})}),e(Oe,{onClick:h,className:"group absolute right-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Next",children:e(ze,{name:"arrow_forward",size:24})}),e("div",{className:"mt-8 hidden justify-center gap-2 md:flex",children:o.map((t,n)=>e("button",{onClick:()=>d(n),className:Ie("h-2 w-2 rounded-full transition-all duration-300",i===n?"w-6 bg-white":"bg-white/40 hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]}):null},dt=({tabs:t,activeTab:n,onChange:r,className:o})=>e("div",{className:Ie("mx-auto my-6 flex w-fit rounded-2xl bg-white p-1",o),children:t.map(t=>e("button",{onClick:()=>r(t),className:Ie("min-w-[160px] whitespace-nowrap rounded-2xl bg-[#EEEEEE] px-4 py-2.5 text-label1 font-black transition-all duration-300",n===t?"bg-bg-fill-brand text-white shadow-md":"text-text-info hover:bg-[#E5E5E7]"),children:t},t))}),ut=({fields:n,hasTestimonialCards:r,hasProductCards:o,disclaimerText:i,backgroundColor:s,activeTab:a,setActiveTab:l,tabs:c,onModalButtonClick:d,renderCheckPlans:u,showSwitch:h=!1})=>e("div",{className:`${s} mx-auto overflow-hidden px-5 py-9 md:py-20`,children:t("div",{className:"relative mx-auto flex max-w-[1280px] flex-col gap-12 overflow-visible",children:[t("div",{children:[e(Ue,{as:"h2",className:"text-center text-4xl font-bold text-text md:text-5xl",children:null==n?void 0:n.title}),(null==n?void 0:n.subTitle)&&e(Ue,{as:"h3",className:"body1 px-4 pt-4 text-center",children:null==n?void 0:n.subTitle})]}),h&&o&&c.length>1&&e(dt,{tabs:c,activeTab:a,onChange:l,className:"mb-8"}),r&&e(ct,{fields:n}),o&&e(lt,{onModalButtonClick:d,renderCheckPlans:u,fields:n}),e(Ue,{as:"div",className:"body1 mt-8 px-4 text-center text-neutral-600",children:i})]})}),ht=({title:n,subtitle:r,description:o,disclaimer:i,icon:s,cta:a,background:l="navy",color:c="light",enableHeading:d,maxWidth:u=!0})=>e("div",{className:"component-container",children:t("div",{className:"mx-5 my-8 lg:mx-20 lg:my-12 lg:rounded-[40px] xl:mx-auto "+(u?"max-w-120":""),children:[t("div",{className:`flex flex-col rounded-[28px] px-5 py-7 lg:flex-row lg:rounded-[40px] lg:px-16 lg:py-9 ${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[l]} ${"dark"==c?"text-text":"text-white"} `,children:[s&&e("div",{className:"floating-banner-icon mb-5 flex justify-center lg:mb-0 lg:items-center",children:e("div",{className:"h-[80px] w-[80px] overflow-hidden",children:e(Ke,{width:80,height:80,alt:"icon",src:s})})}),t("div",{className:"flex w-full flex-col justify-center lg:mx-5 lg:w-4/5",children:[n&&e(Ue,{as:d?"h1":"h2",className:"heading2 mb-3 text-center lg:w-[95%] lg:text-left",children:n}),r&&e(Ue,{as:"h3",className:"heading3 mb-3 text-center lg:text-left",children:r}),o&&e(Ue,{as:"div",className:"body1 text-center lg:w-[95%] lg:text-left",children:o})]}),a&&e("div",{className:"mt-5 flex justify-center lg:mt-0 lg:w-[500px] lg:items-center",children:e(Xe,{...a})})]}),i&&e("div",{children:e(Ue,{as:"div",className:"body3 mt-3 text-center",children:i})})]})}),mt=({body:n,links:r,bottomLinks:i,copyrights:s,terms:a,maxWidth:l=!0,onClick:c})=>{function d(e){null==c||c(e)}return e("div",{className:"component-container bg-bg-inverse text-white",children:t("div",{className:` ${l?"mx-auto max-w-120":""} px-5 py-8`,children:[e("aside",{className:"break-words","aria-label":"Promotions and disclaimers",children:n}),e("div",{className:"my-8 h-[1px] border-t-0 bg-white opacity-100 lg:my-16 dark:opacity-50"}),e("div",{className:"grid-1 grid gap-8 py-8 md:grid-cols-2 lg:grid-cols-4",children:null==r?void 0:r.map((n,r)=>{var i,s;return t(o.Fragment,{children:[e("div",{children:t("nav",{"aria-labelledby":`footer-${null==n?void 0:n.title}`,className:"site-links-group",children:[e(Ue,{as:"div",className:"label3",children:null==n?void 0:n.title}),e("ul",{className:"flex flex-col",children:null===(s=null===(i=null==n?void 0:n.items)||void 0===i?void 0:i.items)||void 0===s?void 0:s.map((t,n)=>e("li",{className:"pt-3",children:e(Xe,{...t,linkVariant:"unstyled",linkClassName:"text-white body3",onClick:d})},`site-links-${n}`))})]},`link-group-${r}`)},`footer-link-group-${r}`),e("div",{className:"block h-[1px] border-t-0 bg-white opacity-100 md:hidden dark:opacity-50"})]},`footer-link-group-${r}`)})}),t("div",{className:"pt-8",children:[e("p",{className:"copy-rights",children:s}),t("p",{className:"terms-text footnote text-white",children:["© ",(new Date).getFullYear()," ",a]}),e("nav",{"aria-label":"Footer legal",children:e("ul",{className:"bottom-links list-none",children:null==i?void 0:i.map((t,n)=>e("li",{className:"relative float-left pl-[8px] before:absolute before:left-[3px] before:top-1/2 before:-translate-y-1/2 before:text-[14px] before:content-['•'] first-of-type:pl-0 first-of-type:before:content-['']",children:e(Xe,{...t,linkClassName:"footnote text-white",linkVariant:"unstyled",onClick:d})},`links-${n}`))})})]})]})})},pt=({isHovered:t,containerClassName:n})=>e("button",{tabIndex:-1,className:`group flex h-20 w-20 items-center justify-center rounded-full bg-white shadow-xl transition-all duration-300 hover:scale-110 active:scale-95 ${n||""}`,"aria-label":"Play button",children:e(ze,{name:"play_arrow",size:72,fill:1,className:"transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),ft=t=>{const{link:n,containerClassName:r,autoplay:o=!1,debug:i=!1}=t,{href:s,embedId:a}=d(()=>{if(!n)return{href:"",embedId:""};const e=n.toString(),t=(e=>{const t=e.split(/[?#]/)[0].replace(/\/+$/,""),n=t.match(/vimeo\.com\/(?:.*\/)?(\d{6,})/)||t.match(/player\.vimeo\.com\/video\/(\d{6,})/),r=t.split("/"),o=r[r.length-1];return(null==n?void 0:n[1])?n[1]===o?n[1]:`${n[1]}/${o}`:""})(e);return{href:e,embedId:t}},[n]);if(i&&console.log("[VimeoEmbed] href:",s,"id:",a),!a)return null;const l=function(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean);if("video"===n[0]&&n.length>=2){const e=n[1],r=n[2],o=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${o}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${a}?${new URLSearchParams({autoplay:o?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}).toString()}`);return e("div",{className:Ie("relative h-0 w-full overflow-hidden pb-[56.25%]",r),children:e("iframe",{className:"absolute left-0 top-0 h-full w-full",src:l,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:"Embedded vimeo"})})};const gt=t=>{const{link:n,containerClassName:r,autoplay:o=!1}=t,i=d(()=>{if(!n)return"";const e=n.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return e&&11===e[7].length?e[7]:""},[n]),s=o?"?autoplay=1":"";return e("div",{className:Ie("relative h-0 w-full overflow-hidden pb-[56.25%]",r),children:e("iframe",{className:"absolute left-0 top-0 h-full w-full",src:`https://www.youtube.com/embed/${i}${s}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})},vt=({brow:n,enableHeading:r,title:o,subTitle:i,ctaDisclaimer:s,disclaimer:l,description:c,image:d,imageLinks:u,mediaPosition:h=!0,checklist:m,secondaryCta:p,cta:f,videoLink:g,maxWidth:v=!0,color:y="light",imageWidth:b=660,imageHeight:x=660,onModalButtonClick:w,renderCheckPlans:k})=>{var N,C;const[P,E]=a(""),[T,S]=a(!1),A=null!==(N=null==g?void 0:g.link)&&void 0!==N?N:"",M=null==g?void 0:g.image,D=null!==(C=null==g?void 0:g.videoPopup)&&void 0!==C&&C,V=Boolean(P&&P===A),L=g&&M?A.includes("vimeo")?e(ft,{link:A,autoplay:V}):e(gt,{link:A,autoplay:V}):null;return t("div",{className:"component-container",children:[e("div",{className:`image-promo-bar-content ${v?"max-w-120 xl:mx-auto":""} mx-5 mb-8 mt-16`,children:t("div",{className:"flex shrink-0 flex-col items-center gap-8 xl:items-start xl:gap-[126px] "+(h?"xl:flex-row-reverse":"xl:flex-row"),children:[t("div",{className:"flex flex-[1_0_0] flex-col items-start justify-center gap-8 xl:gap-10 "+("dark"==y?"text-text":"text-white"),children:[t("div",{className:"heading holder",children:[n&&e(Ue,{as:"div",className:"subheading4 mb-4 text-text-brand xl:subheading2 xl:mb-3",children:n}),o&&e(Ue,{as:r?"h1":"h2",className:"heading2 xl:heading1",children:o}),i&&e(Ue,{as:r?"h2":"h3",className:"subheading1 mt-3",children:i})]}),c&&e(Ue,{as:"div",className:"body1",children:c}),m.length>0&&e(rt,{items:m,iconPosition:"top",iconSize:24}),e("div",{className:"flex gap-4",children:null==u?void 0:u.map((t,n)=>e("div",{className:"image-link w-[147px]",children:e(Ye,{variant:"unstyled",href:t.url,target:"_blank",rel:"noopener noreferrer",children:e(ot,{src:t.image,alt:"icon-link"})})},n))}),t("div",{className:"flex w-full flex-col gap-8 xl:flex-row xl:gap-3",children:[f&&e("div",{className:"primary-cta w-full xl:w-auto",children:e(Xe,{...f,fullWidth:!0,renderCheckPlans:k,onModalButtonClick:w})}),p&&e("div",{className:"secondary-cta",children:e(Xe,{...p,fullWidth:!0,renderCheckPlans:k,onModalButtonClick:w})})]}),s&&e("div",{children:s}),l&&e("div",{children:l})]}),t("aside",{className:"flex w-full shrink-0 items-center justify-center xl:w-auto",children:[d&&e("div",{className:"relative aspect-[16/9] w-full xl:aspect-square xl:max-h-[486px] xl:w-[486px]",children:e(Ke,{src:d,alt:"section-image",width:b,height:x,className:"bottom-0 left-0 right-0 top-0 h-full rounded-[40px] object-cover"})}),(null==g?void 0:g.link)&&t("div",{className:Ie("video-section relative w-full cursor-pointer overflow-hidden rounded-[40px] transition-all duration-300 xl:w-[486px]",!V&&"hover:shadow-2xl"),onClick:()=>{var e;E(null!==(e=null==g?void 0:g.link)&&void 0!==e?e:"")},onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:[t("div",{className:Ie(V&&!D&&"hidden",V&&!D?"opacity-0":"opacity-100","relative aspect-[16/9] w-full transition-opacity duration-300 xl:aspect-square"),children:[g.image&&e(Ke,{src:g.image,alt:"Video preview",width:486,height:486,className:"absolute inset-0 h-full w-full rounded-[40px] object-cover"}),e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(pt,{isHovered:T})})]}),!D&&V&&e("div",{className:Ie("aspect-[16/9] w-full overflow-hidden rounded-[40px] transition-opacity duration-300",V?"opacity-100":"opacity-0"),children:L})]})]})]})}),D&&V&&e("div",{className:"fixed inset-0 top-20 z-[100] flex items-center justify-center bg-black/80 p-4 transition-all duration-300",onClick:e=>{e.stopPropagation(),E("")},children:e("div",{className:"max-w-6xl aspect-video w-full overflow-hidden rounded-3xl bg-black shadow-2xl md:w-4/6",onClick:e=>e.stopPropagation(),children:L})})]})},yt=({link:n,anchorName:r})=>{const[i,s]=o.useState(!1),a=o.useRef(null);if(((e,t)=>{const n=n=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(n.target))||t()};l(()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}))})(a,()=>s(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e(Xe,{...n,linkClassName:"body3 flex items-center text-text-link h-full",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:c,title:d,items:u}=n,h=Array.isArray(null==u?void 0:u.items)?u.items:[],m=`--link-anchor-${r}`;return t("div",{className:"relative h-full",style:{anchorName:m},ref:a,children:[t(Xe,{onClick:()=>s(e=>!e),"aria-expanded":i,buttonClassName:"group body3 flex h-full items-center",showButtonAs:"unstyled",children:[e(Ue,{as:"span",className:"group-hover:underline",children:null!=d?d:null}),e(ze,{weight:"700",className:"text-icon-info group-hover:opacity-50",name:i?"keyboard_arrow_up":"keyboard_arrow_down"})]},c),e("div",{className:Ie("fixed z-10 min-w-44 rounded-xl bg-bg shadow-lg","transition-[opacity,transform] ease-out",i&&h.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:m,top:"anchor(bottom)",right:"anchor(right)"},children:e("ul",{className:"flex flex-col gap-2 py-2",children:h.map((t,n)=>e("li",{className:"submenu-link",children:e(Xe,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},bt=({link:r})=>{const[i,s]=o.useState(!1);if(!r)return null;if((e=>"string"==typeof e.href)(r))return e(Xe,{...r,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${r.anchorId}`);const{anchorId:a,title:l,items:c}=r,d=Array.isArray(null==c?void 0:c.items)?c.items:[];return t(n,{children:[t(Xe,{onClick:()=>s(e=>!e),"aria-expanded":i,buttonClassName:"label3 flex h-11 w-full items-center px-4",showButtonAs:"unstyled",children:[null!=l?l:null,e(ze,{weight:"700",name:i?"keyboard_arrow_up":"keyboard_arrow_down"})]},a),i&&d.length>0&&e(xt,{items:d})]})},xt=({items:t})=>e("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e("li",{className:"submenu-link",children:e(Xe,{...t,linkVariant:"unstyled",linkClassName:"body3 pl-8 pr-4 flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))},`submenu-${t.length}`),wt=n=>{const{showBlinkDot:r=!1,buttonStyle:o="primary",size:i="md",children:s,className:a,...l}=n;return t(Ye,{...l,className:Ie("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[i],{primary:"border-[0.727px] border-border text-text"}[o],a),children:[r?e("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[i]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[i]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e("span",{className:`relative inline-flex ${{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[i]} items-center justify-center rounded-full bg-icon-brand`,children:e(ze,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[i],className:"text-white"})}),e("span",{className:"font-normal tracking-wide",children:s})]})};wt.displayName="CallButton";const kt=i((n,r)=>{const{className:o,size:i,required:s,placeholder:l,label:d,state:u,errorText:h,prefixIconName:m,prefixIconFill:p=!0,suffixIconFill:f=!1,prefixIconSize:g=24,suffixIconName:v,suffixIconSize:y=24,containerClassName:b,prefixIconClassName:x,loading:w,hasError:k,type:N,...C}=n,P=k?"error":u,[E,T]=a(!1),[S,A]=a(!1),[M,D]=a(N||"text"),V=c(e=>{e.stopPropagation(),D(e=>"password"===e?"text":"password")},[]);return t("div",{className:"relative",children:[d?e("label",{htmlFor:d,className:Ie("inline-block pb-1"),children:t(Ue,{as:"span",className:"footnote text-text",children:[d,s?e("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,t("div",{className:Ie("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[i||"medium"],b,(E||"hover"===P)&&!S&&"error"!==P&&"border-input-border-hover",(S||"focus"===P||"active"===P)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===P&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[m?e("div",{className:"mr-1",style:{width:g,height:g,overflow:"hidden"},children:e(ze,{name:m,fill:p?1:0,size:g,className:Ie(x)})}):null,e("input",{ref:r,id:d,disabled:w||C.disabled,className:Ie("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===i&&"text-body3",o),placeholder:l,type:M,...C,onMouseOver:()=>T(!0),onMouseOut:()=>T(!1),onFocus:e=>{var t;null===(t=C.onFocus)||void 0===t||t.call(C,e),A(!0)},onBlur:e=>{var t;null===(t=C.onBlur)||void 0===t||t.call(C,e),A(!1)}}),v?e("div",{className:"ml-2",style:{width:y,height:y,overflow:"hidden"},onClick:V,children:e(ze,{name:"text"===M?"visibility":"visibility_off",size:y,fill:f?1:0})}):null]}),"error"===P&&h&&""!=h?t(Ue,{className:Ie("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e(ze,{name:"info",size:20,className:"mr-1"}),h||"Error"]}):null]})});kt.displayName="Input";const Nt=n=>{const{primaryNavigationLinks:r,utilityNavigationLinks:o,checkPlansJSX:i,primaryNavigationLogo:s,accountNavigationLinks:a,supportNavigationLinks:l,searchBarIcon:c,invocaPhoneNumberLink:d,invocaPhoneNumberDisplayText:u,onSearch:h=()=>{}}=n;return t("div",{className:"component-container",children:[t("nav",{className:"menu-container",children:[e("div",{className:"utility-container hidden lg:block lg:border-b lg:px-2",children:t("div",{className:"mx-auto flex max-w-120 justify-between",children:[e("ul",{className:"flex gap-5","aria-label":"Utility Navigation",children:null==o?void 0:o.map((t,n)=>e("li",{children:e(Xe,{linkClassName:Ie("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled",...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t))})},`main-menu-items-${n}`))}),t("div",{className:"flex items-center gap-10",children:[e(wt,{className:"border-none",href:d,children:e(Ue,{className:"body3",children:u})}),null==a?void 0:a.map((t,n)=>e(yt,{anchorName:`my-account-${n}`,link:t},`my-account-${n}`))]})]})}),t("div",{className:"main-nav-container","aria-label":"Main Navigation",children:[t("div",{className:"mobile-nav-section flex h-14 items-center justify-between px-5 py-[10px] lg:hidden",children:[e("div",{children:e(Ye,{href:"/",className:"flex",children:e(Ke,{src:"string"==typeof s?s:(null==s?void 0:s.url)||"",alt:"Kinetic business logo",width:76.5,height:24})})}),t("div",{className:"flex items-center gap-6",children:[e(wt,{href:d,children:e(Ue,{as:"span",className:"footnote",children:u})}),e(Ct,{...n})]})]}),e("div",{className:"desktop-nav-section hidden lg:block lg:border-b lg:px-2",children:t("div",{className:"mx-auto flex h-14 max-w-120 items-center justify-between",children:[t("div",{className:"flex h-full",children:[e(Ye,{href:"/",className:"flex",children:e(Ke,{src:"string"==typeof s?s:(null==s?void 0:s.url)||"",alt:"Kinetic business logo",width:76.5,height:24,className:"mr-14"})}),e("div",{className:"flex h-full items-center gap-5",children:null==r?void 0:r.map((t,n)=>e(yt,{anchorName:`main-menu-${n}`,link:t},`main-menu-${n}`))})]}),t("div",{className:"flex h-full items-center gap-10",children:[e(Et,{searchBarIconURL:"string"==typeof c?c:(null==c?void 0:c.url)||"",onSearch:h}),null==l?void 0:l.map((t,n)=>e(yt,{anchorName:`support-menu-${n}`,link:t},`support-menu-${n}`))]})]})})]})]}),i&&e("div",{className:"md:hidden",children:i})]})},Ct=n=>{var r;const{primaryNavigationLinks:i,utilityNavigationLinks:s}=n,[a,l]=o.useState(!1);o.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=a?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],r=t[t.length-1],o=e=>{var t,o,i,s;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(o=(t=r).focus)||void 0===o||o.call(t),e.preventDefault()):document.activeElement===r&&(null===(s=(i=n).focus)||void 0===s||s.call(i),e.preventDefault()))};return window.addEventListener("keydown",o),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",o)}},[a]);const c=()=>{l(!1)};return t("div",{children:[e(Xe,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>l(!0),children:e(ze,{name:"menu"})}),a?e("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[90] h-full w-full bg-scrim-bg-modal"}):null,e("div",{className:Ie("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4","transition-all duration-300 ease-in-out","block",a?"right-0":"-right-96"),id:"mobile-menu-overlay",children:t("div",{id:"drawer-items",className:"flex h-full flex-col gap-3",children:[t("div",{className:"flex items-center justify-between px-4",children:[e("div",{children:e(wt,{className:"border-none",href:n.invocaPhoneNumberLink,children:n.invocaPhoneNumberDisplayText})}),e("div",{children:e(Xe,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:c,children:e(ze,{name:"close"})})})]}),e(Pt,{closeMenu:c,isMenuOpen:a,searchBarIconURL:"string"==typeof n.searchBarIcon?n.searchBarIcon:(null===(r=n.searchBarIcon)||void 0===r?void 0:r.url)||"",onSearch:n.onSearch||(()=>{})}),t("div",{className:"flex-grow overflow-y-auto",children:[e("ul",{className:"mt-2 flex flex-col gap-2",children:null==i?void 0:i.map((t,n)=>e("li",{children:e(bt,{link:t})},`main-menu-items-${n}`))}),e("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==s?void 0:s.map((t,n)=>e("li",{children:e(Xe,{...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t)),linkClassName:Ie("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`)},`main-menu-items-${n}`))})]})]})})]})},Pt=n=>{const{closeMenu:r,onSearch:i,isMenuOpen:s,searchBarIconURL:a}=n,[l,c]=o.useState(""),d=o.useRef(null),u=e=>{r(),e.preventDefault(),i(l)};return o.useEffect(()=>{s||c("")},[s]),t("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:u,children:[e(Ke,{src:a,width:32,height:32,alt:"Search icon",role:"button",className:"ml-2",onClick:u}),e("div",{className:"flex-grow",children:e(kt,{ref:d,className:"h-[34px] rounded-none text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:l,onChange:e=>c(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},Et=n=>{const{searchBarIconURL:r,onSearch:i}=n,[s,a]=o.useState(""),l=o.useRef(null),c=e=>{e.preventDefault(),i(s)};return t("form",{name:"searchForm",className:"flex h-9 w-60 rounded-full border transition-colors focus-within:border-border-focus",onSubmit:c,children:[e(Ke,{src:r,width:32,height:32,alt:"Search icon",role:"button",onClick:c}),e(kt,{ref:l,className:"rounded-full p-0 text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:s,onChange:e=>a(e.target.value),autoComplete:"off",containerClassName:"px-0 h-full border-none rounded-full"})]})},Tt=n=>{var r;const{title:o,showAsHeading:i,subTitle:s,primaryCta1:a,carouselImages:l,bottomLink:c,price:d,priceCallout:u,priceSuffix:h,checklist:m,renderCheckPlans:p,badgeImage:f,pricingDescriptionDisclaimer:g,secondaryCta:v,secondaryCtaPrefix:y,onModalButtonClick:b}=n,x=null!==(r=null==c?void 0:c.buttonLabel)&&void 0!==r?r:null==c?void 0:c.label;return e("div",{className:"component-container p-5 lg:h-[724px] lg:p-0",children:t("div",{className:Ie("primary-hero-container mx-auto flex flex-col sm:items-center sm:text-center lg:h-full lg:max-w-120 lg:flex-row lg:items-center lg:justify-between lg:gap-4 lg:px-4 lg:text-left"),children:[e("div",{className:Ie("relative flex flex-col text-white sm:w-[485px]"),children:t("div",{className:"flex flex-col gap-5 lg:gap-6",children:[o&&e(Ue,{as:i?"h1":"h2",className:"heading2 lg:heading1",children:o}),s&&e(Ue,{as:"p",className:"subheading3 lg:subheading1",children:s}),d?t("div",{className:"flex",children:[e("div",{className:"mr-2 mt-0.5",children:u?u.split("|").map((t,n)=>e(Ue,{as:"p",className:"body2",children:t},n)):null}),t("div",{className:"flex",children:[e(Ue,{as:"p",className:"subheading1 mt-0.5",children:"$"}),e(Ue,{as:"p",className:"subheading5",children:d}),h?e(Ue,{as:"p",className:"subheading1 mt-0.5",children:h}):null]})]}):null,m&&e(rt,{listItemClassName:"text-white body2",items:m.map(e=>e.title)}),t("div",{className:"flex flex-col gap-3",children:[a&&e("div",{className:Ie("hidden lg:flex lg:flex-col"),children:e(Xe,{...a,renderCheckPlans:p,onModalButtonClick:b})}),y||v?t("div",{className:"flex",children:[y&&e(Ue,{as:"span",className:"body2 mr-1",children:y}),v&&e(Xe,{linkClassName:"body2 text-text-inverse",onModalButtonClick:b,...v})]}):null,c&&(x||(null==c?void 0:c.href))&&e("div",{className:"hidden lg:block",children:e(Xe,{...c,linkClassName:"text-footnote text-white",onModalButtonClick:b})}),g?e(Ue,{as:"p",className:"body3",children:g}):null]})]})}),t("div",{className:"lg:hidden",children:[t("div",{className:"relative my-8",children:[f?e(Ke,{src:f,alt:"Badge",className:"absolute left-5 top-5 aspect-square w-26 object-cover object-center",width:100,height:100,loading:"eager"}):null,l&&l[0]?e(Ke,{src:l[0],alt:"Hero",className:"aspect-[1.71:1] sm:aspect-[1.41:1] rounded-[40px] object-cover object-center sm:h-[420px]",width:350,height:205,loading:"eager"}):null]}),c&&(x||(null==c?void 0:c.href))&&e("div",{children:e(Xe,{...c,onModalButtonClick:b,linkClassName:"body3 text-white"})}),g?e(Ue,{as:"p",className:"body3",children:g}):null,y||v?t("div",{className:"flex",children:[y&&e(Ue,{as:"span",className:"body2 mr-1",children:y}),v&&e(Xe,{...v,onModalButtonClick:b,linkClassName:"text-white"})]}):null]}),t("div",{className:Ie("relative hidden lg:block"),children:[f?e(Ke,{src:f,alt:"Badge",className:"absolute -left-26 top-18 aspect-square w-52 object-cover object-center",width:200,height:200,loading:"eager"}):null,l&&l[0]?e(Ke,{src:l[0],alt:"Hero",className:"aspect-square rounded-[40px] object-cover object-center",width:600,height:600,loading:"eager"}):null]})]})})},St=({fields:t})=>e("div",{children:e(Ue,{children:"Text Block"})}),At={closed:{opacity:0},open:{opacity:1}},Mt={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},Dt={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Vt=u({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Lt=u({}),Bt=u(null),jt="undefined"!=typeof document,Rt=jt?h:l,Ft=u({strict:!1});function It(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ot(e){return"string"==typeof e||Array.isArray(e)}function $t(e){return"object"==typeof e&&"function"==typeof e.start}const zt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_t=["initial",...zt];function Ut(e){return $t(e.animate)||_t.some(t=>Ot(e[t]))}function Wt(e){return Boolean(Ut(e)||e.variants)}function Gt(e){const{initial:t,animate:n}=function(e,t){if(Ut(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Ot(t)?t:void 0,animate:Ot(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,m(Lt));return d(()=>({initial:t,animate:n}),[Ht(t),Ht(n)])}function Ht(e){return Array.isArray(e)?e.join(" "):e}const Yt={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Xt={};for(const e in Yt)Xt[e]={isEnabled:t=>Yt[e].some(e=>!!t[e])};const qt=u({}),Kt=u({}),Zt=Symbol.for("motionComponentSymbol");function Jt({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:a}){e&&function(e){for(const t in e)Xt[t]={...Xt[t],...e[t]}}(e);const d=i(function(i,d){let u;const h={...m(Vt),...i,layoutId:Qt(i)},{isStatic:f}=h,g=Gt(i),v=o(i,f);if(!f&&jt){g.visualElement=function(e,t,n,r){const{visualElement:o}=m(Lt),i=m(Ft),a=m(Bt),c=m(Vt).reducedMotion,d=s();r=r||i.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:c}));const u=d.current;return p(()=>{u&&u.update(n,a)}),Rt(()=>{u&&u.render()}),l(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?Rt:l)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(a,v,h,t);const n=m(Kt),r=m(Ft).strict;g.visualElement&&(u=g.visualElement.loadFeatures(h,r,e,n))}return r.createElement(Lt.Provider,{value:g},u&&g.visualElement?r.createElement(u,{visualElement:g.visualElement,...h}):null,n(a,i,function(e,t,n){return c(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):It(n)&&(n.current=r))},[t])}(v,g.visualElement,d),v,f,g.visualElement))});return d[Zt]=a,d}function Qt({layoutId:e}){const t=m(qt).id;return t&&void 0!==e?t+"-"+e:e}function en(e){function t(t,n={}){return Jt(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const tn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nn(e){return"string"==typeof e&&!e.includes("-")&&!!(tn.indexOf(e)>-1||/[A-Z]/.test(e))}const rn={};const on=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],sn=new Set(on);function an(e,{layout:t,layoutId:n}){return sn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rn[e]||"opacity"===e)}const ln=e=>Boolean(e&&e.getVelocity),cn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dn=on.length;const un=e=>t=>"string"==typeof t&&t.startsWith(e),hn=un("--"),mn=un("var(--"),pn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,fn=(e,t,n)=>Math.min(Math.max(n,e),t),gn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},vn={...gn,transform:e=>fn(0,1,e)},yn={...gn,default:1},bn=e=>Math.round(1e5*e)/1e5,xn=/(-)?([\d]*\.?[\d])+/g,wn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,kn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Nn(e){return"string"==typeof e}const Cn=e=>({test:t=>Nn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Pn=Cn("deg"),En=Cn("%"),Tn=Cn("px"),Sn=Cn("vh"),An=Cn("vw"),Mn={...En,parse:e=>En.parse(e)/100,transform:e=>En.transform(100*e)},Dn={...gn,transform:Math.round},Vn={borderWidth:Tn,borderTopWidth:Tn,borderRightWidth:Tn,borderBottomWidth:Tn,borderLeftWidth:Tn,borderRadius:Tn,radius:Tn,borderTopLeftRadius:Tn,borderTopRightRadius:Tn,borderBottomRightRadius:Tn,borderBottomLeftRadius:Tn,width:Tn,maxWidth:Tn,height:Tn,maxHeight:Tn,size:Tn,top:Tn,right:Tn,bottom:Tn,left:Tn,padding:Tn,paddingTop:Tn,paddingRight:Tn,paddingBottom:Tn,paddingLeft:Tn,margin:Tn,marginTop:Tn,marginRight:Tn,marginBottom:Tn,marginLeft:Tn,rotate:Pn,rotateX:Pn,rotateY:Pn,rotateZ:Pn,scale:yn,scaleX:yn,scaleY:yn,scaleZ:yn,skew:Pn,skewX:Pn,skewY:Pn,distance:Tn,translateX:Tn,translateY:Tn,translateZ:Tn,x:Tn,y:Tn,z:Tn,perspective:Tn,transformPerspective:Tn,opacity:vn,originX:Mn,originY:Mn,originZ:Tn,zIndex:Dn,fillOpacity:vn,strokeOpacity:vn,numOctaves:Dn};function Ln(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,c=!1,d=!0;for(const e in t){const n=t[e];if(hn(e)){i[e]=n;continue}const r=Vn[e],u=pn(n,r);if(sn.has(e)){if(l=!0,s[e]=u,!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,a[e]=u):o[e]=u}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<dn;t++){const n=on[t];void 0!==e[n]&&(i+=`${cn[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,d,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;o.transformOrigin=`${e} ${t} ${n}`}}const Bn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jn(e,t,n){for(const r in t)ln(t[r])||an(r,n)||(e[r]=t[r])}function Rn(e,t,n){const r={};return jn(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return d(()=>{const r={style:{},transform:{},transformOrigin:{},vars:{}};return Ln(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function Fn(e,t,n){const r={},o=Rn(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const In=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function On(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||In.has(e)}let $n=e=>!On(e);try{(zn=require("@emotion/is-prop-valid").default)&&($n=e=>e.startsWith("on")?!On(e):zn(e))}catch(e){}var zn;function _n(e,t,n){return"string"==typeof e?e:Tn.transform(t+n*e)}const Un={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wn={offset:"strokeDashoffset",array:"strokeDasharray"};function Gn(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},d,u,h){if(Ln(e,c,d,h),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:f}=e;m.transform&&(f&&(p.transform=m.transform),delete m.transform),f&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${_n(t,e.x,e.width)} ${_n(n,e.y,e.height)}`}(f,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Un:Wn;e[i.offset]=Tn.transform(-r);const s=Tn.transform(t),a=Tn.transform(n);e[i.array]=`${s} ${a}`}(m,s,a,l,!1)}const Hn=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Yn=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Xn(e,t,n,r){const o=d(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Gn(n,t,{enableHardwareAcceleration:!1},Yn(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};jn(t,e.style,e),o.style={...t,...o.style}}return o}function qn(e=!1){return(t,n,r,{latestValues:o},i)=>{const s=(nn(t)?Xn:Fn)(n,o,i,t),a=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||($n(o)||!0===n&&On(o)||!t&&!On(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l={...a,...s,ref:r},{children:c}=n,u=d(()=>ln(c)?c.get():c,[c]);return f(t,{...l,children:u})}}const Kn=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Zn(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Jn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Qn(e,t,n,r){Zn(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Jn.has(n)?n:Kn(n),t.attrs[n])}function er(e,t){const{style:n}=e,r={};for(const o in n)(ln(n[o])||t.style&&ln(t.style[o])||an(o,e))&&(r[o]=n[o]);return r}function tr(e,t){const n=er(e,t);for(const r in e)if(ln(e[r])||ln(t[r])){n[-1!==on.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function nr(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const rr=e=>Array.isArray(e),or=e=>rr(e)?e[e.length-1]||0:e;function ir(e){const t=ln(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const sr=e=>(t,n)=>{const r=m(Lt),o=m(Bt),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:ar(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,t,r,o);return n?i():function(e){const t=s(null);return null===t.current&&(t.current=e()),t.current}(i)};function ar(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=ir(i[e]);let{initial:s,animate:a}=e;const l=Ut(e),c=Wt(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let d=!!n&&!1===n.initial;d=d||!1===s;const u=d?a:s;if(u&&"boolean"!=typeof u&&!$t(u)){(Array.isArray(u)?u:[u]).forEach(t=>{const n=nr(e,t);if(!n)return;const{transitionEnd:r,transition:i,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[d?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]})}return o}const lr={useVisualState:sr({scrapeMotionValuesFromProps:tr,createRenderState:Hn,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}Gn(n,r,{enableHardwareAcceleration:!1},Yn(t.tagName),e.transformTemplate),Qn(t,n)}})},cr={useVisualState:sr({scrapeMotionValuesFromProps:er,createRenderState:Bn})};function dr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ur=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function hr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function mr(e,t,n,r){return dr(e,t,(e=>t=>ur(t)&&e(t,hr(t)))(n),r)}const pr=(e,t)=>n=>t(e(n)),fr=(...e)=>e.reduce(pr);function gr(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const vr=gr("dragHorizontal"),yr=gr("dragVertical");function br(e){let t=!1;if("y"===e)t=yr();else if("x"===e)t=vr();else{const e=vr(),n=yr();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function xr(){const e=br(!0);return!e||(e(),!1)}class wr{constructor(e){this.isMounted=!1,this.node=e}update(){}}const kr={delta:0,timestamp:0,isProcessing:!1};let Nr=!0,Cr=!1;const Pr=["read","update","preRender","render","postRender"],Er=Pr.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(e,i=!1,a=!1)=>{const l=a&&o,c=l?t:n;return i&&s.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),s.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),s.has(r)&&(a.schedule(r),e())}o=!1,i&&(i=!1,a.process(l))}}};return a}(()=>Cr=!0),e),{}),Tr=e=>Er[e].process(kr),Sr=e=>{Cr=!1,kr.delta=Nr?1e3/60:Math.max(Math.min(e-kr.timestamp,40),1),kr.timestamp=e,kr.isProcessing=!0,Pr.forEach(Tr),kr.isProcessing=!1,Cr&&(Nr=!1,requestAnimationFrame(Sr))},Ar=Pr.reduce((e,t)=>{const n=Er[t];return e[t]=(e,t=!1,r=!1)=>(Cr||(Cr=!0,Nr=!0,kr.isProcessing||requestAnimationFrame(Sr)),n.schedule(e,t,r)),e},{});function Mr(e){Pr.forEach(t=>Er[t].cancel(e))}function Dr(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return mr(e.current,n,(n,o)=>{if("touch"===n.type||xr())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Ar.update(()=>i[r](n,o))},{passive:!e.getProps()[r]})}const Vr=(e,t)=>!!t&&(e===t||Vr(e,t.parentElement)),Lr=e=>e;function Br(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,hr(n))}const jr=new WeakMap,Rr=new WeakMap,Fr=e=>{const t=jr.get(e.target);t&&t(e)},Ir=e=>{e.forEach(Fr)};function Or(e,t,n){const r=function({root:e,...t}){const n=e||document;Rr.has(n)||Rr.set(n,{});const r=Rr.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Ir,{root:e,...t})),r[o]}(t);return jr.set(e,n),r.observe(e),()=>{jr.delete(e),r.unobserve(e)}}const $r={some:0,all:1};const zr={inView:{Feature:class extends wr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:$r[r]};return Or(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends wr{constructor(){super(...arguments),this.removeStartListeners=Lr,this.removeEndListeners=Lr,this.removeAccessibleListeners=Lr,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=mr(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Ar.update(()=>{Vr(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=mr(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=fr(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=dr(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=dr(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&Br("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&Ar.update(()=>n(e,t))})}),Br("down",(e,t)=>{this.startPress(e,t)})}),t=dr(this.node.current,"blur",()=>{this.isPressing&&Br("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=fr(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ar.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xr()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ar.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=mr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=dr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=fr(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends wr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fr(dr(this.node.current,"focus",()=>this.onFocus()),dr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends wr{mount(){this.unmount=fr(Dr(this.node,!0),Dr(this.node,!1))}unmount(){}}}};function _r(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ur(e,t,n){const r=e.getProps();return nr(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const Wr="data-"+Kn("framerAppearId");let Gr=Lr,Hr=Lr;"production"!==process.env.NODE_ENV&&(Gr=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Hr=(e,t)=>{if(!e)throw new Error(t)});const Yr=e=>1e3*e,Xr=e=>e/1e3,qr=!1,Kr=e=>Array.isArray(e)&&"number"==typeof e[0];function Zr(e){return Boolean(!e||"string"==typeof e&&Qr[e]||Kr(e)||Array.isArray(e)&&e.every(Zr))}const Jr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jr([0,.65,.55,1]),circOut:Jr([.55,0,1,.45]),backIn:Jr([.31,.01,.66,-.59]),backOut:Jr([.33,1.53,.69,.99])};function eo(e){if(e)return Kr(e)?Jr(e):Array.isArray(e)?e.map(eo):Qr[e]}const to={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},no={},ro={};for(const e in to)ro[e]=()=>(void 0===no[e]&&(no[e]=to[e]()),no[e]);const oo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function io(e,t,n,r){if(e===t&&n===r)return Lr;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=oo(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(t,0,1,e,n);return e=>0===e||1===e?e:oo(o(e),t,r)}const so=io(.42,0,1,1),ao=io(0,0,.58,1),lo=io(.42,0,.58,1),co=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,uo=e=>t=>1-e(1-t),ho=e=>1-Math.sin(Math.acos(e)),mo=uo(ho),po=co(mo),fo=io(.33,1.53,.69,.99),go=uo(fo),vo=co(go),yo={linear:Lr,easeIn:so,easeInOut:lo,easeOut:ao,circIn:ho,circInOut:po,circOut:mo,backIn:go,backInOut:vo,backOut:fo,anticipate:e=>(e*=2)<1?.5*go(e):.5*(2-Math.pow(2,-10*(e-1)))},bo=e=>{if(Array.isArray(e)){Hr(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return io(t,n,r,o)}return"string"==typeof e?(Hr(void 0!==yo[e],`Invalid easing type '${e}'`),yo[e]):e},xo=(e,t)=>n=>Boolean(Nn(n)&&kn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),wo=(e,t,n)=>r=>{if(!Nn(r))return r;const[o,i,s,a]=r.match(xn);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},ko={...gn,transform:e=>Math.round((e=>fn(0,255,e))(e))},No={test:xo("rgb","red"),parse:wo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ko.transform(e)+", "+ko.transform(t)+", "+ko.transform(n)+", "+bn(vn.transform(r))+")"};const Co={test:xo("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:No.transform},Po={test:xo("hsl","hue"),parse:wo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+En.transform(bn(t))+", "+En.transform(bn(n))+", "+bn(vn.transform(r))+")"},Eo={test:e=>No.test(e)||Co.test(e)||Po.test(e),parse:e=>No.test(e)?No.parse(e):Po.test(e)?Po.parse(e):Co.parse(e),transform:e=>Nn(e)?e:e.hasOwnProperty("red")?No.transform(e):Po.transform(e)},To=(e,t,n)=>-n*e+n*t+e;function So(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Ao=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Mo=[Co,No,Po];function Do(e){const t=(n=e,Mo.find(e=>e.test(n)));var n;Hr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Po&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=So(a,r,e+1/3),i=So(a,r,e),s=So(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const Vo=(e,t)=>{const n=Do(e),r=Do(t),o={...n};return e=>(o.red=Ao(n.red,r.red,e),o.green=Ao(n.green,r.green,e),o.blue=Ao(n.blue,r.blue,e),o.alpha=To(n.alpha,r.alpha,e),No.transform(o))};const Lo={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Lr},Bo={regex:wn,countKey:"Colors",token:"${c}",parse:Eo.parse},jo={regex:xn,countKey:"Numbers",token:"${n}",parse:gn.parse};function Ro(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function Fo(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Ro(n,Lo),Ro(n,Bo),Ro(n,jo),n}function Io(e){return Fo(e).values}function Oo(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Fo(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(Lo.token,e[o]):o<r+n?t.replace(Bo.token,Eo.transform(e[o])):t.replace(jo.token,bn(e[o]));return t}}const $o=e=>"number"==typeof e?0:e;const zo={test:function(e){var t,n;return isNaN(e)&&Nn(e)&&((null===(t=e.match(xn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(wn))||void 0===n?void 0:n.length)||0)>0},parse:Io,createTransformer:Oo,getAnimatableNone:function(e){const t=Io(e);return Oo(e)(t.map($o))}},_o=(e,t)=>n=>`${n>0?t:e}`;function Uo(e,t){return"number"==typeof e?n=>To(e,t,n):Eo.test(e)?Vo(e,t):e.startsWith("var(")?_o(e,t):Ho(e,t)}const Wo=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>Uo(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Go=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Uo(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Ho=(e,t)=>{const n=zo.createTransformer(t),r=Fo(e),o=Fo(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?fr(Wo(r.values,o.values),n):(Gr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),_o(e,t))},Yo=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Xo=(e,t)=>n=>To(e,t,n);function qo(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?Xo:"string"==typeof i?Eo.test(i)?Vo:Ho:Array.isArray(i)?Wo:"object"==typeof i?Go:Xo);var i;const s=e.length-1;for(let n=0;n<s;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Lr:t;i=fr(e,i)}r.push(i)}return r}function Ko(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Hr(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=qo(t,r,o),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Yo(e[n],e[n+1],t);return s[n](r)};return n?t=>l(fn(e[0],e[i-1],t)):l}function Zo(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Yo(0,t,r);e.push(To(n,1,o))}}(t,e.length-1),t}function Jo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(bo):bo(r),i={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:Zo(t),e),a=Ko(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||lo).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}function Qo(e,t){return t?e*(1e3/t):0}function ei(e,t,n){const r=Math.max(t-5,0);return Qo(n-e(r),t-r)}const ti=.001;function ni({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Gr(e<=Yr(10),"Spring duration must be 10 seconds or less");let s=1-t;s=fn(.05,1,s),e=fn(.01,10,Xr(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=oi(t,s),l=Math.exp(-o);return ti-i/a*l},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=oi(Math.pow(t,2),s);return(-o(t)+ti>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<ri;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Yr(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const ri=12;function oi(e,t){return e*Math.sqrt(1-t*t)}const ii=["duration","bounce"],si=["stiffness","damping","mass"];function ai(e,t){return t.some(t=>void 0!==e[t])}function li({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,velocity:d,duration:u,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ai(e,si)&&ai(e,ii)){const n=ni(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=d?-Xr(d):0,p=l/(2*Math.sqrt(a*c)),f=i-o,g=Xr(Math.sqrt(a/c)),v=Math.abs(f)<5;let y;if(n||(n=v?.01:2),t||(t=v?.005:.5),p<1){const e=oi(g,p);y=t=>{const n=Math.exp(-p*g*t);return i-n*((m+p*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===p)y=e=>i-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(p*p-1);y=t=>{const n=Math.exp(-p*g*t),r=Math.min(e*t,300);return i-n*((m+p*g*f)*Math.sinh(r)+e*f*Math.cosh(r))/e}}return{calculatedDuration:h&&u||null,next:e=>{const r=y(e);if(h)s.done=e>=u;else{let o=m;0!==e&&(o=p<1?ei(y,e,r):0);const a=Math.abs(o)<=n,l=Math.abs(i-r)<=t;s.done=a&&l}return s.value=s.done?i:r,s}}}function ci({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let p=n*t;const f=u+p,g=void 0===s?f:s(f);g!==f&&(p=g-u);const v=e=>-p*Math.exp(-e/r),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);h.done=Math.abs(t)<=c,h.value=h.done?g:n};let x,w;const k=e=>{var t;(t=h.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(x=e,w=li({keyframes:[h.value,m(h.value)],velocity:ei(y,e,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,b(e),k(e)),void 0!==x&&e>x?w.next(e-x):(!t&&b(e),h)}}}const di=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Ar.update(t,!0),stop:()=>Mr(t),now:()=>kr.isProcessing?kr.timestamp:performance.now()}};function ui(e){let t=0;let n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}const hi={decay:ci,inertia:ci,tween:Jo,keyframes:Jo,spring:li};function mi({autoplay:e=!0,delay:t=0,driver:n=di,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:u,...h}){let m,p,f=1,g=!1;const v=()=>{m&&m(),p=new Promise(e=>{m=e})};let y;v();const b=hi[o]||Jo;let x;b!==Jo&&"number"!=typeof r[0]&&(x=Ko([0,100],r,{clamp:!1}),r=[0,100]);const w=b({...h,keyframes:r});let k;"mirror"===a&&(k=b({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let N="idle",C=null,P=null,E=null;null===w.calculatedDuration&&i&&(w.calculatedDuration=ui(w));const{calculatedDuration:T}=w;let S=1/0,A=1/0;null!==T&&(S=T+s,A=S*(i+1)-s);let M=0;const D=e=>{if(null===P)return;f>0&&(P=Math.min(P,e)),M=null!==C?C:(e-P)*f;const n=M-t,o=n<0;M=Math.max(n,0),"finished"===N&&null===C&&(M=A);let l=M,c=w;if(i){const e=M/S;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/S)):"mirror"===a&&(c=k));let o=fn(0,1,n);M>A&&(o="reverse"===a&&r?1:0),l=o*S}const d=o?{done:!1,value:r[0]}:c.next(l);x&&(d.value=x(d.value));let{done:h}=d;o||null===T||(h=M>=A);const m=null===C&&("finished"===N||"running"===N&&h||f<0&&M<=0);return u&&u(d.value),m&&B(),d},V=()=>{y&&y.stop(),y=void 0},L=()=>{N="idle",V(),v(),P=E=null},B=()=>{N="finished",d&&d(),V(),v()},j=()=>{if(g)return;y||(y=n(D));const e=y.now();l&&l(),null!==C?P=e-C:P&&"finished"!==N||(P=e),E=P,C=null,N="running",y.start()};e&&j();const R={then:(e,t)=>p.then(e,t),get time(){return Xr(M)},set time(e){e=Yr(e),M=e,null===C&&y&&0!==f?P=y.now()-e/f:C=e},get duration(){const e=null===w.calculatedDuration?ui(w):w.calculatedDuration;return Xr(e)},get speed(){return f},set speed(e){e!==f&&y&&(f=e,R.time=Xr(M))},get state(){return N},play:j,pause:()=>{N="paused",C=M},stop:()=>{g=!0,"idle"!==N&&(N="idle",c&&c(),L())},cancel:()=>{null!==E&&D(E),L()},complete:()=>{N="finished"},sample:e=>(P=0,D(e))};return R}const pi=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function fi(e,t,{onUpdate:n,onComplete:r,...o}){if(!(ro.waapi()&&pi.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,s,a=!1;const l=()=>{s=new Promise(e=>{i=e})};l();let{keyframes:c,duration:d=300,ease:u,times:h}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Zr(t.ease))(t,o)){const e=mi({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;h=void 0,c=n,d=r-10,u="linear"}const m=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=eo(a);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:d,ease:u,times:h}),p=()=>m.cancel(),f=()=>{Ar.update(p),i(),l()};return m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),f()},{then:(e,t)=>s.then(e,t),get time(){return Xr(m.currentTime||0)},set time(e){m.currentTime=Yr(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return Xr(d)},play:()=>{a||(m.play(),Mr(p))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=mi({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const gi={type:"spring",stiffness:500,damping:25,restSpeed:10},vi={type:"keyframes",duration:.8},yi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bi=(e,{keyframes:t})=>t.length>2?vi:sn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:gi:yi,xi=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!zo.test(t)&&"0"!==t||t.startsWith("url("))),wi=new Set(["brightness","contrast","saturate","opacity"]);function ki(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(xn)||[];if(!r)return e;const o=n.replace(r,"");let i=wi.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Ni=/([a-z-]*)\(.*?\)/g,Ci={...zo,getAnimatableNone:e=>{const t=e.match(Ni);return t?t.map(ki).join(" "):e}},Pi={...Vn,color:Eo,backgroundColor:Eo,outlineColor:Eo,fill:Eo,stroke:Eo,borderColor:Eo,borderTopColor:Eo,borderRightColor:Eo,borderBottomColor:Eo,borderLeftColor:Eo,filter:Ci,WebkitFilter:Ci},Ei=e=>Pi[e];function Ti(e,t){let n=Ei(e);return n!==Ci&&(n=zo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Si=e=>/^0[^.\s]+$/.test(e);function Ai(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||Si(e):void 0}function Mi(e,t){return e[t]||e.default||e}const Di=(e,t,n,r={})=>o=>{const i=Mi(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a-=Yr(s);const l=function(e,t,n,r){const o=xi(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const s=void 0!==r.from?r.from:e.get();let a;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?s:i[e-1]),Ai(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(a=i[e]);if(o&&l.length&&a)for(let e=0;e<l.length;e++)i[l[e]]=Ti(t,a);return i}(t,e,n,i),c=l[0],d=l[l.length-1],u=xi(e,c),h=xi(e,d);Gr(u===h,`You are trying to animate ${e} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}(i)||(m={...m,...bi(e,m)}),m.duration&&(m.duration=Yr(m.duration)),m.repeatDelay&&(m.repeatDelay=Yr(m.repeatDelay)),!u||!h||qr||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Lr,pause:Lr,stop:Lr,then:e=>(e(),Promise.resolve()),cancel:Lr,complete:Lr});return t?mi({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=fi(t,e,m);if(n)return n}return mi(m)};function Vi(e){return Boolean(ln(e)&&e.add)}const Li=e=>/^\-?\d*\.?\d+$/.test(e);function Bi(e,t){-1===e.indexOf(t)&&e.push(t)}function ji(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ri{constructor(){this.subscriptions=[]}add(e){return Bi(this.subscriptions,e),()=>ji(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Fi=new Set;function Ii(e,t,n){e||Fi.has(t)||(console.warn(t),Fi.add(t))}class Oi{constructor(e,t={}){var n;this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=kr;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Ar.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ar.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&Ii(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Ri);const n=this.events[e].add(t);return"change"===e?()=>{n(),Ar.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Qo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function $i(e,t){return new Oi(e,t)}const zi=e=>t=>t.test(e),_i=[gn,Tn,En,Pn,An,Sn,{test:e=>"auto"===e,parse:e=>e}],Ui=e=>_i.find(zi(e)),Wi=[..._i,Eo,zo],Gi=e=>Wi.find(zi(e));function Hi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$i(n))}function Yi(e,t){if(!t)return;return(t[e]||t.default||t).from}function Xi({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function qi(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const t in a){const r=e.getValue(t),o=a[t];if(!r||void 0===o||d&&Xi(d,t))continue;const s={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[Wr];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,Ar))}r.start(Di(t,r,o,e.shouldReduceMotion&&sn.has(t)?{type:!1}:s));const u=r.animation;Vi(l)&&(l.add(t),u.then(()=>l.remove(t))),c.push(u)}return s&&Promise.all(c).then(()=>{s&&function(e,t){const n=Ur(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)Hi(e,t,or(i[t]))}(e,s)}),c}function Ki(e,t,n={}){const r=Ur(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(qi(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Zi).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(Ki(e,t,{...i,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+r,s,a,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[e,t]="beforeChildren"===a?[i,s]:[s,i];return e().then(()=>t())}return Promise.all([i(),s(n.delay)])}function Zi(e,t){return e.sortNodePosition(t)}const Ji=[...zt].reverse(),Qi=zt.length;function es(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>Ki(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=Ki(e,t,n);else{const o="function"==typeof t?Ur(e,t,n.custom):t;r=Promise.all(qi(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function ts(e){let t=es(e);const n={animate:rs(!0),whileInView:rs(),whileHover:rs(),whileTap:rs(),whileDrag:rs(),whileFocus:rs(),exit:rs()};let r=!0;const o=(t,n)=>{const r=Ur(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,s){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],d=new Set;let u={},h=1/0;for(let t=0;t<Qi;t++){const m=Ji[t],p=n[m],f=void 0!==a[m]?a[m]:l[m],g=Ot(f),v=m===s?p.isActive:null;!1===v&&(h=t);let y=f===l[m]&&f!==a[m]&&g;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...u},!p.isActive&&null===v||!f&&!p.prevProp||$t(f)||"boolean"==typeof f)continue;const b=ns(p.prevProp,f);let x=b||m===s&&p.isActive&&!y&&g||t>h&&g;const w=Array.isArray(f)?f:[f];let k=w.reduce(o,{});!1===v&&(k={});const{prevResolvedValues:N={}}=p,C={...N,...k},P=e=>{x=!0,d.delete(e),p.needsAnimating[e]=!0};for(const e in C){const t=k[e],n=N[e];u.hasOwnProperty(e)||(t!==n?rr(t)&&rr(n)?!_r(t,n)||b?P(e):p.protectedKeys[e]=!0:void 0!==t?P(e):d.add(e):void 0!==t&&d.has(e)?P(e):p.protectedKeys[e]=!0)}p.prevProp=f,p.prevResolvedValues=k,p.isActive&&(u={...u,...k}),r&&e.blockInitialAnimation&&(x=!1),x&&!y&&c.push(...w.map(e=>({animation:e,options:{type:m,...i}})))}if(d.size){const t={};d.forEach(n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),c.push({animation:t})}let m=Boolean(c.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=i(o,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function ns(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!_r(t,e)}function rs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let os=0;const is={animation:{Feature:class extends wr{constructor(e){super(e),e.animationState||(e.animationState=ts(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),$t(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends wr{constructor(){super(...arguments),this.id=os++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},ss=(e,t)=>Math.abs(e-t);class as{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=ds(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=ss(e.x,t.x),r=ss(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=kr;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=ls(t,this.transformPagePoint),Ar.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=ds("pointercancel"===e.type?this.lastMoveEventInfo:ls(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!ur(e))return;this.handlers=t,this.transformPagePoint=n;const r=ls(hr(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=kr;this.history=[{...o,timestamp:i}];const{onSessionStart:s}=t;s&&s(e,ds(r,this.history)),this.removeListeners=fr(mr(window,"pointermove",this.handlePointerMove),mr(window,"pointerup",this.handlePointerUp),mr(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Mr(this.updatePoint)}}function ls(e,t){return t?{point:t(e.point)}:e}function cs(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ds({point:e},t){return{point:e,delta:cs(e,hs(t)),offset:cs(e,us(t)),velocity:ms(t,.1)}}function us(e){return e[0]}function hs(e){return e[e.length-1]}function ms(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=hs(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Yr(t)));)n--;if(!r)return{x:0,y:0};const i=Xr(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ps(e){return e.max-e.min}function fs(e,t=0,n=.01){return Math.abs(e-t)<=n}function gs(e,t,n,r=.5){e.origin=r,e.originPoint=To(t.min,t.max,e.origin),e.scale=ps(n)/ps(t),(fs(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=To(n.min,n.max,e.origin)-e.originPoint,(fs(e.translate)||isNaN(e.translate))&&(e.translate=0)}function vs(e,t,n,r){gs(e.x,t.x,n.x,r?r.originX:void 0),gs(e.y,t.y,n.y,r?r.originY:void 0)}function ys(e,t,n){e.min=n.min+t.min,e.max=e.min+ps(t)}function bs(e,t,n){e.min=t.min-n.min,e.max=e.min+ps(t)}function xs(e,t,n){bs(e.x,t.x,n.x),bs(e.y,t.y,n.y)}function ws(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ks(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Ns=.35;function Cs(e,t,n){return{min:Ps(e,t),max:Ps(e,n)}}function Ps(e,t){return"number"==typeof e?e:e[t]||0}const Es=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ts(e){return[e("x"),e("y")]}function Ss({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function As(e){return void 0===e||1===e}function Ms({scale:e,scaleX:t,scaleY:n}){return!As(e)||!As(t)||!As(n)}function Ds(e){return Ms(e)||Vs(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Vs(e){return Ls(e.x)||Ls(e.y)}function Ls(e){return e&&"0%"!==e}function Bs(e,t,n){return n+t*(e-n)}function js(e,t,n,r,o){return void 0!==o&&(e=Bs(e,o,r)),Bs(e,n,r)+t}function Rs(e,t=0,n=1,r,o){e.min=js(e.min,t,n,r,o),e.max=js(e.max,t,n,r,o)}function Fs(e,{x:t,y:n}){Rs(e.x,t.translate,t.scale,t.originPoint),Rs(e.y,n.translate,n.scale,n.originPoint)}function Is(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Os(e,t){e.min=e.min+t,e.max=e.max+t}function $s(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=To(e.min,e.max,i);Rs(e,t[n],t[r],s,t.scale)}const zs=["x","scaleX","originX"],_s=["y","scaleY","originY"];function Us(e,t){$s(e.x,t,zs),$s(e.y,t,_s)}function Ws(e,t){return Ss(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Gs=new WeakMap;class Hs{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new as(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(hr(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=br(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ts(e=>{let t=this.getAxisMotionValue(e).get()||0;if(En.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=ps(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&Ar.update(()=>o(e,t),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Ar.update(()=>o(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Ys(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?To(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?To(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&It(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:ws(e.x,n,o),y:ws(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Ns){return!1===e?e=0:!0===e&&(e=Ns),{x:Cs(e,"left","right"),y:Cs(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ts(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!It(e))return!1;const n=e.current;Hr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Ws(e,n),{scroll:o}=t;return o&&(Os(r.x,o.offset.x),Os(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:ks(e.x,t.x),y:ks(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Ss(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Ts(s=>{if(!Ys(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,d=r?40:1e7,u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,u)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Di(e,n,0,t))}stopAnimation(){Ts(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ts(t=>{const{drag:n}=this.getProps();if(!Ys(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-To(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!It(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ts(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=ps(e),o=ps(t);return o>r?n=Yo(t.min,t.max-r,e.min):r>o&&(n=Yo(e.min,e.max-o,t.min)),fn(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ts(t=>{if(!Ys(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(To(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;Gs.set(this.visualElement,this);const e=mr(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();It(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=dr(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ts(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Ns,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Ys(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Xs=e=>(t,n)=>{e&&Ar.update(()=>e(t,n))};const qs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ks(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Zs={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Tn.test(e))return e;e=parseFloat(e)}return`${Ks(e,t.target.x)}% ${Ks(e,t.target.y)}%`}},Js={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=zo.parse(e);if(o.length>5)return r;const i=zo.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=To(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}};class Qs extends o.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=ta,Object.assign(rn,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),qs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Ar.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ea(e){const[t,n]=function(){const e=m(Bt);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=g();return l(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=m(qt);return o.createElement(Qs,{...e,layoutGroup:r,switchLayoutGroup:m(Kt),isPresent:t,safeToRemove:n})}const ta={borderRadius:{...Zs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zs,borderTopRightRadius:Zs,borderBottomLeftRadius:Zs,borderBottomRightRadius:Zs,boxShadow:Js},na=["TopLeft","TopRight","BottomLeft","BottomRight"],ra=na.length,oa=e=>"string"==typeof e?parseFloat(e):e,ia=e=>"number"==typeof e||Tn.test(e);function sa(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const aa=ca(0,.5,mo),la=ca(.5,.95,Lr);function ca(e,t,n){return r=>r<e?0:r>t?1:n(Yo(e,t,r))}function da(e,t){e.min=t.min,e.max=t.max}function ua(e,t){da(e.x,t.x),da(e.y,t.y)}function ha(e,t,n,r,o){return e=Bs(e-=t,1/n,r),void 0!==o&&(e=Bs(e,1/o,r)),e}function ma(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){En.test(t)&&(t=parseFloat(t),t=To(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=To(i.min,i.max,r);e===i&&(a-=t),e.min=ha(e.min,t,n,a,o),e.max=ha(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const pa=["x","scaleX","originX"],fa=["y","scaleY","originY"];function ga(e,t,n,r){ma(e.x,t,pa,n?n.x:void 0,r?r.x:void 0),ma(e.y,t,fa,n?n.y:void 0,r?r.y:void 0)}function va(e){return 0===e.translate&&1===e.scale}function ya(e){return va(e.x)&&va(e.y)}function ba(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function xa(e){return ps(e.x)/ps(e.y)}class wa{constructor(){this.members=[]}add(e){Bi(this.members,e),e.scheduleRender()}remove(e){if(ji(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ka(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const Na=(e,t)=>e.depth-t.depth;class Ca{constructor(){this.children=[],this.isDirty=!1}add(e){Bi(this.children,e),this.isDirty=!0}remove(e){ji(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Na),this.isDirty=!1,this.children.forEach(e)}}const Pa=["","X","Y","Z"];let Ea=0;const Ta={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Sa({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Ea++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Ta.totalNodes=Ta.resolvedTargetDeltas=Ta.recalculatedProjection=0,this.nodes.forEach(Da),this.nodes.forEach(Ia),this.nodes.forEach(Oa),this.nodes.forEach(Va),e=Ta,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ca)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ri),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Mr(r),e(i-t))};return Ar.read(r,!0),()=>Mr(r)}(r,250),qs.hasAnimatedSinceResize&&(qs.hasAnimatedSinceResize=!1,this.nodes.forEach(Fa))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||Ga,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!ba(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Mi(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Fa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach($a),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ba);this.isUpdating||this.nodes.forEach(ja),this.isUpdating=!1,this.nodes.forEach(Ra),this.nodes.forEach(Aa),this.nodes.forEach(Ma),this.clearAllSnapshots();const e=performance.now();kr.delta=fn(0,1e3/60,e-kr.timestamp),kr.timestamp=e,kr.isProcessing=!0,Er.update.process(kr),Er.preRender.process(kr),Er.render.process(kr),kr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(La),this.sharedNodes.forEach(za)}scheduleUpdateProjection(){Ar.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ar.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!ya(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Ds(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Ha((r=n).x),Ha(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Os(t.x,n.offset.x),Os(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};ua(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){ua(t,e);const{scroll:n}=this.root;n&&(Os(t.x,-n.offset.x),Os(t.y,-n.offset.y))}Os(t.x,o.offset.x),Os(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};ua(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Us(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Ds(r.latestValues)&&Us(n,r.latestValues)}return Ds(this.latestValues)&&Us(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};ua(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Ds(n.latestValues))continue;Ms(n.latestValues)&&n.updateSnapshot();const r=Es();ua(r,n.measurePageBox()),ga(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Ds(this.latestValues)&&ga(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==kr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=kr.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},xs(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),ua(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,ys(s.x,a.x,l.x),ys(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ua(this.target,this.layout.layoutBox),Fs(this.target,this.targetDelta)):ua(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},xs(this.relativeTargetOrigin,this.target,e.target),ua(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ta.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ms(this.parent.latestValues)&&!Vs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===kr.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;ua(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Us(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Fs(e,s)),r&&Ds(i.latestValues)&&Us(e,i.latestValues))}t.x=Is(t.x),t.y=Is(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.projectionTransform;vs(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ka(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Ta.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,d=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Wa));let u;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,h,m,p;_a(i.x,e.x,n),_a(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xs(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,h=this.relativeTargetOrigin,m=s,p=n,Ua(l.x,h.x,m.x,p),Ua(l.y,h.y,m.y,p),u&&ba(this.relativeTarget,u)&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),ua(u,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=To(0,void 0!==n.opacity?n.opacity:1,aa(r)),e.opacityExit=To(void 0!==t.opacity?t.opacity:1,0,la(r))):i&&(e.opacity=To(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<ra;o++){const i=`border${na[o]}Radius`;let s=sa(t,i),a=sa(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||ia(s)===ia(a)?(e[i]=Math.max(To(oa(s),oa(a),r),0),(En.test(a)||En.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=To(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ar.update(()=>{qs.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=ln(e)?e:$i(e);return r.start(Di("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Ya(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=ps(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=ps(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}ua(t,n),Us(t,o),vs(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new wa);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<Pa.length;t++){const o="rotate"+Pa[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=ir(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ir(e.pointerEvents)||""),this.hasProjected&&!Ds(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ka(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in rn){if(void 0===s[e])continue;const{correct:t,applyTo:n}=rn[e],o="none"===r.transform?s[e]:t(s[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?ir(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Ba),this.root.sharedNodes.clear()}}}function Aa(e){e.updateLayout()}function Ma(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Ts(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=ps(r);r.min=t[e].min,r.max=r.min+o}):Ya(o,n.layoutBox,t)&&Ts(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=ps(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};vs(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?vs(a,e.applyTransform(r,!0),n.measuredBox):vs(a,t,n.layoutBox);const l=!ya(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s={x:{min:0,max:0},y:{min:0,max:0}};xs(s,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};xs(a,t,i.layoutBox),ba(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Da(e){Ta.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Va(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function La(e){e.clearSnapshot()}function Ba(e){e.clearMeasurements()}function ja(e){e.isLayoutDirty=!1}function Ra(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Fa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ia(e){e.resolveTargetDelta()}function Oa(e){e.calcProjection()}function $a(e){e.resetRotation()}function za(e){e.removeLeadSnapshot()}function _a(e,t,n){e.translate=To(t.translate,0,n),e.scale=To(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ua(e,t,n,r){e.min=To(t.min,n.min,r),e.max=To(t.max,n.max,r)}function Wa(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Ga={duration:.45,ease:[.4,0,.1,1]};function Ha(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Ya(e,t,n){return"position"===e||"preserve-aspect"===e&&!fs(xa(t),xa(n),.2)}const Xa=Sa({attachResizeListener:(e,t)=>dr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qa={current:void 0},Ka=Sa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qa.current){const e=new Xa({});e.mount(window),e.setOptions({layoutScroll:!0}),qa.current=e}return qa.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Za={pan:{Feature:class extends wr{constructor(){super(...arguments),this.removePointerDownListener=Lr}onPointerDown(e){this.session=new as(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Xs(e),onStart:Xs(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Ar.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=mr(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends wr{constructor(e){super(e),this.removeGroupControls=Lr,this.removeListeners=Lr,this.controls=new Hs(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Lr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ka,MeasureLayout:ea}},Ja=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Qa(e,t,n=1){Hr(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Ja.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():mn(o)?Qa(o,t,n+1):o}const el=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tl=e=>el.has(e),nl=e=>e===gn||e===Tn,rl=(e,t)=>parseFloat(e.split(", ")[t]),ol=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return rl(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?rl(t[1],e):0}},il=new Set(["x","y","z"]),sl=on.filter(e=>!il.has(e));const al={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ol(4,13),y:ol(5,14)},ll=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(tl);let i=[],s=!1;const a=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],d=Ui(c);const u=t[o];let h;if(rr(u)){const e=u.length,t=null===u[0]?1:0;c=u[t],d=Ui(c);for(let n=t;n<e&&null!==u[n];n++)h?Hr(Ui(u[n])===h,"All keyframes must be of the same type"):(h=Ui(u[n]),Hr(h===d||nl(d)&&nl(h),"Keyframes must be of the same dimension as the current value"))}else h=Ui(u);if(d!==h)if(nl(d)&&nl(h)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof u?t[o]=parseFloat(u):Array.isArray(u)&&h===Tn&&(t[o]=u.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==h?void 0:h.transform)&&(0===c||0===u)?0===c?l.set(h.transform(c)):t[o]=d.transform(u):(s||(i=function(e){const t=[];return sl.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),a.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(u))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};"none"===s&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=al[e](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const r=t.getValue(n);r&&r.jump(a[n]),e[n]=al[n](l,i)}),e})(t,e,a);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),jt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function cl(e,t,n,r){return(e=>Object.keys(e).some(tl))(t)?ll(e,t,n,r):{target:t,transitionEnd:r}}const dl=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!mn(t))return;const n=Qa(t,r);n&&e.set(n)});for(const e in t){const o=t[e];if(!mn(o))continue;const i=Qa(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return cl(e,t=o.target,n,r=o.transitionEnd)},ul={current:null},hl={current:!1};const ml=new WeakMap,pl=Object.keys(Xt),fl=pl.length,gl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],vl=_t.length;class yl{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ar.render(this.render,!1,!0);const{latestValues:s,renderState:a}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Ut(t),this.isVariantNode=Wt(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==s[e]&&ln(t)&&(t.set(s[e],!1),Vi(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,ml.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),hl.current||function(){if(hl.current=!0,jt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ul.current=e.matches;e.addListener(t),t()}else ul.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ul.current),"production"!==process.env.NODE_ENV&&Ii(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ml.delete(this.current),this.projection&&this.projection.unmount(),Mr(this.notifyUpdate),Mr(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=sn.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Ar.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,s;if("production"!==process.env.NODE_ENV&&r&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Gr(!1,e):Hr(!1,e)}for(let e=0;e<fl;e++){const n=pl[e],{isEnabled:r,Feature:o,ProjectionNode:a,MeasureLayout:l}=Xt[n];a&&(i=a),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(s=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&It(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<gl.length;t++){const n=gl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(ln(i))e.addValue(o,i),Vi(r)&&r.add(o),"development"===process.env.NODE_ENV&&Ii("10.12.16"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.12.16 may not work as expected.`);else if(ln(s))e.addValue(o,$i(i,{owner:e})),Vi(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,$i(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<vl;e++){const n=_t[e],r=this.props[n];(Ot(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=$i(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=nr(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||ln(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Ri),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class bl extends yl{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=Yi(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter(t=>!e.hasValue(t)),s=i.length;if(s)for(let a=0;a<s;a++){const s=i[a],l=t[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==o?o:t[s]),null!=c&&("string"==typeof c&&(Li(c)||Si(c))?c=parseFloat(c):!Gi(c)&&zo.test(l)&&(c=Ti(s,l)),e.addValue(s,$i(c,{owner:e})),void 0===n[s]&&(n[s]=c),null!==c&&e.setBaseTarget(s,c))}}(this,n,i);const e=dl(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class xl extends bl{readValueFromInstance(e,t){if(sn.has(t)){const e=Ei(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(hn(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ws(e,t)}build(e,t,n,r){Ln(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return er(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ln(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){Zn(e,t,n,r)}}class wl extends bl{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(sn.has(t)){const e=Ei(t);return e&&e.default||0}return t=Jn.has(t)?t:Kn(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return tr(e,t)}build(e,t,n,r){Gn(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Qn(e,t,0,r)}mount(e){this.isSVGTag=Yn(e.tagName),super.mount(e)}}const kl=(e,t)=>nn(e)?new wl(t,{enableHardwareAcceleration:!1}):new xl(t,{enableHardwareAcceleration:!0}),Nl={...is,...zr,...Za,...{layout:{ProjectionNode:Ka,MeasureLayout:ea}}},Cl=en((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...nn(e)?lr:cr,preloadedFeatures:n,useRender:qn(t),createVisualElement:r,Component:e}}(e,t,Nl,kl));function Pl(){return Pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pl.apply(null,arguments)}function El(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Tl(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function Sl(...e){return c(Tl(...e),e)}function Al(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return d(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}const Ml=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?h:()=>{},Dl=r["useId".toString()]||(()=>{});let Vl=0;function Ll(e){const[t,n]=r.useState(Dl());return Ml(()=>{n(e=>null!=e?e:String(Vl++))},[e]),e||(t?`radix-${t}`:"")}function Bl(e){const t=s(e);return l(()=>{t.current=e}),d(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function jl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=function({defaultProp:e,onChange:t}){const n=a(e),[r]=n,o=s(r),i=Bl(t);return l(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,d=i?e:r,u=Bl(n);return[d,c(t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[i,e,o,u])]}const Rl=i((e,t)=>{const{children:n,...r}=e,o=v.toArray(n),i=o.find(Ol);if(i){const e=i.props.children,n=o.map(t=>t===i?v.count(e)>1?v.only(null):y(e)?e.props.children:null:t);return f(Fl,Pl({},r,{ref:t}),y(e)?b(e,void 0,n):null)}return f(Fl,Pl({},r,{ref:t}),n)});Rl.displayName="Slot";const Fl=i((e,t)=>{const{children:n,...r}=e;return y(n)?b(n,{...$l(r,n.props),ref:t?Tl(t,n.ref):n.ref}):v.count(n)>1?v.only(null):null});Fl.displayName="SlotClone";const Il=({children:e})=>f(x,null,e);function Ol(e){return y(e)&&e.type===Il}function $l(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const zl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=i((e,n)=>{const{asChild:r,...o}=e,i=r?Rl:t;return l(()=>{window[Symbol.for("radix-ui")]=!0},[]),f(i,Pl({},o,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});const _l="dismissableLayer.update",Ul="dismissableLayer.pointerDownOutside",Wl="dismissableLayer.focusOutside";let Gl;const Hl=u({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yl=i((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:d,onDismiss:u,...h}=e,p=m(Hl),[g,v]=a(null),y=null!==(n=null==g?void 0:g.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,b]=a({}),x=Sl(t,e=>v(e)),w=Array.from(p.layers),[k]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),N=w.indexOf(k),C=g?w.indexOf(g):-1,P=p.layersWithOutsidePointerEventsDisabled.size>0,E=C>=N,T=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Bl(e),r=s(!1),o=s(()=>{});return l(()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function s(){ql(Ul,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=s,t.addEventListener("click",o.current,{once:!0})):s()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...p.branches].some(e=>e.contains(t));E&&!n&&(null==i||i(e),null==d||d(e),e.defaultPrevented||null==u||u())},y),S=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Bl(e),r=s(!1);return l(()=>{const e=e=>{if(e.target&&!r.current){ql(Wl,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...p.branches].some(e=>e.contains(t))||(null==c||c(e),null==d||d(e),e.defaultPrevented||null==u||u())},y);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Bl(e);l(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{C===p.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},y),l(()=>{if(g)return r&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(Gl=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),Xl(),()=>{r&&1===p.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=Gl)}},[g,y,r,p]),l(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),Xl())},[g,p]),l(()=>{const e=()=>b({});return document.addEventListener(_l,e),()=>document.removeEventListener(_l,e)},[]),f(zl.div,Pl({},h,{ref:x,style:{pointerEvents:P?E?"auto":"none":void 0,...e.style},onFocusCapture:El(e.onFocusCapture,S.onFocusCapture),onBlurCapture:El(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:El(e.onPointerDownCapture,T.onPointerDownCapture)}))});function Xl(){const e=new CustomEvent(_l);document.dispatchEvent(e)}function ql(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&C(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}const Kl="focusScope.autoFocusOnMount",Zl="focusScope.autoFocusOnUnmount",Jl={bubbles:!1,cancelable:!0},Ql=i((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...d}=e,[u,h]=a(null),m=Bl(o),p=Bl(i),g=s(null),v=Sl(t,e=>h(e)),y=s({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l(()=>{if(r){function e(e){if(y.paused||!u)return;const t=e.target;u.contains(t)?g.current=t:rc(g.current,{select:!0})}function t(e){if(y.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||rc(g.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&rc(u)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return u&&o.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}},[r,u,y.paused]),l(()=>{if(u){oc.add(y);const t=document.activeElement;if(!u.contains(t)){const n=new CustomEvent(Kl,Jl);u.addEventListener(Kl,m),u.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rc(r,{select:t}),document.activeElement!==n)return}((e=ec(u),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&rc(u))}return()=>{u.removeEventListener(Kl,m),setTimeout(()=>{const e=new CustomEvent(Zl,Jl);u.addEventListener(Zl,p),u.dispatchEvent(e),e.defaultPrevented||rc(null!=t?t:document.body,{select:!0}),u.removeEventListener(Zl,p),oc.remove(y)},0)}}var e},[u,m,p,y]);const b=c(e=>{if(!n&&!r)return;if(y.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=ec(e),n=tc(t,e),r=tc(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&rc(i,{select:!0})):(e.preventDefault(),n&&rc(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,y.paused]);return f(zl.div,Pl({tabIndex:-1},d,{ref:v,onKeyDown:b}))});function ec(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tc(e,t){for(const n of e)if(!nc(n,{upTo:t}))return n}function nc(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function rc(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const oc=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=ic(e,t),e.unshift(t)},remove(t){var n;e=ic(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function ic(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const sc=i((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?N.createPortal(f(zl.div,Pl({},o,{ref:t})),r):null});const ac=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a(),r=s({}),o=s(e),i=s("none"),d=e?"mounted":"unmounted",[u,h]=function(e,t){return w((e,n)=>{const r=t[e][n];return null!=r?r:e},e)}(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l(()=>{const e=lc(r.current);i.current="mounted"===u?e:"none"},[u]),Ml(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,s=lc(t);if(e)h("MOUNT");else if("none"===s||"none"===(null==t?void 0:t.display))h("UNMOUNT");else{h(n&&r!==s?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,h]),Ml(()=>{if(t){const e=e=>{const n=lc(r.current).includes(e.animationName);e.target===t&&n&&C(()=>h("ANIMATION_END"))},n=e=>{e.target===t&&(i.current=lc(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:c(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):v.only(n),i=Sl(r.ref,o.ref);return"function"==typeof n||r.isPresent?b(o,{ref:i}):null};function lc(e){return(null==e?void 0:e.animationName)||"none"}ac.displayName="Presence";let cc=0;function dc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var uc=function(){return uc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},uc.apply(this,arguments)};function hc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var mc="right-scroll-bar-position",pc="width-before-scroll-bar";function fc(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var gc="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,vc=new WeakMap;function yc(e,t){var n,r,o,i=(n=null,r=function(t){return e.forEach(function(e){return fc(e,t)})},(o=a(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return gc(function(){var t=vc.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach(function(e){r.has(e)||fc(e,null)}),r.forEach(function(e){n.has(e)||fc(e,o)})}vc.set(i,e)},[e]),i}function bc(e){return e}var xc=function(e){var t=e.sideCar,n=hc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,uc({},n))};xc.isSideCarExport=!0;var wc=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=bc);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=uc({async:!0,ssr:!1},e),t}(),kc=function(){},Nc=r.forwardRef(function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:kc,onWheelCapture:kc,onTouchMoveCapture:kc}),i=o[0],s=o[1],a=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,h=e.shards,m=e.sideCar,p=e.noIsolation,f=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=hc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=m,w=yc([n,t]),k=uc(uc({},b),i);return r.createElement(r.Fragment,null,u&&r.createElement(x,{sideCar:wc,removeScrollBar:d,shards:h,noIsolation:p,inert:f,setCallbacks:s,allowPinchZoom:!!g,lockRef:n}),a?r.cloneElement(r.Children.only(l),uc(uc({},k),{ref:w})):r.createElement(y,uc({},k,{className:c,ref:w}),l))});Nc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Nc.classNames={fullWidth:pc,zeroRight:mc};function Cc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Pc=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Cc())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ec=function(){var e,t=(e=Pc(),function(t,n){r.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Tc={left:0,top:0,right:0,gap:0},Sc=function(e){return parseInt(e||"",10)||0},Ac=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Tc;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Sc(n),Sc(r),Sc(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Mc=Ec(),Dc="data-scroll-locked",Vc=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(Dc,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(mc," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(pc," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(mc," .").concat(mc," {\n right: 0 ").concat(r,";\n }\n \n .").concat(pc," .").concat(pc," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Dc,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},Lc=function(){var e=parseInt(document.body.getAttribute(Dc)||"0",10);return isFinite(e)?e:0},Bc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;r.useEffect(function(){return document.body.setAttribute(Dc,(Lc()+1).toString()),function(){var e=Lc()-1;e<=0?document.body.removeAttribute(Dc):document.body.setAttribute(Dc,e.toString())}},[]);var s=r.useMemo(function(){return Ac(i)},[i]);return r.createElement(Mc,{styles:Vc(s,!t,i,n?"":"!important")})},jc=!1;if("undefined"!=typeof window)try{var Rc=Object.defineProperty({},"passive",{get:function(){return jc=!0,!0}});window.addEventListener("test",Rc,Rc),window.removeEventListener("test",Rc,Rc)}catch(e){jc=!1}var Fc=!!jc&&{passive:!1},Ic=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Oc=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),$c(e,n)){var r=zc(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},$c=function(e,t){return"v"===e?function(e){return Ic(e,"overflowY")}(t):function(e){return Ic(e,"overflowX")}(t)},zc=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},_c=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Uc=function(e){return[e.deltaX,e.deltaY]},Wc=function(e){return e&&"current"in e?e.current:e},Gc=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Hc=0,Yc=[];var Xc,qc=(Xc=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(Hc++)[0],s=r.useState(function(){return Ec()})[0],a=r.useRef(e);r.useEffect(function(){a.current=e},[e]),r.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Wc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=r.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var r,i=_c(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var h=Oc(u,d);if(!h)return!0;if(h?r=u:(r="v"===u?"h":"v",h=Oc(u,d)),!h)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=r),!r)return!0;var m=o.current||r;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,s=n.target,a=t.contains(s),l=!1,c=i>0,d=0,u=0;do{var h=zc(e,s),m=h[0],p=h[1]-h[2]-o*m;(m||p)&&$c(e,s)&&(d+=p,u+=m),s=s.parentNode}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return c&&0===d?l=!0:c||0!==u||(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=r.useCallback(function(e){var n=e;if(Yc.length&&Yc[Yc.length-1]===s){var r="deltaY"in n?Uc(n):_c(n),o=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(a.current.shards||[]).map(Wc).filter(Boolean).filter(function(e){return e.contains(n.target)});(i.length>0?l(n,i[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),d=r.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=r.useCallback(function(e){n.current=_c(e),o.current=void 0},[]),h=r.useCallback(function(t){d(t.type,Uc(t),t.target,l(t,e.lockRef.current))},[]),m=r.useCallback(function(t){d(t.type,_c(t),t.target,l(t,e.lockRef.current))},[]);r.useEffect(function(){return Yc.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Fc),document.addEventListener("touchmove",c,Fc),document.addEventListener("touchstart",u,Fc),function(){Yc=Yc.filter(function(e){return e!==s}),document.removeEventListener("wheel",c,Fc),document.removeEventListener("touchmove",c,Fc),document.removeEventListener("touchstart",u,Fc)}},[]);var p=e.removeScrollBar,f=e.inert;return r.createElement(r.Fragment,null,f?r.createElement(s,{styles:Gc(i)}):null,p?r.createElement(Bc,{gapMode:"margin"}):null)},wc.useMedium(Xc),xc),Kc=r.forwardRef(function(e,t){return r.createElement(Nc,uc({},e,{ref:t,sideCar:qc}))});Kc.classNames=Nc.classNames;var Zc=new WeakMap,Jc=new WeakMap,Qc={},ed=0,td=function(e){return e&&(e.host||td(e.parentNode))},nd=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=td(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Qc[n]||(Qc[n]=new WeakMap);var i=Qc[n],s=[],a=new Set,l=new Set(o),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};o.forEach(c);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))d(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Zc.get(e)||0)+1,c=(i.get(e)||0)+1;Zc.set(e,l),i.set(e,c),s.push(e),1===l&&o&&Jc.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),a.clear(),ed++,function(){s.forEach(function(e){var t=Zc.get(e)-1,o=i.get(e)-1;Zc.set(e,t),i.set(e,o),t||(Jc.has(e)||e.removeAttribute(r),Jc.delete(e)),o||e.removeAttribute(n)}),--ed||(Zc=new WeakMap,Zc=new WeakMap,Jc=new WeakMap,Qc={})}},rd=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),nd(r,o,n,"aria-hidden")):function(){return null}};const od="Dialog",[id,sd]=function(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>u(e));return function(n){const r=(null==n?void 0:n[e])||t;return d(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=u(r),i=n.length;function s(t){const{scope:n,children:r,...s}=t,a=(null==n?void 0:n[e][i])||o,l=d(()=>s,Object.values(s));return f(a.Provider,{value:l},r)}return n=[...n,r],s.displayName=t+"Provider",[s,function(n,s){const a=(null==s?void 0:s[e][i])||o,l=m(a);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Al(r,...t)]}(od),[ad,ld]=id(od),cd="DialogPortal",[dd,ud]=id(cd,{forceMount:void 0}),hd="DialogOverlay",md=i((e,t)=>{const n=ud(hd,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ld(hd,e.__scopeDialog);return i.modal?f(ac,{present:r||i.open},f(pd,Pl({},o,{ref:t}))):null}),pd=i((e,t)=>{const{__scopeDialog:n,...r}=e,o=ld(hd,n);return f(Kc,{as:Rl,allowPinchZoom:!0,shards:[o.contentRef]},f(zl.div,Pl({"data-state":Nd(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),fd="DialogContent",gd=i((e,t)=>{const n=ud(fd,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ld(fd,e.__scopeDialog);return f(ac,{present:r||i.open},i.modal?f(vd,Pl({},o,{ref:t})):f(yd,Pl({},o,{ref:t})))}),vd=i((e,t)=>{const n=ld(fd,e.__scopeDialog),r=s(null),o=Sl(t,n.contentRef,r);return l(()=>{const e=r.current;if(e)return rd(e)},[]),f(bd,Pl({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:El(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:El(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:El(e.onFocusOutside,e=>e.preventDefault())}))}),yd=i((e,t)=>{const n=ld(fd,e.__scopeDialog),r=s(!1),o=s(!1);return f(bd,Pl({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,s;(null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented)||(r.current||null===(s=n.triggerRef.current)||void 0===s||s.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var i,s;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target;(null===(s=n.triggerRef.current)||void 0===s?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),bd=i((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,c=ld(fd,n),d=Sl(t,s(null));return l(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:dc()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:dc()),cc++,()=>{1===cc&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),cc--}},[]),f(x,null,f(Ql,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},f(Yl,Pl({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Nd(c.open)},a,{ref:d,onDismiss:()=>c.onOpenChange(!1)}))),!1)}),xd="DialogTitle",wd="DialogClose",kd=i((e,t)=>{const{__scopeDialog:n,...r}=e,o=ld(wd,n);return f(zl.button,Pl({type:"button"},r,{ref:t,onClick:El(e.onClick,()=>o.onOpenChange(!1))}))});function Nd(e){return e?"open":"closed"}!function(e,t){const n=u(t);function r(e){const{children:t,...r}=e,o=d(()=>r,Object.values(r));return f(n.Provider,{value:o},t)}r.displayName=e+"Provider"}("DialogTitleWarning",{contentName:fd,titleName:xd,docsSlug:"dialog"});const Cd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=s(null),d=s(null),[u=!1,h]=jl({prop:r,defaultProp:o,onChange:i});return f(ad,{scope:t,triggerRef:l,contentRef:d,contentId:Ll(),titleId:Ll(),descriptionId:Ll(),open:u,onOpenChange:h,onOpenToggle:c(()=>h(e=>!e),[h]),modal:a},n)},Pd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=ld(cd,t);return f(dd,{scope:t,forceMount:n},v.map(r,e=>f(ac,{present:n||i.open},f(sc,{asChild:!0,container:o},e))))},Ed=md,Td=gd,Sd=kd,Ad=n=>{const{isOpen:r,onRequestClose:o,size:i,title:s,content:a,description:l,children:c,bodyClassName:d}=n;return e(Cd,{open:r,onOpenChange:()=>r&&(null==o?void 0:o()),children:t(Pd,{children:[e(Cl.div,{initial:"closed",animate:r?"open":"closed",variants:At,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e(Ed,{})}),e(Cl.div,{initial:"closed",animate:r?"open":"closed",variants:Mt,transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"fixed left-1/2 top-1/2 z-[1001] w-auto -translate-x-1/2 -translate-y-1/2 focus:outline-none",children:t(Td,{className:Ie("fixed left-[50%] top-[50%] w-[90vw] translate-x-[-50%] translate-y-[-50%] rounded-[6px] bg-bg p-[25px] shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] focus:outline-none",d),style:{maxWidth:Dt[i||"lg"]},children:[e(Sd,{asChild:!0,children:e(Xe,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 mr-2 mt-2 bg-bg",children:e(ze,{name:"close"})})}),t("div",{className:"custom-modal-body max-h-[85vh] overflow-visible",children:[s?e(Ue,{className:Ie("mx-auto mb-3 mt-5 text-center","heading5 md:max-w-[80%] md:pt-0","mb-5 md:mb-[60px]"),as:"h2",children:s}):null,l?e(Ue,{as:"div",children:l}):null,a,c||null]})]})})]})})},Md=({children:n,background:r,className:o,fill:i="yellow",maxFit:s,show:a=!0,path:l="path2"})=>{const c=`${l}`,d={blue:"text-[#07B2E2]",green:"text-[#26B170]",yellow:"text-[#F5FF1E]",purple:"text-[#931D69]",white:"text-white",navy:"text-[#00002D]"},u={blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"},h="string"==typeof r&&r in u,m=h?u[r]:void 0,p=r&&!h?{background:r}:void 0,f=i in d?d[i]:"text-[#F5FF1E]";return a?t("div",{className:`shape-bg relative overflow-hidden ${null!=o?o:""} ${s?"max-content":""} ${null!=m?m:p?"":"bg-white"}`,style:p,children:["path1"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2371px] z-0 translate-x-[-55%] ${c} fill-current ${f}`,width:"2262",height:"4359",viewBox:"0 0 2262 4359",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1838.72 444.021C2216.45 758.242 2351.22 1060.81 2202.83 1982.25C2062.95 2851.55 1923.57 4265.14 1394.48 4348.94C1079.75 4409.66 766.955 4172.68 508.523 4003.04C340.876 3884.89 192.855 3774.9 26.6866 3661.93C-27.6562 3624.7 8.69435 3542.15 74.1261 3555.69C415.628 3626.61 686.916 3615.36 942.942 3443.48C1410.95 3163.54 1632.32 2141.02 1629.56 1543.75C1637.51 910.76 1276.06 582.318 829.643 352.709C587.562 235.528 333.508 169.963 100.699 149.757C31.9431 143.965 25.0259 47.9703 92.459 33.1281C623.196 -84.6769 1404.59 131.886 1839.84 443.573"})}),"path2"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[45.8px] z-0 translate-x-[-101%] ${c} fill-current ${f}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.09 4009.1 647.09 3634.26 264.38C3417.79 27.9944 3025.37 31.7818 2716.76 13.9013C2511.72 8.81634 2327.31 8.87399 2126.55 0.511773C2060.73 -2.00127 2040.7 85.9475 2101.3 114.087C2417.76 260.743 2628.86 431.51 2731.94 722.142C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.97 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path3"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2600px] z-0 translate-x-[-55%] ${c} fill-current ${f}`,width:"3044",height:"3248",viewBox:"0 0 3044 3248",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1.21857 1353.6C-0.931975 1765.46 120.504 2015.15 791.765 2417.01C1424.98 2796.19 2407.16 3469.31 2746.34 3175.04C2955.08 3005.86 2971.76 2677.32 3002.33 2420C3016.95 2248.7 3026.23 2094.39 3043.38 1926.83C3048.81 1871.88 2976.24 1850.67 2949.63 1899.96C2810.91 2157.33 2657.35 2325.33 2408.95 2396.88C1976.88 2546.15 1201.39 2136.59 819.655 1812.63C409.231 1476.27 393.475 1067.19 486.97 656.895C542.372 438.358 637.352 239.983 749.974 79.7081C783.347 32.4684 725.487 -23.7534 679.587 11.5067C317.699 288.49 35.1358 906.671 0.328344 1354.07"})}),"path4"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-1966.1px] z-0 translate-x-[-48%] ${c} fill-current ${f}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.1 4009.1 647.091 3634.26 264.381C3417.79 27.9951 3025.37 31.7826 2716.76 13.902C2511.72 8.81709 2327.31 8.87474 2126.55 0.512528C2060.73 -2.00052 2040.7 85.9483 2101.3 114.088C2417.76 260.743 2628.86 431.51 2731.94 722.143C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.98 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),e("div",{className:"shape-bg-content relative z-[1]",children:n})]}):e("div",{className:o,style:p,children:n})},Dd=({title:n,background:r="white",button:o,color:i,contentAlignment:s,description:a,descriptionAlignment:l,enableHeading:c,subTitle:d,maxWidth:u=!0,onModalButtonClick:h,renderCheckPlans:m})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[r]} component-container`,children:t("div",{className:`${u?"mx-auto max-w-120":""} color-${i} flex flex-col ${"dark"==i?"text-text":"text-white"} px-5 py-16 lg:px-13 lg:py-24`,children:[e(Ue,{as:c?"h1":"h2",className:`heading2 lg:heading1 text-${s}`,children:n}),e(Ue,{as:"h3",className:`subheading3 pt-2 lg:subheading1 lg:pt-3 text-${s}`,children:d}),e("div",{className:`pt-2 text-body1 lg:pt-3 text-${l}`,children:a}),e("div",{className:"flex justify-center pt-5 lg:pt-14",children:e(Xe,{...o,renderCheckPlans:m,onModalButtonClick:h})})]})}),Vd=({background:r="white",description:o,enableHeading:i,image:s,list:a=[],subTitle:l,title:c,color:d="dark",maxWidth:u=!0})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[r]} component-container overflow-hidden ${"dark"==d?"text-text":"text-white"}`,children:t("div",{className:(u?"max-w-120 xl:mx-auto":"")+" mx-5 mb-5 mt-12 xl:my-20",children:[c&&e(Ue,{as:i?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:c}),l&&e(Ue,{as:i?"h2":"h3",className:"heading3 mt-4 text-center",children:l}),t("div",{className:"mt-8 flex items-center xl:mt-16 xl:gap-10",children:[t("div",{className:"flex flex-col items-start gap-10 self-stretch xl:flex-[1_0_0]",children:[o&&e(Ue,{as:"p",className:"body1",children:o}),a.length>0&&t(n,{children:[e("ul",{className:"grid w-full grid-cols-2 gap-x-8 gap-y-4 md:hidden",children:(()=>{const t=[...a].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/2),r=[];for(let e=0;e<n;e++)for(let o=0;o<2;o++){const i=o*n+e;i<t.length&&r.push(t[i])}return r.map((t,n)=>e("li",{children:e(Ye,{href:`/local/${t.code.toLowerCase()}`,className:"label1",children:t.name})},`item-list-2-${n}`))})()}),e("ul",{className:"hidden gap-x-8 gap-y-4 md:grid md:grid-cols-3",children:(()=>{const t=[...a].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/3),r=[];for(let e=0;e<n;e++)for(let o=0;o<3;o++){const i=o*n+e;i<t.length&&r.push(t[i])}return r.map((t,n)=>e("li",{children:e(Ye,{href:`/local/${t.code.toLowerCase()}`,className:"label1",children:t.name})},`item-list-3-${n}`))})()})]})]}),s&&e("aside",{className:"hidden xl:block",children:e(Ke,{width:472,height:100,src:s,alt:"image"})})]})]})}),Ld=({title:n,disclaimer:r,table:o,maxWidth:i=!0})=>e("div",{className:"component-container",children:t("div",{className:"mx-5 mb-5 mt-8 lg:mt-10 "+(i?"max-w-120 xl:mx-auto":""),children:[e(Ue,{as:"h2",className:"heading2 lg:heading1 lg:text-center",children:n}),e("div",{className:"comparison-table-container mt-20 xl:mt-10",children:o}),e(Ue,{as:"div",className:"micro mt-8 text-center",children:r})]})});export{We as Accordion,Xe as Button,Je as Callout,Qe as Cards,ut as Carousel,Ld as ComparisonTable,Dd as CtaCallout,Vd as FindKinetic,ht as FloatingBanner,mt as Footer,vt as ImagePromoBar,Ad as Modal,Nt as Navigation,Tt as PrimaryHero,st as ProductCard,Md as ShapeBackgroundWrapper,Ze as SimpleCard,at as TestimonialCard,St as Text};
|
|
4
4
|
//# sourceMappingURL=index.esm.js.map
|