@windstream/react-shared-components 0.2.68 → 0.2.70
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.d.ts +13 -2
- package/dist/contentful/index.esm.js +4 -4
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +2 -2
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +31 -2
- package/dist/index.d.ts +35 -6
- package/dist/index.esm.js +8 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/rich-text-basic/index.test.tsx +172 -0
- package/src/components/rich-text-basic/index.tsx +102 -0
- package/src/components/rich-text-basic/types.ts +34 -0
- package/src/components/select-plan-button/index.test.tsx +27 -0
- package/src/components/select-plan-button/index.tsx +6 -1
- package/src/components/video-link/index.tsx +2 -2
- package/src/contentful/blocks/cards/product-card/index.test.tsx +36 -0
- package/src/contentful/blocks/cards/product-card/index.tsx +23 -24
- package/src/contentful/blocks/carousel/index.tsx +1 -1
- package/src/contentful/blocks/dynamic-form/field-map.tsx +1 -1
- package/src/contentful/blocks/dynamic-form/index.test.tsx +96 -0
- package/src/contentful/blocks/dynamic-form/index.tsx +24 -1
- package/src/contentful/blocks/dynamic-form/types.ts +13 -2
- package/src/contentful/blocks/navigation/index.tsx +4 -1
- package/src/contentful/blocks/primary-hero/index.test.tsx +11 -2
- package/src/contentful/blocks/primary-hero/index.tsx +3 -2
- package/src/hooks/contentful/use-contentful-rich-text.tsx +39 -2
- package/src/index.ts +7 -0
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("next/link"),r=require("next/image"),o=require("react-dom");function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var s=i(t);function a(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=a(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function l(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=a(e))&&(r&&(r+=" "),r+=t);return r}const u=e=>{const t=f(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),c(n,t)||p(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},c=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?c(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},d=/^\[(.+)\]$/,p=e=>{if(d.test(e)){const t=d.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},f=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)h(n[e],r,e,t);return r},h=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:m(t,e)).classGroupId=n)}if("function"==typeof e)return g(e)?void h(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{h(o,m(t,e),n,r)})})},m=(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},g=e=>e.isThemeGetter,b=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)}}},v=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=y(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},y=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,x=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}},I=/\s+/;function C(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=w(e))&&(r&&(r+=" "),r+=t);return r}const w=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=w(e[r]))&&(n&&(n+=" "),n+=t);return n};function E(e,...t){let n,r,o,i=function(a){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:b(e.cacheSize),parseClassName:v(e),sortModifiers:x(e),...u(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(I);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!f,m=r(h?p.substring(0,f):p);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(p),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=i(c).join(":"),b=d?g+"!":g,v=b+m;if(s.includes(v))continue;s.push(v);const y=o(m,h);for(let e=0;e<y.length;++e){const t=y[e];s.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(C.apply(null,arguments))}}const A=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},S=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,T=/^\((?:(\w[\w-]*):)?(.+)\)$/i,O=/^\d+\/\d+$/,N=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P=/\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$/,j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,R=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,k=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>O.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),M=e=>!!e&&Number.isInteger(Number(e)),G=e=>e.endsWith("%")&&B(e.slice(0,-1)),D=e=>N.test(e),V=()=>!0,F=e=>P.test(e)&&!j.test(e),_=()=>!1,H=e=>R.test(e),W=e=>k.test(e),X=e=>!Z(e)&&!Q(e),z=e=>ie(e,ue,_),Z=e=>S.test(e),Y=e=>ie(e,ce,F),U=e=>ie(e,de,B),J=e=>ie(e,ae,_),$=e=>ie(e,le,W),K=e=>ie(e,fe,H),Q=e=>T.test(e),q=e=>se(e,ce),ee=e=>se(e,pe),te=e=>se(e,ae),ne=e=>se(e,ue),re=e=>se(e,le),oe=e=>se(e,fe,!0),ie=(e,t,n)=>{const r=S.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},se=(e,t,n=!1)=>{const r=T.exec(e);return!!r&&(r[1]?t(r[1]):n)},ae=e=>"position"===e||"percentage"===e,le=e=>"image"===e||"url"===e,ue=e=>"length"===e||"size"===e||"bg-size"===e,ce=e=>"length"===e,de=e=>"number"===e,pe=e=>"family-name"===e,fe=e=>"shadow"===e,he=()=>{const e=A("color"),t=A("font"),n=A("text"),r=A("font-weight"),o=A("tracking"),i=A("leading"),s=A("breakpoint"),a=A("container"),l=A("spacing"),u=A("radius"),c=A("shadow"),d=A("inset-shadow"),p=A("text-shadow"),f=A("drop-shadow"),h=A("blur"),m=A("perspective"),g=A("aspect"),b=A("ease"),v=A("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Q,Z],x=()=>[Q,Z,l],I=()=>[L,"full","auto",...x()],C=()=>[M,"none","subgrid",Q,Z],w=()=>["auto",{span:["full",M,Q,Z]},M,Q,Z],E=()=>[M,"auto",Q,Z],S=()=>["auto","min","max","fr",Q,Z],T=()=>["auto",...x()],O=()=>[L,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],N=()=>[e,Q,Z],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",te,J,{position:[Q,Z]}],j=()=>["auto","cover","contain",ne,z,{size:[Q,Z]}],R=()=>[G,q,Y],k=()=>["","none","full",u,Q,Z],F=()=>["",B,q,Y],_=()=>[B,G,te,J],H=()=>["","none",h,Q,Z],W=()=>["none",B,Q,Z],ie=()=>["none",B,Q,Z],se=()=>[B,Q,Z],ae=()=>[L,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[V],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[X],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[D],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[D],shadow:[D],spacing:["px",B],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",L,Z,Q,g]}],container:["container"],columns:[{columns:[B,Z,Q,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:y()}],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:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[M,"auto",Q,Z]}],basis:[{basis:[L,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,L,"auto","initial","none",Z]}],grow:[{grow:["",B,Q,Z]}],shrink:[{shrink:["",B,Q,Z]}],order:[{order:[M,"first","last","none",Q,Z]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],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:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[a,"screen",...O()]}],"min-w":[{"min-w":[a,"screen","none",...O()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,q,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Q,U]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",G,Z]}],"font-family":[{font:[ee,Z,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,Q,Z]}],"line-clamp":[{"line-clamp":[B,"none",Q,U]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",Q,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",Q,Y]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[B,"auto",Q,Z]}],"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",Q,Z]}],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",Q,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},M,Q,Z],radial:["",Q,Z],conic:[M,Q,Z]},re,$]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"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:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[B,Q,Z]}],"outline-w":[{outline:["",B,q,Y]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,oe,K]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,oe,K]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[B,Y]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",p,oe,K]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[B,Q,Z]}],"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":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,Z]}],filter:[{filter:["","none",Q,Z]}],blur:[{blur:H()}],brightness:[{brightness:[B,Q,Z]}],contrast:[{contrast:[B,Q,Z]}],"drop-shadow":[{"drop-shadow":["","none",f,oe,K]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",B,Q,Z]}],"hue-rotate":[{"hue-rotate":[B,Q,Z]}],invert:[{invert:["",B,Q,Z]}],saturate:[{saturate:[B,Q,Z]}],sepia:[{sepia:["",B,Q,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,Z]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[B,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[B,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,Q,Z]}],"backdrop-invert":[{"backdrop-invert":["",B,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[B,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[B,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",B,Q,Z]}],"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",Q,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",Q,Z]}],ease:[{ease:["linear","initial",b,Q,Z]}],delay:[{delay:[B,Q,Z]}],animate:[{animate:["none",v,Q,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Q,Z]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[Q,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",Q,Z]}],"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",Q,Z]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[B,q,Y,U]}],stroke:[{stroke:["none",...N()]}],"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"]}},me=(e,t,n)=>{void 0!==n&&(e[t]=n)},ge=(e,t)=>{if(t)for(const n in t)me(e,n,t[n])},be=(e,t)=>{if(t)for(const n in t)ve(e,t,n)},ve=(e,t,n)=>{const r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)},ye=((e,...t)=>"function"==typeof e?E(he,e,...t):E(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(me(e,"cacheSize",t),me(e,"prefix",n),me(e,"experimentalParseClassName",r),ge(e.theme,i.theme),ge(e.classGroups,i.classGroups),ge(e.conflictingClassGroups,i.conflictingClassGroups),ge(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),me(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),be(e.theme,o.theme),be(e.classGroups,o.classGroups),be(e.conflictingClassGroups,o.conflictingClassGroups),be(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ve(e,o,"orderSensitiveModifiers"),e))(he(),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"]}}}),xe=(...e)=>ye(l(...e));
|
|
3
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("next/link"),r=require("next/image"),o=require("react-dom");function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var s=i(t);function a(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=a(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function l(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=a(e))&&(r&&(r+=" "),r+=t);return r}const u=e=>{const t=f(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),c(n,t)||p(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},c=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?c(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},d=/^\[(.+)\]$/,p=e=>{if(d.test(e)){const t=d.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},f=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)h(n[e],r,e,t);return r},h=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:m(t,e)).classGroupId=n)}if("function"==typeof e)return g(e)?void h(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{h(o,m(t,e),n,r)})})},m=(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},g=e=>e.isThemeGetter,b=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)}}},v=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=y(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},y=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,x=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}},I=/\s+/;function C(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=w(e))&&(r&&(r+=" "),r+=t);return r}const w=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=w(e[r]))&&(n&&(n+=" "),n+=t);return n};function E(e,...t){let n,r,o,i=function(a){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:b(e.cacheSize),parseClassName:v(e),sortModifiers:x(e),...u(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(I);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!f,m=r(h?p.substring(0,f):p);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(p),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=i(c).join(":"),b=d?g+"!":g,v=b+m;if(s.includes(v))continue;s.push(v);const y=o(m,h);for(let e=0;e<y.length;++e){const t=y[e];s.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(C.apply(null,arguments))}}const A=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},S=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,T=/^\((?:(\w[\w-]*):)?(.+)\)$/i,O=/^\d+\/\d+$/,N=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,j=/\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$/,P=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,k=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>O.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),M=e=>!!e&&Number.isInteger(Number(e)),D=e=>e.endsWith("%")&&B(e.slice(0,-1)),G=e=>N.test(e),V=()=>!0,F=e=>j.test(e)&&!P.test(e),_=()=>!1,H=e=>k.test(e),W=e=>R.test(e),X=e=>!Z(e)&&!Q(e),z=e=>ie(e,ue,_),Z=e=>S.test(e),Y=e=>ie(e,ce,F),U=e=>ie(e,de,B),J=e=>ie(e,ae,_),$=e=>ie(e,le,W),K=e=>ie(e,fe,H),Q=e=>T.test(e),q=e=>se(e,ce),ee=e=>se(e,pe),te=e=>se(e,ae),ne=e=>se(e,ue),re=e=>se(e,le),oe=e=>se(e,fe,!0),ie=(e,t,n)=>{const r=S.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},se=(e,t,n=!1)=>{const r=T.exec(e);return!!r&&(r[1]?t(r[1]):n)},ae=e=>"position"===e||"percentage"===e,le=e=>"image"===e||"url"===e,ue=e=>"length"===e||"size"===e||"bg-size"===e,ce=e=>"length"===e,de=e=>"number"===e,pe=e=>"family-name"===e,fe=e=>"shadow"===e,he=()=>{const e=A("color"),t=A("font"),n=A("text"),r=A("font-weight"),o=A("tracking"),i=A("leading"),s=A("breakpoint"),a=A("container"),l=A("spacing"),u=A("radius"),c=A("shadow"),d=A("inset-shadow"),p=A("text-shadow"),f=A("drop-shadow"),h=A("blur"),m=A("perspective"),g=A("aspect"),b=A("ease"),v=A("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Q,Z],x=()=>[Q,Z,l],I=()=>[L,"full","auto",...x()],C=()=>[M,"none","subgrid",Q,Z],w=()=>["auto",{span:["full",M,Q,Z]},M,Q,Z],E=()=>[M,"auto",Q,Z],S=()=>["auto","min","max","fr",Q,Z],T=()=>["auto",...x()],O=()=>[L,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],N=()=>[e,Q,Z],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",te,J,{position:[Q,Z]}],P=()=>["auto","cover","contain",ne,z,{size:[Q,Z]}],k=()=>[D,q,Y],R=()=>["","none","full",u,Q,Z],F=()=>["",B,q,Y],_=()=>[B,D,te,J],H=()=>["","none",h,Q,Z],W=()=>["none",B,Q,Z],ie=()=>["none",B,Q,Z],se=()=>[B,Q,Z],ae=()=>[L,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[G],breakpoint:[G],color:[V],container:[G],"drop-shadow":[G],ease:["in","out","in-out"],font:[X],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[G],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[G],shadow:[G],spacing:["px",B],text:[G],"text-shadow":[G],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",L,Z,Q,g]}],container:["container"],columns:[{columns:[B,Z,Q,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:y()}],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:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[M,"auto",Q,Z]}],basis:[{basis:[L,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,L,"auto","initial","none",Z]}],grow:[{grow:["",B,Q,Z]}],shrink:[{shrink:["",B,Q,Z]}],order:[{order:[M,"first","last","none",Q,Z]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],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:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[a,"screen",...O()]}],"min-w":[{"min-w":[a,"screen","none",...O()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,q,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Q,U]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",D,Z]}],"font-family":[{font:[ee,Z,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,Q,Z]}],"line-clamp":[{"line-clamp":[B,"none",Q,U]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",Q,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",Q,Y]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[B,"auto",Q,Z]}],"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",Q,Z]}],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",Q,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},M,Q,Z],radial:["",Q,Z],conic:[M,Q,Z]},re,$]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"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:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[B,Q,Z]}],"outline-w":[{outline:["",B,q,Y]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,oe,K]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,oe,K]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[B,Y]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",p,oe,K]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[B,Q,Z]}],"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":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,Z]}],filter:[{filter:["","none",Q,Z]}],blur:[{blur:H()}],brightness:[{brightness:[B,Q,Z]}],contrast:[{contrast:[B,Q,Z]}],"drop-shadow":[{"drop-shadow":["","none",f,oe,K]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",B,Q,Z]}],"hue-rotate":[{"hue-rotate":[B,Q,Z]}],invert:[{invert:["",B,Q,Z]}],saturate:[{saturate:[B,Q,Z]}],sepia:[{sepia:["",B,Q,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,Z]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[B,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[B,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,Q,Z]}],"backdrop-invert":[{"backdrop-invert":["",B,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[B,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[B,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",B,Q,Z]}],"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",Q,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",Q,Z]}],ease:[{ease:["linear","initial",b,Q,Z]}],delay:[{delay:[B,Q,Z]}],animate:[{animate:["none",v,Q,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Q,Z]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[Q,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",Q,Z]}],"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",Q,Z]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[B,q,Y,U]}],stroke:[{stroke:["none",...N()]}],"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"]}},me=(e,t,n)=>{void 0!==n&&(e[t]=n)},ge=(e,t)=>{if(t)for(const n in t)me(e,n,t[n])},be=(e,t)=>{if(t)for(const n in t)ve(e,t,n)},ve=(e,t,n)=>{const r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)},ye=((e,...t)=>"function"==typeof e?E(he,e,...t):E(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(me(e,"cacheSize",t),me(e,"prefix",n),me(e,"experimentalParseClassName",r),ge(e.theme,i.theme),ge(e.classGroups,i.classGroups),ge(e.conflictingClassGroups,i.conflictingClassGroups),ge(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),me(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),be(e.theme,o.theme),be(e.classGroups,o.classGroups),be(e.conflictingClassGroups,o.conflictingClassGroups),be(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ve(e,o,"orderSensitiveModifiers"),e))(he(),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"]}}}),xe=(...e)=>ye(l(...e));
|
|
4
4
|
/*! js-cookie v3.0.5 | MIT */
|
|
5
|
-
function Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function Ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function we(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}!function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=Ie({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in o)o[s]&&(i+="; "+s,!0!==o[s]&&(i+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),s=i.slice(1).join("=");try{var a=decodeURIComponent(i[0]);if(r[a]=t.read(s,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",Ie({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Ie({},this.attributes,t))},withConverter:function(t){return e(Ie({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});var Ee,Ae={},Se={},Te={};function Oe(){return Ee||(Ee=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({})}(Te)),Te}var Ne,Pe={};function je(){return Ne||(Ne=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return t}});var t=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({})}(Pe)),Pe}var Re,ke={};function Le(){return Re||(Re=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({})}(ke)),ke}var Be,Me={};function Ge(){return Be||(Be=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get CONTAINERS(){return p},get HEADINGS(){return f},get LIST_ITEM_BLOCKS(){return u},get TABLE_BLOCKS(){return c},get TEXT_CONTAINERS(){return h},get TOP_LEVEL_BLOCKS(){return l},get V1_MARKS(){return g},get V1_NODE_TYPES(){return m},get VOID_BLOCKS(){return d}});var t=Oe(),n=je(),r=Le();function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,a,l=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE,t.BLOCKS.TABLE],u=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],c=[t.BLOCKS.TABLE,t.BLOCKS.TABLE_ROW,t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],d=[t.BLOCKS.HR,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],p=(i(s={},t.BLOCKS.OL_LIST,[t.BLOCKS.LIST_ITEM]),i(s,t.BLOCKS.UL_LIST,[t.BLOCKS.LIST_ITEM]),i(s,t.BLOCKS.LIST_ITEM,u),i(s,t.BLOCKS.QUOTE,[t.BLOCKS.PARAGRAPH]),i(s,t.BLOCKS.TABLE,[t.BLOCKS.TABLE_ROW]),i(s,t.BLOCKS.TABLE_ROW,[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL]),i(s,t.BLOCKS.TABLE_CELL,[t.BLOCKS.PARAGRAPH,t.BLOCKS.UL_LIST,t.BLOCKS.OL_LIST]),i(s,t.BLOCKS.TABLE_HEADER_CELL,[t.BLOCKS.PARAGRAPH]),s),f=[t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6],h=[t.BLOCKS.PARAGRAPH].concat(function(e){if(Array.isArray(e))return o(e)}(a=f)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=[t.BLOCKS.DOCUMENT,t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.LIST_ITEM,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,n.INLINES.HYPERLINK,n.INLINES.ENTRY_HYPERLINK,n.INLINES.ASSET_HYPERLINK,n.INLINES.EMBEDDED_ENTRY,"text"],g=[r.MARKS.BOLD,r.MARKS.CODE,r.MARKS.ITALIC,r.MARKS.UNDERLINE]}(Me)),Me}var De,Ve={};var Fe,_e={};var He,We={};var Xe,ze={};function Ze(){return Xe||(Xe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get isBlock(){return a},get isEmptyParagraph(){return u},get isInline(){return s},get isText(){return l},get stripEmptyTrailingParagraphFromDocument(){return p}});var t=Oe(),n=je();function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function i(e,t){var n=!0,r=!1,o=void 0;try{for(var i,s=Object.keys(e)[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){if(t===e[i.value])return!0}}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return!1}function s(e){return i(n.INLINES,e.nodeType)}function a(e){return i(t.BLOCKS,e.nodeType)}function l(e){return"text"===e.nodeType}function u(e){if(e.nodeType!==t.BLOCKS.PARAGRAPH)return!1;if(1!==e.content.length)return!1;var n=e.content[0];return"text"===n.nodeType&&""===n.value}function c(e){return null!=e&&"object"==(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)&&"content"in e&&Array.isArray(e.content);var t}var d=2;function p(e){return!c(e)||e.content.length<d?e:u(e.content[e.content.length-1])?o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}({},e),{content:e.content.slice(0,-1)}):e}}(ze)),ze}var Ye,Ue,Je={},$e={};function Ke(){return Ue?Ye:(Ue=1,Ye=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype})}var Qe,qe,et={};function tt(){return Qe||(Qe=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get enumError(){return s},get maxSizeError(){return i},get minSizeError(){return o},get requiredPropertyError(){return l},get typeMismatchError(){return r},get unknownPropertyError(){return a}});var r=function(e){var t=e.path,n=e.property,r=e.typeName,o=e.value;return{details:'The type of "'.concat(n,'" is incorrect, expected type: ').concat(r),name:"type",path:t.toArray(),type:r,value:o}},o=function(e){var t=e.min,n=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:n}},i=function(e){var t=e.max,n=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:n}},s=function(e){var t=e.expected,r=e.value,o=e.path;return{details:"Value must be one of expected values",name:"in",expected:n(t).sort(),path:o.toArray(),value:r}},a=function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:n.toArray()}},l=function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:n.toArray()}}}(et)),et}function nt(){return qe||(qe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return l}});var t=s(Ke()),n=tt();function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=function(){function e(r,o){var s=this,l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"obj",void 0),i(this,"path",void 0),i(this,"_errors",void 0),i(this,"catch",void 0),i(this,"exists",void 0),i(this,"object",void 0),i(this,"string",void 0),i(this,"number",void 0),i(this,"array",void 0),i(this,"enum",void 0),i(this,"empty",void 0),i(this,"minLength",void 0),i(this,"noAdditionalProperties",void 0),i(this,"each",void 0),this.obj=r,this.path=o,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=l._errors).push.apply(r,a(t))},this.exists=function(e){return e in s.obj||(s.catch((0,n.requiredPropertyError)({property:e,path:s.path.of(e)})),!1)},this.object=function(e){var r=e?s.obj[e]:s.obj;if(e&&!s.exists(e))return!1;if((0,t.default)(r))return!0;var o,i=e?s.path.of(e):s.path,a=null!==(o=null!=e?e:s.path.last())&&void 0!==o?o:"value";return s.catch((0,n.typeMismatchError)({typeName:"Object",property:a,path:i,value:r})),!1},this.string=function(e){var t=s.obj[e];return!(e&&!s.exists(e))&&("string"==typeof t||(s.catch((0,n.typeMismatchError)({typeName:"String",property:e,path:s.path.of(e),value:t})),!1))},this.number=function(e,t){var r=s.obj[e];return!(!t||e in s.obj)||!!s.exists(e)&&("number"==typeof r&&!Number.isNaN(r)||(s.catch((0,n.typeMismatchError)({typeName:"Number",property:e,path:s.path.of(e),value:r})),!1))},this.array=function(e){var t=s.obj[e];return!(e&&!s.exists(e))&&(!!Array.isArray(t)||(s.catch((0,n.typeMismatchError)({typeName:"Array",property:e,path:s.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=s.obj[e];return!("string"!=typeof r||!t.includes(r))||(s.catch((0,n.enumError)({expected:t,value:r,path:s.path.of(e)})),!1)},this.empty=function(e){if(!s.array(e))return!1;var t=s.obj[e];return 0===t.length||(s.catch((0,n.maxSizeError)({max:0,value:t,path:s.path.of(e)})),!1)},this.minLength=function(e,t){if(!s.array(e))return!1;var r=s.obj[e];return r.length>=t||(s.catch((0,n.minSizeError)({min:t,value:r,path:s.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(s.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return s.catch((0,n.unknownPropertyError)({property:e,path:s.path.of(e)}))}),0===t.length},this.each=function(e,t){if(s.array(e)){var n=s.obj[e],r=!1;n.forEach(function(n,o){if(!r){var i=t(n,s.path.of(e).of(o));i.length>0&&(r=!0),s.catch.apply(s,a(i))}})}}}return o(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(n,r){return e._errors.findIndex(function(e){return t(n)===t(e)})===r})}}]),e}()}($e)),$e}var rt,ot={};function it(){return rt||(rt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get EntityLinkAssertion(){return m},get HyperLinkAssertion(){return g},get NodeAssertion(){return h},get VOID_CONTENT(){return f},get assert(){return b},get assertLink(){return v}});var t=nt();function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t=l(t),function(e,t){if(t&&("object"==(n=t,n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;var n;return r(e)}(e,p()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function d(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var f=[],h=function(){function e(t,n){i(this,e),a(this,"contentRule",void 0),a(this,"validateData",void 0),this.contentRule=t,this.validateData=n}return s(e,[{key:"assert",value:function(e,n){var r=new t.ObjectAssertion(e,n);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);var o=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,n),i=o.nodeTypes,s=o.min,a=void 0===s?0:s;if(0===i.length&&a>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(a," with no nodeTypes"));if(r.minLength("content",a),0===i.length?r.empty("content"):r.each("content",function(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.enum("nodeType",i),r.errors):r.errors}),r.object("data")){var l,u,c,p=null!==(c=null===(u=this.validateData)||void 0===u?void 0:u.call(this,e.data,n.of("data")))&&void 0!==c?c:[];(l=r).catch.apply(l,d(p))}return r.errors}}]),e}(),m=function(e){function n(e,s){var l;return i(this,n),l=o(this,n,[s,function(e,t){return r(l).assertLink(e,t)}]),a(l,"linkType",void 0),a(l,"type",void 0),a(l,"assertLink",void 0),l.linkType=e,l.assertLink=function(e,n){var r=new t.ObjectAssertion(e,n);if(r.object("target")){var o,i=new t.ObjectAssertion(e.target.sys,n.of("target").of("sys"));i.object()&&(i.enum("type",[l.type]),i.enum("linkType",[l.linkType]),"Link"===l.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===l.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=r).catch.apply(o,d(i.errors))}return r.noAdditionalProperties(["target"]),r.errors},l.type=l.linkType.startsWith("Contentful:")?"ResourceLink":"Link",l}return u(n,e),n}(h),g=function(e){function n(){var e;return i(this,n),e=o(this,n,[["text"],function(t,n){return r(e).assertLink(t,n)}]),a(e,"assertLink",function(e,n){var r=new t.ObjectAssertion(e,n);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}),e}return u(n,e),n}(h),b=function(e,t){return new h(e,t)},v=function(e,t){return new m(e,t)}}(ot)),ot}var st,at={};function lt(){return st||(st=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return o}});var o=function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n(this,"path",void 0),n(this,"of",void 0),n(this,"isRoot",void 0),n(this,"last",void 0),n(this,"toArray",void 0),this.path=o,this.of=function(n){return new e(r(t.path).concat([n]))},this.isRoot=function(){return 0===t.path.length},this.last=function(){return t.path[t.path.length-1]},this.toArray=function(){return t.path}}}(at)),at}var ut,ct,dt,pt,ft={};function ht(){return ct||(ct=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return v}});var t=Oe(),n=je(),r=Ge(),o=nt(),i=it(),s=lt(),a=(ut||(ut=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return n}});var t=nt();function n(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.noAdditionalProperties(["nodeType","data","value","marks"]),r.object("data"),r.each("marks",function(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.string("type"),r.errors):r.errors}),r.string("value"),r.errors):r.errors}}(ft)),ft);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d,p=(0,i.assert)(c(Object.values(n.INLINES)).concat(["text"]).sort()),f=(0,i.assert)([t.BLOCKS.LIST_ITEM]),h=(0,i.assertLink)("Entry",i.VOID_CONTENT),m=(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function(e,t){var n=new o.ObjectAssertion(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors}),g=(u(d={},t.BLOCKS.DOCUMENT,(0,i.assert)(r.TOP_LEVEL_BLOCKS)),u(d,t.BLOCKS.PARAGRAPH,p),u(d,t.BLOCKS.HEADING_1,p),u(d,t.BLOCKS.HEADING_2,p),u(d,t.BLOCKS.HEADING_3,p),u(d,t.BLOCKS.HEADING_4,p),u(d,t.BLOCKS.HEADING_5,p),u(d,t.BLOCKS.HEADING_6,p),u(d,t.BLOCKS.QUOTE,(0,i.assert)(r.CONTAINERS[t.BLOCKS.QUOTE])),u(d,t.BLOCKS.EMBEDDED_ENTRY,h),u(d,t.BLOCKS.EMBEDDED_ASSET,(0,i.assertLink)("Asset",i.VOID_CONTENT)),u(d,t.BLOCKS.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),u(d,t.BLOCKS.HR,(0,i.assert)(i.VOID_CONTENT)),u(d,t.BLOCKS.OL_LIST,f),u(d,t.BLOCKS.UL_LIST,f),u(d,t.BLOCKS.LIST_ITEM,(0,i.assert)(c(r.LIST_ITEM_BLOCKS).sort())),u(d,t.BLOCKS.TABLE,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}})),u(d,t.BLOCKS.TABLE_ROW,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}})),u(d,t.BLOCKS.TABLE_CELL,m),u(d,t.BLOCKS.TABLE_HEADER_CELL,m),u(d,n.INLINES.HYPERLINK,new i.HyperLinkAssertion),u(d,n.INLINES.EMBEDDED_ENTRY,h),u(d,n.INLINES.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),u(d,n.INLINES.ENTRY_HYPERLINK,(0,i.assertLink)("Entry",["text"])),u(d,n.INLINES.ASSET_HYPERLINK,(0,i.assertLink)("Asset",["text"])),u(d,n.INLINES.RESOURCE_HYPERLINK,(0,i.assertLink)("Contentful:Entry",["text"])),d);function b(e,t){if("text"===e.nodeType)return(0,a.assertText)(e,t);var n=g[e.nodeType].assert(e,t);if(n.length>0)return n;var r=new o.ObjectAssertion(e,t);return r.each("content",function(e,t){return b(e,t)}),r.errors}var v=function(e){var n=new s.Path,r=new o.ObjectAssertion(e,n);return r.object()&&r.enum("nodeType",[t.BLOCKS.DOCUMENT]),r.errors.length>0?r.errors:b(e,n)}}(Je)),Je}function mt(){return dt||(dt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get BLOCKS(){return t.BLOCKS},get EMPTY_DOCUMENT(){return o.EMPTY_DOCUMENT},get INLINES(){return n.INLINES},get MARKS(){return r.MARKS},get helpers(){return i},get validateRichTextDocument(){return s.validateRichTextDocument}});var t=Oe(),n=je(),r=Le();a(Ge(),e),a((De||(De=1,Object.defineProperty(Ve,"__esModule",{value:!0})),Ve),e),a((Fe||(Fe=1,Object.defineProperty(_e,"__esModule",{value:!0})),_e),e);var o=(He||(He=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return n}});var t=Oe(),n={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}}(We)),We),i=u(Ze()),s=ht();function a(e,t){return Object.keys(e).forEach(function(n){"default"===n||Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),e}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}}(Se)),Se}!function(){if(pt)return Ae;pt=1;var e=t,n=mt();function r(t,n){return t.map((t,r)=>{return i=o(t,n),s=r,e.isValidElement(i)&&null===i.key?e.cloneElement(i,{key:s}):i;var i,s})}function o(t,o){const{renderNode:i,renderMark:s,renderText:a,preserveWhitespace:l}=o;if(n.helpers.isText(t)){let n=a?a(t.value):t.value;if(l&&!a){n=n.replace(/ {2,}/g,e=>" ".repeat(e.length));const t=n.split("\n"),r=[];t.forEach((n,o)=>{r.push(n),o!==t.length-1&&r.push(e.createElement("br",null))}),n=r}return t.marks.reduce((e,t)=>s[t.type]?s[t.type](e):e,n)}{const n=r(t.content,o);return t.nodeType&&i[t.nodeType]?i[t.nodeType](t,n):e.createElement(e.Fragment,null,n)}}const i={[n.BLOCKS.DOCUMENT]:(e,t)=>t,[n.BLOCKS.PARAGRAPH]:(t,n)=>e.createElement("p",null,n),[n.BLOCKS.HEADING_1]:(t,n)=>e.createElement("h1",null,n),[n.BLOCKS.HEADING_2]:(t,n)=>e.createElement("h2",null,n),[n.BLOCKS.HEADING_3]:(t,n)=>e.createElement("h3",null,n),[n.BLOCKS.HEADING_4]:(t,n)=>e.createElement("h4",null,n),[n.BLOCKS.HEADING_5]:(t,n)=>e.createElement("h5",null,n),[n.BLOCKS.HEADING_6]:(t,n)=>e.createElement("h6",null,n),[n.BLOCKS.EMBEDDED_ENTRY]:(t,n)=>e.createElement("div",null,n),[n.BLOCKS.EMBEDDED_RESOURCE]:(t,n)=>e.createElement("div",null,n),[n.BLOCKS.UL_LIST]:(t,n)=>e.createElement("ul",null,n),[n.BLOCKS.OL_LIST]:(t,n)=>e.createElement("ol",null,n),[n.BLOCKS.LIST_ITEM]:(t,n)=>e.createElement("li",null,n),[n.BLOCKS.QUOTE]:(t,n)=>e.createElement("blockquote",null,n),[n.BLOCKS.HR]:()=>e.createElement("hr",null),[n.BLOCKS.TABLE]:(t,n)=>e.createElement("table",null,e.createElement("tbody",null,n)),[n.BLOCKS.TABLE_ROW]:(t,n)=>e.createElement("tr",null,n),[n.BLOCKS.TABLE_HEADER_CELL]:(t,n)=>e.createElement("th",null,n),[n.BLOCKS.TABLE_CELL]:(t,n)=>e.createElement("td",null,n),[n.INLINES.ASSET_HYPERLINK]:e=>a(n.INLINES.ASSET_HYPERLINK,e),[n.INLINES.ENTRY_HYPERLINK]:e=>a(n.INLINES.ENTRY_HYPERLINK,e),[n.INLINES.RESOURCE_HYPERLINK]:e=>l(n.INLINES.RESOURCE_HYPERLINK,e),[n.INLINES.EMBEDDED_ENTRY]:e=>a(n.INLINES.EMBEDDED_ENTRY,e),[n.INLINES.EMBEDDED_RESOURCE]:(e,t)=>l(n.INLINES.EMBEDDED_RESOURCE,e),[n.INLINES.HYPERLINK]:(t,n)=>e.createElement("a",{href:t.data.uri},n)},s={[n.MARKS.BOLD]:t=>e.createElement("b",null,t),[n.MARKS.ITALIC]:t=>e.createElement("i",null,t),[n.MARKS.UNDERLINE]:t=>e.createElement("u",null,t),[n.MARKS.CODE]:t=>e.createElement("code",null,t),[n.MARKS.SUPERSCRIPT]:t=>e.createElement("sup",null,t),[n.MARKS.SUBSCRIPT]:t=>e.createElement("sub",null,t),[n.MARKS.STRIKETHROUGH]:t=>e.createElement("s",null,t)};function a(t,n){return e.createElement("span",{key:n.data.target.sys.id},"type: ",n.nodeType," id: ",n.data.target.sys.id)}function l(t,n){return e.createElement("span",{key:n.data.target.sys.urn},"type: ",n.nodeType," urn: ",n.data.target.sys.urn)}Ae.documentToReactComponents=function(e,t={}){if(!e)return null;let r=e;return t.stripEmptyTrailingParagraph&&(r=n.helpers.stripEmptyTrailingParagraphFromDocument(e)),o(r,{renderNode:{...i,...t.renderNode},renderMark:{...s,...t.renderMark},renderText:t.renderText,preserveWhitespace:t.preserveWhitespace})}}();var gt=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({}),bt=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({});function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xt,It=[gt.PARAGRAPH,gt.HEADING_1,gt.HEADING_2,gt.HEADING_3,gt.HEADING_4,gt.HEADING_5,gt.HEADING_6,gt.OL_LIST,gt.UL_LIST,gt.HR,gt.QUOTE,gt.EMBEDDED_ENTRY,gt.EMBEDDED_ASSET,gt.EMBEDDED_RESOURCE,gt.TABLE],Ct=[gt.PARAGRAPH,gt.HEADING_1,gt.HEADING_2,gt.HEADING_3,gt.HEADING_4,gt.HEADING_5,gt.HEADING_6,gt.OL_LIST,gt.UL_LIST,gt.HR,gt.QUOTE,gt.EMBEDDED_ENTRY,gt.EMBEDDED_ASSET,gt.EMBEDDED_RESOURCE];gt.TABLE,gt.TABLE_ROW,gt.TABLE_CELL,gt.TABLE_HEADER_CELL,gt.HR,gt.EMBEDDED_ENTRY,gt.EMBEDDED_ASSET,gt.EMBEDDED_RESOURCE;var wt,Et=(yt(xt={},gt.OL_LIST,[gt.LIST_ITEM]),yt(xt,gt.UL_LIST,[gt.LIST_ITEM]),yt(xt,gt.LIST_ITEM,Ct),yt(xt,gt.QUOTE,[gt.PARAGRAPH]),yt(xt,gt.TABLE,[gt.TABLE_ROW]),yt(xt,gt.TABLE_ROW,[gt.TABLE_CELL,gt.TABLE_HEADER_CELL]),yt(xt,gt.TABLE_CELL,[gt.PARAGRAPH,gt.UL_LIST,gt.OL_LIST]),yt(xt,gt.TABLE_HEADER_CELL,[gt.PARAGRAPH]),xt),At=[gt.HEADING_1,gt.HEADING_2,gt.HEADING_3,gt.HEADING_4,gt.HEADING_5,gt.HEADING_6];[gt.PARAGRAPH].concat(function(e){if(Array.isArray(e))return vt(e)}(wt=At)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(wt)||function(e,t){if(e){if("string"==typeof e)return vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vt(e,t):void 0}}(wt)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),gt.DOCUMENT,gt.PARAGRAPH,gt.HEADING_1,gt.HEADING_2,gt.HEADING_3,gt.HEADING_4,gt.HEADING_5,gt.HEADING_6,gt.OL_LIST,gt.UL_LIST,gt.LIST_ITEM,gt.HR,gt.QUOTE,gt.EMBEDDED_ENTRY,gt.EMBEDDED_ASSET,bt.HYPERLINK,bt.ENTRY_HYPERLINK,bt.ASSET_HYPERLINK,bt.EMBEDDED_ENTRY,gt.DOCUMENT,gt.PARAGRAPH;var St=Ce(Ke());function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ot(e){return function(e){if(Array.isArray(e))return Tt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nt=function(e){var t=e.path,n=e.property,r=e.typeName,o=e.value;return{details:'The type of "'.concat(n,'" is incorrect, expected type: ').concat(r),name:"type",path:t.toArray(),type:r,value:o}};function Pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jt(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kt(e){return function(e){if(Array.isArray(e))return Pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Lt=function(){function e(t,n){var r=this,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Rt(this,"obj",void 0),Rt(this,"path",void 0),Rt(this,"_errors",void 0),Rt(this,"catch",void 0),Rt(this,"exists",void 0),Rt(this,"object",void 0),Rt(this,"string",void 0),Rt(this,"number",void 0),Rt(this,"array",void 0),Rt(this,"enum",void 0),Rt(this,"empty",void 0),Rt(this,"minLength",void 0),Rt(this,"noAdditionalProperties",void 0),Rt(this,"each",void 0),this.obj=t,this.path=n,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=o._errors).push.apply(r,kt(t))},this.exists=function(e){return e in r.obj||(r.catch(function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:n.toArray()}}({property:e,path:r.path.of(e)})),!1)},this.object=function(e){var t=e?r.obj[e]:r.obj;if(e&&!r.exists(e))return!1;if(St(t))return!0;var n,o=e?r.path.of(e):r.path,i=null!==(n=null!=e?e:r.path.last())&&void 0!==n?n:"value";return r.catch(Nt({typeName:"Object",property:i,path:o,value:t})),!1},this.string=function(e){var t=r.obj[e];return!(e&&!r.exists(e))&&("string"==typeof t||(r.catch(Nt({typeName:"String",property:e,path:r.path.of(e),value:t})),!1))},this.number=function(e,t){var n=r.obj[e];return!(!t||e in r.obj)||!!r.exists(e)&&("number"==typeof n&&!Number.isNaN(n)||(r.catch(Nt({typeName:"Number",property:e,path:r.path.of(e),value:n})),!1))},this.array=function(e){var t=r.obj[e];return!(e&&!r.exists(e))&&(!!Array.isArray(t)||(r.catch(Nt({typeName:"Array",property:e,path:r.path.of(e),value:t})),!1))},this.enum=function(e,t){var n=r.obj[e];return!("string"!=typeof n||!t.includes(n))||(r.catch(function(e){var t=e.expected,n=e.value,r=e.path;return{details:"Value must be one of expected values",name:"in",expected:Ot(t).sort(),path:r.toArray(),value:n}}({expected:t,value:n,path:r.path.of(e)})),!1)},this.empty=function(e){if(!r.array(e))return!1;var t=r.obj[e];return 0===t.length||(r.catch(function(e){var t=e.max,n=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:n}}({max:0,value:t,path:r.path.of(e)})),!1)},this.minLength=function(e,t){if(!r.array(e))return!1;var n=r.obj[e];return n.length>=t||(r.catch(function(e){var t=e.min,n=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:n}}({min:t,value:n,path:r.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(r.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return r.catch(function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:n.toArray()}}({property:e,path:r.path.of(e)}))}),0===t.length},this.each=function(e,t){if(r.array(e)){var n=r.obj[e],o=!1;n.forEach(function(n,i){if(!o){var s=t(n,r.path.of(e).of(i));s.length>0&&(o=!0),r.catch.apply(r,kt(s))}})}}}return jt(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(n,r){return e._errors.findIndex(function(e){return t(n)===t(e)})===r})}}]),e}();function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gt(e,t,n){return t=_t(t),function(e,t){if(t&&("object"==(n=t,n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;var n;return Mt(e)}(e,zt()?Reflect.construct(t,n||[],_t(e).constructor):t.apply(e,n))}function Dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vt(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _t(e){return _t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_t(e)}function Ht(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wt(e,t)}function Wt(e,t){return Wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wt(e,t)}function Xt(e){return function(e){if(Array.isArray(e))return Bt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zt=function(){return!!e})()}var Zt=[],Yt=function(){function e(t,n){Dt(this,e),Ft(this,"contentRule",void 0),Ft(this,"validateData",void 0),this.contentRule=t,this.validateData=n}return Vt(e,[{key:"assert",value:function(e,t){var n=new Lt(e,t);if(!n.object())return n.errors;n.noAdditionalProperties(["nodeType","data","content"]);var r=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),o=r.nodeTypes,i=r.min,s=void 0===i?0:i;if(0===o.length&&s>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(s," with no nodeTypes"));if(n.minLength("content",s),0===o.length?n.empty("content"):n.each("content",function(e,t){var n=new Lt(e,t);return n.object()?(n.enum("nodeType",o),n.errors):n.errors}),n.object("data")){var a,l,u,c=null!==(u=null===(l=this.validateData)||void 0===l?void 0:l.call(this,e.data,t.of("data")))&&void 0!==u?u:[];(a=n).catch.apply(a,Xt(c))}return n.errors}}]),e}(),Ut=function(e){function t(e,n){var r;return Dt(this,t),r=Gt(this,t,[n,function(e,t){return Mt(r).assertLink(e,t)}]),Ft(r,"linkType",void 0),Ft(r,"type",void 0),Ft(r,"assertLink",void 0),r.linkType=e,r.assertLink=function(e,t){var n=new Lt(e,t);if(n.object("target")){var o,i=new Lt(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[r.type]),i.enum("linkType",[r.linkType]),"Link"===r.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===r.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=n).catch.apply(o,Xt(i.errors))}return n.noAdditionalProperties(["target"]),n.errors},r.type=r.linkType.startsWith("Contentful:")?"ResourceLink":"Link",r}return Ht(t,e),t}(Yt),Jt=function(e){function t(){var e;return Dt(this,t),e=Gt(this,t,[["text"],function(t,n){return Mt(e).assertLink(t,n)}]),Ft(e,"assertLink",function(e,t){var n=new Lt(e,t);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}),e}return Ht(t,e),t}(Yt),$t=function(e,t){return new Yt(e,t)},Kt=function(e,t){return new Ut(e,t)};function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function en(e){return function(e){if(Array.isArray(e))return Qt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var tn,nn=$t(en(Object.values(bt)).concat(["text"]).sort()),rn=$t([gt.LIST_ITEM]),on=Kt("Entry",Zt),sn=$t(function(){return{nodeTypes:[gt.PARAGRAPH],min:1}},function(e,t){var n=new Lt(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors});qt(tn={},gt.DOCUMENT,$t(It)),qt(tn,gt.PARAGRAPH,nn),qt(tn,gt.HEADING_1,nn),qt(tn,gt.HEADING_2,nn),qt(tn,gt.HEADING_3,nn),qt(tn,gt.HEADING_4,nn),qt(tn,gt.HEADING_5,nn),qt(tn,gt.HEADING_6,nn),qt(tn,gt.QUOTE,$t(Et[gt.QUOTE])),qt(tn,gt.EMBEDDED_ENTRY,on),qt(tn,gt.EMBEDDED_ASSET,Kt("Asset",Zt)),qt(tn,gt.EMBEDDED_RESOURCE,Kt("Contentful:Entry",Zt)),qt(tn,gt.HR,$t(Zt)),qt(tn,gt.OL_LIST,rn),qt(tn,gt.UL_LIST,rn),qt(tn,gt.LIST_ITEM,$t(en(Ct).sort())),qt(tn,gt.TABLE,$t(function(){return{nodeTypes:[gt.TABLE_ROW],min:1}})),qt(tn,gt.TABLE_ROW,$t(function(){return{nodeTypes:[gt.TABLE_CELL,gt.TABLE_HEADER_CELL],min:1}})),qt(tn,gt.TABLE_CELL,sn),qt(tn,gt.TABLE_HEADER_CELL,sn),qt(tn,bt.HYPERLINK,new Jt),qt(tn,bt.EMBEDDED_ENTRY,on),qt(tn,bt.EMBEDDED_RESOURCE,Kt("Contentful:Entry",Zt)),qt(tn,bt.ENTRY_HYPERLINK,Kt("Entry",["text"])),qt(tn,bt.ASSET_HYPERLINK,Kt("Asset",["text"])),qt(tn,bt.RESOURCE_HYPERLINK,Kt("Contentful:Entry",["text"]));const an={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},ln=t.forwardRef(({children:t,className:n="",variant:r="unstyled",style:o,...i},s)=>{const a=xe("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e.jsx("li",{ref:s,className:a,style:o,...i,children:t})});ln.displayName="ListItem";const un=t.forwardRef(({type:t="ul",items:n,className:r="",renderItem:o,children:i,variant:s="unstyled",style:a,...l},u)=>{const c=(()=>{if("unstyled"===s)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d=xe(c,`list--${t}`,`list--${s}`,r),p=i||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e.jsx(ln,{className:t.className,variant:s,children:t.content},t.id||n)):null),f={className:d,style:a,...l,children:p};return"ol"===t?e.jsx("ol",{...f,ref:u,role:"list"}):e.jsx("ul",{...f,ref:u,role:"list"})});un.displayName="List";const cn=({name:t,fill:n=0,opticalSize:r="48dp",weight:o="200",emphasis:i=145,size:s=24,color:a="currentColor",style:l={},className:u,onClick:c,dataTestId:d})=>{const p={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.jsx("span",{style:p,className:xe("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",u),onClick:c,"data-testid":d,"aria-hidden":"true",children:t})};cn.displayName="MaterialIcon";const dn=t.forwardRef(({children:e,as:n,className:r="",style:o,...i},s)=>{const a=n||"p";return t.createElement(a,{ref:s,className:r,style:o,...i},e)});dn.displayName="Text";const pn=n=>{const{items:r,listIconName:o="check",listItemClassName:i,listContainerClassName:s,iconSize:a=20,iconPosition:l="center",iconColor:u="green",iconClassName:c}=n,d="disc"!==o;if(!(null==r?void 0:r.length))return null;const p=t=>{if("string"==typeof t&&t.includes("|")&&(t.match(/\|/g)||[]).length%2==0){const n=t.split("|"),r=(t.match(/\|/g)||[]).length;return n.map((t,n)=>{if(!t)return null;return r>1&&n%2==1?e.jsx(dn,{as:"span",style:{fontWeight:900},children:t},n):e.jsx("span",{children:t},n)})}return t};return e.jsx(un,{className:xe("mt-2 space-y-1",s),variant:d?"unstyled":"default",children:r.map((n,r)=>{const s=function(e){return null!==e&&"object"==typeof e&&!t.isValidElement(e)&&"title"in e}(n),f=s&&!!n.iconUrl,h=s?n.title:n;return e.jsxs(ln,{variant:d?"unstyled":"default",className:xe(`${d?"flex":""} ${"top"===l?"items-start":"items-center"} gap-2 text-text-secondary`,i),children:[d&&f?e.jsx("div",{className:"flex shrink-0 leading-none",children:e.jsx("img",{src:n.iconUrl,alt:n.iconAlt||"",width:a,height:a,className:xe("block object-contain","top"===l?"mt-1":"",c)})}):d?e.jsx("div",{className:"flex leading-none",children:e.jsx(cn,{name:o,size:a,color:an[u],weight:"600",className:xe("block","top"===l?"mt-1":"",c)})}):null,e.jsx(dn,{as:"div",children:p(h)})]},r)})})};var fn;pn.displayName="Checklist";const hn="function"==typeof n?n:null!==(fn=n.default)&&void 0!==fn?fn:n,mn=t.forwardRef(({children:t,href:n,className:r="",onClick:o,variant:i="unstyled",style:s,external:a=!1,disabled:l=!1,...u},c)=>{const d=(()=>{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(" ")})(),p=e=>{l?e.preventDefault():null==o||o(e)},f=xe(d,`link--${i}`,l&&"link--disabled",r),h={...u,ref:c,className:f,style:s,href:l?void 0:n,onClick:p,...a&&!l&&{target:"_blank",rel:"noopener"},...l&&{"aria-disabled":!0,tabIndex:-1}};return l||a||"string"==typeof n&&n.startsWith("http")?e.jsx("a",{...h,children:t}):e.jsx(hn,{href:n||"#",ref:c,className:f,style:s,onClick:p,...u,children:t})});function gn(e,n){t.useEffect(()=>{if(!n)return;const t=()=>{const t=document.fullscreenElement||document.webkitFullscreenElement;n(t===e.current)};return document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),()=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t)}},[n,e])}mn.displayName="Link";const bn=n=>{const{videoAssetUrl:r,videoAssetType:o,image:i,title:s,description:a,containerClassName:l,autoplay:u=!1,onPlay:c,onPause:d,onTimeUpdate:p,onEnded:f,onFullscreenToggle:h}=n,m=t.useRef(null);return gn(m,h),r?e.jsx("div",{className:xe("relative h-0 w-full overflow-hidden pb-[56.25%]",l),children:e.jsxs("video",{ref:m,className:"absolute left-0 top-0 h-full w-full object-cover",controls:!0,playsInline:!0,preload:"metadata",autoPlay:u,poster:i||void 0,"aria-label":s||"Embedded video",onPlay:()=>null==c?void 0:c(),onPause:()=>null==d?void 0:d(),onEnded:()=>null==f?void 0:f(),onTimeUpdate:e=>null==p?void 0:p(e.currentTarget.currentTime,e.currentTarget.duration),children:[e.jsx("source",{src:r,type:o||"video/mp4"}),a||"Your browser does not support embedded videos."]})}):null},vn=({isHovered:t,containerClassName:n})=>e.jsx("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.jsx(cn,{name:"play_arrow",size:72,fill:1,className:"max-w-[72px] transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),yn="undefined"!=typeof global&&"[object global]"==={}.toString.call(global),xn="undefined"!=typeof Bun,In="undefined"!=typeof Deno,Cn="function"==typeof WebSocketPair&&void 0!==caches?.default,wn=yn||xn||In||Cn;function En(e,t){return 0===e.indexOf(t.toLowerCase())?e:`${t.toLowerCase()}${e.substr(0,1).toUpperCase()}${e.substr(1)}`}function An(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function Sn(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function Tn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.id,n=e.url,r=t||n;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(o=r,!isNaN(parseFloat(o))&&isFinite(o)&&Math.floor(o)==o)return`https://vimeo.com/${r}`;var o;if(An(r))return r.replace("http:","https:");if(t)throw new TypeError(`“${t}” is not a valid video id.`);throw new TypeError(`“${r}” is not a vimeo.com url.`)}const On=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener";const i="string"==typeof t?[t]:t;return i.forEach(t=>{e[r](t,n)}),{cancel:()=>i.forEach(t=>e[o](t,n))}};function Nn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(!e||!t||"function"!=typeof t.querySelectorAll)return null;const n=t.querySelectorAll("iframe");for(let t=0;t<n.length;t++)if(n[t]&&n[t].contentWindow===e)return n[t];return null}const Pn=void 0!==Array.prototype.indexOf,jn="undefined"!=typeof window&&void 0!==window.postMessage;if(!(wn||Pn&&jn))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var Rn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
|
|
5
|
+
function Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}!function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=Ie({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in o)o[s]&&(i+="; "+s,!0!==o[s]&&(i+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),s=i.slice(1).join("=");try{var a=decodeURIComponent(i[0]);if(r[a]=t.read(s,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",Ie({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Ie({},this.attributes,t))},withConverter:function(t){return e(Ie({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Ce=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,we=e=>{if(!e)return null;if(Ce(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const t=e.json;return Ce(t)?t:null}return null};function Ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ae(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Se,Te={},Oe={},Ne={};function je(){return Se||(Se=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({})}(Ne)),Ne}var Pe,ke={};function Re(){return Pe||(Pe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return t}});var t=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({})}(ke)),ke}var Le,Be={};function Me(){return Le||(Le=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({})}(Be)),Be}var De,Ge={};function Ve(){return De||(De=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get CONTAINERS(){return p},get HEADINGS(){return f},get LIST_ITEM_BLOCKS(){return u},get TABLE_BLOCKS(){return c},get TEXT_CONTAINERS(){return h},get TOP_LEVEL_BLOCKS(){return l},get V1_MARKS(){return g},get V1_NODE_TYPES(){return m},get VOID_BLOCKS(){return d}});var t=je(),n=Re(),r=Me();function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,a,l=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE,t.BLOCKS.TABLE],u=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],c=[t.BLOCKS.TABLE,t.BLOCKS.TABLE_ROW,t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],d=[t.BLOCKS.HR,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],p=(i(s={},t.BLOCKS.OL_LIST,[t.BLOCKS.LIST_ITEM]),i(s,t.BLOCKS.UL_LIST,[t.BLOCKS.LIST_ITEM]),i(s,t.BLOCKS.LIST_ITEM,u),i(s,t.BLOCKS.QUOTE,[t.BLOCKS.PARAGRAPH]),i(s,t.BLOCKS.TABLE,[t.BLOCKS.TABLE_ROW]),i(s,t.BLOCKS.TABLE_ROW,[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL]),i(s,t.BLOCKS.TABLE_CELL,[t.BLOCKS.PARAGRAPH,t.BLOCKS.UL_LIST,t.BLOCKS.OL_LIST]),i(s,t.BLOCKS.TABLE_HEADER_CELL,[t.BLOCKS.PARAGRAPH]),s),f=[t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6],h=[t.BLOCKS.PARAGRAPH].concat(function(e){if(Array.isArray(e))return o(e)}(a=f)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=[t.BLOCKS.DOCUMENT,t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.LIST_ITEM,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,n.INLINES.HYPERLINK,n.INLINES.ENTRY_HYPERLINK,n.INLINES.ASSET_HYPERLINK,n.INLINES.EMBEDDED_ENTRY,"text"],g=[r.MARKS.BOLD,r.MARKS.CODE,r.MARKS.ITALIC,r.MARKS.UNDERLINE]}(Ge)),Ge}var Fe,_e={};var He,We={};var Xe,ze={};var Ze,Ye={};function Ue(){return Ze||(Ze=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get isBlock(){return a},get isEmptyParagraph(){return u},get isInline(){return s},get isText(){return l},get stripEmptyTrailingParagraphFromDocument(){return p}});var t=je(),n=Re();function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function i(e,t){var n=!0,r=!1,o=void 0;try{for(var i,s=Object.keys(e)[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){if(t===e[i.value])return!0}}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return!1}function s(e){return i(n.INLINES,e.nodeType)}function a(e){return i(t.BLOCKS,e.nodeType)}function l(e){return"text"===e.nodeType}function u(e){if(e.nodeType!==t.BLOCKS.PARAGRAPH)return!1;if(1!==e.content.length)return!1;var n=e.content[0];return"text"===n.nodeType&&""===n.value}function c(e){return null!=e&&"object"==(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)&&"content"in e&&Array.isArray(e.content);var t}var d=2;function p(e){return!c(e)||e.content.length<d?e:u(e.content[e.content.length-1])?o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}({},e),{content:e.content.slice(0,-1)}):e}}(Ye)),Ye}var Je,$e,Ke={},Qe={};function qe(){return $e?Je:($e=1,Je=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype})}var et,tt,nt={};function rt(){return et||(et=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get enumError(){return s},get maxSizeError(){return i},get minSizeError(){return o},get requiredPropertyError(){return l},get typeMismatchError(){return r},get unknownPropertyError(){return a}});var r=function(e){var t=e.path,n=e.property,r=e.typeName,o=e.value;return{details:'The type of "'.concat(n,'" is incorrect, expected type: ').concat(r),name:"type",path:t.toArray(),type:r,value:o}},o=function(e){var t=e.min,n=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:n}},i=function(e){var t=e.max,n=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:n}},s=function(e){var t=e.expected,r=e.value,o=e.path;return{details:"Value must be one of expected values",name:"in",expected:n(t).sort(),path:o.toArray(),value:r}},a=function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:n.toArray()}},l=function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:n.toArray()}}}(nt)),nt}function ot(){return tt||(tt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return l}});var t=s(qe()),n=rt();function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=function(){function e(r,o){var s=this,l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"obj",void 0),i(this,"path",void 0),i(this,"_errors",void 0),i(this,"catch",void 0),i(this,"exists",void 0),i(this,"object",void 0),i(this,"string",void 0),i(this,"number",void 0),i(this,"array",void 0),i(this,"enum",void 0),i(this,"empty",void 0),i(this,"minLength",void 0),i(this,"noAdditionalProperties",void 0),i(this,"each",void 0),this.obj=r,this.path=o,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=l._errors).push.apply(r,a(t))},this.exists=function(e){return e in s.obj||(s.catch((0,n.requiredPropertyError)({property:e,path:s.path.of(e)})),!1)},this.object=function(e){var r=e?s.obj[e]:s.obj;if(e&&!s.exists(e))return!1;if((0,t.default)(r))return!0;var o,i=e?s.path.of(e):s.path,a=null!==(o=null!=e?e:s.path.last())&&void 0!==o?o:"value";return s.catch((0,n.typeMismatchError)({typeName:"Object",property:a,path:i,value:r})),!1},this.string=function(e){var t=s.obj[e];return!(e&&!s.exists(e))&&("string"==typeof t||(s.catch((0,n.typeMismatchError)({typeName:"String",property:e,path:s.path.of(e),value:t})),!1))},this.number=function(e,t){var r=s.obj[e];return!(!t||e in s.obj)||!!s.exists(e)&&("number"==typeof r&&!Number.isNaN(r)||(s.catch((0,n.typeMismatchError)({typeName:"Number",property:e,path:s.path.of(e),value:r})),!1))},this.array=function(e){var t=s.obj[e];return!(e&&!s.exists(e))&&(!!Array.isArray(t)||(s.catch((0,n.typeMismatchError)({typeName:"Array",property:e,path:s.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=s.obj[e];return!("string"!=typeof r||!t.includes(r))||(s.catch((0,n.enumError)({expected:t,value:r,path:s.path.of(e)})),!1)},this.empty=function(e){if(!s.array(e))return!1;var t=s.obj[e];return 0===t.length||(s.catch((0,n.maxSizeError)({max:0,value:t,path:s.path.of(e)})),!1)},this.minLength=function(e,t){if(!s.array(e))return!1;var r=s.obj[e];return r.length>=t||(s.catch((0,n.minSizeError)({min:t,value:r,path:s.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(s.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return s.catch((0,n.unknownPropertyError)({property:e,path:s.path.of(e)}))}),0===t.length},this.each=function(e,t){if(s.array(e)){var n=s.obj[e],r=!1;n.forEach(function(n,o){if(!r){var i=t(n,s.path.of(e).of(o));i.length>0&&(r=!0),s.catch.apply(s,a(i))}})}}}return o(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(n,r){return e._errors.findIndex(function(e){return t(n)===t(e)})===r})}}]),e}()}(Qe)),Qe}var it,st={};function at(){return it||(it=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get EntityLinkAssertion(){return m},get HyperLinkAssertion(){return g},get NodeAssertion(){return h},get VOID_CONTENT(){return f},get assert(){return b},get assertLink(){return v}});var t=ot();function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t=l(t),function(e,t){if(t&&("object"==(n=t,n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;var n;return r(e)}(e,p()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function d(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var f=[],h=function(){function e(t,n){i(this,e),a(this,"contentRule",void 0),a(this,"validateData",void 0),this.contentRule=t,this.validateData=n}return s(e,[{key:"assert",value:function(e,n){var r=new t.ObjectAssertion(e,n);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);var o=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,n),i=o.nodeTypes,s=o.min,a=void 0===s?0:s;if(0===i.length&&a>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(a," with no nodeTypes"));if(r.minLength("content",a),0===i.length?r.empty("content"):r.each("content",function(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.enum("nodeType",i),r.errors):r.errors}),r.object("data")){var l,u,c,p=null!==(c=null===(u=this.validateData)||void 0===u?void 0:u.call(this,e.data,n.of("data")))&&void 0!==c?c:[];(l=r).catch.apply(l,d(p))}return r.errors}}]),e}(),m=function(e){function n(e,s){var l;return i(this,n),l=o(this,n,[s,function(e,t){return r(l).assertLink(e,t)}]),a(l,"linkType",void 0),a(l,"type",void 0),a(l,"assertLink",void 0),l.linkType=e,l.assertLink=function(e,n){var r=new t.ObjectAssertion(e,n);if(r.object("target")){var o,i=new t.ObjectAssertion(e.target.sys,n.of("target").of("sys"));i.object()&&(i.enum("type",[l.type]),i.enum("linkType",[l.linkType]),"Link"===l.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===l.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=r).catch.apply(o,d(i.errors))}return r.noAdditionalProperties(["target"]),r.errors},l.type=l.linkType.startsWith("Contentful:")?"ResourceLink":"Link",l}return u(n,e),n}(h),g=function(e){function n(){var e;return i(this,n),e=o(this,n,[["text"],function(t,n){return r(e).assertLink(t,n)}]),a(e,"assertLink",function(e,n){var r=new t.ObjectAssertion(e,n);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}),e}return u(n,e),n}(h),b=function(e,t){return new h(e,t)},v=function(e,t){return new m(e,t)}}(st)),st}var lt,ut={};function ct(){return lt||(lt=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return o}});var o=function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n(this,"path",void 0),n(this,"of",void 0),n(this,"isRoot",void 0),n(this,"last",void 0),n(this,"toArray",void 0),this.path=o,this.of=function(n){return new e(r(t.path).concat([n]))},this.isRoot=function(){return 0===t.path.length},this.last=function(){return t.path[t.path.length-1]},this.toArray=function(){return t.path}}}(ut)),ut}var dt,pt,ft,ht,mt={};function gt(){return pt||(pt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return v}});var t=je(),n=Re(),r=Ve(),o=ot(),i=at(),s=ct(),a=(dt||(dt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return n}});var t=ot();function n(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.noAdditionalProperties(["nodeType","data","value","marks"]),r.object("data"),r.each("marks",function(e,n){var r=new t.ObjectAssertion(e,n);return r.object()?(r.string("type"),r.errors):r.errors}),r.string("value"),r.errors):r.errors}}(mt)),mt);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d,p=(0,i.assert)(c(Object.values(n.INLINES)).concat(["text"]).sort()),f=(0,i.assert)([t.BLOCKS.LIST_ITEM]),h=(0,i.assertLink)("Entry",i.VOID_CONTENT),m=(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function(e,t){var n=new o.ObjectAssertion(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors}),g=(u(d={},t.BLOCKS.DOCUMENT,(0,i.assert)(r.TOP_LEVEL_BLOCKS)),u(d,t.BLOCKS.PARAGRAPH,p),u(d,t.BLOCKS.HEADING_1,p),u(d,t.BLOCKS.HEADING_2,p),u(d,t.BLOCKS.HEADING_3,p),u(d,t.BLOCKS.HEADING_4,p),u(d,t.BLOCKS.HEADING_5,p),u(d,t.BLOCKS.HEADING_6,p),u(d,t.BLOCKS.QUOTE,(0,i.assert)(r.CONTAINERS[t.BLOCKS.QUOTE])),u(d,t.BLOCKS.EMBEDDED_ENTRY,h),u(d,t.BLOCKS.EMBEDDED_ASSET,(0,i.assertLink)("Asset",i.VOID_CONTENT)),u(d,t.BLOCKS.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),u(d,t.BLOCKS.HR,(0,i.assert)(i.VOID_CONTENT)),u(d,t.BLOCKS.OL_LIST,f),u(d,t.BLOCKS.UL_LIST,f),u(d,t.BLOCKS.LIST_ITEM,(0,i.assert)(c(r.LIST_ITEM_BLOCKS).sort())),u(d,t.BLOCKS.TABLE,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}})),u(d,t.BLOCKS.TABLE_ROW,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}})),u(d,t.BLOCKS.TABLE_CELL,m),u(d,t.BLOCKS.TABLE_HEADER_CELL,m),u(d,n.INLINES.HYPERLINK,new i.HyperLinkAssertion),u(d,n.INLINES.EMBEDDED_ENTRY,h),u(d,n.INLINES.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),u(d,n.INLINES.ENTRY_HYPERLINK,(0,i.assertLink)("Entry",["text"])),u(d,n.INLINES.ASSET_HYPERLINK,(0,i.assertLink)("Asset",["text"])),u(d,n.INLINES.RESOURCE_HYPERLINK,(0,i.assertLink)("Contentful:Entry",["text"])),d);function b(e,t){if("text"===e.nodeType)return(0,a.assertText)(e,t);var n=g[e.nodeType].assert(e,t);if(n.length>0)return n;var r=new o.ObjectAssertion(e,t);return r.each("content",function(e,t){return b(e,t)}),r.errors}var v=function(e){var n=new s.Path,r=new o.ObjectAssertion(e,n);return r.object()&&r.enum("nodeType",[t.BLOCKS.DOCUMENT]),r.errors.length>0?r.errors:b(e,n)}}(Ke)),Ke}function bt(){return ft||(ft=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,n).get})}(e,{get BLOCKS(){return t.BLOCKS},get EMPTY_DOCUMENT(){return o.EMPTY_DOCUMENT},get INLINES(){return n.INLINES},get MARKS(){return r.MARKS},get helpers(){return i},get validateRichTextDocument(){return s.validateRichTextDocument}});var t=je(),n=Re(),r=Me();a(Ve(),e),a((Fe||(Fe=1,Object.defineProperty(_e,"__esModule",{value:!0})),_e),e),a((He||(He=1,Object.defineProperty(We,"__esModule",{value:!0})),We),e);var o=(Xe||(Xe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return n}});var t=je(),n={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}}(ze)),ze),i=u(Ue()),s=gt();function a(e,t){return Object.keys(e).forEach(function(n){"default"===n||Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),e}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}}(Oe)),Oe}var vt=function(){if(ht)return Te;ht=1;var e=t,n=bt();function r(t,n){return t.map((t,r)=>{return i=o(t,n),s=r,e.isValidElement(i)&&null===i.key?e.cloneElement(i,{key:s}):i;var i,s})}function o(t,o){const{renderNode:i,renderMark:s,renderText:a,preserveWhitespace:l}=o;if(n.helpers.isText(t)){let n=a?a(t.value):t.value;if(l&&!a){n=n.replace(/ {2,}/g,e=>" ".repeat(e.length));const t=n.split("\n"),r=[];t.forEach((n,o)=>{r.push(n),o!==t.length-1&&r.push(e.createElement("br",null))}),n=r}return t.marks.reduce((e,t)=>s[t.type]?s[t.type](e):e,n)}{const n=r(t.content,o);return t.nodeType&&i[t.nodeType]?i[t.nodeType](t,n):e.createElement(e.Fragment,null,n)}}const i={[n.BLOCKS.DOCUMENT]:(e,t)=>t,[n.BLOCKS.PARAGRAPH]:(t,n)=>e.createElement("p",null,n),[n.BLOCKS.HEADING_1]:(t,n)=>e.createElement("h1",null,n),[n.BLOCKS.HEADING_2]:(t,n)=>e.createElement("h2",null,n),[n.BLOCKS.HEADING_3]:(t,n)=>e.createElement("h3",null,n),[n.BLOCKS.HEADING_4]:(t,n)=>e.createElement("h4",null,n),[n.BLOCKS.HEADING_5]:(t,n)=>e.createElement("h5",null,n),[n.BLOCKS.HEADING_6]:(t,n)=>e.createElement("h6",null,n),[n.BLOCKS.EMBEDDED_ENTRY]:(t,n)=>e.createElement("div",null,n),[n.BLOCKS.EMBEDDED_RESOURCE]:(t,n)=>e.createElement("div",null,n),[n.BLOCKS.UL_LIST]:(t,n)=>e.createElement("ul",null,n),[n.BLOCKS.OL_LIST]:(t,n)=>e.createElement("ol",null,n),[n.BLOCKS.LIST_ITEM]:(t,n)=>e.createElement("li",null,n),[n.BLOCKS.QUOTE]:(t,n)=>e.createElement("blockquote",null,n),[n.BLOCKS.HR]:()=>e.createElement("hr",null),[n.BLOCKS.TABLE]:(t,n)=>e.createElement("table",null,e.createElement("tbody",null,n)),[n.BLOCKS.TABLE_ROW]:(t,n)=>e.createElement("tr",null,n),[n.BLOCKS.TABLE_HEADER_CELL]:(t,n)=>e.createElement("th",null,n),[n.BLOCKS.TABLE_CELL]:(t,n)=>e.createElement("td",null,n),[n.INLINES.ASSET_HYPERLINK]:e=>a(n.INLINES.ASSET_HYPERLINK,e),[n.INLINES.ENTRY_HYPERLINK]:e=>a(n.INLINES.ENTRY_HYPERLINK,e),[n.INLINES.RESOURCE_HYPERLINK]:e=>l(n.INLINES.RESOURCE_HYPERLINK,e),[n.INLINES.EMBEDDED_ENTRY]:e=>a(n.INLINES.EMBEDDED_ENTRY,e),[n.INLINES.EMBEDDED_RESOURCE]:(e,t)=>l(n.INLINES.EMBEDDED_RESOURCE,e),[n.INLINES.HYPERLINK]:(t,n)=>e.createElement("a",{href:t.data.uri},n)},s={[n.MARKS.BOLD]:t=>e.createElement("b",null,t),[n.MARKS.ITALIC]:t=>e.createElement("i",null,t),[n.MARKS.UNDERLINE]:t=>e.createElement("u",null,t),[n.MARKS.CODE]:t=>e.createElement("code",null,t),[n.MARKS.SUPERSCRIPT]:t=>e.createElement("sup",null,t),[n.MARKS.SUBSCRIPT]:t=>e.createElement("sub",null,t),[n.MARKS.STRIKETHROUGH]:t=>e.createElement("s",null,t)};function a(t,n){return e.createElement("span",{key:n.data.target.sys.id},"type: ",n.nodeType," id: ",n.data.target.sys.id)}function l(t,n){return e.createElement("span",{key:n.data.target.sys.urn},"type: ",n.nodeType," urn: ",n.data.target.sys.urn)}return Te.documentToReactComponents=function(e,t={}){if(!e)return null;let r=e;return t.stripEmptyTrailingParagraph&&(r=n.helpers.stripEmptyTrailingParagraphFromDocument(e)),o(r,{renderNode:{...i,...t.renderNode},renderMark:{...s,...t.renderMark},renderText:t.renderText,preserveWhitespace:t.preserveWhitespace})},Te}(),yt=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({}),xt=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({}),It=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({});function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Et,At=[yt.PARAGRAPH,yt.HEADING_1,yt.HEADING_2,yt.HEADING_3,yt.HEADING_4,yt.HEADING_5,yt.HEADING_6,yt.OL_LIST,yt.UL_LIST,yt.HR,yt.QUOTE,yt.EMBEDDED_ENTRY,yt.EMBEDDED_ASSET,yt.EMBEDDED_RESOURCE,yt.TABLE],St=[yt.PARAGRAPH,yt.HEADING_1,yt.HEADING_2,yt.HEADING_3,yt.HEADING_4,yt.HEADING_5,yt.HEADING_6,yt.OL_LIST,yt.UL_LIST,yt.HR,yt.QUOTE,yt.EMBEDDED_ENTRY,yt.EMBEDDED_ASSET,yt.EMBEDDED_RESOURCE];yt.TABLE,yt.TABLE_ROW,yt.TABLE_CELL,yt.TABLE_HEADER_CELL,yt.HR,yt.EMBEDDED_ENTRY,yt.EMBEDDED_ASSET,yt.EMBEDDED_RESOURCE;var Tt,Ot=(wt(Et={},yt.OL_LIST,[yt.LIST_ITEM]),wt(Et,yt.UL_LIST,[yt.LIST_ITEM]),wt(Et,yt.LIST_ITEM,St),wt(Et,yt.QUOTE,[yt.PARAGRAPH]),wt(Et,yt.TABLE,[yt.TABLE_ROW]),wt(Et,yt.TABLE_ROW,[yt.TABLE_CELL,yt.TABLE_HEADER_CELL]),wt(Et,yt.TABLE_CELL,[yt.PARAGRAPH,yt.UL_LIST,yt.OL_LIST]),wt(Et,yt.TABLE_HEADER_CELL,[yt.PARAGRAPH]),Et),Nt=[yt.HEADING_1,yt.HEADING_2,yt.HEADING_3,yt.HEADING_4,yt.HEADING_5,yt.HEADING_6];[yt.PARAGRAPH].concat(function(e){if(Array.isArray(e))return Ct(e)}(Tt=Nt)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(Tt)||function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}(Tt)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),yt.DOCUMENT,yt.PARAGRAPH,yt.HEADING_1,yt.HEADING_2,yt.HEADING_3,yt.HEADING_4,yt.HEADING_5,yt.HEADING_6,yt.OL_LIST,yt.UL_LIST,yt.LIST_ITEM,yt.HR,yt.QUOTE,yt.EMBEDDED_ENTRY,yt.EMBEDDED_ASSET,xt.HYPERLINK,xt.ENTRY_HYPERLINK,xt.ASSET_HYPERLINK,xt.EMBEDDED_ENTRY,yt.DOCUMENT,yt.PARAGRAPH;var jt=Ee(qe());function Pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kt(e){return function(e){if(Array.isArray(e))return Pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Rt=function(e){var t=e.path,n=e.property,r=e.typeName,o=e.value;return{details:'The type of "'.concat(n,'" is incorrect, expected type: ').concat(r),name:"type",path:t.toArray(),type:r,value:o}};function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bt(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function Mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dt(e){return function(e){if(Array.isArray(e))return Lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Gt=function(){function e(t,n){var r=this,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Mt(this,"obj",void 0),Mt(this,"path",void 0),Mt(this,"_errors",void 0),Mt(this,"catch",void 0),Mt(this,"exists",void 0),Mt(this,"object",void 0),Mt(this,"string",void 0),Mt(this,"number",void 0),Mt(this,"array",void 0),Mt(this,"enum",void 0),Mt(this,"empty",void 0),Mt(this,"minLength",void 0),Mt(this,"noAdditionalProperties",void 0),Mt(this,"each",void 0),this.obj=t,this.path=n,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=o._errors).push.apply(r,Dt(t))},this.exists=function(e){return e in r.obj||(r.catch(function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:n.toArray()}}({property:e,path:r.path.of(e)})),!1)},this.object=function(e){var t=e?r.obj[e]:r.obj;if(e&&!r.exists(e))return!1;if(jt(t))return!0;var n,o=e?r.path.of(e):r.path,i=null!==(n=null!=e?e:r.path.last())&&void 0!==n?n:"value";return r.catch(Rt({typeName:"Object",property:i,path:o,value:t})),!1},this.string=function(e){var t=r.obj[e];return!(e&&!r.exists(e))&&("string"==typeof t||(r.catch(Rt({typeName:"String",property:e,path:r.path.of(e),value:t})),!1))},this.number=function(e,t){var n=r.obj[e];return!(!t||e in r.obj)||!!r.exists(e)&&("number"==typeof n&&!Number.isNaN(n)||(r.catch(Rt({typeName:"Number",property:e,path:r.path.of(e),value:n})),!1))},this.array=function(e){var t=r.obj[e];return!(e&&!r.exists(e))&&(!!Array.isArray(t)||(r.catch(Rt({typeName:"Array",property:e,path:r.path.of(e),value:t})),!1))},this.enum=function(e,t){var n=r.obj[e];return!("string"!=typeof n||!t.includes(n))||(r.catch(function(e){var t=e.expected,n=e.value,r=e.path;return{details:"Value must be one of expected values",name:"in",expected:kt(t).sort(),path:r.toArray(),value:n}}({expected:t,value:n,path:r.path.of(e)})),!1)},this.empty=function(e){if(!r.array(e))return!1;var t=r.obj[e];return 0===t.length||(r.catch(function(e){var t=e.max,n=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:n}}({max:0,value:t,path:r.path.of(e)})),!1)},this.minLength=function(e,t){if(!r.array(e))return!1;var n=r.obj[e];return n.length>=t||(r.catch(function(e){var t=e.min,n=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:n}}({min:t,value:n,path:r.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(r.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return r.catch(function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:n.toArray()}}({property:e,path:r.path.of(e)}))}),0===t.length},this.each=function(e,t){if(r.array(e)){var n=r.obj[e],o=!1;n.forEach(function(n,i){if(!o){var s=t(n,r.path.of(e).of(i));s.length>0&&(o=!0),r.catch.apply(r,Dt(s))}})}}}return Bt(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(n,r){return e._errors.findIndex(function(e){return t(n)===t(e)})===r})}}]),e}();function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ft(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _t(e,t,n){return t=zt(t),function(e,t){if(t&&("object"==(n=t,n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;var n;return Ft(e)}(e,Jt()?Reflect.construct(t,n||[],zt(e).constructor):t.apply(e,n))}function Ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wt(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function Xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zt(e){return zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zt(e)}function Zt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yt(e,t)}function Yt(e,t){return Yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yt(e,t)}function Ut(e){return function(e){if(Array.isArray(e))return Vt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Jt=function(){return!!e})()}var $t=[],Kt=function(){function e(t,n){Ht(this,e),Xt(this,"contentRule",void 0),Xt(this,"validateData",void 0),this.contentRule=t,this.validateData=n}return Wt(e,[{key:"assert",value:function(e,t){var n=new Gt(e,t);if(!n.object())return n.errors;n.noAdditionalProperties(["nodeType","data","content"]);var r=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),o=r.nodeTypes,i=r.min,s=void 0===i?0:i;if(0===o.length&&s>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(s," with no nodeTypes"));if(n.minLength("content",s),0===o.length?n.empty("content"):n.each("content",function(e,t){var n=new Gt(e,t);return n.object()?(n.enum("nodeType",o),n.errors):n.errors}),n.object("data")){var a,l,u,c=null!==(u=null===(l=this.validateData)||void 0===l?void 0:l.call(this,e.data,t.of("data")))&&void 0!==u?u:[];(a=n).catch.apply(a,Ut(c))}return n.errors}}]),e}(),Qt=function(e){function t(e,n){var r;return Ht(this,t),r=_t(this,t,[n,function(e,t){return Ft(r).assertLink(e,t)}]),Xt(r,"linkType",void 0),Xt(r,"type",void 0),Xt(r,"assertLink",void 0),r.linkType=e,r.assertLink=function(e,t){var n=new Gt(e,t);if(n.object("target")){var o,i=new Gt(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[r.type]),i.enum("linkType",[r.linkType]),"Link"===r.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===r.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=n).catch.apply(o,Ut(i.errors))}return n.noAdditionalProperties(["target"]),n.errors},r.type=r.linkType.startsWith("Contentful:")?"ResourceLink":"Link",r}return Zt(t,e),t}(Kt),qt=function(e){function t(){var e;return Ht(this,t),e=_t(this,t,[["text"],function(t,n){return Ft(e).assertLink(t,n)}]),Xt(e,"assertLink",function(e,t){var n=new Gt(e,t);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}),e}return Zt(t,e),t}(Kt),en=function(e,t){return new Kt(e,t)},tn=function(e,t){return new Qt(e,t)};function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function on(e){return function(e){if(Array.isArray(e))return nn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var sn,an=en(on(Object.values(xt)).concat(["text"]).sort()),ln=en([yt.LIST_ITEM]),un=tn("Entry",$t),cn=en(function(){return{nodeTypes:[yt.PARAGRAPH],min:1}},function(e,t){var n=new Gt(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors});rn(sn={},yt.DOCUMENT,en(At)),rn(sn,yt.PARAGRAPH,an),rn(sn,yt.HEADING_1,an),rn(sn,yt.HEADING_2,an),rn(sn,yt.HEADING_3,an),rn(sn,yt.HEADING_4,an),rn(sn,yt.HEADING_5,an),rn(sn,yt.HEADING_6,an),rn(sn,yt.QUOTE,en(Ot[yt.QUOTE])),rn(sn,yt.EMBEDDED_ENTRY,un),rn(sn,yt.EMBEDDED_ASSET,tn("Asset",$t)),rn(sn,yt.EMBEDDED_RESOURCE,tn("Contentful:Entry",$t)),rn(sn,yt.HR,en($t)),rn(sn,yt.OL_LIST,ln),rn(sn,yt.UL_LIST,ln),rn(sn,yt.LIST_ITEM,en(on(St).sort())),rn(sn,yt.TABLE,en(function(){return{nodeTypes:[yt.TABLE_ROW],min:1}})),rn(sn,yt.TABLE_ROW,en(function(){return{nodeTypes:[yt.TABLE_CELL,yt.TABLE_HEADER_CELL],min:1}})),rn(sn,yt.TABLE_CELL,cn),rn(sn,yt.TABLE_HEADER_CELL,cn),rn(sn,xt.HYPERLINK,new qt),rn(sn,xt.EMBEDDED_ENTRY,un),rn(sn,xt.EMBEDDED_RESOURCE,tn("Contentful:Entry",$t)),rn(sn,xt.ENTRY_HYPERLINK,tn("Entry",["text"])),rn(sn,xt.ASSET_HYPERLINK,tn("Asset",["text"])),rn(sn,xt.RESOURCE_HYPERLINK,tn("Contentful:Entry",["text"]));const dn={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},pn=t.forwardRef(({children:t,className:n="",variant:r="unstyled",style:o,...i},s)=>{const a=xe("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e.jsx("li",{ref:s,className:a,style:o,...i,children:t})});pn.displayName="ListItem";const fn=t.forwardRef(({type:t="ul",items:n,className:r="",renderItem:o,children:i,variant:s="unstyled",style:a,...l},u)=>{const c=(()=>{if("unstyled"===s)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d=xe(c,`list--${t}`,`list--${s}`,r),p=i||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e.jsx(pn,{className:t.className,variant:s,children:t.content},t.id||n)):null),f={className:d,style:a,...l,children:p};return"ol"===t?e.jsx("ol",{...f,ref:u,role:"list"}):e.jsx("ul",{...f,ref:u,role:"list"})});fn.displayName="List";const hn=({name:t,fill:n=0,opticalSize:r="48dp",weight:o="200",emphasis:i=145,size:s=24,color:a="currentColor",style:l={},className:u,onClick:c,dataTestId:d})=>{const p={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.jsx("span",{style:p,className:xe("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",u),onClick:c,"data-testid":d,"aria-hidden":"true",children:t})};hn.displayName="MaterialIcon";const mn=t.forwardRef(({children:e,as:n,className:r="",style:o,...i},s)=>{const a=n||"p";return t.createElement(a,{ref:s,className:r,style:o,...i},e)});mn.displayName="Text";const gn=n=>{const{items:r,listIconName:o="check",listItemClassName:i,listContainerClassName:s,iconSize:a=20,iconPosition:l="center",iconColor:u="green",iconClassName:c}=n,d="disc"!==o;if(!(null==r?void 0:r.length))return null;const p=t=>{if("string"==typeof t&&t.includes("|")&&(t.match(/\|/g)||[]).length%2==0){const n=t.split("|"),r=(t.match(/\|/g)||[]).length;return n.map((t,n)=>{if(!t)return null;return r>1&&n%2==1?e.jsx(mn,{as:"span",style:{fontWeight:900},children:t},n):e.jsx("span",{children:t},n)})}return t};return e.jsx(fn,{className:xe("mt-2 space-y-1",s),variant:d?"unstyled":"default",children:r.map((n,r)=>{const s=function(e){return null!==e&&"object"==typeof e&&!t.isValidElement(e)&&"title"in e}(n),f=s&&!!n.iconUrl,h=s?n.title:n;return e.jsxs(pn,{variant:d?"unstyled":"default",className:xe(`${d?"flex":""} ${"top"===l?"items-start":"items-center"} gap-2 text-text-secondary`,i),children:[d&&f?e.jsx("div",{className:"flex shrink-0 leading-none",children:e.jsx("img",{src:n.iconUrl,alt:n.iconAlt||"",width:a,height:a,className:xe("block object-contain","top"===l?"mt-1":"",c)})}):d?e.jsx("div",{className:"flex leading-none",children:e.jsx(hn,{name:o,size:a,color:dn[u],weight:"600",className:xe("block","top"===l?"mt-1":"",c)})}):null,e.jsx(mn,{as:"div",children:p(h)})]},r)})})};var bn;gn.displayName="Checklist";const vn="function"==typeof n?n:null!==(bn=n.default)&&void 0!==bn?bn:n,yn=t.forwardRef(({children:t,href:n,className:r="",onClick:o,variant:i="unstyled",style:s,external:a=!1,disabled:l=!1,...u},c)=>{const d=(()=>{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(" ")})(),p=e=>{l?e.preventDefault():null==o||o(e)},f=xe(d,`link--${i}`,l&&"link--disabled",r),h={...u,ref:c,className:f,style:s,href:l?void 0:n,onClick:p,...a&&!l&&{target:"_blank",rel:"noopener"},...l&&{"aria-disabled":!0,tabIndex:-1}};return l||a||"string"==typeof n&&n.startsWith("http")?e.jsx("a",{...h,children:t}):e.jsx(vn,{href:n||"#",ref:c,className:f,style:s,onClick:p,...u,children:t})});function xn(e,n){t.useEffect(()=>{if(!n)return;const t=()=>{const t=document.fullscreenElement||document.webkitFullscreenElement;n(t===e.current)};return document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),()=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t)}},[n,e])}yn.displayName="Link";const In=n=>{const{videoAssetUrl:r,videoAssetType:o,image:i,title:s,description:a,containerClassName:l,autoplay:u=!1,onPlay:c,onPause:d,onTimeUpdate:p,onEnded:f,onFullscreenToggle:h}=n,m=t.useRef(null);return xn(m,h),r?e.jsx("div",{className:xe("relative h-0 w-full overflow-hidden pb-[56.25%]",l),children:e.jsxs("video",{ref:m,className:"absolute left-0 top-0 h-full w-full object-cover",controls:!0,playsInline:!0,preload:"metadata",autoPlay:u,poster:i||void 0,"aria-label":s||"Embedded video",onPlay:()=>null==c?void 0:c(),onPause:()=>null==d?void 0:d(),onEnded:()=>null==f?void 0:f(),onTimeUpdate:e=>null==p?void 0:p(e.currentTarget.currentTime,e.currentTarget.duration),children:[e.jsx("source",{src:r,type:o||"video/mp4"}),a||"Your browser does not support embedded videos."]})}):null},Cn=({isHovered:t,containerClassName:n})=>e.jsx("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.jsx(hn,{name:"play_arrow",size:72,fill:1,className:"max-w-[72px] transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),wn="undefined"!=typeof global&&"[object global]"==={}.toString.call(global),En="undefined"!=typeof Bun,An="undefined"!=typeof Deno,Sn="function"==typeof WebSocketPair&&void 0!==caches?.default,Tn=wn||En||An||Sn;function On(e,t){return 0===e.indexOf(t.toLowerCase())?e:`${t.toLowerCase()}${e.substr(0,1).toUpperCase()}${e.substr(1)}`}function Nn(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function jn(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function Pn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.id,n=e.url,r=t||n;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(o=r,!isNaN(parseFloat(o))&&isFinite(o)&&Math.floor(o)==o)return`https://vimeo.com/${r}`;var o;if(Nn(r))return r.replace("http:","https:");if(t)throw new TypeError(`“${t}” is not a valid video id.`);throw new TypeError(`“${r}” is not a vimeo.com url.`)}const kn=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener";const i="string"==typeof t?[t]:t;return i.forEach(t=>{e[r](t,n)}),{cancel:()=>i.forEach(t=>e[o](t,n))}};function Rn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(!e||!t||"function"!=typeof t.querySelectorAll)return null;const n=t.querySelectorAll("iframe");for(let t=0;t<n.length;t++)if(n[t]&&n[t].contentWindow===e)return n[t];return null}const Ln=void 0!==Array.prototype.indexOf,Bn="undefined"!=typeof window&&void 0!==window.postMessage;if(!(Tn||Ln&&Bn))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var Mn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
|
|
6
6
|
/*!
|
|
7
7
|
* weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
|
|
8
8
|
* https://github.com/polygonplanet/weakmap-polyfill
|
|
9
9
|
* Copyright (c) 2015-2021 polygonplanet <polygon.planet.aqua@gmail.com>
|
|
10
10
|
* @license MIT
|
|
11
11
|
*/
|
|
12
|
-
!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),r=function(e,t,r){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r}):e[t]=r};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id",function(e){return e+"_"+i()+"."+i()}("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!o(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function i(){return Math.random().toString().substring(2)}return r(e.prototype,"delete",function(e){if(n(this,"delete"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)}),r(e.prototype,"get",function(e){if(n(this,"get"),o(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}}),r(e.prototype,"has",function(e){if(n(this,"has"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)}),r(e.prototype,"set",function(e,t){if(n(this,"set"),!o(e))throw new TypeError("Invalid value used as weak map key");var i=e[this._id];return i&&i[0]===e?(i[1]=t,this):(r(e,this._id,[e,t]),this)}),r(e,"_polyfill",!0),e}()}function o(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:
|
|
12
|
+
!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),r=function(e,t,r){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r}):e[t]=r};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id",function(e){return e+"_"+i()+"."+i()}("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!o(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function i(){return Math.random().toString().substring(2)}return r(e.prototype,"delete",function(e){if(n(this,"delete"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)}),r(e.prototype,"get",function(e){if(n(this,"get"),o(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}}),r(e.prototype,"has",function(e){if(n(this,"has"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)}),r(e.prototype,"set",function(e,t){if(n(this,"set"),!o(e))throw new TypeError("Invalid value used as weak map key");var i=e[this._id];return i&&i[0]===e?(i[1]=t,this):(r(e,this._id,[e,t]),this)}),r(e,"_polyfill",!0),e}()}function o(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Mn);var Dn=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){
|
|
13
13
|
/*! Native Promise Only
|
|
14
14
|
v0.8.1 (c) Kyle Simpson
|
|
15
15
|
MIT License: http://getify.mit-license.org
|
|
16
16
|
*/
|
|
17
|
-
var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=o(n.drain))}function s(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function a(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=s(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function u(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=s(e))?i(function(){var r=new p(n);try{t.call(e,function(){u.apply(r,arguments)},function(){c.apply(r,arguments)})}catch(e){c.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&i(a,n))}catch(e){c.call(new p(n),e)}}}function c(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(a,t))}function d(e,t,n,r){for(var o=0;o<t.length;o++)(function(o){e.resolve(t[o]).then(function(e){n(o,e)},r)})(o)}function p(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new f(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&i(a,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){u.call(t,e)},function(e){c.call(t,e)})}catch(e){c.call(t,e)}}n=function(){var e,n,r;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new o(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var m=e({},"constructor",h,!1);return h.prototype=m,e(m,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(h,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(h,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=e.length,i=Array(o),s=0;d(t,e,function(e,t){i[e]=t,++s===o&&n(i)},r)})}),e(h,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},r)})}),h},(n=Rn)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])});const Ln=new WeakMap;function Bn(e,t,n){const r=Ln.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),Ln.set(e.element,r)}function Mn(e,t){return(Ln.get(e.element)||{})[t]||[]}function Gn(e,t,n){const r=Ln.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],Ln.set(e.element,r),!0;const o=r[t].indexOf(n);return-1!==o&&r[t].splice(o,1),Ln.set(e.element,r),r[t]&&0===r[t].length}function Dn(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function Vn(e,t,n){if(!e.element.contentWindow||!e.element.contentWindow.postMessage)return;let r={method:t};void 0!==n&&(r.value=n);const o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}function Fn(e,t){let n,r=[];if((t=Dn(t)).event){if("error"===t.event){Mn(e,t.data.method).forEach(n=>{const r=new Error(t.data.message);r.name=t.data.name,n.reject(r),Gn(e,t.data.method,n)})}r=Mn(e,`event:${t.event}`),n=t.data}else if(t.method){const o=function(e,t){const n=Mn(e,t);if(n.length<1)return!1;const r=n.shift();return Gn(e,t,r),r}(e,t.method);o&&(r.push(o),n=t.value)}r.forEach(t=>{try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}const _n=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","disable_context_menu","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Hn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _n.reduce((t,n)=>{const r=e.getAttribute(`data-vimeo-${n}`);return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function Wn(e,t){let{html:n}=e;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");const r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function Xn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((r,o)=>{if(!An(e))throw new TypeError(`“${e}” is not a vimeo.com url.`);const i=function(e){const t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=[".videoji.hk",".vimeo.work",".videoji.cn"];for(const e of r)if(n.endsWith(e))return n;return"vimeo.com"}(e);let s=`https://${i}/api/oembed.json?url=${encodeURIComponent(e)}`;for(const e in t)t.hasOwnProperty(e)&&(s+=`&${e}=${encodeURIComponent(t[e])}`);const a="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;a.open("GET",s,!0),a.onload=function(){if(404!==a.status)if(403!==a.status)try{const t=JSON.parse(a.responseText);if(403===t.domain_status_code)return Wn(t,n),void o(new Error(`“${e}” is not embeddable.`));r(t)}catch(e){o(e)}else o(new Error(`“${e}” is not embeddable.`));else o(new Error(`“${e}” was not found.`))},a.onerror=function(){const e=a.status?` (${a.status})`:"";o(new Error(`There was an error fetching the embed code from Vimeo${e}.`))},a.send()})}const zn={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1};class Zn extends EventTarget{logger;constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;super(),this.logger=r,this.init(t,e,{...zn,...n})}disconnect(){this.dispatchEvent(new Event("disconnect"))}async init(e,t,n){if(await this.waitForTOReadyState(e,"open"),"viewer"===n.role){await this.updatePlayer(e,t,n);const r=On(e,"change",()=>this.updatePlayer(e,t,n)),o=this.maintainPlaybackPosition(e,t,n);this.addEventListener("disconnect",()=>{o.cancel(),r.cancel()})}else{await this.updateTimingObject(e,t);const n=On(t,["seeked","play","pause","ratechange"],()=>this.updateTimingObject(e,t),"on","off");this.addEventListener("disconnect",()=>n.cancel())}}async updateTimingObject(e,t){const[n,r,o]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);e.update({position:n,velocity:r?0:o})}async updatePlayer(e,t,n){const{position:r,velocity:o}=e.query();"number"==typeof r&&t.setCurrentTime(r),"number"==typeof o&&(0===o?!1===await t.getPaused()&&t.pause():o>0&&(!0===await t.getPaused()&&(await t.play().catch(async e=>{"NotAllowedError"===e.name&&n.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(e=>console.error("Couldn't play the video from TimingSrcConnector. Error:",e)))}),this.updatePlayer(e,t,n)),await t.getPlaybackRate()!==o&&t.setPlaybackRate(o)))}maintainPlaybackPosition(e,t,n){const{allowedDrift:r,maxAllowedDrift:o,minCheckInterval:i,maxRateAdjustment:s,maxTimeToCatchUp:a}=n,l=1e3*Math.min(a,Math.max(i,o)),u=async()=>{if(0===e.query().velocity||!0===await t.getPaused())return;const n=e.query().position-await t.getCurrentTime(),i=Math.abs(n);if(this.log(`Drift: ${n}`),i>o)await this.adjustSpeed(t,0),t.setCurrentTime(e.query().position),this.log("Resync by currentTime");else if(i>r){const e=i/a,r=e<s?(s-e)/2:s;await this.adjustSpeed(t,r*Math.sign(n)),this.log("Resync by playbackRate")}},c=setInterval(()=>u(),l);return{cancel:()=>clearInterval(c)}}log(e){this.logger?.(`TimingSrcConnector: ${e}`)}speedAdjustment=0;adjustSpeed=async(e,t)=>{if(this.speedAdjustment===t)return;const n=await e.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate: ${n}`),await e.setPlaybackRate(n),this.speedAdjustment=t};waitForTOReadyState(e,t){return new Promise(n=>{const r=()=>{e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})};r()})}}const Yn=new WeakMap,Un=new WeakMap;let Jn={};class $n{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){const t=e.querySelector("iframe");t&&(e=t)}if("IFRAME"===e.nodeName&&!An(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(Yn.has(e))return Yn.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";const n=new kn((n,r)=>{if(this._onMessage=e=>{if(!An(e.origin)||this.element.contentWindow!==e.source)return;"*"===this.origin&&(this.origin=e.origin);const t=Dn(e.data);if(t&&"error"===t.event&&t.data&&"ready"===t.data.method){const e=new Error(t.data.message);return e.name=t.data.name,void r(e)}const o=t&&"ready"===t.event,i=t&&"ping"===t.method;if(o||i)return this.element.setAttribute("data-ready","true"),void n();Fn(this,t)},this._window.addEventListener("message",this._onMessage),"IFRAME"!==this.element.nodeName){const n=Hn(e,t);Xn(Tn(n),n,e).then(t=>{const n=Wn(t,e);return this.element=n,this._originalElement=e,function(e,t){const n=Ln.get(e);Ln.set(t,n),Ln.delete(e)}(e,n),Yn.set(this.element,this),t}).catch(r)}});if(Un.set(this,n),Yn.set(this.element,this),"IFRAME"===this.element.nodeName&&Vn(this,"ping"),Jn.isEnabled){const e=()=>Jn.exit();this.fullscreenchangeHandler=()=>{Jn.isFullscreen?Bn(this,"event:exitFullscreen",e):Gn(this,"event:exitFullscreen",e),this.ready().then(()=>{Vn(this,"fullscreenchange",Jn.isFullscreen)})},Jn.on("fullscreenchange",this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return An(e)}callMethod(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("You must pass a method name.");return new kn((t,r)=>this.ready().then(()=>{Bn(this,e,{resolve:t,reject:r}),0===n.length?n={}:1===n.length&&(n=n[0]),Vn(this,e,n)}).catch(r))}get(e){return new kn((t,n)=>(e=En(e,"get"),this.ready().then(()=>{Bn(this,e,{resolve:t,reject:n}),Vn(this,e)}).catch(n)))}set(e,t){return new kn((n,r)=>{if(e=En(e,"set"),null==t)throw new TypeError("There must be a value to set.");return this.ready().then(()=>{Bn(this,e,{resolve:n,reject:r}),Vn(this,e,t)}).catch(r)})}on(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===Mn(this,`event:${e}`).length&&this.callMethod("addEventListener",e).catch(()=>{}),Bn(this,`event:${e}`,t)}off(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");Gn(this,`event:${e}`,t)&&this.callMethod("removeEventListener",e).catch(e=>{})}loadVideo(e){return this.callMethod("loadVideo",e)}ready(){const e=Un.get(this)||new kn((e,t)=>{t(new Error("Unknown player. Probably unloaded."))});return kn.resolve(e)}addCuePoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}removeCuePoint(e){return this.callMethod("removeCuePoint",e)}enableTextTrack(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t,showing:n})}disableTextTrack(){return this.callMethod("disableTextTrack")}selectAudioTrack(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:t})}selectDefaultAudioTrack(){return this.callMethod("selectDefaultAudioTrack")}pause(){return this.callMethod("pause")}play(){return this.callMethod("play")}requestFullscreen(){return Jn.isEnabled?Jn.request(this.element):this.callMethod("requestFullscreen")}exitFullscreen(){return Jn.isEnabled?Jn.exit():this.callMethod("exitFullscreen")}getFullscreen(){return Jn.isEnabled?kn.resolve(Jn.isFullscreen):this.get("fullscreen")}requestPictureInPicture(){return this.callMethod("requestPictureInPicture")}exitPictureInPicture(){return this.callMethod("exitPictureInPicture")}getPictureInPicture(){return this.get("pictureInPicture")}remotePlaybackPrompt(){return this.callMethod("remotePlaybackPrompt")}unload(){return this.callMethod("unload")}destroy(){return new kn(e=>{if(Un.delete(this),Yn.delete(this.element),this._originalElement&&(Yn.delete(this._originalElement),this._originalElement.removeAttribute("data-vimeo-initialized")),this.element&&"IFRAME"===this.element.nodeName&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&"DIV"===this.element.nodeName&&this.element.parentNode){this.element.removeAttribute("data-vimeo-initialized");const e=this.element.querySelector("iframe");e&&e.parentNode&&(e.parentNode.parentNode&&this._originalElement&&this._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))}this._window.removeEventListener("message",this._onMessage),Jn.isEnabled&&Jn.off("fullscreenchange",this.fullscreenchangeHandler),e()})}getAutopause(){return this.get("autopause")}setAutopause(e){return this.set("autopause",e)}getBuffered(){return this.get("buffered")}getCameraProps(){return this.get("cameraProps")}setCameraProps(e){return this.set("cameraProps",e)}getChapters(){return this.get("chapters")}getCurrentChapter(){return this.get("currentChapter")}getColor(){return this.get("color")}getColors(){return kn.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}setColor(e){return this.set("color",e)}setColors(e){if(!Array.isArray(e))return new kn((e,t)=>t(new TypeError("Argument must be an array.")));const t=new kn(e=>e(null)),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return kn.all(n)}getCuePoints(){return this.get("cuePoints")}getCurrentTime(){return this.get("currentTime")}setCurrentTime(e){return this.set("currentTime",e)}getDuration(){return this.get("duration")}getEnded(){return this.get("ended")}getLoop(){return this.get("loop")}setLoop(e){return this.set("loop",e)}setMuted(e){return this.set("muted",e)}getMuted(){return this.get("muted")}getPaused(){return this.get("paused")}getPlaybackRate(){return this.get("playbackRate")}setPlaybackRate(e){return this.set("playbackRate",e)}getPlayed(){return this.get("played")}getQualities(){return this.get("qualities")}getQuality(){return this.get("quality")}setQuality(e){return this.set("quality",e)}getRemotePlaybackAvailability(){return this.get("remotePlaybackAvailability")}getRemotePlaybackState(){return this.get("remotePlaybackState")}getSeekable(){return this.get("seekable")}getSeeking(){return this.get("seeking")}getTextTracks(){return this.get("textTracks")}getAudioTracks(){return this.get("audioTracks")}getEnabledAudioTrack(){return this.get("enabledAudioTrack")}getDefaultAudioTrack(){return this.get("defaultAudioTrack")}getVideoEmbedCode(){return this.get("videoEmbedCode")}getVideoId(){return this.get("videoId")}getVideoTitle(){return this.get("videoTitle")}getVideoWidth(){return this.get("videoWidth")}getVideoHeight(){return this.get("videoHeight")}getVideoUrl(){return this.get("videoUrl")}getVolume(){return this.get("volume")}setVolume(e){return this.set("volume",e)}async setTimingSrc(e,t){if(!e)throw new TypeError("A Timing Object must be provided.");await this.ready();const n=new Zn(this,e,t);return Vn(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",()=>Vn(this,"notifyTimingObjectDisconnect")),n}}wn||(Jn=function(){const e=function(){let e;const t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let n=0;const r=t.length,o={};for(;n<r;n++)if(e=t[n],e&&e[1]in document){for(n=0;n<e.length;n++)o[t[0][n]]=e[n];return o}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:t=>new Promise((r,o)=>{const i=function(){n.off("fullscreenchange",i),r()};n.on("fullscreenchange",i);const s=(t=t||document.documentElement)[e.requestFullscreen]();s instanceof Promise&&s.then(i).catch(o)}),exit:()=>new Promise((t,r)=>{if(!n.isFullscreen)return void t();const o=function(){n.off("fullscreenchange",o),t()};n.on("fullscreenchange",o);const i=document[e.exitFullscreen]();i instanceof Promise&&i.then(o).catch(r)}),on(e,n){const r=t[e];r&&document.addEventListener(r,n)},off(e,n){const r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:()=>Boolean(document[e.fullscreenElement])},element:{enumerable:!0,get:()=>document[e.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(document[e.fullscreenEnabled])}}),n}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=e=>{"console"in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(e=>{try{if(null!==e.getAttribute("data-vimeo-defer"))return;const t=Hn(e);Xn(Tn(t),t,e).then(t=>Wn(t,e)).catch(n)}catch(e){n(e)}})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoPlayerResizeEmbeds_)return;window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",t=>{if(!An(t.origin))return;if(!t.data||"spacechange"!==t.data.event)return;const n=t.source?Nn(t.source,e):null;n&&(n.parentElement.style.paddingBottom=`${t.data.data[0].bottom}px`)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoSeoMetadataAppended)return;window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",t=>{if(!An(t.origin))return;const n=Dn(t.data);if(!n||"ready"!==n.event)return;const r=t.source?Nn(t.source,e):null;r&&Sn(r.src)&&new $n(r).callMethod("appendVideoMetadata",window.location.href)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;window.VimeoCheckedUrlTimeParam=!0;const t=e=>{"console"in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener("message",n=>{if(!An(n.origin))return;const r=Dn(n.data);if(!r||"ready"!==r.event)return;const o=n.source?Nn(n.source,e):null;if(o&&Sn(o.src)){const e=new $n(o);e.getVideoId().then(t=>{const n=new RegExp(`[?&]vimeo_t_${t}=([^&#]*)`).exec(window.location.href);if(n&&n[1]){const t=decodeURI(n[1]);e.setCurrentTime(t)}}).catch(t)}})}(),function(){if(window.VimeoDRMEmbedsUpdated)return;window.VimeoDRMEmbedsUpdated=!0,window.addEventListener("message",e=>{if(!An(e.origin))return;const t=Dn(e.data);if(!t||"drminitfailed"!==t.event)return;const n=e.source?Nn(e.source):null;if(!n)return;const r=n.getAttribute("allow")||"";if(!r.includes("encrypted-media")){n.setAttribute("allow",`${r}; encrypted-media`);const e=new URL(n.getAttribute("src"));return e.searchParams.set("forcereload","drm"),void n.setAttribute("src",e.toString())}})}());const Kn=e=>{let t=e.split(/[?#]/)[0];for(;t.endsWith("/");)t=t.slice(0,-1);const n=t.split("/").filter(Boolean),r=n.findIndex(e=>"vimeo.com"===e||"player.vimeo.com"===e);if(-1===r)return"";const o=n.find((e,t)=>t>r&&/^\d{6,}$/.test(e));if(!o)return"";const i=n[n.length-1];return o===i?o:`${o}/${i}`},Qn=n=>{const{link:r,title:o,containerClassName:i,autoplay:s=!1,debug:a=!1,onPlay:l,onPause:u,onTimeUpdate:c,onEnded:d,onFullscreenToggle:p}=n,f=t.useRef(null),{href:h,embedId:m}=t.useMemo(()=>{if(!r)return{href:"",embedId:""};const e=r.toString();return{href:e,embedId:Kn(e)}},[r]);if(a&&console.log("[VimeoEmbed] href:",h,"id:",m),t.useEffect(()=>{if(!m||!f.current)return;const e=new $n(f.current),t=()=>null==l?void 0:l(),n=()=>null==u?void 0:u(),r=()=>null==d?void 0:d(),o=e=>null==c?void 0:c(e.seconds,e.duration),i=e=>null==p?void 0:p(e.fullscreen);return e.on("play",t),e.on("pause",n),e.on("ended",r),e.on("timeupdate",o),e.on("fullscreenchange",i),()=>{e.off("play",t),e.off("pause",n),e.off("ended",r),e.off("timeupdate",o),e.off("fullscreenchange",i),e.destroy().catch(()=>{})}},[m]),!m)return null;const g=new URLSearchParams({autoplay:s?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}),b=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/${m}?${g.toString()}`);return e.jsx("div",{className:xe("relative h-0 w-full overflow-hidden pb-[56.25%]",i),children:e.jsx("iframe",{ref:f,className:"absolute left-0 top-0 h-full w-full",src:b,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:o||"Embedded vimeo"})})};let qn=null;const er=e=>{if(!e)return"";const t=e.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return t&&11===t[7].length?t[7]:""},tr=n=>{const{link:r,title:o,containerClassName:i,autoplay:s=!1,onPlay:a,onPause:l,onTimeUpdate:u,onEnded:c,onFullscreenToggle:d}=n,p=t.useMemo(()=>er(r),[r]),f=t.useRef(null),h=t.useRef();if(gn(f,d),t.useEffect(()=>{if(!p||!f.current)return;let e,t=!1;return function(){var e;return"undefined"==typeof window?Promise.reject(new Error("YouTube IFrame API requires a browser")):(null===(e=window.YT)||void 0===e?void 0:e.Player)?Promise.resolve(window.YT):qn||(qn=new Promise((e,t)=>{const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{null==n||n(),e(window.YT)};let r=document.querySelector('script[src*="youtube.com/iframe_api"]');r||(r=document.createElement("script"),r.src="https://www.youtube.com/iframe_api",r.onerror=()=>{qn=null,t(new Error("Failed to load YouTube IFrame API"))},document.head.appendChild(r))}),qn)}().then(n=>{!t&&f.current&&(e=new n.Player(f.current,{events:{onStateChange:t=>{const r=n.PlayerState;t.data===r.PLAYING?(null==a||a(),clearInterval(h.current),h.current=setInterval(()=>{var t,n,r,o;const i=null!==(n=null===(t=null==e?void 0:e.getDuration)||void 0===t?void 0:t.call(e))&&void 0!==n?n:0,s=null!==(o=null===(r=null==e?void 0:e.getCurrentTime)||void 0===r?void 0:r.call(e))&&void 0!==o?o:0;null==u||u(s,i)},1e3)):t.data===r.PAUSED?(null==l||l(),clearInterval(h.current)):t.data===r.ENDED&&(null==c||c(),clearInterval(h.current))}}}))}).catch(()=>{}),()=>{var n;t=!0,clearInterval(h.current);try{null===(n=null==e?void 0:e.destroy)||void 0===n||n.call(e)}catch(e){}}},[p]),!p)return null;const m=new URLSearchParams({enablejsapi:"1",autoplay:s?"1":"0",mute:s?"1":"0",playsinline:"1",rel:"0"}),g=`https://www.youtube.com/embed/${p}?${m.toString()}`;return e.jsx("div",{className:xe("relative h-full w-full overflow-hidden pb-[56.25%]",i),children:e.jsx("iframe",{ref:f,className:"absolute left-0 top-0 h-full w-full",src:g,title:o||"Embedded youtube",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})})},nr=(e=>{let t=e;for(let e=0;e<5;e++){if("function"==typeof t)return t;if(!t||"object"!=typeof t||!("default"in t))return t;t=t.default}return t})(r),rr=({src:e,width:t,quality:n})=>{const r=e.startsWith("//")?`https:${e}`:e;let o;try{o=new URL(r)}catch(t){return e}return o.searchParams.set("w",String(t)),o.searchParams.set("q",String(n||90)),o.searchParams.set("fm","webp"),o.toString()},or=t.forwardRef(({className:t,...n},r)=>{const o="string"==typeof n.src?n.src:"",i=o.toLowerCase().split("?")[0]||"",s=o.includes("images.ctfassets.net"),a=s&&i.endsWith(".svg"),l=s&&!a?{loader:rr,unoptimized:!1}:{unoptimized:a};return e.jsx(nr,{ref:r,className:xe(t),...n,...l})});or.displayName="NextImage";const ir=[25,50,75];const sr=t.forwardRef(({children:t,className:n="",style:r,disabled:o,...i},s)=>e.jsx("button",{ref:s,className:xe(n),style:r,disabled:o,...i,children:t}));sr.displayName="Button";const ar=(n,r)=>{const{className:o,size:i,required:s,placeholder:a,label:l,state:u,errorText:c,prefixIconName:d,prefixIconFill:p=!0,suffixIconFill:f=!1,prefixIconSize:h=24,suffixIconName:m,suffixIconSize:g=24,containerClassName:b,prefixIconClassName:v,loading:y,hasError:x,type:I,...C}=n,w=x?"error":u,[E,A]=t.useState(!1),[S,T]=t.useState(!1),[O,N]=t.useState(I||"text"),P=t.useCallback(e=>{e.stopPropagation(),N(e=>"password"===e?"text":"password")},[]);return e.jsxs("div",{className:"relative",children:[l?e.jsx("label",{htmlFor:l,className:xe("inline-block pb-1"),children:e.jsxs(dn,{as:"span",className:"footnote text-text",children:[l,s?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:xe("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"===w)&&!S&&"error"!==w&&"border-input-border-hover",(S||"focus"===w||"active"===w)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===w&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[d?e.jsx("div",{className:"mr-1",style:{width:h,height:h,overflow:"hidden"},children:e.jsx(cn,{name:d,fill:p?1:0,size:h,className:xe(v)})}):null,e.jsx("input",{ref:r,id:l,disabled:y||C.disabled,className:xe("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:a,type:O,...C,onMouseOver:()=>A(!0),onMouseOut:()=>A(!1),onFocus:e=>{var t;null===(t=C.onFocus)||void 0===t||t.call(C,e),T(!0)},onBlur:e=>{var t;null===(t=C.onBlur)||void 0===t||t.call(C,e),T(!1)}}),m?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:P,children:e.jsx(cn,{name:"text"===O?"visibility":"visibility_off",size:g,fill:f?1:0})}):null]}),"error"===w&&c&&""!=c?e.jsxs(dn,{className:xe("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx(cn,{name:"info",size:20,className:"mr-1"}),c||"Error"]}):null]})},lr=t.forwardRef(ar);lr.displayName="Input";const ur=e=>{const{address:t,mainText:n,postalCode:r}=e;if(!t)return{primaryText:n,secondaryText:"",value:n};const o=[t.addressLine1,t.addressLine2].filter(Boolean).join(", "),i=[t.city,t.state,t.postalCode||r].filter(Boolean).join(", ");return{primaryText:o||n,secondaryText:i,value:[o,i].filter(Boolean).join(", ")||n}},cr=t.forwardRef(({as:t,className:n="",...r},o)=>{const i=xe(n);if(t){const n=t;return e.jsx(n,{ref:o,className:i,...r})}return e.jsx("img",{ref:o,className:i,...r})});cr.displayName="Image";const dr=t=>{const{color:n="#fff",size:r="medium"}=t;return e.jsxs("div",{role:"status",className:"relative flex flex-row items-center",children:[e.jsxs("svg",{"aria-hidden":"true",className:xe("mr-2 h-5 w-5 animate-spin text-transparent",{small:"w-4 h-4",medium:"w-6 h-6",large:"w-8 h-8",xlarge:"w-12 h-12"}[r],t.className),style:{animation:"spin 0.75s linear infinite"},viewBox:"0 0 100 100",fill:n,children:[e.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),e.jsx("span",{className:"sr-only",children:"Loading..."})]})};dr.displayName="Spinner";const pr=t=>{const{showBlinkDot:n=!1,buttonStyle:r="primary",size:o="md",children:i,className:s,prefix:a,containerClassName:l,...u}=t,c=e.jsxs(mn,{...u,className:xe("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"}[o],{primary:"border-[0.727px] border-border text-text"}[r],s),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[o]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[o]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:xe("relative inline-flex items-center justify-center rounded-full bg-icon-brand",{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[o]),children:e.jsx(cn,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[o],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:i})]});return null==a||!1===a||""===a?c:e.jsxs("span",{className:xe("flex items-center gap-2",l),children:["string"==typeof a||"number"==typeof a?e.jsx("span",{className:"text-sm font-normal text-text",children:a}):a,c]})};function fr(e,n){t.useEffect(()=>{if("undefined"==typeof document)return;const t=window.innerWidth-document.documentElement.clientWidth;return document.body.style.marginRight=e?`${t}px`:"unset",document.body.style.overflow=e?"hidden":n?"unset":document.body.style.overflow,()=>{document.body.style.overflow="unset"}},[e,n])}pr.displayName="CallButton";var hr,mr={exports:{}},gr={},br={exports:{}},vr={exports:{}},yr={};var xr,Ir,Cr,wr,Er,Ar,Sr,Tr,Or,Nr,Pr,jr,Rr,kr,Lr,Br={};
|
|
17
|
+
var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=o(n.drain))}function s(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function a(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=s(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function u(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=s(e))?i(function(){var r=new p(n);try{t.call(e,function(){u.apply(r,arguments)},function(){c.apply(r,arguments)})}catch(e){c.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&i(a,n))}catch(e){c.call(new p(n),e)}}}function c(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(a,t))}function d(e,t,n,r){for(var o=0;o<t.length;o++)(function(o){e.resolve(t[o]).then(function(e){n(o,e)},r)})(o)}function p(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new f(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&i(a,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){u.call(t,e)},function(e){c.call(t,e)})}catch(e){c.call(t,e)}}n=function(){var e,n,r;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new o(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var m=e({},"constructor",h,!1);return h.prototype=m,e(m,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(h,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(h,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=e.length,i=Array(o),s=0;d(t,e,function(e,t){i[e]=t,++s===o&&n(i)},r)})}),e(h,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},r)})}),h},(n=Mn)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])});const Gn=new WeakMap;function Vn(e,t,n){const r=Gn.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),Gn.set(e.element,r)}function Fn(e,t){return(Gn.get(e.element)||{})[t]||[]}function _n(e,t,n){const r=Gn.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],Gn.set(e.element,r),!0;const o=r[t].indexOf(n);return-1!==o&&r[t].splice(o,1),Gn.set(e.element,r),r[t]&&0===r[t].length}function Hn(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function Wn(e,t,n){if(!e.element.contentWindow||!e.element.contentWindow.postMessage)return;let r={method:t};void 0!==n&&(r.value=n);const o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}function Xn(e,t){let n,r=[];if((t=Hn(t)).event){if("error"===t.event){Fn(e,t.data.method).forEach(n=>{const r=new Error(t.data.message);r.name=t.data.name,n.reject(r),_n(e,t.data.method,n)})}r=Fn(e,`event:${t.event}`),n=t.data}else if(t.method){const o=function(e,t){const n=Fn(e,t);if(n.length<1)return!1;const r=n.shift();return _n(e,t,r),r}(e,t.method);o&&(r.push(o),n=t.value)}r.forEach(t=>{try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}const zn=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","disable_context_menu","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Zn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return zn.reduce((t,n)=>{const r=e.getAttribute(`data-vimeo-${n}`);return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function Yn(e,t){let{html:n}=e;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");const r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function Un(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((r,o)=>{if(!Nn(e))throw new TypeError(`“${e}” is not a vimeo.com url.`);const i=function(e){const t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=[".videoji.hk",".vimeo.work",".videoji.cn"];for(const e of r)if(n.endsWith(e))return n;return"vimeo.com"}(e);let s=`https://${i}/api/oembed.json?url=${encodeURIComponent(e)}`;for(const e in t)t.hasOwnProperty(e)&&(s+=`&${e}=${encodeURIComponent(t[e])}`);const a="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;a.open("GET",s,!0),a.onload=function(){if(404!==a.status)if(403!==a.status)try{const t=JSON.parse(a.responseText);if(403===t.domain_status_code)return Yn(t,n),void o(new Error(`“${e}” is not embeddable.`));r(t)}catch(e){o(e)}else o(new Error(`“${e}” is not embeddable.`));else o(new Error(`“${e}” was not found.`))},a.onerror=function(){const e=a.status?` (${a.status})`:"";o(new Error(`There was an error fetching the embed code from Vimeo${e}.`))},a.send()})}const Jn={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1};class $n extends EventTarget{logger;constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;super(),this.logger=r,this.init(t,e,{...Jn,...n})}disconnect(){this.dispatchEvent(new Event("disconnect"))}async init(e,t,n){if(await this.waitForTOReadyState(e,"open"),"viewer"===n.role){await this.updatePlayer(e,t,n);const r=kn(e,"change",()=>this.updatePlayer(e,t,n)),o=this.maintainPlaybackPosition(e,t,n);this.addEventListener("disconnect",()=>{o.cancel(),r.cancel()})}else{await this.updateTimingObject(e,t);const n=kn(t,["seeked","play","pause","ratechange"],()=>this.updateTimingObject(e,t),"on","off");this.addEventListener("disconnect",()=>n.cancel())}}async updateTimingObject(e,t){const[n,r,o]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);e.update({position:n,velocity:r?0:o})}async updatePlayer(e,t,n){const{position:r,velocity:o}=e.query();"number"==typeof r&&t.setCurrentTime(r),"number"==typeof o&&(0===o?!1===await t.getPaused()&&t.pause():o>0&&(!0===await t.getPaused()&&(await t.play().catch(async e=>{"NotAllowedError"===e.name&&n.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(e=>console.error("Couldn't play the video from TimingSrcConnector. Error:",e)))}),this.updatePlayer(e,t,n)),await t.getPlaybackRate()!==o&&t.setPlaybackRate(o)))}maintainPlaybackPosition(e,t,n){const{allowedDrift:r,maxAllowedDrift:o,minCheckInterval:i,maxRateAdjustment:s,maxTimeToCatchUp:a}=n,l=1e3*Math.min(a,Math.max(i,o)),u=async()=>{if(0===e.query().velocity||!0===await t.getPaused())return;const n=e.query().position-await t.getCurrentTime(),i=Math.abs(n);if(this.log(`Drift: ${n}`),i>o)await this.adjustSpeed(t,0),t.setCurrentTime(e.query().position),this.log("Resync by currentTime");else if(i>r){const e=i/a,r=e<s?(s-e)/2:s;await this.adjustSpeed(t,r*Math.sign(n)),this.log("Resync by playbackRate")}},c=setInterval(()=>u(),l);return{cancel:()=>clearInterval(c)}}log(e){this.logger?.(`TimingSrcConnector: ${e}`)}speedAdjustment=0;adjustSpeed=async(e,t)=>{if(this.speedAdjustment===t)return;const n=await e.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate: ${n}`),await e.setPlaybackRate(n),this.speedAdjustment=t};waitForTOReadyState(e,t){return new Promise(n=>{const r=()=>{e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})};r()})}}const Kn=new WeakMap,Qn=new WeakMap;let qn={};class er{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){const t=e.querySelector("iframe");t&&(e=t)}if("IFRAME"===e.nodeName&&!Nn(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(Kn.has(e))return Kn.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";const n=new Dn((n,r)=>{if(this._onMessage=e=>{if(!Nn(e.origin)||this.element.contentWindow!==e.source)return;"*"===this.origin&&(this.origin=e.origin);const t=Hn(e.data);if(t&&"error"===t.event&&t.data&&"ready"===t.data.method){const e=new Error(t.data.message);return e.name=t.data.name,void r(e)}const o=t&&"ready"===t.event,i=t&&"ping"===t.method;if(o||i)return this.element.setAttribute("data-ready","true"),void n();Xn(this,t)},this._window.addEventListener("message",this._onMessage),"IFRAME"!==this.element.nodeName){const n=Zn(e,t);Un(Pn(n),n,e).then(t=>{const n=Yn(t,e);return this.element=n,this._originalElement=e,function(e,t){const n=Gn.get(e);Gn.set(t,n),Gn.delete(e)}(e,n),Kn.set(this.element,this),t}).catch(r)}});if(Qn.set(this,n),Kn.set(this.element,this),"IFRAME"===this.element.nodeName&&Wn(this,"ping"),qn.isEnabled){const e=()=>qn.exit();this.fullscreenchangeHandler=()=>{qn.isFullscreen?Vn(this,"event:exitFullscreen",e):_n(this,"event:exitFullscreen",e),this.ready().then(()=>{Wn(this,"fullscreenchange",qn.isFullscreen)})},qn.on("fullscreenchange",this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return Nn(e)}callMethod(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("You must pass a method name.");return new Dn((t,r)=>this.ready().then(()=>{Vn(this,e,{resolve:t,reject:r}),0===n.length?n={}:1===n.length&&(n=n[0]),Wn(this,e,n)}).catch(r))}get(e){return new Dn((t,n)=>(e=On(e,"get"),this.ready().then(()=>{Vn(this,e,{resolve:t,reject:n}),Wn(this,e)}).catch(n)))}set(e,t){return new Dn((n,r)=>{if(e=On(e,"set"),null==t)throw new TypeError("There must be a value to set.");return this.ready().then(()=>{Vn(this,e,{resolve:n,reject:r}),Wn(this,e,t)}).catch(r)})}on(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===Fn(this,`event:${e}`).length&&this.callMethod("addEventListener",e).catch(()=>{}),Vn(this,`event:${e}`,t)}off(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");_n(this,`event:${e}`,t)&&this.callMethod("removeEventListener",e).catch(e=>{})}loadVideo(e){return this.callMethod("loadVideo",e)}ready(){const e=Qn.get(this)||new Dn((e,t)=>{t(new Error("Unknown player. Probably unloaded."))});return Dn.resolve(e)}addCuePoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}removeCuePoint(e){return this.callMethod("removeCuePoint",e)}enableTextTrack(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t,showing:n})}disableTextTrack(){return this.callMethod("disableTextTrack")}selectAudioTrack(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:t})}selectDefaultAudioTrack(){return this.callMethod("selectDefaultAudioTrack")}pause(){return this.callMethod("pause")}play(){return this.callMethod("play")}requestFullscreen(){return qn.isEnabled?qn.request(this.element):this.callMethod("requestFullscreen")}exitFullscreen(){return qn.isEnabled?qn.exit():this.callMethod("exitFullscreen")}getFullscreen(){return qn.isEnabled?Dn.resolve(qn.isFullscreen):this.get("fullscreen")}requestPictureInPicture(){return this.callMethod("requestPictureInPicture")}exitPictureInPicture(){return this.callMethod("exitPictureInPicture")}getPictureInPicture(){return this.get("pictureInPicture")}remotePlaybackPrompt(){return this.callMethod("remotePlaybackPrompt")}unload(){return this.callMethod("unload")}destroy(){return new Dn(e=>{if(Qn.delete(this),Kn.delete(this.element),this._originalElement&&(Kn.delete(this._originalElement),this._originalElement.removeAttribute("data-vimeo-initialized")),this.element&&"IFRAME"===this.element.nodeName&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&"DIV"===this.element.nodeName&&this.element.parentNode){this.element.removeAttribute("data-vimeo-initialized");const e=this.element.querySelector("iframe");e&&e.parentNode&&(e.parentNode.parentNode&&this._originalElement&&this._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))}this._window.removeEventListener("message",this._onMessage),qn.isEnabled&&qn.off("fullscreenchange",this.fullscreenchangeHandler),e()})}getAutopause(){return this.get("autopause")}setAutopause(e){return this.set("autopause",e)}getBuffered(){return this.get("buffered")}getCameraProps(){return this.get("cameraProps")}setCameraProps(e){return this.set("cameraProps",e)}getChapters(){return this.get("chapters")}getCurrentChapter(){return this.get("currentChapter")}getColor(){return this.get("color")}getColors(){return Dn.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}setColor(e){return this.set("color",e)}setColors(e){if(!Array.isArray(e))return new Dn((e,t)=>t(new TypeError("Argument must be an array.")));const t=new Dn(e=>e(null)),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return Dn.all(n)}getCuePoints(){return this.get("cuePoints")}getCurrentTime(){return this.get("currentTime")}setCurrentTime(e){return this.set("currentTime",e)}getDuration(){return this.get("duration")}getEnded(){return this.get("ended")}getLoop(){return this.get("loop")}setLoop(e){return this.set("loop",e)}setMuted(e){return this.set("muted",e)}getMuted(){return this.get("muted")}getPaused(){return this.get("paused")}getPlaybackRate(){return this.get("playbackRate")}setPlaybackRate(e){return this.set("playbackRate",e)}getPlayed(){return this.get("played")}getQualities(){return this.get("qualities")}getQuality(){return this.get("quality")}setQuality(e){return this.set("quality",e)}getRemotePlaybackAvailability(){return this.get("remotePlaybackAvailability")}getRemotePlaybackState(){return this.get("remotePlaybackState")}getSeekable(){return this.get("seekable")}getSeeking(){return this.get("seeking")}getTextTracks(){return this.get("textTracks")}getAudioTracks(){return this.get("audioTracks")}getEnabledAudioTrack(){return this.get("enabledAudioTrack")}getDefaultAudioTrack(){return this.get("defaultAudioTrack")}getVideoEmbedCode(){return this.get("videoEmbedCode")}getVideoId(){return this.get("videoId")}getVideoTitle(){return this.get("videoTitle")}getVideoWidth(){return this.get("videoWidth")}getVideoHeight(){return this.get("videoHeight")}getVideoUrl(){return this.get("videoUrl")}getVolume(){return this.get("volume")}setVolume(e){return this.set("volume",e)}async setTimingSrc(e,t){if(!e)throw new TypeError("A Timing Object must be provided.");await this.ready();const n=new $n(this,e,t);return Wn(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",()=>Wn(this,"notifyTimingObjectDisconnect")),n}}Tn||(qn=function(){const e=function(){let e;const t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let n=0;const r=t.length,o={};for(;n<r;n++)if(e=t[n],e&&e[1]in document){for(n=0;n<e.length;n++)o[t[0][n]]=e[n];return o}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:t=>new Promise((r,o)=>{const i=function(){n.off("fullscreenchange",i),r()};n.on("fullscreenchange",i);const s=(t=t||document.documentElement)[e.requestFullscreen]();s instanceof Promise&&s.then(i).catch(o)}),exit:()=>new Promise((t,r)=>{if(!n.isFullscreen)return void t();const o=function(){n.off("fullscreenchange",o),t()};n.on("fullscreenchange",o);const i=document[e.exitFullscreen]();i instanceof Promise&&i.then(o).catch(r)}),on(e,n){const r=t[e];r&&document.addEventListener(r,n)},off(e,n){const r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:()=>Boolean(document[e.fullscreenElement])},element:{enumerable:!0,get:()=>document[e.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(document[e.fullscreenEnabled])}}),n}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=e=>{"console"in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(e=>{try{if(null!==e.getAttribute("data-vimeo-defer"))return;const t=Zn(e);Un(Pn(t),t,e).then(t=>Yn(t,e)).catch(n)}catch(e){n(e)}})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoPlayerResizeEmbeds_)return;window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",t=>{if(!Nn(t.origin))return;if(!t.data||"spacechange"!==t.data.event)return;const n=t.source?Rn(t.source,e):null;n&&(n.parentElement.style.paddingBottom=`${t.data.data[0].bottom}px`)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoSeoMetadataAppended)return;window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",t=>{if(!Nn(t.origin))return;const n=Hn(t.data);if(!n||"ready"!==n.event)return;const r=t.source?Rn(t.source,e):null;r&&jn(r.src)&&new er(r).callMethod("appendVideoMetadata",window.location.href)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;window.VimeoCheckedUrlTimeParam=!0;const t=e=>{"console"in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener("message",n=>{if(!Nn(n.origin))return;const r=Hn(n.data);if(!r||"ready"!==r.event)return;const o=n.source?Rn(n.source,e):null;if(o&&jn(o.src)){const e=new er(o);e.getVideoId().then(t=>{const n=new RegExp(`[?&]vimeo_t_${t}=([^&#]*)`).exec(window.location.href);if(n&&n[1]){const t=decodeURI(n[1]);e.setCurrentTime(t)}}).catch(t)}})}(),function(){if(window.VimeoDRMEmbedsUpdated)return;window.VimeoDRMEmbedsUpdated=!0,window.addEventListener("message",e=>{if(!Nn(e.origin))return;const t=Hn(e.data);if(!t||"drminitfailed"!==t.event)return;const n=e.source?Rn(e.source):null;if(!n)return;const r=n.getAttribute("allow")||"";if(!r.includes("encrypted-media")){n.setAttribute("allow",`${r}; encrypted-media`);const e=new URL(n.getAttribute("src"));return e.searchParams.set("forcereload","drm"),void n.setAttribute("src",e.toString())}})}());const tr=e=>{let t=e.split(/[?#]/)[0];for(;t.endsWith("/");)t=t.slice(0,-1);const n=t.split("/").filter(Boolean),r=n.findIndex(e=>"vimeo.com"===e||"player.vimeo.com"===e);if(-1===r)return"";const o=n.find((e,t)=>t>r&&/^\d{6,}$/.test(e));if(!o)return"";const i=n[n.length-1];return o===i?o:`${o}/${i}`},nr=n=>{const{link:r,title:o,containerClassName:i,autoplay:s=!1,debug:a=!1,onPlay:l,onPause:u,onTimeUpdate:c,onEnded:d,onFullscreenToggle:p}=n,f=t.useRef(null),{href:h,embedId:m}=t.useMemo(()=>{if(!r)return{href:"",embedId:""};const e=r.toString();return{href:e,embedId:tr(e)}},[r]);if(a&&console.log("[VimeoEmbed] href:",h,"id:",m),t.useEffect(()=>{if(!m||!f.current)return;const e=new er(f.current),t=()=>null==l?void 0:l(),n=()=>null==u?void 0:u(),r=()=>null==d?void 0:d(),o=e=>null==c?void 0:c(e.seconds,e.duration),i=e=>null==p?void 0:p(e.fullscreen);return e.on("play",t),e.on("pause",n),e.on("ended",r),e.on("timeupdate",o),e.on("fullscreenchange",i),()=>{e.off("play",t),e.off("pause",n),e.off("ended",r),e.off("timeupdate",o),e.off("fullscreenchange",i),e.destroy().catch(()=>{})}},[m]),!m)return null;const g=new URLSearchParams({autoplay:s?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}),b=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/${m}?${g.toString()}`);return e.jsx("div",{className:xe("relative h-0 w-full overflow-hidden pb-[56.25%]",i),children:e.jsx("iframe",{ref:f,className:"absolute left-0 top-0 h-full w-full",src:b,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:o||"Embedded vimeo"})})};let rr=null;const or=e=>{if(!e)return"";const t=e.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return t&&11===t[7].length?t[7]:""},ir=n=>{const{link:r,title:o,containerClassName:i,autoplay:s=!1,onPlay:a,onPause:l,onTimeUpdate:u,onEnded:c,onFullscreenToggle:d}=n,p=t.useMemo(()=>or(r),[r]),f=t.useRef(null),h=t.useRef();if(xn(f,d),t.useEffect(()=>{if(!p||!f.current)return;let e,t=!1;return function(){var e;return"undefined"==typeof window?Promise.reject(new Error("YouTube IFrame API requires a browser")):(null===(e=window.YT)||void 0===e?void 0:e.Player)?Promise.resolve(window.YT):rr||(rr=new Promise((e,t)=>{const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{null==n||n(),e(window.YT)};let r=document.querySelector('script[src*="youtube.com/iframe_api"]');r||(r=document.createElement("script"),r.src="https://www.youtube.com/iframe_api",r.onerror=()=>{rr=null,t(new Error("Failed to load YouTube IFrame API"))},document.head.appendChild(r))}),rr)}().then(n=>{!t&&f.current&&(e=new n.Player(f.current,{events:{onStateChange:t=>{const r=n.PlayerState;t.data===r.PLAYING?(null==a||a(),clearInterval(h.current),h.current=setInterval(()=>{var t,n,r,o;const i=null!==(n=null===(t=null==e?void 0:e.getDuration)||void 0===t?void 0:t.call(e))&&void 0!==n?n:0,s=null!==(o=null===(r=null==e?void 0:e.getCurrentTime)||void 0===r?void 0:r.call(e))&&void 0!==o?o:0;null==u||u(s,i)},1e3)):t.data===r.PAUSED?(null==l||l(),clearInterval(h.current)):t.data===r.ENDED&&(null==c||c(),clearInterval(h.current))}}}))}).catch(()=>{}),()=>{var n;t=!0,clearInterval(h.current);try{null===(n=null==e?void 0:e.destroy)||void 0===n||n.call(e)}catch(e){}}},[p]),!p)return null;const m=new URLSearchParams({enablejsapi:"1",autoplay:s?"1":"0",mute:s?"1":"0",playsinline:"1",rel:"0"}),g=`https://www.youtube.com/embed/${p}?${m.toString()}`;return e.jsx("div",{className:xe("relative h-full w-full overflow-hidden pb-[56.25%]",i),children:e.jsx("iframe",{ref:f,className:"absolute left-0 top-0 h-full w-full",src:g,title:o||"Embedded youtube",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})})},sr=(e=>{let t=e;for(let e=0;e<5;e++){if("function"==typeof t)return t;if(!t||"object"!=typeof t||!("default"in t))return t;t=t.default}return t})(r),ar=({src:e,width:t,quality:n})=>{const r=e.startsWith("//")?`https:${e}`:e;let o;try{o=new URL(r)}catch(t){return e}return o.searchParams.set("w",String(t)),o.searchParams.set("q",String(n||90)),o.searchParams.set("fm","webp"),o.toString()},lr=t.forwardRef(({className:t,...n},r)=>{const o="string"==typeof n.src?n.src:"",i=o.toLowerCase().split("?")[0]||"",s=o.includes("images.ctfassets.net"),a=s&&i.endsWith(".svg"),l=s&&!a?{loader:ar,unoptimized:!1}:{unoptimized:a};return e.jsx(sr,{ref:r,className:xe(t),...n,...l})});lr.displayName="NextImage";const ur=[25,50,75];const cr=({videoLink:n,imageWidth:r=660,imageHeight:o=660,useOriginalImageAspectRatio:i=!1,isAboveTheFold:s=!1,onVideoEvent:a})=>{var l;const[u,c]=t.useState(""),[d,p]=t.useState(!1),f=function(e){const n=t.useRef(new Set),r=t.useRef(!1),o=t.useRef(0),i=t.useRef(0),s=(t,n,r)=>{e&&e(n,{videoId:t.videoId,videoTitle:t.videoTitle,provider:t.provider,position:o.current,duration:i.current,percentComplete:i.current>0?Math.min(100,Math.round(o.current/i.current*100)):0,...r})};return{handlePlay:e=>s(e,"played"),handlePause:e=>s(e,"paused"),handleFullscreenToggle:(e,t)=>s(e,"fullscreen_toggled",{isFullscreen:t}),handleClosed:e=>s(e,"closed"),handleTimeUpdate:(e,t,a)=>{const l=Number.isFinite(t)?t:0,u=Number.isFinite(a)?a:0;if(o.current=l,i.current=u,u<=0)return;const c=Math.min(100,l/u*100);ur.forEach(t=>{c>=t&&!n.current.has(t)&&(n.current.add(t),s(e,"progress"))}),c>=99.5&&!r.current&&(r.current=!0,s(e,"completed"))},handleEnded:e=>{r.current||(r.current=!0,i.current>0&&(o.current=i.current),s(e,"completed"))},reset:()=>{n.current=new Set,r.current=!1,o.current=0,i.current=0}}}(a),h=null==n?void 0:n.videoSourceType,m="contentful"===h?null==n?void 0:n.videoAssetUrl:null==n?void 0:n.link,g="string"==typeof m?m:"",b=null==n?void 0:n.image;if(!g)return b?e.jsx("div",{className:xe(i?"overflow-hidden rounded-image":"relative mx-auto aspect-[16/9] w-full overflow-hidden rounded-image lg:h-[486px] xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:e.jsx(lr,{src:b,alt:"section-image",priority:s,fill:!i,width:i?r||660:void 0,height:i?o||660:void 0,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:xe(i?"w-full":"object-cover")})}):null;const v=null!==(l=null==n?void 0:n.videoPopup)&&void 0!==l&&l,y=Boolean(u&&u===g),x="contentful"===h?"contentful":g.includes("vimeo")?"vimeo":"youtube",I="contentful"===x?(e=>{var t;if("string"!=typeof e||!e)return"";const[n]=e.split(/[?#]/);return null!==(t=n.split("/").filter(Boolean).pop())&&void 0!==t?t:e})(null==n?void 0:n.videoAssetUrl):"vimeo"===x?(C=g)?tr(C.toString()):"":or(g);var C;const w={videoId:I,videoTitle:null==n?void 0:n.title,provider:x},E=()=>{y||(f.reset(),c(g))},A=e=>{e.stopPropagation(),f.handleClosed(w),c("")},S="string"==typeof(null==n?void 0:n.title)?n.title.trim():"",T=S?`${S} video preview`:"Video preview",O=S?`Play video: ${S}`:"Play video",N=(()=>{const t={onPlay:()=>f.handlePlay(w),onPause:()=>f.handlePause(w),onTimeUpdate:(e,t)=>f.handleTimeUpdate(w,e,t),onEnded:()=>f.handleEnded(w),onFullscreenToggle:e=>f.handleFullscreenToggle(w,e)},r=y?"playing":"idle";return"contentful"===h?e.jsx(In,{videoAssetUrl:null==n?void 0:n.videoAssetUrl,videoAssetType:null==n?void 0:n.videoAssetType,image:b,title:null==n?void 0:n.title,description:null==n?void 0:n.description,autoplay:y,...t},r):g.includes("vimeo")?e.jsx(nr,{link:g,title:null==n?void 0:n.title,autoplay:y,...t},r):e.jsx(ir,{link:g,title:null==n?void 0:n.title,autoplay:y,...t},r)})();return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:xe("video-section relative mx-auto w-full cursor-pointer rounded-image transition-all duration-300 lg:w-[486px]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",!y&&"hover:ring-2 hover:ring-border-focus"),onClick:E,onKeyDown:e=>{y||"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),E())},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),role:y?void 0:"button",tabIndex:y?void 0:0,"aria-label":y?void 0:O,children:[e.jsxs("div",{className:xe(y&&!v&&"hidden",y&&!v?"opacity-0":"opacity-100","relative w-full transition-opacity duration-300"),children:[b&&e.jsx(lr,{src:b,alt:T,width:r||660,height:o||660,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:"h-auto w-full rounded-image"}),e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx(Cn,{isHovered:d})})]}),!v&&e.jsx("div",{className:xe("aspect-[16/9] w-full overflow-hidden rounded-image transition-opacity duration-300",y?"opacity-100":"hidden",!i&&"xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:N})]}),v&&e.jsx("div",{className:xe("z-[100] transition-all duration-300",y?"fixed inset-0 flex items-center justify-center p-4":"hidden"),onClick:A,children:e.jsxs("div",{"data-testid":"video-popup-content",className:"relative aspect-video w-[min(100%,calc(80vh*16/9))] max-w-[1280px] overflow-hidden rounded-2xl bg-black shadow-2xl md:rounded-3xl",onClick:e=>e.stopPropagation(),children:[e.jsx("button",{type:"button",onClick:A,"aria-label":"Close video","data-testid":"video-popup-close",className:"absolute right-3 top-3 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-black/60 text-white transition-colors hover:bg-black/80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white sm:right-4 sm:top-4 sm:h-10 sm:w-10",children:e.jsx(hn,{name:"close",className:"text-white"})}),N]})})]})},dr=e=>Array.isArray(null==e?void 0:e.content)&&e.content.every(e=>"text"===(null==e?void 0:e.nodeType)&&(!e.value||""===e.value.trim())),pr=(e,t)=>{var n,r,o,i,s,a,l,u;const c=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.target;if((null==c?void 0:c.fields)||(null===(r=null==c?void 0:c.sys)||void 0===r?void 0:r.contentType))return c;const d=null===(o=null==c?void 0:c.sys)||void 0===o?void 0:o.id;if(!d)return null;return null!==(u=[...null!==(s=null===(i=null==t?void 0:t.entries)||void 0===i?void 0:i.block)&&void 0!==s?s:[],...null!==(l=null===(a=null==t?void 0:t.entries)||void 0===a?void 0:a.inline)&&void 0!==l?l:[]].find(e=>{var t;return(null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.id)===d}))&&void 0!==u?u:null},fr=e=>{var t,n,r,o,i;return null!==(i=null!==(o=null===(r=null===(n=null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.contentType)||void 0===n?void 0:n.sys)||void 0===r?void 0:r.id)&&void 0!==o?o:null==e?void 0:e.__typename)&&void 0!==i?i:""},hr=e=>{var t,n;return null!==(n=null!==(t=null==e?void 0:e.fields)&&void 0!==t?t:e)&&void 0!==n?n:{}},mr=e=>{var t,n,r,o,i,s,a,l,u,c,d,p,f,h,m,g,b,v,y,x,I,C,w;return{image:null!==(s=null!==(o=null===(r=null===(n=null===(t=null==e?void 0:e.image)||void 0===t?void 0:t.fields)||void 0===n?void 0:n.file)||void 0===r?void 0:r.url)&&void 0!==o?o:null===(i=null==e?void 0:e.image)||void 0===i?void 0:i.url)&&void 0!==s?s:null==e?void 0:e.image,link:"string"==typeof(null==e?void 0:e.link)?e.link:null!==(u=null===(l=null===(a=null==e?void 0:e.link)||void 0===a?void 0:a.fields)||void 0===l?void 0:l.href)&&void 0!==u?u:null===(c=null==e?void 0:e.link)||void 0===c?void 0:c.href,videoPopup:Boolean(null==e?void 0:e.videoPopup),videoSourceType:null==e?void 0:e.videoSourceType,videoAssetUrl:null!==(g=null!==(h=null===(f=null===(p=null===(d=null==e?void 0:e.videoAssetUrl)||void 0===d?void 0:d.fields)||void 0===p?void 0:p.file)||void 0===f?void 0:f.url)&&void 0!==h?h:null===(m=null==e?void 0:e.videoAssetUrl)||void 0===m?void 0:m.url)&&void 0!==g?g:null==e?void 0:e.videoAssetUrl,videoAssetType:null!==(C=null!==(x=null===(y=null===(v=null===(b=null==e?void 0:e.videoAssetUrl)||void 0===b?void 0:b.fields)||void 0===v?void 0:v.file)||void 0===y?void 0:y.contentType)&&void 0!==x?x:null===(I=null==e?void 0:e.videoAssetUrl)||void 0===I?void 0:I.contentType)&&void 0!==C?C:null==e?void 0:e.videoAssetType,title:null!==(w=null==e?void 0:e.title)&&void 0!==w?w:null==e?void 0:e.entryTitle,description:null==e?void 0:e.description}},gr=e=>{if(!e)return"";try{const t=/^https?:\/\//i.test(e)?e:`https://${e}`;return new URL(t).hostname.toLowerCase()}catch(e){return""}},br=e=>{const t=e.toLowerCase().replace(/\.$/,""),n=t.split(".").slice(-2).join("."),r=(t.slice(0,t.length-n.length).replace(/\.$/,"").split(".")[0]||"").replace(/-(dev|development|staging|stage|qa|test|uat|prod|production)$/,"");return`${n}|${""===r||"www"===r||"kinetic"===r?"main":r}`},vr=e=>{if(!/^https?:\/\//i.test(e))return!1;try{const t=new URL(e).hostname.toLowerCase(),n=gr(process.env.NEXT_PUBLIC_SITE_URL)||gr(process.env.NEXT_PUBLIC_MAIN_SITE_URL)||("undefined"!=typeof window?window.location.hostname.toLowerCase():"");return!n||br(t)!==br(n)}catch(e){return!1}},yr=t=>({renderText:t=>t.includes("[")&&t.includes("]")?(t=>{const n=/\[([a-zA-Z0-9_-]+)\]/g,r=[];let o,i=0;for(;null!==(o=n.exec(t));)o.index>i&&r.push(t.substring(i,o.index)),r.push(e.jsx(hn,{name:o[1],size:20,className:"inline-block align-middle"},`icon-${o.index}-${o[1]}`)),i=o.index+o[0].length;return i<t.length&&r.push(t.substring(i)),r.length>0?r:[t]})(t):t,renderMark:{[It.BOLD]:t=>e.jsx("strong",{className:"font-black",children:t}),[It.ITALIC]:t=>e.jsx("em",{children:t}),[It.UNDERLINE]:t=>e.jsx("u",{children:t}),[It.CODE]:t=>e.jsx("code",{children:t})},renderNode:{[yt.PARAGRAPH]:(t,n)=>e.jsx("div",{className:"body3 mb-4 whitespace-pre-line",children:dr(t)?"\n":n}),[yt.HEADING_1]:(t,n)=>e.jsx(mn,{as:"h1",className:"heading2 md:heading1",children:n}),[yt.HEADING_2]:(t,n)=>e.jsx(mn,{as:"h2",className:"heading3 md:heading2",children:n}),[yt.HEADING_3]:(t,n)=>e.jsx(mn,{as:"h3",className:"heading4 md:heading3",children:n}),[yt.HEADING_4]:(t,n)=>e.jsx(mn,{as:"h4",className:"heading5 md:heading4",children:n}),[yt.HEADING_5]:(t,n)=>e.jsx(mn,{as:"h5",className:"heading6 md:heading5",children:n}),[yt.HEADING_6]:(t,n)=>e.jsx(mn,{as:"h6",className:"heading6",children:n}),[yt.QUOTE]:(t,n)=>e.jsx("blockquote",{children:n}),[yt.UL_LIST]:(t,n)=>e.jsx("ul",{className:"list-disc pl-6",children:n}),[yt.OL_LIST]:(t,n)=>e.jsx("ol",{className:"list-decimal pl-6",children:n}),[yt.LIST_ITEM]:(t,n)=>e.jsx("li",{children:n}),[xt.HYPERLINK]:(t,n)=>{var r;const o=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.uri,i=vr(o);return e.jsx("a",{href:o,target:i?"_blank":void 0,rel:i?"noopener":void 0,children:n})},[yt.EMBEDDED_ASSET]:t=>{var n,r;const o=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target,i=null==o?void 0:o.fields,s=(null==o?void 0:o.url)||(null===(r=null==i?void 0:i.file)||void 0===r?void 0:r.url),a=(null==i?void 0:i.title)||(null==i?void 0:i.description)||"Embedded asset";if(!s)return null;const l=s.startsWith("//")?`https:${s}`:s;return e.jsx("img",{src:l,alt:a,style:{maxWidth:"100%"}})},[yt.EMBEDDED_ENTRY]:n=>{const r=pr(n,t);if(!r)return null;const o=fr(r),i=hr(r);switch(o){case"callout":return e.jsxs("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[e.jsx("strong",{children:i.title}),e.jsx("div",{children:i.body})]});case"componentVideoLink":case"ComponentVideoLink":return e.jsx(cr,{videoLink:mr(i)});default:return null}},[xt.EMBEDDED_ENTRY]:n=>{var r;const o=pr(n,t);if(!o)return null;const i=fr(o),s=hr(o);switch(i){case"componentCheckList":return e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",s.title]});case"componentVideoLink":case"ComponentVideoLink":return e.jsx(cr,{videoLink:mr(s)});default:return e.jsx("span",{children:null!==(r=null==s?void 0:s.title)&&void 0!==r?r:""})}}}});function xr(t,n,r="body1",o="body1 font-bold",i,s,a="body2"){if(!t||!Array.isArray(t.content))return null;const l=new WeakSet,u=(e,t=!1)=>{var n;const r=t||(null==e?void 0:e.nodeType)===yt.LIST_ITEM;r&&(null==e?void 0:e.nodeType)===xt.HYPERLINK&&l.add(e),null===(n=null==e?void 0:e.content)||void 0===n||n.forEach(e=>u(e,r))};u(t);const c=yr(s),d={...c,...i,renderNode:{...c.renderNode,[yt.PARAGRAPH]:(t,n)=>e.jsx("div",{className:[r,"whitespace-pre-line"].filter(Boolean).join(" "),children:dr(t)?"\n":n}),[xt.HYPERLINK]:(t,r)=>{var i;const s=null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.uri,u=vr(s),c=null!=n?n:u;return e.jsx(yn,{href:s,target:c?"_blank":void 0,rel:c?"noopener":void 0,variant:"default",className:l.has(t)?a:o,children:r})}}};return vt.documentToReactComponents(t,d)}const Ir=t.forwardRef(({children:t,className:n="",style:r,disabled:o,...i},s)=>e.jsx("button",{ref:s,className:xe(n),style:r,disabled:o,...i,children:t}));Ir.displayName="Button";const Cr=(n,r)=>{const{className:o,size:i,required:s,placeholder:a,label:l,state:u,errorText:c,prefixIconName:d,prefixIconFill:p=!0,suffixIconFill:f=!1,prefixIconSize:h=24,suffixIconName:m,suffixIconSize:g=24,containerClassName:b,prefixIconClassName:v,loading:y,hasError:x,type:I,...C}=n,w=x?"error":u,[E,A]=t.useState(!1),[S,T]=t.useState(!1),[O,N]=t.useState(I||"text"),j=t.useCallback(e=>{e.stopPropagation(),N(e=>"password"===e?"text":"password")},[]);return e.jsxs("div",{className:"relative",children:[l?e.jsx("label",{htmlFor:l,className:xe("inline-block pb-1"),children:e.jsxs(mn,{as:"span",className:"footnote text-text",children:[l,s?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:xe("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"===w)&&!S&&"error"!==w&&"border-input-border-hover",(S||"focus"===w||"active"===w)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===w&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[d?e.jsx("div",{className:"mr-1",style:{width:h,height:h,overflow:"hidden"},children:e.jsx(hn,{name:d,fill:p?1:0,size:h,className:xe(v)})}):null,e.jsx("input",{ref:r,id:l,disabled:y||C.disabled,className:xe("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:a,type:O,...C,onMouseOver:()=>A(!0),onMouseOut:()=>A(!1),onFocus:e=>{var t;null===(t=C.onFocus)||void 0===t||t.call(C,e),T(!0)},onBlur:e=>{var t;null===(t=C.onBlur)||void 0===t||t.call(C,e),T(!1)}}),m?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:j,children:e.jsx(hn,{name:"text"===O?"visibility":"visibility_off",size:g,fill:f?1:0})}):null]}),"error"===w&&c&&""!=c?e.jsxs(mn,{className:xe("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx(hn,{name:"info",size:20,className:"mr-1"}),c||"Error"]}):null]})},wr=t.forwardRef(Cr);wr.displayName="Input";const Er=e=>{const{address:t,mainText:n,postalCode:r}=e;if(!t)return{primaryText:n,secondaryText:"",value:n};const o=[t.addressLine1,t.addressLine2].filter(Boolean).join(", "),i=[t.city,t.state,t.postalCode||r].filter(Boolean).join(", ");return{primaryText:o||n,secondaryText:i,value:[o,i].filter(Boolean).join(", ")||n}},Ar=t.forwardRef(({as:t,className:n="",...r},o)=>{const i=xe(n);if(t){const n=t;return e.jsx(n,{ref:o,className:i,...r})}return e.jsx("img",{ref:o,className:i,...r})});Ar.displayName="Image";const Sr=t=>{const{color:n="#fff",size:r="medium"}=t;return e.jsxs("div",{role:"status",className:"relative flex flex-row items-center",children:[e.jsxs("svg",{"aria-hidden":"true",className:xe("mr-2 h-5 w-5 animate-spin text-transparent",{small:"w-4 h-4",medium:"w-6 h-6",large:"w-8 h-8",xlarge:"w-12 h-12"}[r],t.className),style:{animation:"spin 0.75s linear infinite"},viewBox:"0 0 100 100",fill:n,children:[e.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),e.jsx("span",{className:"sr-only",children:"Loading..."})]})};Sr.displayName="Spinner";const Tr=t=>{const{showBlinkDot:n=!1,buttonStyle:r="primary",size:o="md",children:i,className:s,prefix:a,containerClassName:l,...u}=t,c=e.jsxs(yn,{...u,className:xe("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"}[o],{primary:"border-[0.727px] border-border text-text"}[r],s),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[o]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[o]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:xe("relative inline-flex items-center justify-center rounded-full bg-icon-brand",{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[o]),children:e.jsx(hn,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[o],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:i})]});return null==a||!1===a||""===a?c:e.jsxs("span",{className:xe("flex items-center gap-2",l),children:["string"==typeof a||"number"==typeof a?e.jsx("span",{className:"text-sm font-normal text-text",children:a}):a,c]})};function Or(e,n){t.useEffect(()=>{if("undefined"==typeof document)return;const t=window.innerWidth-document.documentElement.clientWidth;return document.body.style.marginRight=e?`${t}px`:"unset",document.body.style.overflow=e?"hidden":n?"unset":document.body.style.overflow,()=>{document.body.style.overflow="unset"}},[e,n])}Tr.displayName="CallButton";var Nr,jr={exports:{}},Pr={},kr={exports:{}},Rr={exports:{}},Lr={};var Br,Mr,Dr,Gr,Vr,Fr,_r,Hr,Wr,Xr,zr,Zr,Yr,Ur,Jr,$r={};
|
|
18
18
|
/** @license React v16.13.1
|
|
19
19
|
* react-is.development.js
|
|
20
20
|
*
|
|
@@ -22,12 +22,12 @@ var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,o="undefined"!=type
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/function
|
|
25
|
+
*/function Kr(){return Mr||(Mr=1,"production"===process.env.NODE_ENV?Rr.exports=function(){if(Nr)return Lr;Nr=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case a:case c:case h:case f:case s:return e;default:return p}}case n:return p}}}function x(e){return y(e)===u}return Lr.AsyncMode=l,Lr.ConcurrentMode=u,Lr.ContextConsumer=a,Lr.ContextProvider=s,Lr.Element=t,Lr.ForwardRef=c,Lr.Fragment=r,Lr.Lazy=h,Lr.Memo=f,Lr.Portal=n,Lr.Profiler=i,Lr.StrictMode=o,Lr.Suspense=d,Lr.isAsyncMode=function(e){return x(e)||y(e)===l},Lr.isConcurrentMode=x,Lr.isContextConsumer=function(e){return y(e)===a},Lr.isContextProvider=function(e){return y(e)===s},Lr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Lr.isForwardRef=function(e){return y(e)===c},Lr.isFragment=function(e){return y(e)===r},Lr.isLazy=function(e){return y(e)===h},Lr.isMemo=function(e){return y(e)===f},Lr.isPortal=function(e){return y(e)===n},Lr.isProfiler=function(e){return y(e)===i},Lr.isStrictMode=function(e){return y(e)===o},Lr.isSuspense=function(e){return y(e)===d},Lr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===s||e.$$typeof===a||e.$$typeof===c||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},Lr.typeOf=y,Lr}():Rr.exports=(Br||(Br=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case l:case u:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case a:case c:case h:case f:case s:return g;default:return p}}case n:return p}}}var x=l,I=u,C=a,w=s,E=t,A=c,S=r,T=h,O=f,N=n,j=i,P=o,k=d,R=!1;function L(e){return y(e)===u}$r.AsyncMode=x,$r.ConcurrentMode=I,$r.ContextConsumer=C,$r.ContextProvider=w,$r.Element=E,$r.ForwardRef=A,$r.Fragment=S,$r.Lazy=T,$r.Memo=O,$r.Portal=N,$r.Profiler=j,$r.StrictMode=P,$r.Suspense=k,$r.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||y(e)===l},$r.isConcurrentMode=L,$r.isContextConsumer=function(e){return y(e)===a},$r.isContextProvider=function(e){return y(e)===s},$r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},$r.isForwardRef=function(e){return y(e)===c},$r.isFragment=function(e){return y(e)===r},$r.isLazy=function(e){return y(e)===h},$r.isMemo=function(e){return y(e)===f},$r.isPortal=function(e){return y(e)===n},$r.isProfiler=function(e){return y(e)===i},$r.isStrictMode=function(e){return y(e)===o},$r.isSuspense=function(e){return y(e)===d},$r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===s||e.$$typeof===a||e.$$typeof===c||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},$r.typeOf=y}()),$r)),Rr.exports}
|
|
26
26
|
/*
|
|
27
27
|
object-assign
|
|
28
28
|
(c) Sindre Sorhus
|
|
29
29
|
@license MIT
|
|
30
|
-
*/function Gr(){if(wr)return Cr;wr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Cr=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))t.call(i,u)&&(a[u]=i[u]);if(e){s=e(i);for(var c=0;c<s.length;c++)n.call(i,s[c])&&(a[s[c]]=i[s[c]])}}return a},Cr}function Dr(){if(Ar)return Er;Ar=1;return Er="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Vr(){return Tr?Sr:(Tr=1,Sr=Function.call.bind(Object.prototype.hasOwnProperty))}function Fr(){if(Nr)return Or;Nr=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Dr(),n={},r=Vr();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var u in o)if(r(o,u)){var c;try{if("function"!=typeof o[u]){var d=Error((a||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=o[u](i,u,a,s,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((a||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+c.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Or=o}function _r(){if(jr)return Pr;jr=1;var e=Mr(),t=Gr(),n=Dr(),r=Vr(),o=Fr(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Pr=function(a,l){var u="function"==typeof Symbol&&Symbol.iterator;var c="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(s),arrayOf:function(e){return h(function(t,r,o,i,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new f("Invalid "+i+" `"+s+"` of type `"+v(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var u=e(a,l,o,i,s+"["+l+"]",n);if(u instanceof Error)return u}return null})},element:h(function(e,t,n,r,o){var i=e[t];return a(i)?null:new f("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:h(function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new f("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return h(function(t,n,r,o,i){if(!(t[n]instanceof e)){var s=e.name||c;return new f("Invalid "+o+" `"+i+"` of type `"+(((a=t[n]).constructor&&a.constructor.name?a.constructor.name:c)+"` supplied to `")+r+"`, expected instance of `"+s+"`.")}var a;return null})},node:h(function(e,t,n,r,o){return b(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return h(function(t,o,i,s,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],u=v(l);if("object"!==u)return new f("Invalid "+s+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected an object.");for(var c in l)if(r(l,c)){var d=e(l,c,i,s,a+"."+c,n);if(d instanceof Error)return d}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s;return h(function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(p(s,e[a]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===y(t)?String(t):t});return new f("Invalid "+o+" `"+i+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),s}return h(function(t,o,i,s,a){for(var l=[],u=0;u<e.length;u++){var c=(0,e[u])(t,o,i,s,a,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&l.push(c.data.expectedType)}return new f("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return h(function(t,r,o,i,s){var a=t[r],l=v(a);if("object"!==l)return new f("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!=typeof c)return g(o,i,s,u,y(c));var d=c(a,u,o,i,s+"."+u,n);if(d)return d}return null})},exact:function(e){return h(function(o,i,s,a,l){var u=o[i],c=v(u);if("object"!==c)return new f("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+s+"`, expected `object`.");var d=t({},o[i],e);for(var p in d){var h=e[p];if(r(e,p)&&"function"!=typeof h)return g(s,a,l,p,y(h));if(!h)return new f("Invalid "+a+" `"+l+"` key `"+p+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(u,p,s,a,l+"."+p,n);if(m)return m}return null})}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,s,a,u,d,p,h){if(u=u||c,p=p||a,h!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=u+":"+a;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==s[a]?o?null===s[a]?new f("The "+d+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new f("The "+d+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(s,a,u,d,p)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function m(e){return h(function(t,n,r,o,i,s){var a=t[n];return v(a)!==e?new f("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function g(e,t,n,r,o){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||a(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},Pr}function Hr(){if(kr)return Rr;kr=1;var e=Dr();function t(){}function n(){}return n.resetWarningCache=t,Rr=function(){function r(t,n,r,o,i,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Wr(){if(Lr)return br.exports;if(Lr=1,"production"!==process.env.NODE_ENV){var e=Mr();br.exports=_r()(e.isElement,true)}else br.exports=Hr()();return br.exports}var Xr,zr,Zr={exports:{}},Yr={},Ur={exports:{}};function Jr(){return Xr||(Xr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]);return n.filter(a)};
|
|
30
|
+
*/function Qr(){if(Gr)return Dr;Gr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Dr=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))t.call(i,u)&&(a[u]=i[u]);if(e){s=e(i);for(var c=0;c<s.length;c++)n.call(i,s[c])&&(a[s[c]]=i[s[c]])}}return a},Dr}function qr(){if(Fr)return Vr;Fr=1;return Vr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function eo(){return Hr?_r:(Hr=1,_r=Function.call.bind(Object.prototype.hasOwnProperty))}function to(){if(Xr)return Wr;Xr=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=qr(),n={},r=eo();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var u in o)if(r(o,u)){var c;try{if("function"!=typeof o[u]){var d=Error((a||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=o[u](i,u,a,s,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((a||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+c.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Wr=o}function no(){if(Zr)return zr;Zr=1;var e=Kr(),t=Qr(),n=qr(),r=eo(),o=to(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),zr=function(a,l){var u="function"==typeof Symbol&&Symbol.iterator;var c="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(s),arrayOf:function(e){return h(function(t,r,o,i,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new f("Invalid "+i+" `"+s+"` of type `"+v(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var u=e(a,l,o,i,s+"["+l+"]",n);if(u instanceof Error)return u}return null})},element:h(function(e,t,n,r,o){var i=e[t];return a(i)?null:new f("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:h(function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new f("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return h(function(t,n,r,o,i){if(!(t[n]instanceof e)){var s=e.name||c;return new f("Invalid "+o+" `"+i+"` of type `"+(((a=t[n]).constructor&&a.constructor.name?a.constructor.name:c)+"` supplied to `")+r+"`, expected instance of `"+s+"`.")}var a;return null})},node:h(function(e,t,n,r,o){return b(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return h(function(t,o,i,s,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],u=v(l);if("object"!==u)return new f("Invalid "+s+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected an object.");for(var c in l)if(r(l,c)){var d=e(l,c,i,s,a+"."+c,n);if(d instanceof Error)return d}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s;return h(function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(p(s,e[a]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===y(t)?String(t):t});return new f("Invalid "+o+" `"+i+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),s}return h(function(t,o,i,s,a){for(var l=[],u=0;u<e.length;u++){var c=(0,e[u])(t,o,i,s,a,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&l.push(c.data.expectedType)}return new f("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return h(function(t,r,o,i,s){var a=t[r],l=v(a);if("object"!==l)return new f("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!=typeof c)return g(o,i,s,u,y(c));var d=c(a,u,o,i,s+"."+u,n);if(d)return d}return null})},exact:function(e){return h(function(o,i,s,a,l){var u=o[i],c=v(u);if("object"!==c)return new f("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+s+"`, expected `object`.");var d=t({},o[i],e);for(var p in d){var h=e[p];if(r(e,p)&&"function"!=typeof h)return g(s,a,l,p,y(h));if(!h)return new f("Invalid "+a+" `"+l+"` key `"+p+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(u,p,s,a,l+"."+p,n);if(m)return m}return null})}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,s,a,u,d,p,h){if(u=u||c,p=p||a,h!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=u+":"+a;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==s[a]?o?null===s[a]?new f("The "+d+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new f("The "+d+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(s,a,u,d,p)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function m(e){return h(function(t,n,r,o,i,s){var a=t[n];return v(a)!==e?new f("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function g(e,t,n,r,o){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||a(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},zr}function ro(){if(Ur)return Yr;Ur=1;var e=qr();function t(){}function n(){}return n.resetWarningCache=t,Yr=function(){function r(t,n,r,o,i,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function oo(){if(Jr)return kr.exports;if(Jr=1,"production"!==process.env.NODE_ENV){var e=Kr();kr.exports=no()(e.isElement,true)}else kr.exports=ro()();return kr.exports}var io,so,ao={exports:{}},lo={},uo={exports:{}};function co(){return io||(io=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]);return n.filter(a)};
|
|
31
31
|
/*!
|
|
32
32
|
* Adapted from jQuery UI core
|
|
33
33
|
*
|
|
@@ -39,7 +39,7 @@ object-assign
|
|
|
39
39
|
*
|
|
40
40
|
* http://api.jqueryui.com/category/ui-core/
|
|
41
41
|
*/
|
|
42
|
-
var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),i=o.getPropertyValue("display");return t?i!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&s(e,!n)}e.exports=t.default}(Ur,Ur.exports)),Ur.exports}function $r(){if(zr)return Yr;zr=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.resetState=function(){r=[]},Yr.log=function(){"production"!==process.env.NODE_ENV&&(console.log("focusManager ----------"),r.forEach(function(e){var t=e||{};console.log(t.nodeName,t.className,t.id)}),console.log("end focusManager ----------"))},Yr.handleBlur=s,Yr.handleFocus=a,Yr.markForFocusLater=function(){r.push(document.activeElement)},Yr.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==r.length&&(t=r.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},Yr.popWithoutFocus=function(){r.length>0&&r.pop()},Yr.setupScopedFocus=function(e){o=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",a,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",a))},Yr.teardownScopedFocus=function(){o=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",a)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",a))};var e,t=Jr(),n=(e=t)&&e.__esModule?e:{default:e};var r=[],o=null,i=!1;function s(){i=!0}function a(){if(i){if(i=!1,!o)return;setTimeout(function(){o.contains(document.activeElement)||((0,n.default)(o)[0]||o).focus()},0)}}return Yr}var Kr,Qr={exports:{}};function qr(){return Kr||(Kr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,s=t.shiftKey,a=n[0],l=n[n.length-1],u=i();if(e===u){if(!s)return;r=l}l!==u||s||(r=a);a===u&&s&&(r=l);if(r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(u);d>-1&&(d+=s?-1:1);if(r=n[d],void 0===r)return t.preventDefault(),void(r=s?l:a).focus();t.preventDefault(),r.focus()};var n,r=Jr(),o=(n=r)&&n.__esModule?n:{default:n};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default}(Qr,Qr.exports)),Qr.exports}var eo,to,no={};function ro(){if(to)return eo;to=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return t[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};e=function(e,n,r){var o=arguments.length;r=new Array(o>2?o-2:0);for(var i=2;i<o;i++)r[i-2]=arguments[i];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}return eo=e}var oo,io,so,ao={},lo={exports:{}};function uo(){if(io)return ao;io=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.canUseDOM=ao.SafeNodeList=ao.SafeHTMLCollection=void 0;var e,t=(oo||(oo=1,function(e){!function(){var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n}()}(lo)),lo.exports);var n=((e=t)&&e.__esModule?e:{default:e}).default,r=n.canUseDOM?window.HTMLElement:{};return ao.SafeHTMLCollection=n.canUseDOM?window.HTMLCollection:{},ao.SafeNodeList=n.canUseDOM?window.NodeList:{},ao.canUseDOM=n.canUseDOM,ao.default=r,ao}function co(){if(so)return no;so=1,Object.defineProperty(no,"__esModule",{value:!0}),no.resetState=function(){o&&(o.removeAttribute?o.removeAttribute("aria-hidden"):null!=o.length?o.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(o).forEach(function(e){return e.removeAttribute("aria-hidden")}));o=null},no.log=function(){if("production"!==process.env.NODE_ENV){var e=o||{};console.log("ariaAppHider ----------"),console.log(e.nodeName,e.className,e.id),console.log("end ariaAppHider ----------")}},no.assertNodeList=i,no.setElement=function(e){var t=e;if("string"==typeof t&&r.canUseDOM){var n=document.querySelectorAll(t);i(n,t),t=n}return o=t||o},no.validateElement=s,no.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},no.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},no.documentNotReadyOrSSRTesting=function(){o=null};var e,t=ro(),n=(e=t)&&e.__esModule?e:{default:e},r=uo();var o=null;function i(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||o;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}return no}var po,fo={};function ho(){if(po)return fo;po=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.resetState=function(){var r=document.getElementsByTagName("html")[0];for(var o in e)n(r,e[o]);var i=document.body;for(var s in t)n(i,t[s]);e={},t={}},fo.log=function(){if("production"!==process.env.NODE_ENV){var n=document.getElementsByTagName("html")[0].className,r="Show tracked classes:\n\n";for(var o in r+="<html /> ("+n+"):\n ",e)r+=" "+o+" "+e[o]+"\n ";for(var i in r+="\n\ndoc.body ("+(n=document.body.className)+"):\n ",t)r+=" "+i+" "+t[i]+"\n ";r+="\n",console.log(r)}};var e={},t={};function n(e,t){e.classList.remove(t)}return fo.add=function(n,r){return o=n.classList,i="html"==n.nodeName.toLowerCase()?e:t,void r.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),o.add(e)});var o,i},fo.remove=function(n,r){return o=n.classList,i="html"==n.nodeName.toLowerCase()?e:t,void r.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&o.remove(e)});var o,i},fo}var mo,go={};function bo(){if(mo)return go;mo=1,Object.defineProperty(go,"__esModule",{value:!0}),go.log=function(){console.log("portalOpenInstances ----------"),console.log(t.openInstances.length),t.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},go.resetState=function(){t=new e};var e=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)?(t.openInstances.push(e),t.emit("register")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Cannot register modal instance that's already open")},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n?(t.openInstances.splice(n,1),t.emit("deregister")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Unable to deregister "+e+" as it was never registered")},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},t=new e;return go.default=t,go}var vo,yo,xo={};function Io(){return yo||(yo=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=t,a=g(Wr()),l=m($r()),u=g(qr()),c=m(co()),d=m(ho()),p=uo(),f=g(p),h=g(bo());function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}!function(){if(vo)return xo;vo=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.resetState=function(){for(var e=[r,o],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}r=o=null,i=[]},xo.log=function(){console.log("bodyTrap ----------"),console.log(i.length);for(var e=[r,o],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var e,t=bo(),n=(e=t)&&e.__esModule?e:{default:e},r=void 0,o=void 0,i=[];function s(){0!==i.length?i[i.length-1].focusContent():"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Open instances > 0 expected")}n.default.subscribe(function(e,t){r||o||((r=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),r.style.position="absolute",r.style.opacity="0",r.setAttribute("tabindex","0"),r.addEventListener("focus",s),(o=r.cloneNode()).addEventListener("focus",s)),(i=t).length>0?(document.body.firstChild!==r&&document.body.insertBefore(r,document.body.firstChild),document.body.lastChild!==o&&document.body.appendChild(o)):(r.parentElement&&r.parentElement.removeChild(r),o.parentElement&&o.parentElement.removeChild(o))})}();var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,s=e.parentSelector,a=s&&s().ownerDocument||document;i&&d.remove(a.body,i),o&&d.remove(a.getElementsByTagName("html")[0],o),r&&v>0&&0===(v-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},i=r.base;return n.state.afterOpen&&(i=i+" "+r.afterOpen),n.state.beforeClose&&(i=i+" "+r.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){"production"!==process.env.NODE_ENV&&(e.bodyOpenClassName!==this.props.bodyOpenClassName&&console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'),e.htmlOpenClassName!==this.props.htmlOpenClassName&&console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')),this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector,s=i&&i().ownerDocument||document;o&&d.add(s.body,o),r&&d.add(s.getElementsByTagName("html")[0],r),n&&(v+=1,c.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,l=o?{}:i.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,s);return this.props.overlayElement(u,d)}}]),t}(s.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(f.default),a.default.instanceOf(p.SafeHTMLCollection),a.default.instanceOf(p.SafeNodeList),a.default.arrayOf(a.default.instanceOf(f.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},n.default=y,e.exports=n.default}(Zr,Zr.exports)),Zr.exports}function Co(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function wo(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function Eo(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Co.__suppressDeprecationWarning=!0,wo.__suppressDeprecationWarning=!0,Eo.__suppressDeprecationWarning=!0;var Ao,So,To=we(Object.freeze({__proto__:null,polyfill:function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=Co,t.componentWillReceiveProps=wo),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Eo;var a=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;a.call(this,e,t,r)}}return e}}));function Oo(){if(Ao)return gr;Ao=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.bodyOpenClassName=gr.portalClassName=void 0;var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=t,i=f(r),s=f(o),a=f(Wr()),l=f(Io()),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(co()),c=uo(),d=f(c),p=To;function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=gr.portalClassName="ReactModalPortal",g=gr.bodyOpenClassName="ReactModal__Body--open",b=c.canUseDOM&&void 0!==s.default.createPortal,v=function(e){return document.createElement(e)},y=function(){return b?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function x(e){return e()}var I=function(t){function r(){var t,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=o=h(this,(t=r.__proto__||Object.getPrototypeOf(r)).call.apply(t,[this].concat(u))),o.removePortal=function(){!b&&s.default.unmountComponentAtNode(o.node);var e=x(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(t){var n=y()(o,i.default.createElement(l.default,e({defaultStyles:r.defaultStyles},t)),o.node);o.portalRef(n)},h(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),n(r,[{key:"componentDidMount",value:function(){c.canUseDOM&&(b||(this.node=v("div")),this.node.className=this.props.portalClassName,x(this.props.parentSelector).appendChild(this.node),!b&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:x(e.parentSelector),nextParent:x(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(c.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var s=n.prevParent,a=n.nextParent;a!==s&&(s.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||o)&&!b&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(c.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return c.canUseDOM&&b?(!this.node&&b&&(this.node=v("div")),y()(i.default.createElement(l.default,e({ref:this.portalRef,defaultStyles:r.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),r}(r.Component);return I.propTypes={isOpen:a.default.bool.isRequired,style:a.default.shape({content:a.default.object,overlay:a.default.object}),portalClassName:a.default.string,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,className:a.default.oneOfType([a.default.string,a.default.shape({base:a.default.string.isRequired,afterOpen:a.default.string.isRequired,beforeClose:a.default.string.isRequired})]),overlayClassName:a.default.oneOfType([a.default.string,a.default.shape({base:a.default.string.isRequired,afterOpen:a.default.string.isRequired,beforeClose:a.default.string.isRequired})]),appElement:a.default.oneOfType([a.default.instanceOf(d.default),a.default.instanceOf(c.SafeHTMLCollection),a.default.instanceOf(c.SafeNodeList),a.default.arrayOf(a.default.instanceOf(d.default))]),onAfterOpen:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,ariaHideApp:a.default.bool,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,parentSelector:a.default.func,aria:a.default.object,data:a.default.object,role:a.default.string,contentLabel:a.default.string,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func},I.defaultProps={isOpen:!1,portalClassName:m,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return i.default.createElement("div",e,t)},contentElement:function(e,t){return i.default.createElement("div",e,t)}},I.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(I),"production"!==process.env.NODE_ENV&&(I.setCreateHTMLElement=function(e){return v=e}),gr.default=I,gr}var No=Ce((So||(So=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=Oo(),o=(n=r)&&n.__esModule?n:{default:n};t.default=o.default,e.exports=t.default}(mr,mr.exports)),mr.exports));function Po(){return Po=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},Po.apply(null,arguments)}function jo(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Ro(e,t){return Ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ro(e,t)}var ko=Ce(Wr()),Lo=!1,Bo="production"!==process.env.NODE_ENV?ko.oneOfType([ko.number,ko.shape({enter:ko.number,exit:ko.number,appear:ko.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&ko.oneOfType([ko.string,ko.shape({enter:ko.string,exit:ko.string,active:ko.string}),ko.shape({enter:ko.string,enterDone:ko.string,enterActive:ko.string,exit:ko.string,exitDone:ko.string,exitActive:ko.string})]);var Mo=t.createContext(null),Go="unmounted",Do="exited",Vo="entering",Fo="entered",_o="exiting",Ho=function(e){var n,r;function i(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Do,r.appearStatus=Vo):o=Fo:o=t.unmountOnExit||t.mountOnEnter?Go:Do,r.state={status:o},r.nextCallback=null,r}r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,Ro(n,r),i.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Go?{status:Do}:null};var s=i.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Vo&&n!==Fo&&(t=Vo):n!==Vo&&n!==Fo||(t=_o)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Vo){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Do&&this.setState({status:Go})},s.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[o.findDOMNode(this),r],s=i[0],a=i[1],l=this.getTimeouts(),u=r?l.appear:l.enter;!e&&!n||Lo?this.safeSetState({status:Fo},function(){t.props.onEntered(s)}):(this.props.onEnter(s,a),this.safeSetState({status:Vo},function(){t.props.onEntering(s,a),t.onTransitionEnd(u,function(){t.safeSetState({status:Fo},function(){t.props.onEntered(s,a)})})}))},s.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!Lo?(this.props.onExit(r),this.safeSetState({status:_o},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Do},function(){e.props.onExited(r)})})})):this.safeSetState({status:Do},function(){e.props.onExited(r)})},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},s.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],s=i[0],a=i[1];this.props.addEndListener(s,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===Go)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=jo(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(Mo.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},i}(t.Component);function Wo(){}Ho.contextType=Mo,Ho.propTypes="production"!==process.env.NODE_ENV?{nodeRef:ko.shape({current:"undefined"==typeof Element?ko.any:function(e,t,n,r,o,i){var s=e[t];return ko.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:ko.oneOfType([ko.func.isRequired,ko.element.isRequired]).isRequired,in:ko.bool,mountOnEnter:ko.bool,unmountOnExit:ko.bool,appear:ko.bool,enter:ko.bool,exit:ko.bool,timeout:function(e){var t=Bo;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:ko.func,onEnter:ko.func,onEntering:ko.func,onEntered:ko.func,onExit:ko.func,onExiting:ko.func,onExited:ko.func}:{},Ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wo,onEntering:Wo,onEntered:Wo,onExit:Wo,onExiting:Wo,onExited:Wo},Ho.UNMOUNTED=Go,Ho.EXITED=Do,Ho.ENTERING=Vo,Ho.ENTERED=Fo,Ho.EXITING=_o;const Xo=({size:n="md",shape:r="default",animation:o="popper",centered:i,title:s,isOpen:a,children:l,bodyStyle:u,className:c,bodyClassName:d,portalClassName:p,overlayClassName:f,closeButtonClassName:h,closeWrapperClassName:m,onRequestClose:g,parentSelector:b,hideScrollOnIsOpenFalse:v=!0,hideCloseButton:y=!1,...x})=>{fr(a,v);const[I,C]=t.useState(!1);t.useEffect(()=>{C(a)},[a]);const w=t.useMemo(()=>{if("undefined"==typeof document)return null;let e=document.querySelector("main")||document.body;return b&&(e=document.querySelector(b)||document.body),e},[b]);if(!w)return null;if(!a)return null;const E=e=>({xl:"inset-[5%] min-h-fit",lg:"inset-[10%] min-h-fit",md:"inset-[15%] min-h-fit",sm:"top-[18%] w-[640px]",xs:"w-[calc(100%-30px)]"}[e]),A=(e,t)=>{if("popper"===e){const e="transition-transform duration-300";return"entering"===t||"entered"===t?`${e} opacity-100 ${"entered"===t?"translate-y-0 pointer-events-auto":""}`:"exiting"===t||"exited"===t?`${e} opacity-0 translate-y-[-18px] duration-[180ms]`:`${e} opacity-0 translate-y-[-18px]`}if("bottomSheet"===e){const e="transition-transform duration-200 ease-in-out";return"entering"===t||"entered"===t?`${e} opacity-100 ${"entered"===t?"translate-y-0 pointer-events-auto":""}`:"exiting"===t||"exited"===t?`${e} opacity-0 translate-y-full duration-[180ms]`:`${e} opacity-0 translate-y-full`}return""};return e.jsx(Ho,{enter:!0,exit:!0,in:I,timeout:0,children:t=>e.jsxs(No,{ariaHideApp:!1,isOpen:a,onRequestClose:g,closeTimeoutMS:0,parentSelector:()=>w,className:xe("absolute min-w-[150px] max-w-[calc(100vw-30px)] overflow-auto rounded-lg bg-white outline-none",E(n),"rounded"===r&&"rounded-3xl",i&&"top-0 translate-y-[calc(50vh-50%)]",A(o,t),c),portalClassName:xe("z-80",p),overlayClassName:xe("z-80 fixed inset-0 bg-black/50 flex items-center justify-center pb-[300px]",f),...x,children:[!y&&e.jsx("div",{className:xe(m),children:e.jsx(sr,{className:xe("absolute right-0 top-0 float-right h-6 cursor-pointer p-5 text-text",h),onClick:g,"data-testid":"close-button","data-track-element-name":"modal_close_button","data-track-click-text":"Close Modal","data-track-element-clicked":"modal",children:e.jsx(cn,{name:"close",size:24})})}),s?e.jsx("div",{className:xe("border-b border-border-secondary-on-bg-fill px-[7px] py-[7px] text-text"),children:s}):null,e.jsx("div",{className:xe("p-5",d),style:u,"data-testid":x["data-testid"],"data-cy":x["data-cy"],children:l})]})})};Xo.displayName="Modal";const zo=n=>{const{open:r,children:o}=n,i=t.useRef(null),[s,a]=t.useState(0);t.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{a(r?e.scrollHeight:0)};let n;return t(),r&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[r,o]);const l=r?{}:{inert:""};return e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:s,opacity:r?1:0},"aria-hidden":!r,...l,children:e.jsx("div",{ref:i,children:o})})};zo.displayName="Collapse";const Zo=n=>{const{title:r,defaultOpen:o,children:i,containerClassName:s,titleClassName:a,className:l,buttonClassName:u,iconClassName:c,openOnlyOnDesktop:d,borderRadiusNone:p=!1}=n,[f,h]=t.useState(Boolean(!1));return t.useEffect(()=>{if(d){const e=window.innerWidth>=1024;h(e)}else h(Boolean(o))},[d,o]),e.jsxs("div",{className:xe(p?"rounded-none border":"rounded-surface-xs border",s),children:[e.jsxs(sr,{type:"button",className:xe(p?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",u),onClick:()=>h(e=>!e),children:[e.jsx("span",{className:xe("label5 flex-1",a),children:r}),e.jsx(cn,{className:xe("flex-shrink-0",c),name:f?"keyboard_arrow_up":"keyboard_arrow_down",fill:1,size:24})]}),e.jsx(zo,{open:f,children:e.jsx("div",{className:xe("px-4 py-4",l),children:i})})]})};Zo.displayName="Accordion";const Yo=({state:n,checked:r=!1,onChange:o,className:i,label:s,labelClassName:a,containerClassName:l,name:u,value:c,id:d,disabled:p=!1,required:f=!1,error:h=!1,"data-cy":m,renderInfoIcon:g,...b})=>{var v,y;const x=p||"disabled"===n,I=d||u,C=xe("flex items-center justify-center w-6 h-6 rounded-[4px] outline-offset-2","focus"===n&&"outline",i),w=t.useCallback(e=>{x||o&&(1===o.length?o(e.target.checked):o())},[x,o]);return e.jsxs("div",{className:xe("flex items-center gap-3",l),children:[e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"checkbox",id:I,name:u,value:c,checked:r,onChange:w,disabled:x,required:f,className:"peer sr-only","data-cy":m,...b}),e.jsx("label",{htmlFor:I,className:xe("peer-focus:outline",C),style:{pointerEvents:x?"none":"auto"},children:r?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[e.jsx("rect",{width:"24",height:"24",rx:"4",className:xe(x?"fill-checkbox-bg-surface-selected-disabled":"fill-bg-fill-brand")}),e.jsx("path",{d:"M8 11.9593L11.0316 15L17 9",stroke:"white",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[e.jsx("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"3.5",className:xe(x?"fill-checkbox-bg-surface-disabled":"fill-white")}),e.jsx("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"3.5",stroke:"#CECECE"})]})})]}),s&&e.jsx("label",{htmlFor:I,className:xe("cursor-pointer",h&&"text-text-critical",a),children:s}),g&&e.jsx(sr,{type:"button",onClick:g.onClick,"data-testid":g.dataTestId,className:"ml-2 cursor-pointer text-icon-info","aria-label":"More information",children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:null!==(v=g.iconSize)&&void 0!==v?v:24,height:null!==(y=g.iconSize)&&void 0!==y?y:24,viewBox:"0 0 24 24",fill:"none",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2"}),e.jsx("path",{d:"M12 16v-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M12 8h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})};function Uo(e){return Uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uo(e)}function Jo(e){var t=function(e,t){if("object"!=Uo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Uo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uo(t)?t:t+""}function $o(e,t,n){return(t=Jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(n),!0).forEach(function(t){$o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ei(e,t){if(e){if("string"==typeof e)return qo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qo(e,t):void 0}}function ti(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||ei(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ni(e,t){if(null==e)return{};var n,r,o=jo(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Yo.displayName="Checkbox";var ri=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function oi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jo(r.key),r)}}function ii(e){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ii(e)}function si(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(si=function(){return!!e})()}function ai(e,t){if(t&&("object"==Uo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function li(e){return function(e){if(Array.isArray(e))return qo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ei(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ui=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),ci="-ms-",di="-moz-",pi="-webkit-",fi="comm",hi="rule",mi="decl",gi="@keyframes",bi=Math.abs,vi=String.fromCharCode,yi=Object.assign;function xi(e){return e.trim()}function Ii(e,t,n){return e.replace(t,n)}function Ci(e,t){return e.indexOf(t)}function wi(e,t){return 0|e.charCodeAt(t)}function Ei(e,t,n){return e.slice(t,n)}function Ai(e){return e.length}function Si(e){return e.length}function Ti(e,t){return t.push(e),e}var Oi=1,Ni=1,Pi=0,ji=0,Ri=0,ki="";function Li(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Oi,column:Ni,length:s,return:""}}function Bi(e,t){return yi(Li("",null,null,"",null,null,0),e,{length:-e.length},t)}function Mi(){return Ri=ji>0?wi(ki,--ji):0,Ni--,10===Ri&&(Ni=1,Oi--),Ri}function Gi(){return Ri=ji<Pi?wi(ki,ji++):0,Ni++,10===Ri&&(Ni=1,Oi++),Ri}function Di(){return wi(ki,ji)}function Vi(){return ji}function Fi(e,t){return Ei(ki,e,t)}function _i(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Hi(e){return Oi=Ni=1,Pi=Ai(ki=e),ji=0,[]}function Wi(e){return ki="",e}function Xi(e){return xi(Fi(ji-1,Yi(91===e?e+2:40===e?e+1:e)))}function zi(e){for(;(Ri=Di())&&Ri<33;)Gi();return _i(e)>2||_i(Ri)>3?"":" "}function Zi(e,t){for(;--t&&Gi()&&!(Ri<48||Ri>102||Ri>57&&Ri<65||Ri>70&&Ri<97););return Fi(e,Vi()+(t<6&&32==Di()&&32==Gi()))}function Yi(e){for(;Gi();)switch(Ri){case e:return ji;case 34:case 39:34!==e&&39!==e&&Yi(Ri);break;case 40:41===e&&Yi(e);break;case 92:Gi()}return ji}function Ui(e,t){for(;Gi()&&e+Ri!==57&&(e+Ri!==84||47!==Di()););return"/*"+Fi(t,ji-1)+"*"+vi(47===e?e:Gi())}function Ji(e){for(;!_i(Di());)Gi();return Fi(e,ji)}function $i(e){return Wi(Ki("",null,null,null,[""],e=Hi(e),0,[0],e))}function Ki(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,I=i,C=r,w=y;g;)switch(h=v,v=Gi()){case 40:if(108!=h&&58==wi(w,d-1)){-1!=Ci(w+=Ii(Xi(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=Xi(v);break;case 9:case 10:case 13:case 32:w+=zi(h);break;case 92:w+=Zi(Vi()-1,7);continue;case 47:switch(Di()){case 42:case 47:Ti(qi(Ui(Gi(),Vi()),t,n),l);break;default:w+="/"}break;case 123*m:a[u++]=Ai(w)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=Ii(w,/\f/g,"")),f>0&&Ai(w)-d&&Ti(f>32?es(w+";",r,n,d-1):es(Ii(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(Ti(C=Qi(w,t,n,u,c,o,a,y,x=[],I=[],d),i),123===v)if(0===c)Ki(w,t,C,C,x,i,d,a,I);else switch(99===p&&110===wi(w,3)?100:p){case 100:case 108:case 109:case 115:Ki(e,C,C,r&&Ti(Qi(e,C,C,0,0,o,a,y,o,x=[],d),I),o,I,d,a,r?x:I);break;default:Ki(w,C,C,C,[""],I,0,a,I)}}u=c=f=0,m=b=1,y=w="",d=s;break;case 58:d=1+Ai(w),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Mi())continue;switch(w+=vi(v),v*m){case 38:b=c>0?1:(w+="\f",-1);break;case 44:a[u++]=(Ai(w)-1)*b,b=1;break;case 64:45===Di()&&(w+=Xi(Gi())),p=Di(),c=d=Ai(y=w+=Ji(Vi())),v++;break;case 45:45===h&&2==Ai(w)&&(m=0)}}return i}function Qi(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,p=0===o?i:[""],f=Si(p),h=0,m=0,g=0;h<r;++h)for(var b=0,v=Ei(e,d+1,d=bi(m=s[h])),y=e;b<f;++b)(y=xi(m>0?p[b]+" "+v:Ii(v,/&\f/g,p[b])))&&(l[g++]=y);return Li(e,t,n,0===o?hi:a,l,u,c)}function qi(e,t,n){return Li(e,t,n,fi,vi(Ri),Ei(e,2,-2),0)}function es(e,t,n,r){return Li(e,t,n,mi,Ei(e,0,r),Ei(e,r+1,-1),r)}function ts(e,t){for(var n="",r=Si(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ns(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case mi:return e.return=e.return||e.value;case fi:return"";case gi:return e.return=e.value+"{"+ts(e.children,r)+"}";case hi:e.value=e.props.join(",")}return Ai(n=ts(e.children,r))?e.return=e.value+"{"+n+"}":""}function rs(e){var t=Si(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}var os="undefined"!=typeof document,is=function(e,t,n){for(var r=0,o=0;r=o,o=Di(),38===r&&12===o&&(t[n]=1),!_i(o);)Gi();return Fi(e,ji)},ss=function(e,t){return Wi(function(e,t){var n=-1,r=44;do{switch(_i(r)){case 0:38===r&&12===Di()&&(t[n]=1),e[n]+=is(ji-1,t,n);break;case 2:e[n]+=Xi(r);break;case 4:if(44===r){e[++n]=58===Di()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=vi(r)}}while(r=Gi());return e}(Hi(e),t))},as=new WeakMap,ls=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||as.get(n))&&!r){as.set(e,!0);for(var o=[],i=ss(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[u]):s[u]+" "+i[a]}}},us=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function cs(e,t){switch(function(e,t){return 45^wi(e,0)?(((t<<2^wi(e,0))<<2^wi(e,1))<<2^wi(e,2))<<2^wi(e,3):0}(e,t)){case 5103:return pi+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pi+e+di+e+ci+e+e;case 6828:case 4268:return pi+e+ci+e+e;case 6165:return pi+e+ci+"flex-"+e+e;case 5187:return pi+e+Ii(e,/(\w+).+(:[^]+)/,pi+"box-$1$2"+ci+"flex-$1$2")+e;case 5443:return pi+e+ci+"flex-item-"+Ii(e,/flex-|-self/,"")+e;case 4675:return pi+e+ci+"flex-line-pack"+Ii(e,/align-content|flex-|-self/,"")+e;case 5548:return pi+e+ci+Ii(e,"shrink","negative")+e;case 5292:return pi+e+ci+Ii(e,"basis","preferred-size")+e;case 6060:return pi+"box-"+Ii(e,"-grow","")+pi+e+ci+Ii(e,"grow","positive")+e;case 4554:return pi+Ii(e,/([^-])(transform)/g,"$1"+pi+"$2")+e;case 6187:return Ii(Ii(Ii(e,/(zoom-|grab)/,pi+"$1"),/(image-set)/,pi+"$1"),e,"")+e;case 5495:case 3959:return Ii(e,/(image-set\([^]*)/,pi+"$1$`$1");case 4968:return Ii(Ii(e,/(.+:)(flex-)?(.*)/,pi+"box-pack:$3"+ci+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pi+e+e;case 4095:case 3583:case 4068:case 2532:return Ii(e,/(.+)-inline(.+)/,pi+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ai(e)-1-t>6)switch(wi(e,t+1)){case 109:if(45!==wi(e,t+4))break;case 102:return Ii(e,/(.+:)(.+)-([^]+)/,"$1"+pi+"$2-$3$1"+di+(108==wi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ci(e,"stretch")?cs(Ii(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==wi(e,t+1))break;case 6444:switch(wi(e,Ai(e)-3-(~Ci(e,"!important")&&10))){case 107:return Ii(e,":",":"+pi)+e;case 101:return Ii(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pi+(45===wi(e,14)?"inline-":"")+"box$3$1"+pi+"$2$3$1"+ci+"$2box$3")+e}break;case 5936:switch(wi(e,t+11)){case 114:return pi+e+ci+Ii(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pi+e+ci+Ii(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pi+e+ci+Ii(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pi+e+ci+e+e}return e}var ds,ps,fs,hs=os?void 0:(ds=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},ps=new WeakMap,function(e){if(ps.has(e))return ps.get(e);var t=ds(e);return ps.set(e,t),t}),ms=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case mi:e.return=cs(e.value,e.length);break;case gi:return ts([Bi(e,{value:Ii(e.value,"@","@"+pi)})],r);case hi:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ts([Bi(e,{props:[Ii(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ts([Bi(e,{props:[Ii(t,/:(plac\w+)/,":"+pi+"input-$1")]}),Bi(e,{props:[Ii(t,/:(plac\w+)/,":-moz-$1")]}),Bi(e,{props:[Ii(t,/:(plac\w+)/,ci+"input-$1")]})],r)}return""})}}],gs=function(e){var t=e.key;if(os&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||ms,s={},a=[];os&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,u=[ls,us];if(hs){var c=[ns],d=rs(u.concat(i,c)),p=hs(i)(t),f=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=ts($i(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};o=function(e,t,n,r){var o=t.name,i=f(e,t);return void 0===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}else{var h,m=[ns,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=rs(u.concat(i,m));o=function(e,t,n,r){h=n,ts($i(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new ui({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return b.sheet.hydrate(a),b},bs={exports:{}},vs={};var ys,xs,Is,Cs,ws={};
|
|
42
|
+
var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),i=o.getPropertyValue("display");return t?i!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&s(e,!n)}e.exports=t.default}(uo,uo.exports)),uo.exports}function po(){if(so)return lo;so=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.resetState=function(){r=[]},lo.log=function(){"production"!==process.env.NODE_ENV&&(console.log("focusManager ----------"),r.forEach(function(e){var t=e||{};console.log(t.nodeName,t.className,t.id)}),console.log("end focusManager ----------"))},lo.handleBlur=s,lo.handleFocus=a,lo.markForFocusLater=function(){r.push(document.activeElement)},lo.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==r.length&&(t=r.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},lo.popWithoutFocus=function(){r.length>0&&r.pop()},lo.setupScopedFocus=function(e){o=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",a,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",a))},lo.teardownScopedFocus=function(){o=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",a)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",a))};var e,t=co(),n=(e=t)&&e.__esModule?e:{default:e};var r=[],o=null,i=!1;function s(){i=!0}function a(){if(i){if(i=!1,!o)return;setTimeout(function(){o.contains(document.activeElement)||((0,n.default)(o)[0]||o).focus()},0)}}return lo}var fo,ho={exports:{}};function mo(){return fo||(fo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,s=t.shiftKey,a=n[0],l=n[n.length-1],u=i();if(e===u){if(!s)return;r=l}l!==u||s||(r=a);a===u&&s&&(r=l);if(r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(u);d>-1&&(d+=s?-1:1);if(r=n[d],void 0===r)return t.preventDefault(),void(r=s?l:a).focus();t.preventDefault(),r.focus()};var n,r=co(),o=(n=r)&&n.__esModule?n:{default:n};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default}(ho,ho.exports)),ho.exports}var go,bo,vo={};function yo(){if(bo)return go;bo=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return t[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};e=function(e,n,r){var o=arguments.length;r=new Array(o>2?o-2:0);for(var i=2;i<o;i++)r[i-2]=arguments[i];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}return go=e}var xo,Io,Co,wo={},Eo={exports:{}};function Ao(){if(Io)return wo;Io=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.canUseDOM=wo.SafeNodeList=wo.SafeHTMLCollection=void 0;var e,t=(xo||(xo=1,function(e){!function(){var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n}()}(Eo)),Eo.exports);var n=((e=t)&&e.__esModule?e:{default:e}).default,r=n.canUseDOM?window.HTMLElement:{};return wo.SafeHTMLCollection=n.canUseDOM?window.HTMLCollection:{},wo.SafeNodeList=n.canUseDOM?window.NodeList:{},wo.canUseDOM=n.canUseDOM,wo.default=r,wo}function So(){if(Co)return vo;Co=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.resetState=function(){o&&(o.removeAttribute?o.removeAttribute("aria-hidden"):null!=o.length?o.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(o).forEach(function(e){return e.removeAttribute("aria-hidden")}));o=null},vo.log=function(){if("production"!==process.env.NODE_ENV){var e=o||{};console.log("ariaAppHider ----------"),console.log(e.nodeName,e.className,e.id),console.log("end ariaAppHider ----------")}},vo.assertNodeList=i,vo.setElement=function(e){var t=e;if("string"==typeof t&&r.canUseDOM){var n=document.querySelectorAll(t);i(n,t),t=n}return o=t||o},vo.validateElement=s,vo.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},vo.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},vo.documentNotReadyOrSSRTesting=function(){o=null};var e,t=yo(),n=(e=t)&&e.__esModule?e:{default:e},r=Ao();var o=null;function i(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||o;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}return vo}var To,Oo={};function No(){if(To)return Oo;To=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.resetState=function(){var r=document.getElementsByTagName("html")[0];for(var o in e)n(r,e[o]);var i=document.body;for(var s in t)n(i,t[s]);e={},t={}},Oo.log=function(){if("production"!==process.env.NODE_ENV){var n=document.getElementsByTagName("html")[0].className,r="Show tracked classes:\n\n";for(var o in r+="<html /> ("+n+"):\n ",e)r+=" "+o+" "+e[o]+"\n ";for(var i in r+="\n\ndoc.body ("+(n=document.body.className)+"):\n ",t)r+=" "+i+" "+t[i]+"\n ";r+="\n",console.log(r)}};var e={},t={};function n(e,t){e.classList.remove(t)}return Oo.add=function(n,r){return o=n.classList,i="html"==n.nodeName.toLowerCase()?e:t,void r.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),o.add(e)});var o,i},Oo.remove=function(n,r){return o=n.classList,i="html"==n.nodeName.toLowerCase()?e:t,void r.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&o.remove(e)});var o,i},Oo}var jo,Po={};function ko(){if(jo)return Po;jo=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.log=function(){console.log("portalOpenInstances ----------"),console.log(t.openInstances.length),t.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},Po.resetState=function(){t=new e};var e=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)?(t.openInstances.push(e),t.emit("register")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Cannot register modal instance that's already open")},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n?(t.openInstances.splice(n,1),t.emit("deregister")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Unable to deregister "+e+" as it was never registered")},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},t=new e;return Po.default=t,Po}var Ro,Lo,Bo={};function Mo(){return Lo||(Lo=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=t,a=g(oo()),l=m(po()),u=g(mo()),c=m(So()),d=m(No()),p=Ao(),f=g(p),h=g(ko());function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}!function(){if(Ro)return Bo;Ro=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.resetState=function(){for(var e=[r,o],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}r=o=null,i=[]},Bo.log=function(){console.log("bodyTrap ----------"),console.log(i.length);for(var e=[r,o],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var e,t=ko(),n=(e=t)&&e.__esModule?e:{default:e},r=void 0,o=void 0,i=[];function s(){0!==i.length?i[i.length-1].focusContent():"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Open instances > 0 expected")}n.default.subscribe(function(e,t){r||o||((r=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),r.style.position="absolute",r.style.opacity="0",r.setAttribute("tabindex","0"),r.addEventListener("focus",s),(o=r.cloneNode()).addEventListener("focus",s)),(i=t).length>0?(document.body.firstChild!==r&&document.body.insertBefore(r,document.body.firstChild),document.body.lastChild!==o&&document.body.appendChild(o)):(r.parentElement&&r.parentElement.removeChild(r),o.parentElement&&o.parentElement.removeChild(o))})}();var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,s=e.parentSelector,a=s&&s().ownerDocument||document;i&&d.remove(a.body,i),o&&d.remove(a.getElementsByTagName("html")[0],o),r&&v>0&&0===(v-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},i=r.base;return n.state.afterOpen&&(i=i+" "+r.afterOpen),n.state.beforeClose&&(i=i+" "+r.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){"production"!==process.env.NODE_ENV&&(e.bodyOpenClassName!==this.props.bodyOpenClassName&&console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'),e.htmlOpenClassName!==this.props.htmlOpenClassName&&console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')),this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector,s=i&&i().ownerDocument||document;o&&d.add(s.body,o),r&&d.add(s.getElementsByTagName("html")[0],r),n&&(v+=1,c.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,l=o?{}:i.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,s);return this.props.overlayElement(u,d)}}]),t}(s.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(f.default),a.default.instanceOf(p.SafeHTMLCollection),a.default.instanceOf(p.SafeNodeList),a.default.arrayOf(a.default.instanceOf(f.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},n.default=y,e.exports=n.default}(ao,ao.exports)),ao.exports}function Do(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function Go(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function Vo(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Do.__suppressDeprecationWarning=!0,Go.__suppressDeprecationWarning=!0,Vo.__suppressDeprecationWarning=!0;var Fo,_o,Ho=Ae(Object.freeze({__proto__:null,polyfill:function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=Do,t.componentWillReceiveProps=Go),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Vo;var a=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;a.call(this,e,t,r)}}return e}}));function Wo(){if(Fo)return Pr;Fo=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.bodyOpenClassName=Pr.portalClassName=void 0;var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=t,i=f(r),s=f(o),a=f(oo()),l=f(Mo()),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(So()),c=Ao(),d=f(c),p=Ho;function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=Pr.portalClassName="ReactModalPortal",g=Pr.bodyOpenClassName="ReactModal__Body--open",b=c.canUseDOM&&void 0!==s.default.createPortal,v=function(e){return document.createElement(e)},y=function(){return b?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function x(e){return e()}var I=function(t){function r(){var t,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=o=h(this,(t=r.__proto__||Object.getPrototypeOf(r)).call.apply(t,[this].concat(u))),o.removePortal=function(){!b&&s.default.unmountComponentAtNode(o.node);var e=x(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(t){var n=y()(o,i.default.createElement(l.default,e({defaultStyles:r.defaultStyles},t)),o.node);o.portalRef(n)},h(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),n(r,[{key:"componentDidMount",value:function(){c.canUseDOM&&(b||(this.node=v("div")),this.node.className=this.props.portalClassName,x(this.props.parentSelector).appendChild(this.node),!b&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:x(e.parentSelector),nextParent:x(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(c.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var s=n.prevParent,a=n.nextParent;a!==s&&(s.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||o)&&!b&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(c.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return c.canUseDOM&&b?(!this.node&&b&&(this.node=v("div")),y()(i.default.createElement(l.default,e({ref:this.portalRef,defaultStyles:r.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),r}(r.Component);return I.propTypes={isOpen:a.default.bool.isRequired,style:a.default.shape({content:a.default.object,overlay:a.default.object}),portalClassName:a.default.string,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,className:a.default.oneOfType([a.default.string,a.default.shape({base:a.default.string.isRequired,afterOpen:a.default.string.isRequired,beforeClose:a.default.string.isRequired})]),overlayClassName:a.default.oneOfType([a.default.string,a.default.shape({base:a.default.string.isRequired,afterOpen:a.default.string.isRequired,beforeClose:a.default.string.isRequired})]),appElement:a.default.oneOfType([a.default.instanceOf(d.default),a.default.instanceOf(c.SafeHTMLCollection),a.default.instanceOf(c.SafeNodeList),a.default.arrayOf(a.default.instanceOf(d.default))]),onAfterOpen:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,ariaHideApp:a.default.bool,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,parentSelector:a.default.func,aria:a.default.object,data:a.default.object,role:a.default.string,contentLabel:a.default.string,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func},I.defaultProps={isOpen:!1,portalClassName:m,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return i.default.createElement("div",e,t)},contentElement:function(e,t){return i.default.createElement("div",e,t)}},I.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(I),"production"!==process.env.NODE_ENV&&(I.setCreateHTMLElement=function(e){return v=e}),Pr.default=I,Pr}var Xo=Ee((_o||(_o=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=Wo(),o=(n=r)&&n.__esModule?n:{default:n};t.default=o.default,e.exports=t.default}(jr,jr.exports)),jr.exports));function zo(){return zo=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},zo.apply(null,arguments)}function Zo(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Yo(e,t){return Yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yo(e,t)}var Uo=Ee(oo()),Jo=!1,$o="production"!==process.env.NODE_ENV?Uo.oneOfType([Uo.number,Uo.shape({enter:Uo.number,exit:Uo.number,appear:Uo.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&Uo.oneOfType([Uo.string,Uo.shape({enter:Uo.string,exit:Uo.string,active:Uo.string}),Uo.shape({enter:Uo.string,enterDone:Uo.string,enterActive:Uo.string,exit:Uo.string,exitDone:Uo.string,exitActive:Uo.string})]);var Ko=t.createContext(null),Qo="unmounted",qo="exited",ei="entering",ti="entered",ni="exiting",ri=function(e){var n,r;function i(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=qo,r.appearStatus=ei):o=ti:o=t.unmountOnExit||t.mountOnEnter?Qo:qo,r.state={status:o},r.nextCallback=null,r}r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,Yo(n,r),i.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Qo?{status:qo}:null};var s=i.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ei&&n!==ti&&(t=ei):n!==ei&&n!==ti||(t=ni)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ei){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qo&&this.setState({status:Qo})},s.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[o.findDOMNode(this),r],s=i[0],a=i[1],l=this.getTimeouts(),u=r?l.appear:l.enter;!e&&!n||Jo?this.safeSetState({status:ti},function(){t.props.onEntered(s)}):(this.props.onEnter(s,a),this.safeSetState({status:ei},function(){t.props.onEntering(s,a),t.onTransitionEnd(u,function(){t.safeSetState({status:ti},function(){t.props.onEntered(s,a)})})}))},s.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!Jo?(this.props.onExit(r),this.safeSetState({status:ni},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:qo},function(){e.props.onExited(r)})})})):this.safeSetState({status:qo},function(){e.props.onExited(r)})},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},s.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],s=i[0],a=i[1];this.props.addEndListener(s,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===Qo)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=Zo(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(Ko.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},i}(t.Component);function oi(){}ri.contextType=Ko,ri.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Uo.shape({current:"undefined"==typeof Element?Uo.any:function(e,t,n,r,o,i){var s=e[t];return Uo.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:Uo.oneOfType([Uo.func.isRequired,Uo.element.isRequired]).isRequired,in:Uo.bool,mountOnEnter:Uo.bool,unmountOnExit:Uo.bool,appear:Uo.bool,enter:Uo.bool,exit:Uo.bool,timeout:function(e){var t=$o;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:Uo.func,onEnter:Uo.func,onEntering:Uo.func,onEntered:Uo.func,onExit:Uo.func,onExiting:Uo.func,onExited:Uo.func}:{},ri.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oi,onEntering:oi,onEntered:oi,onExit:oi,onExiting:oi,onExited:oi},ri.UNMOUNTED=Qo,ri.EXITED=qo,ri.ENTERING=ei,ri.ENTERED=ti,ri.EXITING=ni;const ii=({size:n="md",shape:r="default",animation:o="popper",centered:i,title:s,isOpen:a,children:l,bodyStyle:u,className:c,bodyClassName:d,portalClassName:p,overlayClassName:f,closeButtonClassName:h,closeWrapperClassName:m,onRequestClose:g,parentSelector:b,hideScrollOnIsOpenFalse:v=!0,hideCloseButton:y=!1,...x})=>{Or(a,v);const[I,C]=t.useState(!1);t.useEffect(()=>{C(a)},[a]);const w=t.useMemo(()=>{if("undefined"==typeof document)return null;let e=document.querySelector("main")||document.body;return b&&(e=document.querySelector(b)||document.body),e},[b]);if(!w)return null;if(!a)return null;const E=e=>({xl:"inset-[5%] min-h-fit",lg:"inset-[10%] min-h-fit",md:"inset-[15%] min-h-fit",sm:"top-[18%] w-[640px]",xs:"w-[calc(100%-30px)]"}[e]),A=(e,t)=>{if("popper"===e){const e="transition-transform duration-300";return"entering"===t||"entered"===t?`${e} opacity-100 ${"entered"===t?"translate-y-0 pointer-events-auto":""}`:"exiting"===t||"exited"===t?`${e} opacity-0 translate-y-[-18px] duration-[180ms]`:`${e} opacity-0 translate-y-[-18px]`}if("bottomSheet"===e){const e="transition-transform duration-200 ease-in-out";return"entering"===t||"entered"===t?`${e} opacity-100 ${"entered"===t?"translate-y-0 pointer-events-auto":""}`:"exiting"===t||"exited"===t?`${e} opacity-0 translate-y-full duration-[180ms]`:`${e} opacity-0 translate-y-full`}return""};return e.jsx(ri,{enter:!0,exit:!0,in:I,timeout:0,children:t=>e.jsxs(Xo,{ariaHideApp:!1,isOpen:a,onRequestClose:g,closeTimeoutMS:0,parentSelector:()=>w,className:xe("absolute min-w-[150px] max-w-[calc(100vw-30px)] overflow-auto rounded-lg bg-white outline-none",E(n),"rounded"===r&&"rounded-3xl",i&&"top-0 translate-y-[calc(50vh-50%)]",A(o,t),c),portalClassName:xe("z-80",p),overlayClassName:xe("z-80 fixed inset-0 bg-black/50 flex items-center justify-center pb-[300px]",f),...x,children:[!y&&e.jsx("div",{className:xe(m),children:e.jsx(Ir,{className:xe("absolute right-0 top-0 float-right h-6 cursor-pointer p-5 text-text",h),onClick:g,"data-testid":"close-button","data-track-element-name":"modal_close_button","data-track-click-text":"Close Modal","data-track-element-clicked":"modal",children:e.jsx(hn,{name:"close",size:24})})}),s?e.jsx("div",{className:xe("border-b border-border-secondary-on-bg-fill px-[7px] py-[7px] text-text"),children:s}):null,e.jsx("div",{className:xe("p-5",d),style:u,"data-testid":x["data-testid"],"data-cy":x["data-cy"],children:l})]})})};ii.displayName="Modal";const si=n=>{const{open:r,children:o}=n,i=t.useRef(null),[s,a]=t.useState(0);t.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{a(r?e.scrollHeight:0)};let n;return t(),r&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[r,o]);const l=r?{}:{inert:""};return e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:s,opacity:r?1:0},"aria-hidden":!r,...l,children:e.jsx("div",{ref:i,children:o})})};si.displayName="Collapse";const ai=n=>{const{title:r,defaultOpen:o,children:i,containerClassName:s,titleClassName:a,className:l,buttonClassName:u,iconClassName:c,openOnlyOnDesktop:d,borderRadiusNone:p=!1}=n,[f,h]=t.useState(Boolean(!1));return t.useEffect(()=>{if(d){const e=window.innerWidth>=1024;h(e)}else h(Boolean(o))},[d,o]),e.jsxs("div",{className:xe(p?"rounded-none border":"rounded-surface-xs border",s),children:[e.jsxs(Ir,{type:"button",className:xe(p?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",u),onClick:()=>h(e=>!e),children:[e.jsx("span",{className:xe("label5 flex-1",a),children:r}),e.jsx(hn,{className:xe("flex-shrink-0",c),name:f?"keyboard_arrow_up":"keyboard_arrow_down",fill:1,size:24})]}),e.jsx(si,{open:f,children:e.jsx("div",{className:xe("px-4 py-4",l),children:i})})]})};ai.displayName="Accordion";const li=({state:n,checked:r=!1,onChange:o,className:i,label:s,labelClassName:a,containerClassName:l,name:u,value:c,id:d,disabled:p=!1,required:f=!1,error:h=!1,"data-cy":m,renderInfoIcon:g,...b})=>{var v,y;const x=p||"disabled"===n,I=d||u,C=xe("flex items-center justify-center w-6 h-6 rounded-[4px] outline-offset-2","focus"===n&&"outline",i),w=t.useCallback(e=>{x||o&&(1===o.length?o(e.target.checked):o())},[x,o]);return e.jsxs("div",{className:xe("flex items-center gap-3",l),children:[e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"checkbox",id:I,name:u,value:c,checked:r,onChange:w,disabled:x,required:f,className:"peer sr-only","data-cy":m,...b}),e.jsx("label",{htmlFor:I,className:xe("peer-focus:outline",C),style:{pointerEvents:x?"none":"auto"},children:r?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[e.jsx("rect",{width:"24",height:"24",rx:"4",className:xe(x?"fill-checkbox-bg-surface-selected-disabled":"fill-bg-fill-brand")}),e.jsx("path",{d:"M8 11.9593L11.0316 15L17 9",stroke:"white",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[e.jsx("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"3.5",className:xe(x?"fill-checkbox-bg-surface-disabled":"fill-white")}),e.jsx("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"3.5",stroke:"#CECECE"})]})})]}),s&&e.jsx("label",{htmlFor:I,className:xe("cursor-pointer",h&&"text-text-critical",a),children:s}),g&&e.jsx(Ir,{type:"button",onClick:g.onClick,"data-testid":g.dataTestId,className:"ml-2 cursor-pointer text-icon-info","aria-label":"More information",children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:null!==(v=g.iconSize)&&void 0!==v?v:24,height:null!==(y=g.iconSize)&&void 0!==y?y:24,viewBox:"0 0 24 24",fill:"none",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2"}),e.jsx("path",{d:"M12 16v-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M12 8h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})};function ui(e){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(e)}function ci(e){var t=function(e,t){if("object"!=ui(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=ui(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ui(t)?t:t+""}function di(e,t,n){return(t=ci(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pi(Object(n),!0).forEach(function(t){di(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mi(e,t){if(e){if("string"==typeof e)return hi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hi(e,t):void 0}}function gi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||mi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bi(e,t){if(null==e)return{};var n,r,o=Zo(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}li.displayName="Checkbox";var vi=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function yi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ci(r.key),r)}}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xi(e)}function Ii(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ii=function(){return!!e})()}function Ci(e,t){if(t&&("object"==ui(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function wi(e){return function(e){if(Array.isArray(e))return hi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ei=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ai="-ms-",Si="-moz-",Ti="-webkit-",Oi="comm",Ni="rule",ji="decl",Pi="@keyframes",ki=Math.abs,Ri=String.fromCharCode,Li=Object.assign;function Bi(e){return e.trim()}function Mi(e,t,n){return e.replace(t,n)}function Di(e,t){return e.indexOf(t)}function Gi(e,t){return 0|e.charCodeAt(t)}function Vi(e,t,n){return e.slice(t,n)}function Fi(e){return e.length}function _i(e){return e.length}function Hi(e,t){return t.push(e),e}var Wi=1,Xi=1,zi=0,Zi=0,Yi=0,Ui="";function Ji(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Wi,column:Xi,length:s,return:""}}function $i(e,t){return Li(Ji("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ki(){return Yi=Zi>0?Gi(Ui,--Zi):0,Xi--,10===Yi&&(Xi=1,Wi--),Yi}function Qi(){return Yi=Zi<zi?Gi(Ui,Zi++):0,Xi++,10===Yi&&(Xi=1,Wi++),Yi}function qi(){return Gi(Ui,Zi)}function es(){return Zi}function ts(e,t){return Vi(Ui,e,t)}function ns(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rs(e){return Wi=Xi=1,zi=Fi(Ui=e),Zi=0,[]}function os(e){return Ui="",e}function is(e){return Bi(ts(Zi-1,ls(91===e?e+2:40===e?e+1:e)))}function ss(e){for(;(Yi=qi())&&Yi<33;)Qi();return ns(e)>2||ns(Yi)>3?"":" "}function as(e,t){for(;--t&&Qi()&&!(Yi<48||Yi>102||Yi>57&&Yi<65||Yi>70&&Yi<97););return ts(e,es()+(t<6&&32==qi()&&32==Qi()))}function ls(e){for(;Qi();)switch(Yi){case e:return Zi;case 34:case 39:34!==e&&39!==e&&ls(Yi);break;case 40:41===e&&ls(e);break;case 92:Qi()}return Zi}function us(e,t){for(;Qi()&&e+Yi!==57&&(e+Yi!==84||47!==qi()););return"/*"+ts(t,Zi-1)+"*"+Ri(47===e?e:Qi())}function cs(e){for(;!ns(qi());)Qi();return ts(e,Zi)}function ds(e){return os(ps("",null,null,null,[""],e=rs(e),0,[0],e))}function ps(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,I=i,C=r,w=y;g;)switch(h=v,v=Qi()){case 40:if(108!=h&&58==Gi(w,d-1)){-1!=Di(w+=Mi(is(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=is(v);break;case 9:case 10:case 13:case 32:w+=ss(h);break;case 92:w+=as(es()-1,7);continue;case 47:switch(qi()){case 42:case 47:Hi(hs(us(Qi(),es()),t,n),l);break;default:w+="/"}break;case 123*m:a[u++]=Fi(w)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=Mi(w,/\f/g,"")),f>0&&Fi(w)-d&&Hi(f>32?ms(w+";",r,n,d-1):ms(Mi(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(Hi(C=fs(w,t,n,u,c,o,a,y,x=[],I=[],d),i),123===v)if(0===c)ps(w,t,C,C,x,i,d,a,I);else switch(99===p&&110===Gi(w,3)?100:p){case 100:case 108:case 109:case 115:ps(e,C,C,r&&Hi(fs(e,C,C,0,0,o,a,y,o,x=[],d),I),o,I,d,a,r?x:I);break;default:ps(w,C,C,C,[""],I,0,a,I)}}u=c=f=0,m=b=1,y=w="",d=s;break;case 58:d=1+Fi(w),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Ki())continue;switch(w+=Ri(v),v*m){case 38:b=c>0?1:(w+="\f",-1);break;case 44:a[u++]=(Fi(w)-1)*b,b=1;break;case 64:45===qi()&&(w+=is(Qi())),p=qi(),c=d=Fi(y=w+=cs(es())),v++;break;case 45:45===h&&2==Fi(w)&&(m=0)}}return i}function fs(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,p=0===o?i:[""],f=_i(p),h=0,m=0,g=0;h<r;++h)for(var b=0,v=Vi(e,d+1,d=ki(m=s[h])),y=e;b<f;++b)(y=Bi(m>0?p[b]+" "+v:Mi(v,/&\f/g,p[b])))&&(l[g++]=y);return Ji(e,t,n,0===o?Ni:a,l,u,c)}function hs(e,t,n){return Ji(e,t,n,Oi,Ri(Yi),Vi(e,2,-2),0)}function ms(e,t,n,r){return Ji(e,t,n,ji,Vi(e,0,r),Vi(e,r+1,-1),r)}function gs(e,t){for(var n="",r=_i(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function bs(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ji:return e.return=e.return||e.value;case Oi:return"";case Pi:return e.return=e.value+"{"+gs(e.children,r)+"}";case Ni:e.value=e.props.join(",")}return Fi(n=gs(e.children,r))?e.return=e.value+"{"+n+"}":""}function vs(e){var t=_i(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}var ys="undefined"!=typeof document,xs=function(e,t,n){for(var r=0,o=0;r=o,o=qi(),38===r&&12===o&&(t[n]=1),!ns(o);)Qi();return ts(e,Zi)},Is=function(e,t){return os(function(e,t){var n=-1,r=44;do{switch(ns(r)){case 0:38===r&&12===qi()&&(t[n]=1),e[n]+=xs(Zi-1,t,n);break;case 2:e[n]+=is(r);break;case 4:if(44===r){e[++n]=58===qi()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ri(r)}}while(r=Qi());return e}(rs(e),t))},Cs=new WeakMap,ws=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Cs.get(n))&&!r){Cs.set(e,!0);for(var o=[],i=Is(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[u]):s[u]+" "+i[a]}}},Es=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function As(e,t){switch(function(e,t){return 45^Gi(e,0)?(((t<<2^Gi(e,0))<<2^Gi(e,1))<<2^Gi(e,2))<<2^Gi(e,3):0}(e,t)){case 5103:return Ti+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ti+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ti+e+Si+e+Ai+e+e;case 6828:case 4268:return Ti+e+Ai+e+e;case 6165:return Ti+e+Ai+"flex-"+e+e;case 5187:return Ti+e+Mi(e,/(\w+).+(:[^]+)/,Ti+"box-$1$2"+Ai+"flex-$1$2")+e;case 5443:return Ti+e+Ai+"flex-item-"+Mi(e,/flex-|-self/,"")+e;case 4675:return Ti+e+Ai+"flex-line-pack"+Mi(e,/align-content|flex-|-self/,"")+e;case 5548:return Ti+e+Ai+Mi(e,"shrink","negative")+e;case 5292:return Ti+e+Ai+Mi(e,"basis","preferred-size")+e;case 6060:return Ti+"box-"+Mi(e,"-grow","")+Ti+e+Ai+Mi(e,"grow","positive")+e;case 4554:return Ti+Mi(e,/([^-])(transform)/g,"$1"+Ti+"$2")+e;case 6187:return Mi(Mi(Mi(e,/(zoom-|grab)/,Ti+"$1"),/(image-set)/,Ti+"$1"),e,"")+e;case 5495:case 3959:return Mi(e,/(image-set\([^]*)/,Ti+"$1$`$1");case 4968:return Mi(Mi(e,/(.+:)(flex-)?(.*)/,Ti+"box-pack:$3"+Ai+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ti+e+e;case 4095:case 3583:case 4068:case 2532:return Mi(e,/(.+)-inline(.+)/,Ti+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fi(e)-1-t>6)switch(Gi(e,t+1)){case 109:if(45!==Gi(e,t+4))break;case 102:return Mi(e,/(.+:)(.+)-([^]+)/,"$1"+Ti+"$2-$3$1"+Si+(108==Gi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Di(e,"stretch")?As(Mi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Gi(e,t+1))break;case 6444:switch(Gi(e,Fi(e)-3-(~Di(e,"!important")&&10))){case 107:return Mi(e,":",":"+Ti)+e;case 101:return Mi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ti+(45===Gi(e,14)?"inline-":"")+"box$3$1"+Ti+"$2$3$1"+Ai+"$2box$3")+e}break;case 5936:switch(Gi(e,t+11)){case 114:return Ti+e+Ai+Mi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ti+e+Ai+Mi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ti+e+Ai+Mi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ti+e+Ai+e+e}return e}var Ss,Ts,Os,Ns=ys?void 0:(Ss=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},Ts=new WeakMap,function(e){if(Ts.has(e))return Ts.get(e);var t=Ss(e);return Ts.set(e,t),t}),js=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ji:e.return=As(e.value,e.length);break;case Pi:return gs([$i(e,{value:Mi(e.value,"@","@"+Ti)})],r);case Ni:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gs([$i(e,{props:[Mi(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return gs([$i(e,{props:[Mi(t,/:(plac\w+)/,":"+Ti+"input-$1")]}),$i(e,{props:[Mi(t,/:(plac\w+)/,":-moz-$1")]}),$i(e,{props:[Mi(t,/:(plac\w+)/,Ai+"input-$1")]})],r)}return""})}}],Ps=function(e){var t=e.key;if(ys&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||js,s={},a=[];ys&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,u=[ws,Es];if(Ns){var c=[bs],d=vs(u.concat(i,c)),p=Ns(i)(t),f=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=gs(ds(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};o=function(e,t,n,r){var o=t.name,i=f(e,t);return void 0===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}else{var h,m=[bs,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=vs(u.concat(i,m));o=function(e,t,n,r){h=n,gs(ds(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new Ei({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return b.sheet.hydrate(a),b},ks={exports:{}},Rs={};var Ls,Bs,Ms,Ds,Gs={};
|
|
43
43
|
/** @license React v16.13.1
|
|
44
44
|
* react-is.development.js
|
|
45
45
|
*
|
|
@@ -47,5 +47,5 @@ var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;fun
|
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the MIT license found in the
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/function Es(){return xs||(xs=1,"production"===process.env.NODE_ENV?bs.exports=function(){if(fs)return vs;fs=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case a:case c:case h:case f:case s:return e;default:return p}}case n:return p}}}function x(e){return y(e)===u}return vs.AsyncMode=l,vs.ConcurrentMode=u,vs.ContextConsumer=a,vs.ContextProvider=s,vs.Element=t,vs.ForwardRef=c,vs.Fragment=r,vs.Lazy=h,vs.Memo=f,vs.Portal=n,vs.Profiler=i,vs.StrictMode=o,vs.Suspense=d,vs.isAsyncMode=function(e){return x(e)||y(e)===l},vs.isConcurrentMode=x,vs.isContextConsumer=function(e){return y(e)===a},vs.isContextProvider=function(e){return y(e)===s},vs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vs.isForwardRef=function(e){return y(e)===c},vs.isFragment=function(e){return y(e)===r},vs.isLazy=function(e){return y(e)===h},vs.isMemo=function(e){return y(e)===f},vs.isPortal=function(e){return y(e)===n},vs.isProfiler=function(e){return y(e)===i},vs.isStrictMode=function(e){return y(e)===o},vs.isSuspense=function(e){return y(e)===d},vs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===s||e.$$typeof===a||e.$$typeof===c||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},vs.typeOf=y,vs}():bs.exports=(ys||(ys=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case l:case u:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case a:case c:case h:case f:case s:return g;default:return p}}case n:return p}}}var x=l,I=u,C=a,w=s,E=t,A=c,S=r,T=h,O=f,N=n,P=i,j=o,R=d,k=!1;function L(e){return y(e)===u}ws.AsyncMode=x,ws.ConcurrentMode=I,ws.ContextConsumer=C,ws.ContextProvider=w,ws.Element=E,ws.ForwardRef=A,ws.Fragment=S,ws.Lazy=T,ws.Memo=O,ws.Portal=N,ws.Profiler=P,ws.StrictMode=j,ws.Suspense=R,ws.isAsyncMode=function(e){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||y(e)===l},ws.isConcurrentMode=L,ws.isContextConsumer=function(e){return y(e)===a},ws.isContextProvider=function(e){return y(e)===s},ws.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ws.isForwardRef=function(e){return y(e)===c},ws.isFragment=function(e){return y(e)===r},ws.isLazy=function(e){return y(e)===h},ws.isMemo=function(e){return y(e)===f},ws.isPortal=function(e){return y(e)===n},ws.isProfiler=function(e){return y(e)===i},ws.isStrictMode=function(e){return y(e)===o},ws.isSuspense=function(e){return y(e)===d},ws.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===s||e.$$typeof===a||e.$$typeof===c||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},ws.typeOf=y}()),ws)),bs.exports}!function(){if(Cs)return Is;Cs=1;var e=Es(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var s=Object.defineProperty,a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;Is=function e(t,r,o){if("string"!=typeof r){if(d){var p=c(r);p&&p!==d&&e(t,p,o)}var f=a(r);l&&(f=f.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<f.length;++g){var b=f[g];if(!(n[b]||o&&o[b]||m&&m[b]||h&&h[b])){var v=u(r,b);try{s(t,b,v)}catch(e){}}}}return t}}();var As="undefined"!=typeof document;var Ss=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===As&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var Ts={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Os(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ns=/[A-Z]|^ms/g,Ps=/_EMO_([^_]+?)_([^]*?)_EMO_/g,js=function(e){return 45===e.charCodeAt(1)},Rs=function(e){return null!=e&&"boolean"!=typeof e},ks=Os(function(e){return js(e)?e:e.replace(Ns,"-$&").toLowerCase()}),Ls=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ps,function(e,t,n){return Ms={name:t,styles:n,next:Ms},t})}return 1===Ts[e]||js(e)||"number"!=typeof t||0===t?t:t+"px"};function Bs(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ms={name:o.name,styles:o.styles,next:Ms},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)Ms={name:s.name,styles:s.styles,next:Ms},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Bs(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;Rs(a)&&(r+=ks(i)+":"+Ls(i,a)+";")}else if(Array.isArray(s)&&"string"==typeof s[0]&&null==t)for(var l=0;l<s.length;l++)Rs(s[l])&&(r+=ks(i)+":"+Ls(i,s[l])+";");else{var u=Bs(e,t,s);switch(i){case"animation":case"animationName":r+=ks(i)+":"+u+";";break;default:r+=i+"{"+u+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var a=Ms,l=n(e);return Ms=a,Bs(e,t,l)}}return n}var Ms,Gs=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ds(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ms=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Bs(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++){if(o+=Bs(n,t,e[s]),r)o+=i[s]}Gs.lastIndex=0;for(var a,l="";null!==(a=Gs.exec(o));)l+="-"+a[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:Ms}}var Vs="undefined"!=typeof document,Fs=function(e){return e()},_s=!!s.useInsertionEffect&&s.useInsertionEffect,Hs=Vs&&_s||Fs,Ws="undefined"!=typeof document,Xs=s.createContext("undefined"!=typeof HTMLElement?gs({key:"css"}):null);Xs.Provider;var zs=function(e){return t.forwardRef(function(n,r){var o=t.useContext(Xs);return e(n,o,r)})};Ws||(zs=function(e){return function(n){var r=t.useContext(Xs);return null===r?(r=gs({key:"css"}),s.createElement(Xs.Provider,{value:r},e(n,r))):e(n,r)}});var Zs,Ys,Us=s.createContext({}),Js={}.hasOwnProperty,$s="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ks=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ss(t,n,r);var o=Hs(function(){return function(e,t,n){Ss(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var s=e.insert(t===i?"."+r:"",i,e.sheet,!0);As||void 0===s||(o+=s),i=i.next}while(void 0!==i);if(!As&&0!==o.length)return o}}(t,n,r)});if(!Ws&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return s.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},Qs=zs(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[$s],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=Ds(i,void 0,s.useContext(Us));a+=t.key+"-"+l.name;var u={};for(var c in e)Js.call(e,c)&&"css"!==c&&c!==$s&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),s.createElement(s.Fragment,null,s.createElement(Ks,{cache:t,serialized:l,isStringTag:"string"==typeof o}),s.createElement(o,u))}),qs=Qs,ea=function(e,t){var n=arguments;if(null==t||!Js.call(t,"css"))return s.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=qs,o[1]=function(e,t){var n={};for(var r in t)Js.call(t,r)&&(n[r]=t[r]);return n[$s]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return s.createElement.apply(null,o)};function ta(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ds(t)}Zs=ea||(ea={}),Ys||(Ys=Zs.JSX||(Zs.JSX={}));const na=Math.min,ra=Math.max,oa=Math.round,ia=Math.floor,sa=e=>({x:e,y:e});function aa(){return"undefined"!=typeof window}function la(e){return da(e)?(e.nodeName||"").toLowerCase():"#document"}function ua(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ca(e){var t;return null==(t=(da(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function da(e){return!!aa()&&(e instanceof Node||e instanceof ua(e).Node)}function pa(e){return!!aa()&&(e instanceof HTMLElement||e instanceof ua(e).HTMLElement)}function fa(e){return!(!aa()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ua(e).ShadowRoot)}const ha=new Set(["inline","contents"]);function ma(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ha.has(o)}const ga=new Set(["html","body","#document"]);function ba(e){return ua(e).getComputedStyle(e)}function va(e){const t=function(e){if("html"===la(e))return e;const t=e.assignedSlot||e.parentNode||fa(e)&&e.host||ca(e);return fa(t)?t.host:t}(e);return function(e){return ga.has(la(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:pa(t)&&ma(t)?t:va(t)}function ya(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=va(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=ua(o);if(i){const e=xa(s);return t.concat(s,s.visualViewport||[],ma(o)?o:[],e&&n?ya(e):[])}return t.concat(o,ya(o,[],n))}function xa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ia(e){return t=e,aa()&&(t instanceof Element||t instanceof ua(t).Element)?e:e.contextElement;var t}function Ca(e){const t=Ia(e);if(!pa(t))return sa(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=ba(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=pa(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=oa(n)!==i||oa(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}(t);let s=(i?oa(n.width):n.width)/r,a=(i?oa(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}function wa(e,t,n,r){void 0===t&&(t=!1);const o=e.getBoundingClientRect(),i=Ia(e);let s=sa(1);t&&(s=Ca(e));const a=sa(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){const e=r;let t=ua(i),n=xa(t);for(;n&&r&&e!==t;){const e=Ca(n),r=n.getBoundingClientRect(),o=ba(n),i=r.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,s=r.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=s,t=ua(n),n=xa(t)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:c,height:d,x:l,y:u})}function Ea(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Aa(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Ia(e),c=o||i?[...u?ya(u):[],...ya(t)]:[];c.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=u&&a?function(e,t){let n,r=null;const o=ca(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:f}=u;if(a||t(),!p||!f)return;const h={rootMargin:-ia(d)+"px "+-ia(o.clientWidth-(c+p))+"px "+-ia(o.clientHeight-(d+f))+"px "+-ia(c)+"px",threshold:ra(0,na(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||Ea(u,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(u,n):null;let p,f=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m=l?wa(e):null;return l&&function t(){const r=wa(e);m&&!Ea(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var Sa="undefined"!=typeof document?t.useLayoutEffect:function(){},Ta=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Oa=function(){};function Na(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Pa(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(Na(e,s)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var ja=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Uo(e)&&null!==e?[e]:[];var t},Ra=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Qo({},ni(e,Ta))},ka=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,s=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),s)}};function La(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ba(e){return La(e)?window.pageYOffset:e.scrollTop}function Ma(e,t){La(e)?window.scrollTo(0,t):e.scrollTop=t}function Ga(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Oa,o=Ba(e),i=t-o,s=0;!function t(){var a,l=i*((a=(a=s+=10)/n-1)*a*a+1)+o;Ma(e,l),s<n?window.requestAnimationFrame(t):r(e)}()}function Da(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Ma(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Ma(e,Math.max(t.offsetTop-o,0))}function Va(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Fa=!1,_a={get passive(){return Fa=!0}},Ha="undefined"!=typeof window?window:{};Ha.addEventListener&&Ha.removeEventListener&&(Ha.addEventListener("p",Oa,_a),Ha.removeEventListener("p",Oa,!1));var Wa=Fa;function Xa(e){return null!=e}function za(e,t,n){return e?t:n}var Za=["children","innerProps"],Ya=["children","innerProps"];function Ua(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,g=n.offsetParent.getBoundingClientRect().top,b=s?window.innerHeight:La(c=l)?window.innerHeight:c.clientHeight,v=Ba(l),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),I=g-x,C=b-m,w=I+v,E=d-v-m,A=f-b+v+y,S=v+m-x,T=160;switch(o){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!s)return i&&Ga(l,A,T),{placement:"bottom",maxHeight:t};if(!s&&E>=r||s&&C>=r)return i&&Ga(l,A,T),{placement:"bottom",maxHeight:s?C-y:E-y};if("auto"===o||s){var O=t,N=s?I:w;return N>=r&&(O=Math.min(N-y-a,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return i&&Ma(l,A),{placement:"bottom",maxHeight:t};break;case"top":if(I>=h)return{placement:"top",maxHeight:t};if(w>=h&&!s)return i&&Ga(l,S,T),{placement:"top",maxHeight:t};if(!s&&w>=r||s&&I>=r){var P=t;return(!s&&w>=r||s&&I>=r)&&(P=s?I-x:w-x),i&&Ga(l,S,T),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Ja,$a=function(e){return"auto"===e?"bottom":e},Ka=t.createContext(null),Qa=function(e){var n=e.children,r=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,a=e.menuShouldScrollIntoView,l=e.theme,u=(t.useContext(Ka)||{}).setPortalPlacement,c=t.useRef(null),d=ti(t.useState(o),2),p=d[0],f=d[1],h=ti(t.useState(null),2),m=h[0],g=h[1],b=l.spacing.controlHeight;return Sa(function(){var e=c.current;if(e){var t="fixed"===s,n=Ua({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:b});f(n.maxHeight),g(n.placement),null==u||u(n.placement)}},[o,i,s,a,r,u,b]),n({ref:c,placerProps:Qo(Qo({},e),{},{placement:m||$a(i),maxHeight:p})})},qa=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ea("div",Po({},ka(e,"menu",{menu:!0}),{ref:n},r),t)},el=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Qo({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},tl=el,nl=el,rl=["size"],ol=["innerProps","isRtl","size"];var il,sl,al="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},ll=function(e){var t=e.size,n=ni(e,rl);return ea("svg",Po({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:al},n))},ul=function(e){return ea(ll,Po({size:20},e),ea("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},cl=function(e){return ea(ll,Po({size:20},e),ea("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},dl=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Qo({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},pl=dl,fl=dl,hl=function(){var e=ta.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ja||(il=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],sl||(sl=il.slice(0)),Ja=Object.freeze(Object.defineProperties(il,{raw:{value:Object.freeze(sl)}})))),ml=function(e){var t=e.delay,n=e.offset;return ea("span",{css:ta({animation:"".concat(hl," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},gl=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,s=e.menuIsOpen;return ea("div",Po({ref:o},ka(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),i,{"aria-disabled":n||void 0}),t)},bl=["data"],vl=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return ea("div",Po({},ka(e,"group",{group:!0}),a),ea(i,Po({},s,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),l),ea("div",null,t))},yl=["innerRef","isDisabled","isHidden","inputClassName"],xl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Il={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Qo({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},xl)},Cl=function(e){return Qo({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},xl)},wl=function(e){var t=e.cx,n=e.value,r=Ra(e),o=r.innerRef,i=r.isDisabled,s=r.isHidden,a=r.inputClassName,l=ni(r,yl);return ea("div",Po({},ka(e,"input",{"input-container":!0}),{"data-value":n||""}),ea("input",Po({className:t({input:!0},a),ref:o,style:Cl(s),disabled:i},l)))},El=function(e){var t=e.children,n=e.innerProps;return ea("div",n,t)};var Al=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,s=e.removeProps,a=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return ea(l,{data:r,innerProps:Qo(Qo({},ka(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:a},ea(u,{data:r,innerProps:Qo({},ka(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),ea(c,{data:r,innerProps:Qo(Qo({},ka(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},Sl={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ea("div",Po({},ka(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ea(ul,null))},Control:gl,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ea("div",Po({},ka(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ea(cl,null))},DownChevron:cl,CrossIcon:ul,Group:vl,GroupHeading:function(e){var t=Ra(e);t.data;var n=ni(t,bl);return ea("div",Po({},ka(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ea("div",Po({},ka(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ea("span",Po({},t,ka(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:wl,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=ni(e,ol);return ea("div",Po({},ka(Qo(Qo({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ea(ml,{delay:0,offset:n}),ea(ml,{delay:160,offset:!0}),ea(ml,{delay:320,offset:!n}))},Menu:qa,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ea("div",Po({},ka(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var n=e.appendTo,r=e.children,i=e.controlElement,s=e.innerProps,a=e.menuPlacement,l=e.menuPosition,u=t.useRef(null),c=t.useRef(null),d=ti(t.useState($a(a)),2),p=d[0],f=d[1],h=t.useMemo(function(){return{setPortalPlacement:f}},[]),m=ti(t.useState(null),2),g=m[0],b=m[1],v=t.useCallback(function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===l?0:window.pageYOffset,n=e[p]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||b({offset:n,rect:e})}},[i,l,p,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);Sa(function(){v()},[v]);var y=t.useCallback(function(){"function"==typeof c.current&&(c.current(),c.current=null),i&&u.current&&(c.current=Aa(i,u.current,v,{elementResize:"ResizeObserver"in window}))},[i,v]);Sa(function(){y()},[y]);var x=t.useCallback(function(e){u.current=e,y()},[y]);if(!n&&"fixed"!==l||!g)return null;var I=ea("div",Po({ref:x},ka(Qo(Qo({},e),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),s),r);return ea(Ka.Provider,{value:h},n?o.createPortal(I,n):I)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=ni(e,Ya);return ea("div",Po({},ka(Qo(Qo({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=ni(e,Za);return ea("div",Po({},ka(Qo(Qo({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Al,MultiValueContainer:El,MultiValueLabel:El,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ea("div",Po({role:"button"},n),t||ea(ul,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,s=e.innerProps;return ea("div",Po({},ka(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return ea("div",Po({},ka(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ea("div",Po({},ka(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ea("div",Po({},ka(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ea("div",Po({},ka(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Tl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ol(e,t){return e===t||!(!Tl(e)||!Tl(t))}function Nl(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Ol(e[n],t[n]))return!1;return!0}for(var Pl="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},jl=function(e){return ea("span",Po({css:Pl},e))},Rl={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,s=e.selectValue,a=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(i," focused, ").concat(c(s,n),".");if("menu"===t&&u){var d=a?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},kl=function(e){var n=e.ariaSelection,r=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,s=e.isFocused,a=e.selectValue,l=e.selectProps,u=e.id,c=e.isAppleDevice,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,b=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,x=l.tabSelectsValue,I=l.isLoading,C=l["aria-label"],w=l["aria-live"],E=t.useMemo(function(){return Qo(Qo({},Rl),d||{})},[d]),A=t.useMemo(function(){var e,t="";if(n&&E.onChange){var r=n.option,o=n.options,i=n.removedValue,s=n.removedValues,l=n.value,u=i||r||(e=l,Array.isArray(e)?null:e),c=u?p(u):"",d=o||s||void 0,f=d?d.map(p):[],h=Qo({isDisabled:u&&m(u,a),label:c,labels:f},n);t=E.onChange(h)}return t},[n,E,m,a,p]),S=t.useMemo(function(){var e="",t=r||o,n=!!(r&&a&&a.includes(r));if(t&&E.onFocus){var s={focused:t,label:p(t),isDisabled:m(t,a),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:a,isAppleDevice:c};e=E.onFocus(s)}return e},[r,o,p,m,E,i,a,c]),T=t.useMemo(function(){var e="";if(b&&v.length&&!I&&E.onFilter){var t=y({count:i.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e},[i,f,b,E,v,y,I]),O="initial-input-focus"===(null==n?void 0:n.action),N=t.useMemo(function(){var e="";if(E.guidance){var t=o?"value":b?"menu":"input";e=E.guidance({"aria-label":C,context:t,isDisabled:r&&m(r,a),isMulti:h,isSearchable:g,tabSelectsValue:x,isInitialFocus:O})}return e},[C,r,o,h,m,g,b,E,a,x,O]),P=ea(t.Fragment,null,ea("span",{id:"aria-selection"},A),ea("span",{id:"aria-focused"},S),ea("span",{id:"aria-results"},T),ea("span",{id:"aria-guidance"},N));return ea(t.Fragment,null,ea(jl,{id:u},O&&P),ea(jl,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!O&&P))},Ll=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Bl=new RegExp("["+Ll.map(function(e){return e.letters}).join("")+"]","g"),Ml={},Gl=0;Gl<Ll.length;Gl++)for(var Dl=Ll[Gl],Vl=0;Vl<Dl.letters.length;Vl++)Ml[Dl.letters[Vl]]=Dl.base;var Fl=function(e){return e.replace(Bl,function(e){return Ml[e]})},_l=function(e,t){void 0===t&&(t=Nl);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Fl),Hl=function(e){return e.replace(/^\s+|\s+$/g,"")},Wl=function(e){return"".concat(e.label," ").concat(e.value)},Xl=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=Qo({ignoreCase:!0,ignoreAccents:!0,stringify:Wl,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,s=r.stringify,a=r.trim,l=r.matchFrom,u=a?Hl(n):n,c=a?Hl(s(t)):s(t);return o&&(u=u.toLowerCase(),c=c.toLowerCase()),i&&(u=_l(u),c=Fl(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-1}},zl=["innerRef"];function Zl(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter(function(e){var t=ti(e,1)[0];return!n.includes(t)});return o.reduce(function(e,t){var n=ti(t,2),r=n[0],o=n[1];return e[r]=o,e},{})}(ni(e,zl),"onExited","in","enter","exit","appear");return ea("input",Po({ref:t},n,{css:ta({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var Yl=["boxSizing","height","overflow","paddingRight","position"],Ul={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Jl(e){e.cancelable&&e.preventDefault()}function $l(e){e.stopPropagation()}function Kl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ql(){return"ontouchstart"in window||navigator.maxTouchPoints}var ql=!("undefined"==typeof window||!window.document||!window.document.createElement),eu=0,tu={capture:!1,passive:!1};var nu=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},ru="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function ou(e){var n=e.children,r=e.lockEnabled,o=e.captureEnabled,i=function(e){var n=e.isEnabled,r=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,s=e.onTopLeave,a=t.useRef(!1),l=t.useRef(!1),u=t.useRef(0),c=t.useRef(null),d=t.useCallback(function(e,t){if(null!==c.current){var n=c.current,u=n.scrollTop,d=n.scrollHeight,p=n.clientHeight,f=c.current,h=t>0,m=d-p-u,g=!1;m>t&&a.current&&(o&&o(e),a.current=!1),h&&l.current&&(s&&s(e),l.current=!1),h&&t>m?(r&&!a.current&&r(e),f.scrollTop=d,g=!0,a.current=!0):!h&&-t>u&&(i&&!l.current&&i(e),f.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[r,o,i,s]),p=t.useCallback(function(e){d(e,e.deltaY)},[d]),f=t.useCallback(function(e){u.current=e.changedTouches[0].clientY},[]),h=t.useCallback(function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)},[d]),m=t.useCallback(function(e){if(e){var t=!!Wa&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}},[h,f,p]),g=t.useCallback(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))},[h,f,p]);return t.useEffect(function(){if(n){var e=c.current;return m(e),function(){g(e)}}},[n,m,g]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var n=e.isEnabled,r=e.accountForScrollbars,o=void 0===r||r,i=t.useRef({}),s=t.useRef(null),a=t.useCallback(function(e){if(ql){var t=document.body,n=t&&t.style;if(o&&Yl.forEach(function(e){var t=n&&n[e];i.current[e]=t}),o&&eu<1){var r=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+r||0;Object.keys(Ul).forEach(function(e){var t=Ul[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(a,"px"))}t&&Ql()&&(t.addEventListener("touchmove",Jl,tu),e&&(e.addEventListener("touchstart",Kl,tu),e.addEventListener("touchmove",$l,tu))),eu+=1}},[o]),l=t.useCallback(function(e){if(ql){var t=document.body,n=t&&t.style;eu=Math.max(eu-1,0),o&&eu<1&&Yl.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&Ql()&&(t.removeEventListener("touchmove",Jl,tu),e&&(e.removeEventListener("touchstart",Kl,tu),e.removeEventListener("touchmove",$l,tu)))}},[o]);return t.useEffect(function(){if(n){var e=s.current;return a(e),function(){l(e)}}},[n,a,l]),function(e){s.current=e}}({isEnabled:r});return ea(t.Fragment,null,r&&ea("div",{onClick:nu,css:ru}),n(function(e){i(e),s(e)}))}var iu="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},su=function(e){var t=e.name,n=e.onFocus;return ea("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:iu,value:"",onChange:function(){}})};function au(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function lu(){return au(/^Mac/i)}function uu(){return au(/^iPhone/i)||au(/^iPad/i)||lu()&&navigator.maxTouchPoints>1}var cu={clearIndicator:fl,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,s=o.borderRadius;return Qo({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:pl,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Qo({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Qo({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,s=o.colors;return Qo(Qo({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Il),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,s=o.spacing.baseUnit;return Qo({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*s})},loadingMessage:nl,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,s=o.spacing,a=o.colors;return Qo(($o(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),$o(n,"position","absolute"),$o(n,"width","100%"),$o(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Qo({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Qo({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Qo({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,s=e.isFocused;return Qo({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:tl,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,s=i.spacing,a=i.colors;return Qo({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?a.primary:r?a.primary25:"transparent",color:n?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Qo({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Qo({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Qo({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},du={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},pu={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Va(),captureMenuScroll:!Va(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Xl(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function fu(e,t,n,r){return{type:"option",data:t,isDisabled:Iu(e,t,n),isSelected:Cu(e,t,n),label:yu(e,t),value:xu(e,t),index:r}}function hu(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return fu(e,n,t,r)}).filter(function(t){return bu(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=fu(e,n,t,r);return bu(e,i)?i:void 0}).filter(Xa)}function mu(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,li(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function gu(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,li(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function bu(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!Eu(e)||!i)&&wu(e,{label:s,value:a,data:o},r)}var vu=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},yu=function(e,t){return e.getOptionLabel(t)},xu=function(e,t){return e.getOptionValue(t)};function Iu(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Cu(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=xu(e,t);return n.some(function(t){return xu(e,t)===r})}function wu(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Eu=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Au=1,Su=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ro(e,t)}(n,t.Component);var e=function(e){var t=si();return function(){var n,r=ii(e);if(t){var o=ii(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ai(this,n)}}(n);function n(t){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=e.call(this,t)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,s=o.isMulti,a=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:a}),i&&(r.setState({inputIsHiddenAfterUpdate:!s}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,s=r.state.selectValue,a=o&&r.isOptionSelected(e,s),l=r.isOptionDisabled(e,s);if(a){var u=r.getOptionValue(e);r.setValue(s.filter(function(e){return r.getOptionValue(e)!==u}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(li(s),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),s=za(t,i,i[0]||null);r.onChange(s,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(za(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=za(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return vu(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return gu(hu(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pa.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return yu(r.props,e)},r.getOptionValue=function(e){return xu(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=cu[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Qo(Qo({},Sl),e.components);var e},r.buildCategorizedOptions=function(){return hu(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return mu(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Qo({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&La(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Eu(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;r.focusValue("previous");break;case"ArrowRight":if(!n||s)return;r.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():a&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!h||p&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:s}),r.onMenuClose()):a&&i&&r.clearValue();break;case" ":if(s)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Au),r.state.selectValue=ja(t.value),t.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),s=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[s],r.state.focusedOptionId=vu(o,i[s])}return r}return function(e,t,n){t&&oi(e.prototype,t),n&&oi(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Da(this.menuListRef,this.focusedOptionRef),(lu()||uu())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Da(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),s="first"===e?0:i.length-1;if(!this.props.isMulti){var a=i.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[s],focusedOptionId:this.getFocusedOptionId(i[s])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(s=o+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(du):Qo(Qo({},du),this.props.theme):du}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,s=this.setValue,a=this.props,l=a.isMulti,u=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:i,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Iu(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Cu(this.props,e,t)}},{key:"filterOption",value:function(e,t){return wu(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,l=e.menuIsOpen,u=e.required,c=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=Qo(Qo(Qo({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?s.createElement(c,Po({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},g)):s.createElement(Zl,Po({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Oa,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return h?null:s.createElement(l,Po({},u,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return b.map(function(t,a){var l=t===v,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return s.createElement(n,Po({},u,{components:{Container:r,Label:o,Remove:i},isFocused:l,isDisabled:p,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var x=b[0];return s.createElement(a,Po({},u,{data:x,isDisabled:p}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,Po({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return s.createElement(e,Po({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return s.createElement(n,Po({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,Po({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,b=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,x=f.menuIsOpen,I=f.menuPlacement,C=f.menuPosition,w=f.menuPortalTarget,E=f.menuShouldBlockScroll,A=f.menuShouldScrollIntoView,S=f.noOptionsMessage,T=f.onMenuScrollToTop,O=f.onMenuScrollToBottom;if(!x)return null;var N,P=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,l=t.label,u=t.value,f=p===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:a};return s.createElement(c,Po({},d,{innerProps:b,data:o,isDisabled:i,isSelected:a,key:g,label:l,type:r,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map(function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,l="".concat(e.getElementId("group"),"-").concat(a),u="".concat(l,"-heading");return s.createElement(n,Po({},d,{key:l,data:o,options:i,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return P(e,"".concat(a,"-").concat(e.index))}))}if("option"===t.type)return P(t,"".concat(t.index))});else if(g){var j=b({inputValue:m});if(null===j)return null;N=s.createElement(l,d,j)}else{var R=S({inputValue:m});if(null===R)return null;N=s.createElement(u,d,R)}var k={minMenuHeight:v,maxMenuHeight:y,menuPlacement:I,menuPosition:C,menuShouldScrollIntoView:A},L=s.createElement(Qa,Po({},d,k),function(t){var n=t.ref,r=t.placerProps,a=r.placement,l=r.maxHeight;return s.createElement(o,Po({},d,k,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),s.createElement(ou,{captureEnabled:h,onTopArrive:T,onBottomArrive:O,lockEnabled:E},function(t){return s.createElement(i,Po({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:p}),N)}))});return w||"fixed"===C?s.createElement(a,Po({},d,{appendTo:w,controlElement:this.controlRef,menuPlacement:I,menuPosition:C}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,l=this.state.selectValue;if(a&&!this.hasValue()&&!r)return s.createElement(su,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var u=l.map(function(t){return e.getOptionValue(t)}).join(n);return s.createElement("input",{name:i,type:"hidden",value:u})}var c=l.length>0?l.map(function(t,n){return s.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):s.createElement("input",{name:i,type:"hidden",value:""});return s.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return s.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,l=this.getFocusableOptions();return s.createElement(kl,Po({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,l=i.id,u=i.isDisabled,c=i.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return s.createElement(r,Po({},p,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),s.createElement(t,Po({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),s.createElement(o,Po({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),s.createElement(n,Po({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=ja(c),m={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return mu(hu(e,t))}(e,h):[],b=d?gu(hu(e,h),"".concat(l,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:y,focusedOptionId:vu(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},I=i,C=s&&a;return s&&!C&&(I={value:za(f,h,h[0]||null),options:h,action:"initial-input-focus"},C=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(I=null),Qo(Qo(Qo({},m),x),{},{prevProps:e,ariaSelection:I,prevWasFocused:C})}}]),n}();Su.defaultProps=pu;var Tu=t.forwardRef(function(e,n){var r=function(e){var n=e.defaultInputValue,r=void 0===n?"":n,o=e.defaultMenuIsOpen,i=void 0!==o&&o,s=e.defaultValue,a=void 0===s?null:s,l=e.inputValue,u=e.menuIsOpen,c=e.onChange,d=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=ni(e,ri),g=ti(t.useState(void 0!==l?l:r),2),b=g[0],v=g[1],y=ti(t.useState(void 0!==u?u:i),2),x=y[0],I=y[1],C=ti(t.useState(void 0!==h?h:a),2),w=C[0],E=C[1],A=t.useCallback(function(e,t){"function"==typeof c&&c(e,t),E(e)},[c]),S=t.useCallback(function(e,t){var n;"function"==typeof d&&(n=d(e,t)),v(void 0!==n?n:e)},[d]),T=t.useCallback(function(){"function"==typeof f&&f(),I(!0)},[f]),O=t.useCallback(function(){"function"==typeof p&&p(),I(!1)},[p]),N=void 0!==l?l:b,P=void 0!==u?u:x,j=void 0!==h?h:w;return Qo(Qo({},m),{},{inputValue:N,menuIsOpen:P,onChange:A,onInputChange:S,onMenuClose:O,onMenuOpen:T,value:j})}(e);return s.createElement(Su,Po({ref:n},r))}),Ou=Tu;const Nu={sm:"h-12 px-3 rounded-lg",md:"h-14 px-3 rounded-xl",lg:"h-16 px-3 rounded-2xl"},Pu=t.memo(({options:n,className:r,controlClassName:o,value:i,isCustomStyle:s=!1,placeholder:a,required:l,onChange:u,filterOptions:c,hasError:d,error:p,menuClassName:f,helperText:h,label:m,labelClassName:g,singleValueClassName:b,size:v="md",variant:y="default","data-cy":x,"data-testid":I,...C})=>{const w=t.useMemo(()=>Xl(c),[c]),E=t.useMemo(()=>({control:({isFocused:e})=>{var t;return xe(null!==(t=Nu[v])&&void 0!==t?t:Nu.md,"border border-input-border bg-white hover:not-focus:border-input-border-hover",{"border-input-border-selected outline outline-2 outline-input-border-selected":e&&!d,"border-input-border-critical shadow-none":d},o)},indicatorSeparator:()=>"hidden",dropdownIndicator:({selectProps:e})=>s?e.value?"hidden":"block":"block text-icon-default "+(d?"text-icon-critical":""),singleValue:()=>xe(s?"text-text text-body1 whitespace-normal":"text-text-secondary",b),menu:()=>xe("z-20 mt-2 rounded-input-poppers bg-surface shadow-dark-drop",f),option:({isFocused:e,isSelected:t,label:r})=>{var o;return xe("min-h-[40px] px-4 py-2 cursor-pointer",t?"bg-gray-200 text-text font-semibold":"bg-white text-text-secondary",!t&&"hover:bg-bg-surface-hover",!t&&e&&"bg-bg-surface-hover",s?"text-body1 text-text":"",s&&(null===(o=n[n.length-1])||void 0===o?void 0:o.label)!==r?"border-b border-border-brand":"")},placeholder:()=>"text-input-text-placeholder",input:()=>"text-text",valueContainer:()=>"px-0"}),[s,o,f,n,d,v,b]);return"unstyled"===y?e.jsx(Ou,{options:n,value:i,placeholder:l?`${a}*`:a,onChange:u,filterOption:w,className:xe("rounded-xl",r),classNames:E,"data-cy":x,"data-testid":I,...C}):e.jsxs("div",{className:"w-full",children:[m&&e.jsx("label",{className:xe("mb-1 block text-sm font-medium text-text-secondary",g),children:m}),e.jsx(Ou,{options:n,value:i,placeholder:l?`${a}*`:a,onChange:u,filterOption:w,className:xe("rounded-xl",r),classNames:E,"data-cy":x,"data-testid":I,...C}),p&&e.jsx(dn,{className:"footnote mt-1 text-text-critical",children:p}),!p&&h&&e.jsx(dn,{className:"footnote mt-1 text-text-info",children:h})]})});Pu.displayName="Select";const ju=({errorMessage:t,className:n,iconClassName:r,iconSize:o=52,iconName:i="dangerous",textVariant:s})=>t?e.jsxs("div",{className:xe("flex flex-col items-center justify-center gap-5 rounded-surface-sm border-2 border-border-critical bg-bg-fill-critical-secondary px-4 py-6 md:flex-row md:py-4",n),"data-testid":"alert-card",children:[e.jsx("div",{children:e.jsx(cn,{name:i,size:o,className:xe("text-icon-critical",r)})}),e.jsx(dn,{className:xe("body2 text-text",s),children:t})]}):null;ju.displayName="AlertCard";const Ru=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()},ku="pop",Lu=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Bu=t.createContext({}),Mu=t.createContext(null),Gu="undefined"!=typeof document,Du=Gu?t.useLayoutEffect:t.useEffect,Vu=t.createContext({strict:!1});function Fu(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function _u(e){return"string"==typeof e||Array.isArray(e)}function Hu(e){return"object"==typeof e&&"function"==typeof e.start}const Wu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xu=["initial",...Wu];function zu(e){return Hu(e.animate)||Xu.some(t=>_u(e[t]))}function Zu(e){return Boolean(zu(e)||e.variants)}function Yu(e){const{initial:n,animate:r}=function(e,t){if(zu(e)){const{initial:t,animate:n}=e;return{initial:!1===t||_u(t)?t:void 0,animate:_u(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(Bu));return t.useMemo(()=>({initial:n,animate:r}),[Uu(n),Uu(r)])}function Uu(e){return Array.isArray(e)?e.join(" "):e}const Ju={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"]},$u={};for(const e in Ju)$u[e]={isEnabled:t=>Ju[e].some(e=>!!t[e])};const Ku=t.createContext({}),Qu=t.createContext({}),qu=Symbol.for("motionComponentSymbol");function ec({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:o,Component:i}){e&&function(e){for(const t in e)$u[t]={...$u[t],...e[t]}}(e);const a=t.forwardRef(function(a,l){let u;const c={...t.useContext(Lu),...a,layoutId:tc(a)},{isStatic:d}=c,p=Yu(a),f=o(a,d);if(!d&&Gu){p.visualElement=function(e,n,r,o){const{visualElement:i}=t.useContext(Bu),s=t.useContext(Vu),a=t.useContext(Mu),l=t.useContext(Lu).reducedMotion,u=t.useRef();o=o||s.renderer,!u.current&&o&&(u.current=o(e,{visualState:n,parent:i,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const c=u.current;return t.useInsertionEffect(()=>{c&&c.update(r,a)}),Du(()=>{c&&c.render()}),t.useEffect(()=>{c&&c.updateFeatures()}),(window.HandoffAppearAnimations?Du:t.useEffect)(()=>{c&&c.animationState&&c.animationState.animateChanges()}),c}(i,f,c,n);const r=t.useContext(Qu),o=t.useContext(Vu).strict;p.visualElement&&(u=p.visualElement.loadFeatures(c,o,e,r))}return s.createElement(Bu.Provider,{value:p},u&&p.visualElement?s.createElement(u,{visualElement:p.visualElement,...c}):null,r(i,a,function(e,n,r){return t.useCallback(t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):Fu(r)&&(r.current=t))},[n])}(f,p.visualElement,l),f,d,p.visualElement))});return a[qu]=i,a}function tc({layoutId:e}){const n=t.useContext(Ku).id;return n&&void 0!==e?n+"-"+e:e}function nc(e){function t(t,n={}){return ec(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 rc=["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 oc(e){return"string"==typeof e&&!e.includes("-")&&!!(rc.indexOf(e)>-1||/[A-Z]/.test(e))}const ic={};const sc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ac=new Set(sc);function lc(e,{layout:t,layoutId:n}){return ac.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!ic[e]||"opacity"===e)}const uc=e=>Boolean(e&&e.getVelocity),cc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dc=sc.length;const pc=e=>t=>"string"==typeof t&&t.startsWith(e),fc=pc("--"),hc=pc("var(--"),mc=(e,t)=>t&&"number"==typeof e?t.transform(e):e,gc=(e,t,n)=>Math.min(Math.max(n,e),t),bc={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},vc={...bc,transform:e=>gc(0,1,e)},yc={...bc,default:1},xc=e=>Math.round(1e5*e)/1e5,Ic=/(-)?([\d]*\.?[\d])+/g,Cc=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,wc=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ec(e){return"string"==typeof e}const Ac=e=>({test:t=>Ec(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Sc=Ac("deg"),Tc=Ac("%"),Oc=Ac("px"),Nc=Ac("vh"),Pc=Ac("vw"),jc={...Tc,parse:e=>Tc.parse(e)/100,transform:e=>Tc.transform(100*e)},Rc={...bc,transform:Math.round},kc={borderWidth:Oc,borderTopWidth:Oc,borderRightWidth:Oc,borderBottomWidth:Oc,borderLeftWidth:Oc,borderRadius:Oc,radius:Oc,borderTopLeftRadius:Oc,borderTopRightRadius:Oc,borderBottomRightRadius:Oc,borderBottomLeftRadius:Oc,width:Oc,maxWidth:Oc,height:Oc,maxHeight:Oc,size:Oc,top:Oc,right:Oc,bottom:Oc,left:Oc,padding:Oc,paddingTop:Oc,paddingRight:Oc,paddingBottom:Oc,paddingLeft:Oc,margin:Oc,marginTop:Oc,marginRight:Oc,marginBottom:Oc,marginLeft:Oc,rotate:Sc,rotateX:Sc,rotateY:Sc,rotateZ:Sc,scale:yc,scaleX:yc,scaleY:yc,scaleZ:yc,skew:Sc,skewX:Sc,skewY:Sc,distance:Oc,translateX:Oc,translateY:Oc,translateZ:Oc,x:Oc,y:Oc,z:Oc,perspective:Oc,transformPerspective:Oc,opacity:vc,originX:jc,originY:jc,originZ:Oc,zIndex:Rc,fillOpacity:vc,strokeOpacity:vc,numOctaves:Rc};function Lc(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const e in t){const n=t[e];if(fc(e)){i[e]=n;continue}const r=kc[e],d=mc(n,r);if(ac.has(e)){if(l=!0,s[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,a[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<dc;t++){const n=sc[t];void 0!==e[n]&&(i+=`${cc[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,c,r):o.transform&&(o.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;o.transformOrigin=`${e} ${t} ${n}`}}const Bc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Mc(e,t,n){for(const r in t)uc(t[r])||lc(r,n)||(e[r]=t[r])}function Gc(e,n,r){const o={};return Mc(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return Lc(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)},[n])}(e,n,r)),e.transformValues?e.transformValues(o):o}function Dc(e,t,n){const r={},o=Gc(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 Vc=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 Fc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Vc.has(e)}let _c=e=>!Fc(e);try{(Hc=require("@emotion/is-prop-valid").default)&&(_c=e=>e.startsWith("on")?!Fc(e):Hc(e))}catch(fn){}var Hc;function Wc(e,t,n){return"string"==typeof e?e:Oc.transform(t+n*e)}const Xc={offset:"stroke-dashoffset",array:"stroke-dasharray"},zc={offset:"strokeDashoffset",array:"strokeDasharray"};function Zc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,p){if(Lc(e,u,c,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${Wc(t,e.x,e.width)} ${Wc(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Xc:zc;e[i.offset]=Oc.transform(-r);const s=Oc.transform(t),a=Oc.transform(n);e[i.array]=`${s} ${a}`}(f,s,a,l,!1)}const Yc=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Uc=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Jc(e,n,r,o){const i=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Zc(t,n,{enableHardwareAcceleration:!1},Uc(o),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};Mc(t,e.style,e),i.style={...t,...i.style}}return i}function $c(e=!1){return(n,r,o,{latestValues:i},s)=>{const a=(oc(n)?Jc:Dc)(r,i,s,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(_c(o)||!0===n&&Fc(o)||!t&&!Fc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,e),u={...l,...a,ref:o},{children:c}=r,d=t.useMemo(()=>uc(c)?c.get():c,[c]);return t.createElement(n,{...u,children:d})}}const Kc=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Qc(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 qc=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 ed(e,t,n,r){Qc(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(qc.has(n)?n:Kc(n),t.attrs[n])}function td(e,t){const{style:n}=e,r={};for(const o in n)(uc(n[o])||t.style&&uc(t.style[o])||lc(o,e))&&(r[o]=n[o]);return r}function nd(e,t){const n=td(e,t);for(const r in e)if(uc(e[r])||uc(t[r])){n[-1!==sc.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function rd(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 od=e=>Array.isArray(e),id=e=>od(e)?e[e.length-1]||0:e;function sd(e){const t=uc(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const ad=e=>(n,r)=>{const o=t.useContext(Bu),i=t.useContext(Mu),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:ld(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,n,o,i);return r?s():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(s)};function ld(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=sd(i[e]);let{initial:s,animate:a}=e;const l=zu(e),u=Zu(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const d=c?a:s;if(d&&"boolean"!=typeof d&&!Hu(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=rd(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[c?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]})}return o}const ud={useVisualState:ad({scrapeMotionValuesFromProps:nd,createRenderState:Yc,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}}Zc(n,r,{enableHardwareAcceleration:!1},Uc(t.tagName),e.transformTemplate),ed(t,n)}})},cd={useVisualState:ad({scrapeMotionValuesFromProps:td,createRenderState:Bc})};function dd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const pd=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function fd(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function hd(e,t,n,r){return dd(e,t,(e=>t=>pd(t)&&e(t,fd(t)))(n),r)}const md=(e,t)=>n=>t(e(n)),gd=(...e)=>e.reduce(md);function bd(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const vd=bd("dragHorizontal"),yd=bd("dragVertical");function xd(e){let t=!1;if("y"===e)t=yd();else if("x"===e)t=vd();else{const e=vd(),n=yd();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Id(){const e=xd(!0);return!e||(e(),!1)}class Cd{constructor(e){this.isMounted=!1,this.node=e}update(){}}const wd={delta:0,timestamp:0,isProcessing:!1};let Ed=!0,Ad=!1;const Sd=["read","update","preRender","render","postRender"],Td=Sd.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,u=l?t:n;return i&&s.add(e),-1===u.indexOf(e)&&(u.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}(()=>Ad=!0),e),{}),Od=e=>Td[e].process(wd),Nd=e=>{Ad=!1,wd.delta=Ed?1e3/60:Math.max(Math.min(e-wd.timestamp,40),1),wd.timestamp=e,wd.isProcessing=!0,Sd.forEach(Od),wd.isProcessing=!1,Ad&&(Ed=!1,requestAnimationFrame(Nd))},Pd=Sd.reduce((e,t)=>{const n=Td[t];return e[t]=(e,t=!1,r=!1)=>(Ad||(Ad=!0,Ed=!0,wd.isProcessing||requestAnimationFrame(Nd)),n.schedule(e,t,r)),e},{});function jd(e){Sd.forEach(t=>Td[t].cancel(e))}function Rd(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return hd(e.current,n,(n,o)=>{if("touch"===n.type||Id())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Pd.update(()=>i[r](n,o))},{passive:!e.getProps()[r]})}const kd=(e,t)=>!!t&&(e===t||kd(e,t.parentElement)),Ld=e=>e;function Bd(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,fd(n))}const Md=new WeakMap,Gd=new WeakMap,Dd=e=>{const t=Md.get(e.target);t&&t(e)},Vd=e=>{e.forEach(Dd)};function Fd(e,t,n){const r=function({root:e,...t}){const n=e||document;Gd.has(n)||Gd.set(n,{});const r=Gd.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Vd,{root:e,...t})),r[o]}(t);return Md.set(e,n),r.observe(e),()=>{Md.delete(e),r.unobserve(e)}}const _d={some:0,all:1};const Hd={inView:{Feature:class extends Cd{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:_d[r]};return Fd(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 Cd{constructor(){super(...arguments),this.removeStartListeners=Ld,this.removeEndListeners=Ld,this.removeAccessibleListeners=Ld,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=hd(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Pd.update(()=>{kd(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=hd(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=gd(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=dd(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=dd(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&Bd("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&Pd.update(()=>n(e,t))})}),Bd("down",(e,t)=>{this.startPress(e,t)})}),t=dd(this.node.current,"blur",()=>{this.isPressing&&Bd("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=gd(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&&Pd.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Id()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Pd.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=hd(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=dd(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=gd(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Cd{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=gd(dd(this.node.current,"focus",()=>this.onFocus()),dd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Cd{mount(){this.unmount=gd(Rd(this.node,!0),Rd(this.node,!1))}unmount(){}}}};function Wd(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 Xd(e,t,n){const r=e.getProps();return rd(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 zd="data-"+Kc("framerAppearId");let Zd=Ld,Yd=Ld;"production"!==process.env.NODE_ENV&&(Zd=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Yd=(e,t)=>{if(!e)throw new Error(t)});const Ud=e=>1e3*e,Jd=e=>e/1e3,$d=!1,Kd=e=>Array.isArray(e)&&"number"==typeof e[0];function Qd(e){return Boolean(!e||"string"==typeof e&&ep[e]||Kd(e)||Array.isArray(e)&&e.every(Qd))}const qd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ep={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qd([0,.65,.55,1]),circOut:qd([.55,0,1,.45]),backIn:qd([.31,.01,.66,-.59]),backOut:qd([.33,1.53,.69,.99])};function tp(e){if(e)return Kd(e)?qd(e):Array.isArray(e)?e.map(tp):ep[e]}const np={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},rp={},op={};for(const e in np)op[e]=()=>(void 0===rp[e]&&(rp[e]=np[e]()),rp[e]);const ip=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function sp(e,t,n,r){if(e===t&&n===r)return Ld;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=ip(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:ip(o(e),t,r)}const ap=sp(.42,0,1,1),lp=sp(0,0,.58,1),up=sp(.42,0,.58,1),cp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dp=e=>t=>1-e(1-t),pp=e=>1-Math.sin(Math.acos(e)),fp=dp(pp),hp=cp(fp),mp=sp(.33,1.53,.69,.99),gp=dp(mp),bp=cp(gp),vp={linear:Ld,easeIn:ap,easeInOut:up,easeOut:lp,circIn:pp,circInOut:hp,circOut:fp,backIn:gp,backInOut:bp,backOut:mp,anticipate:e=>(e*=2)<1?.5*gp(e):.5*(2-Math.pow(2,-10*(e-1)))},yp=e=>{if(Array.isArray(e)){Yd(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return sp(t,n,r,o)}return"string"==typeof e?(Yd(void 0!==vp[e],`Invalid easing type '${e}'`),vp[e]):e},xp=(e,t)=>n=>Boolean(Ec(n)&&wc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ip=(e,t,n)=>r=>{if(!Ec(r))return r;const[o,i,s,a]=r.match(Ic);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Cp={...bc,transform:e=>Math.round((e=>gc(0,255,e))(e))},wp={test:xp("rgb","red"),parse:Ip("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Cp.transform(e)+", "+Cp.transform(t)+", "+Cp.transform(n)+", "+xc(vc.transform(r))+")"};const Ep={test:xp("#"),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:wp.transform},Ap={test:xp("hsl","hue"),parse:Ip("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Tc.transform(xc(t))+", "+Tc.transform(xc(n))+", "+xc(vc.transform(r))+")"},Sp={test:e=>wp.test(e)||Ep.test(e)||Ap.test(e),parse:e=>wp.test(e)?wp.parse(e):Ap.test(e)?Ap.parse(e):Ep.parse(e),transform:e=>Ec(e)?e:e.hasOwnProperty("red")?wp.transform(e):Ap.transform(e)},Tp=(e,t,n)=>-n*e+n*t+e;function Op(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 Np=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Pp=[Ep,wp,Ap];function jp(e){const t=(n=e,Pp.find(e=>e.test(n)));var n;Yd(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Ap&&(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=Op(a,r,e+1/3),i=Op(a,r,e),s=Op(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 Rp=(e,t)=>{const n=jp(e),r=jp(t),o={...n};return e=>(o.red=Np(n.red,r.red,e),o.green=Np(n.green,r.green,e),o.blue=Np(n.blue,r.blue,e),o.alpha=Tp(n.alpha,r.alpha,e),wp.transform(o))};const kp={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Ld},Lp={regex:Cc,countKey:"Colors",token:"${c}",parse:Sp.parse},Bp={regex:Ic,countKey:"Numbers",token:"${n}",parse:bc.parse};function Mp(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 Gp(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Mp(n,kp),Mp(n,Lp),Mp(n,Bp),n}function Dp(e){return Gp(e).values}function Vp(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Gp(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(kp.token,e[o]):o<r+n?t.replace(Lp.token,Sp.transform(e[o])):t.replace(Bp.token,xc(e[o]));return t}}const Fp=e=>"number"==typeof e?0:e;const _p={test:function(e){var t,n;return isNaN(e)&&Ec(e)&&((null===(t=e.match(Ic))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Cc))||void 0===n?void 0:n.length)||0)>0},parse:Dp,createTransformer:Vp,getAnimatableNone:function(e){const t=Dp(e);return Vp(e)(t.map(Fp))}},Hp=(e,t)=>n=>`${n>0?t:e}`;function Wp(e,t){return"number"==typeof e?n=>Tp(e,t,n):Sp.test(e)?Rp(e,t):e.startsWith("var(")?Hp(e,t):Zp(e,t)}const Xp=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>Wp(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},zp=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Wp(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Zp=(e,t)=>{const n=_p.createTransformer(t),r=Gp(e),o=Gp(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?gd(Xp(r.values,o.values),n):(Zd(!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.`),Hp(e,t))},Yp=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Up=(e,t)=>n=>Tp(e,t,n);function Jp(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?Up:"string"==typeof i?Sp.test(i)?Rp:Zp:Array.isArray(i)?Xp:"object"==typeof i?zp:Up);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]||Ld:t;i=gd(e,i)}r.push(i)}return r}function $p(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Yd(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=Jp(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=Yp(e[n],e[n+1],t);return s[n](r)};return n?t=>l(gc(e[0],e[i-1],t)):l}function Kp(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Yp(0,t,r);e.push(Tp(n,1,o))}}(t,e.length-1),t}function Qp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(yp):yp(r),i={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:Kp(t),e),a=$p(s,t,{ease:Array.isArray(o)?o:(l=t,u=o,l.map(()=>u||up).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}function qp(e,t){return t?e*(1e3/t):0}function ef(e,t,n){const r=Math.max(t-5,0);return qp(n-e(r),t-r)}const tf=.001;function nf({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Zd(e<=Ud(10),"Spring duration must be 10 seconds or less");let s=1-t;s=gc(.05,1,s),e=gc(.01,10,Jd(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=of(t,s),l=Math.exp(-o);return tf-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),u=of(Math.pow(t,2),s);return(-o(t)+tf>0?-1:1)*((i-a)*l)/u}):(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<rf;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Ud(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 rf=12;function of(e,t){return e*Math.sqrt(1-t*t)}const sf=["duration","bounce"],af=["stiffness","damping","mass"];function lf(e,t){return t.some(t=>void 0!==e[t])}function uf({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:u,velocity:c,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!lf(e,af)&&lf(e,sf)){const n=nf(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),f=c?-Jd(c):0,h=l/(2*Math.sqrt(a*u)),m=i-o,g=Jd(Math.sqrt(a/u)),b=Math.abs(m)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=of(g,h);v=t=>{const n=Math.exp(-h*g*t);return i-n*((f+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)v=e=>i-Math.exp(-g*e)*(m+(f+g*m)*e);else{const e=g*Math.sqrt(h*h-1);v=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return i-n*((f+h*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{const r=v(e);if(p)s.done=e>=d;else{let o=f;0!==e&&(o=h<1?ef(v,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 cf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const m=d+h,g=void 0===s?m:s(m);g!==m&&(h=g-d);const b=e=>-h*Math.exp(-e/r),v=e=>g+b(e),y=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n};let x,I;const C=e=>{var t;(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(x=e,I=uf({keyframes:[p.value,f(p.value)],velocity:ef(v,e,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return I||void 0!==x||(t=!0,y(e),C(e)),void 0!==x&&e>x?I.next(e-x):(!t&&y(e),p)}}}const df=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Pd.update(t,!0),stop:()=>jd(t),now:()=>wd.isProcessing?wd.timestamp:performance.now()}};function pf(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 ff={decay:cf,inertia:cf,tween:Qp,keyframes:Qp,spring:uf};function hf({autoplay:e=!0,delay:t=0,driver:n=df,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...p}){let f,h,m=1,g=!1;const b=()=>{f&&f(),h=new Promise(e=>{f=e})};let v;b();const y=ff[o]||Qp;let x;y!==Qp&&"number"!=typeof r[0]&&(x=$p([0,100],r,{clamp:!1}),r=[0,100]);const I=y({...p,keyframes:r});let C;"mirror"===a&&(C=y({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let w="idle",E=null,A=null,S=null;null===I.calculatedDuration&&i&&(I.calculatedDuration=pf(I));const{calculatedDuration:T}=I;let O=1/0,N=1/0;null!==T&&(O=T+s,N=O*(i+1)-s);let P=0;const j=e=>{if(null===A)return;m>0&&(A=Math.min(A,e)),P=null!==E?E:(e-A)*m;const n=P-t,o=n<0;P=Math.max(n,0),"finished"===w&&null===E&&(P=N);let l=P,u=I;if(i){const e=P/O;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/O)):"mirror"===a&&(u=C));let o=gc(0,1,n);P>N&&(o="reverse"===a&&r?1:0),l=o*O}const c=o?{done:!1,value:r[0]}:u.next(l);x&&(c.value=x(c.value));let{done:p}=c;o||null===T||(p=P>=N);const f=null===E&&("finished"===w||"running"===w&&p||m<0&&P<=0);return d&&d(c.value),f&&L(),c},R=()=>{v&&v.stop(),v=void 0},k=()=>{w="idle",R(),b(),A=S=null},L=()=>{w="finished",c&&c(),R(),b()},B=()=>{if(g)return;v||(v=n(j));const e=v.now();l&&l(),null!==E?A=e-E:A&&"finished"!==w||(A=e),S=A,E=null,w="running",v.start()};e&&B();const M={then:(e,t)=>h.then(e,t),get time(){return Jd(P)},set time(e){e=Ud(e),P=e,null===E&&v&&0!==m?A=v.now()-e/m:E=e},get duration(){const e=null===I.calculatedDuration?pf(I):I.calculatedDuration;return Jd(e)},get speed(){return m},set speed(e){e!==m&&v&&(m=e,M.time=Jd(P))},get state(){return w},play:B,pause:()=>{w="paused",E=P},stop:()=>{g=!0,"idle"!==w&&(w="idle",u&&u(),k())},cancel:()=>{null!==S&&j(S),k()},complete:()=>{w="finished"},sample:e=>(A=0,j(e))};return M}const mf=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function gf(e,t,{onUpdate:n,onComplete:r,...o}){if(!(op.waapi()&&mf.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:u,duration:c=300,ease:d,times:p}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Qd(t.ease))(t,o)){const e=hf({...o,repeat:0,delay:0});let t={done:!1,value:u[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;p=void 0,u=n,c=r-10,d="linear"}const f=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=tp(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,u,{...o,duration:c,ease:d,times:p}),h=()=>f.cancel(),m=()=>{Pd.update(h),i(),l()};return f.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(u,o)),r&&r(),m()},{then:(e,t)=>s.then(e,t),get time(){return Jd(f.currentTime||0)},set time(e){f.currentTime=Ud(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return Jd(c)},play:()=>{a||(f.play(),jd(h))},pause:()=>f.pause(),stop:()=>{if(a=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const n=hf({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}m()},complete:()=>f.finish(),cancel:m}}const bf={type:"spring",stiffness:500,damping:25,restSpeed:10},vf={type:"keyframes",duration:.8},yf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xf=(e,{keyframes:t})=>t.length>2?vf:ac.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:bf:yf,If=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!_p.test(t)&&"0"!==t||t.startsWith("url("))),Cf=new Set(["brightness","contrast","saturate","opacity"]);function wf(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ic)||[];if(!r)return e;const o=n.replace(r,"");let i=Cf.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Ef=/([a-z-]*)\(.*?\)/g,Af={..._p,getAnimatableNone:e=>{const t=e.match(Ef);return t?t.map(wf).join(" "):e}},Sf={...kc,color:Sp,backgroundColor:Sp,outlineColor:Sp,fill:Sp,stroke:Sp,borderColor:Sp,borderTopColor:Sp,borderRightColor:Sp,borderBottomColor:Sp,borderLeftColor:Sp,filter:Af,WebkitFilter:Af},Tf=e=>Sf[e];function Of(e,t){let n=Tf(e);return n!==Af&&(n=_p),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Nf=e=>/^0[^.\s]+$/.test(e);function Pf(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||Nf(e):void 0}function jf(e,t){return e[t]||e.default||e}const Rf=(e,t,n,r={})=>o=>{const i=jf(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a-=Ud(s);const l=function(e,t,n,r){const o=If(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]),Pf(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]]=Of(t,a);return i}(t,e,n,i),u=l[0],c=l[l.length-1],d=If(e,u),p=If(e,c);Zd(d===p,`You are trying to animate ${e} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let f={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:u,...c}){return!!Object.keys(c).length}(i)||(f={...f,...xf(e,f)}),f.duration&&(f.duration=Ud(f.duration)),f.repeatDelay&&(f.repeatDelay=Ud(f.repeatDelay)),!d||!p||$d||!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:Ld,pause:Ld,stop:Ld,then:e=>(e(),Promise.resolve()),cancel:Ld,complete:Ld});return t?hf({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(f);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=gf(t,e,f);if(n)return n}return hf(f)};function kf(e){return Boolean(uc(e)&&e.add)}const Lf=e=>/^\-?\d*\.?\d+$/.test(e);function Bf(e,t){-1===e.indexOf(t)&&e.push(t)}function Mf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gf{constructor(){this.subscriptions=[]}add(e){return Bf(this.subscriptions,e),()=>Mf(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 Df=new Set;function Vf(e,t,n){e||Df.has(t)||(console.warn(t),Df.add(t))}class Ff{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}=wd;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Pd.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=()=>Pd.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&&Vf(!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 Gf);const n=this.events[e].add(t);return"change"===e?()=>{n(),Pd.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?qp(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 _f(e,t){return new Ff(e,t)}const Hf=e=>t=>t.test(e),Wf=[bc,Oc,Tc,Sc,Pc,Nc,{test:e=>"auto"===e,parse:e=>e}],Xf=e=>Wf.find(Hf(e)),zf=[...Wf,Sp,_p],Zf=e=>zf.find(Hf(e));function Yf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_f(n))}function Uf(e,t){if(!t)return;return(t[e]||t.default||t).from}function Jf({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function $f(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 u=[],c=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||c&&Jf(c,t))continue;const s={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[zd];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,Pd))}r.start(Rf(t,r,o,e.shouldReduceMotion&&ac.has(t)?{type:!1}:s));const d=r.animation;kf(l)&&(l.add(t),d.then(()=>l.remove(t))),u.push(d)}return s&&Promise.all(u).then(()=>{s&&function(e,t){const n=Xd(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)Yf(e,t,id(i[t]))}(e,s)}),u}function Kf(e,t,n={}){const r=Xd(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all($f(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(Qf).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(Kf(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 Qf(e,t){return e.sortNodePosition(t)}const qf=[...Wu].reverse(),eh=Wu.length;function th(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=>Kf(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=Kf(e,t,n);else{const o="function"==typeof t?Xd(e,t,n.custom):t;r=Promise.all($f(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function nh(e){let t=th(e);const n={animate:oh(!0),whileInView:oh(),whileHover:oh(),whileTap:oh(),whileDrag:oh(),whileFocus:oh(),exit:oh()};let r=!0;const o=(t,n)=>{const r=Xd(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)||{},u=[],c=new Set;let d={},p=1/0;for(let t=0;t<eh;t++){const f=qf[t],h=n[f],m=void 0!==a[f]?a[f]:l[f],g=_u(m),b=f===s?h.isActive:null;!1===b&&(p=t);let v=m===l[f]&&m!==a[f]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!m&&!h.prevProp||Hu(m)||"boolean"==typeof m)continue;const y=rh(h.prevProp,m);let x=y||f===s&&h.isActive&&!v&&g||t>p&&g;const I=Array.isArray(m)?m:[m];let C=I.reduce(o,{});!1===b&&(C={});const{prevResolvedValues:w={}}=h,E={...w,...C},A=e=>{x=!0,c.delete(e),h.needsAnimating[e]=!0};for(const e in E){const t=C[e],n=w[e];d.hasOwnProperty(e)||(t!==n?od(t)&&od(n)?!Wd(t,n)||y?A(e):h.protectedKeys[e]=!0:void 0!==t?A(e):c.add(e):void 0!==t&&c.has(e)?A(e):h.protectedKeys[e]=!0)}h.prevProp=m,h.prevResolvedValues=C,h.isActive&&(d={...d,...C}),r&&e.blockInitialAnimation&&(x=!1),x&&!v&&u.push(...I.map(e=>({animation:e,options:{type:f,...i}})))}if(c.size){const t={};c.forEach(n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),u.push({animation:t})}let f=Boolean(u.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(u):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 rh(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Wd(t,e)}function oh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let ih=0;const sh={animation:{Feature:class extends Cd{constructor(e){super(e),e.animationState||(e.animationState=nh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Hu(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 Cd{constructor(){super(...arguments),this.id=ih++}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(){}}}},ah=(e,t)=>Math.abs(e-t);class lh{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=dh(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=ah(e.x,t.x),r=ah(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}=wd;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=uh(t,this.transformPagePoint),Pd.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=dh("pointercancel"===e.type?this.lastMoveEventInfo:uh(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!pd(e))return;this.handlers=t,this.transformPagePoint=n;const r=uh(fd(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=wd;this.history=[{...o,timestamp:i}];const{onSessionStart:s}=t;s&&s(e,dh(r,this.history)),this.removeListeners=gd(hd(window,"pointermove",this.handlePointerMove),hd(window,"pointerup",this.handlePointerUp),hd(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),jd(this.updatePoint)}}function uh(e,t){return t?{point:t(e.point)}:e}function ch(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dh({point:e},t){return{point:e,delta:ch(e,fh(t)),offset:ch(e,ph(t)),velocity:hh(t,.1)}}function ph(e){return e[0]}function fh(e){return e[e.length-1]}function hh(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=fh(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ud(t)));)n--;if(!r)return{x:0,y:0};const i=Jd(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 mh(e){return e.max-e.min}function gh(e,t=0,n=.01){return Math.abs(e-t)<=n}function bh(e,t,n,r=.5){e.origin=r,e.originPoint=Tp(t.min,t.max,e.origin),e.scale=mh(n)/mh(t),(gh(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Tp(n.min,n.max,e.origin)-e.originPoint,(gh(e.translate)||isNaN(e.translate))&&(e.translate=0)}function vh(e,t,n,r){bh(e.x,t.x,n.x,r?r.originX:void 0),bh(e.y,t.y,n.y,r?r.originY:void 0)}function yh(e,t,n){e.min=n.min+t.min,e.max=e.min+mh(t)}function xh(e,t,n){e.min=t.min-n.min,e.max=e.min+mh(t)}function Ih(e,t,n){xh(e.x,t.x,n.x),xh(e.y,t.y,n.y)}function Ch(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 wh(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 Eh=.35;function Ah(e,t,n){return{min:Sh(e,t),max:Sh(e,n)}}function Sh(e,t){return"number"==typeof e?e:e[t]||0}const Th=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Oh(e){return[e("x"),e("y")]}function Nh({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ph(e){return void 0===e||1===e}function jh({scale:e,scaleX:t,scaleY:n}){return!Ph(e)||!Ph(t)||!Ph(n)}function Rh(e){return jh(e)||kh(e)||e.z||e.rotate||e.rotateX||e.rotateY}function kh(e){return Lh(e.x)||Lh(e.y)}function Lh(e){return e&&"0%"!==e}function Bh(e,t,n){return n+t*(e-n)}function Mh(e,t,n,r,o){return void 0!==o&&(e=Bh(e,o,r)),Bh(e,n,r)+t}function Gh(e,t=0,n=1,r,o){e.min=Mh(e.min,t,n,r,o),e.max=Mh(e.max,t,n,r,o)}function Dh(e,{x:t,y:n}){Gh(e.x,t.translate,t.scale,t.originPoint),Gh(e.y,n.translate,n.scale,n.originPoint)}function Vh(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Fh(e,t){e.min=e.min+t,e.max=e.max+t}function _h(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=Tp(e.min,e.max,i);Gh(e,t[n],t[r],s,t.scale)}const Hh=["x","scaleX","originX"],Wh=["y","scaleY","originY"];function Xh(e,t){_h(e.x,t,Hh),_h(e.y,t,Wh)}function zh(e,t){return Nh(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 Zh=new WeakMap;class Yh{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 lh(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(fd(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=xd(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),Oh(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Tc.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=mh(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&Pd.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&&Pd.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||!Uh(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?Tp(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Tp(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&&Fu(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Ch(e.x,n,o),y:Ch(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Eh){return!1===e?e=0:!0===e&&(e=Eh),{x:Ah(e,"left","right"),y:Ah(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Oh(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||!Fu(e))return!1;const n=e.current;Yd(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=zh(e,n),{scroll:o}=t;return o&&(Fh(r.x,o.offset.x),Fh(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:wh(e.x,t.x),y:wh(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=Nh(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Oh(s=>{if(!Uh(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Rf(e,n,0,t))}stopAnimation(){Oh(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){Oh(t=>{const{drag:n}=this.getProps();if(!Uh(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]-Tp(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Fu(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Oh(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=mh(e),o=mh(t);return o>r?n=Yp(t.min,t.max-r,e.min):r>o&&(n=Yp(e.min,e.max-o,t.min)),gc(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(),Oh(t=>{if(!Uh(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Tp(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;Zh.set(this.visualElement,this);const e=hd(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Fu(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=dd(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Oh(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=Eh,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Uh(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Jh=e=>(t,n)=>{e&&Pd.update(()=>e(t,n))};const $h={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Kh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qh={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Oc.test(e))return e;e=parseFloat(e)}return`${Kh(e,t.target.x)}% ${Kh(e,t.target.y)}%`}},qh={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=_p.parse(e);if(o.length>5)return r;const i=_p.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 u=Tp(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=u),"number"==typeof o[3+s]&&(o[3+s]/=u),i(o)}};class em extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=nm,Object.assign(ic,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()})),$h.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()||Pd.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 tm(e){const[n,r]=function(){const e=t.useContext(Mu);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,i=t.useId();return t.useEffect(()=>o(i),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=t.useContext(Ku);return t.createElement(em,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(Qu),isPresent:n,safeToRemove:r})}const nm={borderRadius:{...Qh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qh,borderTopRightRadius:Qh,borderBottomLeftRadius:Qh,borderBottomRightRadius:Qh,boxShadow:qh},rm=["TopLeft","TopRight","BottomLeft","BottomRight"],om=rm.length,im=e=>"string"==typeof e?parseFloat(e):e,sm=e=>"number"==typeof e||Oc.test(e);function am(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const lm=cm(0,.5,fp),um=cm(.5,.95,Ld);function cm(e,t,n){return r=>r<e?0:r>t?1:n(Yp(e,t,r))}function dm(e,t){e.min=t.min,e.max=t.max}function pm(e,t){dm(e.x,t.x),dm(e.y,t.y)}function fm(e,t,n,r,o){return e=Bh(e-=t,1/n,r),void 0!==o&&(e=Bh(e,1/o,r)),e}function hm(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){Tc.test(t)&&(t=parseFloat(t),t=Tp(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=Tp(i.min,i.max,r);e===i&&(a-=t),e.min=fm(e.min,t,n,a,o),e.max=fm(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const mm=["x","scaleX","originX"],gm=["y","scaleY","originY"];function bm(e,t,n,r){hm(e.x,t,mm,n?n.x:void 0,r?r.x:void 0),hm(e.y,t,gm,n?n.y:void 0,r?r.y:void 0)}function vm(e){return 0===e.translate&&1===e.scale}function ym(e){return vm(e.x)&&vm(e.y)}function xm(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 Im(e){return mh(e.x)/mh(e.y)}class Cm{constructor(){this.members=[]}add(e){Bf(this.members,e),e.scheduleRender()}remove(e){if(Mf(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 wm(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 Em=(e,t)=>e.depth-t.depth;class Am{constructor(){this.children=[],this.isDirty=!1}add(e){Bf(this.children,e),this.isDirty=!0}remove(e){Mf(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Em),this.isDirty=!1,this.children.forEach(e)}}const Sm=["","X","Y","Z"];let Tm=0;const Om={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Nm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Tm++,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;Om.totalNodes=Om.resolvedTargetDeltas=Om.recalculatedProjection=0,this.nodes.forEach(Rm),this.nodes.forEach(Vm),this.nodes.forEach(Fm),this.nodes.forEach(km),e=Om,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 Am)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Gf),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&&(jd(r),e(i-t))};return Pd.read(r,!0),()=>jd(r)}(r,250),$h.hasAnimatedSinceResize&&($h.hasAnimatedSinceResize=!1,this.nodes.forEach(Dm))})}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()||Zm,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!xm(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...jf(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Dm(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,jd(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(_m),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(Bm);this.isUpdating||this.nodes.forEach(Mm),this.isUpdating=!1,this.nodes.forEach(Gm),this.nodes.forEach(Pm),this.nodes.forEach(jm),this.clearAllSnapshots();const e=performance.now();wd.delta=gc(0,1e3/60,e-wd.timestamp),wd.timestamp=e,wd.isProcessing=!0,Td.update.process(wd),Td.preRender.process(wd),Td.render.process(wd),wd.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Lm),this.sharedNodes.forEach(Hm)}scheduleUpdateProjection(){Pd.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Pd.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&&!ym(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Rh(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)),Ym((r=n).x),Ym(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&&(Fh(t.x,n.offset.x),Fh(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};pm(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){pm(t,e);const{scroll:n}=this.root;n&&(Fh(t.x,-n.offset.x),Fh(t.y,-n.offset.y))}Fh(t.x,o.offset.x),Fh(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};pm(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&&Xh(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Rh(r.latestValues)&&Xh(n,r.latestValues)}return Rh(this.latestValues)&&Xh(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};pm(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Rh(n.latestValues))continue;jh(n.latestValues)&&n.updateSnapshot();const r=Th();pm(r,n.measurePageBox()),bm(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Rh(this.latestValues)&&bm(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!==wd.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=wd.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}},Ih(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),pm(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,yh(s.x,a.x,l.x),yh(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):pm(this.target,this.layout.layoutBox),Dh(this.target,this.targetDelta)):pm(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}},Ih(this.relativeTargetOrigin,this.target,e.target),pm(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Om.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!jh(this.parent.latestValues)&&!kh(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===wd.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;pm(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&&Xh(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Dh(e,s)),r&&Rh(i.latestValues)&&Xh(e,i.latestValues))}t.x=Vh(t.x),t.y=Vh(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 u=this.projectionTransform;vh(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=wm(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Om.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(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(zm));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Wm(i.x,e.x,n),Wm(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ih(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Xm(e.x,t.x,n.x,r),Xm(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&xm(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),pm(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Tp(0,void 0!==n.opacity?n.opacity:1,lm(r)),e.opacityExit=Tp(void 0!==t.opacity?t.opacity:1,0,um(r))):i&&(e.opacity=Tp(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<om;o++){const i=`border${rm[o]}Radius`;let s=am(t,i),a=am(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||sm(s)===sm(a)?(e[i]=Math.max(Tp(im(s),im(a),r),0),(Tc.test(a)||Tc.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=Tp(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),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&&(jd(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pd.update(()=>{$h.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=uc(e)?e:_f(e);return r.start(Rf("",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&&Um(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=mh(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=mh(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}pm(t,n),Xh(t,o),vh(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Cm);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<Sm.length;t++){const o="rotate"+Sm[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=sd(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=sd(e.pointerEvents)||""),this.hasProjected&&!Rh(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=wm(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 ic){if(void 0===s[e])continue;const{correct:t,applyTo:n}=ic[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?sd(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(Bm),this.root.sharedNodes.clear()}}}function Pm(e){e.updateLayout()}function jm(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?Oh(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=mh(r);r.min=t[e].min,r.max=r.min+o}):Um(o,n.layoutBox,t)&&Oh(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=mh(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}};vh(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?vh(a,e.applyTransform(r,!0),n.measuredBox):vh(a,t,n.layoutBox);const l=!ym(s);let u=!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}};Ih(s,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Ih(a,t,i.layoutBox),xm(s,a)||(u=!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:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Rm(e){Om.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 km(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Lm(e){e.clearSnapshot()}function Bm(e){e.clearMeasurements()}function Mm(e){e.isLayoutDirty=!1}function Gm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Dm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Vm(e){e.resolveTargetDelta()}function Fm(e){e.calcProjection()}function _m(e){e.resetRotation()}function Hm(e){e.removeLeadSnapshot()}function Wm(e,t,n){e.translate=Tp(t.translate,0,n),e.scale=Tp(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Xm(e,t,n,r){e.min=Tp(t.min,n.min,r),e.max=Tp(t.max,n.max,r)}function zm(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Zm={duration:.45,ease:[.4,0,.1,1]};function Ym(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Um(e,t,n){return"position"===e||"preserve-aspect"===e&&!gh(Im(t),Im(n),.2)}const Jm=Nm({attachResizeListener:(e,t)=>dd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$m={current:void 0},Km=Nm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$m.current){const e=new Jm({});e.mount(window),e.setOptions({layoutScroll:!0}),$m.current=e}return $m.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Qm={pan:{Feature:class extends Cd{constructor(){super(...arguments),this.removePointerDownListener=Ld}onPointerDown(e){this.session=new lh(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Jh(e),onStart:Jh(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Pd.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=hd(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 Cd{constructor(e){super(e),this.removeGroupControls=Ld,this.removeListeners=Ld,this.controls=new Yh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ld}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Km,MeasureLayout:tm}},qm=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function eg(e,t,n=1){Yd(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=qm.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():hc(o)?eg(o,t,n+1):o}const tg=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ng=e=>tg.has(e),rg=e=>e===bc||e===Oc,og=(e,t)=>parseFloat(e.split(", ")[t]),ig=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return og(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?og(t[1],e):0}},sg=new Set(["x","y","z"]),ag=sc.filter(e=>!sg.has(e));const lg={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:ig(4,13),y:ig(5,14)},ug=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(ng);let i=[],s=!1;const a=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let u=n[o],c=Xf(u);const d=t[o];let p;if(od(d)){const e=d.length,t=null===d[0]?1:0;u=d[t],c=Xf(u);for(let n=t;n<e&&null!==d[n];n++)p?Yd(Xf(d[n])===p,"All keyframes must be of the same type"):(p=Xf(d[n]),Yd(p===c||rg(c)&&rg(p),"Keyframes must be of the same dimension as the current value"))}else p=Xf(d);if(c!==p)if(rg(c)&&rg(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===Oc&&(t[o]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==p?void 0:p.transform)&&(0===u||0===d)?0===u?l.set(p.transform(u)):t[o]=c.transform(d):(s||(i=function(e){const t=[];return ag.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(d))}),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]=lg[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]=lg[n](l,i)}),e})(t,e,a);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),Gu&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function cg(e,t,n,r){return(e=>Object.keys(e).some(ng))(t)?ug(e,t,n,r):{target:t,transitionEnd:r}}const dg=(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(!hc(t))return;const n=eg(t,r);n&&e.set(n)});for(const e in t){const o=t[e];if(!hc(o))continue;const i=eg(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return cg(e,t=o.target,n,r=o.transitionEnd)},pg={current:null},fg={current:!1};function hg(){if(fg.current=!0,Gu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pg.current=e.matches;e.addListener(t),t()}else pg.current=!1}const mg=new WeakMap,gg=Object.keys($u),bg=gg.length,vg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],yg=Xu.length;class xg{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=()=>Pd.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=zu(t),this.isVariantNode=Zu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(const e in u){const t=u[e];void 0!==s[e]&&uc(t)&&(t.set(s[e],!1),kf(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,mg.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)),fg.current||hg(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||pg.current),"production"!==process.env.NODE_ENV&&Vf(!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(){mg.delete(this.current),this.projection&&this.projection.unmount(),jd(this.notifyUpdate),jd(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=ac.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Pd.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?Zd(!1,e):Yd(!1,e)}for(let e=0;e<bg;e++){const n=gg[e],{isEnabled:r,Feature:o,ProjectionNode:a,MeasureLayout:l}=$u[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&&Fu(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<vg.length;t++){const n=vg[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(uc(i))e.addValue(o,i),kf(r)&&r.add(o),"development"===process.env.NODE_ENV&&Vf("10.12.16"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.12.16 may not work as expected.`);else if(uc(s))e.addValue(o,_f(i,{owner:e})),kf(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,_f(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<yg;e++){const n=Xu[e],r=this.props[n];(_u(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=_f(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=rd(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||uc(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 Gf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Ig extends xg{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=Uf(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 u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==o?o:t[s]),null!=u&&("string"==typeof u&&(Lf(u)||Nf(u))?u=parseFloat(u):!Zf(u)&&_p.test(l)&&(u=Of(s,l)),e.addValue(s,_f(u,{owner:e})),void 0===n[s]&&(n[s]=u),null!==u&&e.setBaseTarget(s,u))}}(this,n,i);const e=dg(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Cg extends Ig{readValueFromInstance(e,t){if(ac.has(t)){const e=Tf(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(fc(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return zh(e,t)}build(e,t,n,r){Lc(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return td(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;uc(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){Qc(e,t,n,r)}}class wg extends Ig{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ac.has(t)){const e=Tf(t);return e&&e.default||0}return t=qc.has(t)?t:Kc(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return nd(e,t)}build(e,t,n,r){Zc(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){ed(e,t,0,r)}mount(e){this.isSVGTag=Uc(e.tagName),super.mount(e)}}const Eg=(e,t)=>oc(e)?new wg(t,{enableHardwareAcceleration:!1}):new Cg(t,{enableHardwareAcceleration:!0}),Ag={...sh,...Hd,...Qm,...{layout:{ProjectionNode:Km,MeasureLayout:tm}}},Sg=nc((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...oc(e)?ud:cd,preloadedFeatures:n,useRender:$c(t),createVisualElement:r,Component:e}}(e,t,Ag,Eg));function Tg(){!fg.current&&hg();const[e]=t.useState(pg.current);return"production"!==process.env.NODE_ENV&&Vf(!0!==e,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),e}const Og={scale:{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{duration:.3}},shadow:{whileHover:{boxShadow:"0 10px 25px rgba(0,0,0,0.15)"},transition:{duration:.3}},lift:{whileHover:{y:-5},whileTap:{y:0},transition:{type:"spring",stiffness:300,damping:20}},opacity:{whileHover:{opacity:.8},transition:{duration:.2}},grow:{whileHover:{scale:1.1},whileTap:{scale:.95},transition:{type:"spring",stiffness:300,damping:20}},pop:{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.15}}};function Ng({children:n,animationType:r=ku,disableAnimation:o=!0,whileHover:i,whileTap:s,transition:a,...l}){const u=Tg(),c=t.Children.only(n);if(o||u)return c;const d=function(e){if(!e)return;const t=Array.isArray(e)?e:[e];return 0!==t.length?t.reduce((e,t)=>{const n=Og[t];return{whileHover:{...e.whileHover,...n.whileHover},...e.whileTap||n.whileTap?{whileTap:{...e.whileTap,...n.whileTap}}:{},transition:{...e.transition,...n.transition}}},{whileHover:{},transition:{}}):void 0}(r),p=d?{...d.whileHover,...i}:i,f=(null==d?void 0:d.whileTap)||s?{...null==d?void 0:d.whileTap,...s}:void 0,h=d?{...d.transition,...a}:a;if("string"==typeof c.type){const t=Sg[c.type];return e.jsx(t,{...c.props,ref:c.ref,whileHover:p,whileTap:f,transition:h,...l})}return e.jsx(Sg.div,{whileHover:p,whileTap:f,transition:h,...l,children:c})}Ng.displayName="AnimationWrapper";const Pg=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:r,label:o,disabled:i,fullWidth:s,buttonClassName:a,size:l={base:"medium"},iconName:u,iconSize:c=24,iconFill:d=0,disableAnimation:p,animationType:f=ku,as:h="button",...m},g)=>{const b=(()=>{const e=xe((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()})(l),"rounded-button overflow-visible flex px-15 gap-2 items-center justify-center text-center outline-none focus:outline focus:outline-2 focus:outline-offset-2 cursor-pointer transition-colors duration-200 align-top whitespace-nowrap",s?"w-full":"lg:inline-flex w-full lg:w-auto"),r=xe((i||n)&&"cursor-not-allowed",n&&"pl-7");return xe(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill [&:not(:disabled)]:hover:bg-bg-fill-brand-hover focus:outline-bg-fill-brand disabled:bg-bg-fill-brand-disabled",primary_inverse:"bg-bg-fill-inverse text-text-inverse [&:not(:disabled)]:hover:bg-bg-fill-inverse-hover focus:outline-bg-fill-inverse disabled:bg-bg-fill-inverse-disabled",secondary:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text [&:not(:disabled)]:hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:outline-input-border-hover disabled:bg-bg-fill-secondary",secondary_inverse:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text [&:not(:disabled)]:hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:outline-border-inverse disabled:bg-bg-fill-secondary"}[t]||"",r,a)})();let v=`button--${t}`;n&&(v+=" button--loading"),i&&(v+=" button--disabled");const y=`${v} ${b}`,x=e.jsxs(e.Fragment,{children:[n?e.jsx(cn,{name:"progress_activity",className:"animate-spin"}):null,o?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:xe(Ru(l)),children:o}),r]}):r,u?e.jsx(cn,{name:u,size:c,fill:d,weight:"200"}):null]});return"a"===h?e.jsx(Ng,{disableAnimation:p,animationType:f,children:e.jsx("a",{ref:g,className:xe(y),...m,"data-component":"BrandButton","data-variant":"anchor",children:x})}):e.jsx(Ng,{disableAnimation:p,animationType:f,children:e.jsx("button",{ref:g,className:xe(y),disabled:i||n,...m,"data-component":"BrandButton","data-variant":"button",children:x})})});Pg.displayName="BrandButton";const jg=t=>{const{className:n,...r}=t;return e.jsx("div",{className:xe("h-[1px] border-t-0 bg-bg-surface-tertiary-active opacity-100",n),...r})};jg.displayName="Divider";const Rg=t=>{const{name:n,value:r,label:o,subText:i,checked:s,onChange:a,className:l,variant:u="circle",hasError:c=!1,labelProps:d={},"data-cy":p,labelClassName:f="",disabled:h,...m}=t,g=()=>null==a?void 0:a(r||n);return e.jsxs("label",{htmlFor:n,className:xe("flex items-center",l),"data-cy":p,...d,children:[e.jsx("input",{className:"hidden",type:"radio",name:n,value:r,checked:s,readOnly:!0,disabled:h,...m}),e.jsx(sr,{type:"button",onClick:g,disabled:h,className:xe("mr-3 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border-[1px] border-solid border-border-secondary-on-bg-fill bg-bg outline-offset-4",s&&"border-[1px] border-solid border-border-brand",h&&"opacity-50"),children:s&&e.jsx("div",{className:"h-[0.875rem] w-[0.875rem] rounded-full bg-bg-fill-brand"})}),e.jsxs(sr,{type:"button",onClick:g,disabled:h,tabIndex:o?0:-1,children:[e.jsx("div",{className:xe("text-body2 font-normal",f),children:o}),e.jsx("div",{className:"text-body1 text-text-info",children:i})]})]})};Rg.displayName="RadioButton";const kg=n=>{const{list:r,text:o}=n,[i,s]=t.useState(!0);return e.jsxs("div",{className:"mt-3",children:[e.jsxs(sr,{type:"button",className:"flex items-center gap-2 text-base font-semibold text-gray-900","aria-expanded":i,onClick:e=>{e.stopPropagation(),s(e=>!e)},children:[e.jsx("span",{children:o||"See details"}),e.jsx(cn,{name:i?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e.jsx(zo,{open:i,children:e.jsx("div",{className:"pt-1",children:e.jsx(pn,{listItemClassName:"body3",items:r})})})]})};kg.displayName="SeeMore";const Lg=({className:t="",count:n=1})=>e.jsx("div",{className:"animate-pulse space-y-4",children:Array.from({length:n}).map((n,r)=>e.jsx("div",{className:`h-8 rounded bg-skeleton-bg-start ${t}`,style:{opacity:1-.1*r}},r))});Lg.displayName="Skeleton";function Bg({tooltipMsg:t,className:n,children:r}){return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:'\n .tooltip-custom {\n position: relative;\n cursor: pointer;\n margin-top: 7px;\n }\n .tooltip-custom::after {\n display: none;\n position: absolute;\n text-align: center;\n z-index: 999;\n content: attr(data-text);\n top: 0;\n left: -200%;\n transform: translate(-50%, calc(-100% - 10px));\n line-height: 1.1rem;\n padding-left: 1rem;\n padding-right: 1rem;\n border-radius: 8px;\n color: white;\n background-color: black;\n padding-bottom: 0.75rem;\n padding-top: 0.75rem;\n width: 270px;\n font-size: 14px;\n }\n .tooltip-custom:hover::after {\n display: block;\n }\n .tooltip-custom::before {\n background-color: black;\n content: " ";\n display: none;\n position: absolute;\n width: 15px;\n height: 15px;\n z-index: 999;\n top: 0;\n left: 50%;\n transform: translate(-50%, calc(-100% - 5px)) rotate(45deg);\n }\n .tooltip-custom:hover::before {\n display: block;\n }\n @media (max-width: 640px) {\n .tooltip-custom::after {\n left: -124px;\n }\n }\n @media (max-width: 343px) {\n .tooltip-custom::after {\n left: 80px;\n width: 160px;\n }\n }\n '}),e.jsx("span",{className:`tooltip-custom ${n||""}`,"data-text":t,children:r})]})}var Mg,Gg;Bg.displayName="Tooltip";var Dg,Vg,Fg=function(){if(Gg)return Mg;function e(e){this._maxSize=e,this.clear()}Gg=1,e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(e){return this._values[e]},e.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new e(512),a=new e(512),l=new e(512);function u(e){return s.get(e)||s.set(e,c(e).map(function(e){return e.replace(i,"$2")}))}function c(e){return e.match(t)||[""]}function d(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function p(e){return!d(e)&&(function(e){return e.match(r)&&!e.match(n)}(e)||function(e){return o.test(e)}(e))}return Mg={Cache:e,split:c,normalizePath:u,setter:function(e){var t=u(e);return a.get(e)||a.set(e,function(e,n){for(var r=0,o=t.length,i=e;r<o-1;){var s=t[r];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;i=i[t[r++]]}i[t[r]]=n})},getter:function(e,t){var n=u(e);return l.get(e)||l.set(e,function(e){for(var r=0,o=n.length;r<o;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(d(t)||n.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,n){!function(e,t,n){var r,o,i,s,a=e.length;for(o=0;o<a;o++)(r=e[o])&&(p(r)&&(r='"'+r+'"'),i=!(s=d(r))&&/^\d+$/.test(r),t.call(n,r,s,i,o,e))}(Array.isArray(e)?e:c(e),t,n)}},Mg}();var _g,Hg=function(){if(Vg)return Dg;Vg=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=t=>t.match(e)||[],n=e=>e[0].toUpperCase()+e.slice(1),r=(e,n)=>t(e).join(n).toLowerCase(),o=e=>t(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");return Dg={words:t,upperFirst:n,camelCase:o,pascalCase:e=>n(o(e)),snakeCase:e=>r(e,"_"),kebabCase:e=>r(e,"-"),sentenceCase:e=>n(r(e," ")),titleCase:e=>t(e).map(n).join(" ")}}(),Wg={exports:{}};var Xg=function(){if(_g)return Wg.exports;function e(e,t){var n=e.length,r=new Array(n),o={},i=n,s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!a.has(e[0])||!a.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(e,t,i){if(i.has(e)){var u;try{u=", node was:"+JSON.stringify(e)}catch(e){u=""}throw new Error("Cyclic dependency"+u)}if(!a.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var c=s.get(e)||new Set;if(t=(c=Array.from(c)).length){i.add(e);do{var d=c[--t];l(d,a.get(d),i)}while(t);i.delete(e)}r[--n]=e}}}return _g=1,Wg.exports=function(t){return e(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(t),t)},Wg.exports.array=e,Wg.exports}(),zg=Ce(Xg);const Zg=Object.prototype.toString,Yg=Error.prototype.toString,Ug=RegExp.prototype.toString,Jg="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",$g=/^Symbol\((.*)\)(.*)$/;function Kg(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return Jg.call(e).replace($g,"Symbol($1)");const r=Zg.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+Yg.call(e)+"]":"RegExp"===r?Ug.call(e):null}function Qg(e,t){let n=Kg(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=Kg(this[e],t);return null!==r?r:n},2)}function qg(e){return null==e?[]:[].concat(e)}let eb,tb,nb,rb=/\$\{\s*(\w+)\s*\}/g;eb=Symbol.toStringTag;class ob{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[eb]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],qg(e).forEach(e=>{if(ib.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}tb=Symbol.hasInstance,nb=Symbol.toStringTag;class ib extends Error{static formatError(e,t){const n=t.label||t.path||"this";return t=Object.assign({},t,{path:n,originalPath:t.path}),"string"==typeof e?e.replace(rb,(e,n)=>Qg(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,o){const i=new ob(e,t,n,r);if(o)return i;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[nb]="Error",this.name=i.name,this.message=i.message,this.type=i.type,this.value=i.value,this.path=i.path,this.errors=i.errors,this.inner=i.inner,Error.captureStackTrace&&Error.captureStackTrace(this,ib)}static[tb](e){return ob[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let sb={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=null!=r&&r!==n?` (cast from the value \`${Qg(r,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${Qg(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Qg(n,!0)}\``+o}},ab={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},lb={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ub={isValue:"${path} field must be ${value}"},cb={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},db={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Qg(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Qg(n,!0)}\``}return ib.formatError(sb.notType,e)}};Object.assign(Object.create(null),{mixed:sb,string:ab,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:lb,object:cb,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:ub,tuple:db});const pb=e=>e&&e.__isYupSchema__;class fb{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:o}=t,i="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new fb(e,(e,t)=>{var n;let s=i(...e)?r:o;return null!=(n=null==s?void 0:s(t))?n:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!pb(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const hb="$",mb=".";class gb{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===hb,this.isValue=this.key[0]===mb,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?hb:this.isValue?mb:"";this.path=this.key.slice(n.length),this.getter=this.path&&Fg.getter(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}gb.prototype.__isYupRef=!0;const bb=e=>null==e;function vb(e){function t({value:t,path:n="",options:r,originalValue:o,schema:i},s,a){const{name:l,test:u,params:c,message:d,skipAbsent:p}=e;let{parent:f,context:h,abortEarly:m=i.spec.abortEarly,disableStackTrace:g=i.spec.disableStackTrace}=r;const b={value:t,parent:f,context:h};function v(e={}){const r=yb(Object.assign({value:t,originalValue:o,label:i.spec.label,path:e.path||n,spec:i.spec,disableStackTrace:e.disableStackTrace||g},c,e.params),b),s=new ib(ib.formatError(e.message||d,r),t,r.path,e.type||l,r.disableStackTrace);return s.params=r,s}const y=m?s:a;let x={path:n,parent:f,type:l,from:r.from,createError:v,resolve:e=>xb(e,b),options:r,originalValue:o,schema:i};const I=e=>{ib.isError(e)?y(e):e?a(null):y(v())},C=e=>{ib.isError(e)?y(e):s(e)};if(p&&bb(t))return I(!0);let w;try{var E;if(w=u.call(x,t,x),"function"==typeof(null==(E=w)?void 0:E.then)){if(r.sync)throw new Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(w).then(I,C)}}catch(e){return void C(e)}I(w)}return t.OPTIONS=e,t}function yb(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=xb(e[n],t);return e}function xb(e,t){return gb.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Ib(e,t,n,r=n){let o,i,s;return t?(Fg.forEach(t,(a,l,u)=>{let c=l?a.slice(1,a.length-1):a,d="tuple"===(e=e.resolve({context:r,parent:o,value:n})).type,p=u?parseInt(c,10):0;if(e.innerType||d){if(d&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);o=n,n=n&&n[c],e=e.fields[c]}i=c,s=l?"["+a+"]":"."+a}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class Cb extends Set{describe(){const e=[];for(const t of this.values())e.push(gb.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new Cb(this.values())}merge(e,t){const n=this.clone();return e.forEach(e=>n.add(e)),t.forEach(e=>n.delete(e)),n}}function wb(e,t=new Map){if(pb(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=wb(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,wb(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(wb(r,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=wb(o,t)}return n}function Eb(e){if(null==e||!e.length)return;const t=[];let n="",r=!1,o=!1;for(let i=0;i<e.length;i++){const s=e[i];"["!==s||o?"]"!==s||o?'"'!==s?"."!==s||r||o?n+=s:n&&(t.push(n),n=""):o=!o:(n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1):(n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0)}return n&&t.push(...n.split(".").filter(Boolean)),t}function Ab(e,t){var n;if((null==(n=e.inner)||!n.length)&&e.errors.length)return function(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:Eb(n)}))}(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>Ab(e,r))}class Sb{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Cb,this._blacklist=new Cb,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(sb.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=wb(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,o;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(o=e.disableStackTrace)?o:this.spec.disableStackTrace})}cast(e,t={}){let n=this.resolve(Object.assign({},t,{value:e})),r="ignore-optionality"===t.assert,o=n._cast(e,t);if(!1!==t.assert&&!n.isType(o)){if(r&&bb(o))return o;let i=Qg(e),s=Qg(o);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${i} \n`+(s!==i?`result of cast: ${s}`:""))}return o}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((n,r)=>r.call(this,n,e,this,t),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e,t={},n,r){let{path:o,originalValue:i=e,strict:s=this.spec.strict}=t,a=e;s||(a=this._cast(a,Object.assign({assert:!1},t)));let l=[];for(let e of Object.values(this.internalTests))e&&l.push(e);this.runTests({path:o,value:a,originalValue:i,options:t,tests:l},n,e=>{if(e.length)return r(e,a);this.runTests({path:o,value:a,originalValue:i,options:t,tests:this.tests},n,r)})}runTests(e,t,n){let r=!1,{tests:o,value:i,originalValue:s,path:a,options:l}=e,u=e=>{r||(r=!0,t(e,i))},c=e=>{r||(r=!0,n(e,i))},d=o.length,p=[];if(!d)return c([]);let f={value:i,originalValue:s,path:a,options:l,schema:this};for(let e=0;e<o.length;e++){(0,o[e])(f,u,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--d<=0&&c(p)})}}asNestedTest({key:e,index:t,parent:n,parentPath:r,originalParent:o,options:i}){const s=null!=e?e:t;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");const a="number"==typeof s;let l=n[s];const u=Object.assign({},i,{strict:!0,parent:n,value:l,originalValue:o[s],key:void 0,[a?"index":"key"]:s,path:a||s.includes(".")?`${r||""}[${a?s:`"${s}"`}]`:(r?`${r}.`:"")+e});return(e,t,n)=>this.resolve(u)._validate(l,u,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise((n,i)=>r._validate(e,t,(e,t)=>{ib.isError(e)&&(e.value=t),i(e)},(e,t)=>{e.length?i(new ib(e,t,void 0,void 0,o)):n(t)}))}validateSync(e,t){var n;let r,o=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:o.spec.disableStackTrace;return o._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw ib.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new ib(t,e,void 0,void 0,i);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(ib.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(ib.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):wb(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=vb({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=vb({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(e=sb.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=sb.notNull){return this.nullability(!1,e)}required(e=sb.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=sb.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=vb(t),o=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(o)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0}),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=qg(e).map(e=>new gb(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push("function"==typeof t?new fb(r,t):fb.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=vb({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=sb.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n.internalTests.whiteList=vb({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e,t=sb.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n.internalTests.blacklist=vb({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:o,nullable:i}=t.spec;return{meta:r,label:n,optional:o,nullable:i,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,n)=>n.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const n=t.OPTIONS.params&&e?yb(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:n}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof ib)return{issues:Ab(e)};throw e}}}}}Sb.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Sb.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:s}=Ib(this,t,n,r.context);return s[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Sb.prototype[e]=Sb.prototype.oneOf;for(const e of["not","nope"])Sb.prototype[e]=Sb.prototype.notOneOf;function Tb(){return new Ob}class Ob extends Sb{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(this.spec.coerce&&!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=ub.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>bb(e)||!0===e})}isFalse(e=ub.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>bb(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}Tb.prototype=Ob.prototype;const Nb=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Pb(e){var t,n;const r=Nb.exec(e);return r?{year:jb(r[1]),month:jb(r[2],1)-1,day:jb(r[3],1),hour:jb(r[4]),minute:jb(r[5]),second:jb(r[6]),millisecond:r[7]?jb(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:jb(r[10]),minuteOffset:jb(r[11])}:null}function jb(e,t=0){return Number(e)||t}let Rb=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kb=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Lb=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Bb=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),Mb=e=>bb(e)||e===e.trim(),Gb={}.toString();function Db(){return new Vb}class Vb extends Sb{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce||this.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===Gb?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||sb.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=ab.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=ab.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=ab.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,o=!1;return t&&("object"==typeof t?({excludeEmptyString:o=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||ab.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&o||-1!==t.search(e)})}email(e=ab.email){return this.matches(Rb,{name:"email",message:e,excludeEmptyString:!0})}url(e=ab.url){return this.matches(kb,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=ab.uuid){return this.matches(Lb,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"==typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(Bb,{name:"datetime",message:r||ab.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||ab.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=Pb(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||ab.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||null==n)return!0;const t=Pb(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=ab.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:Mb})}lowercase(e=ab.lowercase){return this.transform(e=>bb(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>bb(e)||e===e.toLowerCase()})}uppercase(e=ab.uppercase){return this.transform(e=>bb(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>bb(e)||e===e.toUpperCase()})}}Db.prototype=Vb.prototype;let Fb=new Date("");class _b extends Sb{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation(()=>{this.transform((e,t)=>!this.spec.coerce||this.isType(e)||null===e?e:(e=function(e){const t=Pb(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?_b.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let n;if(gb.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=lb.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e,t=lb.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function Hb(e,t){let n=1/0;return e.some((e,r)=>{var o;if(null!=(o=t.path)&&o.includes(e))return n=r,!0}),n}function Wb(e){return(t,n)=>Hb(e,t)-Hb(e,n)}_b.INVALID_DATE=Fb;const Xb=(e,t,n)=>{if("string"!=typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(e){}return n.isType(r)?r:e};function zb(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=zb(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=zb(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(zb)}):"optional"in e?e.optional():e}let Zb=e=>"[object Object]"===Object.prototype.toString.call(e);function Yb(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}const Ub=Wb([]);function Jb(e){return new $b(e)}class $b extends Sb{constructor(e){super({type:"object",check:e=>Zb(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=Ub,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let o=this.fields,i=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(r).filter(e=>!this._nodes.includes(e))),a={},l=Object.assign({},t,{parent:a,__validating:t.__validating||!1}),u=!1;for(const e of s){let n=o[e],s=e in r,c=r[e];if(n){let o;l.path=(t.path?`${t.path}.`:"")+e,n=n.resolve({value:c,context:t.context,parent:a});let i=n instanceof Sb?n.spec:void 0,s=null==i?void 0:i.strict;if(null!=i&&i.strip){u=u||e in r;continue}o=t.__validating&&s?c:n.cast(c,l),void 0!==o&&(a[e]=o)}else s&&!i&&(a[e]=c);s===e in a&&a[e]===c||(u=!0)}return u?a:r}_validate(e,t={},n,r){let{from:o=[],originalValue:i=e,recursive:s=this.spec.recursive}=t;t.from=[{schema:this,value:i},...o],t.__validating=!0,t.originalValue=i,super._validate(e,t,n,(e,o)=>{if(!s||!Zb(o))return void r(e,o);i=i||o;let a=[];for(let e of this._nodes){let n=this.fields[e];n&&!gb.isRef(n)&&a.push(n.asNestedTest({options:t,key:e,parent:o,parentPath:t.path,originalParent:i}))}this.runTests({tests:a,value:o,originalValue:i,options:t},n,t=>{r(t.sort(this._sortErrors).concat(e),o)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];n[e]=void 0===r?t:r}return t.withMutation(t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{var r;const o=this.fields[n];let i=e;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[n]})),t[n]=o&&"getDefault"in o?o.getDefault(i):void 0}),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([e,t])=>`${e}-${t}`));function i(e,t){let i=Fg.split(e)[0];r.add(i),o.has(`${t}-${i}`)||n.push([t,i])}for(const t of Object.keys(e)){let n=e[t];r.add(t),gb.isRef(n)&&n.isSibling?i(n.path,t):pb(n)&&"deps"in n&&n.deps.forEach(e=>i(e,t))}return zg.array(Array.from(r),n).reverse()}(e,t),n._sortErrors=Wb(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e,t=[]){return this.clone().withMutation(n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)})}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return zb(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter(([t,n])=>e.includes(t)&&e.includes(n)))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=Fg.getter(e,!0);return this.transform(o=>{if(!o)return o;let i=o;return((e,t)=>{const n=[...Fg.normalizePath(t)];if(1===n.length)return n[0]in e;let r=n.pop(),o=Fg.getter(Fg.join(n),!0)(e);return!(!o||!(r in o))})(o,e)&&(i=Object.assign({},o),n||delete i[e],i[t]=r(o)),i})}json(){return this.transform(Xb)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||cb.exact,test(e){if(null==e)return!0;const t=Yb(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=cb.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=Yb(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=cb.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n})}camelCase(){return this.transformKeys(Hg.camelCase)}snakeCase(){return this.transformKeys(Hg.snakeCase)}constantCase(){return this.transformKeys(e=>Hg.snakeCase(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[o,i]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[o]})),n.fields[o]=i.describe(t)}return n}}Jb.prototype=$b.prototype;const Kb={firstName:"",lastName:"",address:"",phone:"",email:"",unit:"",zip:"",isManualAddress:!1,isMarketingCom:!1,addressToSend:{},notes:"",referralCode:"",hasUnits:!1},Qb={firstName:{placeholder:"John"},lastName:{placeholder:"Doe"},address:{placeholder:"Street address"},phoneNumber:{placeholder:"Phone number"},emailAddress:{placeholder:"Email address"},unit:{placeholder:"Unit (optional)"},zip:{placeholder:"Zip"},notes:{placeholder:"Notes or Comments"},referralCode:{placeholder:"Referral Code"}},qb=Jb({firstName:Db().required("First name is required").min(2,"Enter a valid First name").matches(/^[a-zA-Z\s]*$/,"Enter a valid First name"),lastName:Db().required("Last name is required").min(2,"Enter a valid Last name").matches(/^[a-zA-Z\s]*$/,"Enter a valid Last name"),isManualAddress:Tb(),isMarketingCom:Tb(),hasUnits:Tb(),unit:Db().when("hasUnits",{is:!0,then:e=>e.required("Unit is required"),otherwise:e=>e.matches(/^[a-zA-Z0-9\s#]*$/,"Enter a valid Unit")}),zip:Db().when("isManualAddress",{is:!0,then:e=>e.required("Zip is required").matches(/^\d{5}$/,"Enter a valid Zip")}),address:Db().required("Enter your home address (street, city, state, and ZIP below)").when("isManualAddress",{is:!0,then:e=>e.matches(/^(\d{1,}) [a-zA-Z0-9\s]+(\,)? [a-zA-Z\s]+(\,)? [A-Z]{2}( [0-9]{5,6})?$/,"Enter your home address (street, city, state, and ZIP below)")}),phone:Db().required("Phone is required").matches(/^\([0-9]{3}\)\s[0-9]{3}-[0-9]{4}$/,"Please enter a valid phone number"),email:Db().email("Invalid email").matches(/^[^\s@]+@[^\s@]+\.[^\s@]+$/,"Invalid email").required("Email is required"),notes:Db(),referralCode:Db().max(50,"Referral code must not exceed 50 characters").matches(/^\S*$/,"Referral code must not contain spaces")});var ev=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===tv}(e)}(e)};var tv="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function nv(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ov((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function rv(e,t,n){return e.concat(t).map(function(e){return nv(e,n)})}function ov(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||rv,n.isMergeableObject=n.isMergeableObject||ev;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=nv(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=ov(e[o],t[o],n):r[o]=nv(t[o],n)}),r}(e,t,n):nv(t,n)}ov.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return ov(e,n,t)},{})};var iv=ov,sv="object"==typeof global&&global&&global.Object===Object&&global,av="object"==typeof self&&self&&self.Object===Object&&self,lv=sv||av||Function("return this")(),uv=lv.Symbol,cv=Object.prototype,dv=cv.hasOwnProperty,pv=cv.toString,fv=uv?uv.toStringTag:void 0;var hv=Object.prototype.toString;var mv=uv?uv.toStringTag:void 0;function gv(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":mv&&mv in Object(e)?function(e){var t=dv.call(e,fv),n=e[fv];try{e[fv]=void 0;var r=!0}catch(e){}var o=pv.call(e);return r&&(t?e[fv]=n:delete e[fv]),o}(e):function(e){return hv.call(e)}(e)}function bv(e,t){return function(n){return e(t(n))}}var vv=bv(Object.getPrototypeOf,Object);function yv(e){return null!=e&&"object"==typeof e}var xv=Function.prototype,Iv=Object.prototype,Cv=xv.toString,wv=Iv.hasOwnProperty,Ev=Cv.call(Object);function Av(e){if(!yv(e)||"[object Object]"!=gv(e))return!1;var t=vv(e);if(null===t)return!0;var n=wv.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Cv.call(n)==Ev}function Sv(e,t){return e===t||e!=e&&t!=t}function Tv(e,t){for(var n=e.length;n--;)if(Sv(e[n][0],t))return n;return-1}var Ov=Array.prototype.splice;function Nv(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pv(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Nv.prototype.clear=function(){this.__data__=[],this.size=0},Nv.prototype.delete=function(e){var t=this.__data__,n=Tv(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ov.call(t,n,1),--this.size,!0)},Nv.prototype.get=function(e){var t=this.__data__,n=Tv(t,e);return n<0?void 0:t[n][1]},Nv.prototype.has=function(e){return Tv(this.__data__,e)>-1},Nv.prototype.set=function(e,t){var n=this.__data__,r=Tv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function jv(e){if(!Pv(e))return!1;var t=gv(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Rv,kv=lv["__core-js_shared__"],Lv=(Rv=/[^.]+$/.exec(kv&&kv.keys&&kv.keys.IE_PROTO||""))?"Symbol(src)_1."+Rv:"";var Bv=Function.prototype.toString;function Mv(e){if(null!=e){try{return Bv.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Gv=/^\[object .+?Constructor\]$/,Dv=Function.prototype,Vv=Object.prototype,Fv=Dv.toString,_v=Vv.hasOwnProperty,Hv=RegExp("^"+Fv.call(_v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wv(e){return!(!Pv(e)||function(e){return!!Lv&&Lv in e}(e))&&(jv(e)?Hv:Gv).test(Mv(e))}function Xv(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Wv(n)?n:void 0}var zv=Xv(lv,"Map"),Zv=Xv(Object,"create");var Yv=Object.prototype.hasOwnProperty;var Uv=Object.prototype.hasOwnProperty;function Jv(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $v(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Kv(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Jv.prototype.clear=function(){this.__data__=Zv?Zv(null):{},this.size=0},Jv.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Jv.prototype.get=function(e){var t=this.__data__;if(Zv){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Yv.call(t,e)?t[e]:void 0},Jv.prototype.has=function(e){var t=this.__data__;return Zv?void 0!==t[e]:Uv.call(t,e)},Jv.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Zv&&void 0===t?"__lodash_hash_undefined__":t,this},Kv.prototype.clear=function(){this.size=0,this.__data__={hash:new Jv,map:new(zv||Nv),string:new Jv}},Kv.prototype.delete=function(e){var t=$v(this,e).delete(e);return this.size-=t?1:0,t},Kv.prototype.get=function(e){return $v(this,e).get(e)},Kv.prototype.has=function(e){return $v(this,e).has(e)},Kv.prototype.set=function(e,t){var n=$v(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Qv(e){var t=this.__data__=new Nv(e);this.size=t.size}Qv.prototype.clear=function(){this.__data__=new Nv,this.size=0},Qv.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qv.prototype.get=function(e){return this.__data__.get(e)},Qv.prototype.has=function(e){return this.__data__.has(e)},Qv.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Nv){var r=n.__data__;if(!zv||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kv(r)}return n.set(e,t),this.size=n.size,this};var qv=function(){try{var e=Xv(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function ey(e,t,n){"__proto__"==t&&qv?qv(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ty=Object.prototype.hasOwnProperty;function ny(e,t,n){var r=e[t];ty.call(e,t)&&Sv(r,n)&&(void 0!==n||t in e)||ey(e,t,n)}function ry(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=void 0;void 0===l&&(l=e[a]),o?ey(n,a,l):ny(n,a,l)}return n}function oy(e){return yv(e)&&"[object Arguments]"==gv(e)}var iy=Object.prototype,sy=iy.hasOwnProperty,ay=iy.propertyIsEnumerable,ly=oy(function(){return arguments}())?oy:function(e){return yv(e)&&sy.call(e,"callee")&&!ay.call(e,"callee")},uy=Array.isArray;var cy="object"==typeof exports&&exports&&!exports.nodeType&&exports,dy=cy&&"object"==typeof module&&module&&!module.nodeType&&module,py=dy&&dy.exports===cy?lv.Buffer:void 0,fy=(py?py.isBuffer:void 0)||function(){return!1},hy=/^(?:0|[1-9]\d*)$/;function my(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&hy.test(e))&&e>-1&&e%1==0&&e<t}function gy(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var by={};function vy(e){return function(t){return e(t)}}by["[object Float32Array]"]=by["[object Float64Array]"]=by["[object Int8Array]"]=by["[object Int16Array]"]=by["[object Int32Array]"]=by["[object Uint8Array]"]=by["[object Uint8ClampedArray]"]=by["[object Uint16Array]"]=by["[object Uint32Array]"]=!0,by["[object Arguments]"]=by["[object Array]"]=by["[object ArrayBuffer]"]=by["[object Boolean]"]=by["[object DataView]"]=by["[object Date]"]=by["[object Error]"]=by["[object Function]"]=by["[object Map]"]=by["[object Number]"]=by["[object Object]"]=by["[object RegExp]"]=by["[object Set]"]=by["[object String]"]=by["[object WeakMap]"]=!1;var yy="object"==typeof exports&&exports&&!exports.nodeType&&exports,xy=yy&&"object"==typeof module&&module&&!module.nodeType&&module,Iy=xy&&xy.exports===yy&&sv.process,Cy=function(){try{var e=xy&&xy.require&&xy.require("util").types;return e||Iy&&Iy.binding&&Iy.binding("util")}catch(e){}}(),wy=Cy&&Cy.isTypedArray,Ey=wy?vy(wy):function(e){return yv(e)&&gy(e.length)&&!!by[gv(e)]},Ay=Object.prototype.hasOwnProperty;function Sy(e,t){var n=uy(e),r=!n&&ly(e),o=!n&&!r&&fy(e),i=!n&&!r&&!o&&Ey(e),s=n||r||o||i,a=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var u in e)!t&&!Ay.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||my(u,l))||a.push(u);return a}var Ty=Object.prototype;function Oy(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ty)}var Ny=bv(Object.keys,Object),Py=Object.prototype.hasOwnProperty;function jy(e){return null!=e&&gy(e.length)&&!jv(e)}function Ry(e){return jy(e)?Sy(e):function(e){if(!Oy(e))return Ny(e);var t=[];for(var n in Object(e))Py.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var ky=Object.prototype.hasOwnProperty;function Ly(e){if(!Pv(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Oy(e),n=[];for(var r in e)("constructor"!=r||!t&&ky.call(e,r))&&n.push(r);return n}function By(e){return jy(e)?Sy(e,!0):Ly(e)}var My="object"==typeof exports&&exports&&!exports.nodeType&&exports,Gy=My&&"object"==typeof module&&module&&!module.nodeType&&module,Dy=Gy&&Gy.exports===My?lv.Buffer:void 0,Vy=Dy?Dy.allocUnsafe:void 0;function Fy(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function _y(){return[]}var Hy=Object.prototype.propertyIsEnumerable,Wy=Object.getOwnPropertySymbols,Xy=Wy?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}(Wy(e),function(t){return Hy.call(e,t)}))}:_y;function zy(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Zy=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)zy(t,Xy(e)),e=vv(e);return t}:_y;function Yy(e,t,n){var r=t(e);return uy(e)?r:zy(r,n(e))}function Uy(e){return Yy(e,Ry,Xy)}function Jy(e){return Yy(e,By,Zy)}var $y=Xv(lv,"DataView"),Ky=Xv(lv,"Promise"),Qy=Xv(lv,"Set"),qy=Xv(lv,"WeakMap"),ex="[object Map]",tx="[object Promise]",nx="[object Set]",rx="[object WeakMap]",ox="[object DataView]",ix=Mv($y),sx=Mv(zv),ax=Mv(Ky),lx=Mv(Qy),ux=Mv(qy),cx=gv;($y&&cx(new $y(new ArrayBuffer(1)))!=ox||zv&&cx(new zv)!=ex||Ky&&cx(Ky.resolve())!=tx||Qy&&cx(new Qy)!=nx||qy&&cx(new qy)!=rx)&&(cx=function(e){var t=gv(e),n="[object Object]"==t?e.constructor:void 0,r=n?Mv(n):"";if(r)switch(r){case ix:return ox;case sx:return ex;case ax:return tx;case lx:return nx;case ux:return rx}return t});var dx=Object.prototype.hasOwnProperty;var px=lv.Uint8Array;function fx(e){var t=new e.constructor(e.byteLength);return new px(t).set(new px(e)),t}var hx=/\w*$/;var mx=uv?uv.prototype:void 0,gx=mx?mx.valueOf:void 0;function bx(e,t,n){var r,o,i,s=e.constructor;switch(t){case"[object ArrayBuffer]":return fx(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return function(e,t){var n=t?fx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?fx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,hx.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return r=e,gx?Object(gx.call(r)):{}}}var vx=Object.create,yx=function(){function e(){}return function(t){if(!Pv(t))return{};if(vx)return vx(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var xx=Cy&&Cy.isMap,Ix=xx?vy(xx):function(e){return yv(e)&&"[object Map]"==cx(e)};var Cx=Cy&&Cy.isSet,wx=Cx?vy(Cx):function(e){return yv(e)&&"[object Set]"==cx(e)},Ex="[object Arguments]",Ax="[object Function]",Sx="[object Object]",Tx={};function Ox(e,t,n,r,o,i){var s,a=1&t,l=2&t,u=4&t;if(void 0!==s)return s;if(!Pv(e))return e;var c=uy(e);if(c){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&dx.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return Fy(e,s)}else{var d=cx(e),p=d==Ax||"[object GeneratorFunction]"==d;if(fy(e))return function(e,t){if(t)return e.slice();var n=e.length,r=Vy?Vy(n):new e.constructor(n);return e.copy(r),r}(e,a);if(d==Sx||d==Ex||p&&!o){if(s=l||p?{}:function(e){return"function"!=typeof e.constructor||Oy(e)?{}:yx(vv(e))}(e),!a)return l?function(e,t){return ry(e,Zy(e),t)}(e,function(e,t){return e&&ry(t,By(t),e)}(s,e)):function(e,t){return ry(e,Xy(e),t)}(e,function(e,t){return e&&ry(t,Ry(t),e)}(s,e))}else{if(!Tx[d])return o?e:{};s=bx(e,d,a)}}i||(i=new Qv);var f=i.get(e);if(f)return f;i.set(e,s),wx(e)?e.forEach(function(r){s.add(Ox(r,t,n,r,e,i))}):Ix(e)&&e.forEach(function(r,o){s.set(o,Ox(r,t,n,o,e,i))});var h=c?void 0:(u?l?Jy:Uy:l?By:Ry)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(h||e,function(r,o){h&&(r=e[o=r]),ny(s,o,Ox(r,t,n,o,e,i))}),s}Tx[Ex]=Tx["[object Array]"]=Tx["[object ArrayBuffer]"]=Tx["[object DataView]"]=Tx["[object Boolean]"]=Tx["[object Date]"]=Tx["[object Float32Array]"]=Tx["[object Float64Array]"]=Tx["[object Int8Array]"]=Tx["[object Int16Array]"]=Tx["[object Int32Array]"]=Tx["[object Map]"]=Tx["[object Number]"]=Tx[Sx]=Tx["[object RegExp]"]=Tx["[object Set]"]=Tx["[object String]"]=Tx["[object Symbol]"]=Tx["[object Uint8Array]"]=Tx["[object Uint8ClampedArray]"]=Tx["[object Uint16Array]"]=Tx["[object Uint32Array]"]=!0,Tx["[object Error]"]=Tx[Ax]=Tx["[object WeakMap]"]=!1;var Nx,Px;function jx(e){return Ox(e,5)}var Rx=function(){if(Px)return Nx;Px=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r="undefined"!=typeof Element;function o(i,s){if(i===s)return!0;if(i&&s&&"object"==typeof i&&"object"==typeof s){var a,l,u,c=e(i),d=e(s);if(c&&d){if((l=i.length)!=s.length)return!1;for(a=l;0!==a--;)if(!o(i[a],s[a]))return!1;return!0}if(c!=d)return!1;var p=i instanceof Date,f=s instanceof Date;if(p!=f)return!1;if(p&&f)return i.getTime()==s.getTime();var h=i instanceof RegExp,m=s instanceof RegExp;if(h!=m)return!1;if(h&&m)return i.toString()==s.toString();var g=t(i);if((l=g.length)!==t(s).length)return!1;for(a=l;0!==a--;)if(!n.call(s,g[a]))return!1;if(r&&i instanceof Element&&s instanceof Element)return i===s;for(a=l;0!==a--;)if(!("_owner"===(u=g[a])&&i.$$typeof||o(i[u],s[u])))return!1;return!0}return i!=i&&s!=s}return Nx=function(e,t){try{return o(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}}(),kx=Ce(Rx),Lx="production"===process.env.NODE_ENV;function Bx(e,t){if(!Lx){var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}function Mx(e){return Ox(e,4)}function Gx(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Dx(e){return"symbol"==typeof e||yv(e)&&"[object Symbol]"==gv(e)}function Vx(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Vx.Cache||Kv),n}Vx.Cache=Kv;var Fx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_x=/\\(\\)?/g,Hx=function(e){var t=Vx(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Fx,function(e,n,r,o){t.push(r?o.replace(_x,"$1"):n||e)}),t});function Wx(e){if("string"==typeof e||Dx(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var Xx=uv?uv.prototype:void 0,zx=Xx?Xx.toString:void 0;function Zx(e){if("string"==typeof e)return e;if(uy(e))return Gx(e,Zx)+"";if(Dx(e))return zx?zx.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Yx(e){return uy(e)?Gx(e,Wx):Dx(e)?[e]:Fy(Hx(function(e){return null==e?"":Zx(e)}(e)))}function Ux(){return Ux=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ux.apply(this,arguments)}function Jx(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var $x=t.createContext(void 0);$x.displayName="FormikContext";var Kx=$x.Provider;function Qx(){var e=t.useContext($x);return e||("production"!==process.env.NODE_ENV?Bx(0,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):Bx()),e}$x.Consumer;var qx=function(e){return"function"==typeof e},eI=function(e){return null!==e&&"object"==typeof e},tI=function(e){return String(Math.floor(Number(e)))===e},nI=function(e){return"[object String]"===Object.prototype.toString.call(e)},rI=function(e){return 0===t.Children.count(e)},oI=function(e){return eI(e)&&qx(e.then)};function iI(e,t,n,r){void 0===r&&(r=0);for(var o=Yx(t);e&&r<o.length;)e=e[o[r++]];return r===o.length||e?void 0===e?n:e:n}function sI(e,t,n){for(var r=Mx(e),o=r,i=0,s=Yx(t);i<s.length-1;i++){var a=s[i],l=iI(e,s.slice(0,i+1));if(l&&(eI(l)||Array.isArray(l)))o=o[a]=Mx(l);else{var u=s[i+1];o=o[a]=tI(u)&&Number(u)>=0?[]:{}}}return(0===i?e:o)[s[i]]===n?e:(void 0===n?delete o[s[i]]:o[s[i]]=n,0===i&&void 0===n&&delete r[s[i]],r)}function aI(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],a=e[s];eI(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},aI(a,t,n,r[s])):r[s]=t}return r}var lI={},uI={};function cI(e){var n=e.validateOnChange,r=void 0===n||n,o=e.validateOnBlur,i=void 0===o||o,s=e.validateOnMount,a=void 0!==s&&s,l=e.isInitialValid,u=e.enableReinitialize,c=void 0!==u&&u,d=e.onSubmit,p=Jx(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=Ux({validateOnChange:r,validateOnBlur:i,validateOnMount:a,onSubmit:d},p),h=t.useRef(f.initialValues),m=t.useRef(f.initialErrors||lI),g=t.useRef(f.initialTouched||uI),b=t.useRef(f.initialStatus),v=t.useRef(!1),y=t.useRef({});"production"!==process.env.NODE_ENV&&t.useEffect(function(){void 0!==l&&("production"!==process.env.NODE_ENV?Bx(0,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):Bx())},[]),t.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var x=t.useState(0)[1],I=t.useRef({values:jx(f.initialValues),errors:jx(f.initialErrors)||lI,touched:jx(f.initialTouched)||uI,status:jx(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=I.current,w=t.useCallback(function(e){var t=I.current;I.current=function(e,t){switch(t.type){case"SET_VALUES":return Ux({},e,{values:t.payload});case"SET_TOUCHED":return Ux({},e,{touched:t.payload});case"SET_ERRORS":return kx(e.errors,t.payload)?e:Ux({},e,{errors:t.payload});case"SET_STATUS":return Ux({},e,{status:t.payload});case"SET_ISSUBMITTING":return Ux({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Ux({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Ux({},e,{values:sI(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Ux({},e,{touched:sI(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Ux({},e,{errors:sI(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Ux({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Ux({},e,{touched:aI(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Ux({},e,{isSubmitting:!1});default:return e}}(t,e),t!==I.current&&x(function(e){return e+1})},[]),E=t.useCallback(function(e,t){return new Promise(function(n,r){var o=f.validate(e,t);null==o?n(lI):oI(o)?o.then(function(e){n(e||lI)},function(e){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",e),r(e)}):n(o)})},[f.validate]),A=t.useCallback(function(e,t){var n=f.validationSchema,r=qx(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n){void 0===n&&(n=!1);var r=fI(e);return t[n?"validateSync":"validate"](r,{abortEarly:!1,context:r})}(e,r);return new Promise(function(e,t){o.then(function(){e(lI)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return sI(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var s=i;iI(t,s.path)||(t=sI(t,s.path,s.message))}}return t}(n)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",n),t(n))})})},[f.validationSchema]),S=t.useCallback(function(e,t){return new Promise(function(n){return n(y.current[e].validate(t))})},[]),T=t.useCallback(function(e){var t=Object.keys(y.current).filter(function(e){return qx(y.current[e].validate)}),n=t.length>0?t.map(function(t){return S(t,iI(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=sI(e,t[r],n)),e},{})})},[S]),O=t.useCallback(function(e){return Promise.all([T(e),f.validationSchema?A(e):{},f.validate?E(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return iv.all([t,n,r],{arrayMerge:hI})})},[f.validate,f.validationSchema,T,E,A]),N=gI(function(e){return void 0===e&&(e=C.values),w({type:"SET_ISVALIDATING",payload:!0}),O(e).then(function(e){return v.current&&(w({type:"SET_ISVALIDATING",payload:!1}),w({type:"SET_ERRORS",payload:e})),e})});t.useEffect(function(){a&&!0===v.current&&kx(h.current,f.initialValues)&&N(h.current)},[a,N]);var P=t.useCallback(function(e){var t=e&&e.values?e.values:h.current,n=e&&e.errors?e.errors:m.current?m.current:f.initialErrors||{},r=e&&e.touched?e.touched:g.current?g.current:f.initialTouched||{},o=e&&e.status?e.status:b.current?b.current:f.initialStatus;h.current=t,m.current=n,g.current=r,b.current=o;var i=function(){w({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var s=f.onReset(C.values,J);oI(s)?s.then(i):i()}else i()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);t.useEffect(function(){!0!==v.current||kx(h.current,f.initialValues)||c&&(h.current=f.initialValues,P(),a&&N(h.current))},[c,f.initialValues,P,a,N]),t.useEffect(function(){c&&!0===v.current&&!kx(m.current,f.initialErrors)&&(m.current=f.initialErrors||lI,w({type:"SET_ERRORS",payload:f.initialErrors||lI}))},[c,f.initialErrors]),t.useEffect(function(){c&&!0===v.current&&!kx(g.current,f.initialTouched)&&(g.current=f.initialTouched||uI,w({type:"SET_TOUCHED",payload:f.initialTouched||uI}))},[c,f.initialTouched]),t.useEffect(function(){c&&!0===v.current&&!kx(b.current,f.initialStatus)&&(b.current=f.initialStatus,w({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var j=gI(function(e){if(y.current[e]&&qx(y.current[e].validate)){var t=iI(C.values,e),n=y.current[e].validate(t);return oI(n)?(w({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),w({type:"SET_ISVALIDATING",payload:!1})})):(w({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return f.validationSchema?(w({type:"SET_ISVALIDATING",payload:!0}),A(C.values,e).then(function(e){return e}).then(function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:iI(t,e)}}),w({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),R=t.useCallback(function(e,t){var n=t.validate;y.current[e]={validate:n}},[]),k=t.useCallback(function(e){delete y.current[e]},[]),L=gI(function(e,t){return w({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?N(C.values):Promise.resolve()}),B=t.useCallback(function(e){w({type:"SET_ERRORS",payload:e})},[]),M=gI(function(e,t){var n=qx(e)?e(C.values):e;return w({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?N(n):Promise.resolve()}),G=t.useCallback(function(e,t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),D=gI(function(e,t,n){var o=qx(t)?t(iI(C.values,e)):t;return w({type:"SET_FIELD_VALUE",payload:{field:e,value:o}}),(void 0===n?r:n)?N(sI(C.values,e,o)):Promise.resolve()}),V=t.useCallback(function(e,t){var n,r=t,o=e;if(!nI(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,s=i.type,a=i.name,l=i.id,u=i.value,c=i.checked,d=i.outerHTML,p=i.options,f=i.multiple;(r=t||(a||l))||"production"===process.env.NODE_ENV||pI({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(s)?(n=parseFloat(u),isNaN(n)?"":n):/checkbox/.test(s)?function(e,t,n){if("boolean"==typeof e)return Boolean(t);var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,o=(i=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!o)return r.concat(n);if(!o)return r;return r.slice(0,i).concat(r.slice(i+1))}(iI(C.values,r),c,u):p&&f?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(p):u}r&&D(r,o)},[D,C.values]),F=gI(function(e){if(nI(e))return function(t){return V(t,e)};V(e)}),_=gI(function(e,t,n){return void 0===t&&(t=!0),w({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?N(C.values):Promise.resolve()}),H=t.useCallback(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=n.outerHTML,s=t||(r||o);s||"production"===process.env.NODE_ENV||pI({htmlContent:i,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),_(s,!0)},[_]),W=gI(function(e){if(nI(e))return function(t){return H(t,e)};H(e)}),X=t.useCallback(function(e){qx(e)?w({type:"SET_FORMIK_STATE",payload:e}):w({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),z=t.useCallback(function(e){w({type:"SET_STATUS",payload:e})},[]),Z=t.useCallback(function(e){w({type:"SET_ISSUBMITTING",payload:e})},[]),Y=gI(function(){return w({type:"SUBMIT_ATTEMPT"}),N().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=$()))return}catch(e){throw e}return Promise.resolve(n).then(function(e){return v.current&&w({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(v.current)throw w({type:"SUBMIT_FAILURE"}),e})}if(v.current&&(w({type:"SUBMIT_FAILURE"}),t))throw e})}),U=gI(function(e){if(e&&e.preventDefault&&qx(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&qx(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?Bx(0,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):Bx()))}Y().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),J={resetForm:P,validateForm:N,validateField:j,setErrors:B,setFieldError:G,setFieldTouched:_,setFieldValue:D,setStatus:z,setSubmitting:Z,setTouched:L,setValues:M,setFormikState:X,submitForm:Y},$=gI(function(){return d(C.values,J)}),K=gI(function(e){e&&e.preventDefault&&qx(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&qx(e.stopPropagation)&&e.stopPropagation(),P()}),Q=t.useCallback(function(e){return{value:iI(C.values,e),error:iI(C.errors,e),touched:!!iI(C.touched,e),initialValue:iI(h.current,e),initialTouched:!!iI(g.current,e),initialError:iI(m.current,e)}},[C.errors,C.touched,C.values]),q=t.useCallback(function(e){return{setValue:function(t,n){return D(e,t,n)},setTouched:function(t,n){return _(e,t,n)},setError:function(t){return G(e,t)}}},[D,_,G]),ee=t.useCallback(function(e){var t=eI(e),n=t?e.name:e,r=iI(C.values,n),o={name:n,value:r,onChange:F,onBlur:W};if(t){var i=e.type,s=e.value,a=e.as,l=e.multiple;"checkbox"===i?void 0===s?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(s)),o.value=s):"radio"===i?(o.checked=r===s,o.value=s):"select"===a&&l&&(o.value=o.value||[],o.multiple=!0)}return o},[W,F,C.values]),te=t.useMemo(function(){return!kx(h.current,C.values)},[h.current,C.values]),ne=t.useMemo(function(){return void 0!==l?te?C.errors&&0===Object.keys(C.errors).length:!1!==l&&qx(l)?l(f):l:C.errors&&0===Object.keys(C.errors).length},[l,te,C.errors,f]);return Ux({},C,{initialValues:h.current,initialErrors:m.current,initialTouched:g.current,initialStatus:b.current,handleBlur:W,handleChange:F,handleReset:K,handleSubmit:U,resetForm:P,setErrors:B,setFormikState:X,setFieldTouched:_,setFieldValue:D,setFieldError:G,setStatus:z,setSubmitting:Z,setTouched:L,setValues:M,submitForm:Y,validateForm:N,validateField:j,isValid:ne,dirty:te,unregisterField:k,registerField:R,getFieldProps:ee,getFieldMeta:Q,getFieldHelpers:q,validateOnBlur:i,validateOnChange:r,validateOnMount:a})}function dI(e){var n=cI(e),r=e.component,o=e.children,i=e.render,s=e.innerRef;return t.useImperativeHandle(s,function(){return n}),"production"!==process.env.NODE_ENV&&t.useEffect(function(){e.render&&("production"!==process.env.NODE_ENV?Bx(0,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):Bx())},[]),t.createElement(Kx,{value:n},r?t.createElement(r,n):i?i(n):o?qx(o)?o(n):rI(o)?null:t.Children.only(o):null)}function pI(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+n+"\n ")}function fI(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map(function(e){return!0===Array.isArray(e)||Av(e)?fI(e):""!==e?e:void 0}):Av(e[r])?t[r]=fI(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function hI(e,t,n){var r=e.slice();return t.forEach(function(t,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?iv(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=iv(e[o],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var mI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function gI(e){var n=t.useRef(e);return mI(function(){n.current=e}),t.useCallback(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.current.apply(void 0,t)},[])}function bI(e){var n=e.validate,r=e.name,o=e.render,i=e.children,s=e.as,a=e.component,l=e.className,u=Jx(e,["validate","name","render","children","as","component","className"]),c=Jx(Qx(),["validate","validationSchema"]);"production"!==process.env.NODE_ENV&&t.useEffect(function(){o&&("production"!==process.env.NODE_ENV?Bx(0,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+r+'" render={({field, form}) => ...} /> with <Field name="'+r+'">{({field, form, meta}) => ...}</Field>'):Bx()),s&&i&&qx(i)&&("production"!==process.env.NODE_ENV?Bx(0,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):Bx()),a&&i&&qx(i)&&("production"!==process.env.NODE_ENV?Bx(0,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):Bx()),o&&i&&!rI(i)&&("production"!==process.env.NODE_ENV?Bx(0,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):Bx())},[]);var d=c.registerField,p=c.unregisterField;t.useEffect(function(){return d(r,{validate:n}),function(){p(r)}},[d,p,r,n]);var f=c.getFieldProps(Ux({name:r},u)),h=c.getFieldMeta(r),m={field:f,form:c};if(o)return o(Ux({},m,{meta:h}));if(qx(i))return i(Ux({},m,{meta:h}));if(a){if("string"==typeof a){var g=u.innerRef,b=Jx(u,["innerRef"]);return t.createElement(a,Ux({ref:g},f,b,{className:l}),i)}return t.createElement(a,Ux({field:f,form:c},u,{className:l}),i)}var v=s||"input";if("string"==typeof v){var y=u.innerRef,x=Jx(u,["innerRef"]);return t.createElement(v,Ux({ref:y},f,x,{className:l}),i)}return t.createElement(v,Ux({},f,u,{className:l}),i)}var vI=t.forwardRef(function(e,n){var r=e.action,o=Jx(e,["action"]),i=null!=r?r:"#",s=Qx(),a=s.handleReset,l=s.handleSubmit;return t.createElement("form",Ux({onSubmit:l,ref:n,onReset:a,action:i},o))});vI.displayName="Form";const yI=/\D/g,xI=({name:t,errors:n,touched:r})=>{const o=n[t];return r[t]&&"string"==typeof o?e.jsx(dn,{className:"mt-1 text-text-critical",children:o}):null},II=({children:t,required:n=!1})=>e.jsxs("label",{className:"mb-1 block text-sm font-medium text-text",children:[t,n&&e.jsx("span",{className:"text-text-critical",children:"*"})]});exports.Accordion=Zo,exports.AddressAutocomplete=({className:n,containerClassName:r,defaultValue:o="",errorText:i,fixedPositionedSuggestions:s=!1,focusOnLoad:a=!0,hasError:l,inputContainerClassName:u,isIframe:c=!1,isLoading:d=!1,isReady:p=!0,mapPinIcon:f=!0,minQueryLength:h=3,onChange:m,onFocus:g,onLoadProvider:b,onSelectAddress:v,onSuggestionsChange:y,optionsContainerClassName:x,prefixIconClassName:I="text-icon-brand",suggestions:C=[],value:w,...E})=>{const A=t.useRef(null),S=t.useRef(null),T=t.useId(),[O,N]=t.useState(null!=w?w:o),[P,j]=t.useState(!1),R=xe("inline-flex items-center justify-center leading-none",I);t.useEffect(()=>{void 0!==w&&N(w)},[w]),t.useEffect(()=>{var e;p&&a&&(null===(e=A.current)||void 0===e||e.focus())},[a,p]),t.useEffect(()=>{p&&(null==b||b())},[p,b]),t.useEffect(()=>{null==y||y(C)},[y,C]),((e,n)=>{const r=t=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(t.target))||n()};t.useEffect(()=>(document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}))})(S,()=>j(!1));const k=t.useCallback(e=>{if(!e.address)return;const t=ur(e);N(t.value),j(!1),null==v||v({address:t.value,unit:e.address.addressLine2||"",addressToSend:e.address,placeId:e.placeId||""})},[v]),L=P&&O.length>=h&&!d&&C.length>0;return e.jsxs("div",{ref:S,className:xe("relative min-w-[300px] text-text",r),children:[e.jsx(lr,{...E,ref:A,size:"medium",value:O,className:xe("mx-auto w-full bg-transparent pl-2 placeholder:text-input-text-placeholder","body2",n),containerClassName:xe("pl-4",u),loading:!p,onChange:e=>{const t=e.target.value;N(t),j(t.length>=h),t||null==v||v(),null==m||m(t)},onFocus:e=>{j(!0),null==g||g(e)},autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-controls":T,"aria-expanded":L,"data-cy":"address-autocomplete-input","data-testid":"address-autocomplete-input",prefixIconName:f?"location_on":void 0,prefixIconFill:!0,prefixIconClassName:R,errorText:i,state:i||l?"error":E.state,hasError:l}),L&&e.jsx("ul",{id:T,role:"listbox","data-cy":"address-autocomplete-suggestions","data-testid":"address-autocomplete-suggestions",className:xe("shadow-dark-drop absolute top-full z-20 m-0 mt-1 w-full list-none overflow-y-auto overscroll-contain rounded-lg border border-input-border bg-bg-surface p-0",c?"max-h-[117px]":"max-h-[220px]",s&&(c?"fixed z-50 max-h-[117px]":"fixed z-50 max-h-[220px]"),x),children:C.map((t,n)=>{const{primaryText:r,secondaryText:o}=ur(t);return e.jsx("li",{role:"option","aria-selected":"false",children:e.jsxs("button",{type:"button",className:"body2 flex w-full items-center px-4 py-4 text-left hover:bg-bg-surface-secondary",onClick:()=>k(t),children:[e.jsx(cn,{fill:1,name:"location_on",size:24,weight:"200",className:xe("mr-4 min-w-[24px]",R)}),e.jsxs("span",{children:[e.jsx("span",{children:r}),o&&e.jsx("span",{className:"ml-1",children:o})]})]})},t.placeId||`${t.mainText}-${n}`)})})]})},exports.AlertCard=ju,exports.AnimationWrapper=Ng,exports.BrandButton=Pg,exports.Button=sr,exports.CallButton=pr,exports.Checkbox=Yo,exports.Checklist=pn,exports.Collapse=zo,exports.DEFAULT_BUTTON_ANIMATION_TYPE=ku,exports.Divider=jg,exports.FiberForm=({InputComponent:n,AddressAutocomplete:r,initialValues:o=Kb,inputList:i=Qb,formSchema:s=qb,onSubmit:a,lookupAddress:l,buttonText:u="See plans",buttonClassName:c,bottomTextDisclaimer:d,hideLegalCopy:p=!1,checkBoxEnabled:f=!0,copyRightLinks:h,className:m,onAddressEvent:g})=>{const b=null!=n?n:lr,[v,y]=t.useState([]),[x,I]=t.useState(!1),[C,w]=t.useState([]),[E,A]=t.useState(),[S,T]=t.useState(!1),O={fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:500};return e.jsx(dI,{initialValues:o,validationSchema:s,onSubmit:async(e,t)=>{await a(e),t.resetForm({values:o}),A(void 0),w([]),T(!1)},children:({errors:t,touched:n,isSubmitting:o,submitCount:s,setFieldValue:a,values:N})=>{var P,j,R;return e.jsxs(vI,{className:xe("fiber-form w-full",m),children:[e.jsxs("div",{className:"flex flex-col gap-5 sm:flex-row",children:[i.firstName&&e.jsxs("div",{className:"flex-1",children:[e.jsx(II,{required:!0,children:"First name"}),e.jsx(bI,{as:b,style:O,name:"firstName",placeholder:null!==(P=i.firstName.placeholder)&&void 0!==P?P:"First name"}),e.jsx(xI,{name:"firstName",errors:t,touched:n})]}),i.lastName&&e.jsxs("div",{className:"flex-1",children:[e.jsx(II,{required:!0,children:"Last name"}),e.jsx(bI,{as:b,style:O,name:"lastName",placeholder:null!==(j=i.lastName.placeholder)&&void 0!==j?j:"Last name"}),e.jsx(xI,{name:"lastName",errors:t,touched:n})]})]}),i.address&&e.jsxs("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[e.jsxs("div",{className:"sm:flex-[3]",children:[e.jsx(II,{required:!0,children:"Address"}),e.jsx(bI,{name:"address",children:({field:t})=>e.jsx(r,{value:t.value||"",placeholder:"Address, city, state, ZIP",onChange:e=>{a("address",e,!1),a("isManualAddress",!0,!1),(async(e,t)=>{if(null==g||g(e),!l||e.length<3)return y([]),void I(!1);try{const n=await l(e,t);y(n),I(n.length>0)}catch(e){y([]),I(!1)}})(e,N)},onSelectAddress:e=>{var t,n;if(!e)return;const r=(null!==(t=e.addressToSend.units)&&void 0!==t?t:[]).filter(e=>e.addressLine2);a("address",e.address),a("addressToSend",e.addressToSend),a("unit",null!==(n=e.unit)&&void 0!==n?n:"",!1),a("isManualAddress",!1,!1),a("hasUnits",r.length>0,!1),w([...r.map(e=>{var t;return{label:e.addressLine2,value:null!==(t=e.dfAddressId)&&void 0!==t?t:"",data:e}}),...r.length>0?[{label:"I don't see my unit",value:"manual"},{label:"I don't have a unit",value:"no-unit"}]:[]])},onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()}})}),e.jsx(xI,{name:"address",errors:t,touched:n}),x&&e.jsx("ul",{className:"shadow-dark-drop mt-2 max-h-56 overflow-auto rounded-lg border border-input-border bg-white",children:v.map((t,n)=>{var r;return e.jsx("li",{children:e.jsxs("button",{type:"button",className:"body2 flex w-full items-center gap-2 px-4 py-3 text-left hover:bg-bg-surface-hover",onClick:()=>((e,t)=>{var n,r,o;const i=[e.addressLine1,e.city,e.state,e.postalCode].filter(Boolean).join(", "),s=(null!==(n=e.units)&&void 0!==n?n:[]).filter(e=>e.addressLine2);t("address",i),t("addressToSend",e),t("zip",null!==(r=e.postalCode)&&void 0!==r?r:"",!1),t("isManualAddress",!1,!1),t("hasUnits",s.length>0,!1),t("unit",s.length>0?"":null!==(o=e.addressLine2)&&void 0!==o?o:"",!1),y([]),I(!1),A(void 0),w([...s.map(e=>{var t;return{label:e.addressLine2,value:null!==(t=e.dfAddressId)&&void 0!==t?t:"",data:e}}),...s.length>0?[{label:"I don't see my unit",value:"manual"},{label:"I don't have a unit",value:"no-unit"}]:[]])})(t,a),children:[e.jsx(cn,{name:"location_on",size:24,fill:1,className:"text-green-600"}),[t.addressLine1,t.city,t.state,t.postalCode].filter(Boolean).join(", ")]})},`${null!==(r=t.dfAddressId)&&void 0!==r?r:n}-${t.addressLine1}`)})})]}),e.jsxs("div",{className:"w-full sm:w-[216px] sm:flex-none",children:[e.jsx("div",{className:"mb-1 hidden h-[20px] sm:block"}),e.jsx(Pu,{options:C,value:E,placeholder:"Apt, Suite, etc.",maxMenuHeight:200,components:{DropdownIndicator:()=>e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"#1B2A4E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},styles:{option:e=>({...e,...O}),singleValue:e=>({...e,...O}),placeholder:e=>({...e,...O}),input:e=>({...e,...O}),indicatorsContainer:e=>({...e,alignItems:"center"})},className:"w-full sm:w-[216px]",controlClassName:"!h-[56px] !min-h-[56px] !gap-2 !rounded-[12px] !border !border-solid !border-[#CECECE] !bg-white !pl-4 !pr-4 !flex-nowrap [&>div:first-child]:!overflow-visible [&>div:first-child>div]:!max-w-none [&>div:first-child>div]:!overflow-visible [&>div:first-child>div]:!whitespace-nowrap",onChange:e=>{const t=e;if(t){if("manual"===t.value)return T(!0),a("hasUnits",!0,!1),a("unit","",!1),a("addressToSend",{...N.addressToSend,addressLine2:"",dfAddressId:void 0}),void A(t);if("no-unit"===t.value)return T(!1),a("unit","",!1),a("hasUnits",!1,!1),a("addressToSend",{...N.addressToSend,addressLine2:"",dfAddressId:void 0}),void A(t);T(!1),A(t),a("unit",t.label),a("hasUnits",!1,!1),a("addressToSend",{...N.addressToSend,addressLine2:t.label,dfAddressId:t.value})}}}),!S&&s>0&&null!==(R=N.hasUnits)&&void 0!==R&&R&&!E&&"string"==typeof t.unit&&e.jsx("span",{className:"mt-1 block text-sm font-medium text-red-500",children:t.unit}),S&&e.jsxs("div",{className:"mt-5 w-full sm:w-[216px]",children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-900",children:["Unit",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(bI,{as:b,style:O,name:"unit",placeholder:"Please enter your unit"}),s>0&&"string"==typeof t.unit&&e.jsx("span",{className:"mt-1 block text-sm font-medium text-red-500",children:t.unit})]})]})]}),e.jsxs("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[i.phoneNumber&&e.jsxs("div",{className:"flex-1",children:[e.jsx(II,{required:!0,children:"Phone number"}),e.jsx(bI,{name:"phone",children:({field:t,form:n})=>e.jsx(b,{...t,type:"tel",style:O,placeholder:"(555) 555-5555",onChange:e=>n.setFieldValue("phone",(e=>{const t=e.replace(yI,"").slice(0,10);return t.length<4?t:t.length<7?`(${t.slice(0,3)}) ${t.slice(3)}`:`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`})(e.currentTarget.value))})}),e.jsx(xI,{name:"phone",errors:t,touched:n})]}),i.emailAddress&&e.jsxs("div",{className:"flex-1",children:[e.jsx(II,{required:!0,children:"Email address"}),e.jsx(bI,{as:b,style:O,name:"email",type:"email",placeholder:"john.doe@example.com"}),e.jsx(xI,{name:"email",errors:t,touched:n})]})]}),e.jsxs("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[i.referralCode&&e.jsxs("div",{className:"flex-1",children:[e.jsx(II,{children:"Referral code"}),e.jsx(bI,{as:b,style:O,name:"referralCode",placeholder:"Optional"}),e.jsx(xI,{name:"referralCode",errors:t,touched:n})]}),i.notes&&e.jsxs("div",{className:"flex-1",children:[e.jsx(II,{children:"Notes or comments"}),e.jsx(bI,{as:b,style:O,name:"notes",placeholder:"Optional"})]})]}),f&&!p&&e.jsx("div",{className:"mt-16 text-neutral-600",children:e.jsx(bI,{name:"isMarketingCom",children:({field:t})=>e.jsxs("div",{className:"mb-7 mt-4 flex items-center gap-1 pl-1",children:[e.jsx("input",{type:"checkbox",className:"h-4 w-4 cursor-pointer align-middle accent-[#1d9d77]",...t,checked:t.value,id:"recieve-message-checkbox"}),e.jsx("label",{htmlFor:"recieve-message-checkbox",className:"mx-1 mb-3 mr-0 cursor-pointer align-middle text-micro font-medium leading-6 text-neutral-600",children:"Receive text messages for installation, account updates, and marketing communications."}),e.jsx(Bg,{tooltipMsg:"By opting in to receive text messages, you will receive automated text message related to service notifications including installations, service changes and updates, billing information, marketing offers from Kinetic including cart reminders. Consent is not a condition of purchase. Reply STOP at any time to unsubscribe. Message frequency varies. Msg & data rates may apply. To contact our Customer Support via email, chat, or phone, visit our Support page below.",className:"fiber-form-tooltip ff-NR mt-0",children:e.jsx(cn,{name:"info",size:20,className:"tooltip",style:{verticalAlign:"top"}})})]})})}),!p&&e.jsx(dn,{className:"body3 my-[32px] text-neutral-600 lg:mb-[64px] lg:mt-[32px]",children:"By submitting this form you consent to receive marketing messages from Kinetic by text, email or phone to the contact provided. Consent is not a condition of purchase. Msg & data rates may apply. Msg frequency varies. Unsubscribe at any time by replying STOP or clicking the unsubscribe link."}),d&&!p&&e.jsx(dn,{className:"mt-2 text-center text-text-secondary",children:d}),h&&!p&&e.jsx("ul",{className:"mt-16 flex list-disc justify-center gap-8 text-text-secondary",children:h.map(t=>e.jsx("li",{children:e.jsx("a",{href:t.href,target:"_blank",rel:"noreferrer",className:"underline",children:t.title})},t.title))}),e.jsx("div",{className:"mt-8 flex items-center justify-center lg:mt-[64px]",children:e.jsx(sr,{type:"submit",disabled:o,"aria-busy":o,className:xe("flex h-16 w-[198px] max-w-full cursor-pointer items-center justify-center overflow-hidden rounded-button border border-brand bg-bg-fill-brand px-[60px] py-4 text-center font-black leading-7 text-text-brand-on-bg-fill no-underline transition-colors duration-300 ease-in-out enabled:hover:border-[var(--color-bg-fill-brand-hover)] enabled:hover:bg-bg-fill-brand-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-brand disabled:cursor-not-allowed",o&&"opacity-75",c),children:e.jsxs("span",{className:"relative flex w-full items-center justify-center",children:[o&&e.jsx(dr,{size:"small",className:"!h-5 !w-5"}),e.jsx("span",{children:u})]})})})]})}})},exports.Image=cr,exports.Input=lr,exports.InputField=ar,exports.Link=mn,exports.List=un,exports.ListItem=ln,exports.MaterialIcon=cn,exports.Modal=Xo,exports.NextImage=or,exports.PageSkeleton=()=>e.jsxs("div",{className:"item-center mx-auto mt-4 flex animate-pulse flex-col justify-center gap-10 px-1 md:max-w-[48.375rem] md:gap-16 md:px-0","data-testid":"generic-skeleton",children:[e.jsx("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start","data-testid":"title"}),e.jsxs("div",{className:"item-center flex flex-col gap-6","data-testid":"subtitle",children:[e.jsx("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-start"}),e.jsx("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-start"})]}),e.jsxs("div",{className:"item-center flex flex-col gap-3","data-testid":"content",children:[e.jsx("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start"}),e.jsx("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start"})]}),e.jsxs("div",{className:"item-center flex flex-col gap-6","data-testid":"additional-info",children:[e.jsx("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-end"}),e.jsx("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-end"})]}),e.jsx("div",{className:"item-center flex justify-center","data-testid":"cta-button",children:e.jsx("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-end md:w-[22.125rem]"})})]}),exports.RadioButton=Rg,exports.SeeMore=kg,exports.Select=Pu,exports.SelectPlanButton=({onSelect:n,speed:r,isSelected:o=!1,renderCheckPlans:i,iconSize:s=24,iconClassName:a,cta:l,techType:u,isMax:c,twoColumn:d=!1})=>{const[p,f]=t.useState(!1),h=`btn-medium 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 ${o?" 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"} `,m=null==i?void 0:i({speedCardConfig:{isModalOpen:p,setModalOpen:()=>{f(!1)},speed:r,techType:u,isMax:c},cta:l});return e.jsxs(e.Fragment,{children:[e.jsxs(sr,{onClick:()=>{f(!0),n()},className:xe(h,"w-full justify-between px-3 md:px-5"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${r}`,"data-track-element-clicked":"speed_plan_card",children:[e.jsx("span",{className:d?"label3 md:label1":"label1",children:"Select plan"}),e.jsx(cn,{className:xe(a,"!text-[24px] md:!text-[40px]",o?"text-icon":"text-icon-inverse"),name:"expand_circle_right",fill:1,size:s})]}),m]})},exports.Skeleton=Lg,exports.Spinner=dr,exports.Text=dn,exports.TextInput=lr,exports.Tooltip=Bg,exports.VideoLink=({videoLink:n,imageWidth:r=660,imageHeight:o=660,useOriginalImageAspectRatio:i=!1,isAboveTheFold:s=!1,onVideoEvent:a})=>{var l;const[u,c]=t.useState(""),[d,p]=t.useState(!1),f=function(e){const n=t.useRef(new Set),r=t.useRef(!1),o=t.useRef(0),i=t.useRef(0),s=(t,n,r)=>{e&&e(n,{videoId:t.videoId,videoTitle:t.videoTitle,provider:t.provider,position:o.current,duration:i.current,percentComplete:i.current>0?Math.min(100,Math.round(o.current/i.current*100)):0,...r})};return{handlePlay:e=>s(e,"played"),handlePause:e=>s(e,"paused"),handleFullscreenToggle:(e,t)=>s(e,"fullscreen_toggled",{isFullscreen:t}),handleClosed:e=>s(e,"closed"),handleTimeUpdate:(e,t,a)=>{const l=Number.isFinite(t)?t:0,u=Number.isFinite(a)?a:0;if(o.current=l,i.current=u,u<=0)return;const c=Math.min(100,l/u*100);ir.forEach(t=>{c>=t&&!n.current.has(t)&&(n.current.add(t),s(e,"progress"))}),c>=99.5&&!r.current&&(r.current=!0,s(e,"completed"))},handleEnded:e=>{r.current||(r.current=!0,i.current>0&&(o.current=i.current),s(e,"completed"))},reset:()=>{n.current=new Set,r.current=!1,o.current=0,i.current=0}}}(a),h=null==n?void 0:n.videoSourceType,m="contentful"===h?null==n?void 0:n.videoAssetUrl:null==n?void 0:n.link,g="string"==typeof m?m:"",b=null==n?void 0:n.image;if(!g)return b?e.jsx("div",{className:xe(i?"overflow-hidden rounded-image":"relative aspect-[16/9] w-full overflow-hidden rounded-image lg:h-[486px] xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:e.jsx(or,{src:b,alt:"section-image",priority:s,fill:!i,width:i?r||660:void 0,height:i?o||660:void 0,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:xe(i?"w-full":"object-cover")})}):null;const v=null!==(l=null==n?void 0:n.videoPopup)&&void 0!==l&&l,y=Boolean(u&&u===g),x="contentful"===h?"contentful":g.includes("vimeo")?"vimeo":"youtube",I="contentful"===x?(e=>{var t;if("string"!=typeof e||!e)return"";const[n]=e.split(/[?#]/);return null!==(t=n.split("/").filter(Boolean).pop())&&void 0!==t?t:e})(null==n?void 0:n.videoAssetUrl):"vimeo"===x?(C=g)?Kn(C.toString()):"":er(g);var C;const w={videoId:I,videoTitle:null==n?void 0:n.title,provider:x},E=()=>{y||(f.reset(),c(g))},A=e=>{e.stopPropagation(),f.handleClosed(w),c("")},S="string"==typeof(null==n?void 0:n.title)?n.title.trim():"",T=S?`${S} video preview`:"Video preview",O=S?`Play video: ${S}`:"Play video",N=(()=>{const t={onPlay:()=>f.handlePlay(w),onPause:()=>f.handlePause(w),onTimeUpdate:(e,t)=>f.handleTimeUpdate(w,e,t),onEnded:()=>f.handleEnded(w),onFullscreenToggle:e=>f.handleFullscreenToggle(w,e)},r=y?"playing":"idle";return"contentful"===h?e.jsx(bn,{videoAssetUrl:null==n?void 0:n.videoAssetUrl,videoAssetType:null==n?void 0:n.videoAssetType,image:b,title:null==n?void 0:n.title,description:null==n?void 0:n.description,autoplay:y,...t},r):g.includes("vimeo")?e.jsx(Qn,{link:g,title:null==n?void 0:n.title,autoplay:y,...t},r):e.jsx(tr,{link:g,title:null==n?void 0:n.title,autoplay:y,...t},r)})();return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:xe("video-section relative w-full cursor-pointer rounded-image transition-all duration-300 lg:w-[486px]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",!y&&"hover:ring-2 hover:ring-border-focus"),onClick:E,onKeyDown:e=>{y||"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),E())},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),role:y?void 0:"button",tabIndex:y?void 0:0,"aria-label":y?void 0:O,children:[e.jsxs("div",{className:xe(y&&!v&&"hidden",y&&!v?"opacity-0":"opacity-100","relative w-full transition-opacity duration-300"),children:[b&&e.jsx(or,{src:b,alt:T,width:r||660,height:o||660,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:"h-auto w-full rounded-image"}),e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx(vn,{isHovered:d})})]}),!v&&e.jsx("div",{className:xe("aspect-[16/9] w-full overflow-hidden rounded-image transition-opacity duration-300",y?"opacity-100":"hidden",!i&&"xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:N})]}),v&&e.jsx("div",{className:xe("z-[100] transition-all duration-300",y?"fixed inset-0 flex items-center justify-center p-4":"hidden"),onClick:A,children:e.jsxs("div",{"data-testid":"video-popup-content",className:"relative aspect-video w-[min(100%,calc(80vh*16/9))] max-w-[1280px] overflow-hidden rounded-2xl bg-black shadow-2xl md:rounded-3xl",onClick:e=>e.stopPropagation(),children:[e.jsx("button",{type:"button",onClick:A,"aria-label":"Close video","data-testid":"video-popup-close",className:"absolute right-3 top-3 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-black/60 text-white transition-colors hover:bg-black/80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white sm:right-4 sm:top-4 sm:h-10 sm:w-10",children:e.jsx(cn,{name:"close",className:"text-white"})}),N]})})]})},exports.ViewCartButton=t=>{const{cartTotalText:n,onClick:r,isOpen:o,...i}=t;return e.jsx(sr,{className:xe("btn-medium 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 border-2 border-border-secondary-on-bg-fill bg-bg text-text focus:ring-bg-surface-inverse","btn-small w-full border-border pl-6 pr-4 md:btn-medium"),onClick:r,...i,children:e.jsxs("div",{className:"flex w-full items-center justify-center gap-2",children:[e.jsxs("div",{className:"flex flex-col items-center justify-center",children:[e.jsx(dn,{className:"label4 -mb-1 text-text",children:"View cart"}),e.jsx(dn,{className:"label3 text-text md:label1","data-testid":"cart-total",children:n})]}),e.jsx(cn,{name:"keyboard_arrow_up",size:24,fill:0,className:xe("h-6 w-6 transition-transform",o?"rotate-180":"rotate-0")})]})})},exports.clsx=l,exports.cx=xe,exports.fiberFormAddressCollectionFormSchema=qb,exports.fiberFormInputInitialValues=Kb,exports.fiberFormInputList=Qb,exports.useBodyScrollLock=fr,exports.useCarouselSwipe=function(e){const{itemCount:n,cardOffsetPercentage:r=105,swipeThreshold:o=.15,mobileBreakpoint:i=768,autoScrollInterval:s=8e3,enableAutoScroll:a=!0}=e,[l,u]=t.useState(0),[c,d]=t.useState(0),[p,f]=t.useState(!1),[h,m]=t.useState("undefined"!=typeof window?window.innerWidth:1),[g,b]=t.useState(!1),v=t.useRef(null),y=t.useRef(0),x=t.useRef(null),I={CARD_OFFSET_PERCENTAGE:r,SWIPE_THRESHOLD:o,MOBILE_BREAKPOINT:i,AUTO_SCROLL_INTERVAL:s};t.useEffect(()=>{const e=()=>{var e;m((null===(e=x.current)||void 0===e?void 0:e.offsetWidth)||window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const C=t.useCallback(()=>{0!==n&&u(e=>(e+1)%n)},[n]),w=t.useCallback(()=>{0!==n&&u(e=>0===e?n-1:e-1)},[n]),E=t.useCallback(e=>{e<0||e>=n||u(e)},[n]),A=t.useCallback(e=>{y.current=e.touches[0].clientX,f(!0),v.current&&clearInterval(v.current)},[]),S=t.useCallback(e=>{if(!p)return;const t=e.touches[0].clientX-y.current;d(t)},[p]),T=t.useCallback(()=>{f(!1);const e=h*o;c>e?w():c<-e&&C(),d(0),a&&s>0&&(v.current=setInterval(()=>{C()},s))},[c,h,o,w,C,a,s]);return t.useEffect(()=>{const e=()=>{b(window.innerWidth<i)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i]),t.useEffect(()=>{if(a&&0!==n&&0!==s)return v.current=setInterval(()=>{C()},s),()=>{v.current&&clearInterval(v.current)}},[C,n,a,s]),{currentIndex:l,swipeOffset:c,isSwiping:p,isMobile:g,containerWidth:h,containerRef:x,nextSlide:C,prevSlide:w,goToSlide:E,handleTouchStart:A,handleTouchMove:S,handleTouchEnd:T,constants:I}};
|
|
50
|
+
*/function Vs(){return Bs||(Bs=1,"production"===process.env.NODE_ENV?ks.exports=function(){if(Os)return Rs;Os=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case a:case c:case h:case f:case s:return e;default:return p}}case n:return p}}}function x(e){return y(e)===u}return Rs.AsyncMode=l,Rs.ConcurrentMode=u,Rs.ContextConsumer=a,Rs.ContextProvider=s,Rs.Element=t,Rs.ForwardRef=c,Rs.Fragment=r,Rs.Lazy=h,Rs.Memo=f,Rs.Portal=n,Rs.Profiler=i,Rs.StrictMode=o,Rs.Suspense=d,Rs.isAsyncMode=function(e){return x(e)||y(e)===l},Rs.isConcurrentMode=x,Rs.isContextConsumer=function(e){return y(e)===a},Rs.isContextProvider=function(e){return y(e)===s},Rs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Rs.isForwardRef=function(e){return y(e)===c},Rs.isFragment=function(e){return y(e)===r},Rs.isLazy=function(e){return y(e)===h},Rs.isMemo=function(e){return y(e)===f},Rs.isPortal=function(e){return y(e)===n},Rs.isProfiler=function(e){return y(e)===i},Rs.isStrictMode=function(e){return y(e)===o},Rs.isSuspense=function(e){return y(e)===d},Rs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===s||e.$$typeof===a||e.$$typeof===c||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},Rs.typeOf=y,Rs}():ks.exports=(Ls||(Ls=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case l:case u:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case a:case c:case h:case f:case s:return g;default:return p}}case n:return p}}}var x=l,I=u,C=a,w=s,E=t,A=c,S=r,T=h,O=f,N=n,j=i,P=o,k=d,R=!1;function L(e){return y(e)===u}Gs.AsyncMode=x,Gs.ConcurrentMode=I,Gs.ContextConsumer=C,Gs.ContextProvider=w,Gs.Element=E,Gs.ForwardRef=A,Gs.Fragment=S,Gs.Lazy=T,Gs.Memo=O,Gs.Portal=N,Gs.Profiler=j,Gs.StrictMode=P,Gs.Suspense=k,Gs.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||y(e)===l},Gs.isConcurrentMode=L,Gs.isContextConsumer=function(e){return y(e)===a},Gs.isContextProvider=function(e){return y(e)===s},Gs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Gs.isForwardRef=function(e){return y(e)===c},Gs.isFragment=function(e){return y(e)===r},Gs.isLazy=function(e){return y(e)===h},Gs.isMemo=function(e){return y(e)===f},Gs.isPortal=function(e){return y(e)===n},Gs.isProfiler=function(e){return y(e)===i},Gs.isStrictMode=function(e){return y(e)===o},Gs.isSuspense=function(e){return y(e)===d},Gs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===s||e.$$typeof===a||e.$$typeof===c||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},Gs.typeOf=y}()),Gs)),ks.exports}!function(){if(Ds)return Ms;Ds=1;var e=Vs(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var s=Object.defineProperty,a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;Ms=function e(t,r,o){if("string"!=typeof r){if(d){var p=c(r);p&&p!==d&&e(t,p,o)}var f=a(r);l&&(f=f.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<f.length;++g){var b=f[g];if(!(n[b]||o&&o[b]||m&&m[b]||h&&h[b])){var v=u(r,b);try{s(t,b,v)}catch(e){}}}}return t}}();var Fs="undefined"!=typeof document;var _s=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Fs&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var Hs={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ws(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Xs=/[A-Z]|^ms/g,zs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zs=function(e){return 45===e.charCodeAt(1)},Ys=function(e){return null!=e&&"boolean"!=typeof e},Us=Ws(function(e){return Zs(e)?e:e.replace(Xs,"-$&").toLowerCase()}),Js=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(zs,function(e,t,n){return Ks={name:t,styles:n,next:Ks},t})}return 1===Hs[e]||Zs(e)||"number"!=typeof t||0===t?t:t+"px"};function $s(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ks={name:o.name,styles:o.styles,next:Ks},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)Ks={name:s.name,styles:s.styles,next:Ks},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=$s(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;Ys(a)&&(r+=Us(i)+":"+Js(i,a)+";")}else if(Array.isArray(s)&&"string"==typeof s[0]&&null==t)for(var l=0;l<s.length;l++)Ys(s[l])&&(r+=Us(i)+":"+Js(i,s[l])+";");else{var u=$s(e,t,s);switch(i){case"animation":case"animationName":r+=Us(i)+":"+u+";";break;default:r+=i+"{"+u+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var a=Ks,l=n(e);return Ks=a,$s(e,t,l)}}return n}var Ks,Qs=/label:\s*([^\s;{]+)\s*(;|$)/g;function qs(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ks=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=$s(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++){if(o+=$s(n,t,e[s]),r)o+=i[s]}Qs.lastIndex=0;for(var a,l="";null!==(a=Qs.exec(o));)l+="-"+a[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:Ks}}var ea="undefined"!=typeof document,ta=function(e){return e()},na=!!s.useInsertionEffect&&s.useInsertionEffect,ra=ea&&na||ta,oa="undefined"!=typeof document,ia=s.createContext("undefined"!=typeof HTMLElement?Ps({key:"css"}):null);ia.Provider;var sa=function(e){return t.forwardRef(function(n,r){var o=t.useContext(ia);return e(n,o,r)})};oa||(sa=function(e){return function(n){var r=t.useContext(ia);return null===r?(r=Ps({key:"css"}),s.createElement(ia.Provider,{value:r},e(n,r))):e(n,r)}});var aa,la,ua=s.createContext({}),ca={}.hasOwnProperty,da="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pa=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;_s(t,n,r);var o=ra(function(){return function(e,t,n){_s(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var s=e.insert(t===i?"."+r:"",i,e.sheet,!0);Fs||void 0===s||(o+=s),i=i.next}while(void 0!==i);if(!Fs&&0!==o.length)return o}}(t,n,r)});if(!oa&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return s.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},fa=sa(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[da],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=qs(i,void 0,s.useContext(ua));a+=t.key+"-"+l.name;var u={};for(var c in e)ca.call(e,c)&&"css"!==c&&c!==da&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),s.createElement(s.Fragment,null,s.createElement(pa,{cache:t,serialized:l,isStringTag:"string"==typeof o}),s.createElement(o,u))}),ha=fa,ma=function(e,t){var n=arguments;if(null==t||!ca.call(t,"css"))return s.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=ha,o[1]=function(e,t){var n={};for(var r in t)ca.call(t,r)&&(n[r]=t[r]);return n[da]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return s.createElement.apply(null,o)};function ga(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return qs(t)}aa=ma||(ma={}),la||(la=aa.JSX||(aa.JSX={}));const ba=Math.min,va=Math.max,ya=Math.round,xa=Math.floor,Ia=e=>({x:e,y:e});function Ca(){return"undefined"!=typeof window}function wa(e){return Sa(e)?(e.nodeName||"").toLowerCase():"#document"}function Ea(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Aa(e){var t;return null==(t=(Sa(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Sa(e){return!!Ca()&&(e instanceof Node||e instanceof Ea(e).Node)}function Ta(e){return!!Ca()&&(e instanceof HTMLElement||e instanceof Ea(e).HTMLElement)}function Oa(e){return!(!Ca()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ea(e).ShadowRoot)}const Na=new Set(["inline","contents"]);function ja(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ka(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Na.has(o)}const Pa=new Set(["html","body","#document"]);function ka(e){return Ea(e).getComputedStyle(e)}function Ra(e){const t=function(e){if("html"===wa(e))return e;const t=e.assignedSlot||e.parentNode||Oa(e)&&e.host||Aa(e);return Oa(t)?t.host:t}(e);return function(e){return Pa.has(wa(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ta(t)&&ja(t)?t:Ra(t)}function La(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ra(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Ea(o);if(i){const e=Ba(s);return t.concat(s,s.visualViewport||[],ja(o)?o:[],e&&n?La(e):[])}return t.concat(o,La(o,[],n))}function Ba(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ma(e){return t=e,Ca()&&(t instanceof Element||t instanceof Ea(t).Element)?e:e.contextElement;var t}function Da(e){const t=Ma(e);if(!Ta(t))return Ia(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=ka(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ta(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ya(n)!==i||ya(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}(t);let s=(i?ya(n.width):n.width)/r,a=(i?ya(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}function Ga(e,t,n,r){void 0===t&&(t=!1);const o=e.getBoundingClientRect(),i=Ma(e);let s=Ia(1);t&&(s=Da(e));const a=Ia(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){const e=r;let t=Ea(i),n=Ba(t);for(;n&&r&&e!==t;){const e=Da(n),r=n.getBoundingClientRect(),o=ka(n),i=r.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,s=r.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=s,t=Ea(n),n=Ba(t)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:c,height:d,x:l,y:u})}function Va(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fa(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Ma(e),c=o||i?[...u?La(u):[],...La(t)]:[];c.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=u&&a?function(e,t){let n,r=null;const o=Aa(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:f}=u;if(a||t(),!p||!f)return;const h={rootMargin:-xa(d)+"px "+-xa(o.clientWidth-(c+p))+"px "+-xa(o.clientHeight-(d+f))+"px "+-xa(c)+"px",threshold:va(0,ba(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||Va(u,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(u,n):null;let p,f=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m=l?Ga(e):null;return l&&function t(){const r=Ga(e);m&&!Va(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var _a="undefined"!=typeof document?t.useLayoutEffect:function(){},Ha=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Wa=function(){};function Xa(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function za(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(Xa(e,s)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var Za=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===ui(e)&&null!==e?[e]:[];var t},Ya=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,fi({},bi(e,Ha))},Ua=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,s=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),s)}};function Ja(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function $a(e){return Ja(e)?window.pageYOffset:e.scrollTop}function Ka(e,t){Ja(e)?window.scrollTo(0,t):e.scrollTop=t}function Qa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Wa,o=$a(e),i=t-o,s=0;!function t(){var a,l=i*((a=(a=s+=10)/n-1)*a*a+1)+o;Ka(e,l),s<n?window.requestAnimationFrame(t):r(e)}()}function qa(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Ka(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Ka(e,Math.max(t.offsetTop-o,0))}function el(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var tl=!1,nl={get passive(){return tl=!0}},rl="undefined"!=typeof window?window:{};rl.addEventListener&&rl.removeEventListener&&(rl.addEventListener("p",Wa,nl),rl.removeEventListener("p",Wa,!1));var ol=tl;function il(e){return null!=e}function sl(e,t,n){return e?t:n}var al=["children","innerProps"],ll=["children","innerProps"];function ul(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,g=n.offsetParent.getBoundingClientRect().top,b=s?window.innerHeight:Ja(c=l)?window.innerHeight:c.clientHeight,v=$a(l),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),I=g-x,C=b-m,w=I+v,E=d-v-m,A=f-b+v+y,S=v+m-x,T=160;switch(o){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!s)return i&&Qa(l,A,T),{placement:"bottom",maxHeight:t};if(!s&&E>=r||s&&C>=r)return i&&Qa(l,A,T),{placement:"bottom",maxHeight:s?C-y:E-y};if("auto"===o||s){var O=t,N=s?I:w;return N>=r&&(O=Math.min(N-y-a,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return i&&Ka(l,A),{placement:"bottom",maxHeight:t};break;case"top":if(I>=h)return{placement:"top",maxHeight:t};if(w>=h&&!s)return i&&Qa(l,S,T),{placement:"top",maxHeight:t};if(!s&&w>=r||s&&I>=r){var j=t;return(!s&&w>=r||s&&I>=r)&&(j=s?I-x:w-x),i&&Qa(l,S,T),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var cl,dl=function(e){return"auto"===e?"bottom":e},pl=t.createContext(null),fl=function(e){var n=e.children,r=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,a=e.menuShouldScrollIntoView,l=e.theme,u=(t.useContext(pl)||{}).setPortalPlacement,c=t.useRef(null),d=gi(t.useState(o),2),p=d[0],f=d[1],h=gi(t.useState(null),2),m=h[0],g=h[1],b=l.spacing.controlHeight;return _a(function(){var e=c.current;if(e){var t="fixed"===s,n=ul({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:b});f(n.maxHeight),g(n.placement),null==u||u(n.placement)}},[o,i,s,a,r,u,b]),n({ref:c,placerProps:fi(fi({},e),{},{placement:m||dl(i),maxHeight:p})})},hl=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ma("div",zo({},Ua(e,"menu",{menu:!0}),{ref:n},r),t)},ml=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return fi({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},gl=ml,bl=ml,vl=["size"],yl=["innerProps","isRtl","size"];var xl,Il,Cl="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},wl=function(e){var t=e.size,n=bi(e,vl);return ma("svg",zo({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Cl},n))},El=function(e){return ma(wl,zo({size:20},e),ma("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Al=function(e){return ma(wl,zo({size:20},e),ma("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Sl=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return fi({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Tl=Sl,Ol=Sl,Nl=function(){var e=ga.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(cl||(xl=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Il||(Il=xl.slice(0)),cl=Object.freeze(Object.defineProperties(xl,{raw:{value:Object.freeze(Il)}})))),jl=function(e){var t=e.delay,n=e.offset;return ma("span",{css:ga({animation:"".concat(Nl," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Pl=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,s=e.menuIsOpen;return ma("div",zo({ref:o},Ua(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),i,{"aria-disabled":n||void 0}),t)},kl=["data"],Rl=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return ma("div",zo({},Ua(e,"group",{group:!0}),a),ma(i,zo({},s,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),l),ma("div",null,t))},Ll=["innerRef","isDisabled","isHidden","inputClassName"],Bl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ml={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":fi({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Bl)},Dl=function(e){return fi({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Bl)},Gl=function(e){var t=e.cx,n=e.value,r=Ya(e),o=r.innerRef,i=r.isDisabled,s=r.isHidden,a=r.inputClassName,l=bi(r,Ll);return ma("div",zo({},Ua(e,"input",{"input-container":!0}),{"data-value":n||""}),ma("input",zo({className:t({input:!0},a),ref:o,style:Dl(s),disabled:i},l)))},Vl=function(e){var t=e.children,n=e.innerProps;return ma("div",n,t)};var Fl=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,s=e.removeProps,a=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return ma(l,{data:r,innerProps:fi(fi({},Ua(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:a},ma(u,{data:r,innerProps:fi({},Ua(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),ma(c,{data:r,innerProps:fi(fi({},Ua(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},_l={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ma("div",zo({},Ua(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ma(El,null))},Control:Pl,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ma("div",zo({},Ua(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ma(Al,null))},DownChevron:Al,CrossIcon:El,Group:Rl,GroupHeading:function(e){var t=Ya(e);t.data;var n=bi(t,kl);return ma("div",zo({},Ua(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ma("div",zo({},Ua(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ma("span",zo({},t,Ua(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Gl,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=bi(e,yl);return ma("div",zo({},Ua(fi(fi({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ma(jl,{delay:0,offset:n}),ma(jl,{delay:160,offset:!0}),ma(jl,{delay:320,offset:!n}))},Menu:hl,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ma("div",zo({},Ua(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var n=e.appendTo,r=e.children,i=e.controlElement,s=e.innerProps,a=e.menuPlacement,l=e.menuPosition,u=t.useRef(null),c=t.useRef(null),d=gi(t.useState(dl(a)),2),p=d[0],f=d[1],h=t.useMemo(function(){return{setPortalPlacement:f}},[]),m=gi(t.useState(null),2),g=m[0],b=m[1],v=t.useCallback(function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===l?0:window.pageYOffset,n=e[p]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||b({offset:n,rect:e})}},[i,l,p,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);_a(function(){v()},[v]);var y=t.useCallback(function(){"function"==typeof c.current&&(c.current(),c.current=null),i&&u.current&&(c.current=Fa(i,u.current,v,{elementResize:"ResizeObserver"in window}))},[i,v]);_a(function(){y()},[y]);var x=t.useCallback(function(e){u.current=e,y()},[y]);if(!n&&"fixed"!==l||!g)return null;var I=ma("div",zo({ref:x},Ua(fi(fi({},e),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),s),r);return ma(pl.Provider,{value:h},n?o.createPortal(I,n):I)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=bi(e,ll);return ma("div",zo({},Ua(fi(fi({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=bi(e,al);return ma("div",zo({},Ua(fi(fi({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Fl,MultiValueContainer:Vl,MultiValueLabel:Vl,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ma("div",zo({role:"button"},n),t||ma(El,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,s=e.innerProps;return ma("div",zo({},Ua(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return ma("div",zo({},Ua(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ma("div",zo({},Ua(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ma("div",zo({},Ua(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ma("div",zo({},Ua(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Hl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Wl(e,t){return e===t||!(!Hl(e)||!Hl(t))}function Xl(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Wl(e[n],t[n]))return!1;return!0}for(var zl="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Zl=function(e){return ma("span",zo({css:zl},e))},Yl={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,s=e.selectValue,a=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(i," focused, ").concat(c(s,n),".");if("menu"===t&&u){var d=a?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Ul=function(e){var n=e.ariaSelection,r=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,s=e.isFocused,a=e.selectValue,l=e.selectProps,u=e.id,c=e.isAppleDevice,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,b=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,x=l.tabSelectsValue,I=l.isLoading,C=l["aria-label"],w=l["aria-live"],E=t.useMemo(function(){return fi(fi({},Yl),d||{})},[d]),A=t.useMemo(function(){var e,t="";if(n&&E.onChange){var r=n.option,o=n.options,i=n.removedValue,s=n.removedValues,l=n.value,u=i||r||(e=l,Array.isArray(e)?null:e),c=u?p(u):"",d=o||s||void 0,f=d?d.map(p):[],h=fi({isDisabled:u&&m(u,a),label:c,labels:f},n);t=E.onChange(h)}return t},[n,E,m,a,p]),S=t.useMemo(function(){var e="",t=r||o,n=!!(r&&a&&a.includes(r));if(t&&E.onFocus){var s={focused:t,label:p(t),isDisabled:m(t,a),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:a,isAppleDevice:c};e=E.onFocus(s)}return e},[r,o,p,m,E,i,a,c]),T=t.useMemo(function(){var e="";if(b&&v.length&&!I&&E.onFilter){var t=y({count:i.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e},[i,f,b,E,v,y,I]),O="initial-input-focus"===(null==n?void 0:n.action),N=t.useMemo(function(){var e="";if(E.guidance){var t=o?"value":b?"menu":"input";e=E.guidance({"aria-label":C,context:t,isDisabled:r&&m(r,a),isMulti:h,isSearchable:g,tabSelectsValue:x,isInitialFocus:O})}return e},[C,r,o,h,m,g,b,E,a,x,O]),j=ma(t.Fragment,null,ma("span",{id:"aria-selection"},A),ma("span",{id:"aria-focused"},S),ma("span",{id:"aria-results"},T),ma("span",{id:"aria-guidance"},N));return ma(t.Fragment,null,ma(Zl,{id:u},O&&j),ma(Zl,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!O&&j))},Jl=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],$l=new RegExp("["+Jl.map(function(e){return e.letters}).join("")+"]","g"),Kl={},Ql=0;Ql<Jl.length;Ql++)for(var ql=Jl[Ql],eu=0;eu<ql.letters.length;eu++)Kl[ql.letters[eu]]=ql.base;var tu=function(e){return e.replace($l,function(e){return Kl[e]})},nu=function(e,t){void 0===t&&(t=Xl);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(tu),ru=function(e){return e.replace(/^\s+|\s+$/g,"")},ou=function(e){return"".concat(e.label," ").concat(e.value)},iu=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=fi({ignoreCase:!0,ignoreAccents:!0,stringify:ou,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,s=r.stringify,a=r.trim,l=r.matchFrom,u=a?ru(n):n,c=a?ru(s(t)):s(t);return o&&(u=u.toLowerCase(),c=c.toLowerCase()),i&&(u=nu(u),c=tu(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-1}},su=["innerRef"];function au(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter(function(e){var t=gi(e,1)[0];return!n.includes(t)});return o.reduce(function(e,t){var n=gi(t,2),r=n[0],o=n[1];return e[r]=o,e},{})}(bi(e,su),"onExited","in","enter","exit","appear");return ma("input",zo({ref:t},n,{css:ga({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var lu=["boxSizing","height","overflow","paddingRight","position"],uu={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function cu(e){e.cancelable&&e.preventDefault()}function du(e){e.stopPropagation()}function pu(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function fu(){return"ontouchstart"in window||navigator.maxTouchPoints}var hu=!("undefined"==typeof window||!window.document||!window.document.createElement),mu=0,gu={capture:!1,passive:!1};var bu=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},vu="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function yu(e){var n=e.children,r=e.lockEnabled,o=e.captureEnabled,i=function(e){var n=e.isEnabled,r=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,s=e.onTopLeave,a=t.useRef(!1),l=t.useRef(!1),u=t.useRef(0),c=t.useRef(null),d=t.useCallback(function(e,t){if(null!==c.current){var n=c.current,u=n.scrollTop,d=n.scrollHeight,p=n.clientHeight,f=c.current,h=t>0,m=d-p-u,g=!1;m>t&&a.current&&(o&&o(e),a.current=!1),h&&l.current&&(s&&s(e),l.current=!1),h&&t>m?(r&&!a.current&&r(e),f.scrollTop=d,g=!0,a.current=!0):!h&&-t>u&&(i&&!l.current&&i(e),f.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[r,o,i,s]),p=t.useCallback(function(e){d(e,e.deltaY)},[d]),f=t.useCallback(function(e){u.current=e.changedTouches[0].clientY},[]),h=t.useCallback(function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)},[d]),m=t.useCallback(function(e){if(e){var t=!!ol&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}},[h,f,p]),g=t.useCallback(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))},[h,f,p]);return t.useEffect(function(){if(n){var e=c.current;return m(e),function(){g(e)}}},[n,m,g]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var n=e.isEnabled,r=e.accountForScrollbars,o=void 0===r||r,i=t.useRef({}),s=t.useRef(null),a=t.useCallback(function(e){if(hu){var t=document.body,n=t&&t.style;if(o&&lu.forEach(function(e){var t=n&&n[e];i.current[e]=t}),o&&mu<1){var r=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+r||0;Object.keys(uu).forEach(function(e){var t=uu[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(a,"px"))}t&&fu()&&(t.addEventListener("touchmove",cu,gu),e&&(e.addEventListener("touchstart",pu,gu),e.addEventListener("touchmove",du,gu))),mu+=1}},[o]),l=t.useCallback(function(e){if(hu){var t=document.body,n=t&&t.style;mu=Math.max(mu-1,0),o&&mu<1&&lu.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&fu()&&(t.removeEventListener("touchmove",cu,gu),e&&(e.removeEventListener("touchstart",pu,gu),e.removeEventListener("touchmove",du,gu)))}},[o]);return t.useEffect(function(){if(n){var e=s.current;return a(e),function(){l(e)}}},[n,a,l]),function(e){s.current=e}}({isEnabled:r});return ma(t.Fragment,null,r&&ma("div",{onClick:bu,css:vu}),n(function(e){i(e),s(e)}))}var xu="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Iu=function(e){var t=e.name,n=e.onFocus;return ma("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:xu,value:"",onChange:function(){}})};function Cu(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function wu(){return Cu(/^Mac/i)}function Eu(){return Cu(/^iPhone/i)||Cu(/^iPad/i)||wu()&&navigator.maxTouchPoints>1}var Au={clearIndicator:Ol,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,s=o.borderRadius;return fi({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Tl,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return fi({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return fi({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,s=o.colors;return fi(fi({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Ml),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,s=o.spacing.baseUnit;return fi({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*s})},loadingMessage:bl,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,s=o.spacing,a=o.colors;return fi((di(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),di(n,"position","absolute"),di(n,"width","100%"),di(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return fi({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return fi({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return fi({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,s=e.isFocused;return fi({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:gl,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,s=i.spacing,a=i.colors;return fi({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?a.primary:r?a.primary25:"transparent",color:n?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return fi({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return fi({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return fi({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Su={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Tu={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:el(),captureMenuScroll:!el(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:iu(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ou(e,t,n,r){return{type:"option",data:t,isDisabled:Mu(e,t,n),isSelected:Du(e,t,n),label:Lu(e,t),value:Bu(e,t),index:r}}function Nu(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return Ou(e,n,t,r)}).filter(function(t){return ku(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Ou(e,n,t,r);return ku(e,i)?i:void 0}).filter(il)}function ju(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,wi(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Pu(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,wi(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function ku(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!Vu(e)||!i)&&Gu(e,{label:s,value:a,data:o},r)}var Ru=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Lu=function(e,t){return e.getOptionLabel(t)},Bu=function(e,t){return e.getOptionValue(t)};function Mu(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Du(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Bu(e,t);return n.some(function(t){return Bu(e,t)===r})}function Gu(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Vu=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Fu=1,_u=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yo(e,t)}(n,t.Component);var e=function(e){var t=Ii();return function(){var n,r=xi(e);if(t){var o=xi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ci(this,n)}}(n);function n(t){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=e.call(this,t)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,s=o.isMulti,a=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:a}),i&&(r.setState({inputIsHiddenAfterUpdate:!s}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,s=r.state.selectValue,a=o&&r.isOptionSelected(e,s),l=r.isOptionDisabled(e,s);if(a){var u=r.getOptionValue(e);r.setValue(s.filter(function(e){return r.getOptionValue(e)!==u}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(wi(s),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),s=sl(t,i,i[0]||null);r.onChange(s,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(sl(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=sl(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Ru(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Pu(Nu(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return za.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Lu(r.props,e)},r.getOptionValue=function(e){return Bu(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Au[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,fi(fi({},_l),e.components);var e},r.buildCategorizedOptions=function(){return Nu(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return ju(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:fi({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ja(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Vu(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;r.focusValue("previous");break;case"ArrowRight":if(!n||s)return;r.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():a&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!h||p&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:s}),r.onMenuClose()):a&&i&&r.clearValue();break;case" ":if(s)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Fu),r.state.selectValue=Za(t.value),t.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),s=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[s],r.state.focusedOptionId=Ru(o,i[s])}return r}return function(e,t,n){t&&yi(e.prototype,t),n&&yi(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&qa(this.menuListRef,this.focusedOptionRef),(wu()||Eu())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(qa(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),s="first"===e?0:i.length-1;if(!this.props.isMulti){var a=i.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[s],focusedOptionId:this.getFocusedOptionId(i[s])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(s=o+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Su):fi(fi({},Su),this.props.theme):Su}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,s=this.setValue,a=this.props,l=a.isMulti,u=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:i,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Mu(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Du(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Gu(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,l=e.menuIsOpen,u=e.required,c=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=fi(fi(fi({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?s.createElement(c,zo({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},g)):s.createElement(au,zo({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Wa,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return h?null:s.createElement(l,zo({},u,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return b.map(function(t,a){var l=t===v,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return s.createElement(n,zo({},u,{components:{Container:r,Label:o,Remove:i},isFocused:l,isDisabled:p,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var x=b[0];return s.createElement(a,zo({},u,{data:x,isDisabled:p}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,zo({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return s.createElement(e,zo({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return s.createElement(n,zo({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,zo({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,b=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,x=f.menuIsOpen,I=f.menuPlacement,C=f.menuPosition,w=f.menuPortalTarget,E=f.menuShouldBlockScroll,A=f.menuShouldScrollIntoView,S=f.noOptionsMessage,T=f.onMenuScrollToTop,O=f.onMenuScrollToBottom;if(!x)return null;var N,j=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,l=t.label,u=t.value,f=p===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:a};return s.createElement(c,zo({},d,{innerProps:b,data:o,isDisabled:i,isSelected:a,key:g,label:l,type:r,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map(function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,l="".concat(e.getElementId("group"),"-").concat(a),u="".concat(l,"-heading");return s.createElement(n,zo({},d,{key:l,data:o,options:i,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return j(e,"".concat(a,"-").concat(e.index))}))}if("option"===t.type)return j(t,"".concat(t.index))});else if(g){var P=b({inputValue:m});if(null===P)return null;N=s.createElement(l,d,P)}else{var k=S({inputValue:m});if(null===k)return null;N=s.createElement(u,d,k)}var R={minMenuHeight:v,maxMenuHeight:y,menuPlacement:I,menuPosition:C,menuShouldScrollIntoView:A},L=s.createElement(fl,zo({},d,R),function(t){var n=t.ref,r=t.placerProps,a=r.placement,l=r.maxHeight;return s.createElement(o,zo({},d,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),s.createElement(yu,{captureEnabled:h,onTopArrive:T,onBottomArrive:O,lockEnabled:E},function(t){return s.createElement(i,zo({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:p}),N)}))});return w||"fixed"===C?s.createElement(a,zo({},d,{appendTo:w,controlElement:this.controlRef,menuPlacement:I,menuPosition:C}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,l=this.state.selectValue;if(a&&!this.hasValue()&&!r)return s.createElement(Iu,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var u=l.map(function(t){return e.getOptionValue(t)}).join(n);return s.createElement("input",{name:i,type:"hidden",value:u})}var c=l.length>0?l.map(function(t,n){return s.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):s.createElement("input",{name:i,type:"hidden",value:""});return s.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return s.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,l=this.getFocusableOptions();return s.createElement(Ul,zo({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,l=i.id,u=i.isDisabled,c=i.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return s.createElement(r,zo({},p,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),s.createElement(t,zo({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),s.createElement(o,zo({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),s.createElement(n,zo({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=Za(c),m={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return ju(Nu(e,t))}(e,h):[],b=d?Pu(Nu(e,h),"".concat(l,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:y,focusedOptionId:Ru(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},I=i,C=s&&a;return s&&!C&&(I={value:sl(f,h,h[0]||null),options:h,action:"initial-input-focus"},C=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(I=null),fi(fi(fi({},m),x),{},{prevProps:e,ariaSelection:I,prevWasFocused:C})}}]),n}();_u.defaultProps=Tu;var Hu=t.forwardRef(function(e,n){var r=function(e){var n=e.defaultInputValue,r=void 0===n?"":n,o=e.defaultMenuIsOpen,i=void 0!==o&&o,s=e.defaultValue,a=void 0===s?null:s,l=e.inputValue,u=e.menuIsOpen,c=e.onChange,d=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=bi(e,vi),g=gi(t.useState(void 0!==l?l:r),2),b=g[0],v=g[1],y=gi(t.useState(void 0!==u?u:i),2),x=y[0],I=y[1],C=gi(t.useState(void 0!==h?h:a),2),w=C[0],E=C[1],A=t.useCallback(function(e,t){"function"==typeof c&&c(e,t),E(e)},[c]),S=t.useCallback(function(e,t){var n;"function"==typeof d&&(n=d(e,t)),v(void 0!==n?n:e)},[d]),T=t.useCallback(function(){"function"==typeof f&&f(),I(!0)},[f]),O=t.useCallback(function(){"function"==typeof p&&p(),I(!1)},[p]),N=void 0!==l?l:b,j=void 0!==u?u:x,P=void 0!==h?h:w;return fi(fi({},m),{},{inputValue:N,menuIsOpen:j,onChange:A,onInputChange:S,onMenuClose:O,onMenuOpen:T,value:P})}(e);return s.createElement(_u,zo({ref:n},r))}),Wu=Hu;const Xu={sm:"h-12 px-3 rounded-lg",md:"h-14 px-3 rounded-xl",lg:"h-16 px-3 rounded-2xl"},zu=t.memo(({options:n,className:r,controlClassName:o,value:i,isCustomStyle:s=!1,placeholder:a,required:l,onChange:u,filterOptions:c,hasError:d,error:p,menuClassName:f,helperText:h,label:m,labelClassName:g,singleValueClassName:b,size:v="md",variant:y="default","data-cy":x,"data-testid":I,...C})=>{const w=t.useMemo(()=>iu(c),[c]),E=t.useMemo(()=>({control:({isFocused:e})=>{var t;return xe(null!==(t=Xu[v])&&void 0!==t?t:Xu.md,"border border-input-border bg-white hover:not-focus:border-input-border-hover",{"border-input-border-selected outline outline-2 outline-input-border-selected":e&&!d,"border-input-border-critical shadow-none":d},o)},indicatorSeparator:()=>"hidden",dropdownIndicator:({selectProps:e})=>s?e.value?"hidden":"block":"block text-icon-default "+(d?"text-icon-critical":""),singleValue:()=>xe(s?"text-text text-body1 whitespace-normal":"text-text-secondary",b),menu:()=>xe("z-20 mt-2 rounded-input-poppers bg-surface shadow-dark-drop",f),option:({isFocused:e,isSelected:t,label:r})=>{var o;return xe("min-h-[40px] px-4 py-2 cursor-pointer",t?"bg-gray-200 text-text font-semibold":"bg-white text-text-secondary",!t&&"hover:bg-bg-surface-hover",!t&&e&&"bg-bg-surface-hover",s?"text-body1 text-text":"",s&&(null===(o=n[n.length-1])||void 0===o?void 0:o.label)!==r?"border-b border-border-brand":"")},placeholder:()=>"text-input-text-placeholder",input:()=>"text-text",valueContainer:()=>"px-0"}),[s,o,f,n,d,v,b]);return"unstyled"===y?e.jsx(Wu,{options:n,value:i,placeholder:l?`${a}*`:a,onChange:u,filterOption:w,className:xe("rounded-xl",r),classNames:E,"data-cy":x,"data-testid":I,...C}):e.jsxs("div",{className:"w-full",children:[m&&e.jsx("label",{className:xe("mb-1 block text-sm font-medium text-text-secondary",g),children:m}),e.jsx(Wu,{options:n,value:i,placeholder:l?`${a}*`:a,onChange:u,filterOption:w,className:xe("rounded-xl",r),classNames:E,"data-cy":x,"data-testid":I,...C}),p&&e.jsx(mn,{className:"footnote mt-1 text-text-critical",children:p}),!p&&h&&e.jsx(mn,{className:"footnote mt-1 text-text-info",children:h})]})});zu.displayName="Select";const Zu=({errorMessage:t,className:n,iconClassName:r,iconSize:o=52,iconName:i="dangerous",textVariant:s})=>t?e.jsxs("div",{className:xe("flex flex-col items-center justify-center gap-5 rounded-surface-sm border-2 border-border-critical bg-bg-fill-critical-secondary px-4 py-6 md:flex-row md:py-4",n),"data-testid":"alert-card",children:[e.jsx("div",{children:e.jsx(hn,{name:i,size:o,className:xe("text-icon-critical",r)})}),e.jsx(mn,{className:xe("body2 text-text",s),children:t})]}):null;Zu.displayName="AlertCard";const Yu=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()},Uu="pop",Ju=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$u=t.createContext({}),Ku=t.createContext(null),Qu="undefined"!=typeof document,qu=Qu?t.useLayoutEffect:t.useEffect,ec=t.createContext({strict:!1});function tc(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nc(e){return"string"==typeof e||Array.isArray(e)}function rc(e){return"object"==typeof e&&"function"==typeof e.start}const oc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ic=["initial",...oc];function sc(e){return rc(e.animate)||ic.some(t=>nc(e[t]))}function ac(e){return Boolean(sc(e)||e.variants)}function lc(e){const{initial:n,animate:r}=function(e,t){if(sc(e)){const{initial:t,animate:n}=e;return{initial:!1===t||nc(t)?t:void 0,animate:nc(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext($u));return t.useMemo(()=>({initial:n,animate:r}),[uc(n),uc(r)])}function uc(e){return Array.isArray(e)?e.join(" "):e}const cc={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"]},dc={};for(const e in cc)dc[e]={isEnabled:t=>cc[e].some(e=>!!t[e])};const pc=t.createContext({}),fc=t.createContext({}),hc=Symbol.for("motionComponentSymbol");function mc({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:o,Component:i}){e&&function(e){for(const t in e)dc[t]={...dc[t],...e[t]}}(e);const a=t.forwardRef(function(a,l){let u;const c={...t.useContext(Ju),...a,layoutId:gc(a)},{isStatic:d}=c,p=lc(a),f=o(a,d);if(!d&&Qu){p.visualElement=function(e,n,r,o){const{visualElement:i}=t.useContext($u),s=t.useContext(ec),a=t.useContext(Ku),l=t.useContext(Ju).reducedMotion,u=t.useRef();o=o||s.renderer,!u.current&&o&&(u.current=o(e,{visualState:n,parent:i,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const c=u.current;return t.useInsertionEffect(()=>{c&&c.update(r,a)}),qu(()=>{c&&c.render()}),t.useEffect(()=>{c&&c.updateFeatures()}),(window.HandoffAppearAnimations?qu:t.useEffect)(()=>{c&&c.animationState&&c.animationState.animateChanges()}),c}(i,f,c,n);const r=t.useContext(fc),o=t.useContext(ec).strict;p.visualElement&&(u=p.visualElement.loadFeatures(c,o,e,r))}return s.createElement($u.Provider,{value:p},u&&p.visualElement?s.createElement(u,{visualElement:p.visualElement,...c}):null,r(i,a,function(e,n,r){return t.useCallback(t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):tc(r)&&(r.current=t))},[n])}(f,p.visualElement,l),f,d,p.visualElement))});return a[hc]=i,a}function gc({layoutId:e}){const n=t.useContext(pc).id;return n&&void 0!==e?n+"-"+e:e}function bc(e){function t(t,n={}){return mc(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 vc=["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 yc(e){return"string"==typeof e&&!e.includes("-")&&!!(vc.indexOf(e)>-1||/[A-Z]/.test(e))}const xc={};const Ic=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cc=new Set(Ic);function wc(e,{layout:t,layoutId:n}){return Cc.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!xc[e]||"opacity"===e)}const Ec=e=>Boolean(e&&e.getVelocity),Ac={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sc=Ic.length;const Tc=e=>t=>"string"==typeof t&&t.startsWith(e),Oc=Tc("--"),Nc=Tc("var(--"),jc=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Pc=(e,t,n)=>Math.min(Math.max(n,e),t),kc={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Rc={...kc,transform:e=>Pc(0,1,e)},Lc={...kc,default:1},Bc=e=>Math.round(1e5*e)/1e5,Mc=/(-)?([\d]*\.?[\d])+/g,Dc=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Gc=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Vc(e){return"string"==typeof e}const Fc=e=>({test:t=>Vc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),_c=Fc("deg"),Hc=Fc("%"),Wc=Fc("px"),Xc=Fc("vh"),zc=Fc("vw"),Zc={...Hc,parse:e=>Hc.parse(e)/100,transform:e=>Hc.transform(100*e)},Yc={...kc,transform:Math.round},Uc={borderWidth:Wc,borderTopWidth:Wc,borderRightWidth:Wc,borderBottomWidth:Wc,borderLeftWidth:Wc,borderRadius:Wc,radius:Wc,borderTopLeftRadius:Wc,borderTopRightRadius:Wc,borderBottomRightRadius:Wc,borderBottomLeftRadius:Wc,width:Wc,maxWidth:Wc,height:Wc,maxHeight:Wc,size:Wc,top:Wc,right:Wc,bottom:Wc,left:Wc,padding:Wc,paddingTop:Wc,paddingRight:Wc,paddingBottom:Wc,paddingLeft:Wc,margin:Wc,marginTop:Wc,marginRight:Wc,marginBottom:Wc,marginLeft:Wc,rotate:_c,rotateX:_c,rotateY:_c,rotateZ:_c,scale:Lc,scaleX:Lc,scaleY:Lc,scaleZ:Lc,skew:_c,skewX:_c,skewY:_c,distance:Wc,translateX:Wc,translateY:Wc,translateZ:Wc,x:Wc,y:Wc,z:Wc,perspective:Wc,transformPerspective:Wc,opacity:Rc,originX:Zc,originY:Zc,originZ:Wc,zIndex:Yc,fillOpacity:Rc,strokeOpacity:Rc,numOctaves:Yc};function Jc(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const e in t){const n=t[e];if(Oc(e)){i[e]=n;continue}const r=Uc[e],d=jc(n,r);if(Cc.has(e)){if(l=!0,s[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,a[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Sc;t++){const n=Ic[t];void 0!==e[n]&&(i+=`${Ac[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,c,r):o.transform&&(o.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;o.transformOrigin=`${e} ${t} ${n}`}}const $c=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Kc(e,t,n){for(const r in t)Ec(t[r])||wc(r,n)||(e[r]=t[r])}function Qc(e,n,r){const o={};return Kc(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return Jc(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)},[n])}(e,n,r)),e.transformValues?e.transformValues(o):o}function qc(e,t,n){const r={},o=Qc(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 ed=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 td(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||ed.has(e)}let nd=e=>!td(e);try{(rd=require("@emotion/is-prop-valid").default)&&(nd=e=>e.startsWith("on")?!td(e):rd(e))}catch(bn){}var rd;function od(e,t,n){return"string"==typeof e?e:Wc.transform(t+n*e)}const id={offset:"stroke-dashoffset",array:"stroke-dasharray"},sd={offset:"strokeDashoffset",array:"strokeDasharray"};function ad(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,p){if(Jc(e,u,c,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${od(t,e.x,e.width)} ${od(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?id:sd;e[i.offset]=Wc.transform(-r);const s=Wc.transform(t),a=Wc.transform(n);e[i.array]=`${s} ${a}`}(f,s,a,l,!1)}const ld=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),ud=e=>"string"==typeof e&&"svg"===e.toLowerCase();function cd(e,n,r,o){const i=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return ad(t,n,{enableHardwareAcceleration:!1},ud(o),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};Kc(t,e.style,e),i.style={...t,...i.style}}return i}function dd(e=!1){return(n,r,o,{latestValues:i},s)=>{const a=(yc(n)?cd:qc)(r,i,s,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(nd(o)||!0===n&&td(o)||!t&&!td(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,e),u={...l,...a,ref:o},{children:c}=r,d=t.useMemo(()=>Ec(c)?c.get():c,[c]);return t.createElement(n,{...u,children:d})}}const pd=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function fd(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 hd=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 md(e,t,n,r){fd(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(hd.has(n)?n:pd(n),t.attrs[n])}function gd(e,t){const{style:n}=e,r={};for(const o in n)(Ec(n[o])||t.style&&Ec(t.style[o])||wc(o,e))&&(r[o]=n[o]);return r}function bd(e,t){const n=gd(e,t);for(const r in e)if(Ec(e[r])||Ec(t[r])){n[-1!==Ic.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function vd(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 yd=e=>Array.isArray(e),xd=e=>yd(e)?e[e.length-1]||0:e;function Id(e){const t=Ec(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Cd=e=>(n,r)=>{const o=t.useContext($u),i=t.useContext(Ku),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:wd(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,n,o,i);return r?s():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(s)};function wd(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Id(i[e]);let{initial:s,animate:a}=e;const l=sc(e),u=ac(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const d=c?a:s;if(d&&"boolean"!=typeof d&&!rc(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=vd(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[c?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]})}return o}const Ed={useVisualState:Cd({scrapeMotionValuesFromProps:bd,createRenderState:ld,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}}ad(n,r,{enableHardwareAcceleration:!1},ud(t.tagName),e.transformTemplate),md(t,n)}})},Ad={useVisualState:Cd({scrapeMotionValuesFromProps:gd,createRenderState:$c})};function Sd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Td=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Od(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Nd(e,t,n,r){return Sd(e,t,(e=>t=>Td(t)&&e(t,Od(t)))(n),r)}const jd=(e,t)=>n=>t(e(n)),Pd=(...e)=>e.reduce(jd);function kd(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Rd=kd("dragHorizontal"),Ld=kd("dragVertical");function Bd(e){let t=!1;if("y"===e)t=Ld();else if("x"===e)t=Rd();else{const e=Rd(),n=Ld();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Md(){const e=Bd(!0);return!e||(e(),!1)}class Dd{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Gd={delta:0,timestamp:0,isProcessing:!1};let Vd=!0,Fd=!1;const _d=["read","update","preRender","render","postRender"],Hd=_d.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,u=l?t:n;return i&&s.add(e),-1===u.indexOf(e)&&(u.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}(()=>Fd=!0),e),{}),Wd=e=>Hd[e].process(Gd),Xd=e=>{Fd=!1,Gd.delta=Vd?1e3/60:Math.max(Math.min(e-Gd.timestamp,40),1),Gd.timestamp=e,Gd.isProcessing=!0,_d.forEach(Wd),Gd.isProcessing=!1,Fd&&(Vd=!1,requestAnimationFrame(Xd))},zd=_d.reduce((e,t)=>{const n=Hd[t];return e[t]=(e,t=!1,r=!1)=>(Fd||(Fd=!0,Vd=!0,Gd.isProcessing||requestAnimationFrame(Xd)),n.schedule(e,t,r)),e},{});function Zd(e){_d.forEach(t=>Hd[t].cancel(e))}function Yd(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Nd(e.current,n,(n,o)=>{if("touch"===n.type||Md())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&zd.update(()=>i[r](n,o))},{passive:!e.getProps()[r]})}const Ud=(e,t)=>!!t&&(e===t||Ud(e,t.parentElement)),Jd=e=>e;function $d(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Od(n))}const Kd=new WeakMap,Qd=new WeakMap,qd=e=>{const t=Kd.get(e.target);t&&t(e)},ep=e=>{e.forEach(qd)};function tp(e,t,n){const r=function({root:e,...t}){const n=e||document;Qd.has(n)||Qd.set(n,{});const r=Qd.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(ep,{root:e,...t})),r[o]}(t);return Kd.set(e,n),r.observe(e),()=>{Kd.delete(e),r.unobserve(e)}}const np={some:0,all:1};const rp={inView:{Feature:class extends Dd{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:np[r]};return tp(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 Dd{constructor(){super(...arguments),this.removeStartListeners=Jd,this.removeEndListeners=Jd,this.removeAccessibleListeners=Jd,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Nd(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();zd.update(()=>{Ud(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=Nd(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Pd(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Sd(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Sd(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&$d("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&zd.update(()=>n(e,t))})}),$d("down",(e,t)=>{this.startPress(e,t)})}),t=Sd(this.node.current,"blur",()=>{this.isPressing&&$d("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Pd(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&&zd.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Md()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&zd.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=Nd(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Sd(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Pd(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Dd{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=Pd(Sd(this.node.current,"focus",()=>this.onFocus()),Sd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Dd{mount(){this.unmount=Pd(Yd(this.node,!0),Yd(this.node,!1))}unmount(){}}}};function op(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 ip(e,t,n){const r=e.getProps();return vd(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 sp="data-"+pd("framerAppearId");let ap=Jd,lp=Jd;"production"!==process.env.NODE_ENV&&(ap=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},lp=(e,t)=>{if(!e)throw new Error(t)});const up=e=>1e3*e,cp=e=>e/1e3,dp=!1,pp=e=>Array.isArray(e)&&"number"==typeof e[0];function fp(e){return Boolean(!e||"string"==typeof e&&mp[e]||pp(e)||Array.isArray(e)&&e.every(fp))}const hp=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hp([0,.65,.55,1]),circOut:hp([.55,0,1,.45]),backIn:hp([.31,.01,.66,-.59]),backOut:hp([.33,1.53,.69,.99])};function gp(e){if(e)return pp(e)?hp(e):Array.isArray(e)?e.map(gp):mp[e]}const bp={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},vp={},yp={};for(const e in bp)yp[e]=()=>(void 0===vp[e]&&(vp[e]=bp[e]()),vp[e]);const xp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Ip(e,t,n,r){if(e===t&&n===r)return Jd;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=xp(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:xp(o(e),t,r)}const Cp=Ip(.42,0,1,1),wp=Ip(0,0,.58,1),Ep=Ip(.42,0,.58,1),Ap=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sp=e=>t=>1-e(1-t),Tp=e=>1-Math.sin(Math.acos(e)),Op=Sp(Tp),Np=Ap(Op),jp=Ip(.33,1.53,.69,.99),Pp=Sp(jp),kp=Ap(Pp),Rp={linear:Jd,easeIn:Cp,easeInOut:Ep,easeOut:wp,circIn:Tp,circInOut:Np,circOut:Op,backIn:Pp,backInOut:kp,backOut:jp,anticipate:e=>(e*=2)<1?.5*Pp(e):.5*(2-Math.pow(2,-10*(e-1)))},Lp=e=>{if(Array.isArray(e)){lp(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Ip(t,n,r,o)}return"string"==typeof e?(lp(void 0!==Rp[e],`Invalid easing type '${e}'`),Rp[e]):e},Bp=(e,t)=>n=>Boolean(Vc(n)&&Gc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Mp=(e,t,n)=>r=>{if(!Vc(r))return r;const[o,i,s,a]=r.match(Mc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Dp={...kc,transform:e=>Math.round((e=>Pc(0,255,e))(e))},Gp={test:Bp("rgb","red"),parse:Mp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Dp.transform(e)+", "+Dp.transform(t)+", "+Dp.transform(n)+", "+Bc(Rc.transform(r))+")"};const Vp={test:Bp("#"),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:Gp.transform},Fp={test:Bp("hsl","hue"),parse:Mp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Hc.transform(Bc(t))+", "+Hc.transform(Bc(n))+", "+Bc(Rc.transform(r))+")"},_p={test:e=>Gp.test(e)||Vp.test(e)||Fp.test(e),parse:e=>Gp.test(e)?Gp.parse(e):Fp.test(e)?Fp.parse(e):Vp.parse(e),transform:e=>Vc(e)?e:e.hasOwnProperty("red")?Gp.transform(e):Fp.transform(e)},Hp=(e,t,n)=>-n*e+n*t+e;function Wp(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 Xp=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},zp=[Vp,Gp,Fp];function Zp(e){const t=(n=e,zp.find(e=>e.test(n)));var n;lp(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Fp&&(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=Wp(a,r,e+1/3),i=Wp(a,r,e),s=Wp(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 Yp=(e,t)=>{const n=Zp(e),r=Zp(t),o={...n};return e=>(o.red=Xp(n.red,r.red,e),o.green=Xp(n.green,r.green,e),o.blue=Xp(n.blue,r.blue,e),o.alpha=Hp(n.alpha,r.alpha,e),Gp.transform(o))};const Up={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Jd},Jp={regex:Dc,countKey:"Colors",token:"${c}",parse:_p.parse},$p={regex:Mc,countKey:"Numbers",token:"${n}",parse:kc.parse};function Kp(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 Qp(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Kp(n,Up),Kp(n,Jp),Kp(n,$p),n}function qp(e){return Qp(e).values}function ef(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Qp(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(Up.token,e[o]):o<r+n?t.replace(Jp.token,_p.transform(e[o])):t.replace($p.token,Bc(e[o]));return t}}const tf=e=>"number"==typeof e?0:e;const nf={test:function(e){var t,n;return isNaN(e)&&Vc(e)&&((null===(t=e.match(Mc))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Dc))||void 0===n?void 0:n.length)||0)>0},parse:qp,createTransformer:ef,getAnimatableNone:function(e){const t=qp(e);return ef(e)(t.map(tf))}},rf=(e,t)=>n=>`${n>0?t:e}`;function of(e,t){return"number"==typeof e?n=>Hp(e,t,n):_p.test(e)?Yp(e,t):e.startsWith("var(")?rf(e,t):lf(e,t)}const sf=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>of(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},af=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=of(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},lf=(e,t)=>{const n=nf.createTransformer(t),r=Qp(e),o=Qp(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Pd(sf(r.values,o.values),n):(ap(!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.`),rf(e,t))},uf=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},cf=(e,t)=>n=>Hp(e,t,n);function df(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?cf:"string"==typeof i?_p.test(i)?Yp:lf:Array.isArray(i)?sf:"object"==typeof i?af:cf);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]||Jd:t;i=Pd(e,i)}r.push(i)}return r}function pf(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(lp(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=df(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=uf(e[n],e[n+1],t);return s[n](r)};return n?t=>l(Pc(e[0],e[i-1],t)):l}function ff(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=uf(0,t,r);e.push(Hp(n,1,o))}}(t,e.length-1),t}function hf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Lp):Lp(r),i={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:ff(t),e),a=pf(s,t,{ease:Array.isArray(o)?o:(l=t,u=o,l.map(()=>u||Ep).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}function mf(e,t){return t?e*(1e3/t):0}function gf(e,t,n){const r=Math.max(t-5,0);return mf(n-e(r),t-r)}const bf=.001;function vf({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;ap(e<=up(10),"Spring duration must be 10 seconds or less");let s=1-t;s=Pc(.05,1,s),e=Pc(.01,10,cp(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=xf(t,s),l=Math.exp(-o);return bf-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),u=xf(Math.pow(t,2),s);return(-o(t)+bf>0?-1:1)*((i-a)*l)/u}):(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<yf;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=up(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 yf=12;function xf(e,t){return e*Math.sqrt(1-t*t)}const If=["duration","bounce"],Cf=["stiffness","damping","mass"];function wf(e,t){return t.some(t=>void 0!==e[t])}function Ef({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:u,velocity:c,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!wf(e,Cf)&&wf(e,If)){const n=vf(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),f=c?-cp(c):0,h=l/(2*Math.sqrt(a*u)),m=i-o,g=cp(Math.sqrt(a/u)),b=Math.abs(m)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=xf(g,h);v=t=>{const n=Math.exp(-h*g*t);return i-n*((f+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)v=e=>i-Math.exp(-g*e)*(m+(f+g*m)*e);else{const e=g*Math.sqrt(h*h-1);v=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return i-n*((f+h*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{const r=v(e);if(p)s.done=e>=d;else{let o=f;0!==e&&(o=h<1?gf(v,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 Af({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const m=d+h,g=void 0===s?m:s(m);g!==m&&(h=g-d);const b=e=>-h*Math.exp(-e/r),v=e=>g+b(e),y=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n};let x,I;const C=e=>{var t;(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(x=e,I=Ef({keyframes:[p.value,f(p.value)],velocity:gf(v,e,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return I||void 0!==x||(t=!0,y(e),C(e)),void 0!==x&&e>x?I.next(e-x):(!t&&y(e),p)}}}const Sf=e=>{const t=({timestamp:t})=>e(t);return{start:()=>zd.update(t,!0),stop:()=>Zd(t),now:()=>Gd.isProcessing?Gd.timestamp:performance.now()}};function Tf(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 Of={decay:Af,inertia:Af,tween:hf,keyframes:hf,spring:Ef};function Nf({autoplay:e=!0,delay:t=0,driver:n=Sf,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...p}){let f,h,m=1,g=!1;const b=()=>{f&&f(),h=new Promise(e=>{f=e})};let v;b();const y=Of[o]||hf;let x;y!==hf&&"number"!=typeof r[0]&&(x=pf([0,100],r,{clamp:!1}),r=[0,100]);const I=y({...p,keyframes:r});let C;"mirror"===a&&(C=y({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let w="idle",E=null,A=null,S=null;null===I.calculatedDuration&&i&&(I.calculatedDuration=Tf(I));const{calculatedDuration:T}=I;let O=1/0,N=1/0;null!==T&&(O=T+s,N=O*(i+1)-s);let j=0;const P=e=>{if(null===A)return;m>0&&(A=Math.min(A,e)),j=null!==E?E:(e-A)*m;const n=j-t,o=n<0;j=Math.max(n,0),"finished"===w&&null===E&&(j=N);let l=j,u=I;if(i){const e=j/O;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/O)):"mirror"===a&&(u=C));let o=Pc(0,1,n);j>N&&(o="reverse"===a&&r?1:0),l=o*O}const c=o?{done:!1,value:r[0]}:u.next(l);x&&(c.value=x(c.value));let{done:p}=c;o||null===T||(p=j>=N);const f=null===E&&("finished"===w||"running"===w&&p||m<0&&j<=0);return d&&d(c.value),f&&L(),c},k=()=>{v&&v.stop(),v=void 0},R=()=>{w="idle",k(),b(),A=S=null},L=()=>{w="finished",c&&c(),k(),b()},B=()=>{if(g)return;v||(v=n(P));const e=v.now();l&&l(),null!==E?A=e-E:A&&"finished"!==w||(A=e),S=A,E=null,w="running",v.start()};e&&B();const M={then:(e,t)=>h.then(e,t),get time(){return cp(j)},set time(e){e=up(e),j=e,null===E&&v&&0!==m?A=v.now()-e/m:E=e},get duration(){const e=null===I.calculatedDuration?Tf(I):I.calculatedDuration;return cp(e)},get speed(){return m},set speed(e){e!==m&&v&&(m=e,M.time=cp(j))},get state(){return w},play:B,pause:()=>{w="paused",E=j},stop:()=>{g=!0,"idle"!==w&&(w="idle",u&&u(),R())},cancel:()=>{null!==S&&P(S),R()},complete:()=>{w="finished"},sample:e=>(A=0,P(e))};return M}const jf=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Pf(e,t,{onUpdate:n,onComplete:r,...o}){if(!(yp.waapi()&&jf.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:u,duration:c=300,ease:d,times:p}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!fp(t.ease))(t,o)){const e=Nf({...o,repeat:0,delay:0});let t={done:!1,value:u[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;p=void 0,u=n,c=r-10,d="linear"}const f=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=gp(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,u,{...o,duration:c,ease:d,times:p}),h=()=>f.cancel(),m=()=>{zd.update(h),i(),l()};return f.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(u,o)),r&&r(),m()},{then:(e,t)=>s.then(e,t),get time(){return cp(f.currentTime||0)},set time(e){f.currentTime=up(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return cp(c)},play:()=>{a||(f.play(),Zd(h))},pause:()=>f.pause(),stop:()=>{if(a=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const n=Nf({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}m()},complete:()=>f.finish(),cancel:m}}const kf={type:"spring",stiffness:500,damping:25,restSpeed:10},Rf={type:"keyframes",duration:.8},Lf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Bf=(e,{keyframes:t})=>t.length>2?Rf:Cc.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:kf:Lf,Mf=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!nf.test(t)&&"0"!==t||t.startsWith("url("))),Df=new Set(["brightness","contrast","saturate","opacity"]);function Gf(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Mc)||[];if(!r)return e;const o=n.replace(r,"");let i=Df.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Vf=/([a-z-]*)\(.*?\)/g,Ff={...nf,getAnimatableNone:e=>{const t=e.match(Vf);return t?t.map(Gf).join(" "):e}},_f={...Uc,color:_p,backgroundColor:_p,outlineColor:_p,fill:_p,stroke:_p,borderColor:_p,borderTopColor:_p,borderRightColor:_p,borderBottomColor:_p,borderLeftColor:_p,filter:Ff,WebkitFilter:Ff},Hf=e=>_f[e];function Wf(e,t){let n=Hf(e);return n!==Ff&&(n=nf),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xf=e=>/^0[^.\s]+$/.test(e);function zf(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||Xf(e):void 0}function Zf(e,t){return e[t]||e.default||e}const Yf=(e,t,n,r={})=>o=>{const i=Zf(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a-=up(s);const l=function(e,t,n,r){const o=Mf(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]),zf(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]]=Wf(t,a);return i}(t,e,n,i),u=l[0],c=l[l.length-1],d=Mf(e,u),p=Mf(e,c);ap(d===p,`You are trying to animate ${e} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let f={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:u,...c}){return!!Object.keys(c).length}(i)||(f={...f,...Bf(e,f)}),f.duration&&(f.duration=up(f.duration)),f.repeatDelay&&(f.repeatDelay=up(f.repeatDelay)),!d||!p||dp||!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:Jd,pause:Jd,stop:Jd,then:e=>(e(),Promise.resolve()),cancel:Jd,complete:Jd});return t?Nf({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(f);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Pf(t,e,f);if(n)return n}return Nf(f)};function Uf(e){return Boolean(Ec(e)&&e.add)}const Jf=e=>/^\-?\d*\.?\d+$/.test(e);function $f(e,t){-1===e.indexOf(t)&&e.push(t)}function Kf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Qf{constructor(){this.subscriptions=[]}add(e){return $f(this.subscriptions,e),()=>Kf(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 qf=new Set;function eh(e,t,n){e||qf.has(t)||(console.warn(t),qf.add(t))}class th{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}=Gd;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,zd.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=()=>zd.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&&eh(!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 Qf);const n=this.events[e].add(t);return"change"===e?()=>{n(),zd.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?mf(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 nh(e,t){return new th(e,t)}const rh=e=>t=>t.test(e),oh=[kc,Wc,Hc,_c,zc,Xc,{test:e=>"auto"===e,parse:e=>e}],ih=e=>oh.find(rh(e)),sh=[...oh,_p,nf],ah=e=>sh.find(rh(e));function lh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nh(n))}function uh(e,t){if(!t)return;return(t[e]||t.default||t).from}function ch({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function dh(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 u=[],c=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||c&&ch(c,t))continue;const s={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[sp];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,zd))}r.start(Yf(t,r,o,e.shouldReduceMotion&&Cc.has(t)?{type:!1}:s));const d=r.animation;Uf(l)&&(l.add(t),d.then(()=>l.remove(t))),u.push(d)}return s&&Promise.all(u).then(()=>{s&&function(e,t){const n=ip(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)lh(e,t,xd(i[t]))}(e,s)}),u}function ph(e,t,n={}){const r=ip(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(dh(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(fh).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(ph(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 fh(e,t){return e.sortNodePosition(t)}const hh=[...oc].reverse(),mh=oc.length;function gh(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=>ph(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=ph(e,t,n);else{const o="function"==typeof t?ip(e,t,n.custom):t;r=Promise.all(dh(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function bh(e){let t=gh(e);const n={animate:yh(!0),whileInView:yh(),whileHover:yh(),whileTap:yh(),whileDrag:yh(),whileFocus:yh(),exit:yh()};let r=!0;const o=(t,n)=>{const r=ip(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)||{},u=[],c=new Set;let d={},p=1/0;for(let t=0;t<mh;t++){const f=hh[t],h=n[f],m=void 0!==a[f]?a[f]:l[f],g=nc(m),b=f===s?h.isActive:null;!1===b&&(p=t);let v=m===l[f]&&m!==a[f]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!m&&!h.prevProp||rc(m)||"boolean"==typeof m)continue;const y=vh(h.prevProp,m);let x=y||f===s&&h.isActive&&!v&&g||t>p&&g;const I=Array.isArray(m)?m:[m];let C=I.reduce(o,{});!1===b&&(C={});const{prevResolvedValues:w={}}=h,E={...w,...C},A=e=>{x=!0,c.delete(e),h.needsAnimating[e]=!0};for(const e in E){const t=C[e],n=w[e];d.hasOwnProperty(e)||(t!==n?yd(t)&&yd(n)?!op(t,n)||y?A(e):h.protectedKeys[e]=!0:void 0!==t?A(e):c.add(e):void 0!==t&&c.has(e)?A(e):h.protectedKeys[e]=!0)}h.prevProp=m,h.prevResolvedValues=C,h.isActive&&(d={...d,...C}),r&&e.blockInitialAnimation&&(x=!1),x&&!v&&u.push(...I.map(e=>({animation:e,options:{type:f,...i}})))}if(c.size){const t={};c.forEach(n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),u.push({animation:t})}let f=Boolean(u.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(u):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 vh(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!op(t,e)}function yh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let xh=0;const Ih={animation:{Feature:class extends Dd{constructor(e){super(e),e.animationState||(e.animationState=bh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),rc(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 Dd{constructor(){super(...arguments),this.id=xh++}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(){}}}},Ch=(e,t)=>Math.abs(e-t);class wh{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=Sh(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ch(e.x,t.x),r=Ch(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}=Gd;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=Eh(t,this.transformPagePoint),zd.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Sh("pointercancel"===e.type?this.lastMoveEventInfo:Eh(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Td(e))return;this.handlers=t,this.transformPagePoint=n;const r=Eh(Od(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=Gd;this.history=[{...o,timestamp:i}];const{onSessionStart:s}=t;s&&s(e,Sh(r,this.history)),this.removeListeners=Pd(Nd(window,"pointermove",this.handlePointerMove),Nd(window,"pointerup",this.handlePointerUp),Nd(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Zd(this.updatePoint)}}function Eh(e,t){return t?{point:t(e.point)}:e}function Ah(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Sh({point:e},t){return{point:e,delta:Ah(e,Oh(t)),offset:Ah(e,Th(t)),velocity:Nh(t,.1)}}function Th(e){return e[0]}function Oh(e){return e[e.length-1]}function Nh(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Oh(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>up(t)));)n--;if(!r)return{x:0,y:0};const i=cp(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 jh(e){return e.max-e.min}function Ph(e,t=0,n=.01){return Math.abs(e-t)<=n}function kh(e,t,n,r=.5){e.origin=r,e.originPoint=Hp(t.min,t.max,e.origin),e.scale=jh(n)/jh(t),(Ph(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Hp(n.min,n.max,e.origin)-e.originPoint,(Ph(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Rh(e,t,n,r){kh(e.x,t.x,n.x,r?r.originX:void 0),kh(e.y,t.y,n.y,r?r.originY:void 0)}function Lh(e,t,n){e.min=n.min+t.min,e.max=e.min+jh(t)}function Bh(e,t,n){e.min=t.min-n.min,e.max=e.min+jh(t)}function Mh(e,t,n){Bh(e.x,t.x,n.x),Bh(e.y,t.y,n.y)}function Dh(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 Gh(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 Vh=.35;function Fh(e,t,n){return{min:_h(e,t),max:_h(e,n)}}function _h(e,t){return"number"==typeof e?e:e[t]||0}const Hh=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Wh(e){return[e("x"),e("y")]}function Xh({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zh(e){return void 0===e||1===e}function Zh({scale:e,scaleX:t,scaleY:n}){return!zh(e)||!zh(t)||!zh(n)}function Yh(e){return Zh(e)||Uh(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Uh(e){return Jh(e.x)||Jh(e.y)}function Jh(e){return e&&"0%"!==e}function $h(e,t,n){return n+t*(e-n)}function Kh(e,t,n,r,o){return void 0!==o&&(e=$h(e,o,r)),$h(e,n,r)+t}function Qh(e,t=0,n=1,r,o){e.min=Kh(e.min,t,n,r,o),e.max=Kh(e.max,t,n,r,o)}function qh(e,{x:t,y:n}){Qh(e.x,t.translate,t.scale,t.originPoint),Qh(e.y,n.translate,n.scale,n.originPoint)}function em(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function tm(e,t){e.min=e.min+t,e.max=e.max+t}function nm(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=Hp(e.min,e.max,i);Qh(e,t[n],t[r],s,t.scale)}const rm=["x","scaleX","originX"],om=["y","scaleY","originY"];function im(e,t){nm(e.x,t,rm),nm(e.y,t,om)}function sm(e,t){return Xh(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 am=new WeakMap;class lm{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 wh(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Od(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Bd(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),Wh(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Hc.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=jh(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&zd.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&&zd.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||!um(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?Hp(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Hp(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&&tc(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Dh(e.x,n,o),y:Dh(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Vh){return!1===e?e=0:!0===e&&(e=Vh),{x:Fh(e,"left","right"),y:Fh(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Wh(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||!tc(e))return!1;const n=e.current;lp(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=sm(e,n),{scroll:o}=t;return o&&(tm(r.x,o.offset.x),tm(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Gh(e.x,t.x),y:Gh(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=Xh(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Wh(s=>{if(!um(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Yf(e,n,0,t))}stopAnimation(){Wh(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){Wh(t=>{const{drag:n}=this.getProps();if(!um(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]-Hp(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!tc(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Wh(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=jh(e),o=jh(t);return o>r?n=uf(t.min,t.max-r,e.min):r>o&&(n=uf(e.min,e.max-o,t.min)),Pc(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(),Wh(t=>{if(!um(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Hp(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;am.set(this.visualElement,this);const e=Nd(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();tc(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=Sd(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Wh(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=Vh,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function um(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const cm=e=>(t,n)=>{e&&zd.update(()=>e(t,n))};const dm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fm={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Wc.test(e))return e;e=parseFloat(e)}return`${pm(e,t.target.x)}% ${pm(e,t.target.y)}%`}},hm={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=nf.parse(e);if(o.length>5)return r;const i=nf.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 u=Hp(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=u),"number"==typeof o[3+s]&&(o[3+s]/=u),i(o)}};class mm extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=bm,Object.assign(xc,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()})),dm.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()||zd.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 gm(e){const[n,r]=function(){const e=t.useContext(Ku);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,i=t.useId();return t.useEffect(()=>o(i),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=t.useContext(pc);return t.createElement(mm,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(fc),isPresent:n,safeToRemove:r})}const bm={borderRadius:{...fm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fm,borderTopRightRadius:fm,borderBottomLeftRadius:fm,borderBottomRightRadius:fm,boxShadow:hm},vm=["TopLeft","TopRight","BottomLeft","BottomRight"],ym=vm.length,xm=e=>"string"==typeof e?parseFloat(e):e,Im=e=>"number"==typeof e||Wc.test(e);function Cm(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const wm=Am(0,.5,Op),Em=Am(.5,.95,Jd);function Am(e,t,n){return r=>r<e?0:r>t?1:n(uf(e,t,r))}function Sm(e,t){e.min=t.min,e.max=t.max}function Tm(e,t){Sm(e.x,t.x),Sm(e.y,t.y)}function Om(e,t,n,r,o){return e=$h(e-=t,1/n,r),void 0!==o&&(e=$h(e,1/o,r)),e}function Nm(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){Hc.test(t)&&(t=parseFloat(t),t=Hp(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=Hp(i.min,i.max,r);e===i&&(a-=t),e.min=Om(e.min,t,n,a,o),e.max=Om(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const jm=["x","scaleX","originX"],Pm=["y","scaleY","originY"];function km(e,t,n,r){Nm(e.x,t,jm,n?n.x:void 0,r?r.x:void 0),Nm(e.y,t,Pm,n?n.y:void 0,r?r.y:void 0)}function Rm(e){return 0===e.translate&&1===e.scale}function Lm(e){return Rm(e.x)&&Rm(e.y)}function Bm(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 Mm(e){return jh(e.x)/jh(e.y)}class Dm{constructor(){this.members=[]}add(e){$f(this.members,e),e.scheduleRender()}remove(e){if(Kf(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 Gm(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 Vm=(e,t)=>e.depth-t.depth;class Fm{constructor(){this.children=[],this.isDirty=!1}add(e){$f(this.children,e),this.isDirty=!0}remove(e){Kf(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Vm),this.isDirty=!1,this.children.forEach(e)}}const _m=["","X","Y","Z"];let Hm=0;const Wm={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Xm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Hm++,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;Wm.totalNodes=Wm.resolvedTargetDeltas=Wm.recalculatedProjection=0,this.nodes.forEach(Ym),this.nodes.forEach(eg),this.nodes.forEach(tg),this.nodes.forEach(Um),e=Wm,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 Fm)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Qf),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&&(Zd(r),e(i-t))};return zd.read(r,!0),()=>Zd(r)}(r,250),dm.hasAnimatedSinceResize&&(dm.hasAnimatedSinceResize=!1,this.nodes.forEach(qm))})}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()||ag,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Bm(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...Zf(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||qm(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,Zd(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(ng),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($m);this.isUpdating||this.nodes.forEach(Km),this.isUpdating=!1,this.nodes.forEach(Qm),this.nodes.forEach(zm),this.nodes.forEach(Zm),this.clearAllSnapshots();const e=performance.now();Gd.delta=Pc(0,1e3/60,e-Gd.timestamp),Gd.timestamp=e,Gd.isProcessing=!0,Hd.update.process(Gd),Hd.preRender.process(Gd),Hd.render.process(Gd),Gd.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Jm),this.sharedNodes.forEach(rg)}scheduleUpdateProjection(){zd.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){zd.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&&!Lm(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Yh(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)),lg((r=n).x),lg(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&&(tm(t.x,n.offset.x),tm(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Tm(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){Tm(t,e);const{scroll:n}=this.root;n&&(tm(t.x,-n.offset.x),tm(t.y,-n.offset.y))}tm(t.x,o.offset.x),tm(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Tm(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&&im(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Yh(r.latestValues)&&im(n,r.latestValues)}return Yh(this.latestValues)&&im(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Tm(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Yh(n.latestValues))continue;Zh(n.latestValues)&&n.updateSnapshot();const r=Hh();Tm(r,n.measurePageBox()),km(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Yh(this.latestValues)&&km(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!==Gd.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=Gd.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}},Mh(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Tm(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,Lh(s.x,a.x,l.x),Lh(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Tm(this.target,this.layout.layoutBox),qh(this.target,this.targetDelta)):Tm(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}},Mh(this.relativeTargetOrigin,this.target,e.target),Tm(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Wm.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Zh(this.parent.latestValues)&&!Uh(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===Gd.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;Tm(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&&im(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,qh(e,s)),r&&Yh(i.latestValues)&&im(e,i.latestValues))}t.x=em(t.x),t.y=em(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 u=this.projectionTransform;Rh(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Gm(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Wm.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(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(sg));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;og(i.x,e.x,n),og(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mh(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){ig(e.x,t.x,n.x,r),ig(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&Bm(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Tm(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Hp(0,void 0!==n.opacity?n.opacity:1,wm(r)),e.opacityExit=Hp(void 0!==t.opacity?t.opacity:1,0,Em(r))):i&&(e.opacity=Hp(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<ym;o++){const i=`border${vm[o]}Radius`;let s=Cm(t,i),a=Cm(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Im(s)===Im(a)?(e[i]=Math.max(Hp(xm(s),xm(a),r),0),(Hc.test(a)||Hc.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=Hp(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),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&&(Zd(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zd.update(()=>{dm.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Ec(e)?e:nh(e);return r.start(Yf("",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&&ug(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=jh(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=jh(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Tm(t,n),im(t,o),Rh(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Dm);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<_m.length;t++){const o="rotate"+_m[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=Id(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=Id(e.pointerEvents)||""),this.hasProjected&&!Yh(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Gm(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 xc){if(void 0===s[e])continue;const{correct:t,applyTo:n}=xc[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?Id(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($m),this.root.sharedNodes.clear()}}}function zm(e){e.updateLayout()}function Zm(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?Wh(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=jh(r);r.min=t[e].min,r.max=r.min+o}):ug(o,n.layoutBox,t)&&Wh(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=jh(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}};Rh(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?Rh(a,e.applyTransform(r,!0),n.measuredBox):Rh(a,t,n.layoutBox);const l=!Lm(s);let u=!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}};Mh(s,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Mh(a,t,i.layoutBox),Bm(s,a)||(u=!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:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ym(e){Wm.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 Um(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Jm(e){e.clearSnapshot()}function $m(e){e.clearMeasurements()}function Km(e){e.isLayoutDirty=!1}function Qm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function eg(e){e.resolveTargetDelta()}function tg(e){e.calcProjection()}function ng(e){e.resetRotation()}function rg(e){e.removeLeadSnapshot()}function og(e,t,n){e.translate=Hp(t.translate,0,n),e.scale=Hp(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ig(e,t,n,r){e.min=Hp(t.min,n.min,r),e.max=Hp(t.max,n.max,r)}function sg(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ag={duration:.45,ease:[.4,0,.1,1]};function lg(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ug(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ph(Mm(t),Mm(n),.2)}const cg=Xm({attachResizeListener:(e,t)=>Sd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),dg={current:void 0},pg=Xm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!dg.current){const e=new cg({});e.mount(window),e.setOptions({layoutScroll:!0}),dg.current=e}return dg.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),fg={pan:{Feature:class extends Dd{constructor(){super(...arguments),this.removePointerDownListener=Jd}onPointerDown(e){this.session=new wh(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:cm(e),onStart:cm(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&zd.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=Nd(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 Dd{constructor(e){super(e),this.removeGroupControls=Jd,this.removeListeners=Jd,this.controls=new lm(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Jd}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:pg,MeasureLayout:gm}},hg=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function mg(e,t,n=1){lp(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=hg.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():Nc(o)?mg(o,t,n+1):o}const gg=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),bg=e=>gg.has(e),vg=e=>e===kc||e===Wc,yg=(e,t)=>parseFloat(e.split(", ")[t]),xg=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return yg(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?yg(t[1],e):0}},Ig=new Set(["x","y","z"]),Cg=Ic.filter(e=>!Ig.has(e));const wg={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:xg(4,13),y:xg(5,14)},Eg=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(bg);let i=[],s=!1;const a=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let u=n[o],c=ih(u);const d=t[o];let p;if(yd(d)){const e=d.length,t=null===d[0]?1:0;u=d[t],c=ih(u);for(let n=t;n<e&&null!==d[n];n++)p?lp(ih(d[n])===p,"All keyframes must be of the same type"):(p=ih(d[n]),lp(p===c||vg(c)&&vg(p),"Keyframes must be of the same dimension as the current value"))}else p=ih(d);if(c!==p)if(vg(c)&&vg(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===Wc&&(t[o]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==p?void 0:p.transform)&&(0===u||0===d)?0===u?l.set(p.transform(u)):t[o]=c.transform(d):(s||(i=function(e){const t=[];return Cg.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(d))}),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]=wg[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]=wg[n](l,i)}),e})(t,e,a);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),Qu&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Ag(e,t,n,r){return(e=>Object.keys(e).some(bg))(t)?Eg(e,t,n,r):{target:t,transitionEnd:r}}const Sg=(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(!Nc(t))return;const n=mg(t,r);n&&e.set(n)});for(const e in t){const o=t[e];if(!Nc(o))continue;const i=mg(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Ag(e,t=o.target,n,r=o.transitionEnd)},Tg={current:null},Og={current:!1};function Ng(){if(Og.current=!0,Qu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Tg.current=e.matches;e.addListener(t),t()}else Tg.current=!1}const jg=new WeakMap,Pg=Object.keys(dc),kg=Pg.length,Rg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Lg=ic.length;class Bg{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=()=>zd.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=sc(t),this.isVariantNode=ac(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(const e in u){const t=u[e];void 0!==s[e]&&Ec(t)&&(t.set(s[e],!1),Uf(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,jg.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)),Og.current||Ng(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Tg.current),"production"!==process.env.NODE_ENV&&eh(!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(){jg.delete(this.current),this.projection&&this.projection.unmount(),Zd(this.notifyUpdate),Zd(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=Cc.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&zd.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?ap(!1,e):lp(!1,e)}for(let e=0;e<kg;e++){const n=Pg[e],{isEnabled:r,Feature:o,ProjectionNode:a,MeasureLayout:l}=dc[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&&tc(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<Rg.length;t++){const n=Rg[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(Ec(i))e.addValue(o,i),Uf(r)&&r.add(o),"development"===process.env.NODE_ENV&&eh("10.12.16"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.12.16 may not work as expected.`);else if(Ec(s))e.addValue(o,nh(i,{owner:e})),Uf(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,nh(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<Lg;e++){const n=ic[e],r=this.props[n];(nc(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=nh(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=vd(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||Ec(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 Qf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Mg extends Bg{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=uh(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 u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==o?o:t[s]),null!=u&&("string"==typeof u&&(Jf(u)||Xf(u))?u=parseFloat(u):!ah(u)&&nf.test(l)&&(u=Wf(s,l)),e.addValue(s,nh(u,{owner:e})),void 0===n[s]&&(n[s]=u),null!==u&&e.setBaseTarget(s,u))}}(this,n,i);const e=Sg(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Dg extends Mg{readValueFromInstance(e,t){if(Cc.has(t)){const e=Hf(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Oc(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return sm(e,t)}build(e,t,n,r){Jc(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return gd(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ec(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){fd(e,t,n,r)}}class Gg extends Mg{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Cc.has(t)){const e=Hf(t);return e&&e.default||0}return t=hd.has(t)?t:pd(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return bd(e,t)}build(e,t,n,r){ad(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){md(e,t,0,r)}mount(e){this.isSVGTag=ud(e.tagName),super.mount(e)}}const Vg=(e,t)=>yc(e)?new Gg(t,{enableHardwareAcceleration:!1}):new Dg(t,{enableHardwareAcceleration:!0}),Fg={...Ih,...rp,...fg,...{layout:{ProjectionNode:pg,MeasureLayout:gm}}},_g=bc((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...yc(e)?Ed:Ad,preloadedFeatures:n,useRender:dd(t),createVisualElement:r,Component:e}}(e,t,Fg,Vg));function Hg(){!Og.current&&Ng();const[e]=t.useState(Tg.current);return"production"!==process.env.NODE_ENV&&eh(!0!==e,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),e}const Wg={scale:{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{duration:.3}},shadow:{whileHover:{boxShadow:"0 10px 25px rgba(0,0,0,0.15)"},transition:{duration:.3}},lift:{whileHover:{y:-5},whileTap:{y:0},transition:{type:"spring",stiffness:300,damping:20}},opacity:{whileHover:{opacity:.8},transition:{duration:.2}},grow:{whileHover:{scale:1.1},whileTap:{scale:.95},transition:{type:"spring",stiffness:300,damping:20}},pop:{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.15}}};function Xg({children:n,animationType:r=Uu,disableAnimation:o=!0,whileHover:i,whileTap:s,transition:a,...l}){const u=Hg(),c=t.Children.only(n);if(o||u)return c;const d=function(e){if(!e)return;const t=Array.isArray(e)?e:[e];return 0!==t.length?t.reduce((e,t)=>{const n=Wg[t];return{whileHover:{...e.whileHover,...n.whileHover},...e.whileTap||n.whileTap?{whileTap:{...e.whileTap,...n.whileTap}}:{},transition:{...e.transition,...n.transition}}},{whileHover:{},transition:{}}):void 0}(r),p=d?{...d.whileHover,...i}:i,f=(null==d?void 0:d.whileTap)||s?{...null==d?void 0:d.whileTap,...s}:void 0,h=d?{...d.transition,...a}:a;if("string"==typeof c.type){const t=_g[c.type];return e.jsx(t,{...c.props,ref:c.ref,whileHover:p,whileTap:f,transition:h,...l})}return e.jsx(_g.div,{whileHover:p,whileTap:f,transition:h,...l,children:c})}Xg.displayName="AnimationWrapper";const zg=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:r,label:o,disabled:i,fullWidth:s,buttonClassName:a,size:l={base:"medium"},iconName:u,iconSize:c=24,iconFill:d=0,disableAnimation:p,animationType:f=Uu,as:h="button",...m},g)=>{const b=(()=>{const e=xe((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()})(l),"rounded-button overflow-visible flex px-15 gap-2 items-center justify-center text-center outline-none focus:outline focus:outline-2 focus:outline-offset-2 cursor-pointer transition-colors duration-200 align-top whitespace-nowrap",s?"w-full":"lg:inline-flex w-full lg:w-auto"),r=xe((i||n)&&"cursor-not-allowed",n&&"pl-7");return xe(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill [&:not(:disabled)]:hover:bg-bg-fill-brand-hover focus:outline-bg-fill-brand disabled:bg-bg-fill-brand-disabled",primary_inverse:"bg-bg-fill-inverse text-text-inverse [&:not(:disabled)]:hover:bg-bg-fill-inverse-hover focus:outline-bg-fill-inverse disabled:bg-bg-fill-inverse-disabled",secondary:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text [&:not(:disabled)]:hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:outline-input-border-hover disabled:bg-bg-fill-secondary",secondary_inverse:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text [&:not(:disabled)]:hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:outline-border-inverse disabled:bg-bg-fill-secondary"}[t]||"",r,a)})();let v=`button--${t}`;n&&(v+=" button--loading"),i&&(v+=" button--disabled");const y=`${v} ${b}`,x=e.jsxs(e.Fragment,{children:[n?e.jsx(hn,{name:"progress_activity",className:"animate-spin"}):null,o?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:xe(Yu(l)),children:o}),r]}):r,u?e.jsx(hn,{name:u,size:c,fill:d,weight:"200"}):null]});return"a"===h?e.jsx(Xg,{disableAnimation:p,animationType:f,children:e.jsx("a",{ref:g,className:xe(y),...m,"data-component":"BrandButton","data-variant":"anchor",children:x})}):e.jsx(Xg,{disableAnimation:p,animationType:f,children:e.jsx("button",{ref:g,className:xe(y),disabled:i||n,...m,"data-component":"BrandButton","data-variant":"button",children:x})})});zg.displayName="BrandButton";const Zg=t=>{const{className:n,...r}=t;return e.jsx("div",{className:xe("h-[1px] border-t-0 bg-bg-surface-tertiary-active opacity-100",n),...r})};Zg.displayName="Divider";const Yg=t=>{const{name:n,value:r,label:o,subText:i,checked:s,onChange:a,className:l,variant:u="circle",hasError:c=!1,labelProps:d={},"data-cy":p,labelClassName:f="",disabled:h,...m}=t,g=()=>null==a?void 0:a(r||n);return e.jsxs("label",{htmlFor:n,className:xe("flex items-center",l),"data-cy":p,...d,children:[e.jsx("input",{className:"hidden",type:"radio",name:n,value:r,checked:s,readOnly:!0,disabled:h,...m}),e.jsx(Ir,{type:"button",onClick:g,disabled:h,className:xe("mr-3 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border-[1px] border-solid border-border-secondary-on-bg-fill bg-bg outline-offset-4",s&&"border-[1px] border-solid border-border-brand",h&&"opacity-50"),children:s&&e.jsx("div",{className:"h-[0.875rem] w-[0.875rem] rounded-full bg-bg-fill-brand"})}),e.jsxs(Ir,{type:"button",onClick:g,disabled:h,tabIndex:o?0:-1,children:[e.jsx("div",{className:xe("text-body2 font-normal",f),children:o}),e.jsx("div",{className:"text-body1 text-text-info",children:i})]})]})};Yg.displayName="RadioButton";const Ug=n=>{const{list:r,text:o}=n,[i,s]=t.useState(!0);return e.jsxs("div",{className:"mt-3",children:[e.jsxs(Ir,{type:"button",className:"flex items-center gap-2 text-base font-semibold text-gray-900","aria-expanded":i,onClick:e=>{e.stopPropagation(),s(e=>!e)},children:[e.jsx("span",{children:o||"See details"}),e.jsx(hn,{name:i?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e.jsx(si,{open:i,children:e.jsx("div",{className:"pt-1",children:e.jsx(gn,{listItemClassName:"body3",items:r})})})]})};Ug.displayName="SeeMore";const Jg=({className:t="",count:n=1})=>e.jsx("div",{className:"animate-pulse space-y-4",children:Array.from({length:n}).map((n,r)=>e.jsx("div",{className:`h-8 rounded bg-skeleton-bg-start ${t}`,style:{opacity:1-.1*r}},r))});Jg.displayName="Skeleton";function $g({tooltipMsg:t,className:n,children:r}){return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:'\n .tooltip-custom {\n position: relative;\n cursor: pointer;\n margin-top: 7px;\n }\n .tooltip-custom::after {\n display: none;\n position: absolute;\n text-align: center;\n z-index: 999;\n content: attr(data-text);\n top: 0;\n left: -200%;\n transform: translate(-50%, calc(-100% - 10px));\n line-height: 1.1rem;\n padding-left: 1rem;\n padding-right: 1rem;\n border-radius: 8px;\n color: white;\n background-color: black;\n padding-bottom: 0.75rem;\n padding-top: 0.75rem;\n width: 270px;\n font-size: 14px;\n }\n .tooltip-custom:hover::after {\n display: block;\n }\n .tooltip-custom::before {\n background-color: black;\n content: " ";\n display: none;\n position: absolute;\n width: 15px;\n height: 15px;\n z-index: 999;\n top: 0;\n left: 50%;\n transform: translate(-50%, calc(-100% - 5px)) rotate(45deg);\n }\n .tooltip-custom:hover::before {\n display: block;\n }\n @media (max-width: 640px) {\n .tooltip-custom::after {\n left: -124px;\n }\n }\n @media (max-width: 343px) {\n .tooltip-custom::after {\n left: 80px;\n width: 160px;\n }\n }\n '}),e.jsx("span",{className:`tooltip-custom ${n||""}`,"data-text":t,children:r})]})}$g.displayName="Tooltip";const Kg=e=>{if(!e||!Array.isArray(e.content))return e;const t=[];for(const n of e.content){const e=t[t.length-1];"text"===(null==n?void 0:n.nodeType)&&"text"===(null==e?void 0:e.nodeType)&&JSON.stringify(e.marks)===JSON.stringify(n.marks)?t[t.length-1]={...e,value:e.value+n.value}:t.push("text"===(null==n?void 0:n.nodeType)?n:Kg(n))}return{...e,content:t}},Qg=e=>!!e&&(e.nodeType===yt.TABLE||!!Array.isArray(e.content)&&e.content.some(e=>Qg(e)));var qg,eb;var tb,nb,rb=function(){if(eb)return qg;function e(e){this._maxSize=e,this.clear()}eb=1,e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(e){return this._values[e]},e.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new e(512),a=new e(512),l=new e(512);function u(e){return s.get(e)||s.set(e,c(e).map(function(e){return e.replace(i,"$2")}))}function c(e){return e.match(t)||[""]}function d(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function p(e){return!d(e)&&(function(e){return e.match(r)&&!e.match(n)}(e)||function(e){return o.test(e)}(e))}return qg={Cache:e,split:c,normalizePath:u,setter:function(e){var t=u(e);return a.get(e)||a.set(e,function(e,n){for(var r=0,o=t.length,i=e;r<o-1;){var s=t[r];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;i=i[t[r++]]}i[t[r]]=n})},getter:function(e,t){var n=u(e);return l.get(e)||l.set(e,function(e){for(var r=0,o=n.length;r<o;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(d(t)||n.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,n){!function(e,t,n){var r,o,i,s,a=e.length;for(o=0;o<a;o++)(r=e[o])&&(p(r)&&(r='"'+r+'"'),i=!(s=d(r))&&/^\d+$/.test(r),t.call(n,r,s,i,o,e))}(Array.isArray(e)?e:c(e),t,n)}},qg}();var ob,ib=function(){if(nb)return tb;nb=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=t=>t.match(e)||[],n=e=>e[0].toUpperCase()+e.slice(1),r=(e,n)=>t(e).join(n).toLowerCase(),o=e=>t(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");return tb={words:t,upperFirst:n,camelCase:o,pascalCase:e=>n(o(e)),snakeCase:e=>r(e,"_"),kebabCase:e=>r(e,"-"),sentenceCase:e=>n(r(e," ")),titleCase:e=>t(e).map(n).join(" ")}}(),sb={exports:{}};var ab=function(){if(ob)return sb.exports;function e(e,t){var n=e.length,r=new Array(n),o={},i=n,s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!a.has(e[0])||!a.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(e,t,i){if(i.has(e)){var u;try{u=", node was:"+JSON.stringify(e)}catch(e){u=""}throw new Error("Cyclic dependency"+u)}if(!a.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var c=s.get(e)||new Set;if(t=(c=Array.from(c)).length){i.add(e);do{var d=c[--t];l(d,a.get(d),i)}while(t);i.delete(e)}r[--n]=e}}}return ob=1,sb.exports=function(t){return e(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(t),t)},sb.exports.array=e,sb.exports}(),lb=Ee(ab);const ub=Object.prototype.toString,cb=Error.prototype.toString,db=RegExp.prototype.toString,pb="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",fb=/^Symbol\((.*)\)(.*)$/;function hb(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return pb.call(e).replace(fb,"Symbol($1)");const r=ub.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+cb.call(e)+"]":"RegExp"===r?db.call(e):null}function mb(e,t){let n=hb(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=hb(this[e],t);return null!==r?r:n},2)}function gb(e){return null==e?[]:[].concat(e)}let bb,vb,yb,xb=/\$\{\s*(\w+)\s*\}/g;bb=Symbol.toStringTag;class Ib{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[bb]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],gb(e).forEach(e=>{if(Cb.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}vb=Symbol.hasInstance,yb=Symbol.toStringTag;class Cb extends Error{static formatError(e,t){const n=t.label||t.path||"this";return t=Object.assign({},t,{path:n,originalPath:t.path}),"string"==typeof e?e.replace(xb,(e,n)=>mb(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,o){const i=new Ib(e,t,n,r);if(o)return i;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[yb]="Error",this.name=i.name,this.message=i.message,this.type=i.type,this.value=i.value,this.path=i.path,this.errors=i.errors,this.inner=i.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Cb)}static[vb](e){return Ib[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let wb={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=null!=r&&r!==n?` (cast from the value \`${mb(r,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${mb(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${mb(n,!0)}\``+o}},Eb={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ab={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Sb={isValue:"${path} field must be ${value}"},Tb={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Ob={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${mb(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${mb(n,!0)}\``}return Cb.formatError(wb.notType,e)}};Object.assign(Object.create(null),{mixed:wb,string:Eb,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:Ab,object:Tb,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:Sb,tuple:Ob});const Nb=e=>e&&e.__isYupSchema__;class jb{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:o}=t,i="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new jb(e,(e,t)=>{var n;let s=i(...e)?r:o;return null!=(n=null==s?void 0:s(t))?n:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!Nb(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const Pb="$",kb=".";class Rb{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Pb,this.isValue=this.key[0]===kb,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Pb:this.isValue?kb:"";this.path=this.key.slice(n.length),this.getter=this.path&&rb.getter(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}Rb.prototype.__isYupRef=!0;const Lb=e=>null==e;function Bb(e){function t({value:t,path:n="",options:r,originalValue:o,schema:i},s,a){const{name:l,test:u,params:c,message:d,skipAbsent:p}=e;let{parent:f,context:h,abortEarly:m=i.spec.abortEarly,disableStackTrace:g=i.spec.disableStackTrace}=r;const b={value:t,parent:f,context:h};function v(e={}){const r=Mb(Object.assign({value:t,originalValue:o,label:i.spec.label,path:e.path||n,spec:i.spec,disableStackTrace:e.disableStackTrace||g},c,e.params),b),s=new Cb(Cb.formatError(e.message||d,r),t,r.path,e.type||l,r.disableStackTrace);return s.params=r,s}const y=m?s:a;let x={path:n,parent:f,type:l,from:r.from,createError:v,resolve:e=>Db(e,b),options:r,originalValue:o,schema:i};const I=e=>{Cb.isError(e)?y(e):e?a(null):y(v())},C=e=>{Cb.isError(e)?y(e):s(e)};if(p&&Lb(t))return I(!0);let w;try{var E;if(w=u.call(x,t,x),"function"==typeof(null==(E=w)?void 0:E.then)){if(r.sync)throw new Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(w).then(I,C)}}catch(e){return void C(e)}I(w)}return t.OPTIONS=e,t}function Mb(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=Db(e[n],t);return e}function Db(e,t){return Rb.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Gb(e,t,n,r=n){let o,i,s;return t?(rb.forEach(t,(a,l,u)=>{let c=l?a.slice(1,a.length-1):a,d="tuple"===(e=e.resolve({context:r,parent:o,value:n})).type,p=u?parseInt(c,10):0;if(e.innerType||d){if(d&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);o=n,n=n&&n[c],e=e.fields[c]}i=c,s=l?"["+a+"]":"."+a}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class Vb extends Set{describe(){const e=[];for(const t of this.values())e.push(Rb.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new Vb(this.values())}merge(e,t){const n=this.clone();return e.forEach(e=>n.add(e)),t.forEach(e=>n.delete(e)),n}}function Fb(e,t=new Map){if(Nb(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Fb(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Fb(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Fb(r,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Fb(o,t)}return n}function _b(e){if(null==e||!e.length)return;const t=[];let n="",r=!1,o=!1;for(let i=0;i<e.length;i++){const s=e[i];"["!==s||o?"]"!==s||o?'"'!==s?"."!==s||r||o?n+=s:n&&(t.push(n),n=""):o=!o:(n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1):(n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0)}return n&&t.push(...n.split(".").filter(Boolean)),t}function Hb(e,t){var n;if((null==(n=e.inner)||!n.length)&&e.errors.length)return function(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:_b(n)}))}(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>Hb(e,r))}class Wb{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Vb,this._blacklist=new Vb,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(wb.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Fb(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,o;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(o=e.disableStackTrace)?o:this.spec.disableStackTrace})}cast(e,t={}){let n=this.resolve(Object.assign({},t,{value:e})),r="ignore-optionality"===t.assert,o=n._cast(e,t);if(!1!==t.assert&&!n.isType(o)){if(r&&Lb(o))return o;let i=mb(e),s=mb(o);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${i} \n`+(s!==i?`result of cast: ${s}`:""))}return o}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((n,r)=>r.call(this,n,e,this,t),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e,t={},n,r){let{path:o,originalValue:i=e,strict:s=this.spec.strict}=t,a=e;s||(a=this._cast(a,Object.assign({assert:!1},t)));let l=[];for(let e of Object.values(this.internalTests))e&&l.push(e);this.runTests({path:o,value:a,originalValue:i,options:t,tests:l},n,e=>{if(e.length)return r(e,a);this.runTests({path:o,value:a,originalValue:i,options:t,tests:this.tests},n,r)})}runTests(e,t,n){let r=!1,{tests:o,value:i,originalValue:s,path:a,options:l}=e,u=e=>{r||(r=!0,t(e,i))},c=e=>{r||(r=!0,n(e,i))},d=o.length,p=[];if(!d)return c([]);let f={value:i,originalValue:s,path:a,options:l,schema:this};for(let e=0;e<o.length;e++){(0,o[e])(f,u,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--d<=0&&c(p)})}}asNestedTest({key:e,index:t,parent:n,parentPath:r,originalParent:o,options:i}){const s=null!=e?e:t;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");const a="number"==typeof s;let l=n[s];const u=Object.assign({},i,{strict:!0,parent:n,value:l,originalValue:o[s],key:void 0,[a?"index":"key"]:s,path:a||s.includes(".")?`${r||""}[${a?s:`"${s}"`}]`:(r?`${r}.`:"")+e});return(e,t,n)=>this.resolve(u)._validate(l,u,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise((n,i)=>r._validate(e,t,(e,t)=>{Cb.isError(e)&&(e.value=t),i(e)},(e,t)=>{e.length?i(new Cb(e,t,void 0,void 0,o)):n(t)}))}validateSync(e,t){var n;let r,o=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:o.spec.disableStackTrace;return o._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw Cb.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new Cb(t,e,void 0,void 0,i);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(Cb.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(Cb.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):Fb(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=Bb({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=Bb({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(e=wb.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=wb.notNull){return this.nullability(!1,e)}required(e=wb.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=wb.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=Bb(t),o=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(o)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0}),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=gb(e).map(e=>new Rb(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push("function"==typeof t?new jb(r,t):jb.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=Bb({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=wb.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n.internalTests.whiteList=Bb({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e,t=wb.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n.internalTests.blacklist=Bb({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:o,nullable:i}=t.spec;return{meta:r,label:n,optional:o,nullable:i,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,n)=>n.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const n=t.OPTIONS.params&&e?Mb(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:n}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof Cb)return{issues:Hb(e)};throw e}}}}}Wb.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Wb.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:s}=Gb(this,t,n,r.context);return s[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Wb.prototype[e]=Wb.prototype.oneOf;for(const e of["not","nope"])Wb.prototype[e]=Wb.prototype.notOneOf;function Xb(){return new zb}class zb extends Wb{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(this.spec.coerce&&!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=Sb.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>Lb(e)||!0===e})}isFalse(e=Sb.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>Lb(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}Xb.prototype=zb.prototype;const Zb=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Yb(e){var t,n;const r=Zb.exec(e);return r?{year:Ub(r[1]),month:Ub(r[2],1)-1,day:Ub(r[3],1),hour:Ub(r[4]),minute:Ub(r[5]),second:Ub(r[6]),millisecond:r[7]?Ub(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Ub(r[10]),minuteOffset:Ub(r[11])}:null}function Ub(e,t=0){return Number(e)||t}let Jb=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,$b=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Kb=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Qb=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),qb=e=>Lb(e)||e===e.trim(),ev={}.toString();function tv(){return new nv}class nv extends Wb{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce||this.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===ev?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||wb.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=Eb.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=Eb.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=Eb.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,o=!1;return t&&("object"==typeof t?({excludeEmptyString:o=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||Eb.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&o||-1!==t.search(e)})}email(e=Eb.email){return this.matches(Jb,{name:"email",message:e,excludeEmptyString:!0})}url(e=Eb.url){return this.matches($b,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Eb.uuid){return this.matches(Kb,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"==typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(Qb,{name:"datetime",message:r||Eb.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Eb.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=Yb(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||Eb.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||null==n)return!0;const t=Yb(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=Eb.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:qb})}lowercase(e=Eb.lowercase){return this.transform(e=>Lb(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Lb(e)||e===e.toLowerCase()})}uppercase(e=Eb.uppercase){return this.transform(e=>Lb(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Lb(e)||e===e.toUpperCase()})}}tv.prototype=nv.prototype;let rv=new Date("");class ov extends Wb{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation(()=>{this.transform((e,t)=>!this.spec.coerce||this.isType(e)||null===e?e:(e=function(e){const t=Yb(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?ov.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let n;if(Rb.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=Ab.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e,t=Ab.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function iv(e,t){let n=1/0;return e.some((e,r)=>{var o;if(null!=(o=t.path)&&o.includes(e))return n=r,!0}),n}function sv(e){return(t,n)=>iv(e,t)-iv(e,n)}ov.INVALID_DATE=rv;const av=(e,t,n)=>{if("string"!=typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(e){}return n.isType(r)?r:e};function lv(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=lv(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=lv(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(lv)}):"optional"in e?e.optional():e}let uv=e=>"[object Object]"===Object.prototype.toString.call(e);function cv(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}const dv=sv([]);function pv(e){return new fv(e)}class fv extends Wb{constructor(e){super({type:"object",check:e=>uv(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=dv,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let o=this.fields,i=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(r).filter(e=>!this._nodes.includes(e))),a={},l=Object.assign({},t,{parent:a,__validating:t.__validating||!1}),u=!1;for(const e of s){let n=o[e],s=e in r,c=r[e];if(n){let o;l.path=(t.path?`${t.path}.`:"")+e,n=n.resolve({value:c,context:t.context,parent:a});let i=n instanceof Wb?n.spec:void 0,s=null==i?void 0:i.strict;if(null!=i&&i.strip){u=u||e in r;continue}o=t.__validating&&s?c:n.cast(c,l),void 0!==o&&(a[e]=o)}else s&&!i&&(a[e]=c);s===e in a&&a[e]===c||(u=!0)}return u?a:r}_validate(e,t={},n,r){let{from:o=[],originalValue:i=e,recursive:s=this.spec.recursive}=t;t.from=[{schema:this,value:i},...o],t.__validating=!0,t.originalValue=i,super._validate(e,t,n,(e,o)=>{if(!s||!uv(o))return void r(e,o);i=i||o;let a=[];for(let e of this._nodes){let n=this.fields[e];n&&!Rb.isRef(n)&&a.push(n.asNestedTest({options:t,key:e,parent:o,parentPath:t.path,originalParent:i}))}this.runTests({tests:a,value:o,originalValue:i,options:t},n,t=>{r(t.sort(this._sortErrors).concat(e),o)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];n[e]=void 0===r?t:r}return t.withMutation(t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{var r;const o=this.fields[n];let i=e;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[n]})),t[n]=o&&"getDefault"in o?o.getDefault(i):void 0}),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([e,t])=>`${e}-${t}`));function i(e,t){let i=rb.split(e)[0];r.add(i),o.has(`${t}-${i}`)||n.push([t,i])}for(const t of Object.keys(e)){let n=e[t];r.add(t),Rb.isRef(n)&&n.isSibling?i(n.path,t):Nb(n)&&"deps"in n&&n.deps.forEach(e=>i(e,t))}return lb.array(Array.from(r),n).reverse()}(e,t),n._sortErrors=sv(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e,t=[]){return this.clone().withMutation(n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)})}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return lv(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter(([t,n])=>e.includes(t)&&e.includes(n)))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=rb.getter(e,!0);return this.transform(o=>{if(!o)return o;let i=o;return((e,t)=>{const n=[...rb.normalizePath(t)];if(1===n.length)return n[0]in e;let r=n.pop(),o=rb.getter(rb.join(n),!0)(e);return!(!o||!(r in o))})(o,e)&&(i=Object.assign({},o),n||delete i[e],i[t]=r(o)),i})}json(){return this.transform(av)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||Tb.exact,test(e){if(null==e)return!0;const t=cv(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=Tb.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=cv(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=Tb.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n})}camelCase(){return this.transformKeys(ib.camelCase)}snakeCase(){return this.transformKeys(ib.snakeCase)}constantCase(){return this.transformKeys(e=>ib.snakeCase(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[o,i]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[o]})),n.fields[o]=i.describe(t)}return n}}pv.prototype=fv.prototype;const hv={firstName:"",lastName:"",address:"",phone:"",email:"",unit:"",zip:"",isManualAddress:!1,isMarketingCom:!1,addressToSend:{},notes:"",referralCode:"",hasUnits:!1},mv={firstName:{placeholder:"John"},lastName:{placeholder:"Doe"},address:{placeholder:"Street address"},phoneNumber:{placeholder:"Phone number"},emailAddress:{placeholder:"Email address"},unit:{placeholder:"Unit (optional)"},zip:{placeholder:"Zip"},notes:{placeholder:"Notes or Comments"},referralCode:{placeholder:"Referral Code"}},gv=pv({firstName:tv().required("First name is required").min(2,"Enter a valid First name").matches(/^[a-zA-Z\s]*$/,"Enter a valid First name"),lastName:tv().required("Last name is required").min(2,"Enter a valid Last name").matches(/^[a-zA-Z\s]*$/,"Enter a valid Last name"),isManualAddress:Xb(),isMarketingCom:Xb(),hasUnits:Xb(),unit:tv().when("hasUnits",{is:!0,then:e=>e.required("Unit is required"),otherwise:e=>e.matches(/^[a-zA-Z0-9\s#]*$/,"Enter a valid Unit")}),zip:tv().when("isManualAddress",{is:!0,then:e=>e.required("Zip is required").matches(/^\d{5}$/,"Enter a valid Zip")}),address:tv().required("Enter your home address (street, city, state, and ZIP below)").when("isManualAddress",{is:!0,then:e=>e.matches(/^(\d{1,}) [a-zA-Z0-9\s]+(\,)? [a-zA-Z\s]+(\,)? [A-Z]{2}( [0-9]{5,6})?$/,"Enter your home address (street, city, state, and ZIP below)")}),phone:tv().required("Phone is required").matches(/^\([0-9]{3}\)\s[0-9]{3}-[0-9]{4}$/,"Please enter a valid phone number"),email:tv().email("Invalid email").matches(/^[^\s@]+@[^\s@]+\.[^\s@]+$/,"Invalid email").required("Email is required"),notes:tv(),referralCode:tv().max(50,"Referral code must not exceed 50 characters").matches(/^\S*$/,"Referral code must not contain spaces")});var bv=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===vv}(e)}(e)};var vv="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function yv(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Iv((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function xv(e,t,n){return e.concat(t).map(function(e){return yv(e,n)})}function Iv(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||xv,n.isMergeableObject=n.isMergeableObject||bv;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=yv(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=Iv(e[o],t[o],n):r[o]=yv(t[o],n)}),r}(e,t,n):yv(t,n)}Iv.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Iv(e,n,t)},{})};var Cv=Iv,wv="object"==typeof global&&global&&global.Object===Object&&global,Ev="object"==typeof self&&self&&self.Object===Object&&self,Av=wv||Ev||Function("return this")(),Sv=Av.Symbol,Tv=Object.prototype,Ov=Tv.hasOwnProperty,Nv=Tv.toString,jv=Sv?Sv.toStringTag:void 0;var Pv=Object.prototype.toString;var kv=Sv?Sv.toStringTag:void 0;function Rv(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":kv&&kv in Object(e)?function(e){var t=Ov.call(e,jv),n=e[jv];try{e[jv]=void 0;var r=!0}catch(e){}var o=Nv.call(e);return r&&(t?e[jv]=n:delete e[jv]),o}(e):function(e){return Pv.call(e)}(e)}function Lv(e,t){return function(n){return e(t(n))}}var Bv=Lv(Object.getPrototypeOf,Object);function Mv(e){return null!=e&&"object"==typeof e}var Dv=Function.prototype,Gv=Object.prototype,Vv=Dv.toString,Fv=Gv.hasOwnProperty,_v=Vv.call(Object);function Hv(e){if(!Mv(e)||"[object Object]"!=Rv(e))return!1;var t=Bv(e);if(null===t)return!0;var n=Fv.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Vv.call(n)==_v}function Wv(e,t){return e===t||e!=e&&t!=t}function Xv(e,t){for(var n=e.length;n--;)if(Wv(e[n][0],t))return n;return-1}var zv=Array.prototype.splice;function Zv(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yv(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Zv.prototype.clear=function(){this.__data__=[],this.size=0},Zv.prototype.delete=function(e){var t=this.__data__,n=Xv(t,e);return!(n<0)&&(n==t.length-1?t.pop():zv.call(t,n,1),--this.size,!0)},Zv.prototype.get=function(e){var t=this.__data__,n=Xv(t,e);return n<0?void 0:t[n][1]},Zv.prototype.has=function(e){return Xv(this.__data__,e)>-1},Zv.prototype.set=function(e,t){var n=this.__data__,r=Xv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Uv(e){if(!Yv(e))return!1;var t=Rv(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Jv,$v=Av["__core-js_shared__"],Kv=(Jv=/[^.]+$/.exec($v&&$v.keys&&$v.keys.IE_PROTO||""))?"Symbol(src)_1."+Jv:"";var Qv=Function.prototype.toString;function qv(e){if(null!=e){try{return Qv.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ey=/^\[object .+?Constructor\]$/,ty=Function.prototype,ny=Object.prototype,ry=ty.toString,oy=ny.hasOwnProperty,iy=RegExp("^"+ry.call(oy).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sy(e){return!(!Yv(e)||function(e){return!!Kv&&Kv in e}(e))&&(Uv(e)?iy:ey).test(qv(e))}function ay(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return sy(n)?n:void 0}var ly=ay(Av,"Map"),uy=ay(Object,"create");var cy=Object.prototype.hasOwnProperty;var dy=Object.prototype.hasOwnProperty;function py(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function fy(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function hy(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}py.prototype.clear=function(){this.__data__=uy?uy(null):{},this.size=0},py.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},py.prototype.get=function(e){var t=this.__data__;if(uy){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return cy.call(t,e)?t[e]:void 0},py.prototype.has=function(e){var t=this.__data__;return uy?void 0!==t[e]:dy.call(t,e)},py.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uy&&void 0===t?"__lodash_hash_undefined__":t,this},hy.prototype.clear=function(){this.size=0,this.__data__={hash:new py,map:new(ly||Zv),string:new py}},hy.prototype.delete=function(e){var t=fy(this,e).delete(e);return this.size-=t?1:0,t},hy.prototype.get=function(e){return fy(this,e).get(e)},hy.prototype.has=function(e){return fy(this,e).has(e)},hy.prototype.set=function(e,t){var n=fy(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function my(e){var t=this.__data__=new Zv(e);this.size=t.size}my.prototype.clear=function(){this.__data__=new Zv,this.size=0},my.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},my.prototype.get=function(e){return this.__data__.get(e)},my.prototype.has=function(e){return this.__data__.has(e)},my.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Zv){var r=n.__data__;if(!ly||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new hy(r)}return n.set(e,t),this.size=n.size,this};var gy=function(){try{var e=ay(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function by(e,t,n){"__proto__"==t&&gy?gy(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var vy=Object.prototype.hasOwnProperty;function yy(e,t,n){var r=e[t];vy.call(e,t)&&Wv(r,n)&&(void 0!==n||t in e)||by(e,t,n)}function xy(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=void 0;void 0===l&&(l=e[a]),o?by(n,a,l):yy(n,a,l)}return n}function Iy(e){return Mv(e)&&"[object Arguments]"==Rv(e)}var Cy=Object.prototype,wy=Cy.hasOwnProperty,Ey=Cy.propertyIsEnumerable,Ay=Iy(function(){return arguments}())?Iy:function(e){return Mv(e)&&wy.call(e,"callee")&&!Ey.call(e,"callee")},Sy=Array.isArray;var Ty="object"==typeof exports&&exports&&!exports.nodeType&&exports,Oy=Ty&&"object"==typeof module&&module&&!module.nodeType&&module,Ny=Oy&&Oy.exports===Ty?Av.Buffer:void 0,jy=(Ny?Ny.isBuffer:void 0)||function(){return!1},Py=/^(?:0|[1-9]\d*)$/;function ky(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Py.test(e))&&e>-1&&e%1==0&&e<t}function Ry(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Ly={};function By(e){return function(t){return e(t)}}Ly["[object Float32Array]"]=Ly["[object Float64Array]"]=Ly["[object Int8Array]"]=Ly["[object Int16Array]"]=Ly["[object Int32Array]"]=Ly["[object Uint8Array]"]=Ly["[object Uint8ClampedArray]"]=Ly["[object Uint16Array]"]=Ly["[object Uint32Array]"]=!0,Ly["[object Arguments]"]=Ly["[object Array]"]=Ly["[object ArrayBuffer]"]=Ly["[object Boolean]"]=Ly["[object DataView]"]=Ly["[object Date]"]=Ly["[object Error]"]=Ly["[object Function]"]=Ly["[object Map]"]=Ly["[object Number]"]=Ly["[object Object]"]=Ly["[object RegExp]"]=Ly["[object Set]"]=Ly["[object String]"]=Ly["[object WeakMap]"]=!1;var My="object"==typeof exports&&exports&&!exports.nodeType&&exports,Dy=My&&"object"==typeof module&&module&&!module.nodeType&&module,Gy=Dy&&Dy.exports===My&&wv.process,Vy=function(){try{var e=Dy&&Dy.require&&Dy.require("util").types;return e||Gy&&Gy.binding&&Gy.binding("util")}catch(e){}}(),Fy=Vy&&Vy.isTypedArray,_y=Fy?By(Fy):function(e){return Mv(e)&&Ry(e.length)&&!!Ly[Rv(e)]},Hy=Object.prototype.hasOwnProperty;function Wy(e,t){var n=Sy(e),r=!n&&Ay(e),o=!n&&!r&&jy(e),i=!n&&!r&&!o&&_y(e),s=n||r||o||i,a=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var u in e)!t&&!Hy.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ky(u,l))||a.push(u);return a}var Xy=Object.prototype;function zy(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Xy)}var Zy=Lv(Object.keys,Object),Yy=Object.prototype.hasOwnProperty;function Uy(e){return null!=e&&Ry(e.length)&&!Uv(e)}function Jy(e){return Uy(e)?Wy(e):function(e){if(!zy(e))return Zy(e);var t=[];for(var n in Object(e))Yy.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var $y=Object.prototype.hasOwnProperty;function Ky(e){if(!Yv(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=zy(e),n=[];for(var r in e)("constructor"!=r||!t&&$y.call(e,r))&&n.push(r);return n}function Qy(e){return Uy(e)?Wy(e,!0):Ky(e)}var qy="object"==typeof exports&&exports&&!exports.nodeType&&exports,ex=qy&&"object"==typeof module&&module&&!module.nodeType&&module,tx=ex&&ex.exports===qy?Av.Buffer:void 0,nx=tx?tx.allocUnsafe:void 0;function rx(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function ox(){return[]}var ix=Object.prototype.propertyIsEnumerable,sx=Object.getOwnPropertySymbols,ax=sx?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}(sx(e),function(t){return ix.call(e,t)}))}:ox;function lx(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var ux=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)lx(t,ax(e)),e=Bv(e);return t}:ox;function cx(e,t,n){var r=t(e);return Sy(e)?r:lx(r,n(e))}function dx(e){return cx(e,Jy,ax)}function px(e){return cx(e,Qy,ux)}var fx=ay(Av,"DataView"),hx=ay(Av,"Promise"),mx=ay(Av,"Set"),gx=ay(Av,"WeakMap"),bx="[object Map]",vx="[object Promise]",yx="[object Set]",xx="[object WeakMap]",Ix="[object DataView]",Cx=qv(fx),wx=qv(ly),Ex=qv(hx),Ax=qv(mx),Sx=qv(gx),Tx=Rv;(fx&&Tx(new fx(new ArrayBuffer(1)))!=Ix||ly&&Tx(new ly)!=bx||hx&&Tx(hx.resolve())!=vx||mx&&Tx(new mx)!=yx||gx&&Tx(new gx)!=xx)&&(Tx=function(e){var t=Rv(e),n="[object Object]"==t?e.constructor:void 0,r=n?qv(n):"";if(r)switch(r){case Cx:return Ix;case wx:return bx;case Ex:return vx;case Ax:return yx;case Sx:return xx}return t});var Ox=Object.prototype.hasOwnProperty;var Nx=Av.Uint8Array;function jx(e){var t=new e.constructor(e.byteLength);return new Nx(t).set(new Nx(e)),t}var Px=/\w*$/;var kx=Sv?Sv.prototype:void 0,Rx=kx?kx.valueOf:void 0;function Lx(e,t,n){var r,o,i,s=e.constructor;switch(t){case"[object ArrayBuffer]":return jx(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return function(e,t){var n=t?jx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?jx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,Px.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return r=e,Rx?Object(Rx.call(r)):{}}}var Bx=Object.create,Mx=function(){function e(){}return function(t){if(!Yv(t))return{};if(Bx)return Bx(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Dx=Vy&&Vy.isMap,Gx=Dx?By(Dx):function(e){return Mv(e)&&"[object Map]"==Tx(e)};var Vx=Vy&&Vy.isSet,Fx=Vx?By(Vx):function(e){return Mv(e)&&"[object Set]"==Tx(e)},_x="[object Arguments]",Hx="[object Function]",Wx="[object Object]",Xx={};function zx(e,t,n,r,o,i){var s,a=1&t,l=2&t,u=4&t;if(void 0!==s)return s;if(!Yv(e))return e;var c=Sy(e);if(c){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ox.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return rx(e,s)}else{var d=Tx(e),p=d==Hx||"[object GeneratorFunction]"==d;if(jy(e))return function(e,t){if(t)return e.slice();var n=e.length,r=nx?nx(n):new e.constructor(n);return e.copy(r),r}(e,a);if(d==Wx||d==_x||p&&!o){if(s=l||p?{}:function(e){return"function"!=typeof e.constructor||zy(e)?{}:Mx(Bv(e))}(e),!a)return l?function(e,t){return xy(e,ux(e),t)}(e,function(e,t){return e&&xy(t,Qy(t),e)}(s,e)):function(e,t){return xy(e,ax(e),t)}(e,function(e,t){return e&&xy(t,Jy(t),e)}(s,e))}else{if(!Xx[d])return o?e:{};s=Lx(e,d,a)}}i||(i=new my);var f=i.get(e);if(f)return f;i.set(e,s),Fx(e)?e.forEach(function(r){s.add(zx(r,t,n,r,e,i))}):Gx(e)&&e.forEach(function(r,o){s.set(o,zx(r,t,n,o,e,i))});var h=c?void 0:(u?l?px:dx:l?Qy:Jy)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(h||e,function(r,o){h&&(r=e[o=r]),yy(s,o,zx(r,t,n,o,e,i))}),s}Xx[_x]=Xx["[object Array]"]=Xx["[object ArrayBuffer]"]=Xx["[object DataView]"]=Xx["[object Boolean]"]=Xx["[object Date]"]=Xx["[object Float32Array]"]=Xx["[object Float64Array]"]=Xx["[object Int8Array]"]=Xx["[object Int16Array]"]=Xx["[object Int32Array]"]=Xx["[object Map]"]=Xx["[object Number]"]=Xx[Wx]=Xx["[object RegExp]"]=Xx["[object Set]"]=Xx["[object String]"]=Xx["[object Symbol]"]=Xx["[object Uint8Array]"]=Xx["[object Uint8ClampedArray]"]=Xx["[object Uint16Array]"]=Xx["[object Uint32Array]"]=!0,Xx["[object Error]"]=Xx[Hx]=Xx["[object WeakMap]"]=!1;var Zx,Yx;function Ux(e){return zx(e,5)}var Jx=function(){if(Yx)return Zx;Yx=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r="undefined"!=typeof Element;function o(i,s){if(i===s)return!0;if(i&&s&&"object"==typeof i&&"object"==typeof s){var a,l,u,c=e(i),d=e(s);if(c&&d){if((l=i.length)!=s.length)return!1;for(a=l;0!==a--;)if(!o(i[a],s[a]))return!1;return!0}if(c!=d)return!1;var p=i instanceof Date,f=s instanceof Date;if(p!=f)return!1;if(p&&f)return i.getTime()==s.getTime();var h=i instanceof RegExp,m=s instanceof RegExp;if(h!=m)return!1;if(h&&m)return i.toString()==s.toString();var g=t(i);if((l=g.length)!==t(s).length)return!1;for(a=l;0!==a--;)if(!n.call(s,g[a]))return!1;if(r&&i instanceof Element&&s instanceof Element)return i===s;for(a=l;0!==a--;)if(!("_owner"===(u=g[a])&&i.$$typeof||o(i[u],s[u])))return!1;return!0}return i!=i&&s!=s}return Zx=function(e,t){try{return o(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}}(),$x=Ee(Jx),Kx="production"===process.env.NODE_ENV;function Qx(e,t){if(!Kx){var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}function qx(e){return zx(e,4)}function eI(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function tI(e){return"symbol"==typeof e||Mv(e)&&"[object Symbol]"==Rv(e)}function nI(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(nI.Cache||hy),n}nI.Cache=hy;var rI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oI=/\\(\\)?/g,iI=function(e){var t=nI(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rI,function(e,n,r,o){t.push(r?o.replace(oI,"$1"):n||e)}),t});function sI(e){if("string"==typeof e||tI(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var aI=Sv?Sv.prototype:void 0,lI=aI?aI.toString:void 0;function uI(e){if("string"==typeof e)return e;if(Sy(e))return eI(e,uI)+"";if(tI(e))return lI?lI.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function cI(e){return Sy(e)?eI(e,sI):tI(e)?[e]:rx(iI(function(e){return null==e?"":uI(e)}(e)))}function dI(){return dI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dI.apply(this,arguments)}function pI(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var fI=t.createContext(void 0);fI.displayName="FormikContext";var hI=fI.Provider;function mI(){var e=t.useContext(fI);return e||("production"!==process.env.NODE_ENV?Qx(0,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):Qx()),e}fI.Consumer;var gI=function(e){return"function"==typeof e},bI=function(e){return null!==e&&"object"==typeof e},vI=function(e){return String(Math.floor(Number(e)))===e},yI=function(e){return"[object String]"===Object.prototype.toString.call(e)},xI=function(e){return 0===t.Children.count(e)},II=function(e){return bI(e)&&gI(e.then)};function CI(e,t,n,r){void 0===r&&(r=0);for(var o=cI(t);e&&r<o.length;)e=e[o[r++]];return r===o.length||e?void 0===e?n:e:n}function wI(e,t,n){for(var r=qx(e),o=r,i=0,s=cI(t);i<s.length-1;i++){var a=s[i],l=CI(e,s.slice(0,i+1));if(l&&(bI(l)||Array.isArray(l)))o=o[a]=qx(l);else{var u=s[i+1];o=o[a]=vI(u)&&Number(u)>=0?[]:{}}}return(0===i?e:o)[s[i]]===n?e:(void 0===n?delete o[s[i]]:o[s[i]]=n,0===i&&void 0===n&&delete r[s[i]],r)}function EI(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],a=e[s];bI(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},EI(a,t,n,r[s])):r[s]=t}return r}var AI={},SI={};function TI(e){var n=e.validateOnChange,r=void 0===n||n,o=e.validateOnBlur,i=void 0===o||o,s=e.validateOnMount,a=void 0!==s&&s,l=e.isInitialValid,u=e.enableReinitialize,c=void 0!==u&&u,d=e.onSubmit,p=pI(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=dI({validateOnChange:r,validateOnBlur:i,validateOnMount:a,onSubmit:d},p),h=t.useRef(f.initialValues),m=t.useRef(f.initialErrors||AI),g=t.useRef(f.initialTouched||SI),b=t.useRef(f.initialStatus),v=t.useRef(!1),y=t.useRef({});"production"!==process.env.NODE_ENV&&t.useEffect(function(){void 0!==l&&("production"!==process.env.NODE_ENV?Qx(0,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):Qx())},[]),t.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var x=t.useState(0)[1],I=t.useRef({values:Ux(f.initialValues),errors:Ux(f.initialErrors)||AI,touched:Ux(f.initialTouched)||SI,status:Ux(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=I.current,w=t.useCallback(function(e){var t=I.current;I.current=function(e,t){switch(t.type){case"SET_VALUES":return dI({},e,{values:t.payload});case"SET_TOUCHED":return dI({},e,{touched:t.payload});case"SET_ERRORS":return $x(e.errors,t.payload)?e:dI({},e,{errors:t.payload});case"SET_STATUS":return dI({},e,{status:t.payload});case"SET_ISSUBMITTING":return dI({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return dI({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return dI({},e,{values:wI(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return dI({},e,{touched:wI(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return dI({},e,{errors:wI(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return dI({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return dI({},e,{touched:EI(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return dI({},e,{isSubmitting:!1});default:return e}}(t,e),t!==I.current&&x(function(e){return e+1})},[]),E=t.useCallback(function(e,t){return new Promise(function(n,r){var o=f.validate(e,t);null==o?n(AI):II(o)?o.then(function(e){n(e||AI)},function(e){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",e),r(e)}):n(o)})},[f.validate]),A=t.useCallback(function(e,t){var n=f.validationSchema,r=gI(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n){void 0===n&&(n=!1);var r=jI(e);return t[n?"validateSync":"validate"](r,{abortEarly:!1,context:r})}(e,r);return new Promise(function(e,t){o.then(function(){e(AI)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return wI(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var s=i;CI(t,s.path)||(t=wI(t,s.path,s.message))}}return t}(n)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",n),t(n))})})},[f.validationSchema]),S=t.useCallback(function(e,t){return new Promise(function(n){return n(y.current[e].validate(t))})},[]),T=t.useCallback(function(e){var t=Object.keys(y.current).filter(function(e){return gI(y.current[e].validate)}),n=t.length>0?t.map(function(t){return S(t,CI(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=wI(e,t[r],n)),e},{})})},[S]),O=t.useCallback(function(e){return Promise.all([T(e),f.validationSchema?A(e):{},f.validate?E(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return Cv.all([t,n,r],{arrayMerge:PI})})},[f.validate,f.validationSchema,T,E,A]),N=RI(function(e){return void 0===e&&(e=C.values),w({type:"SET_ISVALIDATING",payload:!0}),O(e).then(function(e){return v.current&&(w({type:"SET_ISVALIDATING",payload:!1}),w({type:"SET_ERRORS",payload:e})),e})});t.useEffect(function(){a&&!0===v.current&&$x(h.current,f.initialValues)&&N(h.current)},[a,N]);var j=t.useCallback(function(e){var t=e&&e.values?e.values:h.current,n=e&&e.errors?e.errors:m.current?m.current:f.initialErrors||{},r=e&&e.touched?e.touched:g.current?g.current:f.initialTouched||{},o=e&&e.status?e.status:b.current?b.current:f.initialStatus;h.current=t,m.current=n,g.current=r,b.current=o;var i=function(){w({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var s=f.onReset(C.values,J);II(s)?s.then(i):i()}else i()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);t.useEffect(function(){!0!==v.current||$x(h.current,f.initialValues)||c&&(h.current=f.initialValues,j(),a&&N(h.current))},[c,f.initialValues,j,a,N]),t.useEffect(function(){c&&!0===v.current&&!$x(m.current,f.initialErrors)&&(m.current=f.initialErrors||AI,w({type:"SET_ERRORS",payload:f.initialErrors||AI}))},[c,f.initialErrors]),t.useEffect(function(){c&&!0===v.current&&!$x(g.current,f.initialTouched)&&(g.current=f.initialTouched||SI,w({type:"SET_TOUCHED",payload:f.initialTouched||SI}))},[c,f.initialTouched]),t.useEffect(function(){c&&!0===v.current&&!$x(b.current,f.initialStatus)&&(b.current=f.initialStatus,w({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var P=RI(function(e){if(y.current[e]&&gI(y.current[e].validate)){var t=CI(C.values,e),n=y.current[e].validate(t);return II(n)?(w({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),w({type:"SET_ISVALIDATING",payload:!1})})):(w({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return f.validationSchema?(w({type:"SET_ISVALIDATING",payload:!0}),A(C.values,e).then(function(e){return e}).then(function(t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:CI(t,e)}}),w({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),k=t.useCallback(function(e,t){var n=t.validate;y.current[e]={validate:n}},[]),R=t.useCallback(function(e){delete y.current[e]},[]),L=RI(function(e,t){return w({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?N(C.values):Promise.resolve()}),B=t.useCallback(function(e){w({type:"SET_ERRORS",payload:e})},[]),M=RI(function(e,t){var n=gI(e)?e(C.values):e;return w({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?N(n):Promise.resolve()}),D=t.useCallback(function(e,t){w({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),G=RI(function(e,t,n){var o=gI(t)?t(CI(C.values,e)):t;return w({type:"SET_FIELD_VALUE",payload:{field:e,value:o}}),(void 0===n?r:n)?N(wI(C.values,e,o)):Promise.resolve()}),V=t.useCallback(function(e,t){var n,r=t,o=e;if(!yI(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,s=i.type,a=i.name,l=i.id,u=i.value,c=i.checked,d=i.outerHTML,p=i.options,f=i.multiple;(r=t||(a||l))||"production"===process.env.NODE_ENV||NI({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(s)?(n=parseFloat(u),isNaN(n)?"":n):/checkbox/.test(s)?function(e,t,n){if("boolean"==typeof e)return Boolean(t);var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,o=(i=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!o)return r.concat(n);if(!o)return r;return r.slice(0,i).concat(r.slice(i+1))}(CI(C.values,r),c,u):p&&f?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(p):u}r&&G(r,o)},[G,C.values]),F=RI(function(e){if(yI(e))return function(t){return V(t,e)};V(e)}),_=RI(function(e,t,n){return void 0===t&&(t=!0),w({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?N(C.values):Promise.resolve()}),H=t.useCallback(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=n.outerHTML,s=t||(r||o);s||"production"===process.env.NODE_ENV||NI({htmlContent:i,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),_(s,!0)},[_]),W=RI(function(e){if(yI(e))return function(t){return H(t,e)};H(e)}),X=t.useCallback(function(e){gI(e)?w({type:"SET_FORMIK_STATE",payload:e}):w({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),z=t.useCallback(function(e){w({type:"SET_STATUS",payload:e})},[]),Z=t.useCallback(function(e){w({type:"SET_ISSUBMITTING",payload:e})},[]),Y=RI(function(){return w({type:"SUBMIT_ATTEMPT"}),N().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=$()))return}catch(e){throw e}return Promise.resolve(n).then(function(e){return v.current&&w({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(v.current)throw w({type:"SUBMIT_FAILURE"}),e})}if(v.current&&(w({type:"SUBMIT_FAILURE"}),t))throw e})}),U=RI(function(e){if(e&&e.preventDefault&&gI(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&gI(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?Qx(0,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):Qx()))}Y().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),J={resetForm:j,validateForm:N,validateField:P,setErrors:B,setFieldError:D,setFieldTouched:_,setFieldValue:G,setStatus:z,setSubmitting:Z,setTouched:L,setValues:M,setFormikState:X,submitForm:Y},$=RI(function(){return d(C.values,J)}),K=RI(function(e){e&&e.preventDefault&&gI(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&gI(e.stopPropagation)&&e.stopPropagation(),j()}),Q=t.useCallback(function(e){return{value:CI(C.values,e),error:CI(C.errors,e),touched:!!CI(C.touched,e),initialValue:CI(h.current,e),initialTouched:!!CI(g.current,e),initialError:CI(m.current,e)}},[C.errors,C.touched,C.values]),q=t.useCallback(function(e){return{setValue:function(t,n){return G(e,t,n)},setTouched:function(t,n){return _(e,t,n)},setError:function(t){return D(e,t)}}},[G,_,D]),ee=t.useCallback(function(e){var t=bI(e),n=t?e.name:e,r=CI(C.values,n),o={name:n,value:r,onChange:F,onBlur:W};if(t){var i=e.type,s=e.value,a=e.as,l=e.multiple;"checkbox"===i?void 0===s?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(s)),o.value=s):"radio"===i?(o.checked=r===s,o.value=s):"select"===a&&l&&(o.value=o.value||[],o.multiple=!0)}return o},[W,F,C.values]),te=t.useMemo(function(){return!$x(h.current,C.values)},[h.current,C.values]),ne=t.useMemo(function(){return void 0!==l?te?C.errors&&0===Object.keys(C.errors).length:!1!==l&&gI(l)?l(f):l:C.errors&&0===Object.keys(C.errors).length},[l,te,C.errors,f]);return dI({},C,{initialValues:h.current,initialErrors:m.current,initialTouched:g.current,initialStatus:b.current,handleBlur:W,handleChange:F,handleReset:K,handleSubmit:U,resetForm:j,setErrors:B,setFormikState:X,setFieldTouched:_,setFieldValue:G,setFieldError:D,setStatus:z,setSubmitting:Z,setTouched:L,setValues:M,submitForm:Y,validateForm:N,validateField:P,isValid:ne,dirty:te,unregisterField:R,registerField:k,getFieldProps:ee,getFieldMeta:Q,getFieldHelpers:q,validateOnBlur:i,validateOnChange:r,validateOnMount:a})}function OI(e){var n=TI(e),r=e.component,o=e.children,i=e.render,s=e.innerRef;return t.useImperativeHandle(s,function(){return n}),"production"!==process.env.NODE_ENV&&t.useEffect(function(){e.render&&("production"!==process.env.NODE_ENV?Qx(0,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):Qx())},[]),t.createElement(hI,{value:n},r?t.createElement(r,n):i?i(n):o?gI(o)?o(n):xI(o)?null:t.Children.only(o):null)}function NI(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+n+"\n ")}function jI(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map(function(e){return!0===Array.isArray(e)||Hv(e)?jI(e):""!==e?e:void 0}):Hv(e[r])?t[r]=jI(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function PI(e,t,n){var r=e.slice();return t.forEach(function(t,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?Cv(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=Cv(e[o],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var kI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function RI(e){var n=t.useRef(e);return kI(function(){n.current=e}),t.useCallback(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.current.apply(void 0,t)},[])}function LI(e){var n=e.validate,r=e.name,o=e.render,i=e.children,s=e.as,a=e.component,l=e.className,u=pI(e,["validate","name","render","children","as","component","className"]),c=pI(mI(),["validate","validationSchema"]);"production"!==process.env.NODE_ENV&&t.useEffect(function(){o&&("production"!==process.env.NODE_ENV?Qx(0,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+r+'" render={({field, form}) => ...} /> with <Field name="'+r+'">{({field, form, meta}) => ...}</Field>'):Qx()),s&&i&&gI(i)&&("production"!==process.env.NODE_ENV?Qx(0,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):Qx()),a&&i&&gI(i)&&("production"!==process.env.NODE_ENV?Qx(0,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):Qx()),o&&i&&!xI(i)&&("production"!==process.env.NODE_ENV?Qx(0,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):Qx())},[]);var d=c.registerField,p=c.unregisterField;t.useEffect(function(){return d(r,{validate:n}),function(){p(r)}},[d,p,r,n]);var f=c.getFieldProps(dI({name:r},u)),h=c.getFieldMeta(r),m={field:f,form:c};if(o)return o(dI({},m,{meta:h}));if(gI(i))return i(dI({},m,{meta:h}));if(a){if("string"==typeof a){var g=u.innerRef,b=pI(u,["innerRef"]);return t.createElement(a,dI({ref:g},f,b,{className:l}),i)}return t.createElement(a,dI({field:f,form:c},u,{className:l}),i)}var v=s||"input";if("string"==typeof v){var y=u.innerRef,x=pI(u,["innerRef"]);return t.createElement(v,dI({ref:y},f,x,{className:l}),i)}return t.createElement(v,dI({},f,u,{className:l}),i)}var BI=t.forwardRef(function(e,n){var r=e.action,o=pI(e,["action"]),i=null!=r?r:"#",s=mI(),a=s.handleReset,l=s.handleSubmit;return t.createElement("form",dI({onSubmit:l,ref:n,onReset:a,action:i},o))});BI.displayName="Form";const MI=/\D/g,DI=({name:t,errors:n,touched:r})=>{const o=n[t];return r[t]&&"string"==typeof o?e.jsx(mn,{className:"mt-1 text-text-critical",children:o}):null},GI=({children:t,required:n=!1})=>e.jsxs("label",{className:"mb-1 block text-sm font-medium text-text",children:[t,n&&e.jsx("span",{className:"text-text-critical",children:"*"})]});exports.Accordion=ai,exports.AddressAutocomplete=({className:n,containerClassName:r,defaultValue:o="",errorText:i,fixedPositionedSuggestions:s=!1,focusOnLoad:a=!0,hasError:l,inputContainerClassName:u,isIframe:c=!1,isLoading:d=!1,isReady:p=!0,mapPinIcon:f=!0,minQueryLength:h=3,onChange:m,onFocus:g,onLoadProvider:b,onSelectAddress:v,onSuggestionsChange:y,optionsContainerClassName:x,prefixIconClassName:I="text-icon-brand",suggestions:C=[],value:w,...E})=>{const A=t.useRef(null),S=t.useRef(null),T=t.useId(),[O,N]=t.useState(null!=w?w:o),[j,P]=t.useState(!1),k=xe("inline-flex items-center justify-center leading-none",I);t.useEffect(()=>{void 0!==w&&N(w)},[w]),t.useEffect(()=>{var e;p&&a&&(null===(e=A.current)||void 0===e||e.focus())},[a,p]),t.useEffect(()=>{p&&(null==b||b())},[p,b]),t.useEffect(()=>{null==y||y(C)},[y,C]),((e,n)=>{const r=t=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(t.target))||n()};t.useEffect(()=>(document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}))})(S,()=>P(!1));const R=t.useCallback(e=>{if(!e.address)return;const t=Er(e);N(t.value),P(!1),null==v||v({address:t.value,unit:e.address.addressLine2||"",addressToSend:e.address,placeId:e.placeId||""})},[v]),L=j&&O.length>=h&&!d&&C.length>0;return e.jsxs("div",{ref:S,className:xe("relative min-w-[300px] text-text",r),children:[e.jsx(wr,{...E,ref:A,size:"medium",value:O,className:xe("mx-auto w-full bg-transparent pl-2 placeholder:text-input-text-placeholder","body2",n),containerClassName:xe("pl-4",u),loading:!p,onChange:e=>{const t=e.target.value;N(t),P(t.length>=h),t||null==v||v(),null==m||m(t)},onFocus:e=>{P(!0),null==g||g(e)},autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-controls":T,"aria-expanded":L,"data-cy":"address-autocomplete-input","data-testid":"address-autocomplete-input",prefixIconName:f?"location_on":void 0,prefixIconFill:!0,prefixIconClassName:k,errorText:i,state:i||l?"error":E.state,hasError:l}),L&&e.jsx("ul",{id:T,role:"listbox","data-cy":"address-autocomplete-suggestions","data-testid":"address-autocomplete-suggestions",className:xe("shadow-dark-drop absolute top-full z-20 m-0 mt-1 w-full list-none overflow-y-auto overscroll-contain rounded-lg border border-input-border bg-bg-surface p-0",c?"max-h-[117px]":"max-h-[220px]",s&&(c?"fixed z-50 max-h-[117px]":"fixed z-50 max-h-[220px]"),x),children:C.map((t,n)=>{const{primaryText:r,secondaryText:o}=Er(t);return e.jsx("li",{role:"option","aria-selected":"false",children:e.jsxs("button",{type:"button",className:"body2 flex w-full items-center px-4 py-4 text-left hover:bg-bg-surface-secondary",onClick:()=>R(t),children:[e.jsx(hn,{fill:1,name:"location_on",size:24,weight:"200",className:xe("mr-4 min-w-[24px]",k)}),e.jsxs("span",{children:[e.jsx("span",{children:r}),o&&e.jsx("span",{className:"ml-1",children:o})]})]})},t.placeId||`${t.mainText}-${n}`)})})]})},exports.AlertCard=Zu,exports.AnimationWrapper=Xg,exports.BrandButton=zg,exports.Button=Ir,exports.CallButton=Tr,exports.Checkbox=li,exports.Checklist=gn,exports.Collapse=si,exports.DEFAULT_BUTTON_ANIMATION_TYPE=Uu,exports.Divider=Zg,exports.FiberForm=({InputComponent:n,AddressAutocomplete:r,initialValues:o=hv,inputList:i=mv,formSchema:s=gv,onSubmit:a,lookupAddress:l,buttonText:u="See plans",buttonClassName:c,bottomTextDisclaimer:d,hideLegalCopy:p=!1,checkBoxEnabled:f=!0,copyRightLinks:h,className:m,onAddressEvent:g})=>{const b=null!=n?n:wr,[v,y]=t.useState([]),[x,I]=t.useState(!1),[C,w]=t.useState([]),[E,A]=t.useState(),[S,T]=t.useState(!1),O={fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:500};return e.jsx(OI,{initialValues:o,validationSchema:s,onSubmit:async(e,t)=>{await a(e),t.resetForm({values:o}),A(void 0),w([]),T(!1)},children:({errors:t,touched:n,isSubmitting:o,submitCount:s,setFieldValue:a,values:N})=>{var j,P,k;return e.jsxs(BI,{className:xe("fiber-form w-full",m),children:[e.jsxs("div",{className:"flex flex-col gap-5 sm:flex-row",children:[i.firstName&&e.jsxs("div",{className:"flex-1",children:[e.jsx(GI,{required:!0,children:"First name"}),e.jsx(LI,{as:b,style:O,name:"firstName",placeholder:null!==(j=i.firstName.placeholder)&&void 0!==j?j:"First name"}),e.jsx(DI,{name:"firstName",errors:t,touched:n})]}),i.lastName&&e.jsxs("div",{className:"flex-1",children:[e.jsx(GI,{required:!0,children:"Last name"}),e.jsx(LI,{as:b,style:O,name:"lastName",placeholder:null!==(P=i.lastName.placeholder)&&void 0!==P?P:"Last name"}),e.jsx(DI,{name:"lastName",errors:t,touched:n})]})]}),i.address&&e.jsxs("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[e.jsxs("div",{className:"sm:flex-[3]",children:[e.jsx(GI,{required:!0,children:"Address"}),e.jsx(LI,{name:"address",children:({field:t})=>e.jsx(r,{value:t.value||"",placeholder:"Address, city, state, ZIP",onChange:e=>{a("address",e,!1),a("isManualAddress",!0,!1),(async(e,t)=>{if(null==g||g(e),!l||e.length<3)return y([]),void I(!1);try{const n=await l(e,t);y(n),I(n.length>0)}catch(e){y([]),I(!1)}})(e,N)},onSelectAddress:e=>{var t,n;if(!e)return;const r=(null!==(t=e.addressToSend.units)&&void 0!==t?t:[]).filter(e=>e.addressLine2);a("address",e.address),a("addressToSend",e.addressToSend),a("unit",null!==(n=e.unit)&&void 0!==n?n:"",!1),a("isManualAddress",!1,!1),a("hasUnits",r.length>0,!1),w([...r.map(e=>{var t;return{label:e.addressLine2,value:null!==(t=e.dfAddressId)&&void 0!==t?t:"",data:e}}),...r.length>0?[{label:"I don't see my unit",value:"manual"},{label:"I don't have a unit",value:"no-unit"}]:[]])},onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()}})}),e.jsx(DI,{name:"address",errors:t,touched:n}),x&&e.jsx("ul",{className:"shadow-dark-drop mt-2 max-h-56 overflow-auto rounded-lg border border-input-border bg-white",children:v.map((t,n)=>{var r;return e.jsx("li",{children:e.jsxs("button",{type:"button",className:"body2 flex w-full items-center gap-2 px-4 py-3 text-left hover:bg-bg-surface-hover",onClick:()=>((e,t)=>{var n,r,o;const i=[e.addressLine1,e.city,e.state,e.postalCode].filter(Boolean).join(", "),s=(null!==(n=e.units)&&void 0!==n?n:[]).filter(e=>e.addressLine2);t("address",i),t("addressToSend",e),t("zip",null!==(r=e.postalCode)&&void 0!==r?r:"",!1),t("isManualAddress",!1,!1),t("hasUnits",s.length>0,!1),t("unit",s.length>0?"":null!==(o=e.addressLine2)&&void 0!==o?o:"",!1),y([]),I(!1),A(void 0),w([...s.map(e=>{var t;return{label:e.addressLine2,value:null!==(t=e.dfAddressId)&&void 0!==t?t:"",data:e}}),...s.length>0?[{label:"I don't see my unit",value:"manual"},{label:"I don't have a unit",value:"no-unit"}]:[]])})(t,a),children:[e.jsx(hn,{name:"location_on",size:24,fill:1,className:"text-green-600"}),[t.addressLine1,t.city,t.state,t.postalCode].filter(Boolean).join(", ")]})},`${null!==(r=t.dfAddressId)&&void 0!==r?r:n}-${t.addressLine1}`)})})]}),e.jsxs("div",{className:"w-full sm:w-[216px] sm:flex-none",children:[e.jsx("div",{className:"mb-1 hidden h-[20px] sm:block"}),e.jsx(zu,{options:C,value:E,placeholder:"Apt, Suite, etc.",maxMenuHeight:200,components:{DropdownIndicator:()=>e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"#1B2A4E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},styles:{option:e=>({...e,...O}),singleValue:e=>({...e,...O}),placeholder:e=>({...e,...O}),input:e=>({...e,...O}),indicatorsContainer:e=>({...e,alignItems:"center"})},className:"w-full sm:w-[216px]",controlClassName:"!h-[56px] !min-h-[56px] !gap-2 !rounded-[12px] !border !border-solid !border-[#CECECE] !bg-white !pl-4 !pr-4 !flex-nowrap [&>div:first-child]:!overflow-visible [&>div:first-child>div]:!max-w-none [&>div:first-child>div]:!overflow-visible [&>div:first-child>div]:!whitespace-nowrap",onChange:e=>{const t=e;if(t){if("manual"===t.value)return T(!0),a("hasUnits",!0,!1),a("unit","",!1),a("addressToSend",{...N.addressToSend,addressLine2:"",dfAddressId:void 0}),void A(t);if("no-unit"===t.value)return T(!1),a("unit","",!1),a("hasUnits",!1,!1),a("addressToSend",{...N.addressToSend,addressLine2:"",dfAddressId:void 0}),void A(t);T(!1),A(t),a("unit",t.label),a("hasUnits",!1,!1),a("addressToSend",{...N.addressToSend,addressLine2:t.label,dfAddressId:t.value})}}}),!S&&s>0&&null!==(k=N.hasUnits)&&void 0!==k&&k&&!E&&"string"==typeof t.unit&&e.jsx("span",{className:"mt-1 block text-sm font-medium text-red-500",children:t.unit}),S&&e.jsxs("div",{className:"mt-5 w-full sm:w-[216px]",children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-900",children:["Unit",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(LI,{as:b,style:O,name:"unit",placeholder:"Please enter your unit"}),s>0&&"string"==typeof t.unit&&e.jsx("span",{className:"mt-1 block text-sm font-medium text-red-500",children:t.unit})]})]})]}),e.jsxs("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[i.phoneNumber&&e.jsxs("div",{className:"flex-1",children:[e.jsx(GI,{required:!0,children:"Phone number"}),e.jsx(LI,{name:"phone",children:({field:t,form:n})=>e.jsx(b,{...t,type:"tel",style:O,placeholder:"(555) 555-5555",onChange:e=>n.setFieldValue("phone",(e=>{const t=e.replace(MI,"").slice(0,10);return t.length<4?t:t.length<7?`(${t.slice(0,3)}) ${t.slice(3)}`:`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`})(e.currentTarget.value))})}),e.jsx(DI,{name:"phone",errors:t,touched:n})]}),i.emailAddress&&e.jsxs("div",{className:"flex-1",children:[e.jsx(GI,{required:!0,children:"Email address"}),e.jsx(LI,{as:b,style:O,name:"email",type:"email",placeholder:"john.doe@example.com"}),e.jsx(DI,{name:"email",errors:t,touched:n})]})]}),e.jsxs("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[i.referralCode&&e.jsxs("div",{className:"flex-1",children:[e.jsx(GI,{children:"Referral code"}),e.jsx(LI,{as:b,style:O,name:"referralCode",placeholder:"Optional"}),e.jsx(DI,{name:"referralCode",errors:t,touched:n})]}),i.notes&&e.jsxs("div",{className:"flex-1",children:[e.jsx(GI,{children:"Notes or comments"}),e.jsx(LI,{as:b,style:O,name:"notes",placeholder:"Optional"})]})]}),f&&!p&&e.jsx("div",{className:"mt-16 text-neutral-600",children:e.jsx(LI,{name:"isMarketingCom",children:({field:t})=>e.jsxs("div",{className:"mb-7 mt-4 flex items-center gap-1 pl-1",children:[e.jsx("input",{type:"checkbox",className:"h-4 w-4 cursor-pointer align-middle accent-[#1d9d77]",...t,checked:t.value,id:"recieve-message-checkbox"}),e.jsx("label",{htmlFor:"recieve-message-checkbox",className:"mx-1 mb-3 mr-0 cursor-pointer align-middle text-micro font-medium leading-6 text-neutral-600",children:"Receive text messages for installation, account updates, and marketing communications."}),e.jsx($g,{tooltipMsg:"By opting in to receive text messages, you will receive automated text message related to service notifications including installations, service changes and updates, billing information, marketing offers from Kinetic including cart reminders. Consent is not a condition of purchase. Reply STOP at any time to unsubscribe. Message frequency varies. Msg & data rates may apply. To contact our Customer Support via email, chat, or phone, visit our Support page below.",className:"fiber-form-tooltip ff-NR mt-0",children:e.jsx(hn,{name:"info",size:20,className:"tooltip",style:{verticalAlign:"top"}})})]})})}),!p&&e.jsx(mn,{className:"body3 my-[32px] text-neutral-600 lg:mb-[64px] lg:mt-[32px]",children:"By submitting this form you consent to receive marketing messages from Kinetic by text, email or phone to the contact provided. Consent is not a condition of purchase. Msg & data rates may apply. Msg frequency varies. Unsubscribe at any time by replying STOP or clicking the unsubscribe link."}),d&&!p&&e.jsx(mn,{className:"mt-2 text-center text-text-secondary",children:d}),h&&!p&&e.jsx("ul",{className:"mt-16 flex list-disc justify-center gap-8 text-text-secondary",children:h.map(t=>e.jsx("li",{children:e.jsx("a",{href:t.href,target:"_blank",rel:"noreferrer",className:"underline",children:t.title})},t.title))}),e.jsx("div",{className:"mt-8 flex items-center justify-center lg:mt-[64px]",children:e.jsx(Ir,{type:"submit",disabled:o,"aria-busy":o,className:xe("flex h-16 w-[198px] max-w-full cursor-pointer items-center justify-center overflow-hidden rounded-button border border-brand bg-bg-fill-brand px-[60px] py-4 text-center font-black leading-7 text-text-brand-on-bg-fill no-underline transition-colors duration-300 ease-in-out enabled:hover:border-[var(--color-bg-fill-brand-hover)] enabled:hover:bg-bg-fill-brand-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-brand disabled:cursor-not-allowed",o&&"opacity-75",c),children:e.jsxs("span",{className:"relative flex w-full items-center justify-center",children:[o&&e.jsx(Sr,{size:"small",className:"!h-5 !w-5"}),e.jsx("span",{children:u})]})})})]})}})},exports.Image=Ar,exports.Input=wr,exports.InputField=Cr,exports.Link=yn,exports.List=fn,exports.ListItem=pn,exports.MaterialIcon=hn,exports.Modal=ii,exports.NextImage=lr,exports.PageSkeleton=()=>e.jsxs("div",{className:"item-center mx-auto mt-4 flex animate-pulse flex-col justify-center gap-10 px-1 md:max-w-[48.375rem] md:gap-16 md:px-0","data-testid":"generic-skeleton",children:[e.jsx("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start","data-testid":"title"}),e.jsxs("div",{className:"item-center flex flex-col gap-6","data-testid":"subtitle",children:[e.jsx("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-start"}),e.jsx("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-start"})]}),e.jsxs("div",{className:"item-center flex flex-col gap-3","data-testid":"content",children:[e.jsx("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start"}),e.jsx("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start"})]}),e.jsxs("div",{className:"item-center flex flex-col gap-6","data-testid":"additional-info",children:[e.jsx("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-end"}),e.jsx("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-end"})]}),e.jsx("div",{className:"item-center flex justify-center","data-testid":"cta-button",children:e.jsx("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-end md:w-[22.125rem]"})})]}),exports.RadioButton=Yg,exports.RichTextBasic=t=>{const{options:n,textProps:r,isTargetBlank:o,className:i,linkClassName:s,headerColor:a="grey",enableMaxWidth:l,headingClass:u,"data-testid":c}=t,d=Kg(we(t)),p=(null==i?void 0:i.includes("tableLayout"))||Qg(d)?function(t,n){if(!t||!Array.isArray(t.content))return null;const r=yr(n),o={...r,renderMark:{...r.renderMark,[It.BOLD]:t=>e.jsx("strong",{className:"label4 md:label2",children:t})},renderNode:{...r.renderNode,[yt.PARAGRAPH]:(t,n)=>e.jsx(e.Fragment,{children:n}),[yt.TABLE]:(t,n)=>{var r,o;return e.jsx("div",{className:"comparison-table-wrapper w-full overflow-x-auto border-none md:overflow-hidden",children:e.jsx("table",{className:"responsive-table w-full table-fixed border-collapse "+((null===(o=null===(r=t.content[0])||void 0===r?void 0:r.content)||void 0===o?void 0:o.length)>2?"min-w-[100.1%]":"min-w-full"),children:e.jsx("tbody",{children:n})})})},[yt.TABLE_ROW]:(t,n)=>e.jsx("tr",{className:"border-b border-gray-200 last:border-0",children:n}),[yt.TABLE_HEADER_CELL]:(t,n)=>{var r;const o=(null===(r=t.parent)||void 0===r?void 0:r.content.length)>2;return e.jsx("th",{className:`label4 break-words py-4 text-center md:label2 ${o?"sticky left-0 z-20 w-[50vw] min-w-[50vw] first:z-30 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:n})},[yt.TABLE_CELL]:(t,n)=>{var r,o,i,s;const a=(null===(r=t.parent)||void 0===r?void 0:r.content.length)>2,l=null===(s=null===(i=null===(o=t.content[0])||void 0===o?void 0:o.content[0])||void 0===i?void 0:i.value)||void 0===s?void 0:s.toLowerCase().trim();return e.jsx("td",{className:`rt-table-cell footnote break-words bg-white py-2 text-center align-top leading-5 text-text md:body2 first:text-left md:py-4 md:leading-7 ${a?"w-[50vw] min-w-[50vw] first:sticky first:left-0 first:z-10 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:e.jsxs(e.Fragment,{children:[" ","yes"===l?e.jsx(hn,{name:"check_circle",color:"#24A76A",fill:1}):"no"===l?e.jsx(hn,{name:"cancel",color:"#CECECE",fill:1}):n]})})},[xt.EMBEDDED_ENTRY]:t=>{var r,o,i,s;const a=t.data.target.sys.id,l=null===(o=null===(r=null==n?void 0:n.entries)||void 0===r?void 0:r.inline)||void 0===o?void 0:o.find(e=>e.sys.id===a);if(!l)return null;if("ComponentCheckList"===l.__typename){const t=(null===(s=null===(i=l.list)||void 0===i?void 0:i.items)||void 0===s?void 0:s.map(e=>{var t;return xr(we(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),!0,"")}))||[];return e.jsx(gn,{items:t,listIconName:"disc",listItemClassName:"items-baseline footnote md:body2 leading-5 md:leading-7 text-text"})}return e.jsx("span",{children:l.title||""})}}};return vt.documentToReactComponents(t,o)}(d,t.links):xr(d,o,i,s,void 0,t.links);return e.jsx("div",{style:{...null==r?void 0:r.style,"--tw-prose-bullets":"white","--tw-prose-counters":"white"},className:xe("last:[&_p]:mb-0","text-body1 leading-normal","[&_b]:font-bold [&_strong]:font-bold [&_i]:italic [&_em]:italic",i,!l&&"max-w-none"),"data-testid":c,children:p})},exports.SeeMore=Ug,exports.Select=zu,exports.SelectPlanButton=({onSelect:n,speed:r,isSelected:o=!1,renderCheckPlans:i,iconSize:s=24,iconClassName:a,cta:l,techType:u,isMax:c,twoColumn:d=!1})=>{const[p,f]=t.useState(!1),h=`btn-medium 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 ${o?" 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"} `,m=null==i?void 0:i({speedCardConfig:{isModalOpen:p,setModalOpen:()=>{f(!1)},speed:r,techType:u,isMax:c},cta:l});return e.jsxs(e.Fragment,{children:[e.jsxs(Ir,{onClick:()=>{f(!0),n()},className:xe(h,"w-full px-3 md:px-5",d?"justify-center md:justify-between":"justify-between"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${r}`,"data-track-element-clicked":"speed_plan_card",children:[e.jsx("span",{className:d?"label3 md:label1":"label1",children:"Select plan"}),e.jsx(hn,{className:xe(a,"!text-[24px] md:!text-[40px]",d&&"hidden md:inline-block",o?"text-icon":"text-icon-inverse"),name:"expand_circle_right",fill:1,size:s})]}),m]})},exports.Skeleton=Jg,exports.Spinner=Sr,exports.Text=mn,exports.TextInput=wr,exports.Tooltip=$g,exports.VideoLink=cr,exports.ViewCartButton=t=>{const{cartTotalText:n,onClick:r,isOpen:o,...i}=t;return e.jsx(Ir,{className:xe("btn-medium 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 border-2 border-border-secondary-on-bg-fill bg-bg text-text focus:ring-bg-surface-inverse","btn-small w-full border-border pl-6 pr-4 md:btn-medium"),onClick:r,...i,children:e.jsxs("div",{className:"flex w-full items-center justify-center gap-2",children:[e.jsxs("div",{className:"flex flex-col items-center justify-center",children:[e.jsx(mn,{className:"label4 -mb-1 text-text",children:"View cart"}),e.jsx(mn,{className:"label3 text-text md:label1","data-testid":"cart-total",children:n})]}),e.jsx(hn,{name:"keyboard_arrow_up",size:24,fill:0,className:xe("h-6 w-6 transition-transform",o?"rotate-180":"rotate-0")})]})})},exports.clsx=l,exports.cx=xe,exports.fiberFormAddressCollectionFormSchema=gv,exports.fiberFormInputInitialValues=hv,exports.fiberFormInputList=mv,exports.useBodyScrollLock=Or,exports.useCarouselSwipe=function(e){const{itemCount:n,cardOffsetPercentage:r=105,swipeThreshold:o=.15,mobileBreakpoint:i=768,autoScrollInterval:s=8e3,enableAutoScroll:a=!0}=e,[l,u]=t.useState(0),[c,d]=t.useState(0),[p,f]=t.useState(!1),[h,m]=t.useState("undefined"!=typeof window?window.innerWidth:1),[g,b]=t.useState(!1),v=t.useRef(null),y=t.useRef(0),x=t.useRef(null),I={CARD_OFFSET_PERCENTAGE:r,SWIPE_THRESHOLD:o,MOBILE_BREAKPOINT:i,AUTO_SCROLL_INTERVAL:s};t.useEffect(()=>{const e=()=>{var e;m((null===(e=x.current)||void 0===e?void 0:e.offsetWidth)||window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const C=t.useCallback(()=>{0!==n&&u(e=>(e+1)%n)},[n]),w=t.useCallback(()=>{0!==n&&u(e=>0===e?n-1:e-1)},[n]),E=t.useCallback(e=>{e<0||e>=n||u(e)},[n]),A=t.useCallback(e=>{y.current=e.touches[0].clientX,f(!0),v.current&&clearInterval(v.current)},[]),S=t.useCallback(e=>{if(!p)return;const t=e.touches[0].clientX-y.current;d(t)},[p]),T=t.useCallback(()=>{f(!1);const e=h*o;c>e?w():c<-e&&C(),d(0),a&&s>0&&(v.current=setInterval(()=>{C()},s))},[c,h,o,w,C,a,s]);return t.useEffect(()=>{const e=()=>{b(window.innerWidth<i)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i]),t.useEffect(()=>{if(a&&0!==n&&0!==s)return v.current=setInterval(()=>{C()},s),()=>{v.current&&clearInterval(v.current)}},[C,n,a,s]),{currentIndex:l,swipeOffset:c,isSwiping:p,isMobile:g,containerWidth:h,containerRef:x,nextSlide:C,prevSlide:w,goToSlide:E,handleTouchStart:A,handleTouchMove:S,handleTouchEnd:T,constants:I}};
|
|
51
51
|
//# sourceMappingURL=index.js.map
|