@okam/stack-ui 1.20.5 → 1.20.6
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/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),c=require("react/jsx-runtime"),O=require("tailwind-variants"),no=require("radash"),_=require("@react-aria/utils"),ae=require("@react-aria/focus"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),c=require("react/jsx-runtime"),O=require("tailwind-variants"),no=require("radash"),_=require("@react-aria/utils"),ae=require("@react-aria/focus"),Yi=require("react-dom"),Oe=require("@react-aria/i18n"),L=require("react-aria"),Ji=require("react-use"),oe=require("react-spring"),Pe=require("react-stately"),Qi=require("react-div-100vh"),Xi=require("isomorphic-dompurify"),br=require("lodash"),ye=require("react-hook-form"),Zi=require("@react-aria/checkbox"),es=require("@react-aria/visually-hidden"),ts=require("@react-stately/toggle"),yr=require("react-i18next"),vr=require("@react-aria/datepicker"),oo=require("@react-stately/datepicker"),xr=require("@react-aria/calendar"),rs=require("@react-stately/calendar"),Ge=require("@react-aria/overlays"),Kr=require("next/image"),H=require("lodash.isequal");function ns(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const os=ns(y),io=t=>t;function is(){const t=y.createContext(void 0);function e(){const r=y.useContext(t);return r===void 0?null:r}return[e,t.Provider]}const ss={typography:()=>""},[so,as]=is();function ao({children:t,brandTheme:e=ss}){const r=y.useMemo(()=>({brandTheme:e}),[e]);return c.jsx(as,{value:r,children:t})}const lo=t=>({children:r})=>c.jsx(ao,{brandTheme:t,children:r}),ls=O.tv({base:"[border-radius: 32px] p-1.5 focus:outline-none text-color-1-500",defaultVariants:{textAlign:"left",isOpen:!1},variants:{textAlign:{center:"text-center",left:"text-left"}}}),cs=O.tv({base:"grid overflow-hidden w-full items-center border-b-2 border-color-1-500 focus-ring-black",variants:{titleBold:{true:"font-bold"},textAlign:{center:"grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0",left:"grid-cols-[1fr_3rem]"},bgColor:{gray:"bg-gray-300",white:"bg-white"}},defaultVariants:{titleBold:!1,textAlign:"left",bgColor:"white"}}),us=O.tv({base:"",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"justify-self-center col-start-2",left:"justify-self-start"}}}),ds=O.tv({base:"text-color-1-500 min-h-12 rotate-90 min-w-12 rounded-full flex items-center justify-center transition duration-500 transform ml-auto aspect-square",variants:{isOpen:{true:"-rotate-90",false:""}}}),fs=O.tv({base:`
|
|
2
2
|
font-body
|
|
3
3
|
text-inherit
|
|
4
4
|
h-auto
|
|
5
5
|
grid
|
|
6
|
-
`,defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"grid-cols-[3rem_1fr_3rem] px-6 text-center",left:"grid-cols-[1fr_3rem] text-left"}}}),
|
|
6
|
+
`,defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"grid-cols-[3rem_1fr_3rem] px-6 text-center",left:"grid-cols-[1fr_3rem] text-left"}}}),hs=O.tv({base:"overflow-hidden flex flex-col gap-2 items-start",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"col-start-2",left:""}}}),ps={container:t=>ls(t),button:t=>cs(t),title:t=>us(t),icon:t=>ds(t),region:t=>fs(t),content:t=>hs(t)},ms=O.tv({base:"w-full bg-slate-100"}),co=O.tv({base:"max-w-screen-lg mx-auto w-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"},spacing:{small:"mb-3",medium:"mb-6",large:"mb-8",none:"mb-0"}}}),gs=O.tv({extend:co,base:"grid grid-cols-12 gap-6 px-4 col-span-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"}}}),bs=O.tv({base:"bg-slate-300 h-64 p-4 flex justify-start items-end",defaultVariants:{size:"small"},variants:{size:{small:"col-span-12 sm:col-span-6 md:col-span-4 lg:col-span-4",medium:"col-span-12 sm:col-span-12 md:col-span-8 lg:col-span-8",large:"lg:col-start-3 sm:col-start-1 sm:col-end-13 lg:col-end-11 md:col-start-3 md:col-end-11 col-start-1 col-end-13"}}}),Ye=O.tv({base:`
|
|
7
7
|
flex
|
|
8
8
|
items-center
|
|
9
9
|
justify-center
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
text-white
|
|
45
45
|
pointer-events-none
|
|
46
46
|
!border-error
|
|
47
|
-
`},size:{default:"min-w-12 min-h-6",large:"min-w-36 min-h-18"},shape:{rounded:"rounded-md",circular:"rounded-full"}}}),
|
|
47
|
+
`},size:{default:"min-w-12 min-h-6",large:"min-w-36 min-h-18"},shape:{rounded:"rounded-md",circular:"rounded-full"}}}),ys=O.tv({base:"inline-block text-gray-800"}),vs=O.tv({base:"flex items-center justify-between pb-4"}),xs=O.tv({base:"flex items-center gap-1"}),$s=O.tv({base:"active:bg-color-1-500 p-2 rounded-full active:text-color-1-100 hover:bg-color-1-200 focus-ring-black"}),ws=O.tv({base:"flex-1"}),Ps=O.tv({base:"text-center"}),Ts=O.tv({base:"py-0.5 relative",variants:{isFocusVisible:{true:"z-10",false:""}}}),Cs=O.tv({base:"w-10 h-10 outline-none group",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"disabled",false:""},isRoundedLeft:{true:"rounded-l-full",false:""},isRoundedRight:{true:"rounded-r-full",false:""}},compoundVariants:[{isSelected:!0,isInvalid:!0,class:"bg-red-300"},{isSelected:!0,isInvalid:!1,class:"bg-color-1-300"}]}),Ss=O.tv({base:"w-full h-full rounded-full flex items-center justify-center cursor-pointer",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"",false:""},isFocusVisible:{true:"ring-2 group-focus:z-2 ring-violet-600 ring-offset-2",false:""},isSelectionStart:{true:"",false:""},isSelectionEnd:{true:"",false:""}},compoundVariants:[{isDisabled:!0,isInvalid:!1,class:"text-gray-400"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 rounded-full text-white hover:bg-color-1-500"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelected:!1,isDisabled:!1,class:"hover:bg-color-1-100"},{isSelected:!0,isDisabled:!1,isInvalid:!1,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-color-1-300"},{isSelected:!0,isDisabled:!1,isInvalid:!0,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-red-400"}]}),Rs=O.tv({base:"flex justify-between items-center relative h-[475px] mb-18 lg:h-[650px]"}),Es=O.tv({base:"flex justify-center m-auto px-8 w-full h-full"}),Ms=O.tv({base:"bg-color-1-500 rounded-full p-4 text-white"}),js=O.tv({base:"flex focus-ring-black"}),_s=O.tv({base:"hover:cursor-pointer",variants:{color:{gray:"text-gray-300",black:"text-black"},isDisabled:{true:"text-gray-6"}},defaultVariants:{color:"black"}}),ks=O.tv({base:"w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center",variants:{isDisabled:{true:"border-gray-6"},isFocused:{true:"outline-black [outline-offset: 2px]"},isError:{true:"border-red-500"}}}),Ds=O.tv({base:"hidden w-4 h-4 bg-gray-300 rounded-full",variants:{selected:{true:"block text-white"}}}),Os=O.tv({base:"text-white w-4 h-4 [&_svg]:w-4 [&_svg]:h-4"}),Is=O.tv({base:"block",variants:{isDisabled:{true:"opacity-60 pointer-events-none"}}}),As=O.tv({base:"flex flex-col gap-4 py-8"}),Ls=O.tv({base:"relative inline-flex flex-col text-left"}),Ns=O.tv({base:"flex items-center border-2 border-color-1-500 rounded focus-ring-black"}),Bs=O.tv({base:"fixed inset-0"}),Ks=O.tv({base:"absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10"}),Fs=O.tv({base:"pr-1 flex gap-2",defaultVariants:{dateFieldShown:!0},variants:{dateFieldShown:{true:"",false:"hidden"}}}),qs=O.tv({base:"focus-ring-black"}),Us=O.tv({base:"text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2"}),Vs=O.tv({base:"text-color-1-500 font-bold px-2"}),Hs=O.tv({base:"object-contain"}),zs=t=>Hs(t),ue=O.tv({variants:{size:{h1:"text-5xl",h2:"text-4xl",h3:"text-3xl",h4:"text-2xl",h5:"text-xl",h6:"text-lg",leading:"text-md font-bold leading-normal",paragraph:"text-md inline",footnotes:"text-sm",xs:"text-xs"},font:{body:"font-body"},weight:{normal:"font-normal",light:"font-light",bold:"font-bold"},color:{gray:"text-gray-500",white:"text-white"},isError:{true:"text-sm text-error ml-8 py-3"},align:{center:"text-center",left:"text-left",right:"text-right"}},defaultVariants:{size:"paragraph",font:"body"}}),Ws=O.tv({base:"focus-ring-black"}),Gs=O.tv({base:"rounded-3xl overflow-hidden"}),Ys=O.tv({base:`
|
|
48
48
|
absolute
|
|
49
49
|
xl:top-10
|
|
50
50
|
xl:right-20
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
right-4
|
|
56
56
|
size-10
|
|
57
57
|
focus-ring-black
|
|
58
|
-
`}),
|
|
58
|
+
`}),Js=O.tv({extend:ue,base:"sr-only"}),Qs=O.tv({base:"w-screen h-screen bg-black/50 absolute top-0 left-0 flex justify-center items-center"}),Xs=O.tv({base:""}),Zs=O.tv({base:"flex flex-col gap-4 items-center"}),ea={wrapper:Ws,container:Gs,label:Js,closeBtn:Ys,modal:{underlay:Qs,overlay:Xs,dialog:Zs}},ta=O.tv({base:"text-black flex flex-row items-center hover:cursor-pointer focus-ring-black",variants:{isDisabled:{true:"text-gray-6"}}}),ra=O.tv({base:"w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center",variants:{isDisabled:{true:"border-gray-6"},isFocused:{true:"outline-black [outline-offset: 2px]"}}}),na=O.tv({base:"hidden w-4 h-4 bg-gray-300 rounded-full",variants:{selected:{true:"block text-white"}}}),oa=O.tv({base:"block",variants:{isDisabled:{true:"opacity-60 pointer-events-none"}}}),ia=O.tv({base:"flex flex-col gap-4 py-8"}),sa=O.tv({base:"flex print:hidden relative",defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"flex-row",column:"flex-col"}}}),aa=O.tv({base:"relative z-20 !bg-color-1-500 hover:!bg-color-1-400 w-16 h-16 flex justify-center items-center active:!bg-color-1-400 rounded-full text-white focus-ring-black",variants:{isOpen:{true:"",false:""}}}),la=O.tv({base:"!bg-color-1-200 absolute opacity-0 invisible flex transition duration-300 items-center p-0 bg-primary-1 z-0 rounded-b-full rounded-t-full",defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"flex-row pl-14 h-16 left-0",column:"flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0"},isOpen:{true:"opacity-100 visible",false:""}}}),ca=O.tv({base:`
|
|
59
59
|
flex
|
|
60
60
|
items-center
|
|
61
61
|
justify-center
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
focus-ring-black
|
|
70
70
|
z-10
|
|
71
71
|
has-focus-ring:z-20
|
|
72
|
-
`,defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"last:rounded-r-full h-full",column:"last:rounded-b-full"}}}),
|
|
72
|
+
`,defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"last:rounded-r-full h-full",column:"last:rounded-b-full"}}}),ua=O.tv({base:"text-white"}),da=O.tv({base:""}),fa=O.tv({base:"m-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full"}),ha=O.tv({base:"h-full w-full flex justify-end"}),pa=O.tv({base:"bg-black h-full w-full overflow-y-auto"}),ma=O.tv({base:`
|
|
73
73
|
w-full
|
|
74
74
|
min-h-32
|
|
75
75
|
rounded-2xl
|
|
@@ -84,10 +84,10 @@
|
|
|
84
84
|
placeholder:text-gray-2
|
|
85
85
|
focus-ring-black
|
|
86
86
|
|
|
87
|
-
`,variants:{isError:{true:"border-red-500"}}}),ma=io({main:t=>ps(t),gridItem:t=>gs(t),grid:t=>ms(t),container:t=>co(t),accordion:hs,carousel:{container:t=>Ss(t),slideContainer:t=>Rs(t),navigationButtons:t=>Es(t)},calendar:{container:t=>bs(t),header:t=>ys(t),navigationButtonsContainer:t=>vs(t),navigationButtons:t=>xs(t),table:t=>$s(t),dayLabel:t=>ws(t),cellContainer:t=>Ps(t),cell:t=>Ts(t),cellDate:t=>Cs(t)},datePicker:{container:t=>As(t),button:t=>Ls(t),icon:t=>qs(t),dateField:t=>Ks(t),dateSegment:t=>Fs(t),label:t=>Us(t),calendarPopover:t=>Bs(t),calendarUnderlay:t=>Ns(t)},popover:{button:t=>Ye(t),popover:()=>"border-2 text-black p-4 bg-gray-300"},typography:t=>ue(t),button:t=>Ye(t),sidePanel:{wrapper:t=>da(t),container:t=>fa(t),innerContainer:t=>ha(t)},lightBox:Zs,shareButton:{icon:t=>ca(t),button:t=>sa(t),container:t=>ia(t),linksList:t=>aa(t),link:t=>la(t),linkIcons:t=>ua(t)},checkbox:{container:t=>Ms(t),label:t=>js(t),checkBox:t=>_s(t),checkMark:t=>ks(t),checkMarkIcon:t=>Ds(t),errorMessage:t=>ue(t)},radio:{label:t=>ea(t),radio:t=>ta(t),selectedMark:t=>ra(t),errorMessage:t=>ue(t)},radioGroup:{radioGroup:t=>na(t),radioGroupItemsGroup:t=>oa(t),errorMessage:t=>ue(t)},checkboxGroup:{checkboxGroup:t=>Os(t),checkboxGroupItemsGroup:t=>Is(t),errormessage:t=>ue(t)},select:{button:t=>Ye(t),ul:t=>ue({...t,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:t=>Ye({...t,className:"w-[var(--select-container-width)]"}),errorMessage:t=>ue({...t,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:t=>pa(t),errorMessage:t=>ue({...t,size:"footnotes",isError:!0})},textInput:{wrapper:()=>"group flex flex-col rounded-md px-4 py-1 mb-3 m-0.5 border-2 aria-disabled:pointer-events-none aria-disabled:opacity-30 focus-ring-black",label:()=>'group-has-[:required]:after:content-["_*"] group-has-[:required]:after:text-red-500 text-xs',container:()=>"flex items-center gap-4",input:()=>"",errorMessage:t=>ue({...t,size:"footnotes",isError:!0})},menu:{sidePanel:{wrapper:()=>"",container:()=>"",innerContainer:()=>""},wrapper:()=>""},menuItem:{wrapper:()=>"",container:()=>"",innerContent:()=>"",button:()=>"",anchor:()=>""},img:Hs}),ga=y.memo(lo(ma)),I=(t,e={},r=null)=>{const n=so();if(n!=null&&t!=null){const{brandTheme:o}=n,i=no.get(o,t);if(typeof i=="function"){const s=i==null?void 0:i(e);if(typeof s=="string")return s}}if(r)return r},Z=({as:t="span",themeName:e="typography",tokens:r,customTheme:n,children:o,...i})=>{const s=I(e,r,n);return c.jsx(t,{...i,className:s,children:o})},uo=y.forwardRef((t,e)=>{const{as:r="span",tokens:n,themeName:o="typography",customTheme:i,children:s,...a}=t,l=I(o,n,i);return c.jsx(r,{...a,ref:e,className:l,children:s})});function ba(t,e){return e.get?e.get.call(t):e.value}function fo(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function ya(t,e){var r=fo(t,e,"get");return ba(t,r)}function va(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $r(t,e,r){va(t,e),e.set(t,r)}function xa(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Fr(t,e,r){var n=fo(t,e,"set");return xa(t,n,r),r}let Me="default",ar="",pt=new WeakMap;function qr(t){if(_.isIOS()){if(Me==="default"){const e=_.getOwnerDocument(t);ar=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Me="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(pt.set(t,t.style.userSelect),t.style.userSelect="none")}function Je(t){if(_.isIOS()){if(Me!=="disabled")return;Me="restoring",setTimeout(()=>{_.runAfterTransition(()=>{if(Me==="restoring"){const e=_.getOwnerDocument(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=ar||""),ar="",Me="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&pt.has(t)){let e=pt.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),pt.delete(t)}}const ho=y.createContext({register:()=>{}});ho.displayName="PressResponderContext";function $a(t){let e=y.useContext(ho);if(e){let{register:r,...n}=e;t=_.mergeProps(n,t),r()}return _.useSyncRef(e,t.ref),t}var Qe=new WeakMap;class Xe{continuePropagation(){Fr(this,Qe,!1)}get shouldStopPropagation(){return ya(this,Qe)}constructor(e,r,n){$r(this,Qe,{writable:!0,value:void 0}),Fr(this,Qe,!0),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const Ur=Symbol("linkClicked");function wr(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:p,...f}=$a(t),[m,w]=y.useState(!1),g=y.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:x}=_.useGlobalListeners(),j=_.useEffectEvent((h,M)=>{let $=g.current;if(s||$.didFirePressStart)return!1;let T=!0;if($.isTriggeringEvent=!0,n){let A=new Xe("pressstart",M,h);n(A),T=A.shouldStopPropagation}return r&&r(!0),$.isTriggeringEvent=!1,$.didFirePressStart=!0,w(!0),T}),E=_.useEffectEvent((h,M,$=!0)=>{let T=g.current;if(!T.didFirePressStart)return!1;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let A=!0;if(o){let v=new Xe("pressend",M,h);o(v),A=v.shouldStopPropagation}if(r&&r(!1),w(!1),e&&$&&!s){let v=new Xe("press",M,h);e(v),A&&(A=v.shouldStopPropagation)}return T.isTriggeringEvent=!1,A}),P=_.useEffectEvent((h,M)=>{let $=g.current;if(s)return!1;if(i){$.isTriggeringEvent=!0;let T=new Xe("pressup",M,h);return i(T),$.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}),R=_.useEffectEvent(h=>{let M=g.current;M.isPressed&&M.target&&(M.isOverTarget&&M.pointerType!=null&&E(fe(M.target,h),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,x(),d||Je(M.target))}),S=_.useEffectEvent(h=>{u&&R(h)}),D=y.useMemo(()=>{let h=g.current,M={onKeyDown(T){if(jt(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){var A;Hr(T.target,T.key)&&T.preventDefault();let v=!0;if(!h.isPressed&&!T.repeat){h.target=T.currentTarget,h.isPressed=!0,v=j(T,"keyboard");let C=T.currentTarget,B=W=>{jt(W,C)&&!W.repeat&&C.contains(W.target)&&h.target&&P(fe(h.target,W),"keyboard")};b(_.getOwnerDocument(T.currentTarget),"keyup",_.chain(B,$),!0)}v&&T.stopPropagation(),T.metaKey&&_.isMac()&&((A=h.metaKeyEvents)===null||A===void 0||A.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!h.isTriggeringEvent&&!_.openLink.isOpening){let A=!0;if(s&&T.preventDefault(),!h.ignoreClickAfterPress&&!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||_.isVirtualClick(T.nativeEvent))){!s&&!l&&_.focusWithoutScrolling(T.currentTarget);let v=j(T,"virtual"),C=P(T,"virtual"),B=E(T,"virtual");A=v&&C&&B}h.ignoreEmulatedMouseEvents=!1,h.ignoreClickAfterPress=!1,A&&T.stopPropagation()}}},$=T=>{var A;if(h.isPressed&&h.target&&jt(T,h.target)){var v;Hr(T.target,T.key)&&T.preventDefault();let B=T.target;E(fe(h.target,T),"keyboard",h.target.contains(B)),x(),T.key!=="Enter"&&Pr(h.target)&&h.target.contains(B)&&!T[Ur]&&(T[Ur]=!0,_.openLink(h.target,T,!1)),h.isPressed=!1,(v=h.metaKeyEvents)===null||v===void 0||v.delete(T.key)}else if(T.key==="Meta"&&(!((A=h.metaKeyEvents)===null||A===void 0)&&A.size)){var C;let B=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let W of B.values())(C=h.target)===null||C===void 0||C.dispatchEvent(new KeyboardEvent("keyup",W))}};if(typeof PointerEvent<"u"){M.onPointerDown=C=>{if(C.button!==0||!C.currentTarget.contains(C.target))return;if(_.isVirtualPointerEvent(C.nativeEvent)){h.pointerType="virtual";return}_t(C.currentTarget)&&C.preventDefault(),h.pointerType=C.pointerType;let B=!0;h.isPressed||(h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=C.pointerId,h.target=C.currentTarget,!s&&!l&&_.focusWithoutScrolling(C.currentTarget),d||qr(h.target),B=j(C,h.pointerType),b(_.getOwnerDocument(C.currentTarget),"pointermove",T,!1),b(_.getOwnerDocument(C.currentTarget),"pointerup",A,!1),b(_.getOwnerDocument(C.currentTarget),"pointercancel",v,!1)),B&&C.stopPropagation()},M.onMouseDown=C=>{C.currentTarget.contains(C.target)&&C.button===0&&(_t(C.currentTarget)&&C.preventDefault(),C.stopPropagation())},M.onPointerUp=C=>{!C.currentTarget.contains(C.target)||h.pointerType==="virtual"||C.button===0&&Se(C,C.currentTarget)&&P(C,h.pointerType||C.pointerType)};let T=C=>{C.pointerId===h.activePointerId&&(h.target&&Se(C,h.target)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,j(fe(h.target,C),h.pointerType)):h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,E(fe(h.target,C),h.pointerType,!1),S(C)))},A=C=>{C.pointerId===h.activePointerId&&h.isPressed&&C.button===0&&h.target&&(Se(C,h.target)&&h.pointerType!=null?E(fe(h.target,C),h.pointerType):h.isOverTarget&&h.pointerType!=null&&E(fe(h.target,C),h.pointerType,!1),h.isPressed=!1,h.isOverTarget=!1,h.activePointerId=null,h.pointerType=null,x(),d||Je(h.target))},v=C=>{R(C)};M.onDragStart=C=>{C.currentTarget.contains(C.target)&&R(C)}}else{M.onMouseDown=v=>{if(v.button!==0||!v.currentTarget.contains(v.target))return;if(_t(v.currentTarget)&&v.preventDefault(),h.ignoreEmulatedMouseEvents){v.stopPropagation();return}h.isPressed=!0,h.isOverTarget=!0,h.target=v.currentTarget,h.pointerType=_.isVirtualClick(v.nativeEvent)?"virtual":"mouse",!s&&!l&&_.focusWithoutScrolling(v.currentTarget),j(v,h.pointerType)&&v.stopPropagation(),b(_.getOwnerDocument(v.currentTarget),"mouseup",T,!1)},M.onMouseEnter=v=>{if(!v.currentTarget.contains(v.target))return;let C=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,C=j(v,h.pointerType)),C&&v.stopPropagation()},M.onMouseLeave=v=>{if(!v.currentTarget.contains(v.target))return;let C=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,C=E(v,h.pointerType,!1),S(v)),C&&v.stopPropagation()},M.onMouseUp=v=>{v.currentTarget.contains(v.target)&&!h.ignoreEmulatedMouseEvents&&v.button===0&&P(v,h.pointerType||"mouse")};let T=v=>{if(v.button===0){if(h.isPressed=!1,x(),h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&Se(v,h.target)&&h.pointerType!=null?E(fe(h.target,v),h.pointerType):h.target&&h.isOverTarget&&h.pointerType!=null&&E(fe(h.target,v),h.pointerType,!1),h.isOverTarget=!1}};M.onTouchStart=v=>{if(!v.currentTarget.contains(v.target))return;let C=wa(v.nativeEvent);if(!C)return;h.activePointerId=C.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=v.currentTarget,h.pointerType="touch",!s&&!l&&_.focusWithoutScrolling(v.currentTarget),d||qr(h.target),j(v,h.pointerType)&&v.stopPropagation(),b(_.getOwnerWindow(v.currentTarget),"scroll",A,!0)},M.onTouchMove=v=>{if(!v.currentTarget.contains(v.target))return;if(!h.isPressed){v.stopPropagation();return}let C=Vr(v.nativeEvent,h.activePointerId),B=!0;C&&Se(C,v.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,B=j(v,h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,B=E(v,h.pointerType,!1),S(v)),B&&v.stopPropagation()},M.onTouchEnd=v=>{if(!v.currentTarget.contains(v.target))return;if(!h.isPressed){v.stopPropagation();return}let C=Vr(v.nativeEvent,h.activePointerId),B=!0;C&&Se(C,v.currentTarget)&&h.pointerType!=null?(P(v,h.pointerType),B=E(v,h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(B=E(v,h.pointerType,!1)),B&&v.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!d&&Je(h.target),x()},M.onTouchCancel=v=>{v.currentTarget.contains(v.target)&&(v.stopPropagation(),h.isPressed&&R(v))};let A=v=>{h.isPressed&&v.target.contains(h.target)&&R({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=v=>{v.currentTarget.contains(v.target)&&R(v)}}return M},[b,s,l,x,d,R,S,E,j,P]);return y.useEffect(()=>()=>{var h;d||Je((h=g.current.target)!==null&&h!==void 0?h:void 0)},[d]),{isPressed:a||m,pressProps:_.mergeProps(f,D)}}function Pr(t){return t.tagName==="A"&&t.hasAttribute("href")}function jt(t,e){const{key:r,code:n}=t,o=e,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof _.getOwnerWindow(o).HTMLInputElement&&!po(o,r)||o instanceof _.getOwnerWindow(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Pr(o))&&r!=="Enter")}function wa(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Vr(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===e)return o}return null}function fe(t,e){return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey}}function Pa(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function Ta(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Se(t,e){let r=e.getBoundingClientRect(),n=Pa(t);return Ta(r,n)}function _t(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function Hr(t,e){return t instanceof HTMLInputElement?!po(t,e):t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Pr(t)}const Ca=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function po(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Ca.has(t.type)}let qe=null,Sa=new Set,Be=new Map,we=!1,lr=!1;function Tr(t,e){for(let r of Sa)r(t,e)}function Ra(t){return!(t.metaKey||!_.isMac()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function yt(t){we=!0,Ra(t)&&(qe="keyboard",Tr("keyboard",t))}function se(t){qe="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(we=!0,Tr("pointer",t))}function mo(t){_.isVirtualClick(t)&&(we=!0,qe="virtual")}function go(t){t.target===window||t.target===document||(!we&&!lr&&(qe="virtual",Tr("virtual",t)),we=!1,lr=!1)}function bo(){we=!1,lr=!0}function zr(t){if(typeof window>"u"||Be.get(_.getOwnerWindow(t)))return;const e=_.getOwnerWindow(t),r=_.getOwnerDocument(t);let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){we=!0,n.apply(this,arguments)},r.addEventListener("keydown",yt,!0),r.addEventListener("keyup",yt,!0),r.addEventListener("click",mo,!0),e.addEventListener("focus",go,!0),e.addEventListener("blur",bo,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",se,!0),r.addEventListener("pointermove",se,!0),r.addEventListener("pointerup",se,!0)):(r.addEventListener("mousedown",se,!0),r.addEventListener("mousemove",se,!0),r.addEventListener("mouseup",se,!0)),e.addEventListener("beforeunload",()=>{yo(t)},{once:!0}),Be.set(e,{focus:n})}const yo=(t,e)=>{const r=_.getOwnerWindow(t),n=_.getOwnerDocument(t);e&&n.removeEventListener("DOMContentLoaded",e),Be.has(r)&&(r.HTMLElement.prototype.focus=Be.get(r).focus,n.removeEventListener("keydown",yt,!0),n.removeEventListener("keyup",yt,!0),n.removeEventListener("click",mo,!0),r.removeEventListener("focus",go,!0),r.removeEventListener("blur",bo,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",se,!0),n.removeEventListener("pointermove",se,!0),n.removeEventListener("pointerup",se,!0)):(n.removeEventListener("mousedown",se,!0),n.removeEventListener("mousemove",se,!0),n.removeEventListener("mouseup",se,!0)),Be.delete(r))};function Ea(t){const e=_.getOwnerDocument(t);let r;return e.readyState!=="loading"?zr(t):(r=()=>{zr(t)},e.addEventListener("DOMContentLoaded",r)),()=>yo(t,r)}typeof document<"u"&&Ea();function Wr(){return qe}const Ma=500;function ja(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=Ma,accessibilityDescription:s}=t;const a=y.useRef();let{addGlobalListener:l,removeGlobalListener:u}=_.useGlobalListeners(),{pressProps:d}=wr({isDisabled:e,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),a.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),a.current=void 0},i),f.pointerType==="touch")){let m=w=>{w.preventDefault()};l(f.target,"contextmenu",m,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(f){a.current&&clearTimeout(a.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),p=_.useDescription(o&&!e?s:void 0);return{longPressProps:_.mergeProps(d,p)}}function _a(t,e){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:p,href:f,target:m,rel:w,type:g="button"}=t,b;r==="button"?b={type:g,disabled:n}:b={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:f,target:r==="a"?m:void 0,type:r==="input"?g:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?w:void 0};let{pressProps:x,isPressed:j}=wr({onPressStart:i,onPressEnd:s,onPressChange:l,onPress:o,onPressUp:a,isDisabled:n,preventFocusOnPress:u,ref:e}),{focusableProps:E}=ae.useFocusable(t,e);d&&(E.tabIndex=n?-1:E.tabIndex);let P=_.mergeProps(E,x,_.filterDOMProps(t,{labelable:!0}));return{isPressed:j,buttonProps:_.mergeProps(b,P,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:R=>{p&&(p(R),console.warn("onClick is deprecated, please use onPress"))}})}}function cr(t){return _.isAppleDevice()?t.altKey:t.ctrlKey}function Ee(t){return _.isMac()?t.metaKey:t.ctrlKey}const ka=1e3;function Da(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,o=y.useRef({search:"",timeout:null}).current,i=s=>{let a=Oa(s.key);if(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;a===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=a;let l=e.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=e.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},ka)};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:null}}}function Oa(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Ia(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,selectOnFocus:l=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:f,scrollRef:m=n,linkBehavior:w="action"}=t,{direction:g}=De.useLocale(),b=_.useRouter(),x=$=>{if($.altKey&&$.key==="Tab"&&$.preventDefault(),!n.current.contains($.target))return;const T=(L,Y)=>{if(L!=null){if(e.isLink(L)&&w==="selection"&&l&&!cr($)){Gi.flushSync(()=>{e.setFocusedKey(L,Y)});let U=m.current.querySelector(`[data-key="${CSS.escape(L.toString())}"]`);b.open(U,$);return}if(e.setFocusedKey(L,Y),e.isLink(L)&&w==="override")return;$.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(L):l&&!cr($)&&e.replaceSelection(L)}};switch($.key){case"ArrowDown":if(r.getKeyBelow){var A,v;$.preventDefault();let L=e.focusedKey!=null?r.getKeyBelow(e.focusedKey):(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r);L==null&&i&&(L=(v=r.getFirstKey)===null||v===void 0?void 0:v.call(r,e.focusedKey)),T(L)}break;case"ArrowUp":if(r.getKeyAbove){var C,B;$.preventDefault();let L=e.focusedKey!=null?r.getKeyAbove(e.focusedKey):(C=r.getLastKey)===null||C===void 0?void 0:C.call(r);L==null&&i&&(L=(B=r.getLastKey)===null||B===void 0?void 0:B.call(r,e.focusedKey)),T(L)}break;case"ArrowLeft":if(r.getKeyLeftOf){var W,k;$.preventDefault();let L=r.getKeyLeftOf(e.focusedKey);L==null&&i&&(L=g==="rtl"?(W=r.getFirstKey)===null||W===void 0?void 0:W.call(r,e.focusedKey):(k=r.getLastKey)===null||k===void 0?void 0:k.call(r,e.focusedKey)),T(L,g==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var V,ne;$.preventDefault();let L=r.getKeyRightOf(e.focusedKey);L==null&&i&&(L=g==="rtl"?(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,e.focusedKey):(ne=r.getFirstKey)===null||ne===void 0?void 0:ne.call(r,e.focusedKey)),T(L,g==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){$.preventDefault();let L=r.getFirstKey(e.focusedKey,Ee($));e.setFocusedKey(L),Ee($)&&$.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(L):l&&e.replaceSelection(L)}break;case"End":if(r.getLastKey){$.preventDefault();let L=r.getLastKey(e.focusedKey,Ee($));e.setFocusedKey(L),Ee($)&&$.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(L):l&&e.replaceSelection(L)}break;case"PageDown":if(r.getKeyPageBelow){$.preventDefault();let L=r.getKeyPageBelow(e.focusedKey);T(L)}break;case"PageUp":if(r.getKeyPageAbove){$.preventDefault();let L=r.getKeyPageAbove(e.focusedKey);T(L)}break;case"a":Ee($)&&e.selectionMode==="multiple"&&a!==!0&&($.preventDefault(),e.selectAll());break;case"Escape":$.preventDefault(),s||e.clearSelection();break;case"Tab":if(!p){if($.shiftKey)n.current.focus();else{let L=ae.getFocusableTreeWalker(n.current,{tabbable:!0}),Y,U;do U=L.lastChild(),U&&(Y=U);while(U);Y&&!Y.contains(document.activeElement)&&_.focusWithoutScrolling(Y)}break}}},j=y.useRef({top:0,left:0});_.useEvent(m,"scroll",f?null:()=>{j.current={top:m.current.scrollTop,left:m.current.scrollLeft}});let E=$=>{if(e.isFocused){$.currentTarget.contains($.target)||e.setFocused(!1);return}if($.currentTarget.contains($.target)){if(e.setFocused(!0),e.focusedKey==null){let v=B=>{B!=null&&(e.setFocusedKey(B),l&&e.replaceSelection(B))},C=$.relatedTarget;var T,A;C&&$.currentTarget.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_FOLLOWING?v((T=e.lastSelectedKey)!==null&&T!==void 0?T:r.getLastKey()):v((A=e.firstSelectedKey)!==null&&A!==void 0?A:r.getFirstKey())}else f||(m.current.scrollTop=j.current.top,m.current.scrollLeft=j.current.left);if(!f&&e.focusedKey!=null){let v=m.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);v&&(v.contains(document.activeElement)||_.focusWithoutScrolling(v),Wr()==="keyboard"&&_.scrollIntoViewport(v,{containingElement:n.current}))}}},P=$=>{$.currentTarget.contains($.relatedTarget)||e.setFocused(!1)};const R=y.useRef(o);y.useEffect(()=>{if(R.current){let $=null;o==="first"&&($=r.getFirstKey()),o==="last"&&($=r.getLastKey());let T=e.selectedKeys;if(T.size){for(let A of T)if(e.canSelectItem(A)){$=A;break}}e.setFocused(!0),e.setFocusedKey($),$==null&&!d&&ae.focusSafely(n.current)}},[]);let S=y.useRef(e.focusedKey);y.useEffect(()=>{let $=Wr();if(e.isFocused&&e.focusedKey!=null&&(m!=null&&m.current)){let T=m.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);T&&($==="keyboard"||R.current)&&(f||_.scrollIntoView(m.current,T),$!=="virtual"&&_.scrollIntoViewport(T,{containingElement:n.current}))}e.isFocused&&e.focusedKey==null&&S.current!=null&&ae.focusSafely(n.current),S.current=e.focusedKey,R.current=!1},[f,m,e.focusedKey,e.isFocused,n]);let D={onKeyDown:x,onFocus:E,onBlur:P,onMouseDown($){m.current===$.target&&$.preventDefault()}},{typeSelectProps:h}=Da({keyboardDelegate:r,selectionManager:e});u||(D=_.mergeProps(h,D));let M;return d||(M=e.focusedKey==null?0:-1),{collectionProps:{...D,tabIndex:M}}}function Aa(t){let{selectionManager:e,key:r,ref:n,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:s,isDisabled:a,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d="action"}=t,p=_.useRouter(),f=k=>{if(k.pointerType==="keyboard"&&cr(k))e.toggleSelection(r);else{if(e.selectionMode==="none")return;if(e.isLink(r)){if(d==="selection"){p.open(n.current,k),e.setSelectedKeys(e.selectedKeys);return}else if(d==="override"||d==="none")return}e.selectionMode==="single"?e.isSelected(r)&&!e.disallowEmptySelection?e.toggleSelection(r):e.replaceSelection(r):k&&k.shiftKey?e.extendSelection(r):e.selectionBehavior==="toggle"||k&&(Ee(k)||k.pointerType==="touch"||k.pointerType==="virtual")?e.toggleSelection(r):e.replaceSelection(r)}};y.useEffect(()=>{r===e.focusedKey&&e.isFocused&&!i&&(s?s():document.activeElement!==n.current&&ae.focusSafely(n.current))},[n,r,e.focusedKey,e.childFocusStrategy,e.isFocused,i]),a=a||e.isDisabled(r);let m={};!i&&!a?m={tabIndex:r===e.focusedKey?0:-1,onFocus(k){k.target===n.current&&e.setFocusedKey(r)}}:a&&(m.onMouseDown=k=>{k.preventDefault()});let w=e.isLink(r)&&d==="override",g=e.isLink(r)&&d!=="selection"&&d!=="none",b=!a&&e.canSelectItem(r)&&!w,x=(l||g)&&!a,j=x&&(e.selectionBehavior==="replace"?!b:!b||e.isEmpty),E=x&&b&&e.selectionBehavior==="replace",P=j||E,R=y.useRef(null),S=P&&b,D=y.useRef(!1),h=y.useRef(!1),M=k=>{l&&l(),g&&p.open(n.current,k)},$={};o?($.onPressStart=k=>{R.current=k.pointerType,D.current=S,k.pointerType==="keyboard"&&(!P||Yr())&&f(k)},u?($.onPressUp=j?null:k=>{k.pointerType!=="keyboard"&&b&&f(k)},$.onPress=j?M:null):$.onPress=k=>{if(j||E&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!Gr())return;M(k)}else k.pointerType!=="keyboard"&&b&&f(k)}):($.onPressStart=k=>{R.current=k.pointerType,D.current=S,h.current=j,b&&(k.pointerType==="mouse"&&!j||k.pointerType==="keyboard"&&(!x||Yr()))&&f(k)},$.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&P&&Gr()||k.pointerType==="mouse"&&h.current)&&(P?M(k):b&&f(k))}),m["data-key"]=r,$.preventFocusOnPress=i;let{pressProps:T,isPressed:A}=wr($),v=E?k=>{R.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),M(k))}:void 0,{longPressProps:C}=ja({isDisabled:!S,onLongPress(k){k.pointerType==="touch"&&(f(k),e.setSelectionBehavior("toggle"))}}),B=k=>{R.current==="touch"&&D.current&&k.preventDefault()},W=e.isLink(r)?k=>{_.openLink.isOpening||k.preventDefault()}:void 0;return{itemProps:_.mergeProps(m,b||j?T:{},S?C:{},{onDoubleClick:v,onDragStartCapture:B,onClick:W}),isPressed:A,isSelected:e.isSelected(r),isFocused:e.isFocused&&e.focusedKey===r,isDisabled:a,allowsSelection:b,hasAction:P}}function Gr(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Yr(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class La{getNextKey(e){for(e=this.collection.getKeyAfter(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,r,n){let o=this.getItem(e);if(!o)return null;let i=o.getBoundingClientRect();do e=r(e),o=this.getItem(e);while(o&&n(i,o.getBoundingClientRect()));return e}isSameRow(e,r){return e.top===r.top||e.left!==r.left}isSameColumn(e,r){return e.left===r.left||e.top!==r.top}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,r){return r?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();for(;e!=null;){let r=this.collection.getItem(e);if((r==null?void 0:r.type)==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return this.ref.current.querySelector(`[data-key="${CSS.escape(e.toString())}"]`)}getKeyPageAbove(e){let r=this.ref.current,n=this.getItem(e);if(!n)return null;if(!_.isScrollable(r))return this.getFirstKey();let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-r.scrollLeft,a=Math.max(0,i.x-s+i.width-o.width);for(;n&&i.x-s>a;)e=this.getKeyAbove(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}else{let s=o.y-r.scrollTop,a=Math.max(0,i.y-s+i.height-o.height);for(;n&&i.y-s>a;)e=this.getKeyAbove(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}return e??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.getItem(e);if(!n)return null;if(!_.isScrollable(r))return this.getLastKey();let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-r.scrollLeft,a=Math.min(r.scrollWidth,i.x-s-i.width+o.width);for(;n&&i.x-s<a;)e=this.getKeyBelow(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}else{let s=o.y-r.scrollTop,a=Math.min(r.scrollHeight,i.y-s-i.height+o.height);for(;n&&i.y-s<a;)e=this.getKeyBelow(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}return e??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o),s=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(s,e)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...e){if(e.length===1){let r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.orientation=r.orientation,this.direction=r.direction,this.layout=r.layout||"stack"}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Na(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i}=t,s=De.useCollator({usage:"search",sensitivity:"base"}),a=e.disabledBehavior,l=y.useMemo(()=>i||new La(r,a==="selection"?new Set:n,o,s),[i,r,n,o,s,a]),{collectionProps:u}=Ia({...t,ref:o,selectionManager:e,keyboardDelegate:l});return{listProps:u}}function Ba(t,e,r){let{item:n}=t,o=_.useId(),i=_.useId(),s=e.disabledKeys.has(n.key),{itemProps:a}=Aa({selectionManager:e.selectionManager,key:n.key,ref:r}),{buttonProps:l}=_a(_.mergeProps(a,{id:o,elementType:"button",isDisabled:s,onPress:()=>e.toggleKey(n.key)}),r),u=e.expandedKeys.has(n.key);return{buttonProps:{...l,"aria-expanded":u,"aria-controls":u?i:void 0},regionProps:{id:i,role:"region","aria-labelledby":o}}}function Ka(t,e,r){let{listProps:n}=Na({...t,...e,allowsTabNavigation:!0,ref:r});return{accordionProps:{...n,tabIndex:void 0}}}function vo(){const t=y.createContext(void 0);function e(){const r=y.useContext(t);if(r===void 0)throw new Error("useCtx must be inside a Provider");return r}return[e,t.Provider]}function xo(){const t=y.createContext(void 0);function e(){const r=y.useContext(t);return r===void 0?{}:r}return[e,t.Provider]}const[$o,Fa]=xo();function wo(t){const{state:e,children:r,TransitionAnimation:n}=t,o=y.useMemo(()=>({state:e,TransitionAnimation:n}),[e,n]);return c.jsx(Fa,{value:o,children:r})}const G=({as:t="div",themeName:e="box",tokens:r,customTheme:n,children:o,className:i,...s})=>{const a=I(e,r,n);return c.jsx(t,{...s,className:a,children:o})},Pe=y.forwardRef((t,e)=>{const{as:r="div",tokens:n,themeName:o="box",customTheme:i,children:s,...a}=t,l=I(o,n,i);return c.jsx(r,{...a,ref:e,className:l,children:s})}),qa=t=>{const{isVisible:e,children:r,themeName:n,tokens:o,customTheme:i,...s}=t,a=oe.useTransition(e,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),l=I(n,o,i);return a((u,d)=>d&&c.jsx(oe.animated.div,{...s,style:u,className:l,children:r}))},Cr=y.forwardRef((t,e)=>{var w;const{as:r="a",handlePress:n,children:o,as:i,customTheme:s,tokens:a,themeName:l="button",nextLinkProps:u,...d}=t,p=e,{linkProps:f}=N.useLink({...t,...u,href:t.href??((w=u==null?void 0:u.href)==null?void 0:w.toString()),elementType:i==null?void 0:i.toString(),onPress:n},e??p),m=I(l,a,s);return c.jsx(N.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsx(r,{ref:p,...f,...u,...d,className:m,children:o})})}),Po=y.forwardRef((t,e)=>{const{as:r="button",handlePress:n,children:o,as:i,customTheme:s,tokens:a,themeName:l="button",isDisabled:u=!1,...d}=t,p=e,{buttonProps:f}=N.useButton({...t,isDisabled:u,elementType:i,onPress:n},e??p),m=I(l,a,s);return c.jsx(N.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:c.jsx(r,{ref:p,...f,...d,className:m,children:o})})}),Ue=y.forwardRef((t,e)=>{const{as:r}=t;return r==="a"?c.jsx(Cr,{ref:e,...t}):c.jsx(Po,{ref:e,...t})}),Ua=t=>{const{as:e}=t,r=y.useRef(null);return e==="a"?c.jsx(Cr,{ref:r,...t}):c.jsx(Po,{ref:r,...t})},ve=y.memo(Ua),Va=(t,e)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+e)))})},Ha=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...t}),To=y.memo(Ha),za=Object.freeze(Object.defineProperty({__proto__:null,default:To},Symbol.toStringTag,{value:"Module"})),Wa=t=>{const{icon:e,...r}=t,n=y.useMemo(()=>y.lazy(()=>Va(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>Pu),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>Cu),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>Ru),"../icons/Check.tsx":()=>Promise.resolve().then(()=>Mu),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>_u),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>Du),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>Iu),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>Lu),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>Bu),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>Fu),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>Uu),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>za),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>Hu),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>Wu),"../icons/Link.tsx":()=>Promise.resolve().then(()=>Yu),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>Qu),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>Zu),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>td),"../icons/Share.tsx":()=>Promise.resolve().then(()=>nd),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>id),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>ad),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>cd),"../icons/X.tsx":()=>Promise.resolve().then(()=>dd),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>hd),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>md)}),`../icons/${e||"ArrowRight"}.tsx`)),[e]);return c.jsx(y.Suspense,{fallback:c.jsx(To,{className:"overflow-visible pointer-events-none"}),children:c.jsx(n,{...r,className:"overflow-visible pointer-events-none",...t})})},ce=t=>{const{icon:e,as:r="span",tokens:n,customTheme:o,themeName:i="icon",children:s,...a}=t,l=I(i,n,o);return typeof e!="string"?c.jsxs(r,{...a,className:l,children:[s,e]}):c.jsxs(r,{className:l,children:[s,c.jsx(Wa,{icon:e,...a})]})},Ga=t=>{const{item:e,tokens:r,customTheme:n}=t,{props:o,rendered:i,key:s}=e,{icon:a,title:l,onOpenChange:u,tokens:d,themeName:p}=o??{},{themeName:f=p}=t,m=y.useRef(null),{state:w,TransitionAnimation:g=qa}=$o(),{buttonProps:{onClick:b,onKeyDown:x,onPointerDown:j,...E},regionProps:P}=Ba(t,w,m),R=w.selectionManager.selectedKeys.has(s),S={...r,isOpen:R,...d},D=h=>{h.continuePropagation(),w.selectionManager.select(e.key),w.toggleKey(e.key)};return Yi.useUpdateEffect(()=>{u==null||u(R)},[R]),c.jsxs(G,{themeName:`${f}.container`,tokens:S,customTheme:n,children:[c.jsx(N.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsxs(Ue,{...E,handlePress:D,ref:m,themeName:`${f}.button`,tokens:S,children:[c.jsx(G,{themeName:`${f}.title`,tokens:S,children:l}),a&&c.jsx(G,{themeName:`${f}.icon`,tokens:S,children:c.jsx(ce,{icon:a})})]})}),c.jsx(g,{isVisible:R,themeName:`${f}.region`,...P,tokens:S,children:c.jsx(G,{themeName:`${f}.content`,tokens:S,children:c.jsx(N.FocusScope,{autoFocus:!0,children:i})})})]})};function Co(t){const{children:e,defaultSelectedKeys:r,selectionMode:n="single",selectedKeys:o,onSelectionChange:i,...s}=t,a=Array.isArray(e)?e:[e],l=r??a.reduce((d,p)=>{const{props:f,key:m}=p,{defaultOpen:w}=f??{};return!w||!m||d.push(m),d},[]);return Oe.useTreeState({children:e,selectionMode:n,defaultExpandedKeys:l,defaultSelectedKeys:l,expandedKeys:o,selectedKeys:o,onSelectionChange:i,...s})}const Ya=t=>{const{themeName:e="accordion",tokens:r,customTheme:n,TransitionAnimation:o}=t,i=y.useRef(null),s=Co(t),{accordionProps:a}=Ka(t,s,i);return c.jsx(wo,{state:s,TransitionAnimation:o,children:c.jsx(Pe,{themeName:`${e}.wrapper`,tokens:r,customTheme:n,ref:i,...a,children:[...s.collection].map(l=>c.jsx(Ga,{item:l,themeName:e,tokens:r},l.key))})})},So=t=>null;So.getCollectionNode=function*(e){const{children:r,childItems:n,title:o}=e,i=e.textValue||(typeof r=="string"?r:"")||e["aria-label"]||"";yield{type:"item",props:e,rendered:r,textValue:i,"aria-label":e["aria-label"],hasChildNodes:!1,*childNodes(){if(n)for(const s of n)yield{type:"item",value:s};else if(o){const s=[];y.Children.forEach(r,a=>{s.push({type:"item",element:a})}),yield*s}}}};const Ja=So,Qa=t=>{const{sharingLinksList:e,id:r,isOpen:n,setIsOpen:o,onShare:i,themeName:s="shareButton",tokens:a,customTheme:l}=t,u=I(`${s}.linksList`,{...a,isOpen:n},l),d=N.useFocusManager(),p=f=>{f.key==="Escape"&&o(!1);const{listDirection:m}=a??{};m==="row"&&(f.key==="ArrowRight"&&(d==null||d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowLeft"&&(d==null||d.focusPrevious({wrap:!0}),f.preventDefault())),m==="column"&&(f.key==="ArrowDown"&&(d==null||d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowUp"&&(d==null||d.focusPrevious({wrap:!0}),f.preventDefault()))};return c.jsx("div",{className:u,id:r,role:"listbox",tabIndex:-1,onKeyDown:p,children:e==null?void 0:e.map(f=>{const{ariaLabel:m,onClick:w,href:g,icon:b,key:x}=f;return c.jsx(ve,{themeName:`${s}.link`,tokens:{...a,isOpen:n},handlePress:()=>{i==null||i(x),w==null||w(x)},"aria-label":m,...g?{href:g,rel:"noopener noreferrer",target:"_blank",as:"a"}:{},role:"option",children:c.jsx(ce,{themeName:`${s}.linkIcons`,icon:b})},x)})})},Xa=t=>{const{ariaLabel:e,icon:r,id:n,sharingLinksList:o,onShare:i,customTheme:s,themeName:a="shareButton",tokens:l,...u}=t,[d,p]=y.useState(!1),f=I(`${a}.container`,l,s),m=g=>{p(!d),!d&&setTimeout(()=>{var x,j;const b=(j=(x=g.target.parentElement)==null?void 0:x.lastChild)==null?void 0:j.firstChild;b==null||b.focus()})},w=g=>{const b=g.currentTarget.firstChild,x=g.currentTarget.lastChild,j=x.firstChild,E=x.lastChild,{listDirection:P}=l??{};P==="row"&&(g.key==="ArrowRight"&&g.target===b&&(j==null||j.focus(),g.preventDefault()),g.key==="ArrowLeft"&&g.target===b&&(E.focus(),g.preventDefault())),P==="column"&&(g.key==="ArrowDown"&&g.target===b&&(j==null||j.focus(),g.preventDefault()),g.key==="ArrowUp"&&g.target===b&&(E.focus(),g.preventDefault())),g.key==="Escape"&&(p(!1),b==null||b.focus()),document.activeElement===x&&(b==null||b.focus())};return c.jsx(N.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:d,children:c.jsxs("div",{className:f,onKeyDown:w,children:[c.jsx(Ue,{themeName:`${a}.button`,tokens:{...l,isOpen:d},"aria-label":e,"aria-haspopup":"listbox","aria-expanded":d?"true":"false","aria-controls":"share-buttons",handlePress:m,...u,children:c.jsx(ce,{themeName:`${a}.icon`,icon:r??"Share"})}),d&&c.jsx(Qa,{id:n,sharingLinksList:o,onShare:i,isOpen:d,setIsOpen:p,themeName:a,customTheme:s,tokens:l})]})})};function Ro(t,e){const{type:r="dialog"}=t,{triggerProps:{onPress:n,...o},overlayProps:i}=N.useOverlayTrigger({type:r},e),s={handlePress:n,...o},a=_.useSlotId();return{openTriggerProps:{"aria-labelledby":a,...s},triggerProps:s,labelProps:{id:a},overlayProps:{...i,"aria-labelledby":a}}}const[Sr,Za]=vo();function Eo(t){const{children:e,defaultSelectedKey:r,onOpenCallback:n,onCloseCallback:o,defaultIsOpen:i=!1,type:s="dialog"}=t,a=y.useRef(null),l=y.useRef(null),u=Oe.useOverlayTriggerState({defaultOpen:i,onOpenChange(m){if(!m){o==null||o();return}n==null||n()}}),{triggerProps:d,overlayProps:p}=Ro({type:s},u),f=y.useMemo(()=>({overlayProps:p,defaultSelectedKey:r,overlayState:u,buttonProps:{closeButtonProps:d,closeButtonRef:l,openButtonProps:d,openButtonRef:a}}),[u,r,d,p]);return c.jsx(Za,{value:f,children:e})}const Mo=({isVisible:t,children:e})=>oe.useTransition(t,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((n,o)=>o&&c.jsx(oe.animated.div,{style:n,children:e})),el="fixed",tl=({isVisible:t,children:e})=>oe.useTransition(t,{from:{opacity:0,position:el,left:0,top:0,zIndex:1e3,bottom:0,height:"100%"},enter:{opacity:1},leave:{opacity:0},config:oe.config.stiff})((n,o)=>o&&c.jsx(oe.animated.div,{style:n,children:e})),rl=({isVisible:t,children:e})=>oe.useTransition(t,{from:{opacity:0,scale:.75},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:oe.config.stiff})((n,o)=>o&&c.jsx(oe.animated.div,{style:{position:"fixed",left:0,top:0,bottom:0,zIndex:1e3,width:"100%",height:"100%",...n},children:e})),nl=t=>{const{children:e,themeName:r,tokens:n,customTheme:o}=t,i=y.useRef(null),{dialogProps:s}=N.useDialog(t,i);return c.jsx(Pe,{themeName:`${r}.dialog`,tokens:n,customTheme:o,ref:i,"aria-modal":!0,...s,children:c.jsx(N.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:c.jsx(N.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:e})})})},ol=t=>{const{themeName:e,tokens:r,customTheme:n,children:o,state:i,...s}=t,a=y.useRef(null),{modalProps:l,underlayProps:u}=N.useModalOverlay(s,i,a);return c.jsx(G,{themeName:`${e}.underlay`,tokens:r,customTheme:n,...u,children:c.jsx(Pe,{ref:a,themeName:`${e}.overlay`,tokens:r,...l,children:o})})},Rr=t=>{const{children:e,transitionComponent:r=rl,state:n,themeName:o,tokens:i,...s}=t;return c.jsx(N.OverlayContainer,{children:c.jsx(r,{isVisible:n.isOpen,children:c.jsx(ol,{themeName:o,tokens:i,state:n,...s,children:c.jsx(nl,{themeName:o,tokens:i,...s,children:e})})})})},il=t=>{const{children:e,closeBtnRender:r,themeName:n="sidePanel",tokens:o,TransitionAnimation:i=Mo,PanelTransition:s=tl,customTheme:a}=t,l=I(`${n}.wrapper`,o,a),u=I(`${n}.container`,o,a),d=I(`${n}.innerContainer`,o,a),{overlayState:p,overlayProps:f}=Sr();return c.jsx(Rr,{state:p,...f,transitionComponent:s,isDismissable:!0,children:c.jsxs(Ji,{className:l,children:[r&&r(),c.jsx(i,{isVisible:p.isOpen,children:c.jsx("div",{className:u,children:c.jsx("div",{className:d,children:e})})})]})})},jo=y.memo(il),sl=t=>{const{themeName:e,tokens:r,children:n,...o}=t;return c.jsx(ve,{themeName:e,tokens:r,...o,children:c.jsx(ce,{icon:"CloseBtn"})})},al=t=>{const{children:e,thumbnailContent:r,label:n,themeName:o="lightBox",tokens:i,closeButton:s=sl,setOpen:a,isOpen:l,closeButtonAriaLabel:u}=t,d=Oe.useOverlayTriggerState(t),{openTriggerProps:p,triggerProps:f,overlayProps:m,labelProps:w}=Ro({...t,type:"dialog"},d),g=b=>{var x;a==null||a(!l),(x=p.handlePress)==null||x.call(p,b)};return c.jsxs(c.Fragment,{children:[c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs(ve,{themeName:`${o}.wrapper`,tokens:i,...p,handlePress:g,children:[n&&c.jsx(Z,{themeName:`${o}.label`,tokens:{size:"footnotes"},...w,children:n}),r]})}),c.jsxs(Rr,{themeName:`${o}.modal`,tokens:i,state:d,...m,children:[c.jsx(s,{themeName:`${o}.closeBtn`,tokens:i,"aria-label":u,...f}),c.jsx(G,{themeName:`${o}.container`,tokens:i,children:e})]})]})},ll=y.forwardRef((t,e)=>{const{isOpen:r,onClose:n,children:o,positionProps:i,themeName:s="popover",tokens:a,customTheme:l,isDismissable:u,shouldCloseOnBlur:d,...p}=t,{overlayProps:f}=N.useOverlay({isDismissable:u,shouldCloseOnBlur:d,isOpen:r,onClose:n},e),{modalProps:m}=N.useModal(),{dialogProps:w}=N.useDialog({},e),g=I(`${s}.popover`,a,l);return c.jsx(N.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:c.jsxs(Pe,{customTheme:g,...N.mergeProps(f,m,w),ref:e,...i,...p,children:[y.Children.map(o,b=>c.jsx(N.FocusRing,{focusRingClass:"has-focus-ring",children:b})),c.jsx(N.DismissButton,{onDismiss:n})]})})});function cl(t){const{children:e,buttonProps:r,placement:n="right",offset:o=5,themeName:i="popover",tokens:s,customTheme:a,...l}=t,u=Oe.useOverlayTriggerState({}),d=y.useRef(null),p=y.useRef(null),{triggerProps:f,overlayProps:m}=N.useOverlayTrigger({type:"dialog"},u,d),{overlayProps:w}=N.useOverlayPosition({targetRef:d,overlayRef:p,placement:n,offset:o,isOpen:u.isOpen}),{onPress:g,...b}=f;return c.jsxs(c.Fragment,{children:[c.jsx(Ue,{themeName:`${i}.button`,handlePress:g,...r,...b,ref:d}),u.isOpen&&c.jsx(N.OverlayContainer,{children:c.jsx(ll,{themeName:i,tokens:s,customTheme:a,...m,...l,positionProps:w,ref:p,isOpen:u.isOpen,onClose:u.close,children:e})})]})}const ul=({content:t,themeName:e="wysiwyg",...r})=>c.jsx(Z,{...r,themeName:e,dangerouslySetInnerHTML:{__html:Qi.sanitize(t,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","target"]})}}),dl=t=>{const{as:e="time",date:r,tokens:n,customTheme:o,dateFormatterOptions:i={month:"long",day:"numeric",year:"numeric"},themeName:s="typography",...a}=t,l=N.useIsSSR(),u=new Date(r),p=De.useDateFormatter(i).format(u),f=I(s,n,o);return l||br.isEmpty(p)?null:c.jsx(e,{...a,dateTime:u.toISOString(),className:f,children:p})},fl=({item:t,state:e,themeName:r="li"})=>{const n=y.useRef(null),{optionProps:o,isFocusVisible:i}=N.useOption({key:t.key},e,n),s=I(r);return c.jsx(uo,{as:"li",...o,tokens:{className:`${s} ${i?"has-focus-ring":""}`},ref:n,children:t.rendered})},hl=t=>{const e=y.useRef(null),{listBoxRef:r=e,state:n,themeName:o="option"}=t,{listBoxProps:i}=N.useListBox(t,n,r);return c.jsx(N.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:c.jsx(uo,{...i,ref:r,as:"ul",themeName:`${o}.ul`,children:[...n.collection].map(s=>c.jsx(fl,{themeName:`${o}.li`,item:s,state:n},s.key))})})},pl=t=>{const e=y.useRef(null),{popoverRef:r=e,state:n,children:o,themeName:i="popover",tokens:s,customTheme:a,triggerRef:l,...u}=t,{popoverProps:d,underlayProps:p}=N.usePopover({...t,popoverRef:r,triggerRef:l},n);return c.jsxs(N.Overlay,{children:[c.jsx("div",{...p,style:{position:"fixed",inset:0}}),c.jsx(G,{...u,children:c.jsxs(Pe,{...d,ref:r,themeName:i,tokens:s,children:[c.jsx(N.DismissButton,{onDismiss:n.close}),o,c.jsx(N.DismissButton,{onDismiss:n.close})]})})]})},_o=t=>{var T;const{name:e,placeholderLabel:r,disabled:n,hookFormRef:o,isError:i=!1,errorMessage:s,themeName:a="select",tokens:l,customTheme:u,label:d,onSelectionChange:p,defaultValue:f,value:m,icon:w,popoverMatchesWidth:g,...b}=t,x=y.useRef(null),j=Oe.useSelectState({...b,selectedKey:m,defaultSelectedKey:f,onSelectionChange:p}),{triggerProps:E,menuProps:P,labelProps:R}=N.useSelect({...b},j,x),S=I(`${a}.wrapper`,l,u),D=I(`${a}.container`,l,u),{onPress:h,onPressStart:M,...$}=E;return c.jsxs("div",{className:S,children:[d&&c.jsx(Z,{...R,as:"label",themeName:`${a}.label`,children:d}),c.jsx(N.HiddenSelect,{...o,state:j,triggerRef:x,name:e,isDisabled:!0}),c.jsxs("div",{className:D,children:[c.jsxs(Ue,{...$,handlePress:A=>{h==null||h(A),M==null||M(A)},ref:x,disabled:n,themeName:`${a}.button`,tokens:{...l,intent:i?"error":"default"},children:[j.selectedItem?j.selectedItem.rendered:r,c.jsx(ce,{icon:w??"ArrowDown"})]}),j.isOpen&&x.current&&c.jsx(pl,{tokens:l,state:j,triggerRef:x,placement:"bottom",themeName:`${a}.popover`,style:{[`--${a}-container-width`]:`${(T=x.current)==null?void 0:T.offsetWidth}px`},children:c.jsx(hl,{...P,themeName:a,state:j})}),i&&c.jsx(Z,{tokens:{...l,isError:i},themeName:`${a}.errorMessage`,children:s})]})]})},ml=t=>{const{name:e,required:r,children:n}=t,{register:o,formState:i}=ye.useFormContext(),s=ye.get(i.errors,e),a=(s==null?void 0:s.message)??void 0,{ref:l}=o(e,{required:r?"This is an error message":!1});return c.jsx(_o,{...t,isError:!br.isEmpty(a),errorMessage:a,hookFormRef:l,children:n})},gl=t=>{const{id:e,label:r,isDisabled:n=!1,isError:o=!1,errorMessage:i,ariaLabel:s,icon:a,themeName:l="checkbox",tokens:u,customTheme:d}=t,p=es.useToggleState(t),f=y.useRef(null),{inputProps:m}=Xi.useCheckbox(t,p,f),{isSelected:w}=p,{focusProps:g,isFocusVisible:b}=ae.useFocusRing(),x={...u,selected:w,isDisabled:n,isError:o,isFocusVisible:b},j=I(`${l}.container`,x,d),E=I(`${l}.checkBox`,x,d),P=I(`${l}.checkMark`,x,d),R=I(`${l}.checkMarkIcon`,x,d);return c.jsxs("div",{children:[c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("label",{className:j,htmlFor:e,"aria-label":s,"aria-disabled":n,children:[c.jsx(Zi.VisuallyHidden,{children:c.jsx("input",{type:"checkbox",ref:f,"aria-labelledby":e,...m,...g})}),c.jsx("div",{className:E,"aria-checked":w,role:"checkbox","aria-labelledby":e,children:c.jsx("div",{className:P,children:a&&c.jsx(ce,{icon:a,customTheme:R})})}),c.jsx(Z,{themeName:`${l}.label`,tokens:x,children:r})]})}),o&&i&&c.jsx(Z,{themeName:`${l}.errorMessage`,tokens:x,children:i})]})},Er={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ko={...Er,customError:!0,valid:!1},Le={isInvalid:!1,validationDetails:Er,validationErrors:[]},bl=y.createContext({}),Jr="__formValidationState"+Date.now();function Do(t){if(t[Jr]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=t[Jr];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return yl(t)}function yl(t){let{isInvalid:e,validationState:r,name:n,value:o,builtinValidation:i,validate:s,validationBehavior:a="aria"}=t;r&&(e||(e=r==="invalid"));let l=e?{isInvalid:!0,validationErrors:[],validationDetails:ko}:null,u=y.useMemo(()=>Qr(vl(s,o)),[s,o]);i!=null&&i.validationDetails.valid&&(i=null);let d=y.useContext(bl),p=y.useMemo(()=>n?Array.isArray(n)?n.flatMap($=>ur(d[$])):ur(d[n]):[],[d,n]),[f,m]=y.useState(d),[w,g]=y.useState(!1);d!==f&&(m(d),g(!1));let b=y.useMemo(()=>Qr(w?[]:p),[w,p]),x=y.useRef(Le),[j,E]=y.useState(Le),P=y.useRef(Le),R=()=>{if(!S)return;D(!1);let $=u||i||x.current;kt($,P.current)||(P.current=$,E($))},[S,D]=y.useState(!1);return y.useEffect(R),{realtimeValidation:l||b||u||i||Le,displayValidation:a==="native"?l||b||j:l||b||u||i||j,updateValidation($){a==="aria"&&!kt(j,$)?E($):x.current=$},resetValidation(){let $=Le;kt($,P.current)||(P.current=$,E($)),a==="native"&&D(!1),g(!0)},commitValidation(){a==="native"&&D(!0),g(!0)}}}function ur(t){return t?Array.isArray(t)?t:[t]:[]}function vl(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return ur(r)}return[]}function Qr(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:ko}:null}function kt(t,e){return t===e?!0:t&&e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function xl(...t){let e=new Set,r=!1,n={...Er};for(let s of t){var o,i;for(let a of s.validationErrors)e.add(a);r||(r=s.isInvalid);for(let a in n)(o=n)[i=a]||(o[i]=s.validationDetails[a])}return n.valid=!r,{isInvalid:r,validationErrors:[...e],validationDetails:n}}function Oo(t,e,r){let[n,o]=y.useState(t||e),i=y.useRef(t!==void 0),s=t!==void 0;y.useEffect(()=>{let u=i.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?t:n,l=y.useCallback((u,...d)=>{let p=(f,...m)=>{r&&(Object.is(a,f)||r(f,...m)),s||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((m,...w)=>{let g=u(s?a:m,...w);return p(g,...d),s?m:g})):(s||o(u),p(u,...d))},[s,a,r]);return[a,l]}function $l(t={}){let[e,r]=Oo(t.value,t.defaultValue||[],t.onChange),n=!!t.isRequired&&e.length===0,o=y.useRef(new Map),i=Do({...t,value:e}),s=i.displayValidation.isInvalid;var a;return{...i,value:e,setValue(u){t.isReadOnly||t.isDisabled||r(u)},isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isSelected(u){return e.includes(u)},addValue(u){t.isReadOnly||t.isDisabled||e.includes(u)||r(e.concat(u))},removeValue(u){t.isReadOnly||t.isDisabled||e.includes(u)&&r(e.filter(d=>d!==u))},toggleValue(u){t.isReadOnly||t.isDisabled||(e.includes(u)?r(e.filter(d=>d!==u)):r(e.concat(u)))},setInvalid(u,d){let p=new Map(o.current);d.isInvalid?p.set(u,d):p.delete(u),o.current=p,i.updateValidation(xl(...p.values()))},validationState:(a=t.validationState)!==null&&a!==void 0?a:s?"invalid":null,isInvalid:s,isRequired:n}}const Io=y.createContext(null),wl=t=>{const{children:e,state:r}=t;return c.jsx(Io.Provider,{value:r,children:e})};function Pl(){const t=y.useContext(Io);return t||null}const Tl=t=>{const{label:e,isError:r=!1,errorMessage:n,isDisabled:o=!1,children:i,themeName:s="checkboxGroup",tokens:a}=t,l=$l(t),{groupProps:u,labelProps:d,errorMessageProps:p}=N.useCheckboxGroup(t,l),f={...a,isDisabled:o};return c.jsxs(G,{...u,"aria-disabled":o,themeName:`${s}.checkboxGroup`,tokens:f,children:[e&&c.jsx(Z,{...d,tokens:{size:"h6"},children:e}),c.jsx(G,{themeName:`${s}.checkboxGroupItemsGroup`,children:c.jsx(wl,{state:l,children:i})}),r&&n&&c.jsx(Z,{...p,tokens:{isError:!0},children:n})]})},Cl=t=>{const{id:e,ariaLabel:r,icon:n,state:o,themeName:i="checkbox",customTheme:s,tokens:a,isDisabled:l=!1,isError:u=!1,value:d,errorMessage:p,label:f}=t,m=y.useRef(null),{inputProps:w}=N.useCheckboxGroupItem(t,o,m),{isSelected:g}=o,b={...a,selected:g(d),isDisabled:l,isError:u},x=I(`${i}.container`,b,s),j=I(`${i}.checkBox`,b,s),E=I(`${i}.checkMark`,b,s),P=I(`${i}.checkMarkIcon`,b,s);return c.jsxs("div",{children:[c.jsx(N.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("label",{className:x,htmlFor:e,"aria-label":r,"aria-disabled":l,children:[c.jsx(N.VisuallyHidden,{children:c.jsx("input",{ref:m,...w})}),c.jsx("div",{className:j,"aria-checked":g(d),role:"checkbox","aria-labelledby":e,children:c.jsx("div",{className:E,children:n&&c.jsx(ce,{icon:n,customTheme:P})})}),c.jsx(Z,{themeName:`${i}.label`,tokens:b,children:f})]})}),u&&p&&c.jsx(Z,{themeName:`${i}.errorMessage`,tokens:b,children:p})]})},Sl=t=>{const e=Pl();return e&&c.jsx(Cl,{state:e,...t})},Ao=t=>{const{id:e,label:r,name:n,placeholder:o,required:i,disabled:s=!1,errorMessage:a,ariaLabel:l,value:u,onBlur:d,onChange:p,fieldRef:f,themeName:m="textarea",tokens:w,customTheme:g}=t,b=y.useRef(null),{errorMessageProps:x,inputProps:j,labelProps:E}=N.useTextField(t,b),P={...w,isDisabled:s,isError:a!=null},R=I(`${m}.wrapper`,P,g),S=I(`${m}.input`,P,g),D=I(`${m}.label`,P,g),h=I(`${m}.container`,P,g);return c.jsxs("div",{children:[c.jsxs("div",{className:R,"aria-disabled":s,children:[r&&c.jsx("label",{className:D,...E,children:r}),c.jsx("div",{className:h,children:c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsx("textarea",{...j,ref:M=>{f==null||f(M),b.current=M},className:S,placeholder:o,disabled:s,required:i,id:e,name:n,"aria-label":l,"aria-labelledby":e,value:u,onBlur:d,onChange:p})})})]}),a&&c.jsx(Z,{themeName:`${m}.errorMessage`,tokens:P,...x,children:a})]})},Rl=t=>{const{name:e,required:r,minLength:n=0,maxLength:o=99999999,validation:i}=t,{register:s,formState:a}=ye.useFormContext(),l=ye.get(a.errors,e),u=(l==null?void 0:l.message)??void 0,{t:d}=yr.useTranslation("components"),{ref:p,...f}=s(e,{required:r?d("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:d("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:o,message:d("FORM.ERROR.MAX_LENGTH",{length:n})},...i});return c.jsx(Ao,{fieldRef:p,...f,...t,isError:!no.isEmpty(u),errorMessage:u})},Lo=t=>{const{label:e,isRequired:r=!1,isDisabled:n=!1,required:o,disabled:i,errorMessage:s,fieldRef:a,children:l,themeName:u="textInput",tokens:d,customTheme:p,ariaLabel:f}=t,m=o??r,w=i??n,g=y.useRef(null),{errorMessageProps:b,inputProps:x,labelProps:j}=N.useTextField({"aria-label":f,...t,isRequired:m,isDisabled:w},g),{"aria-labelledby":E,...P}={...x,required:m,disabled:w},R={...d,isDisabled:n,isRequired:r,isError:!!s},S=I(`${u}.wrapper`,R,p),D=I(`${u}.label`,R,p),h=I(`${u}.input`,R,p),M=I(`${u}.container`,R,p);return c.jsxs("div",{children:[c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("div",{"aria-disabled":n,className:S,children:[e&&c.jsx("label",{className:D,...j,children:e}),c.jsxs("div",{className:M,children:[l,c.jsx("input",{...P,className:h,ref:$=>{a==null||a($),g.current=$}})]})]})}),s&&c.jsx(Z,{themeName:`${u}.errorMessage`,tokens:R,...b,children:s})]})},El=t=>{const{name:e,required:r,isRequired:n,minLength:o=0,maxLength:i=99999999,validation:s}=t,{register:a,formState:l}=ye.useFormContext(),u=ye.get(l.errors,e),d=(u==null?void 0:u.message)??void 0,{t:p}=yr.useTranslation("components"),{ref:f,...m}=a(e,{required:r??n?p("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:o,message:p("FORM.ERROR.MIN_LENGTH",{length:o})},maxLength:{value:i,message:p("FORM.ERROR.MAX_LENGTH",{length:o})},...s});return c.jsx(Lo,{fieldRef:f,...m,...t,errorMessage:d})};function he(t,e){return t-e*Math.floor(t/e)}const No=1721426;function $e(t,e,r,n){e=Ve(t,e);let o=e-1,i=-2;return r<=2?i=0:ge(e)&&(i=-1),No-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*r-362)/12+i+n)}function ge(t){return t%4===0&&(t%100!==0||t%400===0)}function Ve(t,e){return t==="BC"?1-e:e}function Tt(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const Ml={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class pe{fromJulianDay(e){let r=e,n=r-No,o=Math.floor(n/146097),i=he(n,146097),s=Math.floor(i/36524),a=he(i,36524),l=Math.floor(a/1461),u=he(a,1461),d=Math.floor(u/365),p=o*400+s*100+l*4+d+(s!==4&&d!==4?1:0),[f,m]=Tt(p),w=r-$e(f,m,1,1),g=2;r<$e(f,m,3,1)?g=0:ge(m)&&(g=1);let b=Math.floor(((w+g)*12+373)/367),x=r-$e(f,m,b,1)+1;return new Q(f,m,b,x)}toJulianDay(e){return $e(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return Ml[ge(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return ge(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const jl={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Xr(t,e){return e=Ct(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Bo(t,e){let r=t.calendar.toJulianDay(t),n=Math.ceil(r+1-Ol(e))%7;return n<0&&(n+=7),n}function Ko(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function _l(t,e){return Zr(t)-Zr(e)}function Zr(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let Dt=null;function Fo(){return Dt==null&&(Dt=new Intl.DateTimeFormat().resolvedOptions().timeZone),Dt}function kl(t){return t.subtract({days:t.day-1})}const en=new Map;function Dl(t){if(Intl.Locale){let r=en.get(t);return r||(r=new Intl.Locale(t).maximize().region,r&&en.set(t,r)),r}let e=t.split("-")[1];return e==="u"?void 0:e}function Ol(t){let e=Dl(t);return e&&jl[e]||0}function Il(t,e){let r=t.calendar.getDaysInMonth(t);return Math.ceil((Bo(kl(t),e)+r)/7)}function tn(t){t=Ct(t,new pe);let e=Ve(t.era,t.year);return qo(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function qo(t,e,r,n,o,i,s){let a=new Date;return a.setUTCHours(n,o,i,s),a.setUTCFullYear(t,e-1,r),a.getTime()}function rn(t,e){if(e==="UTC")return 0;if(t>0&&e===Fo())return new Date(t).getTimezoneOffset()*-6e4;let{year:r,month:n,day:o,hour:i,minute:s,second:a}=Uo(t,e);return qo(r,n,o,i,s,a,0)-Math.floor(t/1e3)*1e3}const nn=new Map;function Uo(t,e){let r=nn.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),nn.set(e,r));let n=r.formatToParts(new Date(t)),o={};for(let i of n)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const on=864e5;function Al(t,e,r,n){return(r===n?[r]:[r,n]).filter(i=>Ll(t,e,i))}function Ll(t,e,r){let n=Uo(r,e);return t.year===n.year&&t.month===n.month&&t.day===n.day&&t.hour===n.hour&&t.minute===n.minute&&t.second===n.second}function Nl(t,e,r="compatible"){let n=Ho(t);if(e==="UTC")return tn(n);if(e===Fo()&&r==="compatible"){n=Ct(n,new pe);let l=new Date,u=Ve(n.era,n.year);return l.setFullYear(u,n.month-1,n.day),l.setHours(n.hour,n.minute,n.second,n.millisecond),l.getTime()}let o=tn(n),i=rn(o-on,e),s=rn(o+on,e),a=Al(n,e,o-i,o-s);if(a.length===1)return a[0];if(a.length>1)switch(r){case"compatible":case"earlier":return a[0];case"later":return a[a.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(o-i,o-s);case"compatible":case"later":return Math.max(o-i,o-s);case"reject":throw new RangeError("No such absolute time found")}}function Vo(t,e,r="compatible"){return new Date(Nl(t,e,r))}function Ho(t,e){let r=0,n=0,o=0,i=0;if("timeZone"in t)({hour:r,minute:n,second:o,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:n,second:o,millisecond:i}=e),new vt(t.calendar,t.era,t.year,t.month,t.day,r,n,o,i)}function Ct(t,e){if(t.calendar.identifier===e.identifier)return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),n=t.copy();return n.calendar=e,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,ke(n),n}function Mr(t,e){let r=t.copy(),n="hour"in r?Vl(r,e):0;dr(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,fr(r),zo(r),r.day+=(e.weeks||0)*7,r.day+=e.days||0,r.day+=n,Bl(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let o=r.calendar.getYearsInEra(r);if(r.year>o){var i,s;let l=(i=(s=r.calendar).isInverseEra)===null||i===void 0?void 0:i.call(s,r);r.year=o,r.month=l?1:r.calendar.getMonthsInYear(r),r.day=l?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let a=r.calendar.getMonthsInYear(r);return r.month>a&&(r.month=a,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function dr(t,e){var r,n;!((r=(n=t.calendar).isInverseEra)===null||r===void 0)&&r.call(n,t)&&(e=-e),t.year+=e}function fr(t){for(;t.month<1;)dr(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,dr(t,1)}function Bl(t){for(;t.day<1;)t.month--,fr(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,fr(t)}function zo(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function ke(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),zo(t)}function Kl(t){let e={};for(let r in t)typeof t[r]=="number"&&(e[r]=-t[r]);return e}function Wo(t,e){return Mr(t,Kl(e))}function Go(t,e){let r=t.copy();return e.era!=null&&(r.era=e.era),e.year!=null&&(r.year=e.year),e.month!=null&&(r.month=e.month),e.day!=null&&(r.day=e.day),ke(r),r}function Fl(t,e){let r=t.copy();return e.hour!=null&&(r.hour=e.hour),e.minute!=null&&(r.minute=e.minute),e.second!=null&&(r.second=e.second),e.millisecond!=null&&(r.millisecond=e.millisecond),Ul(r),r}function ql(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=Ze(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=Ze(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=Ze(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=Ze(t.hour,24),e}function Ul(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function Ze(t,e){let r=t%e;return r<0&&(r+=e),r}function Vl(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,ql(t)}function Yo(t,e,r,n){let o=t.copy();switch(e){case"era":{let a=t.calendar.getEras(),l=a.indexOf(t.era);if(l<0)throw new Error("Invalid era: "+t.era);l=be(l,r,0,a.length-1,n==null?void 0:n.round),o.era=a[l],ke(o);break}case"year":var i,s;!((i=(s=o.calendar).isInverseEra)===null||i===void 0)&&i.call(s,o)&&(r=-r),o.year=be(t.year,r,-1/0,9999,n==null?void 0:n.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,t);break;case"month":o.month=be(t.month,r,1,t.calendar.getMonthsInYear(t),n==null?void 0:n.round);break;case"day":o.day=be(t.day,r,1,t.calendar.getDaysInMonth(t),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(o),ke(o),o}function Hl(t,e,r,n){let o=t.copy();switch(e){case"hour":{let i=t.hour,s=0,a=23;if((n==null?void 0:n.hourCycle)===12){let l=i>=12;s=l?12:0,a=l?23:11}o.hour=be(i,r,s,a,n==null?void 0:n.round);break}case"minute":o.minute=be(t.minute,r,0,59,n==null?void 0:n.round);break;case"second":o.second=be(t.second,r,0,59,n==null?void 0:n.round);break;case"millisecond":o.millisecond=be(t.millisecond,r,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return o}function be(t,e,r,n,o=!1){if(o){t+=Math.sign(e),t<r&&(t=n);let i=Math.abs(e);e>0?t=Math.ceil(t/i)*i:t=Math.floor(t/i)*i,t>n&&(t=r)}else t+=e,t<r?t=n-(r-t-1):t>n&&(t=r+(t-n-1));return t}function zl(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function Jo(t){let e=Ct(t,new pe);return`${String(e.year).padStart(4,"0")}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function Wl(t){return`${Jo(t)}T${zl(t)}`}function Qo(t){let e=typeof t[0]=="object"?t.shift():new pe,r;if(typeof t[0]=="string")r=t.shift();else{let s=e.getEras();r=s[s.length-1]}let n=t.shift(),o=t.shift(),i=t.shift();return[e,r,n,o,i]}var Gl=new WeakMap;class Q{copy(){return this.era?new Q(this.calendar,this.era,this.year,this.month,this.day):new Q(this.calendar,this.year,this.month,this.day)}add(e){return Mr(this,e)}subtract(e){return Wo(this,e)}set(e){return Go(this,e)}cycle(e,r,n){return Yo(this,e,r,n)}toDate(e){return Vo(this,e)}toString(){return Jo(this)}compare(e){return Ko(this,e)}constructor(...e){$r(this,Gl,{writable:!0,value:void 0});let[r,n,o,i,s]=Qo(e);this.calendar=r,this.era=n,this.year=o,this.month=i,this.day=s,ke(this)}}var Yl=new WeakMap;class vt{copy(){return this.era?new vt(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new vt(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Mr(this,e)}subtract(e){return Wo(this,e)}set(e){return Go(Fl(this,e),e)}cycle(e,r,n){switch(e){case"era":case"year":case"month":case"day":return Yo(this,e,r,n);default:return Hl(this,e,r,n)}}toDate(e,r){return Vo(this,e,r)}toString(){return Wl(this)}compare(e){let r=Ko(this,e);return r===0?_l(this,Ho(e)):r}constructor(...e){$r(this,Yl,{writable:!0,value:void 0});let[r,n,o,i,s]=Qo(e);this.calendar=r,this.era=n,this.year=o,this.month=i,this.day=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,ke(this)}}const je=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Jl=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],mt=[1867,1911,1925,1988,2018],me=["meiji","taisho","showa","heisei","reiwa"];function sn(t){const e=je.findIndex(([r,n,o])=>t.year<r||t.year===r&&t.month<n||t.year===r&&t.month===n&&t.day<o);return e===-1?je.length-1:e===0?0:e-1}function Ot(t){let e=mt[me.indexOf(t.era)];if(!e)throw new Error("Unknown era: "+t.era);return new Q(t.year+e,t.month,t.day)}class Ql extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=sn(r);return new Q(this,me[n],r.year-mt[n],r.month,r.day)}toJulianDay(e){return super.toJulianDay(Ot(e))}balanceDate(e){let r=Ot(e),n=sn(r);me[n]!==e.era&&(e.era=me[n],e.year=r.year-mt[n]),this.constrainDate(e)}constrainDate(e){let r=me.indexOf(e.era),n=Jl[r];if(n!=null){let[o,i,s]=n,a=o-mt[r];e.year=Math.max(1,Math.min(a,e.year)),e.year===a&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(s,e.day)))}if(e.year===1&&r>=0){let[,o,i]=je[r];e.month=Math.max(o,e.month),e.month===o&&(e.day=Math.max(i,e.day))}}getEras(){return me}getYearsInEra(e){let r=me.indexOf(e.era),n=je[r],o=je[r+1];if(o==null)return 9999-n[0]+1;let i=o[0]-n[0];return(e.month<o[1]||e.month===o[1]&&e.day<o[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(Ot(e))}getMinimumMonthInYear(e){let r=an(e);return r?r[1]:1}getMinimumDayInMonth(e){let r=an(e);return r&&e.month===r[1]?r[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function an(t){if(t.year===1){let e=me.indexOf(t.era);return je[e]}}const Xo=-543;class Xl extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=Ve(r.era,r.year);return new Q(this,n-Xo,r.month,r.day)}toJulianDay(e){return super.toJulianDay(ln(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(ln(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function ln(t){let[e,r]=Tt(t.year+Xo);return new Q(e,r,t.month,t.day)}const xt=1911;function Zo(t){return t.era==="minguo"?t.year+xt:1-t.year+xt}function cn(t){let e=t-xt;return e>0?["minguo",e]:["before_minguo",1-e]}class Zl extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=Ve(r.era,r.year),[o,i]=cn(n);return new Q(this,o,i,r.month,r.day)}toJulianDay(e){return super.toJulianDay(un(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[r,n]=cn(Zo(e));e.era=r,e.year=n}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(un(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-xt}constructor(...e){super(...e),this.identifier="roc"}}function un(t){let[e,r]=Tt(Zo(t));return new Q(e,r,t.month,t.day)}const ec=1948321;function tc(t){let e=t>0?t-474:t-473,r=he(e,2820)+474;return he((r+38)*31,128)<31}function et(t,e,r){let n=t>0?t-474:t-473,o=he(n,2820)+474,i=e<=7?31*(e-1):30*(e-1)+6;return ec-1+1029983*Math.floor(n/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+r}class rc{fromJulianDay(e){let r=e-et(475,1,1),n=Math.floor(r/1029983),o=he(r,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),s=474+2820*n+i;s<=0&&s--;let a=e-et(s,1,1)+1,l=a<=186?Math.ceil(a/31):Math.ceil((a-6)/31),u=e-et(s,l,1)+1;return new Q(this,s,l,u)}toJulianDay(e){return et(e.year,e.month,e.day)}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||tc(e.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const It=78,dn=80;class nc extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=r.year-It,o=e-$e(r.era,r.year,1,1),i;o<dn?(n--,i=ge(r.year-1)?31:30,o+=i+155+90+10):(i=ge(r.year)?31:30,o-=dn);let s,a;if(o<i)s=1,a=o+1;else{let l=o-i;l<155?(s=Math.floor(l/31)+2,a=l%31+1):(l-=155,s=Math.floor(l/30)+7,a=l%30+1)}return new Q(this,n,s,a)}toJulianDay(e){let r=e.year+It,[n,o]=Tt(r),i,s;return ge(o)?(i=31,s=$e(n,o,3,21)):(i=30,s=$e(n,o,3,22)),e.month===1?s+e.day-1:(s+=i+Math.min(e.month-2,5)*31,e.month>=8&&(s+=(e.month-7)*30),s+=e.day-1,s)}getDaysInMonth(e){return e.month===1&&ge(e.year+It)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const $t=1948440,fn=1948439,ie=1300,Re=1600,oc=460322;function wt(t,e,r,n){return n+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function ei(t,e,r){let n=Math.floor((30*(r-e)+10646)/10631),o=Math.min(12,Math.ceil((r-(29+wt(e,n,1,1)))/29.5)+1),i=r-wt(e,n,o,1)+1;return new Q(t,n,o,i)}function hn(t){return(14+11*t)%30<11}class jr{fromJulianDay(e){return ei(this,$t,e)}toJulianDay(e){return wt($t,e.year,e.month,e.day)}getDaysInMonth(e){let r=29+e.month%2;return e.month===12&&hn(e.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(e){return hn(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class ic extends jr{fromJulianDay(e){return ei(this,fn,e)}toJulianDay(e){return wt(fn,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const sc="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let hr,_e;function gt(t){return oc+_e[t-ie]}function Ne(t,e){let r=t-ie,n=1<<11-(e-1);return hr[r]&n?30:29}function pn(t,e){let r=gt(t);for(let n=1;n<e;n++)r+=Ne(t,n);return r}function mn(t){return _e[t+1-ie]-_e[t-ie]}class ac extends jr{fromJulianDay(e){let r=e-$t,n=gt(ie),o=gt(Re);if(r<n||r>o)return super.fromJulianDay(e);{let i=ie-1,s=1,a=1;for(;a>0;){i++,a=r-gt(i)+1;let l=mn(i);if(a===l){s=12;break}else if(a<l){let u=Ne(i,s);for(s=1;a>u;)a-=u,s++,u=Ne(i,s);break}}return new Q(this,i,s,r-pn(i,s)+1)}}toJulianDay(e){return e.year<ie||e.year>Re?super.toJulianDay(e):$t+pn(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<ie||e.year>Re?super.getDaysInMonth(e):Ne(e.year,e.month)}getDaysInYear(e){return e.year<ie||e.year>Re?super.getDaysInYear(e):mn(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",hr||(hr=new Uint16Array(Uint8Array.from(atob(sc),e=>e.charCodeAt(0)).buffer)),!_e){_e=new Uint32Array(Re-ie+1);let e=0;for(let r=ie;r<=Re;r++){_e[r-ie]=e;for(let n=1;n<=12;n++)e+=Ne(r,n)}}}}const gn=347997,ti=1080,ri=24*ti,lc=29,cc=12*ti+793,uc=lc*ri+cc;function xe(t){return he(t*7+1,19)<7}function bt(t){let e=Math.floor((235*t-234)/19),r=12084+13753*e,n=e*29+Math.floor(r/25920);return he(3*(n+1),7)<3&&(n+=1),n}function dc(t){let e=bt(t-1),r=bt(t);return bt(t+1)-r===356?2:r-e===382?1:0}function Ke(t){return bt(t)+dc(t)}function ni(t){return Ke(t+1)-Ke(t)}function fc(t){let e=ni(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function tt(t,e){if(e>=6&&!xe(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let r=fc(t);return e===2?r===2?30:29:e===3?r===0?29:30:e===6?xe(t)?30:0:30}class hc{fromJulianDay(e){let r=e-gn,n=r*ri/uc,o=Math.floor((19*n+234)/235)+1,i=Ke(o),s=Math.floor(r-i);for(;s<1;)o--,i=Ke(o),s=Math.floor(r-i);let a=1,l=0;for(;l<s;)l+=tt(o,a),a++;a--,l-=tt(o,a);let u=s-l;return new Q(this,o,a,u)}toJulianDay(e){let r=Ke(e.year);for(let n=1;n<e.month;n++)r+=tt(e.year,n);return r+e.day+gn}getDaysInMonth(e){return tt(e.year,e.month)}getMonthsInYear(e){return xe(e.year)?13:12}getDaysInYear(e){return ni(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,r){r.year!==e.year&&(xe(r.year)&&!xe(e.year)&&r.month>6?e.month--:!xe(r.year)&&xe(e.year)&&r.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const pr=1723856,bn=1824665,mr=5500;function Pt(t,e,r,n){return t+365*e+Math.floor(e/4)+30*(r-1)+n-1}function _r(t,e){let r=Math.floor(4*(e-t)/1461),n=1+Math.floor((e-Pt(t,r,1,1))/30),o=e+1-Pt(t,r,n,1);return[r,n,o]}function oi(t){return Math.floor(t%4/3)}function ii(t,e){return e%13!==0?30:oi(t)+5}class kr{fromJulianDay(e){let[r,n,o]=_r(pr,e),i="AM";return r<=0&&(i="AA",r+=mr),new Q(this,i,r,n,o)}toJulianDay(e){let r=e.year;return e.era==="AA"&&(r-=mr),Pt(pr,r,e.month,e.day)}getDaysInMonth(e){return ii(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+oi(e.year)}getYearsInEra(e){return e.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class pc extends kr{fromJulianDay(e){let[r,n,o]=_r(pr,e);return r+=mr,new Q(this,"AA",r,n,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class mc extends kr{fromJulianDay(e){let[r,n,o]=_r(bn,e),i="CE";return r<=0&&(i="BCE",r=1-r),new Q(this,i,r,n,o)}toJulianDay(e){let r=e.year;return e.era==="BCE"&&(r=1-r),Pt(bn,r,e.month,e.day)}getDaysInMonth(e){let r=e.year;return e.era==="BCE"&&(r=1-r),ii(r,e.month)}isInverseEra(e){return e.era==="BCE"}balanceDate(e){e.year<=0&&(e.era=e.era==="BCE"?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return e.era==="BCE"?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function si(t){switch(t){case"buddhist":return new Xl;case"ethiopic":return new kr;case"ethioaa":return new pc;case"coptic":return new mc;case"hebrew":return new hc;case"indian":return new nc;case"islamic-civil":return new jr;case"islamic-tbla":return new ic;case"islamic-umalqura":return new ac;case"japanese":return new Ql;case"persian":return new rc;case"roc":return new Zl;case"gregory":default:return new pe}}function gc({themeName:t="calendar",tokens:e,state:r,date:n}){const o=y.useRef(null),{cellProps:i,buttonProps:s,isSelected:a,isOutsideVisibleRange:l,isDisabled:u,formattedDate:d,isInvalid:p}=xr.useCalendarCell({date:n},r,o),f=r!=null&&r.highlightedRange?Xr(n,r==null?void 0:r.highlightedRange.start):a,m=r!=null&&r.highlightedRange?Xr(n,r==null?void 0:r.highlightedRange.end):a,{locale:w}=N.useLocale(),g=Bo(n,w),b=a&&(f||g===0||n.day===1),x=a&&(m||g===6||n.day===n.calendar.getDaysInMonth(n)),{focusProps:j,isFocusVisible:E}=ae.useFocusRing(),P=I(`${t}.cellContainer`,{...e,isFocusVisible:E}),R=I(`${t}.cell`,{...e,isSelected:a,isInvalid:p,isDisabled:u,isRoundedLeft:b,isRoundedRight:x}),S=I(`${t}.cellDate`,{...e,isSelected:a,isInvalid:p,isDisabled:u,isSelectionStart:f,isSelectionEnd:m});return c.jsx("td",{...i,"aria-disabled":!1,className:P,children:c.jsx("div",{..._.mergeProps(s,j),ref:o,hidden:l,className:R,children:c.jsx("div",{className:S,children:d})})})}function bc({themeName:t="calendar",customTheme:e,tokens:r,state:n,...o}){const{locale:i}=De.useLocale(),{gridProps:s,headerProps:a,weekDays:l}=xr.useCalendarGrid({...o},n),u=Il(n.visibleRange.start,i),d=I(`${t}.calendarTable`,r),p=I(`${t}.dayLabel`,r);return c.jsxs("table",{...s,cellPadding:"0",className:d,children:[c.jsx("thead",{...a,children:c.jsx("tr",{children:l.map(f=>c.jsx("th",{className:p,children:f},`${f}`))})}),c.jsx("tbody",{children:[...new Array(u).keys()].map(f=>c.jsx("tr",{children:n.getDatesInWeek(f).map((m,w)=>m?c.jsx(gc,{state:n,date:m},m==null?void 0:m.day):c.jsx("td",{},w))},f))})]})}function ai({buttons:t,tokens:e,customTheme:r,themeName:n="calendar",...o}){var g,b;const{locale:i}=De.useLocale(),s=ts.useCalendarState({...o,locale:i,createCalendar:si}),a=y.useRef(null),{calendarProps:l,prevButtonProps:u,nextButtonProps:d,title:p}=xr.useCalendar({...o},s),f=I(`${n}.container`,e),m=I(`${n}.header`,e),w=I(`${n}.navigationButtonsContainer`,e);return c.jsxs("div",{...l,ref:a,className:f,children:[c.jsxs("div",{className:m,children:[c.jsx(Z,{as:"p",tokens:{size:"h6"},children:p}),c.jsxs("div",{className:w,children:[c.jsx(ve,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...u,handlePress:u==null?void 0:u.onPress,children:c.jsx(ce,{icon:((g=t==null?void 0:t.buttonPrev)==null?void 0:g.icon)??"ArrowLeft"})}),c.jsx(ve,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...d,handlePress:d==null?void 0:d.onPress,children:c.jsx(ce,{icon:((b=t==null?void 0:t.buttonNext)==null?void 0:b.icon)??"ArrowRight"})})]})]}),c.jsx(bc,{state:s})]})}function yc({title:t,children:e,...r}){const n=y.useRef(null),{dialogProps:o}=N.useDialog(r,n);return c.jsx("div",{...o,ref:n,children:e})}function vc({themeName:t="datePicker",tokens:e,...r}){const n=ns.useRef(null),{state:o,children:i}={...r},{popoverProps:s,underlayProps:a}=Ge.usePopover({...r,popoverRef:n},o),l=I(`${t}.calendarUnderlay`,e),u=I(`${t}.calendarPopover`,e);return c.jsxs(Ge.Overlay,{children:[c.jsx("div",{...a,className:l}),c.jsxs("div",{...s,ref:n,className:u,children:[c.jsx(Ge.DismissButton,{onDismiss:o.close}),i,c.jsx(Ge.DismissButton,{onDismiss:o.close})]})]})}function xc({segment:t,state:e}){const r=y.useRef(null),{segmentProps:n}=vr.useDateSegment(t,e,r),o=I("datePicker.dateSegment");return c.jsx(N.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsxs("div",{...n,ref:r,className:o,children:[c.jsx("span",{"aria-hidden":"true",style:{visibility:t.isPlaceholder?"visible":"hidden",height:t.isPlaceholder?"":0,pointerEvents:"none",display:t.isPlaceholder?"block":"none"},children:t.placeholder}),t.isPlaceholder?"":t.text]})})}function yn(t){const{locale:e}=De.useLocale(),r=oo.useDateFieldState({...t,locale:e,createCalendar:si}),n=y.useRef(null),{fieldProps:o}=vr.useDateField(t,r,n);return c.jsx("div",{...o,ref:n,className:"flex",children:r.segments.map((i,s)=>c.jsx(xc,{segment:i,state:r},s))})}function $c({popoverPlacement:t="bottom start",tokens:e,customTheme:r,themeName:n="datePicker",icon:o="ArrowDown",description:i,buttonLabel:s,...a}){const l=oo.useDatePickerState({...a}),u=y.useRef(null),{groupProps:d,fieldProps:p,labelProps:f,descriptionProps:m,buttonProps:w,dialogProps:g,calendarProps:b}=vr.useDatePicker({...a},l,u),{label:x}={...a},j=I(`${n}.container`,e),E=I(`${n}.dateField`,e),P=I(`${n}.label`,e);return c.jsxs("div",{className:j,children:[x&&c.jsx("span",{...f,children:x}),i&&c.jsx("div",{...m,children:i}),c.jsx("div",{...d,ref:u,children:c.jsxs(ve,{themeName:`${n}.button`,tokens:{...e},type:"button",...w,handlePress:w.onPress,children:[s&&c.jsx("p",{className:P,children:s}),c.jsxs("div",{className:E,children:[c.jsx(yn,{...p}),l.validationState==="invalid"&&"❌"]}),c.jsx(ce,{themeName:`${n}.icon`,tokens:{...e},icon:o})]})}),l.isOpen&&c.jsx(vc,{triggerRef:u,state:l,placement:t,children:c.jsxs(yc,{...g,children:[c.jsxs("div",{children:[c.jsx(yn,{...p}),l.validationState==="invalid"&&"❌"]}),c.jsx(ai,{...b})]})})]})}const li=y.createContext(null),ci=t=>{const{children:e,state:r}=t;return c.jsx(li.Provider,{value:r,children:e})};function ui(){const t=y.useContext(li);return t!==null?t:null}const di=t=>{const{id:e,label:r,themeName:n="radio",tokens:o,customTheme:i,value:s,fieldRef:a}=t,l=ui(),u=y.useRef(null),{inputProps:d}=N.useRadio(t,l,u),p=(l==null?void 0:l.selectedValue)===s,{focusProps:f}=N.useFocusRing(),m={...o,selected:p},w=I(`${n}.label`,m,i),g=I(`${n}.radio`,m,i),b=I(`${n}.selectedMark`,m,i);return c.jsx("div",{children:c.jsx(N.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("label",{htmlFor:e,className:w,children:[c.jsx(N.VisuallyHidden,{children:c.jsx("input",{type:"radio",...N.mergeProps(f,d),ref:x=>{a==null||a(x),u.current=x}})}),c.jsx("div",{className:g,"aria-checked":p,role:"radio","aria-labelledby":e,children:c.jsx("div",{className:b})}),c.jsx(Z,{themeName:`${n}.label`,children:r})]})})})},wc=t=>{const{name:e,required:r}=t,{register:n,formState:o}=ye.useFormContext(),i=ye.get(o.errors,e),s=(i==null?void 0:i.message)??void 0,{t:a}=yr.useTranslation("components"),{ref:l,...u}=n(e,{required:r?a("FORM.ERROR.REQUIRED")??"required":!1});return c.jsx(di,{fieldRef:l,...u,...t,isError:!br.isEmpty(s),errorMessage:s})};let Pc=Math.round(Math.random()*1e10),Tc=0;function Cc(t){let e=y.useMemo(()=>t.name||`radio-group-${Pc}-${++Tc}`,[t.name]);var r;let[n,o]=Oo(t.value,(r=t.defaultValue)!==null&&r!==void 0?r:null,t.onChange),[i,s]=y.useState(null),a=Do({...t,value:n}),l=d=>{!t.isReadOnly&&!t.isDisabled&&(o(d),a.commitValidation())},u=a.displayValidation.isInvalid;return{...a,name:e,selectedValue:n,setSelectedValue:l,lastFocusedValue:i,setLastFocusedValue:s,isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,validationState:t.validationState||(u?"invalid":null),isInvalid:u}}const Sc=t=>{const{label:e,isError:r=!1,errorMessage:n,isDisabled:o=!1,children:i,themeName:s="radioGroup",tokens:a}=t,l=Cc(t),{radioGroupProps:u}=N.useRadioGroup(t,l),d={...a,isDisabled:o};return c.jsxs(G,{...u,"aria-disabled":o,themeName:`${s}.radioGroup`,tokens:d,children:[e&&c.jsx(Z,{tokens:{size:"h6"},children:e}),c.jsx(G,{themeName:`${s}.radioGroupItemsGroup`,children:c.jsx(ci,{state:l,children:i})}),r&&n&&c.jsx(Z,{tokens:{isError:!0},children:n})]})},[Ie,Rc]=xo();function Ec({children:t,defaultSelectedKey:e,defaultIsOpen:r,onCloseCallback:n,onOpenCallback:o,tabs:i,openBtn:s,closeBtn:a,...l}){const u=Oe.useTabListState({...l,children:i,defaultSelectedKey:e}),d=y.useMemo(()=>({openBtn:s,closeBtn:a,tabState:u,defaultSelectedKey:e}),[s,a,u,e]);return c.jsx(Rc,{value:d,children:c.jsx(Eo,{onCloseCallback:()=>{var p;n==null||n(),(p=u==null?void 0:u.setSelectedKey)==null||p.call(u,e)},onOpenCallback:o,defaultIsOpen:r,defaultSelectedKey:e.toString(),children:t})})}const fi=({isVisible:t,children:e,themeName:r,tokens:n,customTheme:o})=>{const i=oe.useTransition(t,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:oe.config.stiff}),s=I(r,n,o);return i((a,l)=>l&&c.jsx(oe.animated.div,{className:s,style:a,children:e}))},Mc=new WeakMap;function vn(t,e,r){return typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${Mc.get(t)}-${r}-${e}`}function jc(t,e,r){let n=ae.useHasTabbableChild(r)?void 0:0;var o;const i=vn(e,(o=t.id)!==null&&o!==void 0?o:e==null?void 0:e.selectedKey,"tabpanel"),s=_.useLabels({...t,id:i,"aria-labelledby":vn(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:_.mergeProps(s,{tabIndex:n,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}function _c({state:t,customTheme:e,themeName:r="tabPanel",tokens:n,...o}){var a;const i=y.useRef(null),{tabPanelProps:s}=jc(o,t,i);return c.jsx(fi,{isVisible:!0,children:c.jsx(Pe,{themeName:`${r}`,tokens:n,customTheme:e,...s,ref:i,children:(a=t.selectedItem)==null?void 0:a.props.children})})}const hi=t=>{var r;const{tabState:e}=Ie();return y.createElement(_c,{...t,key:(r=e.selectedItem)==null?void 0:r.key,state:e})},pi=t=>{var u;const{themeName:e,tokens:r,customTheme:n,children:o,beforeTabContent:i,afterTabContent:s}=t,{tabState:a,defaultSelectedKey:l}=Ie();return c.jsxs(c.Fragment,{children:[c.jsx(G,{themeName:`${e}.wrapper`,tokens:r,customTheme:n,children:o}),((u=a==null?void 0:a.selectedKey)==null?void 0:u.toString())===l?null:c.jsxs(G,{themeName:`${e}.tabWrapper`,tokens:r,customTheme:n,children:[i!==null&&i,c.jsx(hi,{themeName:`${e}.tabPanel`,tokens:r,customTheme:n}),s!==null&&s]})]})},kc=t=>{const{id:e="main-menu",children:r,PanelTransition:n=fi,themeName:o,tokens:i,customTheme:s,...a}=t,{overlayState:l}=Sr(),{closeBtn:u}=Ie();return c.jsx(n,{isVisible:l==null?void 0:l.isOpen,children:c.jsxs(G,{themeName:`${o}.wrapper`,children:[u&&u(),c.jsx(G,{themeName:`${o}.container`,children:c.jsx(pi,{id:e,themeName:`${o}.innerContent`,tokens:i,customTheme:s,...a,children:r})})]})})},Dc=t=>{const{id:e="main-menu",children:r,TransitionAnimation:n,PanelTransition:o,themeName:i,tokens:s,customTheme:a,...l}=t,{closeBtn:u,tabState:d,defaultSelectedKey:p}=Ie();return c.jsx(jo,{themeName:`${i}.sidePanel`,tokens:s,customTheme:a,closeBtnRender:u,id:e,TransitionAnimation:n,PanelTransition:o,onCloseCallBack:()=>{d==null||d.setSelectedKey(p)},children:c.jsx(pi,{id:e,themeName:i,tokens:s,customTheme:a,...l,children:r})})};function Oc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gr={exports:{}},Fe={};Fe._=Fe._interop_require_default=Ic;function Ic(t){return t&&t.__esModule?t:{default:t}}var rt={exports:{}},At={},xn;function mi(){return xn||(xn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,a){for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]})}e(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(s){const a={};return s.forEach((l,u)=>{typeof a[u]>"u"?a[u]=l:Array.isArray(a[u])?a[u].push(l):a[u]=[a[u],l]}),a}function n(s){return typeof s=="string"||typeof s=="number"&&!isNaN(s)||typeof s=="boolean"?String(s):""}function o(s){const a=new URLSearchParams;return Object.entries(s).forEach(l=>{let[u,d]=l;Array.isArray(d)?d.forEach(p=>a.append(u,n(p))):a.set(u,n(d))}),a}function i(s){for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];return l.forEach(d=>{Array.from(d.keys()).forEach(p=>s.delete(p)),d.forEach((p,f)=>s.append(f,p))}),s}}(At)),At}var Lt={},nt={},$n;function Ac(){if($n)return nt;$n=1;function t(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,o=new WeakMap;return(t=function(i){return i?o:n})(r)}nt._=nt._interop_require_wildcard=e;function e(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var o=t(n);if(o&&o.has(r))return o.get(r);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)){var l=s?Object.getOwnPropertyDescriptor(r,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=r[a]}return i.default=r,o&&o.set(r,i),i}return nt}var wn;function gi(){return wn||(wn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(l,u){for(var d in u)Object.defineProperty(l,d,{enumerable:!0,get:u[d]})}e(t,{formatUrl:function(){return i},urlObjectKeys:function(){return s},formatWithValidation:function(){return a}});const n=Ac()._(mi()),o=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:d}=l,p=l.protocol||"",f=l.pathname||"",m=l.hash||"",w=l.query||"",g=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?g=u+l.host:d&&(g=u+(~d.indexOf(":")?"["+d+"]":d),l.port&&(g+=":"+l.port)),w&&typeof w=="object"&&(w=String(n.urlQueryToSearchParams(w)));let b=l.search||w&&"?"+w||"";return p&&!p.endsWith(":")&&(p+=":"),l.slashes||(!p||o.test(p))&&g!==!1?(g="//"+(g||""),f&&f[0]!=="/"&&(f="/"+f)):g||(g=""),m&&m[0]!=="#"&&(m="#"+m),b&&b[0]!=="?"&&(b="?"+b),f=f.replace(/[?#]/g,encodeURIComponent),b=b.replace("#","%23"),""+p+g+f+b+m}const s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{s.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),i(l)}}(Lt)),Lt}var Nt={},Pn;function Lc(){return Pn||(Pn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return e}});function e(r,n){const o={};return Object.keys(r).forEach(i=>{n.includes(i)||(o[i]=r[i])}),o}}(Nt)),Nt}var Bt={},Tn;function St(){return Tn||(Tn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(P,R){for(var S in R)Object.defineProperty(P,S,{enumerable:!0,get:R[S]})}e(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return s},getURL:function(){return a},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return d},loadGetInitialProps:function(){return p},SP:function(){return f},ST:function(){return m},DecodeError:function(){return w},NormalizeError:function(){return g},PageNotFoundError:function(){return b},MissingStaticPage:function(){return x},MiddlewareNotFoundError:function(){return j},stringifyError:function(){return E}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(P){let R=!1,S;return function(){for(var D=arguments.length,h=new Array(D),M=0;M<D;M++)h[M]=arguments[M];return R||(R=!0,S=P(...h)),S}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=P=>o.test(P);function s(){const{protocol:P,hostname:R,port:S}=window.location;return P+"//"+R+(S?":"+S:"")}function a(){const{href:P}=window.location,R=s();return P.substring(R.length)}function l(P){return typeof P=="string"?P:P.displayName||P.name||"Unknown"}function u(P){return P.finished||P.headersSent}function d(P){const R=P.split("?");return R[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(R[1]?"?"+R.slice(1).join("?"):"")}async function p(P,R){if(process.env.NODE_ENV!=="production"){var S;if((S=P.prototype)!=null&&S.getInitialProps){const M='"'+l(P)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(M)}}const D=R.res||R.ctx&&R.ctx.res;if(!P.getInitialProps)return R.ctx&&R.Component?{pageProps:await p(R.Component,R.ctx)}:{};const h=await P.getInitialProps(R);if(D&&u(D))return h;if(!h){const M='"'+l(P)+'.getInitialProps()" should resolve to an object. But found "'+h+'" instead.';throw new Error(M)}return process.env.NODE_ENV!=="production"&&Object.keys(h).length===0&&!R.ctx&&console.warn(""+l(P)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),h}const f=typeof performance<"u",m=f&&["mark","measure","getEntriesByName"].every(P=>typeof performance[P]=="function");class w extends Error{}class g extends Error{}class b extends Error{constructor(R){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+R}}class x extends Error{constructor(R,S){super(),this.message="Failed to load static file for page: "+R+" "+S}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(P){return JSON.stringify({message:P.message,stack:P.stack})}}(Bt)),Bt}var ot={exports:{}},Kt={},Cn;function bi(){return Cn||(Cn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}}(Kt)),Kt}var Ft={},Sn;function Dr(){return Sn||(Sn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),o=r.indexOf("?"),i=o>-1&&(n<0||o<n);return i||n>-1?{pathname:r.substring(0,i?o:n),query:i?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(Ft)),Ft}var Rn;function Rt(){return Rn||(Rn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=bi(),n=Dr(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:s,query:a,hash:l}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(s)?""+(0,r.removeTrailingSlash)(s)+a+l:s.endsWith("/")?""+s+a+l:s+"/"+a+l:""+(0,r.removeTrailingSlash)(s)+a+l};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ot,ot.exports)),ot.exports}var qt={},it={exports:{}},Ut={},En;function yi(){return En||(En=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=Dr();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,e.parsePath)(n);return i===o||i.startsWith(o+"/")}}(Ut)),Ut}var Mn;function Nc(){return Mn||(Mn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=yi(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,r.pathHasPrefix)(i,n)}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(it,it.exports)),it.exports}var jn;function vi(){return jn||(jn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return n}});const e=St(),r=Nc();function n(o){if(!(0,e.isAbsoluteUrl)(o))return!0;try{const i=(0,e.getLocationOrigin)(),s=new URL(o,i);return s.origin===i&&(0,r.hasBasePath)(s.pathname)}catch{return!1}}}(qt)),qt}var Vt={},Ht={},_n;function Bc(){return _n||(_n=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class e{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const s=i.map(a=>this.children.get(a)._smoosh(""+o+a+"/")).reduce((a,l)=>[...a,...l],[]);if(this.slugName!==null&&s.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const a=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+a+'" and "'+a+"[[..."+this.optionalRestSlugName+']]").');s.unshift(a)}return this.restSlugName!==null&&s.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&s.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),s}_insert(o,i,s){if(o.length===0){this.placeholder=!1;return}if(s)throw new Error("Catch-all must be the last part of the URL.");let a=o[0];if(a.startsWith("[")&&a.endsWith("]")){let d=function(p,f){if(p!==null&&p!==f)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+f+"').");i.forEach(m=>{if(m===f)throw new Error('You cannot have the same slug name "'+f+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===a.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+f+'" differ only by non-word symbols within a single dynamic path')}),i.push(f)},l=a.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),s=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(s)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');d(this.optionalRestSlugName,l),this.optionalRestSlugName=l,a="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');d(this.restSlugName,l),this.restSlugName=l,a="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');d(this.slugName,l),this.slugName=l,a="[]"}}this.children.has(a)||this.children.set(a,new e),this.children.get(a)._insert(o.slice(1),i,s)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new e;return n.forEach(i=>o.insert(i)),o.smoosh()}}(Ht)),Ht}var zt={},Wt={},Gt={},Yt={},kn;function Kc(){return kn||(kn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.startsWith("/")?r:"/"+r}}(Yt)),Yt}var Jt={},Dn;function Fc(){return Dn||(Dn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isGroupSegment",{enumerable:!0,get:function(){return e}});function e(r){return r[0]==="("&&r.endsWith(")")}}(Jt)),Jt}var On;function qc(){return On||(On=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,a){for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]})}e(t,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return i}});const r=Kc(),n=Fc();function o(s){return(0,r.ensureLeadingSlash)(s.split("/").reduce((a,l,u,d)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===d.length-1?a:a+"/"+l,""))}function i(s){return s.replace(/\.rsc($|\?)/,"$1")}}(Gt)),Gt}var In;function xi(){return In||(In=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,a){for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]})}e(t,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=qc(),n=["(..)(..)","(.)","(..)","(...)"];function o(s){return s.split("/").find(a=>n.find(l=>a.startsWith(l)))!==void 0}function i(s){let a,l,u;for(const d of s.split("/"))if(l=n.find(p=>d.startsWith(p)),l){[a,u]=s.split(l,2);break}if(!a||!l||!u)throw new Error(`Invalid interception route: ${s}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(a=(0,r.normalizeAppPath)(a),l){case"(.)":a==="/"?u=`/${u}`:u=a+"/"+u;break;case"(..)":if(a==="/")throw new Error(`Invalid interception route: ${s}. Cannot use (..) marker at the root level, use (.) instead.`);u=a.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const d=a.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${s}. Cannot use (..)(..) marker at the root level or one level up.`);u=d.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:a,interceptedRoute:u}}}(Wt)),Wt}var An;function Uc(){return An||(An=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const e=xi(),r=/\/\[[^/]+?\](?=\/|$)/;function n(o){return(0,e.isInterceptionRouteAppPath)(o)&&(o=(0,e.extractInterceptionRouteInformation)(o).interceptedRoute),r.test(o)}}(zt)),zt}var Ln;function Vc(){return Ln||(Ln=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}e(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Bc(),n=Uc()}(Vt)),Vt}var Qt={},Xt={},Nn;function Hc(){return Nn||(Nn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const e=St();function r(n){let{re:o,groups:i}=n;return s=>{const a=o.exec(s);if(!a)return!1;const l=d=>{try{return decodeURIComponent(d)}catch{throw new e.DecodeError("failed to decode param")}},u={};return Object.keys(i).forEach(d=>{const p=i[d],f=a[p.pos];f!==void 0&&(u[d]=~f.indexOf("/")?f.split("/").map(m=>l(m)):p.repeat?[l(f)]:l(f))}),u}}}(Xt)),Xt}var Zt={},er={},Bn;function zc(){return Bn||(Bn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const e=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return e.test(o)?o.replace(r,"\\$&"):o}}(er)),er}var Kn;function Wc(){return Kn||(Kn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(g,b){for(var x in b)Object.defineProperty(g,x,{enumerable:!0,get:b[x]})}e(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return w}});const r=xi(),n=zc(),o=bi(),i="nxtP",s="nxtI";function a(g){const b=g.startsWith("[")&&g.endsWith("]");b&&(g=g.slice(1,-1));const x=g.startsWith("...");return x&&(g=g.slice(3)),{key:g,repeat:x,optional:b}}function l(g){const b=(0,o.removeTrailingSlash)(g).slice(1).split("/"),x={};let j=1;return{parameterizedRoute:b.map(E=>{const P=r.INTERCEPTION_ROUTE_MARKERS.find(S=>E.startsWith(S)),R=E.match(/\[((?:\[.*\])|.+)\]/);if(P&&R){const{key:S,optional:D,repeat:h}=a(R[1]);return x[S]={pos:j++,repeat:h,optional:D},"/"+(0,n.escapeStringRegexp)(P)+"([^/]+?)"}else if(R){const{key:S,repeat:D,optional:h}=a(R[1]);return x[S]={pos:j++,repeat:D,optional:h},D?h?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(E)}).join(""),groups:x}}function u(g){const{parameterizedRoute:b,groups:x}=l(g);return{re:new RegExp("^"+b+"(?:/)?$"),groups:x}}function d(){let g=0;return()=>{let b="",x=++g;for(;x>0;)b+=String.fromCharCode(97+(x-1)%26),x=Math.floor((x-1)/26);return b}}function p(g){let{interceptionMarker:b,getSafeRouteKey:x,segment:j,routeKeys:E,keyPrefix:P}=g;const{key:R,optional:S,repeat:D}=a(j);let h=R.replace(/\W/g,"");P&&(h=""+P+h);let M=!1;(h.length===0||h.length>30)&&(M=!0),isNaN(parseInt(h.slice(0,1)))||(M=!0),M&&(h=x()),P?E[h]=""+P+R:E[h]=R;const $=b?(0,n.escapeStringRegexp)(b):"";return D?S?"(?:/"+$+"(?<"+h+">.+?))?":"/"+$+"(?<"+h+">.+?)":"/"+$+"(?<"+h+">[^/]+?)"}function f(g,b){const x=(0,o.removeTrailingSlash)(g).slice(1).split("/"),j=d(),E={};return{namedParameterizedRoute:x.map(P=>{const R=r.INTERCEPTION_ROUTE_MARKERS.some(D=>P.startsWith(D)),S=P.match(/\[((?:\[.*\])|.+)\]/);if(R&&S){const[D]=P.split(S[0]);return p({getSafeRouteKey:j,interceptionMarker:D,segment:S[1],routeKeys:E,keyPrefix:b?s:void 0})}else return S?p({getSafeRouteKey:j,segment:S[1],routeKeys:E,keyPrefix:b?i:void 0}):"/"+(0,n.escapeStringRegexp)(P)}).join(""),routeKeys:E}}function m(g,b){const x=f(g,b);return{...u(g),namedRegex:"^"+x.namedParameterizedRoute+"(?:/)?$",routeKeys:x.routeKeys}}function w(g,b){const{parameterizedRoute:x}=l(g),{catchAll:j=!0}=b;if(x==="/")return{namedRegex:"^/"+(j?".*":"")+"$"};const{namedParameterizedRoute:E}=f(g,!1);let P=j?"(?:(/.*)?)":"";return{namedRegex:"^"+E+P+"$"}}}(Zt)),Zt}var Fn;function Gc(){return Fn||(Fn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return n}});const e=Hc(),r=Wc();function n(o,i,s){let a="";const l=(0,r.getRouteRegex)(o),u=l.groups,d=(i!==o?(0,e.getRouteMatcher)(l)(i):"")||s;a=o;const p=Object.keys(u);return p.every(f=>{let m=d[f]||"";const{repeat:w,optional:g}=u[f];let b="["+(w?"...":"")+f+"]";return g&&(b=(m?"":"/")+"["+b+"]"),w&&!Array.isArray(m)&&(m=[m]),(g||f in d)&&(a=a.replace(b,w?m.map(x=>encodeURIComponent(x)).join("/"):encodeURIComponent(m))||"/")})||(a=""),{params:p,result:a}}}(Qt)),Qt}var qn;function Yc(){return qn||(qn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return d}});const r=mi(),n=gi(),o=Lc(),i=St(),s=Rt(),a=vi(),l=Vc(),u=Gc();function d(p,f,m){let w,g=typeof f=="string"?f:(0,n.formatWithValidation)(f);const b=g.match(/^[a-zA-Z]{1,}:\/\//),x=b?g.slice(b[0].length):g;if((x.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+g+"' passed to next/router in page: '"+p.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const E=(0,i.normalizeRepeatedSlashes)(x);g=(b?b[0]:"")+E}if(!(0,a.isLocalURL)(g))return m?[g]:g;try{w=new URL(g.startsWith("#")?p.asPath:p.pathname,"http://n")}catch{w=new URL("/","http://n")}try{const E=new URL(g,w);E.pathname=(0,s.normalizePathTrailingSlash)(E.pathname);let P="";if((0,l.isDynamicRoute)(E.pathname)&&E.searchParams&&m){const S=(0,r.searchParamsToUrlQuery)(E.searchParams),{result:D,params:h}=(0,u.interpolateAs)(E.pathname,E.pathname,S);D&&(P=(0,n.formatWithValidation)({pathname:D,hash:E.hash,query:(0,o.omit)(S,h)}))}const R=E.origin===w.origin?E.href.slice(E.origin.length):E.href;return m?[R,P||R]:R}catch{return m?[g]:g}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(rt,rt.exports)),rt.exports}var st={exports:{}},tr={},rr={},Un;function $i(){return Un||(Un=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=Dr();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:s,hash:a}=(0,e.parsePath)(n);return""+o+i+s+a}}(rr)),rr}var Vn;function Jc(){return Vn||(Vn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=$i(),r=yi();function n(o,i,s,a){if(!i||i===s)return o;const l=o.toLowerCase();return!a&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?o:(0,e.addPathPrefix)(o,"/"+i)}}(tr)),tr}var Hn;function Qc(){return Hn||(Hn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const r=Rt(),n=function(o){for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Jc().addLocale(o,...s)):o};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(st,st.exports)),st.exports}var nr={},zn;function Xc(){return zn||(zn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Fe._(y).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(nr)),nr}var or={},Wn;function Zc(){return Wn||(Wn=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function e(u,d){for(var p in d)Object.defineProperty(u,p,{enumerable:!0,get:d[p]})}e(t,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return s},GlobalLayoutRouterContext:function(){return a},TemplateContext:function(){return l}});const n=Fe._(y);var o;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(o||(o={}));const i=n.default.createContext(null),s=n.default.createContext(null),a=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",s.displayName="LayoutRouterContext",a.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(or)),or}var at={exports:{}},lt={exports:{}},Gn;function eu(){return Gn||(Gn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(i,s){for(var a in s)Object.defineProperty(i,a,{enumerable:!0,get:s[a]})}r(e,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let s=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-s))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(lt,lt.exports)),lt.exports}var Yn;function tu(){return Yn||(Yn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return u}});const r=y,n=eu(),o=typeof IntersectionObserver=="function",i=new Map,s=[];function a(d){const p={root:d.root||null,margin:d.rootMargin||""},f=s.find(b=>b.root===p.root&&b.margin===p.margin);let m;if(f&&(m=i.get(f),m))return m;const w=new Map,g=new IntersectionObserver(b=>{b.forEach(x=>{const j=w.get(x.target),E=x.isIntersecting||x.intersectionRatio>0;j&&E&&j(E)})},d);return m={id:p,observer:g,elements:w},s.push(p),i.set(p,m),m}function l(d,p,f){const{id:m,observer:w,elements:g}=a(f);return g.set(d,p),w.observe(d),function(){if(g.delete(d),w.unobserve(d),g.size===0){w.disconnect(),i.delete(m);const x=s.findIndex(j=>j.root===m.root&&j.margin===m.margin);x>-1&&s.splice(x,1)}}}function u(d){let{rootRef:p,rootMargin:f,disabled:m}=d;const w=m||!o,[g,b]=(0,r.useState)(!1),x=(0,r.useRef)(null),j=(0,r.useCallback)(P=>{x.current=P},[]);(0,r.useEffect)(()=>{if(o){if(w||g)return;const P=x.current;if(P&&P.tagName)return l(P,S=>S&&b(S),{root:p==null?void 0:p.current,rootMargin:f})}else if(!g){const P=(0,n.requestIdleCallback)(()=>b(!0));return()=>(0,n.cancelIdleCallback)(P)}},[w,f,p,g,x.current]);const E=(0,r.useCallback)(()=>{b(!1)},[]);return[j,g,E]}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(at,at.exports)),at.exports}var ct={exports:{}},ut={exports:{}},ir={},Jn;function ru(){return Jn||(Jn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let o;const i=r.split("/");return(n||[]).some(s=>i[1]&&i[1].toLowerCase()===s.toLowerCase()?(o=s,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(ir)),ir}var Qn;function nu(){return Qn||(Qn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?ru().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ut,ut.exports)),ut.exports}var dt={exports:{}},sr={},Xn;function ou(){return Xn||(Xn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,o){if(r){o&&(o=o.toLowerCase());for(const a of r){var i,s;const l=(i=a.domain)==null?void 0:i.split(":",1)[0].toLowerCase();if(n===l||o===a.defaultLocale.toLowerCase()||(s=a.locales)!=null&&s.some(u=>u.toLowerCase()===o))return a}}}}(sr)),sr}var Zn;function iu(){return Zn||(Zn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return ou().detectDomainLocale(...o)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(dt,dt.exports)),dt.exports}var eo;function su(){return eo||(eo=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Rt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,s,a,l){if(process.env.__NEXT_I18N_SUPPORT){const u=nu().normalizeLocalePath,d=iu().detectDomainLocale,p=s||u(i,a).detectedLocale,f=d(l,void 0,p);if(f){const m="http"+(f.http?"":"s")+"://",w=p===f.defaultLocale?"":"/"+p;return""+m+f.domain+(0,r.normalizePathTrailingSlash)(""+n+w+i)}return!1}else return!1}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ct,ct.exports)),ct.exports}var ft={exports:{}},to;function au(){return to||(to=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return i}});const r=$i(),n=Rt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s,a){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!a?s:(0,r.addPathPrefix)(s,o))}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ft,ft.exports)),ft.exports}var ht={exports:{}},ro;function lu(){return ro||(ro=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(f,m){for(var w in m)Object.defineProperty(f,w,{enumerable:!0,get:m[w]})}r(e,{PrefetchKind:function(){return d},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return a},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u},isThenable:function(){return p}});const n="refresh",o="navigate",i="restore",s="server-patch",a="prefetch",l="fast-refresh",u="server-action";var d;(function(f){f.AUTO="auto",f.FULL="full",f.TEMPORARY="temporary"})(d||(d={}));function p(f){return f&&(typeof f=="object"||typeof f=="function")&&typeof f.then=="function"}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ht,ht.exports)),ht.exports}(function(t,e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return R}});const n=Fe._(y),o=Yc(),i=vi(),s=gi(),a=St(),l=Qc(),u=Xc(),d=Zc(),p=tu(),f=su(),m=au(),w=lu(),g=new Set;function b(S,D,h,M,$,T){if(typeof window>"u"||!T&&!(0,i.isLocalURL)(D))return;if(!M.bypassPrefetchedCheck){const v=typeof M.locale<"u"?M.locale:"locale"in S?S.locale:void 0,C=D+"%"+h+"%"+v;if(g.has(C))return;g.add(C)}const A=T?S.prefetch(D,$):S.prefetch(D,h,M);Promise.resolve(A).catch(v=>{if(process.env.NODE_ENV!=="production")throw v})}function x(S){const h=S.currentTarget.getAttribute("target");return h&&h!=="_self"||S.metaKey||S.ctrlKey||S.shiftKey||S.altKey||S.nativeEvent&&S.nativeEvent.which===2}function j(S,D,h,M,$,T,A,v,C){const{nodeName:B}=S.currentTarget;if(B.toUpperCase()==="A"&&(x(S)||!C&&!(0,i.isLocalURL)(h)))return;S.preventDefault();const k=()=>{const V=A??!0;"beforePopState"in D?D[$?"replace":"push"](h,M,{shallow:T,locale:v,scroll:V}):D[$?"replace":"push"](M||h,{scroll:V})};C?n.default.startTransition(k):k()}function E(S){return typeof S=="string"?S:(0,s.formatUrl)(S)}const R=n.default.forwardRef(function(D,h){let M;const{href:$,as:T,children:A,prefetch:v=null,passHref:C,replace:B,shallow:W,scroll:k,locale:V,onClick:ne,onMouseEnter:L,onTouchStart:Y,legacyBehavior:U=!1,...He}=D;M=A,U&&(typeof M=="string"||typeof M=="number")&&(M=n.default.createElement("a",null,M));const z=n.default.useContext(u.RouterContext),ze=n.default.useContext(d.AppRouterContext),le=z??ze,K=!z,J=v!==!1,ee=v===null?w.PrefetchKind.AUTO:w.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let F=function(q){return new Error("Failed prop type: The prop `"+q.key+"` expects a "+q.expected+" in `<Link>`, but got `"+q.actual+"` instead."+(typeof window<"u"?`
|
|
88
|
-
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(q=>{if(q==="href"&&(
|
|
89
|
-
Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"
|
|
90
|
-
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const
|
|
87
|
+
`,variants:{isError:{true:"border-red-500"}}}),ga=io({main:t=>ms(t),gridItem:t=>bs(t),grid:t=>gs(t),container:t=>co(t),accordion:ps,carousel:{container:t=>Rs(t),slideContainer:t=>Es(t),navigationButtons:t=>Ms(t)},calendar:{container:t=>ys(t),header:t=>vs(t),navigationButtonsContainer:t=>xs(t),navigationButtons:t=>$s(t),table:t=>ws(t),dayLabel:t=>Ps(t),cellContainer:t=>Ts(t),cell:t=>Cs(t),cellDate:t=>Ss(t)},datePicker:{container:t=>Ls(t),button:t=>Ns(t),icon:t=>Us(t),dateField:t=>Fs(t),dateSegment:t=>qs(t),label:t=>Vs(t),calendarPopover:t=>Ks(t),calendarUnderlay:t=>Bs(t)},popover:{button:t=>Ye(t),popover:()=>"border-2 text-black p-4 bg-gray-300"},typography:t=>ue(t),button:t=>Ye(t),sidePanel:{wrapper:t=>fa(t),container:t=>ha(t),innerContainer:t=>pa(t)},lightBox:ea,shareButton:{icon:t=>ua(t),button:t=>aa(t),container:t=>sa(t),linksList:t=>la(t),link:t=>ca(t),linkIcons:t=>da(t)},checkbox:{container:t=>js(t),label:t=>_s(t),checkBox:t=>ks(t),checkMark:t=>Ds(t),checkMarkIcon:t=>Os(t),errorMessage:t=>ue(t)},radio:{label:t=>ta(t),radio:t=>ra(t),selectedMark:t=>na(t),errorMessage:t=>ue(t)},radioGroup:{radioGroup:t=>oa(t),radioGroupItemsGroup:t=>ia(t),errorMessage:t=>ue(t)},checkboxGroup:{checkboxGroup:t=>Is(t),checkboxGroupItemsGroup:t=>As(t),errormessage:t=>ue(t)},select:{button:t=>Ye(t),ul:t=>ue({...t,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:t=>Ye({...t,className:"w-[var(--select-container-width)]"}),errorMessage:t=>ue({...t,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:t=>ma(t),errorMessage:t=>ue({...t,size:"footnotes",isError:!0})},textInput:{wrapper:()=>"group flex flex-col rounded-md px-4 py-1 mb-3 m-0.5 border-2 aria-disabled:pointer-events-none aria-disabled:opacity-30 focus-ring-black",label:()=>'group-has-[:required]:after:content-["_*"] group-has-[:required]:after:text-red-500 text-xs',container:()=>"flex items-center gap-4",input:()=>"",errorMessage:t=>ue({...t,size:"footnotes",isError:!0})},menu:{sidePanel:{wrapper:()=>"",container:()=>"",innerContainer:()=>""},wrapper:()=>""},menuItem:{wrapper:()=>"",container:()=>"",innerContent:()=>"",button:()=>"",anchor:()=>""},img:zs}),ba=y.memo(lo(ga)),I=(t,e={},r=null)=>{const n=so();if(n!=null&&t!=null){const{brandTheme:o}=n,i=no.get(o,t);if(typeof i=="function"){const s=i==null?void 0:i(e);if(typeof s=="string")return s}}if(r)return r},Z=({as:t="span",themeName:e="typography",tokens:r,customTheme:n,children:o,...i})=>{const s=I(e,r,n);return c.jsx(t,{...i,className:s,children:o})},uo=y.forwardRef((t,e)=>{const{as:r="span",tokens:n,themeName:o="typography",customTheme:i,children:s,...a}=t,l=I(o,n,i);return c.jsx(r,{...a,ref:e,className:l,children:s})});function ya(t,e){return e.get?e.get.call(t):e.value}function fo(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function va(t,e){var r=fo(t,e,"get");return ya(t,r)}function xa(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $r(t,e,r){xa(t,e),e.set(t,r)}function $a(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Fr(t,e,r){var n=fo(t,e,"set");return $a(t,n,r),r}let je="default",ar="",pt=new WeakMap;function qr(t){if(_.isIOS()){if(je==="default"){const e=_.getOwnerDocument(t);ar=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}je="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(pt.set(t,t.style.userSelect),t.style.userSelect="none")}function Je(t){if(_.isIOS()){if(je!=="disabled")return;je="restoring",setTimeout(()=>{_.runAfterTransition(()=>{if(je==="restoring"){const e=_.getOwnerDocument(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=ar||""),ar="",je="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&pt.has(t)){let e=pt.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),pt.delete(t)}}const ho=y.createContext({register:()=>{}});ho.displayName="PressResponderContext";function wa(t){let e=y.useContext(ho);if(e){let{register:r,...n}=e;t=_.mergeProps(n,t),r()}return _.useSyncRef(e,t.ref),t}var Qe=new WeakMap;class Xe{continuePropagation(){Fr(this,Qe,!1)}get shouldStopPropagation(){return va(this,Qe)}constructor(e,r,n){$r(this,Qe,{writable:!0,value:void 0}),Fr(this,Qe,!0),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const Ur=Symbol("linkClicked");function wr(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:p,...f}=wa(t),[m,$]=y.useState(!1),g=y.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:w}=_.useGlobalListeners(),j=_.useEffectEvent((h,M)=>{let x=g.current;if(s||x.didFirePressStart)return!1;let T=!0;if(x.isTriggeringEvent=!0,n){let N=new Xe("pressstart",M,h);n(N),T=N.shouldStopPropagation}return r&&r(!0),x.isTriggeringEvent=!1,x.didFirePressStart=!0,$(!0),T}),S=_.useEffectEvent((h,M,x=!0)=>{let T=g.current;if(!T.didFirePressStart)return!1;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let N=!0;if(o){let v=new Xe("pressend",M,h);o(v),N=v.shouldStopPropagation}if(r&&r(!1),$(!1),e&&x&&!s){let v=new Xe("press",M,h);e(v),N&&(N=v.shouldStopPropagation)}return T.isTriggeringEvent=!1,N}),P=_.useEffectEvent((h,M)=>{let x=g.current;if(s)return!1;if(i){x.isTriggeringEvent=!0;let T=new Xe("pressup",M,h);return i(T),x.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}),E=_.useEffectEvent(h=>{let M=g.current;M.isPressed&&M.target&&(M.isOverTarget&&M.pointerType!=null&&S(fe(M.target,h),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,w(),d||Je(M.target))}),R=_.useEffectEvent(h=>{u&&E(h)}),k=y.useMemo(()=>{let h=g.current,M={onKeyDown(T){if(jt(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){var N;Hr(T.target,T.key)&&T.preventDefault();let v=!0;if(!h.isPressed&&!T.repeat){h.target=T.currentTarget,h.isPressed=!0,v=j(T,"keyboard");let C=T.currentTarget,B=G=>{jt(G,C)&&!G.repeat&&C.contains(G.target)&&h.target&&P(fe(h.target,G),"keyboard")};b(_.getOwnerDocument(T.currentTarget),"keyup",_.chain(B,x),!0)}v&&T.stopPropagation(),T.metaKey&&_.isMac()&&((N=h.metaKeyEvents)===null||N===void 0||N.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!h.isTriggeringEvent&&!_.openLink.isOpening){let N=!0;if(s&&T.preventDefault(),!h.ignoreClickAfterPress&&!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||_.isVirtualClick(T.nativeEvent))){!s&&!l&&_.focusWithoutScrolling(T.currentTarget);let v=j(T,"virtual"),C=P(T,"virtual"),B=S(T,"virtual");N=v&&C&&B}h.ignoreEmulatedMouseEvents=!1,h.ignoreClickAfterPress=!1,N&&T.stopPropagation()}}},x=T=>{var N;if(h.isPressed&&h.target&&jt(T,h.target)){var v;Hr(T.target,T.key)&&T.preventDefault();let B=T.target;S(fe(h.target,T),"keyboard",h.target.contains(B)),w(),T.key!=="Enter"&&Pr(h.target)&&h.target.contains(B)&&!T[Ur]&&(T[Ur]=!0,_.openLink(h.target,T,!1)),h.isPressed=!1,(v=h.metaKeyEvents)===null||v===void 0||v.delete(T.key)}else if(T.key==="Meta"&&(!((N=h.metaKeyEvents)===null||N===void 0)&&N.size)){var C;let B=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let G of B.values())(C=h.target)===null||C===void 0||C.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){M.onPointerDown=C=>{if(C.button!==0||!C.currentTarget.contains(C.target))return;if(_.isVirtualPointerEvent(C.nativeEvent)){h.pointerType="virtual";return}_t(C.currentTarget)&&C.preventDefault(),h.pointerType=C.pointerType;let B=!0;h.isPressed||(h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=C.pointerId,h.target=C.currentTarget,!s&&!l&&_.focusWithoutScrolling(C.currentTarget),d||qr(h.target),B=j(C,h.pointerType),b(_.getOwnerDocument(C.currentTarget),"pointermove",T,!1),b(_.getOwnerDocument(C.currentTarget),"pointerup",N,!1),b(_.getOwnerDocument(C.currentTarget),"pointercancel",v,!1)),B&&C.stopPropagation()},M.onMouseDown=C=>{C.currentTarget.contains(C.target)&&C.button===0&&(_t(C.currentTarget)&&C.preventDefault(),C.stopPropagation())},M.onPointerUp=C=>{!C.currentTarget.contains(C.target)||h.pointerType==="virtual"||C.button===0&&Re(C,C.currentTarget)&&P(C,h.pointerType||C.pointerType)};let T=C=>{C.pointerId===h.activePointerId&&(h.target&&Re(C,h.target)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,j(fe(h.target,C),h.pointerType)):h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S(fe(h.target,C),h.pointerType,!1),R(C)))},N=C=>{C.pointerId===h.activePointerId&&h.isPressed&&C.button===0&&h.target&&(Re(C,h.target)&&h.pointerType!=null?S(fe(h.target,C),h.pointerType):h.isOverTarget&&h.pointerType!=null&&S(fe(h.target,C),h.pointerType,!1),h.isPressed=!1,h.isOverTarget=!1,h.activePointerId=null,h.pointerType=null,w(),d||Je(h.target))},v=C=>{E(C)};M.onDragStart=C=>{C.currentTarget.contains(C.target)&&E(C)}}else{M.onMouseDown=v=>{if(v.button!==0||!v.currentTarget.contains(v.target))return;if(_t(v.currentTarget)&&v.preventDefault(),h.ignoreEmulatedMouseEvents){v.stopPropagation();return}h.isPressed=!0,h.isOverTarget=!0,h.target=v.currentTarget,h.pointerType=_.isVirtualClick(v.nativeEvent)?"virtual":"mouse",!s&&!l&&_.focusWithoutScrolling(v.currentTarget),j(v,h.pointerType)&&v.stopPropagation(),b(_.getOwnerDocument(v.currentTarget),"mouseup",T,!1)},M.onMouseEnter=v=>{if(!v.currentTarget.contains(v.target))return;let C=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,C=j(v,h.pointerType)),C&&v.stopPropagation()},M.onMouseLeave=v=>{if(!v.currentTarget.contains(v.target))return;let C=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,C=S(v,h.pointerType,!1),R(v)),C&&v.stopPropagation()},M.onMouseUp=v=>{v.currentTarget.contains(v.target)&&!h.ignoreEmulatedMouseEvents&&v.button===0&&P(v,h.pointerType||"mouse")};let T=v=>{if(v.button===0){if(h.isPressed=!1,w(),h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&Re(v,h.target)&&h.pointerType!=null?S(fe(h.target,v),h.pointerType):h.target&&h.isOverTarget&&h.pointerType!=null&&S(fe(h.target,v),h.pointerType,!1),h.isOverTarget=!1}};M.onTouchStart=v=>{if(!v.currentTarget.contains(v.target))return;let C=Pa(v.nativeEvent);if(!C)return;h.activePointerId=C.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=v.currentTarget,h.pointerType="touch",!s&&!l&&_.focusWithoutScrolling(v.currentTarget),d||qr(h.target),j(v,h.pointerType)&&v.stopPropagation(),b(_.getOwnerWindow(v.currentTarget),"scroll",N,!0)},M.onTouchMove=v=>{if(!v.currentTarget.contains(v.target))return;if(!h.isPressed){v.stopPropagation();return}let C=Vr(v.nativeEvent,h.activePointerId),B=!0;C&&Re(C,v.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,B=j(v,h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,B=S(v,h.pointerType,!1),R(v)),B&&v.stopPropagation()},M.onTouchEnd=v=>{if(!v.currentTarget.contains(v.target))return;if(!h.isPressed){v.stopPropagation();return}let C=Vr(v.nativeEvent,h.activePointerId),B=!0;C&&Re(C,v.currentTarget)&&h.pointerType!=null?(P(v,h.pointerType),B=S(v,h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(B=S(v,h.pointerType,!1)),B&&v.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!d&&Je(h.target),w()},M.onTouchCancel=v=>{v.currentTarget.contains(v.target)&&(v.stopPropagation(),h.isPressed&&E(v))};let N=v=>{h.isPressed&&v.target.contains(h.target)&&E({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=v=>{v.currentTarget.contains(v.target)&&E(v)}}return M},[b,s,l,w,d,E,R,S,j,P]);return y.useEffect(()=>()=>{var h;d||Je((h=g.current.target)!==null&&h!==void 0?h:void 0)},[d]),{isPressed:a||m,pressProps:_.mergeProps(f,k)}}function Pr(t){return t.tagName==="A"&&t.hasAttribute("href")}function jt(t,e){const{key:r,code:n}=t,o=e,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof _.getOwnerWindow(o).HTMLInputElement&&!po(o,r)||o instanceof _.getOwnerWindow(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Pr(o))&&r!=="Enter")}function Pa(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Vr(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===e)return o}return null}function fe(t,e){return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey}}function Ta(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function Ca(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Re(t,e){let r=e.getBoundingClientRect(),n=Ta(t);return Ca(r,n)}function _t(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function Hr(t,e){return t instanceof HTMLInputElement?!po(t,e):t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Pr(t)}const Sa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function po(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Sa.has(t.type)}let qe=null,Ra=new Set,Be=new Map,we=!1,lr=!1;function Tr(t,e){for(let r of Ra)r(t,e)}function Ea(t){return!(t.metaKey||!_.isMac()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function yt(t){we=!0,Ea(t)&&(qe="keyboard",Tr("keyboard",t))}function se(t){qe="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(we=!0,Tr("pointer",t))}function mo(t){_.isVirtualClick(t)&&(we=!0,qe="virtual")}function go(t){t.target===window||t.target===document||(!we&&!lr&&(qe="virtual",Tr("virtual",t)),we=!1,lr=!1)}function bo(){we=!1,lr=!0}function zr(t){if(typeof window>"u"||Be.get(_.getOwnerWindow(t)))return;const e=_.getOwnerWindow(t),r=_.getOwnerDocument(t);let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){we=!0,n.apply(this,arguments)},r.addEventListener("keydown",yt,!0),r.addEventListener("keyup",yt,!0),r.addEventListener("click",mo,!0),e.addEventListener("focus",go,!0),e.addEventListener("blur",bo,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",se,!0),r.addEventListener("pointermove",se,!0),r.addEventListener("pointerup",se,!0)):(r.addEventListener("mousedown",se,!0),r.addEventListener("mousemove",se,!0),r.addEventListener("mouseup",se,!0)),e.addEventListener("beforeunload",()=>{yo(t)},{once:!0}),Be.set(e,{focus:n})}const yo=(t,e)=>{const r=_.getOwnerWindow(t),n=_.getOwnerDocument(t);e&&n.removeEventListener("DOMContentLoaded",e),Be.has(r)&&(r.HTMLElement.prototype.focus=Be.get(r).focus,n.removeEventListener("keydown",yt,!0),n.removeEventListener("keyup",yt,!0),n.removeEventListener("click",mo,!0),r.removeEventListener("focus",go,!0),r.removeEventListener("blur",bo,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",se,!0),n.removeEventListener("pointermove",se,!0),n.removeEventListener("pointerup",se,!0)):(n.removeEventListener("mousedown",se,!0),n.removeEventListener("mousemove",se,!0),n.removeEventListener("mouseup",se,!0)),Be.delete(r))};function Ma(t){const e=_.getOwnerDocument(t);let r;return e.readyState!=="loading"?zr(t):(r=()=>{zr(t)},e.addEventListener("DOMContentLoaded",r)),()=>yo(t,r)}typeof document<"u"&&Ma();function Wr(){return qe}const ja=500;function _a(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=ja,accessibilityDescription:s}=t;const a=y.useRef();let{addGlobalListener:l,removeGlobalListener:u}=_.useGlobalListeners(),{pressProps:d}=wr({isDisabled:e,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),a.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),a.current=void 0},i),f.pointerType==="touch")){let m=$=>{$.preventDefault()};l(f.target,"contextmenu",m,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(f){a.current&&clearTimeout(a.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),p=_.useDescription(o&&!e?s:void 0);return{longPressProps:_.mergeProps(d,p)}}function ka(t,e){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:p,href:f,target:m,rel:$,type:g="button"}=t,b;r==="button"?b={type:g,disabled:n}:b={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:f,target:r==="a"?m:void 0,type:r==="input"?g:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?$:void 0};let{pressProps:w,isPressed:j}=wr({onPressStart:i,onPressEnd:s,onPressChange:l,onPress:o,onPressUp:a,isDisabled:n,preventFocusOnPress:u,ref:e}),{focusableProps:S}=ae.useFocusable(t,e);d&&(S.tabIndex=n?-1:S.tabIndex);let P=_.mergeProps(S,w,_.filterDOMProps(t,{labelable:!0}));return{isPressed:j,buttonProps:_.mergeProps(b,P,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:E=>{p&&(p(E),console.warn("onClick is deprecated, please use onPress"))}})}}function cr(t){return _.isAppleDevice()?t.altKey:t.ctrlKey}function Me(t){return _.isMac()?t.metaKey:t.ctrlKey}const Da=1e3;function Oa(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,o=y.useRef({search:"",timeout:null}).current,i=s=>{let a=Ia(s.key);if(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;a===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=a;let l=e.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=e.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Da)};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:null}}}function Ia(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Aa(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,selectOnFocus:l=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:f,scrollRef:m=n,linkBehavior:$="action"}=t,{direction:g}=Oe.useLocale(),b=_.useRouter(),w=x=>{if(x.altKey&&x.key==="Tab"&&x.preventDefault(),!n.current.contains(x.target))return;const T=(A,Y)=>{if(A!=null){if(e.isLink(A)&&$==="selection"&&l&&!cr(x)){Yi.flushSync(()=>{e.setFocusedKey(A,Y)});let U=m.current.querySelector(`[data-key="${CSS.escape(A.toString())}"]`);b.open(U,x);return}if(e.setFocusedKey(A,Y),e.isLink(A)&&$==="override")return;x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(A):l&&!cr(x)&&e.replaceSelection(A)}};switch(x.key){case"ArrowDown":if(r.getKeyBelow){var N,v;x.preventDefault();let A=e.focusedKey!=null?r.getKeyBelow(e.focusedKey):(N=r.getFirstKey)===null||N===void 0?void 0:N.call(r);A==null&&i&&(A=(v=r.getFirstKey)===null||v===void 0?void 0:v.call(r,e.focusedKey)),T(A)}break;case"ArrowUp":if(r.getKeyAbove){var C,B;x.preventDefault();let A=e.focusedKey!=null?r.getKeyAbove(e.focusedKey):(C=r.getLastKey)===null||C===void 0?void 0:C.call(r);A==null&&i&&(A=(B=r.getLastKey)===null||B===void 0?void 0:B.call(r,e.focusedKey)),T(A)}break;case"ArrowLeft":if(r.getKeyLeftOf){var G,D;x.preventDefault();let A=r.getKeyLeftOf(e.focusedKey);A==null&&i&&(A=g==="rtl"?(G=r.getFirstKey)===null||G===void 0?void 0:G.call(r,e.focusedKey):(D=r.getLastKey)===null||D===void 0?void 0:D.call(r,e.focusedKey)),T(A,g==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var V,ne;x.preventDefault();let A=r.getKeyRightOf(e.focusedKey);A==null&&i&&(A=g==="rtl"?(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,e.focusedKey):(ne=r.getFirstKey)===null||ne===void 0?void 0:ne.call(r,e.focusedKey)),T(A,g==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){x.preventDefault();let A=r.getFirstKey(e.focusedKey,Me(x));e.setFocusedKey(A),Me(x)&&x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(A):l&&e.replaceSelection(A)}break;case"End":if(r.getLastKey){x.preventDefault();let A=r.getLastKey(e.focusedKey,Me(x));e.setFocusedKey(A),Me(x)&&x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(A):l&&e.replaceSelection(A)}break;case"PageDown":if(r.getKeyPageBelow){x.preventDefault();let A=r.getKeyPageBelow(e.focusedKey);T(A)}break;case"PageUp":if(r.getKeyPageAbove){x.preventDefault();let A=r.getKeyPageAbove(e.focusedKey);T(A)}break;case"a":Me(x)&&e.selectionMode==="multiple"&&a!==!0&&(x.preventDefault(),e.selectAll());break;case"Escape":x.preventDefault(),s||e.clearSelection();break;case"Tab":if(!p){if(x.shiftKey)n.current.focus();else{let A=ae.getFocusableTreeWalker(n.current,{tabbable:!0}),Y,U;do U=A.lastChild(),U&&(Y=U);while(U);Y&&!Y.contains(document.activeElement)&&_.focusWithoutScrolling(Y)}break}}},j=y.useRef({top:0,left:0});_.useEvent(m,"scroll",f?null:()=>{j.current={top:m.current.scrollTop,left:m.current.scrollLeft}});let S=x=>{if(e.isFocused){x.currentTarget.contains(x.target)||e.setFocused(!1);return}if(x.currentTarget.contains(x.target)){if(e.setFocused(!0),e.focusedKey==null){let v=B=>{B!=null&&(e.setFocusedKey(B),l&&e.replaceSelection(B))},C=x.relatedTarget;var T,N;C&&x.currentTarget.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_FOLLOWING?v((T=e.lastSelectedKey)!==null&&T!==void 0?T:r.getLastKey()):v((N=e.firstSelectedKey)!==null&&N!==void 0?N:r.getFirstKey())}else f||(m.current.scrollTop=j.current.top,m.current.scrollLeft=j.current.left);if(!f&&e.focusedKey!=null){let v=m.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);v&&(v.contains(document.activeElement)||_.focusWithoutScrolling(v),Wr()==="keyboard"&&_.scrollIntoViewport(v,{containingElement:n.current}))}}},P=x=>{x.currentTarget.contains(x.relatedTarget)||e.setFocused(!1)};const E=y.useRef(o);y.useEffect(()=>{if(E.current){let x=null;o==="first"&&(x=r.getFirstKey()),o==="last"&&(x=r.getLastKey());let T=e.selectedKeys;if(T.size){for(let N of T)if(e.canSelectItem(N)){x=N;break}}e.setFocused(!0),e.setFocusedKey(x),x==null&&!d&&ae.focusSafely(n.current)}},[]);let R=y.useRef(e.focusedKey);y.useEffect(()=>{let x=Wr();if(e.isFocused&&e.focusedKey!=null&&(m!=null&&m.current)){let T=m.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);T&&(x==="keyboard"||E.current)&&(f||_.scrollIntoView(m.current,T),x!=="virtual"&&_.scrollIntoViewport(T,{containingElement:n.current}))}e.isFocused&&e.focusedKey==null&&R.current!=null&&ae.focusSafely(n.current),R.current=e.focusedKey,E.current=!1},[f,m,e.focusedKey,e.isFocused,n]);let k={onKeyDown:w,onFocus:S,onBlur:P,onMouseDown(x){m.current===x.target&&x.preventDefault()}},{typeSelectProps:h}=Oa({keyboardDelegate:r,selectionManager:e});u||(k=_.mergeProps(h,k));let M;return d||(M=e.focusedKey==null?0:-1),{collectionProps:{...k,tabIndex:M}}}function La(t){let{selectionManager:e,key:r,ref:n,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:s,isDisabled:a,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d="action"}=t,p=_.useRouter(),f=D=>{if(D.pointerType==="keyboard"&&cr(D))e.toggleSelection(r);else{if(e.selectionMode==="none")return;if(e.isLink(r)){if(d==="selection"){p.open(n.current,D),e.setSelectedKeys(e.selectedKeys);return}else if(d==="override"||d==="none")return}e.selectionMode==="single"?e.isSelected(r)&&!e.disallowEmptySelection?e.toggleSelection(r):e.replaceSelection(r):D&&D.shiftKey?e.extendSelection(r):e.selectionBehavior==="toggle"||D&&(Me(D)||D.pointerType==="touch"||D.pointerType==="virtual")?e.toggleSelection(r):e.replaceSelection(r)}};y.useEffect(()=>{r===e.focusedKey&&e.isFocused&&!i&&(s?s():document.activeElement!==n.current&&ae.focusSafely(n.current))},[n,r,e.focusedKey,e.childFocusStrategy,e.isFocused,i]),a=a||e.isDisabled(r);let m={};!i&&!a?m={tabIndex:r===e.focusedKey?0:-1,onFocus(D){D.target===n.current&&e.setFocusedKey(r)}}:a&&(m.onMouseDown=D=>{D.preventDefault()});let $=e.isLink(r)&&d==="override",g=e.isLink(r)&&d!=="selection"&&d!=="none",b=!a&&e.canSelectItem(r)&&!$,w=(l||g)&&!a,j=w&&(e.selectionBehavior==="replace"?!b:!b||e.isEmpty),S=w&&b&&e.selectionBehavior==="replace",P=j||S,E=y.useRef(null),R=P&&b,k=y.useRef(!1),h=y.useRef(!1),M=D=>{l&&l(),g&&p.open(n.current,D)},x={};o?(x.onPressStart=D=>{E.current=D.pointerType,k.current=R,D.pointerType==="keyboard"&&(!P||Yr())&&f(D)},u?(x.onPressUp=j?null:D=>{D.pointerType!=="keyboard"&&b&&f(D)},x.onPress=j?M:null):x.onPress=D=>{if(j||S&&D.pointerType!=="mouse"){if(D.pointerType==="keyboard"&&!Gr())return;M(D)}else D.pointerType!=="keyboard"&&b&&f(D)}):(x.onPressStart=D=>{E.current=D.pointerType,k.current=R,h.current=j,b&&(D.pointerType==="mouse"&&!j||D.pointerType==="keyboard"&&(!w||Yr()))&&f(D)},x.onPress=D=>{(D.pointerType==="touch"||D.pointerType==="pen"||D.pointerType==="virtual"||D.pointerType==="keyboard"&&P&&Gr()||D.pointerType==="mouse"&&h.current)&&(P?M(D):b&&f(D))}),m["data-key"]=r,x.preventFocusOnPress=i;let{pressProps:T,isPressed:N}=wr(x),v=S?D=>{E.current==="mouse"&&(D.stopPropagation(),D.preventDefault(),M(D))}:void 0,{longPressProps:C}=_a({isDisabled:!R,onLongPress(D){D.pointerType==="touch"&&(f(D),e.setSelectionBehavior("toggle"))}}),B=D=>{E.current==="touch"&&k.current&&D.preventDefault()},G=e.isLink(r)?D=>{_.openLink.isOpening||D.preventDefault()}:void 0;return{itemProps:_.mergeProps(m,b||j?T:{},R?C:{},{onDoubleClick:v,onDragStartCapture:B,onClick:G}),isPressed:N,isSelected:e.isSelected(r),isFocused:e.isFocused&&e.focusedKey===r,isDisabled:a,allowsSelection:b,hasAction:P}}function Gr(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Yr(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Na{getNextKey(e){for(e=this.collection.getKeyAfter(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,r,n){let o=this.getItem(e);if(!o)return null;let i=o.getBoundingClientRect();do e=r(e),o=this.getItem(e);while(o&&n(i,o.getBoundingClientRect()));return e}isSameRow(e,r){return e.top===r.top||e.left!==r.left}isSameColumn(e,r){return e.left===r.left||e.top!==r.top}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,r){return r?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();for(;e!=null;){let r=this.collection.getItem(e);if((r==null?void 0:r.type)==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return this.ref.current.querySelector(`[data-key="${CSS.escape(e.toString())}"]`)}getKeyPageAbove(e){let r=this.ref.current,n=this.getItem(e);if(!n)return null;if(!_.isScrollable(r))return this.getFirstKey();let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-r.scrollLeft,a=Math.max(0,i.x-s+i.width-o.width);for(;n&&i.x-s>a;)e=this.getKeyAbove(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}else{let s=o.y-r.scrollTop,a=Math.max(0,i.y-s+i.height-o.height);for(;n&&i.y-s>a;)e=this.getKeyAbove(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}return e??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.getItem(e);if(!n)return null;if(!_.isScrollable(r))return this.getLastKey();let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-r.scrollLeft,a=Math.min(r.scrollWidth,i.x-s-i.width+o.width);for(;n&&i.x-s<a;)e=this.getKeyBelow(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}else{let s=o.y-r.scrollTop,a=Math.min(r.scrollHeight,i.y-s-i.height+o.height);for(;n&&i.y-s<a;)e=this.getKeyBelow(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}return e??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o),s=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(s,e)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...e){if(e.length===1){let r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.orientation=r.orientation,this.direction=r.direction,this.layout=r.layout||"stack"}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Ba(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i}=t,s=Oe.useCollator({usage:"search",sensitivity:"base"}),a=e.disabledBehavior,l=y.useMemo(()=>i||new Na(r,a==="selection"?new Set:n,o,s),[i,r,n,o,s,a]),{collectionProps:u}=Aa({...t,ref:o,selectionManager:e,keyboardDelegate:l});return{listProps:u}}function Ka(t,e,r){let{item:n}=t,o=_.useId(),i=_.useId(),s=e.disabledKeys.has(n.key),{itemProps:a}=La({selectionManager:e.selectionManager,key:n.key,ref:r}),{buttonProps:l}=ka(_.mergeProps(a,{id:o,elementType:"button",isDisabled:s,onPress:()=>e.toggleKey(n.key)}),r),u=e.expandedKeys.has(n.key);return{buttonProps:{...l,"aria-expanded":u,"aria-controls":u?i:void 0},regionProps:{id:i,role:"region","aria-labelledby":o}}}function Fa(t,e,r){let{listProps:n}=Ba({...t,...e,allowsTabNavigation:!0,ref:r});return{accordionProps:{...n,tabIndex:void 0}}}function vo(){const t=y.createContext(void 0);function e(){const r=y.useContext(t);if(r===void 0)throw new Error("useCtx must be inside a Provider");return r}return[e,t.Provider]}function xo(){const t=y.createContext(void 0);function e(){const r=y.useContext(t);return r===void 0?{}:r}return[e,t.Provider]}const[$o,qa]=xo();function wo(t){const{state:e,children:r,TransitionAnimation:n}=t,o=y.useMemo(()=>({state:e,TransitionAnimation:n}),[e,n]);return c.jsx(qa,{value:o,children:r})}const W=({as:t="div",themeName:e="box",tokens:r,customTheme:n,children:o,className:i,...s})=>{const a=I(e,r,n);return c.jsx(t,{...s,className:a,children:o})},Te=y.forwardRef((t,e)=>{const{as:r="div",tokens:n,themeName:o="box",customTheme:i,children:s,...a}=t,l=I(o,n,i);return c.jsx(r,{...a,ref:e,className:l,children:s})}),Ua=t=>{const{isVisible:e,children:r,themeName:n,tokens:o,customTheme:i,...s}=t,a=oe.useTransition(e,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),l=I(n,o,i);return a((u,d)=>d&&c.jsx(oe.animated.div,{...s,style:u,className:l,children:r}))},Cr=y.forwardRef((t,e)=>{var $;const{as:r="a",handlePress:n,children:o,as:i,customTheme:s,tokens:a,themeName:l="button",nextLinkProps:u,...d}=t,p=e,{linkProps:f}=L.useLink({...t,...u,href:t.href??(($=u==null?void 0:u.href)==null?void 0:$.toString()),elementType:i==null?void 0:i.toString(),onPress:n},e??p),m=I(l,a,s);return c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsx(r,{ref:p,...f,...u,...d,className:m,children:o})})}),Po=y.forwardRef((t,e)=>{const{as:r="button",handlePress:n,children:o,as:i,customTheme:s,tokens:a,themeName:l="button",isDisabled:u=!1,...d}=t,p=e,{buttonProps:f}=L.useButton({...t,isDisabled:u,elementType:i,onPress:n},e??p),m=I(l,a,s);return c.jsx(L.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:c.jsx(r,{ref:p,...f,...d,className:m,children:o})})}),Ue=y.forwardRef((t,e)=>{const{as:r}=t;return r==="a"?c.jsx(Cr,{ref:e,...t}):c.jsx(Po,{ref:e,...t})}),Va=t=>{const{as:e}=t,r=y.useRef(null);return e==="a"?c.jsx(Cr,{ref:r,...t}):c.jsx(Po,{ref:r,...t})},ve=y.memo(Va),Ha=(t,e)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+e)))})},za=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...t}),To=y.memo(za),Wa=Object.freeze(Object.defineProperty({__proto__:null,default:To},Symbol.toStringTag,{value:"Module"})),Ga=t=>{const{icon:e,...r}=t,n=y.useMemo(()=>y.lazy(()=>Ha(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>Tu),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>Su),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>Eu),"../icons/Check.tsx":()=>Promise.resolve().then(()=>ju),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>ku),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>Ou),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>Au),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>Nu),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>Ku),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>qu),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>Vu),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>Wa),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>zu),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>Gu),"../icons/Link.tsx":()=>Promise.resolve().then(()=>Ju),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>Xu),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>ed),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>rd),"../icons/Share.tsx":()=>Promise.resolve().then(()=>od),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>sd),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>ld),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>ud),"../icons/X.tsx":()=>Promise.resolve().then(()=>fd),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>pd),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>gd)}),`../icons/${e||"ArrowRight"}.tsx`)),[e]);return c.jsx(y.Suspense,{fallback:c.jsx(To,{className:"overflow-visible pointer-events-none"}),children:c.jsx(n,{...r,className:"overflow-visible pointer-events-none",...t})})},ce=t=>{const{icon:e,as:r="span",tokens:n,customTheme:o,themeName:i="icon",children:s,...a}=t,l=I(i,n,o);return typeof e!="string"?c.jsxs(r,{...a,className:l,children:[s,e]}):c.jsxs(r,{className:l,children:[s,c.jsx(Ga,{icon:e,...a})]})},Ya=t=>{const{item:e,tokens:r,customTheme:n}=t,{props:o,rendered:i,key:s}=e,{icon:a,title:l,onOpenChange:u,tokens:d,themeName:p}=o??{},{themeName:f=p}=t,m=y.useRef(null),{state:$,TransitionAnimation:g=Ua}=$o(),{buttonProps:{onClick:b,onKeyDown:w,onPointerDown:j,...S},regionProps:P}=Ka(t,$,m),E=$.selectionManager.selectedKeys.has(s),R={...r,isOpen:E,...d},k=h=>{h.continuePropagation(),$.selectionManager.select(e.key),$.toggleKey(e.key)};return Ji.useUpdateEffect(()=>{u==null||u(E)},[E]),c.jsxs(W,{themeName:`${f}.container`,tokens:R,customTheme:n,children:[c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsxs(Ue,{...S,handlePress:k,ref:m,themeName:`${f}.button`,tokens:R,children:[c.jsx(W,{themeName:`${f}.title`,tokens:R,children:l}),a&&c.jsx(W,{themeName:`${f}.icon`,tokens:R,children:c.jsx(ce,{icon:a})})]})}),c.jsx(g,{isVisible:E,themeName:`${f}.region`,...P,tokens:R,children:c.jsx(W,{themeName:`${f}.content`,tokens:R,children:c.jsx(L.FocusScope,{autoFocus:!0,children:i})})})]})};function Co(t){const{children:e,defaultSelectedKeys:r,selectionMode:n="single",selectedKeys:o,onSelectionChange:i,...s}=t,a=Array.isArray(e)?e:[e],l=r??a.reduce((d,p)=>{const{props:f,key:m}=p,{defaultOpen:$}=f??{};return!$||!m||d.push(m),d},[]);return Pe.useTreeState({children:e,selectionMode:n,defaultExpandedKeys:l,defaultSelectedKeys:l,expandedKeys:o,selectedKeys:o,onSelectionChange:i,...s})}const Ja=t=>{const{themeName:e="accordion",tokens:r,customTheme:n,TransitionAnimation:o}=t,i=y.useRef(null),s=Co(t),{accordionProps:a}=Fa(t,s,i);return c.jsx(wo,{state:s,TransitionAnimation:o,children:c.jsx(Te,{themeName:`${e}.wrapper`,tokens:r,customTheme:n,ref:i,...a,children:[...s.collection].map(l=>c.jsx(Ya,{item:l,themeName:e,tokens:r},l.key))})})},So=t=>null;So.getCollectionNode=function*(e){const{children:r,childItems:n,title:o}=e,i=e.textValue||(typeof r=="string"?r:"")||e["aria-label"]||"";yield{type:"item",props:e,rendered:r,textValue:i,"aria-label":e["aria-label"],hasChildNodes:!1,*childNodes(){if(n)for(const s of n)yield{type:"item",value:s};else if(o){const s=[];y.Children.forEach(r,a=>{s.push({type:"item",element:a})}),yield*s}}}};const Qa=So,Xa=t=>{const{sharingLinksList:e,id:r,isOpen:n,setIsOpen:o,onShare:i,themeName:s="shareButton",tokens:a,customTheme:l}=t,u=I(`${s}.linksList`,{...a,isOpen:n},l),d=L.useFocusManager(),p=f=>{f.key==="Escape"&&o(!1);const{listDirection:m}=a??{};m==="row"&&(f.key==="ArrowRight"&&(d==null||d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowLeft"&&(d==null||d.focusPrevious({wrap:!0}),f.preventDefault())),m==="column"&&(f.key==="ArrowDown"&&(d==null||d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowUp"&&(d==null||d.focusPrevious({wrap:!0}),f.preventDefault()))};return c.jsx("div",{className:u,id:r,role:"listbox",tabIndex:-1,onKeyDown:p,children:e==null?void 0:e.map(f=>{const{ariaLabel:m,onClick:$,href:g,icon:b,key:w}=f;return c.jsx(ve,{themeName:`${s}.link`,tokens:{...a,isOpen:n},handlePress:()=>{i==null||i(w),$==null||$(w)},"aria-label":m,...g?{href:g,rel:"noopener noreferrer",target:"_blank",as:"a"}:{},role:"option",children:c.jsx(ce,{themeName:`${s}.linkIcons`,icon:b})},w)})})},Za=t=>{const{ariaLabel:e,icon:r,id:n,sharingLinksList:o,onShare:i,customTheme:s,themeName:a="shareButton",tokens:l,...u}=t,[d,p]=y.useState(!1),f=I(`${a}.container`,l,s),m=g=>{p(!d),!d&&setTimeout(()=>{var w,j;const b=(j=(w=g.target.parentElement)==null?void 0:w.lastChild)==null?void 0:j.firstChild;b==null||b.focus()})},$=g=>{const b=g.currentTarget.firstChild,w=g.currentTarget.lastChild,j=w.firstChild,S=w.lastChild,{listDirection:P}=l??{};P==="row"&&(g.key==="ArrowRight"&&g.target===b&&(j==null||j.focus(),g.preventDefault()),g.key==="ArrowLeft"&&g.target===b&&(S.focus(),g.preventDefault())),P==="column"&&(g.key==="ArrowDown"&&g.target===b&&(j==null||j.focus(),g.preventDefault()),g.key==="ArrowUp"&&g.target===b&&(S.focus(),g.preventDefault())),g.key==="Escape"&&(p(!1),b==null||b.focus()),document.activeElement===w&&(b==null||b.focus())};return c.jsx(L.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:d,children:c.jsxs("div",{className:f,onKeyDown:$,children:[c.jsx(Ue,{themeName:`${a}.button`,tokens:{...l,isOpen:d},"aria-label":e,"aria-haspopup":"listbox","aria-expanded":d?"true":"false","aria-controls":"share-buttons",handlePress:m,...u,children:c.jsx(ce,{themeName:`${a}.icon`,icon:r??"Share"})}),d&&c.jsx(Xa,{id:n,sharingLinksList:o,onShare:i,isOpen:d,setIsOpen:p,themeName:a,customTheme:s,tokens:l})]})})};function Ro(t,e){const{type:r="dialog"}=t,{triggerProps:{onPress:n,...o},overlayProps:i}=L.useOverlayTrigger({type:r},e),s={handlePress:n,...o},a=_.useSlotId();return{openTriggerProps:{"aria-labelledby":a,...s},triggerProps:s,labelProps:{id:a},overlayProps:{...i,"aria-labelledby":a}}}const[Sr,el]=vo();function Eo(t){const{children:e,defaultSelectedKey:r,onOpenCallback:n,onCloseCallback:o,defaultIsOpen:i=!1,type:s="dialog"}=t,a=y.useRef(null),l=y.useRef(null),u=Pe.useOverlayTriggerState({defaultOpen:i,onOpenChange(m){if(!m){o==null||o();return}n==null||n()}}),{triggerProps:d,overlayProps:p}=Ro({type:s},u),f=y.useMemo(()=>({overlayProps:p,defaultSelectedKey:r,overlayState:u,buttonProps:{closeButtonProps:d,closeButtonRef:l,openButtonProps:d,openButtonRef:a}}),[u,r,d,p]);return c.jsx(el,{value:f,children:e})}const Mo=({isVisible:t,children:e})=>oe.useTransition(t,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((n,o)=>o&&c.jsx(oe.animated.div,{style:n,children:e})),tl="fixed",rl=({isVisible:t,children:e})=>oe.useTransition(t,{from:{opacity:0,position:tl,left:0,top:0,zIndex:1e3,bottom:0,height:"100%"},enter:{opacity:1},leave:{opacity:0},config:oe.config.stiff})((n,o)=>o&&c.jsx(oe.animated.div,{style:n,children:e})),nl=({isVisible:t,children:e})=>oe.useTransition(t,{from:{opacity:0,scale:.75},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:oe.config.stiff})((n,o)=>o&&c.jsx(oe.animated.div,{style:{position:"fixed",left:0,top:0,bottom:0,zIndex:1e3,width:"100%",height:"100%",...n},children:e})),ol=t=>{const{children:e,themeName:r,tokens:n,customTheme:o}=t,i=y.useRef(null),{dialogProps:s}=L.useDialog(t,i);return c.jsx(Te,{themeName:`${r}.dialog`,tokens:n,customTheme:o,ref:i,"aria-modal":!0,...s,children:c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:c.jsx(L.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:e})})})},il=t=>{const{themeName:e,tokens:r,customTheme:n,children:o,state:i,...s}=t,a=y.useRef(null),{modalProps:l,underlayProps:u}=L.useModalOverlay(s,i,a);return c.jsx(W,{themeName:`${e}.underlay`,tokens:r,customTheme:n,...u,children:c.jsx(Te,{ref:a,themeName:`${e}.overlay`,tokens:r,...l,children:o})})},Rr=t=>{const{children:e,transitionComponent:r=nl,state:n,themeName:o,tokens:i,...s}=t;return c.jsx(L.OverlayContainer,{children:c.jsx(r,{isVisible:n.isOpen,children:c.jsx(il,{themeName:o,tokens:i,state:n,...s,children:c.jsx(ol,{themeName:o,tokens:i,...s,children:e})})})})},sl=t=>{const{children:e,closeBtnRender:r,themeName:n="sidePanel",tokens:o,TransitionAnimation:i=Mo,PanelTransition:s=rl,customTheme:a}=t,l=I(`${n}.wrapper`,o,a),u=I(`${n}.container`,o,a),d=I(`${n}.innerContainer`,o,a),{overlayState:p,overlayProps:f}=Sr();return c.jsx(Rr,{state:p,...f,transitionComponent:s,isDismissable:!0,children:c.jsxs(Qi,{className:l,children:[r&&r(),c.jsx(i,{isVisible:p.isOpen,children:c.jsx("div",{className:u,children:c.jsx("div",{className:d,children:e})})})]})})},jo=y.memo(sl),al=t=>{const{themeName:e,tokens:r,children:n,...o}=t;return c.jsx(ve,{themeName:e,tokens:r,...o,children:c.jsx(ce,{icon:"CloseBtn"})})},ll=t=>{const{children:e,thumbnailContent:r,label:n,themeName:o="lightBox",tokens:i,closeButton:s=al,setOpen:a,isOpen:l,closeButtonAriaLabel:u}=t,d=Pe.useOverlayTriggerState(t),{openTriggerProps:p,triggerProps:f,overlayProps:m,labelProps:$}=Ro({...t,type:"dialog"},d),g=b=>{var w;a==null||a(!l),(w=p.handlePress)==null||w.call(p,b)};return c.jsxs(c.Fragment,{children:[c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs(ve,{themeName:`${o}.wrapper`,tokens:i,...p,handlePress:g,children:[n&&c.jsx(Z,{themeName:`${o}.label`,tokens:{size:"footnotes"},...$,children:n}),r]})}),c.jsxs(Rr,{themeName:`${o}.modal`,tokens:i,state:d,...m,children:[c.jsx(s,{themeName:`${o}.closeBtn`,tokens:i,"aria-label":u,...f}),c.jsx(W,{themeName:`${o}.container`,tokens:i,children:e})]})]})},cl=y.forwardRef((t,e)=>{const{isOpen:r,onClose:n,children:o,positionProps:i,themeName:s="popover",tokens:a,customTheme:l,isDismissable:u,shouldCloseOnBlur:d,...p}=t,{overlayProps:f}=L.useOverlay({isDismissable:u,shouldCloseOnBlur:d,isOpen:r,onClose:n},e),{modalProps:m}=L.useModal(),{dialogProps:$}=L.useDialog({},e),g=I(`${s}.popover`,a,l);return c.jsx(L.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:c.jsxs(Te,{customTheme:g,...L.mergeProps(f,m,$),ref:e,...i,...p,children:[y.Children.map(o,b=>c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",children:b})),c.jsx(L.DismissButton,{onDismiss:n})]})})});function ul(t){const{children:e,buttonProps:r,placement:n="right",offset:o=5,themeName:i="popover",tokens:s,customTheme:a,...l}=t,u=Pe.useOverlayTriggerState({}),d=y.useRef(null),p=y.useRef(null),{triggerProps:f,overlayProps:m}=L.useOverlayTrigger({type:"dialog"},u,d),{overlayProps:$}=L.useOverlayPosition({targetRef:d,overlayRef:p,placement:n,offset:o,isOpen:u.isOpen}),{onPress:g,...b}=f;return c.jsxs(c.Fragment,{children:[c.jsx(Ue,{themeName:`${i}.button`,handlePress:g,...r,...b,ref:d}),u.isOpen&&c.jsx(L.OverlayContainer,{children:c.jsx(cl,{themeName:i,tokens:s,customTheme:a,...m,...l,positionProps:$,ref:p,isOpen:u.isOpen,onClose:u.close,children:e})})]})}const dl=({content:t,themeName:e="wysiwyg",...r})=>c.jsx(Z,{...r,themeName:e,dangerouslySetInnerHTML:{__html:Xi.sanitize(t,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","target"]})}}),fl=t=>{const{as:e="time",date:r,tokens:n,customTheme:o,dateFormatterOptions:i={month:"long",day:"numeric",year:"numeric"},themeName:s="typography",...a}=t,l=L.useIsSSR(),u=new Date(r),p=Oe.useDateFormatter(i).format(u),f=I(s,n,o);return l||br.isEmpty(p)?null:c.jsx(e,{...a,dateTime:u.toISOString(),className:f,children:p})},_o=t=>{const{key:e,value:r}=t;return c.jsx(Pe.Item,{children:r},e)},hl=({item:t,state:e,themeName:r="li"})=>{const n=y.useRef(null),{optionProps:o,isFocusVisible:i}=L.useOption({key:t.key},e,n),s=I(r);return c.jsx(uo,{as:"li",...o,tokens:{className:`${s} ${i?"has-focus-ring":""}`},ref:n,children:t.rendered})},pl=t=>{const e=y.useRef(null),{listBoxRef:r=e,state:n,themeName:o="option"}=t,{listBoxProps:i}=L.useListBox(t,n,r);return c.jsx(L.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:c.jsx(uo,{...i,ref:r,as:"ul",themeName:`${o}.ul`,children:[...n.collection].map(s=>c.jsx(hl,{themeName:`${o}.li`,item:s,state:n},s.key))})})},ml=t=>{const e=y.useRef(null),{popoverRef:r=e,state:n,children:o,themeName:i="popover",tokens:s,customTheme:a,triggerRef:l,...u}=t,{popoverProps:d,underlayProps:p}=L.usePopover({...t,popoverRef:r,triggerRef:l},n);return c.jsxs(L.Overlay,{children:[c.jsx("div",{...p,style:{position:"fixed",inset:0}}),c.jsx(W,{...u,children:c.jsxs(Te,{...d,ref:r,themeName:i,tokens:s,children:[c.jsx(L.DismissButton,{onDismiss:n.close}),o,c.jsx(L.DismissButton,{onDismiss:n.close})]})})]})},ko=t=>{var x;const{name:e,placeholderLabel:r,disabled:n,hookFormRef:o,isError:i=!1,errorMessage:s,themeName:a="select",tokens:l,customTheme:u,label:d,onSelectionChange:p,defaultValue:f,value:m,icon:$,popoverMatchesWidth:g,options:b,...w}=t,j=y.useRef(null),S=Pe.useSelectState({...w,children:_o,selectedKey:m,defaultSelectedKey:f,items:b,onSelectionChange:p}),{triggerProps:P,menuProps:E,labelProps:R}=L.useSelect({...w,label:d},S,j),{onPress:k,onPressStart:h,...M}=P;return c.jsxs(W,{themeName:`${a}.wrapper`,children:[d&&c.jsx(Z,{...R,as:"label",themeName:`${a}.label`,children:d}),c.jsx(L.HiddenSelect,{...o,state:S,triggerRef:j,name:e,isDisabled:!0}),c.jsxs(W,{themeName:`${a}.container`,children:[c.jsxs(Ue,{...M,handlePress:T=>{k==null||k(T),h==null||h(T)},ref:j,disabled:n,themeName:`${a}.button`,tokens:{...l,intent:i?"error":"default"},children:[S.selectedItem?S.selectedItem.rendered:r,c.jsx(ce,{icon:$??"ArrowDown"})]}),S.isOpen&&j.current&&c.jsx(ml,{tokens:l,state:S,triggerRef:j,placement:"bottom",themeName:`${a}.popover`,style:{[`--${a}-container-width`]:`${(x=j.current)==null?void 0:x.offsetWidth}px`},children:c.jsx(pl,{...E,themeName:a,state:S})}),i&&c.jsx(Z,{tokens:{...l,isError:i},themeName:`${a}.errorMessage`,children:s})]})]})},gl=t=>{const{name:e,required:r}=t,{register:n,formState:o}=ye.useFormContext(),i=ye.get(o.errors,e),s=(i==null?void 0:i.message)??void 0,{ref:a}=n(e,{required:r?"This is an error message":!1});return c.jsx(ko,{...t,isError:!br.isEmpty(s),errorMessage:s,hookFormRef:a})},bl=t=>{const{id:e,label:r,isDisabled:n=!1,isError:o=!1,errorMessage:i,ariaLabel:s,icon:a,themeName:l="checkbox",tokens:u,customTheme:d}=t,p=ts.useToggleState(t),f=y.useRef(null),{inputProps:m}=Zi.useCheckbox(t,p,f),{isSelected:$}=p,{focusProps:g,isFocusVisible:b}=ae.useFocusRing(),w={...u,selected:$,isDisabled:n,isError:o,isFocusVisible:b},j=I(`${l}.container`,w,d),S=I(`${l}.checkBox`,w,d),P=I(`${l}.checkMark`,w,d),E=I(`${l}.checkMarkIcon`,w,d);return c.jsxs("div",{children:[c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("label",{className:j,htmlFor:e,"aria-label":s,"aria-disabled":n,children:[c.jsx(es.VisuallyHidden,{children:c.jsx("input",{type:"checkbox",ref:f,"aria-labelledby":e,...m,...g})}),c.jsx("div",{className:S,"aria-checked":$,role:"checkbox","aria-labelledby":e,children:c.jsx("div",{className:P,children:a&&c.jsx(ce,{icon:a,customTheme:E})})}),c.jsx(Z,{themeName:`${l}.label`,tokens:w,children:r})]})}),o&&i&&c.jsx(Z,{themeName:`${l}.errorMessage`,tokens:w,children:i})]})},Er={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Do={...Er,customError:!0,valid:!1},Le={isInvalid:!1,validationDetails:Er,validationErrors:[]},yl=y.createContext({}),Jr="__formValidationState"+Date.now();function Oo(t){if(t[Jr]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=t[Jr];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return vl(t)}function vl(t){let{isInvalid:e,validationState:r,name:n,value:o,builtinValidation:i,validate:s,validationBehavior:a="aria"}=t;r&&(e||(e=r==="invalid"));let l=e?{isInvalid:!0,validationErrors:[],validationDetails:Do}:null,u=y.useMemo(()=>Qr(xl(s,o)),[s,o]);i!=null&&i.validationDetails.valid&&(i=null);let d=y.useContext(yl),p=y.useMemo(()=>n?Array.isArray(n)?n.flatMap(x=>ur(d[x])):ur(d[n]):[],[d,n]),[f,m]=y.useState(d),[$,g]=y.useState(!1);d!==f&&(m(d),g(!1));let b=y.useMemo(()=>Qr($?[]:p),[$,p]),w=y.useRef(Le),[j,S]=y.useState(Le),P=y.useRef(Le),E=()=>{if(!R)return;k(!1);let x=u||i||w.current;kt(x,P.current)||(P.current=x,S(x))},[R,k]=y.useState(!1);return y.useEffect(E),{realtimeValidation:l||b||u||i||Le,displayValidation:a==="native"?l||b||j:l||b||u||i||j,updateValidation(x){a==="aria"&&!kt(j,x)?S(x):w.current=x},resetValidation(){let x=Le;kt(x,P.current)||(P.current=x,S(x)),a==="native"&&k(!1),g(!0)},commitValidation(){a==="native"&&k(!0),g(!0)}}}function ur(t){return t?Array.isArray(t)?t:[t]:[]}function xl(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return ur(r)}return[]}function Qr(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Do}:null}function kt(t,e){return t===e?!0:t&&e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function $l(...t){let e=new Set,r=!1,n={...Er};for(let s of t){var o,i;for(let a of s.validationErrors)e.add(a);r||(r=s.isInvalid);for(let a in n)(o=n)[i=a]||(o[i]=s.validationDetails[a])}return n.valid=!r,{isInvalid:r,validationErrors:[...e],validationDetails:n}}function Io(t,e,r){let[n,o]=y.useState(t||e),i=y.useRef(t!==void 0),s=t!==void 0;y.useEffect(()=>{let u=i.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?t:n,l=y.useCallback((u,...d)=>{let p=(f,...m)=>{r&&(Object.is(a,f)||r(f,...m)),s||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((m,...$)=>{let g=u(s?a:m,...$);return p(g,...d),s?m:g})):(s||o(u),p(u,...d))},[s,a,r]);return[a,l]}function wl(t={}){let[e,r]=Io(t.value,t.defaultValue||[],t.onChange),n=!!t.isRequired&&e.length===0,o=y.useRef(new Map),i=Oo({...t,value:e}),s=i.displayValidation.isInvalid;var a;return{...i,value:e,setValue(u){t.isReadOnly||t.isDisabled||r(u)},isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isSelected(u){return e.includes(u)},addValue(u){t.isReadOnly||t.isDisabled||e.includes(u)||r(e.concat(u))},removeValue(u){t.isReadOnly||t.isDisabled||e.includes(u)&&r(e.filter(d=>d!==u))},toggleValue(u){t.isReadOnly||t.isDisabled||(e.includes(u)?r(e.filter(d=>d!==u)):r(e.concat(u)))},setInvalid(u,d){let p=new Map(o.current);d.isInvalid?p.set(u,d):p.delete(u),o.current=p,i.updateValidation($l(...p.values()))},validationState:(a=t.validationState)!==null&&a!==void 0?a:s?"invalid":null,isInvalid:s,isRequired:n}}const Ao=y.createContext(null),Pl=t=>{const{children:e,state:r}=t;return c.jsx(Ao.Provider,{value:r,children:e})};function Tl(){const t=y.useContext(Ao);return t||null}const Cl=t=>{const{label:e,isError:r=!1,errorMessage:n,isDisabled:o=!1,children:i,themeName:s="checkboxGroup",tokens:a}=t,l=wl(t),{groupProps:u,labelProps:d,errorMessageProps:p}=L.useCheckboxGroup(t,l),f={...a,isDisabled:o};return c.jsxs(W,{...u,"aria-disabled":o,themeName:`${s}.checkboxGroup`,tokens:f,children:[e&&c.jsx(Z,{...d,tokens:{size:"h6"},children:e}),c.jsx(W,{themeName:`${s}.checkboxGroupItemsGroup`,children:c.jsx(Pl,{state:l,children:i})}),r&&n&&c.jsx(Z,{...p,tokens:{isError:!0},children:n})]})},Sl=t=>{const{id:e,ariaLabel:r,icon:n,state:o,themeName:i="checkbox",customTheme:s,tokens:a,isDisabled:l=!1,isError:u=!1,value:d,errorMessage:p,label:f}=t,m=y.useRef(null),{inputProps:$}=L.useCheckboxGroupItem(t,o,m),{isSelected:g}=o,b={...a,selected:g(d),isDisabled:l,isError:u},w=I(`${i}.container`,b,s),j=I(`${i}.checkBox`,b,s),S=I(`${i}.checkMark`,b,s),P=I(`${i}.checkMarkIcon`,b,s);return c.jsxs("div",{children:[c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("label",{className:w,htmlFor:e,"aria-label":r,"aria-disabled":l,children:[c.jsx(L.VisuallyHidden,{children:c.jsx("input",{ref:m,...$})}),c.jsx("div",{className:j,"aria-checked":g(d),role:"checkbox","aria-labelledby":e,children:c.jsx("div",{className:S,children:n&&c.jsx(ce,{icon:n,customTheme:P})})}),c.jsx(Z,{themeName:`${i}.label`,tokens:b,children:f})]})}),u&&p&&c.jsx(Z,{themeName:`${i}.errorMessage`,tokens:b,children:p})]})},Rl=t=>{const e=Tl();return e&&c.jsx(Sl,{state:e,...t})},Lo=t=>{const{id:e,label:r,name:n,placeholder:o,required:i,disabled:s=!1,errorMessage:a,ariaLabel:l,value:u,onBlur:d,onChange:p,fieldRef:f,themeName:m="textarea",tokens:$,customTheme:g}=t,b=y.useRef(null),{errorMessageProps:w,inputProps:j,labelProps:S}=L.useTextField(t,b),P={...$,isDisabled:s,isError:a!=null},E=I(`${m}.wrapper`,P,g),R=I(`${m}.input`,P,g),k=I(`${m}.label`,P,g),h=I(`${m}.container`,P,g);return c.jsxs("div",{children:[c.jsxs("div",{className:E,"aria-disabled":s,children:[r&&c.jsx("label",{className:k,...S,children:r}),c.jsx("div",{className:h,children:c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsx("textarea",{...j,ref:M=>{f==null||f(M),b.current=M},className:R,placeholder:o,disabled:s,required:i,id:e,name:n,"aria-label":l,"aria-labelledby":e,value:u,onBlur:d,onChange:p})})})]}),a&&c.jsx(Z,{themeName:`${m}.errorMessage`,tokens:P,...w,children:a})]})},El=t=>{const{name:e,required:r,minLength:n=0,maxLength:o=99999999,validation:i}=t,{register:s,formState:a}=ye.useFormContext(),l=ye.get(a.errors,e),u=(l==null?void 0:l.message)??void 0,{t:d}=yr.useTranslation("components"),{ref:p,...f}=s(e,{required:r?d("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:d("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:o,message:d("FORM.ERROR.MAX_LENGTH",{length:n})},...i});return c.jsx(Lo,{fieldRef:p,...f,...t,isError:!no.isEmpty(u),errorMessage:u})},No=t=>{const{label:e,isRequired:r=!1,isDisabled:n=!1,required:o,disabled:i,errorMessage:s,fieldRef:a,children:l,themeName:u="textInput",tokens:d,customTheme:p,ariaLabel:f}=t,m=o??r,$=i??n,g=y.useRef(null),{errorMessageProps:b,inputProps:w,labelProps:j}=L.useTextField({"aria-label":f,...t,isRequired:m,isDisabled:$},g),{"aria-labelledby":S,...P}={...w,required:m,disabled:$},E={...d,isDisabled:n,isRequired:r,isError:!!s},R=I(`${u}.wrapper`,E,p),k=I(`${u}.label`,E,p),h=I(`${u}.input`,E,p),M=I(`${u}.container`,E,p);return c.jsxs("div",{children:[c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("div",{"aria-disabled":n,className:R,children:[e&&c.jsx("label",{className:k,...j,children:e}),c.jsxs("div",{className:M,children:[l,c.jsx("input",{...P,className:h,ref:x=>{a==null||a(x),g.current=x}})]})]})}),s&&c.jsx(Z,{themeName:`${u}.errorMessage`,tokens:E,...b,children:s})]})},Ml=t=>{const{name:e,required:r,isRequired:n,minLength:o=0,maxLength:i=99999999,validation:s}=t,{register:a,formState:l}=ye.useFormContext(),u=ye.get(l.errors,e),d=(u==null?void 0:u.message)??void 0,{t:p}=yr.useTranslation("components"),{ref:f,...m}=a(e,{required:r??n?p("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:o,message:p("FORM.ERROR.MIN_LENGTH",{length:o})},maxLength:{value:i,message:p("FORM.ERROR.MAX_LENGTH",{length:o})},...s});return c.jsx(No,{fieldRef:f,...m,...t,errorMessage:d})};function he(t,e){return t-e*Math.floor(t/e)}const Bo=1721426;function $e(t,e,r,n){e=Ve(t,e);let o=e-1,i=-2;return r<=2?i=0:ge(e)&&(i=-1),Bo-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*r-362)/12+i+n)}function ge(t){return t%4===0&&(t%100!==0||t%400===0)}function Ve(t,e){return t==="BC"?1-e:e}function Tt(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const jl={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class pe{fromJulianDay(e){let r=e,n=r-Bo,o=Math.floor(n/146097),i=he(n,146097),s=Math.floor(i/36524),a=he(i,36524),l=Math.floor(a/1461),u=he(a,1461),d=Math.floor(u/365),p=o*400+s*100+l*4+d+(s!==4&&d!==4?1:0),[f,m]=Tt(p),$=r-$e(f,m,1,1),g=2;r<$e(f,m,3,1)?g=0:ge(m)&&(g=1);let b=Math.floor((($+g)*12+373)/367),w=r-$e(f,m,b,1)+1;return new Q(f,m,b,w)}toJulianDay(e){return $e(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return jl[ge(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return ge(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const _l={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Xr(t,e){return e=Ct(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Ko(t,e){let r=t.calendar.toJulianDay(t),n=Math.ceil(r+1-Il(e))%7;return n<0&&(n+=7),n}function Fo(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function kl(t,e){return Zr(t)-Zr(e)}function Zr(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let Dt=null;function qo(){return Dt==null&&(Dt=new Intl.DateTimeFormat().resolvedOptions().timeZone),Dt}function Dl(t){return t.subtract({days:t.day-1})}const en=new Map;function Ol(t){if(Intl.Locale){let r=en.get(t);return r||(r=new Intl.Locale(t).maximize().region,r&&en.set(t,r)),r}let e=t.split("-")[1];return e==="u"?void 0:e}function Il(t){let e=Ol(t);return e&&_l[e]||0}function Al(t,e){let r=t.calendar.getDaysInMonth(t);return Math.ceil((Ko(Dl(t),e)+r)/7)}function tn(t){t=Ct(t,new pe);let e=Ve(t.era,t.year);return Uo(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function Uo(t,e,r,n,o,i,s){let a=new Date;return a.setUTCHours(n,o,i,s),a.setUTCFullYear(t,e-1,r),a.getTime()}function rn(t,e){if(e==="UTC")return 0;if(t>0&&e===qo())return new Date(t).getTimezoneOffset()*-6e4;let{year:r,month:n,day:o,hour:i,minute:s,second:a}=Vo(t,e);return Uo(r,n,o,i,s,a,0)-Math.floor(t/1e3)*1e3}const nn=new Map;function Vo(t,e){let r=nn.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),nn.set(e,r));let n=r.formatToParts(new Date(t)),o={};for(let i of n)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const on=864e5;function Ll(t,e,r,n){return(r===n?[r]:[r,n]).filter(i=>Nl(t,e,i))}function Nl(t,e,r){let n=Vo(r,e);return t.year===n.year&&t.month===n.month&&t.day===n.day&&t.hour===n.hour&&t.minute===n.minute&&t.second===n.second}function Bl(t,e,r="compatible"){let n=zo(t);if(e==="UTC")return tn(n);if(e===qo()&&r==="compatible"){n=Ct(n,new pe);let l=new Date,u=Ve(n.era,n.year);return l.setFullYear(u,n.month-1,n.day),l.setHours(n.hour,n.minute,n.second,n.millisecond),l.getTime()}let o=tn(n),i=rn(o-on,e),s=rn(o+on,e),a=Ll(n,e,o-i,o-s);if(a.length===1)return a[0];if(a.length>1)switch(r){case"compatible":case"earlier":return a[0];case"later":return a[a.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(o-i,o-s);case"compatible":case"later":return Math.max(o-i,o-s);case"reject":throw new RangeError("No such absolute time found")}}function Ho(t,e,r="compatible"){return new Date(Bl(t,e,r))}function zo(t,e){let r=0,n=0,o=0,i=0;if("timeZone"in t)({hour:r,minute:n,second:o,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:n,second:o,millisecond:i}=e),new vt(t.calendar,t.era,t.year,t.month,t.day,r,n,o,i)}function Ct(t,e){if(t.calendar.identifier===e.identifier)return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),n=t.copy();return n.calendar=e,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,De(n),n}function Mr(t,e){let r=t.copy(),n="hour"in r?Hl(r,e):0;dr(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,fr(r),Wo(r),r.day+=(e.weeks||0)*7,r.day+=e.days||0,r.day+=n,Kl(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let o=r.calendar.getYearsInEra(r);if(r.year>o){var i,s;let l=(i=(s=r.calendar).isInverseEra)===null||i===void 0?void 0:i.call(s,r);r.year=o,r.month=l?1:r.calendar.getMonthsInYear(r),r.day=l?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let a=r.calendar.getMonthsInYear(r);return r.month>a&&(r.month=a,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function dr(t,e){var r,n;!((r=(n=t.calendar).isInverseEra)===null||r===void 0)&&r.call(n,t)&&(e=-e),t.year+=e}function fr(t){for(;t.month<1;)dr(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,dr(t,1)}function Kl(t){for(;t.day<1;)t.month--,fr(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,fr(t)}function Wo(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function De(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),Wo(t)}function Fl(t){let e={};for(let r in t)typeof t[r]=="number"&&(e[r]=-t[r]);return e}function Go(t,e){return Mr(t,Fl(e))}function Yo(t,e){let r=t.copy();return e.era!=null&&(r.era=e.era),e.year!=null&&(r.year=e.year),e.month!=null&&(r.month=e.month),e.day!=null&&(r.day=e.day),De(r),r}function ql(t,e){let r=t.copy();return e.hour!=null&&(r.hour=e.hour),e.minute!=null&&(r.minute=e.minute),e.second!=null&&(r.second=e.second),e.millisecond!=null&&(r.millisecond=e.millisecond),Vl(r),r}function Ul(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=Ze(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=Ze(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=Ze(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=Ze(t.hour,24),e}function Vl(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function Ze(t,e){let r=t%e;return r<0&&(r+=e),r}function Hl(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Ul(t)}function Jo(t,e,r,n){let o=t.copy();switch(e){case"era":{let a=t.calendar.getEras(),l=a.indexOf(t.era);if(l<0)throw new Error("Invalid era: "+t.era);l=be(l,r,0,a.length-1,n==null?void 0:n.round),o.era=a[l],De(o);break}case"year":var i,s;!((i=(s=o.calendar).isInverseEra)===null||i===void 0)&&i.call(s,o)&&(r=-r),o.year=be(t.year,r,-1/0,9999,n==null?void 0:n.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,t);break;case"month":o.month=be(t.month,r,1,t.calendar.getMonthsInYear(t),n==null?void 0:n.round);break;case"day":o.day=be(t.day,r,1,t.calendar.getDaysInMonth(t),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(o),De(o),o}function zl(t,e,r,n){let o=t.copy();switch(e){case"hour":{let i=t.hour,s=0,a=23;if((n==null?void 0:n.hourCycle)===12){let l=i>=12;s=l?12:0,a=l?23:11}o.hour=be(i,r,s,a,n==null?void 0:n.round);break}case"minute":o.minute=be(t.minute,r,0,59,n==null?void 0:n.round);break;case"second":o.second=be(t.second,r,0,59,n==null?void 0:n.round);break;case"millisecond":o.millisecond=be(t.millisecond,r,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return o}function be(t,e,r,n,o=!1){if(o){t+=Math.sign(e),t<r&&(t=n);let i=Math.abs(e);e>0?t=Math.ceil(t/i)*i:t=Math.floor(t/i)*i,t>n&&(t=r)}else t+=e,t<r?t=n-(r-t-1):t>n&&(t=r+(t-n-1));return t}function Wl(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function Qo(t){let e=Ct(t,new pe);return`${String(e.year).padStart(4,"0")}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function Gl(t){return`${Qo(t)}T${Wl(t)}`}function Xo(t){let e=typeof t[0]=="object"?t.shift():new pe,r;if(typeof t[0]=="string")r=t.shift();else{let s=e.getEras();r=s[s.length-1]}let n=t.shift(),o=t.shift(),i=t.shift();return[e,r,n,o,i]}var Yl=new WeakMap;class Q{copy(){return this.era?new Q(this.calendar,this.era,this.year,this.month,this.day):new Q(this.calendar,this.year,this.month,this.day)}add(e){return Mr(this,e)}subtract(e){return Go(this,e)}set(e){return Yo(this,e)}cycle(e,r,n){return Jo(this,e,r,n)}toDate(e){return Ho(this,e)}toString(){return Qo(this)}compare(e){return Fo(this,e)}constructor(...e){$r(this,Yl,{writable:!0,value:void 0});let[r,n,o,i,s]=Xo(e);this.calendar=r,this.era=n,this.year=o,this.month=i,this.day=s,De(this)}}var Jl=new WeakMap;class vt{copy(){return this.era?new vt(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new vt(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Mr(this,e)}subtract(e){return Go(this,e)}set(e){return Yo(ql(this,e),e)}cycle(e,r,n){switch(e){case"era":case"year":case"month":case"day":return Jo(this,e,r,n);default:return zl(this,e,r,n)}}toDate(e,r){return Ho(this,e,r)}toString(){return Gl(this)}compare(e){let r=Fo(this,e);return r===0?kl(this,zo(e)):r}constructor(...e){$r(this,Jl,{writable:!0,value:void 0});let[r,n,o,i,s]=Xo(e);this.calendar=r,this.era=n,this.year=o,this.month=i,this.day=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,De(this)}}const _e=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Ql=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],mt=[1867,1911,1925,1988,2018],me=["meiji","taisho","showa","heisei","reiwa"];function sn(t){const e=_e.findIndex(([r,n,o])=>t.year<r||t.year===r&&t.month<n||t.year===r&&t.month===n&&t.day<o);return e===-1?_e.length-1:e===0?0:e-1}function Ot(t){let e=mt[me.indexOf(t.era)];if(!e)throw new Error("Unknown era: "+t.era);return new Q(t.year+e,t.month,t.day)}class Xl extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=sn(r);return new Q(this,me[n],r.year-mt[n],r.month,r.day)}toJulianDay(e){return super.toJulianDay(Ot(e))}balanceDate(e){let r=Ot(e),n=sn(r);me[n]!==e.era&&(e.era=me[n],e.year=r.year-mt[n]),this.constrainDate(e)}constrainDate(e){let r=me.indexOf(e.era),n=Ql[r];if(n!=null){let[o,i,s]=n,a=o-mt[r];e.year=Math.max(1,Math.min(a,e.year)),e.year===a&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(s,e.day)))}if(e.year===1&&r>=0){let[,o,i]=_e[r];e.month=Math.max(o,e.month),e.month===o&&(e.day=Math.max(i,e.day))}}getEras(){return me}getYearsInEra(e){let r=me.indexOf(e.era),n=_e[r],o=_e[r+1];if(o==null)return 9999-n[0]+1;let i=o[0]-n[0];return(e.month<o[1]||e.month===o[1]&&e.day<o[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(Ot(e))}getMinimumMonthInYear(e){let r=an(e);return r?r[1]:1}getMinimumDayInMonth(e){let r=an(e);return r&&e.month===r[1]?r[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function an(t){if(t.year===1){let e=me.indexOf(t.era);return _e[e]}}const Zo=-543;class Zl extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=Ve(r.era,r.year);return new Q(this,n-Zo,r.month,r.day)}toJulianDay(e){return super.toJulianDay(ln(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(ln(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function ln(t){let[e,r]=Tt(t.year+Zo);return new Q(e,r,t.month,t.day)}const xt=1911;function ei(t){return t.era==="minguo"?t.year+xt:1-t.year+xt}function cn(t){let e=t-xt;return e>0?["minguo",e]:["before_minguo",1-e]}class ec extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=Ve(r.era,r.year),[o,i]=cn(n);return new Q(this,o,i,r.month,r.day)}toJulianDay(e){return super.toJulianDay(un(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[r,n]=cn(ei(e));e.era=r,e.year=n}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(un(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-xt}constructor(...e){super(...e),this.identifier="roc"}}function un(t){let[e,r]=Tt(ei(t));return new Q(e,r,t.month,t.day)}const tc=1948321;function rc(t){let e=t>0?t-474:t-473,r=he(e,2820)+474;return he((r+38)*31,128)<31}function et(t,e,r){let n=t>0?t-474:t-473,o=he(n,2820)+474,i=e<=7?31*(e-1):30*(e-1)+6;return tc-1+1029983*Math.floor(n/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+r}class nc{fromJulianDay(e){let r=e-et(475,1,1),n=Math.floor(r/1029983),o=he(r,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),s=474+2820*n+i;s<=0&&s--;let a=e-et(s,1,1)+1,l=a<=186?Math.ceil(a/31):Math.ceil((a-6)/31),u=e-et(s,l,1)+1;return new Q(this,s,l,u)}toJulianDay(e){return et(e.year,e.month,e.day)}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||rc(e.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const It=78,dn=80;class oc extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=r.year-It,o=e-$e(r.era,r.year,1,1),i;o<dn?(n--,i=ge(r.year-1)?31:30,o+=i+155+90+10):(i=ge(r.year)?31:30,o-=dn);let s,a;if(o<i)s=1,a=o+1;else{let l=o-i;l<155?(s=Math.floor(l/31)+2,a=l%31+1):(l-=155,s=Math.floor(l/30)+7,a=l%30+1)}return new Q(this,n,s,a)}toJulianDay(e){let r=e.year+It,[n,o]=Tt(r),i,s;return ge(o)?(i=31,s=$e(n,o,3,21)):(i=30,s=$e(n,o,3,22)),e.month===1?s+e.day-1:(s+=i+Math.min(e.month-2,5)*31,e.month>=8&&(s+=(e.month-7)*30),s+=e.day-1,s)}getDaysInMonth(e){return e.month===1&&ge(e.year+It)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const $t=1948440,fn=1948439,ie=1300,Ee=1600,ic=460322;function wt(t,e,r,n){return n+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function ti(t,e,r){let n=Math.floor((30*(r-e)+10646)/10631),o=Math.min(12,Math.ceil((r-(29+wt(e,n,1,1)))/29.5)+1),i=r-wt(e,n,o,1)+1;return new Q(t,n,o,i)}function hn(t){return(14+11*t)%30<11}class jr{fromJulianDay(e){return ti(this,$t,e)}toJulianDay(e){return wt($t,e.year,e.month,e.day)}getDaysInMonth(e){let r=29+e.month%2;return e.month===12&&hn(e.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(e){return hn(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class sc extends jr{fromJulianDay(e){return ti(this,fn,e)}toJulianDay(e){return wt(fn,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const ac="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let hr,ke;function gt(t){return ic+ke[t-ie]}function Ne(t,e){let r=t-ie,n=1<<11-(e-1);return hr[r]&n?30:29}function pn(t,e){let r=gt(t);for(let n=1;n<e;n++)r+=Ne(t,n);return r}function mn(t){return ke[t+1-ie]-ke[t-ie]}class lc extends jr{fromJulianDay(e){let r=e-$t,n=gt(ie),o=gt(Ee);if(r<n||r>o)return super.fromJulianDay(e);{let i=ie-1,s=1,a=1;for(;a>0;){i++,a=r-gt(i)+1;let l=mn(i);if(a===l){s=12;break}else if(a<l){let u=Ne(i,s);for(s=1;a>u;)a-=u,s++,u=Ne(i,s);break}}return new Q(this,i,s,r-pn(i,s)+1)}}toJulianDay(e){return e.year<ie||e.year>Ee?super.toJulianDay(e):$t+pn(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<ie||e.year>Ee?super.getDaysInMonth(e):Ne(e.year,e.month)}getDaysInYear(e){return e.year<ie||e.year>Ee?super.getDaysInYear(e):mn(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",hr||(hr=new Uint16Array(Uint8Array.from(atob(ac),e=>e.charCodeAt(0)).buffer)),!ke){ke=new Uint32Array(Ee-ie+1);let e=0;for(let r=ie;r<=Ee;r++){ke[r-ie]=e;for(let n=1;n<=12;n++)e+=Ne(r,n)}}}}const gn=347997,ri=1080,ni=24*ri,cc=29,uc=12*ri+793,dc=cc*ni+uc;function xe(t){return he(t*7+1,19)<7}function bt(t){let e=Math.floor((235*t-234)/19),r=12084+13753*e,n=e*29+Math.floor(r/25920);return he(3*(n+1),7)<3&&(n+=1),n}function fc(t){let e=bt(t-1),r=bt(t);return bt(t+1)-r===356?2:r-e===382?1:0}function Ke(t){return bt(t)+fc(t)}function oi(t){return Ke(t+1)-Ke(t)}function hc(t){let e=oi(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function tt(t,e){if(e>=6&&!xe(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let r=hc(t);return e===2?r===2?30:29:e===3?r===0?29:30:e===6?xe(t)?30:0:30}class pc{fromJulianDay(e){let r=e-gn,n=r*ni/dc,o=Math.floor((19*n+234)/235)+1,i=Ke(o),s=Math.floor(r-i);for(;s<1;)o--,i=Ke(o),s=Math.floor(r-i);let a=1,l=0;for(;l<s;)l+=tt(o,a),a++;a--,l-=tt(o,a);let u=s-l;return new Q(this,o,a,u)}toJulianDay(e){let r=Ke(e.year);for(let n=1;n<e.month;n++)r+=tt(e.year,n);return r+e.day+gn}getDaysInMonth(e){return tt(e.year,e.month)}getMonthsInYear(e){return xe(e.year)?13:12}getDaysInYear(e){return oi(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,r){r.year!==e.year&&(xe(r.year)&&!xe(e.year)&&r.month>6?e.month--:!xe(r.year)&&xe(e.year)&&r.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const pr=1723856,bn=1824665,mr=5500;function Pt(t,e,r,n){return t+365*e+Math.floor(e/4)+30*(r-1)+n-1}function _r(t,e){let r=Math.floor(4*(e-t)/1461),n=1+Math.floor((e-Pt(t,r,1,1))/30),o=e+1-Pt(t,r,n,1);return[r,n,o]}function ii(t){return Math.floor(t%4/3)}function si(t,e){return e%13!==0?30:ii(t)+5}class kr{fromJulianDay(e){let[r,n,o]=_r(pr,e),i="AM";return r<=0&&(i="AA",r+=mr),new Q(this,i,r,n,o)}toJulianDay(e){let r=e.year;return e.era==="AA"&&(r-=mr),Pt(pr,r,e.month,e.day)}getDaysInMonth(e){return si(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+ii(e.year)}getYearsInEra(e){return e.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class mc extends kr{fromJulianDay(e){let[r,n,o]=_r(pr,e);return r+=mr,new Q(this,"AA",r,n,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class gc extends kr{fromJulianDay(e){let[r,n,o]=_r(bn,e),i="CE";return r<=0&&(i="BCE",r=1-r),new Q(this,i,r,n,o)}toJulianDay(e){let r=e.year;return e.era==="BCE"&&(r=1-r),Pt(bn,r,e.month,e.day)}getDaysInMonth(e){let r=e.year;return e.era==="BCE"&&(r=1-r),si(r,e.month)}isInverseEra(e){return e.era==="BCE"}balanceDate(e){e.year<=0&&(e.era=e.era==="BCE"?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return e.era==="BCE"?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function ai(t){switch(t){case"buddhist":return new Zl;case"ethiopic":return new kr;case"ethioaa":return new mc;case"coptic":return new gc;case"hebrew":return new pc;case"indian":return new oc;case"islamic-civil":return new jr;case"islamic-tbla":return new sc;case"islamic-umalqura":return new lc;case"japanese":return new Xl;case"persian":return new nc;case"roc":return new ec;case"gregory":default:return new pe}}function bc({themeName:t="calendar",tokens:e,state:r,date:n}){const o=y.useRef(null),{cellProps:i,buttonProps:s,isSelected:a,isOutsideVisibleRange:l,isDisabled:u,formattedDate:d,isInvalid:p}=xr.useCalendarCell({date:n},r,o),f=r!=null&&r.highlightedRange?Xr(n,r==null?void 0:r.highlightedRange.start):a,m=r!=null&&r.highlightedRange?Xr(n,r==null?void 0:r.highlightedRange.end):a,{locale:$}=L.useLocale(),g=Ko(n,$),b=a&&(f||g===0||n.day===1),w=a&&(m||g===6||n.day===n.calendar.getDaysInMonth(n)),{focusProps:j,isFocusVisible:S}=ae.useFocusRing(),P=I(`${t}.cellContainer`,{...e,isFocusVisible:S}),E=I(`${t}.cell`,{...e,isSelected:a,isInvalid:p,isDisabled:u,isRoundedLeft:b,isRoundedRight:w}),R=I(`${t}.cellDate`,{...e,isSelected:a,isInvalid:p,isDisabled:u,isSelectionStart:f,isSelectionEnd:m});return c.jsx("td",{...i,"aria-disabled":!1,className:P,children:c.jsx("div",{..._.mergeProps(s,j),ref:o,hidden:l,className:E,children:c.jsx("div",{className:R,children:d})})})}function yc({themeName:t="calendar",customTheme:e,tokens:r,state:n,...o}){const{locale:i}=Oe.useLocale(),{gridProps:s,headerProps:a,weekDays:l}=xr.useCalendarGrid({...o},n),u=Al(n.visibleRange.start,i),d=I(`${t}.calendarTable`,r),p=I(`${t}.dayLabel`,r);return c.jsxs("table",{...s,cellPadding:"0",className:d,children:[c.jsx("thead",{...a,children:c.jsx("tr",{children:l.map(f=>c.jsx("th",{className:p,children:f},`${f}`))})}),c.jsx("tbody",{children:[...new Array(u).keys()].map(f=>c.jsx("tr",{children:n.getDatesInWeek(f).map((m,$)=>m?c.jsx(bc,{state:n,date:m},m==null?void 0:m.day):c.jsx("td",{},$))},f))})]})}function li({buttons:t,tokens:e,customTheme:r,themeName:n="calendar",...o}){var g,b;const{locale:i}=Oe.useLocale(),s=rs.useCalendarState({...o,locale:i,createCalendar:ai}),a=y.useRef(null),{calendarProps:l,prevButtonProps:u,nextButtonProps:d,title:p}=xr.useCalendar({...o},s),f=I(`${n}.container`,e),m=I(`${n}.header`,e),$=I(`${n}.navigationButtonsContainer`,e);return c.jsxs("div",{...l,ref:a,className:f,children:[c.jsxs("div",{className:m,children:[c.jsx(Z,{as:"p",tokens:{size:"h6"},children:p}),c.jsxs("div",{className:$,children:[c.jsx(ve,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...u,handlePress:u==null?void 0:u.onPress,children:c.jsx(ce,{icon:((g=t==null?void 0:t.buttonPrev)==null?void 0:g.icon)??"ArrowLeft"})}),c.jsx(ve,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...d,handlePress:d==null?void 0:d.onPress,children:c.jsx(ce,{icon:((b=t==null?void 0:t.buttonNext)==null?void 0:b.icon)??"ArrowRight"})})]})]}),c.jsx(yc,{state:s})]})}function vc({title:t,children:e,...r}){const n=y.useRef(null),{dialogProps:o}=L.useDialog(r,n);return c.jsx("div",{...o,ref:n,children:e})}function xc({themeName:t="datePicker",tokens:e,...r}){const n=os.useRef(null),{state:o,children:i}={...r},{popoverProps:s,underlayProps:a}=Ge.usePopover({...r,popoverRef:n},o),l=I(`${t}.calendarUnderlay`,e),u=I(`${t}.calendarPopover`,e);return c.jsxs(Ge.Overlay,{children:[c.jsx("div",{...a,className:l}),c.jsxs("div",{...s,ref:n,className:u,children:[c.jsx(Ge.DismissButton,{onDismiss:o.close}),i,c.jsx(Ge.DismissButton,{onDismiss:o.close})]})]})}function $c({segment:t,state:e}){const r=y.useRef(null),{segmentProps:n}=vr.useDateSegment(t,e,r),o=I("datePicker.dateSegment");return c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsxs("div",{...n,ref:r,className:o,children:[c.jsx("span",{"aria-hidden":"true",style:{visibility:t.isPlaceholder?"visible":"hidden",height:t.isPlaceholder?"":0,pointerEvents:"none",display:t.isPlaceholder?"block":"none"},children:t.placeholder}),t.isPlaceholder?"":t.text]})})}function yn(t){const{locale:e}=Oe.useLocale(),r=oo.useDateFieldState({...t,locale:e,createCalendar:ai}),n=y.useRef(null),{fieldProps:o}=vr.useDateField(t,r,n);return c.jsx("div",{...o,ref:n,className:"flex",children:r.segments.map((i,s)=>c.jsx($c,{segment:i,state:r},s))})}function wc({popoverPlacement:t="bottom start",tokens:e,customTheme:r,themeName:n="datePicker",icon:o="ArrowDown",description:i,buttonLabel:s,...a}){const l=oo.useDatePickerState({...a}),u=y.useRef(null),{groupProps:d,fieldProps:p,labelProps:f,descriptionProps:m,buttonProps:$,dialogProps:g,calendarProps:b}=vr.useDatePicker({...a},l,u),{label:w}={...a},j=I(`${n}.container`,e),S=I(`${n}.dateField`,e),P=I(`${n}.label`,e);return c.jsxs("div",{className:j,children:[w&&c.jsx("span",{...f,children:w}),i&&c.jsx("div",{...m,children:i}),c.jsx("div",{...d,ref:u,children:c.jsxs(ve,{themeName:`${n}.button`,tokens:{...e},type:"button",...$,handlePress:$.onPress,children:[s&&c.jsx("p",{className:P,children:s}),c.jsxs("div",{className:S,children:[c.jsx(yn,{...p}),l.validationState==="invalid"&&"❌"]}),c.jsx(ce,{themeName:`${n}.icon`,tokens:{...e},icon:o})]})}),l.isOpen&&c.jsx(xc,{triggerRef:u,state:l,placement:t,children:c.jsxs(vc,{...g,children:[c.jsxs("div",{children:[c.jsx(yn,{...p}),l.validationState==="invalid"&&"❌"]}),c.jsx(li,{...b})]})})]})}const ci=y.createContext(null),ui=t=>{const{children:e,state:r}=t;return c.jsx(ci.Provider,{value:r,children:e})};function di(){const t=y.useContext(ci);return t!==null?t:null}const fi=t=>{const{id:e,label:r,themeName:n="radio",tokens:o,customTheme:i,value:s,fieldRef:a}=t,l=di(),u=y.useRef(null),{inputProps:d}=L.useRadio(t,l,u),p=(l==null?void 0:l.selectedValue)===s,{focusProps:f}=L.useFocusRing(),m={...o,selected:p},$=I(`${n}.label`,m,i),g=I(`${n}.radio`,m,i),b=I(`${n}.selectedMark`,m,i);return c.jsx("div",{children:c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("label",{htmlFor:e,className:$,children:[c.jsx(L.VisuallyHidden,{children:c.jsx("input",{type:"radio",...L.mergeProps(f,d),ref:w=>{a==null||a(w),u.current=w}})}),c.jsx("div",{className:g,"aria-checked":p,role:"radio","aria-labelledby":e,children:c.jsx("div",{className:b})}),c.jsx(Z,{themeName:`${n}.label`,children:r})]})})})},Pc=t=>{const{name:e,required:r}=t,{register:n,formState:o}=ye.useFormContext(),i=ye.get(o.errors,e),s=(i==null?void 0:i.message)??void 0,{t:a}=yr.useTranslation("components"),{ref:l,...u}=n(e,{required:r?a("FORM.ERROR.REQUIRED")??"required":!1});return c.jsx(fi,{fieldRef:l,...u,...t,isError:!br.isEmpty(s),errorMessage:s})};let Tc=Math.round(Math.random()*1e10),Cc=0;function Sc(t){let e=y.useMemo(()=>t.name||`radio-group-${Tc}-${++Cc}`,[t.name]);var r;let[n,o]=Io(t.value,(r=t.defaultValue)!==null&&r!==void 0?r:null,t.onChange),[i,s]=y.useState(null),a=Oo({...t,value:n}),l=d=>{!t.isReadOnly&&!t.isDisabled&&(o(d),a.commitValidation())},u=a.displayValidation.isInvalid;return{...a,name:e,selectedValue:n,setSelectedValue:l,lastFocusedValue:i,setLastFocusedValue:s,isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,validationState:t.validationState||(u?"invalid":null),isInvalid:u}}const Rc=t=>{const{label:e,isError:r=!1,errorMessage:n,isDisabled:o=!1,children:i,themeName:s="radioGroup",tokens:a}=t,l=Sc(t),{radioGroupProps:u}=L.useRadioGroup(t,l),d={...a,isDisabled:o};return c.jsxs(W,{...u,"aria-disabled":o,themeName:`${s}.radioGroup`,tokens:d,children:[e&&c.jsx(Z,{tokens:{size:"h6"},children:e}),c.jsx(W,{themeName:`${s}.radioGroupItemsGroup`,children:c.jsx(ui,{state:l,children:i})}),r&&n&&c.jsx(Z,{tokens:{isError:!0},children:n})]})},[Ie,Ec]=xo();function Mc({children:t,defaultSelectedKey:e,defaultIsOpen:r,onCloseCallback:n,onOpenCallback:o,tabs:i,openBtn:s,closeBtn:a,...l}){const u=Pe.useTabListState({...l,children:i,defaultSelectedKey:e}),d=y.useMemo(()=>({openBtn:s,closeBtn:a,tabState:u,defaultSelectedKey:e}),[s,a,u,e]);return c.jsx(Ec,{value:d,children:c.jsx(Eo,{onCloseCallback:()=>{var p;n==null||n(),(p=u==null?void 0:u.setSelectedKey)==null||p.call(u,e)},onOpenCallback:o,defaultIsOpen:r,defaultSelectedKey:e.toString(),children:t})})}const hi=({isVisible:t,children:e,themeName:r,tokens:n,customTheme:o})=>{const i=oe.useTransition(t,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:oe.config.stiff}),s=I(r,n,o);return i((a,l)=>l&&c.jsx(oe.animated.div,{className:s,style:a,children:e}))},jc=new WeakMap;function vn(t,e,r){return typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${jc.get(t)}-${r}-${e}`}function _c(t,e,r){let n=ae.useHasTabbableChild(r)?void 0:0;var o;const i=vn(e,(o=t.id)!==null&&o!==void 0?o:e==null?void 0:e.selectedKey,"tabpanel"),s=_.useLabels({...t,id:i,"aria-labelledby":vn(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:_.mergeProps(s,{tabIndex:n,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}function kc({state:t,customTheme:e,themeName:r="tabPanel",tokens:n,...o}){var a;const i=y.useRef(null),{tabPanelProps:s}=_c(o,t,i);return c.jsx(hi,{isVisible:!0,children:c.jsx(Te,{themeName:`${r}`,tokens:n,customTheme:e,...s,ref:i,children:(a=t.selectedItem)==null?void 0:a.props.children})})}const pi=t=>{var r;const{tabState:e}=Ie();return y.createElement(kc,{...t,key:(r=e.selectedItem)==null?void 0:r.key,state:e})},mi=t=>{var u;const{themeName:e,tokens:r,customTheme:n,children:o,beforeTabContent:i,afterTabContent:s}=t,{tabState:a,defaultSelectedKey:l}=Ie();return c.jsxs(c.Fragment,{children:[c.jsx(W,{themeName:`${e}.wrapper`,tokens:r,customTheme:n,children:o}),((u=a==null?void 0:a.selectedKey)==null?void 0:u.toString())===l?null:c.jsxs(W,{themeName:`${e}.tabWrapper`,tokens:r,customTheme:n,children:[i!==null&&i,c.jsx(pi,{themeName:`${e}.tabPanel`,tokens:r,customTheme:n}),s!==null&&s]})]})},Dc=t=>{const{id:e="main-menu",children:r,PanelTransition:n=hi,themeName:o,tokens:i,customTheme:s,...a}=t,{overlayState:l}=Sr(),{closeBtn:u}=Ie();return c.jsx(n,{isVisible:l==null?void 0:l.isOpen,children:c.jsxs(W,{themeName:`${o}.wrapper`,children:[u&&u(),c.jsx(W,{themeName:`${o}.container`,children:c.jsx(mi,{id:e,themeName:`${o}.innerContent`,tokens:i,customTheme:s,...a,children:r})})]})})},Oc=t=>{const{id:e="main-menu",children:r,TransitionAnimation:n,PanelTransition:o,themeName:i,tokens:s,customTheme:a,...l}=t,{closeBtn:u,tabState:d,defaultSelectedKey:p}=Ie();return c.jsx(jo,{themeName:`${i}.sidePanel`,tokens:s,customTheme:a,closeBtnRender:u,id:e,TransitionAnimation:n,PanelTransition:o,onCloseCallBack:()=>{d==null||d.setSelectedKey(p)},children:c.jsx(mi,{id:e,themeName:i,tokens:s,customTheme:a,...l,children:r})})};function Ic(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gr={exports:{}},Fe={};Fe._=Fe._interop_require_default=Ac;function Ac(t){return t&&t.__esModule?t:{default:t}}var rt={exports:{}},At={},xn;function gi(){return xn||(xn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,a){for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]})}e(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(s){const a={};return s.forEach((l,u)=>{typeof a[u]>"u"?a[u]=l:Array.isArray(a[u])?a[u].push(l):a[u]=[a[u],l]}),a}function n(s){return typeof s=="string"||typeof s=="number"&&!isNaN(s)||typeof s=="boolean"?String(s):""}function o(s){const a=new URLSearchParams;return Object.entries(s).forEach(l=>{let[u,d]=l;Array.isArray(d)?d.forEach(p=>a.append(u,n(p))):a.set(u,n(d))}),a}function i(s){for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];return l.forEach(d=>{Array.from(d.keys()).forEach(p=>s.delete(p)),d.forEach((p,f)=>s.append(f,p))}),s}}(At)),At}var Lt={},nt={},$n;function Lc(){if($n)return nt;$n=1;function t(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,o=new WeakMap;return(t=function(i){return i?o:n})(r)}nt._=nt._interop_require_wildcard=e;function e(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var o=t(n);if(o&&o.has(r))return o.get(r);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)){var l=s?Object.getOwnPropertyDescriptor(r,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=r[a]}return i.default=r,o&&o.set(r,i),i}return nt}var wn;function bi(){return wn||(wn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(l,u){for(var d in u)Object.defineProperty(l,d,{enumerable:!0,get:u[d]})}e(t,{formatUrl:function(){return i},urlObjectKeys:function(){return s},formatWithValidation:function(){return a}});const n=Lc()._(gi()),o=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:d}=l,p=l.protocol||"",f=l.pathname||"",m=l.hash||"",$=l.query||"",g=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?g=u+l.host:d&&(g=u+(~d.indexOf(":")?"["+d+"]":d),l.port&&(g+=":"+l.port)),$&&typeof $=="object"&&($=String(n.urlQueryToSearchParams($)));let b=l.search||$&&"?"+$||"";return p&&!p.endsWith(":")&&(p+=":"),l.slashes||(!p||o.test(p))&&g!==!1?(g="//"+(g||""),f&&f[0]!=="/"&&(f="/"+f)):g||(g=""),m&&m[0]!=="#"&&(m="#"+m),b&&b[0]!=="?"&&(b="?"+b),f=f.replace(/[?#]/g,encodeURIComponent),b=b.replace("#","%23"),""+p+g+f+b+m}const s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{s.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),i(l)}}(Lt)),Lt}var Nt={},Pn;function Nc(){return Pn||(Pn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return e}});function e(r,n){const o={};return Object.keys(r).forEach(i=>{n.includes(i)||(o[i]=r[i])}),o}}(Nt)),Nt}var Bt={},Tn;function St(){return Tn||(Tn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(P,E){for(var R in E)Object.defineProperty(P,R,{enumerable:!0,get:E[R]})}e(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return s},getURL:function(){return a},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return d},loadGetInitialProps:function(){return p},SP:function(){return f},ST:function(){return m},DecodeError:function(){return $},NormalizeError:function(){return g},PageNotFoundError:function(){return b},MissingStaticPage:function(){return w},MiddlewareNotFoundError:function(){return j},stringifyError:function(){return S}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(P){let E=!1,R;return function(){for(var k=arguments.length,h=new Array(k),M=0;M<k;M++)h[M]=arguments[M];return E||(E=!0,R=P(...h)),R}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=P=>o.test(P);function s(){const{protocol:P,hostname:E,port:R}=window.location;return P+"//"+E+(R?":"+R:"")}function a(){const{href:P}=window.location,E=s();return P.substring(E.length)}function l(P){return typeof P=="string"?P:P.displayName||P.name||"Unknown"}function u(P){return P.finished||P.headersSent}function d(P){const E=P.split("?");return E[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(E[1]?"?"+E.slice(1).join("?"):"")}async function p(P,E){if(process.env.NODE_ENV!=="production"){var R;if((R=P.prototype)!=null&&R.getInitialProps){const M='"'+l(P)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(M)}}const k=E.res||E.ctx&&E.ctx.res;if(!P.getInitialProps)return E.ctx&&E.Component?{pageProps:await p(E.Component,E.ctx)}:{};const h=await P.getInitialProps(E);if(k&&u(k))return h;if(!h){const M='"'+l(P)+'.getInitialProps()" should resolve to an object. But found "'+h+'" instead.';throw new Error(M)}return process.env.NODE_ENV!=="production"&&Object.keys(h).length===0&&!E.ctx&&console.warn(""+l(P)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),h}const f=typeof performance<"u",m=f&&["mark","measure","getEntriesByName"].every(P=>typeof performance[P]=="function");class $ extends Error{}class g extends Error{}class b extends Error{constructor(E){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+E}}class w extends Error{constructor(E,R){super(),this.message="Failed to load static file for page: "+E+" "+R}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(P){return JSON.stringify({message:P.message,stack:P.stack})}}(Bt)),Bt}var ot={exports:{}},Kt={},Cn;function yi(){return Cn||(Cn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}}(Kt)),Kt}var Ft={},Sn;function Dr(){return Sn||(Sn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),o=r.indexOf("?"),i=o>-1&&(n<0||o<n);return i||n>-1?{pathname:r.substring(0,i?o:n),query:i?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(Ft)),Ft}var Rn;function Rt(){return Rn||(Rn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=yi(),n=Dr(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:s,query:a,hash:l}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(s)?""+(0,r.removeTrailingSlash)(s)+a+l:s.endsWith("/")?""+s+a+l:s+"/"+a+l:""+(0,r.removeTrailingSlash)(s)+a+l};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ot,ot.exports)),ot.exports}var qt={},it={exports:{}},Ut={},En;function vi(){return En||(En=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=Dr();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,e.parsePath)(n);return i===o||i.startsWith(o+"/")}}(Ut)),Ut}var Mn;function Bc(){return Mn||(Mn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=vi(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,r.pathHasPrefix)(i,n)}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(it,it.exports)),it.exports}var jn;function xi(){return jn||(jn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return n}});const e=St(),r=Bc();function n(o){if(!(0,e.isAbsoluteUrl)(o))return!0;try{const i=(0,e.getLocationOrigin)(),s=new URL(o,i);return s.origin===i&&(0,r.hasBasePath)(s.pathname)}catch{return!1}}}(qt)),qt}var Vt={},Ht={},_n;function Kc(){return _n||(_n=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class e{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const s=i.map(a=>this.children.get(a)._smoosh(""+o+a+"/")).reduce((a,l)=>[...a,...l],[]);if(this.slugName!==null&&s.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const a=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+a+'" and "'+a+"[[..."+this.optionalRestSlugName+']]").');s.unshift(a)}return this.restSlugName!==null&&s.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&s.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),s}_insert(o,i,s){if(o.length===0){this.placeholder=!1;return}if(s)throw new Error("Catch-all must be the last part of the URL.");let a=o[0];if(a.startsWith("[")&&a.endsWith("]")){let d=function(p,f){if(p!==null&&p!==f)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+f+"').");i.forEach(m=>{if(m===f)throw new Error('You cannot have the same slug name "'+f+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===a.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+f+'" differ only by non-word symbols within a single dynamic path')}),i.push(f)},l=a.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),s=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(s)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');d(this.optionalRestSlugName,l),this.optionalRestSlugName=l,a="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');d(this.restSlugName,l),this.restSlugName=l,a="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');d(this.slugName,l),this.slugName=l,a="[]"}}this.children.has(a)||this.children.set(a,new e),this.children.get(a)._insert(o.slice(1),i,s)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new e;return n.forEach(i=>o.insert(i)),o.smoosh()}}(Ht)),Ht}var zt={},Wt={},Gt={},Yt={},kn;function Fc(){return kn||(kn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.startsWith("/")?r:"/"+r}}(Yt)),Yt}var Jt={},Dn;function qc(){return Dn||(Dn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isGroupSegment",{enumerable:!0,get:function(){return e}});function e(r){return r[0]==="("&&r.endsWith(")")}}(Jt)),Jt}var On;function Uc(){return On||(On=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,a){for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]})}e(t,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return i}});const r=Fc(),n=qc();function o(s){return(0,r.ensureLeadingSlash)(s.split("/").reduce((a,l,u,d)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===d.length-1?a:a+"/"+l,""))}function i(s){return s.replace(/\.rsc($|\?)/,"$1")}}(Gt)),Gt}var In;function $i(){return In||(In=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,a){for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]})}e(t,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=Uc(),n=["(..)(..)","(.)","(..)","(...)"];function o(s){return s.split("/").find(a=>n.find(l=>a.startsWith(l)))!==void 0}function i(s){let a,l,u;for(const d of s.split("/"))if(l=n.find(p=>d.startsWith(p)),l){[a,u]=s.split(l,2);break}if(!a||!l||!u)throw new Error(`Invalid interception route: ${s}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(a=(0,r.normalizeAppPath)(a),l){case"(.)":a==="/"?u=`/${u}`:u=a+"/"+u;break;case"(..)":if(a==="/")throw new Error(`Invalid interception route: ${s}. Cannot use (..) marker at the root level, use (.) instead.`);u=a.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const d=a.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${s}. Cannot use (..)(..) marker at the root level or one level up.`);u=d.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:a,interceptedRoute:u}}}(Wt)),Wt}var An;function Vc(){return An||(An=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const e=$i(),r=/\/\[[^/]+?\](?=\/|$)/;function n(o){return(0,e.isInterceptionRouteAppPath)(o)&&(o=(0,e.extractInterceptionRouteInformation)(o).interceptedRoute),r.test(o)}}(zt)),zt}var Ln;function Hc(){return Ln||(Ln=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}e(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Kc(),n=Vc()}(Vt)),Vt}var Qt={},Xt={},Nn;function zc(){return Nn||(Nn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const e=St();function r(n){let{re:o,groups:i}=n;return s=>{const a=o.exec(s);if(!a)return!1;const l=d=>{try{return decodeURIComponent(d)}catch{throw new e.DecodeError("failed to decode param")}},u={};return Object.keys(i).forEach(d=>{const p=i[d],f=a[p.pos];f!==void 0&&(u[d]=~f.indexOf("/")?f.split("/").map(m=>l(m)):p.repeat?[l(f)]:l(f))}),u}}}(Xt)),Xt}var Zt={},er={},Bn;function Wc(){return Bn||(Bn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const e=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return e.test(o)?o.replace(r,"\\$&"):o}}(er)),er}var Kn;function Gc(){return Kn||(Kn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(g,b){for(var w in b)Object.defineProperty(g,w,{enumerable:!0,get:b[w]})}e(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return $}});const r=$i(),n=Wc(),o=yi(),i="nxtP",s="nxtI";function a(g){const b=g.startsWith("[")&&g.endsWith("]");b&&(g=g.slice(1,-1));const w=g.startsWith("...");return w&&(g=g.slice(3)),{key:g,repeat:w,optional:b}}function l(g){const b=(0,o.removeTrailingSlash)(g).slice(1).split("/"),w={};let j=1;return{parameterizedRoute:b.map(S=>{const P=r.INTERCEPTION_ROUTE_MARKERS.find(R=>S.startsWith(R)),E=S.match(/\[((?:\[.*\])|.+)\]/);if(P&&E){const{key:R,optional:k,repeat:h}=a(E[1]);return w[R]={pos:j++,repeat:h,optional:k},"/"+(0,n.escapeStringRegexp)(P)+"([^/]+?)"}else if(E){const{key:R,repeat:k,optional:h}=a(E[1]);return w[R]={pos:j++,repeat:k,optional:h},k?h?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(S)}).join(""),groups:w}}function u(g){const{parameterizedRoute:b,groups:w}=l(g);return{re:new RegExp("^"+b+"(?:/)?$"),groups:w}}function d(){let g=0;return()=>{let b="",w=++g;for(;w>0;)b+=String.fromCharCode(97+(w-1)%26),w=Math.floor((w-1)/26);return b}}function p(g){let{interceptionMarker:b,getSafeRouteKey:w,segment:j,routeKeys:S,keyPrefix:P}=g;const{key:E,optional:R,repeat:k}=a(j);let h=E.replace(/\W/g,"");P&&(h=""+P+h);let M=!1;(h.length===0||h.length>30)&&(M=!0),isNaN(parseInt(h.slice(0,1)))||(M=!0),M&&(h=w()),P?S[h]=""+P+E:S[h]=E;const x=b?(0,n.escapeStringRegexp)(b):"";return k?R?"(?:/"+x+"(?<"+h+">.+?))?":"/"+x+"(?<"+h+">.+?)":"/"+x+"(?<"+h+">[^/]+?)"}function f(g,b){const w=(0,o.removeTrailingSlash)(g).slice(1).split("/"),j=d(),S={};return{namedParameterizedRoute:w.map(P=>{const E=r.INTERCEPTION_ROUTE_MARKERS.some(k=>P.startsWith(k)),R=P.match(/\[((?:\[.*\])|.+)\]/);if(E&&R){const[k]=P.split(R[0]);return p({getSafeRouteKey:j,interceptionMarker:k,segment:R[1],routeKeys:S,keyPrefix:b?s:void 0})}else return R?p({getSafeRouteKey:j,segment:R[1],routeKeys:S,keyPrefix:b?i:void 0}):"/"+(0,n.escapeStringRegexp)(P)}).join(""),routeKeys:S}}function m(g,b){const w=f(g,b);return{...u(g),namedRegex:"^"+w.namedParameterizedRoute+"(?:/)?$",routeKeys:w.routeKeys}}function $(g,b){const{parameterizedRoute:w}=l(g),{catchAll:j=!0}=b;if(w==="/")return{namedRegex:"^/"+(j?".*":"")+"$"};const{namedParameterizedRoute:S}=f(g,!1);let P=j?"(?:(/.*)?)":"";return{namedRegex:"^"+S+P+"$"}}}(Zt)),Zt}var Fn;function Yc(){return Fn||(Fn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return n}});const e=zc(),r=Gc();function n(o,i,s){let a="";const l=(0,r.getRouteRegex)(o),u=l.groups,d=(i!==o?(0,e.getRouteMatcher)(l)(i):"")||s;a=o;const p=Object.keys(u);return p.every(f=>{let m=d[f]||"";const{repeat:$,optional:g}=u[f];let b="["+($?"...":"")+f+"]";return g&&(b=(m?"":"/")+"["+b+"]"),$&&!Array.isArray(m)&&(m=[m]),(g||f in d)&&(a=a.replace(b,$?m.map(w=>encodeURIComponent(w)).join("/"):encodeURIComponent(m))||"/")})||(a=""),{params:p,result:a}}}(Qt)),Qt}var qn;function Jc(){return qn||(qn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return d}});const r=gi(),n=bi(),o=Nc(),i=St(),s=Rt(),a=xi(),l=Hc(),u=Yc();function d(p,f,m){let $,g=typeof f=="string"?f:(0,n.formatWithValidation)(f);const b=g.match(/^[a-zA-Z]{1,}:\/\//),w=b?g.slice(b[0].length):g;if((w.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+g+"' passed to next/router in page: '"+p.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const S=(0,i.normalizeRepeatedSlashes)(w);g=(b?b[0]:"")+S}if(!(0,a.isLocalURL)(g))return m?[g]:g;try{$=new URL(g.startsWith("#")?p.asPath:p.pathname,"http://n")}catch{$=new URL("/","http://n")}try{const S=new URL(g,$);S.pathname=(0,s.normalizePathTrailingSlash)(S.pathname);let P="";if((0,l.isDynamicRoute)(S.pathname)&&S.searchParams&&m){const R=(0,r.searchParamsToUrlQuery)(S.searchParams),{result:k,params:h}=(0,u.interpolateAs)(S.pathname,S.pathname,R);k&&(P=(0,n.formatWithValidation)({pathname:k,hash:S.hash,query:(0,o.omit)(R,h)}))}const E=S.origin===$.origin?S.href.slice(S.origin.length):S.href;return m?[E,P||E]:E}catch{return m?[g]:g}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(rt,rt.exports)),rt.exports}var st={exports:{}},tr={},rr={},Un;function wi(){return Un||(Un=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=Dr();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:s,hash:a}=(0,e.parsePath)(n);return""+o+i+s+a}}(rr)),rr}var Vn;function Qc(){return Vn||(Vn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=wi(),r=vi();function n(o,i,s,a){if(!i||i===s)return o;const l=o.toLowerCase();return!a&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?o:(0,e.addPathPrefix)(o,"/"+i)}}(tr)),tr}var Hn;function Xc(){return Hn||(Hn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const r=Rt(),n=function(o){for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Qc().addLocale(o,...s)):o};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(st,st.exports)),st.exports}var nr={},zn;function Zc(){return zn||(zn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Fe._(y).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(nr)),nr}var or={},Wn;function eu(){return Wn||(Wn=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function e(u,d){for(var p in d)Object.defineProperty(u,p,{enumerable:!0,get:d[p]})}e(t,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return s},GlobalLayoutRouterContext:function(){return a},TemplateContext:function(){return l}});const n=Fe._(y);var o;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(o||(o={}));const i=n.default.createContext(null),s=n.default.createContext(null),a=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",s.displayName="LayoutRouterContext",a.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(or)),or}var at={exports:{}},lt={exports:{}},Gn;function tu(){return Gn||(Gn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(i,s){for(var a in s)Object.defineProperty(i,a,{enumerable:!0,get:s[a]})}r(e,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let s=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-s))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(lt,lt.exports)),lt.exports}var Yn;function ru(){return Yn||(Yn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return u}});const r=y,n=tu(),o=typeof IntersectionObserver=="function",i=new Map,s=[];function a(d){const p={root:d.root||null,margin:d.rootMargin||""},f=s.find(b=>b.root===p.root&&b.margin===p.margin);let m;if(f&&(m=i.get(f),m))return m;const $=new Map,g=new IntersectionObserver(b=>{b.forEach(w=>{const j=$.get(w.target),S=w.isIntersecting||w.intersectionRatio>0;j&&S&&j(S)})},d);return m={id:p,observer:g,elements:$},s.push(p),i.set(p,m),m}function l(d,p,f){const{id:m,observer:$,elements:g}=a(f);return g.set(d,p),$.observe(d),function(){if(g.delete(d),$.unobserve(d),g.size===0){$.disconnect(),i.delete(m);const w=s.findIndex(j=>j.root===m.root&&j.margin===m.margin);w>-1&&s.splice(w,1)}}}function u(d){let{rootRef:p,rootMargin:f,disabled:m}=d;const $=m||!o,[g,b]=(0,r.useState)(!1),w=(0,r.useRef)(null),j=(0,r.useCallback)(P=>{w.current=P},[]);(0,r.useEffect)(()=>{if(o){if($||g)return;const P=w.current;if(P&&P.tagName)return l(P,R=>R&&b(R),{root:p==null?void 0:p.current,rootMargin:f})}else if(!g){const P=(0,n.requestIdleCallback)(()=>b(!0));return()=>(0,n.cancelIdleCallback)(P)}},[$,f,p,g,w.current]);const S=(0,r.useCallback)(()=>{b(!1)},[]);return[j,g,S]}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(at,at.exports)),at.exports}var ct={exports:{}},ut={exports:{}},ir={},Jn;function nu(){return Jn||(Jn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let o;const i=r.split("/");return(n||[]).some(s=>i[1]&&i[1].toLowerCase()===s.toLowerCase()?(o=s,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(ir)),ir}var Qn;function ou(){return Qn||(Qn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?nu().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ut,ut.exports)),ut.exports}var dt={exports:{}},sr={},Xn;function iu(){return Xn||(Xn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,o){if(r){o&&(o=o.toLowerCase());for(const a of r){var i,s;const l=(i=a.domain)==null?void 0:i.split(":",1)[0].toLowerCase();if(n===l||o===a.defaultLocale.toLowerCase()||(s=a.locales)!=null&&s.some(u=>u.toLowerCase()===o))return a}}}}(sr)),sr}var Zn;function su(){return Zn||(Zn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return iu().detectDomainLocale(...o)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(dt,dt.exports)),dt.exports}var eo;function au(){return eo||(eo=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Rt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,s,a,l){if(process.env.__NEXT_I18N_SUPPORT){const u=ou().normalizeLocalePath,d=su().detectDomainLocale,p=s||u(i,a).detectedLocale,f=d(l,void 0,p);if(f){const m="http"+(f.http?"":"s")+"://",$=p===f.defaultLocale?"":"/"+p;return""+m+f.domain+(0,r.normalizePathTrailingSlash)(""+n+$+i)}return!1}else return!1}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ct,ct.exports)),ct.exports}var ft={exports:{}},to;function lu(){return to||(to=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return i}});const r=wi(),n=Rt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s,a){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!a?s:(0,r.addPathPrefix)(s,o))}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ft,ft.exports)),ft.exports}var ht={exports:{}},ro;function cu(){return ro||(ro=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(f,m){for(var $ in m)Object.defineProperty(f,$,{enumerable:!0,get:m[$]})}r(e,{PrefetchKind:function(){return d},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return a},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u},isThenable:function(){return p}});const n="refresh",o="navigate",i="restore",s="server-patch",a="prefetch",l="fast-refresh",u="server-action";var d;(function(f){f.AUTO="auto",f.FULL="full",f.TEMPORARY="temporary"})(d||(d={}));function p(f){return f&&(typeof f=="object"||typeof f=="function")&&typeof f.then=="function"}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ht,ht.exports)),ht.exports}(function(t,e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return E}});const n=Fe._(y),o=Jc(),i=xi(),s=bi(),a=St(),l=Xc(),u=Zc(),d=eu(),p=ru(),f=au(),m=lu(),$=cu(),g=new Set;function b(R,k,h,M,x,T){if(typeof window>"u"||!T&&!(0,i.isLocalURL)(k))return;if(!M.bypassPrefetchedCheck){const v=typeof M.locale<"u"?M.locale:"locale"in R?R.locale:void 0,C=k+"%"+h+"%"+v;if(g.has(C))return;g.add(C)}const N=T?R.prefetch(k,x):R.prefetch(k,h,M);Promise.resolve(N).catch(v=>{if(process.env.NODE_ENV!=="production")throw v})}function w(R){const h=R.currentTarget.getAttribute("target");return h&&h!=="_self"||R.metaKey||R.ctrlKey||R.shiftKey||R.altKey||R.nativeEvent&&R.nativeEvent.which===2}function j(R,k,h,M,x,T,N,v,C){const{nodeName:B}=R.currentTarget;if(B.toUpperCase()==="A"&&(w(R)||!C&&!(0,i.isLocalURL)(h)))return;R.preventDefault();const D=()=>{const V=N??!0;"beforePopState"in k?k[x?"replace":"push"](h,M,{shallow:T,locale:v,scroll:V}):k[x?"replace":"push"](M||h,{scroll:V})};C?n.default.startTransition(D):D()}function S(R){return typeof R=="string"?R:(0,s.formatUrl)(R)}const E=n.default.forwardRef(function(k,h){let M;const{href:x,as:T,children:N,prefetch:v=null,passHref:C,replace:B,shallow:G,scroll:D,locale:V,onClick:ne,onMouseEnter:A,onTouchStart:Y,legacyBehavior:U=!1,...He}=k;M=N,U&&(typeof M=="string"||typeof M=="number")&&(M=n.default.createElement("a",null,M));const z=n.default.useContext(u.RouterContext),ze=n.default.useContext(d.AppRouterContext),le=z??ze,K=!z,J=v!==!1,ee=v===null?$.PrefetchKind.AUTO:$.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let F=function(q){return new Error("Failed prop type: The prop `"+q.key+"` expects a "+q.expected+" in `<Link>`, but got `"+q.actual+"` instead."+(typeof window<"u"?`
|
|
88
|
+
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(q=>{if(q==="href"&&(k[q]==null||typeof k[q]!="string"&&typeof k[q]!="object"))throw F({key:q,expected:"`string` or `object`",actual:k[q]===null?"null":typeof k[q]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(q=>{const de=typeof k[q];if(q==="as"){if(k[q]&&de!=="string"&&de!=="object")throw F({key:q,expected:"`string` or `object`",actual:de})}else if(q==="locale"){if(k[q]&&de!=="string")throw F({key:q,expected:"`string`",actual:de})}else if(q==="onClick"||q==="onMouseEnter"||q==="onTouchStart"){if(k[q]&&de!=="function")throw F({key:q,expected:"`function`",actual:de})}else if((q==="replace"||q==="scroll"||q==="shallow"||q==="passHref"||q==="prefetch"||q==="legacyBehavior")&&k[q]!=null&&de!=="boolean")throw F({key:q,expected:"`boolean`",actual:de})});const Br=n.default.useRef(!1);k.prefetch&&!Br.current&&!K&&(Br.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&K&&!T){let F;if(typeof x=="string"?F=x:typeof x=="object"&&typeof x.pathname=="string"&&(F=x.pathname),F&&F.split("/").some(Se=>Se.startsWith("[")&&Se.endsWith("]")))throw new Error("Dynamic href `"+F+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:re,as:te}=n.default.useMemo(()=>{if(!z){const Se=S(x);return{href:Se,as:T?S(T):Se}}const[F,Ae]=(0,o.resolveHref)(z,x,!0);return{href:F,as:T?(0,o.resolveHref)(z,T):Ae||F}},[z,x,T]),Or=n.default.useRef(re),Ir=n.default.useRef(te);let X;if(U)if(process.env.NODE_ENV==="development"){ne&&console.warn('"onClick" was passed to <Link> with `href` of `'+x+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),A&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+x+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{X=n.default.Children.only(M)}catch{throw M?new Error("Multiple children were passed to <Link> with `href` of `"+x+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
|
|
89
|
+
Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+x+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else X=n.default.Children.only(M);else if(process.env.NODE_ENV==="development"&&(M==null?void 0:M.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
|
|
90
|
+
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const Ce=U?X&&typeof X=="object"&&X.ref:h,[Ar,Lr,Nr]=(0,p.useIntersection)({rootMargin:"200px"}),Gi=n.default.useCallback(F=>{(Ir.current!==te||Or.current!==re)&&(Nr(),Ir.current=te,Or.current=re),Ar(F),Ce&&(typeof Ce=="function"?Ce(F):typeof Ce=="object"&&(Ce.current=F))},[te,Ce,re,Nr,Ar]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&le&&(!Lr||!J||b(le,re,te,{locale:V},{kind:ee},K))},[te,re,Lr,V,J,z==null?void 0:z.locale,le,K,ee]);const We={ref:Gi,onClick(F){if(process.env.NODE_ENV!=="production"&&!F)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!U&&typeof ne=="function"&&ne(F),U&&X.props&&typeof X.props.onClick=="function"&&X.props.onClick(F),le&&(F.defaultPrevented||j(F,le,re,te,B,G,D,V,K))},onMouseEnter(F){!U&&typeof A=="function"&&A(F),U&&X.props&&typeof X.props.onMouseEnter=="function"&&X.props.onMouseEnter(F),le&&((!J||process.env.NODE_ENV==="development")&&K||b(le,re,te,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:ee},K))},onTouchStart(F){!U&&typeof Y=="function"&&Y(F),U&&X.props&&typeof X.props.onTouchStart=="function"&&X.props.onTouchStart(F),le&&(!J&&K||b(le,re,te,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:ee},K))}};if((0,a.isAbsoluteUrl)(te))We.href=te;else if(!U||C||X.type==="a"&&!("href"in X.props)){const F=typeof V<"u"?V:z==null?void 0:z.locale,Ae=(z==null?void 0:z.isLocaleDomain)&&(0,f.getDomainLocale)(te,F,z==null?void 0:z.locales,z==null?void 0:z.domainLocales);We.href=Ae||(0,m.addBasePath)((0,l.addLocale)(te,F,z==null?void 0:z.defaultLocale))}return U?n.default.cloneElement(X,We):n.default.createElement("a",{...He,...We},M)});(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(gr,gr.exports);var uu=gr.exports,du=uu;const fu=Ic(du),hu=t=>{const{tabState:e,defaultSelectedKey:r}=Ie(),{setSelectedKey:n}=e,{id:o,path:i,label:s,themeName:a="button",tokens:l,customTheme:u,target:d,children:p,childItems:f,...m}=t,$=i==null?void 0:i.substring(1),g=y.useCallback(()=>{if($!=null){if(e.selectedKey===$){n(r);return}n($)}},[$,e.selectedKey,n,r]);return y.createElement(ve,{...m,themeName:`${a}`,tokens:l,customTheme:u,key:`button-${o}`,handlePress:g},y.isValidElement(p)?p:s)},pu=t=>{const{id:e,target:r,path:n,label:o,themeName:i="anchor",customTheme:s,tokens:a,nextLinkProps:l,children:u,childItems:d,...p}=t,f=y.useRef(null);return n==null||o==null?null:y.createElement(Cr,{...p,themeName:`${i}`,tokens:a,customTheme:s,nextLinkProps:{scroll:!1,href:n,...l},ref:f,key:`link-${e}`,as:fu,target:r??"_self"},y.isValidElement(u)?u:o)},mu=t=>{const{menuItems:e,children:r,themeName:n="menuItem",tokens:o,customTheme:i}=t;return c.jsxs(W,{themeName:`${n}.wrapper`,tokens:o,customTheme:i,children:[c.jsx(W,{themeName:`${n}.container`,tokens:o,customTheme:i,children:e==null?void 0:e.map(s=>{var m;const{id:a,path:l,label:u,...d}=s??{},p={...o,...s.tokens};if((s==null?void 0:s.path)==null||s.id==null)return null;const f=(m=s.path)!=null&&m.startsWith("#")?"button":"a";return c.jsx(W,{themeName:`${n}.innerContent`,tokens:p,customTheme:i,children:f==="button"?c.jsx(hu,{...d,...s,themeName:`${n}.button`,tokens:p,customTheme:i}):c.jsx(pu,{...d,...s,themeName:`${n}.anchor`,tokens:p,customTheme:i})},`li-${s.id}`)})}),r]})};function gu(t){const e=t.replace(/-/g,"+").replace(/_/g,"/"),r=typeof Buffer<"u"?Buffer.from(e,"base64"):Uint8Array.from(atob(e),n=>n.charCodeAt(0));return new Uint8Array(r)}/**
|
|
91
91
|
* Encodes an RGBA image to a PNG data URI. RGB should not be premultiplied by A.
|
|
92
92
|
*
|
|
93
93
|
* @remarks
|
|
@@ -97,4 +97,4 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
97
97
|
* @see https://github.com/evanw/thumbhash
|
|
98
98
|
* @author Evan Wallace
|
|
99
99
|
* @license MIT
|
|
100
|
-
*/function gu(t,e,r){const n=t*4+1,o=6+e*(5+n),i=[137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,t>>8,t&255,0,0,e>>8,e&255,8,6,0,0,0,0,0,0,0,o>>>24,o>>16&255,o>>8&255,o&255,73,68,65,84,120,1],s=[0,498536548,997073096,651767980,1994146192,1802195444,1303535960,1342533948,-306674912,-267414716,-690576408,-882789492,-1687895376,-2032938284,-1609899400,-1111625188];let a=1,l=0;for(let d=0,p=0,f=n-1;d<e;d++,f+=n-1)for(i.push(d+1<e?0:1,n&255,n>>8,~n&255,n>>8^255,0),l=(l+a)%65521;p<f;p++){const m=r[p]&255;i.push(m),a=(a+m)%65521,l=(l+a)%65521}i.push(l>>8,l&255,a>>8,a&255,0,0,0,0,0,0,0,0,73,69,78,68,174,66,96,130);for(let[d,p]of[[12,29],[37,41+o]]){let f=-1;for(let m=d;m<p;m++)f^=i[m],f=f>>>4^s[f&15],f=f>>>4^s[f&15];f=~f,i[p++]=f>>>24,i[p++]=f>>16&255,i[p++]=f>>8&255,i[p++]=f&255}return`data:image/png;base64,${typeof Buffer<"u"?Buffer.from(new Uint8Array(i)).toString("base64"):btoa(String.fromCharCode(...i))}`}function bu(t){let{PI:e,min:r,max:n,cos:o,round:i}=Math,s=t[0]|t[1]<<8|t[2]<<16,a=t[3]|t[4]<<8,l=(s&63)/63,u=(s>>6&63)/31.5-1,d=(s>>12&63)/31.5-1,p=(s>>18&31)/31,f=s>>23,m=(a>>3&63)/63,w=(a>>9&63)/63,g=a>>15,b=n(3,g?f?5:7:a&7),x=n(3,g?a&7:f?5:7),j=f?(t[5]&15)/15:1,E=(t[5]>>4)/15,P=f?6:5,R=0,S=(k,V,ne)=>{let L=[];for(let Y=0;Y<V;Y++)for(let U=Y?0:1;U*V<k*(V-Y);U++)L.push(((t[P+(R>>1)]>>((R++&1)<<2)&15)/7.5-1)*ne);return L},D=S(b,x,p),h=S(3,3,m*1.25),M=S(3,3,w*1.25),$=f&&S(5,5,E),T=yu(t),A=i(T>1?32:32*T),v=i(T>1?32/T:32),C=new Uint8Array(A*v*4),B=[],W=[];for(let k=0,V=0;k<v;k++)for(let ne=0;ne<A;ne++,V+=4){let L=l,Y=u,U=d,He=j;for(let K=0,J=n(b,f?5:3);K<J;K++)B[K]=o(e/A*(ne+.5)*K);for(let K=0,J=n(x,f?5:3);K<J;K++)W[K]=o(e/v*(k+.5)*K);for(let K=0,J=0;K<x;K++)for(let ee=K?0:1,re=W[K]*2;ee*x<b*(x-K);ee++,J++)L+=D[J]*B[ee]*re;for(let K=0,J=0;K<3;K++)for(let ee=K?0:1,re=W[K]*2;ee<3-K;ee++,J++){let te=B[ee]*re;Y+=h[J]*te,U+=M[J]*te}if(f)for(let K=0,J=0;K<5;K++)for(let ee=K?0:1,re=W[K]*2;ee<5-K;ee++,J++)He+=$[J]*B[ee]*re;let z=L-2/3*Y,ze=(3*L-z+U)/2,le=ze-U;C[V]=n(0,255*r(1,ze)),C[V+1]=n(0,255*r(1,le)),C[V+2]=n(0,255*r(1,z)),C[V+3]=n(0,255*r(1,He))}return{w:A,h:v,rgba:C}}function yu(t){let e=t[3],r=t[2]&128,n=t[4]&128,o=n?r?5:7:e&7,i=n?e&7:r?5:7;return o/i}function vu(t){const{w:e,h:r,rgba:n}=bu(mu(t));return gu(e,r,n)}const wi=t=>{const{src:e,width:r,height:n,themeName:o="img",tokens:i,customTheme:s,...a}=t,l=I(o,i,s);if(typeof e=="object"){const{blurWidth:u,blurHeight:d,width:p,height:f,...m}=e,w={blurwidth:u,blurheight:d};return c.jsx(Kr,{className:l,...m,...a,...w,width:p??r,height:f??n})}return c.jsx(Kr,{width:r,height:n,className:l,src:e,...a})},xu=process.env.NEXT_PUBLIC_IMG_DOMAIN??"",$u=t=>{const{fit:e,customTheme:r,thumbhash:n,description:o,width:i,height:s,id:a,filenameDownload:l,...u}=t;if(!a||!l)return null;const p=(()=>{try{const f=new URL(`/assets/${a}/${l}`,`https://${xu}`);return f.searchParams.set("fit",e??"contain"),f}catch(f){return console.warn(f),null}})();return p==null?null:c.jsx(wi,{alt:o??"",...n?{blurDataURL:vu(n),placeholder:"blur"}:{},src:p.href,...u,width:i??void 0,height:s??void 0})},wu=t=>c.jsx("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:c.jsx("path",{d:"M17.728 13.66 12.388 19 7.05 13.66M12.4 5v14",stroke:"currentColor"})}),Pi=y.memo(wu,H),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),Tu=t=>c.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:[c.jsx("g",{children:c.jsx("path",{d:"M.075 11.622a1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l8 8a1.004 1.004 0 0 0 1.42-1.42l-6.3-6.29h19.59a1 1 0 0 0 0-2H3.405l6.3-6.29a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-8 8a1 1 0 0 0-.21.33Z"})}),c.jsx("defs",{children:c.jsx("clipPath",{children:c.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),Ti=y.memo(Tu,H),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),Su=t=>c.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:[c.jsx("g",{children:c.jsx("path",{d:"M23.92 12.38a1 1 0 0 0 0-.76 1 1 0 0 0-.21-.33l-8-8a1.003 1.003 0 1 0-1.42 1.42l6.3 6.29H1a1 1 0 1 0 0 2h19.59l-6.3 6.29a1 1 0 0 0 0 1.42 1.002 1.002 0 0 0 1.42 0l8-8c.091-.095.162-.207.21-.33Z"})}),c.jsx("defs",{children:c.jsx("clipPath",{children:c.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),Ci=y.memo(Su,H),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),Eu=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",viewBox:"0 0 48 48",...t,children:c.jsx("path",{d:"M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Z"})}),Si=y.memo(Eu,H),Mu=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),ju=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",fill:"currentColor",...t,children:c.jsx("path",{d:"M28.05 36 16 23.95 28.05 11.9l2.15 2.15-9.9 9.9 9.9 9.9Z"})}),Ri=y.memo(ju,H),_u=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),ku=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",fill:"currentColor",...t,children:c.jsx("path",{d:"m18.75 36-2.15-2.15 9.9-9.9-9.9-9.9 2.15-2.15L30.8 23.95Z"})}),Ei=y.memo(ku,H),Du=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),Ou=t=>c.jsx("svg",{width:42,height:42,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72",...t,children:c.jsx("path",{d:"M46.75 49.625a1.874 1.874 0 0 1-1.331-.544L35.5 39.144l-9.919 9.937a1.876 1.876 0 0 1-2.662 0 1.873 1.873 0 0 1 0-2.662l9.937-9.919-9.937-9.919a1.883 1.883 0 0 1 2.662-2.662l9.92 9.937 9.918-9.937a1.873 1.873 0 0 1 2.662 0 1.876 1.876 0 0 1 0 2.662l-9.937 9.92 9.937 9.918a1.876 1.876 0 0 1-1.33 3.206Z",fill:"currentColor"})}),Mi=y.memo(Ou,H),Iu=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Au=t=>c.jsx("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:c.jsx("path",{d:"M9.161 5.889v2.753H7V12h2.161v10h4.442V12h2.977s.28-1.614.417-3.38h-3.379V6.316a.963.963 0 0 1 .332-.558c.174-.146.396-.233.63-.248H17V2h-3.275C9.063 2 9.173 5.37 9.173 5.889h-.012Z",fill:"currentColor"})}),ji=y.memo(Au,H),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Nu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"#3b5998",strokeMiterlimit:"10",strokeWidth:"0",d:"M147.5 254.3V139.1h38.7l6-45h-44.7V65.2c0-13 3.6-21.9 22.3-21.9h23.7V3.2c-11.6-1.2-23.1-1.8-34.7-1.8-34.3 0-57.8 20.9-57.8 59.4V94H62.2v45.1H101v115.2h46.5z"})}),_i=y.memo(Nu,H),Bu=Object.freeze(Object.defineProperty({__proto__:null,default:_i},Symbol.toStringTag,{value:"Module"})),Ku=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 25",fill:"none",...t,children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12.5001C2 17.4501 5.6 21.5501 10.35 22.4001L10.4094 22.3515C10.4063 22.3509 10.4032 22.3503 10.4001 22.3498V15.2998H7.90015V12.4998H10.4001V10.2998C10.4001 7.79978 12.0001 6.39978 14.3001 6.39978C15.0001 6.39978 15.8001 6.49978 16.5001 6.59978V9.14978H15.2001C14.0001 9.14978 13.7001 9.74978 13.7001 10.5498V12.4998H16.3501L15.9001 15.2998H13.7001V22.3498C13.6696 22.3553 13.639 22.3608 13.6084 22.366L13.65 22.4001C18.4 21.5501 22 17.4501 22 12.5001C22 7.00006 17.5 2.50006 12 2.50006C6.5 2.50006 2 7.00006 2 12.5001Z",fill:"currentColor"})}),ki=y.memo(Ku,H),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),qu=t=>c.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 67 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[c.jsx("path",{d:"M16.1339 8.5415C18.1397 10.0645 19.8152 11.9792 21.0587 14.1693C22.2848 16.2537 25.064 22.0491 22.5341 25.3227C19.6732 29.0215 11.3848 30.2721 11.3848 33.6807C11.3848 36.2473 15.0181 39.1736 16.9594 42.0386C18.0736 43.6842 18.6691 45.626 18.6691 47.6133C18.6691 49.6006 18.0736 51.5423 16.9594 53.1879C16.0541 54.6088 14.817 55.7884 13.3547 56.6251",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M57.8289 14.8058C52.7905 17.106 47.4837 18.766 42.0327 19.747C39.1227 19.9555 38.6895 17.5605 36.4621 14.1724C34.7905 11.6302 30.8874 8.45055 30.8874 5.81443C30.8648 4.90303 30.9876 3.99386 31.2511 3.12109",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M33.6799 64.3334C50.6088 64.3334 64.3324 50.6098 64.3324 33.6809C64.3324 16.7519 50.6088 3.02832 33.6799 3.02832C16.751 3.02832 3.02734 16.7519 3.02734 33.6809C3.02734 50.6098 16.751 64.3334 33.6799 64.3334Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M53.2225 36.1983C53.341 44.781 42.1549 55.5094 36.4658 53.188C31.4796 51.1445 34.9944 47.2291 33.7193 36.1983C33.188 31.6127 38.0842 27.8404 43.4872 27.8404C45.8806 27.6839 48.24 28.4711 50.0597 30.0335C51.8795 31.5958 53.2225 32.8948 53.2225 36.1983Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Di=y.memo(qu,H),Uu=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),Vu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[c.jsx("path",{d:"M253.5 75.7a92.8 92.8 0 0 0-5.8-30.7A62 62 0 0 0 233 22.6 62 62 0 0 0 210.7 8c-8-3-17.2-5.2-30.7-5.8-13.5-.6-17.8-.8-52.1-.8s-38.7.2-52.2.8A92.8 92.8 0 0 0 45 8c-8.4 3.2-16 8.2-22.4 14.6A62 62 0 0 0 8 45c-3 8-5.2 17.3-5.8 30.7a890 890 0 0 0-.8 52.2c0 34.3.2 38.6.8 52.1A92.8 92.8 0 0 0 8 210.7a62 62 0 0 0 14.5 22.4A62 62 0 0 0 45 247.7c8 3.1 17.3 5.2 30.7 5.9 13.5.6 17.8.7 52.2.7s38.6-.1 52-.7a92.8 92.8 0 0 0 30.8-6c17-6.5 30.4-20 37-36.9 3-8 5.2-17.2 5.8-30.7.7-13.5.8-17.8.8-52.1s-.1-38.7-.8-52.2zM230.8 179c-.6 12.3-2.6 19-4.4 23.4-4.2 11-13 19.8-24 24a69.9 69.9 0 0 1-23.4 4.4c-13.4.6-17.4.7-51.1.7-33.8 0-37.8-.1-51.1-.7-12.4-.6-19-2.6-23.5-4.4-5.5-2-10.5-5.2-14.5-9.4-4.2-4.1-7.5-9-9.5-14.6a69.9 69.9 0 0 1-4.4-23.4c-.6-13.4-.7-17.4-.7-51.1s.1-37.8.7-51.1c.6-12.4 2.6-19 4.4-23.5 2-5.5 5.2-10.5 9.4-14.6 4.1-4.2 9-7.4 14.6-9.4a69.9 69.9 0 0 1 23.5-4.4c13.3-.6 17.3-.7 51-.7 33.8 0 37.8.1 51.1.7 12.4.6 19 2.7 23.5 4.4 5.5 2 10.5 5.2 14.6 9.4 4.2 4.1 7.4 9.1 9.4 14.6a69.9 69.9 0 0 1 4.4 23.5c.6 13.3.7 17.3.7 51s-.1 37.8-.7 51.2z"}),c.jsx("path",{d:"M127.9 63a65 65 0 1 0 0 129.8 65 65 0 0 0 0-129.9zm0 107a42.2 42.2 0 1 1 0-84.3 42.2 42.2 0 0 1 0 84.3zM210.5 60.4a15.2 15.2 0 1 1-30.3 0 15.2 15.2 0 0 1 30.3 0z"})]})}),Oi=y.memo(Vu,H),Hu=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),zu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"none",strokeMiterlimit:"10",strokeWidth:"0",transform:"matrix(2.8 0 0 2.8 1.4 1.4)",children:[c.jsxs("linearGradient",{id:"a",x1:"7.6",x2:"82.4",y1:"9.6",y2:"84.4",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{offset:"0%",stopColor:"#ffd600"}),c.jsx("stop",{offset:"50%",stopColor:"#ff0100"}),c.jsx("stop",{offset:"100%",stopColor:"#d800b9"})]}),c.jsx("path",{fill:"url(#a)",d:"M89.7 26.4c-.2-4.7-1-8-2-10.9a22 22 0 0 0-5.3-8 22 22 0 0 0-8-5.1A33 33 0 0 0 63.7.3C58.8 0 57.2 0 45 0S31.2 0 26.4.3c-4.7.2-8 1-10.9 2a22 22 0 0 0-8 5.3 22 22 0 0 0-5.1 8A33 33 0 0 0 .3 26.3C0 31.2 0 32.8 0 45c0 12.2 0 13.8.3 18.6.2 4.7 1 8 2 10.9a22 22 0 0 0 5.3 8c2.2 2.2 5 4 8 5.1a33 33 0 0 0 10.8 2.1c4.8.2 6.4.3 18.6.3s13.8 0 18.6-.3c4.7-.2 8-1 10.9-2a23 23 0 0 0 13.1-13.2 33 33 0 0 0 2.1-11c.2-4.7.3-6.3.3-18.5s0-13.8-.3-18.6zm-8 36.8c-.3 4.4-1 6.8-1.6 8.3-1.5 4-4.6 7-8.6 8.6-1.5.6-4 1.3-8.3 1.5-4.8.2-6.2.3-18.2.3s-13.4 0-18.2-.3a25 25 0 0 1-8.3-1.5 14 14 0 0 1-5.2-3.4 14 14 0 0 1-3.4-5.2c-.6-1.5-1.3-4-1.5-8.3A313 313 0 0 1 8 45c0-12 0-13.4.3-18.2a25 25 0 0 1 1.5-8.3 14 14 0 0 1 3.4-5.2 14 14 0 0 1 5.2-3.4c1.5-.6 4-1.3 8.3-1.5C31.6 8.2 33 8 45 8s13.4 0 18.2.3c4.4.2 6.8.9 8.3 1.5a14 14 0 0 1 5.2 3.4 14 14 0 0 1 3.4 5.2c.6 1.5 1.3 4 1.5 8.3.2 4.8.3 6.2.3 18.2s0 13.4-.3 18.2z"}),c.jsxs("linearGradient",{id:"b",x1:"28.7",x2:"61.3",y1:"30.7",y2:"63.3",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{offset:"0%",stopColor:"#ff6400"}),c.jsx("stop",{offset:"50%",stopColor:"#ff0100"}),c.jsx("stop",{offset:"100%",stopColor:"#fd0056"})]}),c.jsx("path",{fill:"url(#b)",d:"M45 21.9A23.1 23.1 0 1 0 45 68 23.1 23.1 0 0 0 45 22zM45 60a15 15 0 1 1 0-30 15 15 0 0 1 0 30z"}),c.jsxs("linearGradient",{id:"c",x1:"65.2",x2:"72.8",y1:"67.2",y2:"74.8",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{offset:"0%",stopColor:"#f30072"}),c.jsx("stop",{offset:"100%",stopColor:"#e50097"})]}),c.jsx("path",{fill:"url(#c)",d:"M74.4 21a5.4 5.4 0 1 1-10.8 0 5.4 5.4 0 0 1 10.8 0z"})]})}),Ii=y.memo(zu,H),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),Gu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[c.jsx("path",{d:"M61.4 254.3A59.8 59.8 0 0 1 19 151.8L65.8 105a11.2 11.2 0 0 1 15.9 16l-46.8 46.7a37.3 37.3 0 0 0 0 53.1 37.6 37.6 0 0 0 53 0l46.9-46.8a11.2 11.2 0 1 1 15.9 16l-46.8 46.7a59.8 59.8 0 0 1-42.5 17.6zM182 154a11.2 11.2 0 0 1-8-19.2L220.8 88a37.6 37.6 0 0 0-53-53.1l-46.9 46.8a11.2 11.2 0 0 1-15.9-16L151.8 19a59.6 59.6 0 0 1 85 0 60.1 60.1 0 0 1 0 84.9l-46.9 46.8c-2.2 2.2-5 3.3-8 3.3z"}),c.jsx("path",{d:"M72.6 194.3a11.2 11.2 0 0 1-8-19.1L175.3 64.7A11.2 11.2 0 1 1 191 80.6L80.6 191c-2.2 2.2-5.1 3.2-8 3.2z"})]})}),Ai=y.memo(Gu,H),Yu=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Ju=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:19,viewBox:"0 0 18 19",fill:"none",...t,children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.79773C0 1.07677 0.604838 0.5 1.33064 0.5H16.6694C17.3952 0.5 18 1.07677 18 1.79773V17.2023C18 17.9232 17.3952 18.5 16.6694 18.5H1.33064C0.604838 18.5 0 17.9232 0 17.2023V1.79773ZM5.44373 15.5677V7.44492H2.73405V15.5677H5.44373ZM4.08889 6.31541C5.03244 6.31541 5.63728 5.69058 5.63728 4.92155C5.61308 4.1285 5.05663 3.52769 4.11308 3.52769C3.19373 3.52769 2.5647 4.1285 2.5647 4.92155C2.5647 5.69058 3.14534 6.31541 4.08889 6.31541ZM9.65304 15.5677H6.94336C6.94336 15.5677 6.99175 8.18991 6.94336 7.44492H9.67723V8.58586C9.66903 8.59819 9.66097 8.6104 9.65304 8.62249H9.67723V8.58586C10.0439 8.03441 10.6772 7.25266 12.1208 7.25266C13.9111 7.25266 15.2417 8.4062 15.2417 10.9055V15.5677H12.5321V11.2179C12.5321 10.1365 12.145 9.39151 11.153 9.39151C10.403 9.39151 9.94336 9.89619 9.74981 10.3768C9.67723 10.5451 9.65304 10.7854 9.65304 11.0257V15.5677Z",fill:"currentColor"})}),Li=y.memo(Ju,H),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Xu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",transform:"matrix(2.8 0 0 2.8 1.4 1.4)",children:[c.jsx("path",{d:"M80.9 78.8H9c-5 0-9.1-4.1-9.1-9.1V20.3c0-5 4-9 9.1-9H81c5 0 9.1 4 9.1 9v49.4c0 5-4 9-9.1 9zM9 17.2A3.1 3.1 0 0 0 6 20.3v49.4c0 1.7 1.4 3 3.1 3H81c1.7 0 3.1-1.3 3.1-3V20.3c0-1.7-1.4-3-3.1-3H9z"}),c.jsx("path",{d:"M45 55.4c-5.4 0-10.6-2.3-14.2-6.3l-28.3-31 4.4-4 28.3 31c2.5 2.8 6 4.3 9.8 4.3 3.8 0 7.3-1.5 9.8-4.3l28.3-31 4.4 4-28.3 31c-3.6 4-8.8 6.3-14.2 6.3z"}),c.jsx("rect",{width:"39",height:"6",x:"-1",y:"57.2",rx:"0",ry:"0",transform:"rotate(-45.1 18.5 60.2)"}),c.jsx("rect",{width:"6",height:"39",x:"68.5",y:"40.7",rx:"0",ry:"0",transform:"rotate(-44.8 71.5 60.2)"})]})}),Ni=y.memo(Xu,H),Zu=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),ed=t=>c.jsxs("svg",{height:48,width:48,fill:"currentColor",...t,xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("ellipse",{cx:"26",cy:"24.095",rx:"26",ry:"23.547",fill:"#fff"}),c.jsx("path",{d:"M37.742 24.095H14.258M26 13.46V34.73 13.46Z",stroke:"#9E9E9E",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Bi=y.memo(ed,H),td=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),rd=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M199.75 145.13a54.45 54.45 0 0 0-43.54 21.82l-47.88-23.93c1.4-4.82 2.2-9.9 2.2-15.17a54.3 54.3 0 0 0-2.2-15.16l47.88-23.93a54.45 54.45 0 0 0 43.54 21.82 54.61 54.61 0 0 0 54.56-54.56c0-30.08-24.48-54.56-54.56-54.56s-54.56 24.48-54.56 54.56c0 5.27.79 10.35 2.19 15.17L99.5 95.11A54.45 54.45 0 0 0 55.97 73.3C25.88 73.3 1.4 97.77 1.4 127.86s24.47 54.56 54.56 54.56c17.79 0 33.56-8.6 43.53-21.82l47.88 23.92a54.32 54.32 0 0 0-2.2 15.17c0 30.09 24.48 54.56 54.57 54.56s54.56-24.47 54.56-54.56a54.62 54.62 0 0 0-54.56-54.56zm0-124c19.24 0 34.89 15.65 34.89 34.9s-15.65 34.88-34.9 34.88-34.88-15.65-34.88-34.89 15.65-34.89 34.89-34.89zM55.97 162.75c-19.24 0-34.9-15.65-34.9-34.9s15.66-34.88 34.9-34.88 34.88 15.65 34.88 34.89-15.65 34.89-34.88 34.89zm143.78 71.83a34.93 34.93 0 0 1-34.9-34.89c0-19.24 15.66-34.89 34.9-34.89s34.89 15.65 34.89 34.9a34.93 34.93 0 0 1-34.9 34.88z"})}),Ki=y.memo(rd,H),nd=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"})),od=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M81 231A147 147 0 0 0 228 76c11-7 19-16 26-27-9 5-19 7-29 9 10-7 18-17 22-29-10 6-21 10-33 12a52 52 0 0 0-88 48C83 87 45 66 19 35a52 52 0 0 0 16 69c-8 0-16-3-23-7v1c0 25 17 46 41 51a52 52 0 0 1-23 1c6 20 26 35 48 36a104 104 0 0 1-77 21c23 15 51 24 80 24"})}),Fi=y.memo(od,H),id=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),sd=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"#1da1f2",strokeMiterlimit:"10",strokeWidth:"0",d:"M81 230.6c95.4 0 147.6-79 147.6-147.6 0-2.3 0-4.5-.2-6.7 10.2-7.4 19-16.5 25.9-26.9-9.5 4.2-19.5 7-29.8 8.2a52 52 0 0 0 22.8-28.7 104 104 0 0 1-33 12.6A52 52 0 0 0 126 88.8C84.2 86.7 45.4 67 19 34.6a52 52 0 0 0 16 69.2 51.5 51.5 0 0 1-23.5-6.5v.7c0 24.7 17.4 46 41.6 50.9-7.6 2-15.6 2.4-23.4.9a52 52 0 0 0 48.5 36 104.1 104.1 0 0 1-76.8 21.5A146.9 146.9 0 0 0 81 230.6"})}),qi=y.memo(sd,H),ad=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),ld=t=>c.jsx("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:c.jsx("path",{d:"M17 21H7a4 4 0 0 1-4-4v-1a1 1 0 1 1 2 0v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 1 2 0v1a4 4 0 0 1-4 4Zm-5-4a1 1 0 0 1-1-1V6.41l-2.29 2.3a1.004 1.004 0 0 1-1.42-1.42l4-4a1 1 0 0 1 .33-.21A1 1 0 0 1 12 3a1 1 0 0 1 .38.08 1 1 0 0 1 .33.21l4 4a1.004 1.004 0 1 1-1.42 1.42L13 6.41V16a1 1 0 0 1-1 1Z",fill:"currentColor"})}),Ui=y.memo(ld,H),cd=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),ud=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 25",fill:"none",...t,children:c.jsx("path",{d:"M14.119 11.7052L20.4486 4.5H18.9492L13.4509 10.7549L9.0626 4.5H4L10.6374 13.9594L4 21.5142H5.4994L11.3021 14.9074L15.9374 21.5142H21M6.04057 5.60727H8.34407L18.9481 20.4613H16.644",fill:"currentColor"})}),Vi=y.memo(ud,H),dd=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),fd=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M249 67c-3-11-11-19-22-22-20-6-99-6-99-6s-79 0-99 6C18 48 10 56 7 67c-6 20-6 61-6 61s0 41 6 61c3 11 11 19 22 22 20 5 99 5 99 5s79 0 99-5c11-3 19-11 22-22 5-20 5-61 5-61s0-41-5-61zm-146 99V90l65 38-65 38z"})}),Hi=y.memo(fd,H),hd=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),pd=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[c.jsx("path",{fill:"red",d:"M249.02 66.99a31.68 31.68 0 0 0-22.36-22.36c-19.72-5.29-98.8-5.29-98.8-5.29s-79.09 0-98.8 5.29A31.68 31.68 0 0 0 6.68 66.99c-5.28 19.72-5.28 60.87-5.28 60.87s0 41.15 5.28 60.87a31.68 31.68 0 0 0 22.36 22.36c19.72 5.28 98.8 5.28 98.8 5.28s79.1 0 98.81-5.28a31.68 31.68 0 0 0 22.36-22.36c5.29-19.72 5.29-60.87 5.29-60.87s0-41.15-5.29-60.87z"}),c.jsx("path",{fill:"#fff",d:"m102.57 165.8 65.7-37.94-65.7-37.94z"})]})}),zi=y.memo(pd,H),md=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),[gd,bd]=vo();function yd({children:t}){const[e,r]=y.useState(!1);y.useEffect(()=>{r(!0)},[]);const n=y.useMemo(()=>({isClient:e}),[e]);return c.jsx(bd,{value:n,children:t})}const Et=(t,e,r="sharing_tool")=>`?utm_source=${t}&utm_medium=${e}&utm_campaign=${r}`,Mt=()=>{const[t,e]=y.useState(),[r,n]=y.useState();return y.useEffect(()=>{e(window.location.href),n(window.document.title)},[]),{windowLocation:t,windowTitle:r}},vd=(t,e,r)=>{const{windowLocation:n,windowTitle:o}=Mt(),i=r??n,s=Et(t,e);return`https://www.facebook.com/sharer.php?u=${`${i}${s}`}&t=${o}`},xd=(t,e,r)=>{const{windowLocation:n,windowTitle:o}=Mt(),i=r??n,s=Et(t,e),a=`${i}${s}`;return`mailto:?to=&body=${o}%20${a}`},$d=(t,e,r)=>{const{windowLocation:n}=Mt(),o=r??n,i=Et(t,e);return`https://twitter.com/intent/tweet?text=${`${o}${i}`}`};exports.Accordion=Ya;exports.AccordionContextProvider=wo;exports.AccordionItem=Ja;exports.ArrowDown=Pi;exports.ArrowLeft=Ti;exports.ArrowRight=Ci;exports.Box=G;exports.BoxWithForwardRef=Pe;exports.Button=ve;exports.ButtonWithForwardRef=Ue;exports.Calendar=ai;exports.Check=Si;exports.Checkbox=gl;exports.CheckboxGroup=Tl;exports.CheckboxGroupItem=Sl;exports.ChevronLeft=Ri;exports.ChevronRight=Ei;exports.CloseBtn=Mi;exports.Date=dl;exports.DatePicker=$c;exports.DirectusImg=$u;exports.Facebook=ji;exports.FacebookColored=_i;exports.FacebookRounded=ki;exports.Globe=Di;exports.Icon=ce;exports.Img=wi;exports.Instagram=Oi;exports.InstagramColored=Ii;exports.IsClientContextProvider=yd;exports.Lightbox=al;exports.Link=Ai;exports.LinkedIn=Li;exports.Mail=Ni;exports.Menu=kc;exports.MenuContextProvider=Ec;exports.MenuItems=pu;exports.MenuSidePanel=Dc;exports.Modal=Rr;exports.Plus=Bi;exports.Popover=cl;exports.Radio=di;exports.RadioGroup=Sc;exports.RadioGroupProvider=ci;exports.ReactHookFormInput=El;exports.ReactHookFormRadio=wc;exports.ReactHookFormSelect=ml;exports.ReactHookFormTextArea=Rl;exports.RenderWithSlide=Mo;exports.Select=_o;exports.Share=Ki;exports.ShareButton=Xa;exports.SidePanel=jo;exports.SidePanelContextProvider=Eo;exports.TabContainer=hi;exports.TextArea=Ao;exports.TextInputField=Lo;exports.ThemeContextProvider=ao;exports.ThemeProvider=ga;exports.Twitter=Fi;exports.TwitterColored=qi;exports.Typography=Z;exports.Upload=Ui;exports.WysiwygBlock=ul;exports.X=Vi;exports.YouTube=Hi;exports.YouTubeColored=zi;exports.createThemeProvider=lo;exports.generateUtmTags=Et;exports.makeTheme=io;exports.useAccordionCtx=$o;exports.useAccordionState=Co;exports.useFacebookShareUrl=vd;exports.useIsClient=gd;exports.useMailToShareUrl=xd;exports.useMenu=Ie;exports.useRadioGroupCtx=ui;exports.useSidePanel=Sr;exports.useTheme=so;exports.useThemeContext=I;exports.useTwitterShareUrl=$d;exports.useWindow=Mt;
|
|
100
|
+
*/function bu(t,e,r){const n=t*4+1,o=6+e*(5+n),i=[137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,t>>8,t&255,0,0,e>>8,e&255,8,6,0,0,0,0,0,0,0,o>>>24,o>>16&255,o>>8&255,o&255,73,68,65,84,120,1],s=[0,498536548,997073096,651767980,1994146192,1802195444,1303535960,1342533948,-306674912,-267414716,-690576408,-882789492,-1687895376,-2032938284,-1609899400,-1111625188];let a=1,l=0;for(let d=0,p=0,f=n-1;d<e;d++,f+=n-1)for(i.push(d+1<e?0:1,n&255,n>>8,~n&255,n>>8^255,0),l=(l+a)%65521;p<f;p++){const m=r[p]&255;i.push(m),a=(a+m)%65521,l=(l+a)%65521}i.push(l>>8,l&255,a>>8,a&255,0,0,0,0,0,0,0,0,73,69,78,68,174,66,96,130);for(let[d,p]of[[12,29],[37,41+o]]){let f=-1;for(let m=d;m<p;m++)f^=i[m],f=f>>>4^s[f&15],f=f>>>4^s[f&15];f=~f,i[p++]=f>>>24,i[p++]=f>>16&255,i[p++]=f>>8&255,i[p++]=f&255}return`data:image/png;base64,${typeof Buffer<"u"?Buffer.from(new Uint8Array(i)).toString("base64"):btoa(String.fromCharCode(...i))}`}function yu(t){let{PI:e,min:r,max:n,cos:o,round:i}=Math,s=t[0]|t[1]<<8|t[2]<<16,a=t[3]|t[4]<<8,l=(s&63)/63,u=(s>>6&63)/31.5-1,d=(s>>12&63)/31.5-1,p=(s>>18&31)/31,f=s>>23,m=(a>>3&63)/63,$=(a>>9&63)/63,g=a>>15,b=n(3,g?f?5:7:a&7),w=n(3,g?a&7:f?5:7),j=f?(t[5]&15)/15:1,S=(t[5]>>4)/15,P=f?6:5,E=0,R=(D,V,ne)=>{let A=[];for(let Y=0;Y<V;Y++)for(let U=Y?0:1;U*V<D*(V-Y);U++)A.push(((t[P+(E>>1)]>>((E++&1)<<2)&15)/7.5-1)*ne);return A},k=R(b,w,p),h=R(3,3,m*1.25),M=R(3,3,$*1.25),x=f&&R(5,5,S),T=vu(t),N=i(T>1?32:32*T),v=i(T>1?32/T:32),C=new Uint8Array(N*v*4),B=[],G=[];for(let D=0,V=0;D<v;D++)for(let ne=0;ne<N;ne++,V+=4){let A=l,Y=u,U=d,He=j;for(let K=0,J=n(b,f?5:3);K<J;K++)B[K]=o(e/N*(ne+.5)*K);for(let K=0,J=n(w,f?5:3);K<J;K++)G[K]=o(e/v*(D+.5)*K);for(let K=0,J=0;K<w;K++)for(let ee=K?0:1,re=G[K]*2;ee*w<b*(w-K);ee++,J++)A+=k[J]*B[ee]*re;for(let K=0,J=0;K<3;K++)for(let ee=K?0:1,re=G[K]*2;ee<3-K;ee++,J++){let te=B[ee]*re;Y+=h[J]*te,U+=M[J]*te}if(f)for(let K=0,J=0;K<5;K++)for(let ee=K?0:1,re=G[K]*2;ee<5-K;ee++,J++)He+=x[J]*B[ee]*re;let z=A-2/3*Y,ze=(3*A-z+U)/2,le=ze-U;C[V]=n(0,255*r(1,ze)),C[V+1]=n(0,255*r(1,le)),C[V+2]=n(0,255*r(1,z)),C[V+3]=n(0,255*r(1,He))}return{w:N,h:v,rgba:C}}function vu(t){let e=t[3],r=t[2]&128,n=t[4]&128,o=n?r?5:7:e&7,i=n?e&7:r?5:7;return o/i}function xu(t){const{w:e,h:r,rgba:n}=yu(gu(t));return bu(e,r,n)}const Pi=t=>{const{src:e,width:r,height:n,themeName:o="img",tokens:i,customTheme:s,...a}=t,l=I(o,i,s);if(typeof e=="object"){const{blurWidth:u,blurHeight:d,width:p,height:f,...m}=e,$={blurwidth:u,blurheight:d};return c.jsx(Kr,{className:l,...m,...a,...$,width:p??r,height:f??n})}return c.jsx(Kr,{width:r,height:n,className:l,src:e,...a})},$u=process.env.NEXT_PUBLIC_IMG_DOMAIN??"",wu=t=>{const{fit:e,customTheme:r,thumbhash:n,description:o,width:i,height:s,id:a,filenameDownload:l,...u}=t;if(!a||!l)return null;const p=(()=>{try{const f=new URL(`/assets/${a}/${l}`,`https://${$u}`);return f.searchParams.set("fit",e??"contain"),f}catch(f){return console.warn(f),null}})();return p==null?null:c.jsx(Pi,{alt:o??"",...n?{blurDataURL:xu(n),placeholder:"blur"}:{},src:p.href,...u,width:i??void 0,height:s??void 0})},Pu=t=>c.jsx("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:c.jsx("path",{d:"M17.728 13.66 12.388 19 7.05 13.66M12.4 5v14",stroke:"currentColor"})}),Ti=y.memo(Pu,H),Tu=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),Cu=t=>c.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:[c.jsx("g",{children:c.jsx("path",{d:"M.075 11.622a1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l8 8a1.004 1.004 0 0 0 1.42-1.42l-6.3-6.29h19.59a1 1 0 0 0 0-2H3.405l6.3-6.29a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-8 8a1 1 0 0 0-.21.33Z"})}),c.jsx("defs",{children:c.jsx("clipPath",{children:c.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),Ci=y.memo(Cu,H),Su=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),Ru=t=>c.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:[c.jsx("g",{children:c.jsx("path",{d:"M23.92 12.38a1 1 0 0 0 0-.76 1 1 0 0 0-.21-.33l-8-8a1.003 1.003 0 1 0-1.42 1.42l6.3 6.29H1a1 1 0 1 0 0 2h19.59l-6.3 6.29a1 1 0 0 0 0 1.42 1.002 1.002 0 0 0 1.42 0l8-8c.091-.095.162-.207.21-.33Z"})}),c.jsx("defs",{children:c.jsx("clipPath",{children:c.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),Si=y.memo(Ru,H),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Mu=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",viewBox:"0 0 48 48",...t,children:c.jsx("path",{d:"M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Z"})}),Ri=y.memo(Mu,H),ju=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),_u=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",fill:"currentColor",...t,children:c.jsx("path",{d:"M28.05 36 16 23.95 28.05 11.9l2.15 2.15-9.9 9.9 9.9 9.9Z"})}),Ei=y.memo(_u,H),ku=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),Du=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",fill:"currentColor",...t,children:c.jsx("path",{d:"m18.75 36-2.15-2.15 9.9-9.9-9.9-9.9 2.15-2.15L30.8 23.95Z"})}),Mi=y.memo(Du,H),Ou=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Iu=t=>c.jsx("svg",{width:42,height:42,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72",...t,children:c.jsx("path",{d:"M46.75 49.625a1.874 1.874 0 0 1-1.331-.544L35.5 39.144l-9.919 9.937a1.876 1.876 0 0 1-2.662 0 1.873 1.873 0 0 1 0-2.662l9.937-9.919-9.937-9.919a1.883 1.883 0 0 1 2.662-2.662l9.92 9.937 9.918-9.937a1.873 1.873 0 0 1 2.662 0 1.876 1.876 0 0 1 0 2.662l-9.937 9.92 9.937 9.918a1.876 1.876 0 0 1-1.33 3.206Z",fill:"currentColor"})}),ji=y.memo(Iu,H),Au=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Lu=t=>c.jsx("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:c.jsx("path",{d:"M9.161 5.889v2.753H7V12h2.161v10h4.442V12h2.977s.28-1.614.417-3.38h-3.379V6.316a.963.963 0 0 1 .332-.558c.174-.146.396-.233.63-.248H17V2h-3.275C9.063 2 9.173 5.37 9.173 5.889h-.012Z",fill:"currentColor"})}),_i=y.memo(Lu,H),Nu=Object.freeze(Object.defineProperty({__proto__:null,default:_i},Symbol.toStringTag,{value:"Module"})),Bu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"#3b5998",strokeMiterlimit:"10",strokeWidth:"0",d:"M147.5 254.3V139.1h38.7l6-45h-44.7V65.2c0-13 3.6-21.9 22.3-21.9h23.7V3.2c-11.6-1.2-23.1-1.8-34.7-1.8-34.3 0-57.8 20.9-57.8 59.4V94H62.2v45.1H101v115.2h46.5z"})}),ki=y.memo(Bu,H),Ku=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),Fu=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 25",fill:"none",...t,children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12.5001C2 17.4501 5.6 21.5501 10.35 22.4001L10.4094 22.3515C10.4063 22.3509 10.4032 22.3503 10.4001 22.3498V15.2998H7.90015V12.4998H10.4001V10.2998C10.4001 7.79978 12.0001 6.39978 14.3001 6.39978C15.0001 6.39978 15.8001 6.49978 16.5001 6.59978V9.14978H15.2001C14.0001 9.14978 13.7001 9.74978 13.7001 10.5498V12.4998H16.3501L15.9001 15.2998H13.7001V22.3498C13.6696 22.3553 13.639 22.3608 13.6084 22.366L13.65 22.4001C18.4 21.5501 22 17.4501 22 12.5001C22 7.00006 17.5 2.50006 12 2.50006C6.5 2.50006 2 7.00006 2 12.5001Z",fill:"currentColor"})}),Di=y.memo(Fu,H),qu=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),Uu=t=>c.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 67 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[c.jsx("path",{d:"M16.1339 8.5415C18.1397 10.0645 19.8152 11.9792 21.0587 14.1693C22.2848 16.2537 25.064 22.0491 22.5341 25.3227C19.6732 29.0215 11.3848 30.2721 11.3848 33.6807C11.3848 36.2473 15.0181 39.1736 16.9594 42.0386C18.0736 43.6842 18.6691 45.626 18.6691 47.6133C18.6691 49.6006 18.0736 51.5423 16.9594 53.1879C16.0541 54.6088 14.817 55.7884 13.3547 56.6251",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M57.8289 14.8058C52.7905 17.106 47.4837 18.766 42.0327 19.747C39.1227 19.9555 38.6895 17.5605 36.4621 14.1724C34.7905 11.6302 30.8874 8.45055 30.8874 5.81443C30.8648 4.90303 30.9876 3.99386 31.2511 3.12109",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M33.6799 64.3334C50.6088 64.3334 64.3324 50.6098 64.3324 33.6809C64.3324 16.7519 50.6088 3.02832 33.6799 3.02832C16.751 3.02832 3.02734 16.7519 3.02734 33.6809C3.02734 50.6098 16.751 64.3334 33.6799 64.3334Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M53.2225 36.1983C53.341 44.781 42.1549 55.5094 36.4658 53.188C31.4796 51.1445 34.9944 47.2291 33.7193 36.1983C33.188 31.6127 38.0842 27.8404 43.4872 27.8404C45.8806 27.6839 48.24 28.4711 50.0597 30.0335C51.8795 31.5958 53.2225 32.8948 53.2225 36.1983Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Oi=y.memo(Uu,H),Vu=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),Hu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[c.jsx("path",{d:"M253.5 75.7a92.8 92.8 0 0 0-5.8-30.7A62 62 0 0 0 233 22.6 62 62 0 0 0 210.7 8c-8-3-17.2-5.2-30.7-5.8-13.5-.6-17.8-.8-52.1-.8s-38.7.2-52.2.8A92.8 92.8 0 0 0 45 8c-8.4 3.2-16 8.2-22.4 14.6A62 62 0 0 0 8 45c-3 8-5.2 17.3-5.8 30.7a890 890 0 0 0-.8 52.2c0 34.3.2 38.6.8 52.1A92.8 92.8 0 0 0 8 210.7a62 62 0 0 0 14.5 22.4A62 62 0 0 0 45 247.7c8 3.1 17.3 5.2 30.7 5.9 13.5.6 17.8.7 52.2.7s38.6-.1 52-.7a92.8 92.8 0 0 0 30.8-6c17-6.5 30.4-20 37-36.9 3-8 5.2-17.2 5.8-30.7.7-13.5.8-17.8.8-52.1s-.1-38.7-.8-52.2zM230.8 179c-.6 12.3-2.6 19-4.4 23.4-4.2 11-13 19.8-24 24a69.9 69.9 0 0 1-23.4 4.4c-13.4.6-17.4.7-51.1.7-33.8 0-37.8-.1-51.1-.7-12.4-.6-19-2.6-23.5-4.4-5.5-2-10.5-5.2-14.5-9.4-4.2-4.1-7.5-9-9.5-14.6a69.9 69.9 0 0 1-4.4-23.4c-.6-13.4-.7-17.4-.7-51.1s.1-37.8.7-51.1c.6-12.4 2.6-19 4.4-23.5 2-5.5 5.2-10.5 9.4-14.6 4.1-4.2 9-7.4 14.6-9.4a69.9 69.9 0 0 1 23.5-4.4c13.3-.6 17.3-.7 51-.7 33.8 0 37.8.1 51.1.7 12.4.6 19 2.7 23.5 4.4 5.5 2 10.5 5.2 14.6 9.4 4.2 4.1 7.4 9.1 9.4 14.6a69.9 69.9 0 0 1 4.4 23.5c.6 13.3.7 17.3.7 51s-.1 37.8-.7 51.2z"}),c.jsx("path",{d:"M127.9 63a65 65 0 1 0 0 129.8 65 65 0 0 0 0-129.9zm0 107a42.2 42.2 0 1 1 0-84.3 42.2 42.2 0 0 1 0 84.3zM210.5 60.4a15.2 15.2 0 1 1-30.3 0 15.2 15.2 0 0 1 30.3 0z"})]})}),Ii=y.memo(Hu,H),zu=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),Wu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"none",strokeMiterlimit:"10",strokeWidth:"0",transform:"matrix(2.8 0 0 2.8 1.4 1.4)",children:[c.jsxs("linearGradient",{id:"a",x1:"7.6",x2:"82.4",y1:"9.6",y2:"84.4",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{offset:"0%",stopColor:"#ffd600"}),c.jsx("stop",{offset:"50%",stopColor:"#ff0100"}),c.jsx("stop",{offset:"100%",stopColor:"#d800b9"})]}),c.jsx("path",{fill:"url(#a)",d:"M89.7 26.4c-.2-4.7-1-8-2-10.9a22 22 0 0 0-5.3-8 22 22 0 0 0-8-5.1A33 33 0 0 0 63.7.3C58.8 0 57.2 0 45 0S31.2 0 26.4.3c-4.7.2-8 1-10.9 2a22 22 0 0 0-8 5.3 22 22 0 0 0-5.1 8A33 33 0 0 0 .3 26.3C0 31.2 0 32.8 0 45c0 12.2 0 13.8.3 18.6.2 4.7 1 8 2 10.9a22 22 0 0 0 5.3 8c2.2 2.2 5 4 8 5.1a33 33 0 0 0 10.8 2.1c4.8.2 6.4.3 18.6.3s13.8 0 18.6-.3c4.7-.2 8-1 10.9-2a23 23 0 0 0 13.1-13.2 33 33 0 0 0 2.1-11c.2-4.7.3-6.3.3-18.5s0-13.8-.3-18.6zm-8 36.8c-.3 4.4-1 6.8-1.6 8.3-1.5 4-4.6 7-8.6 8.6-1.5.6-4 1.3-8.3 1.5-4.8.2-6.2.3-18.2.3s-13.4 0-18.2-.3a25 25 0 0 1-8.3-1.5 14 14 0 0 1-5.2-3.4 14 14 0 0 1-3.4-5.2c-.6-1.5-1.3-4-1.5-8.3A313 313 0 0 1 8 45c0-12 0-13.4.3-18.2a25 25 0 0 1 1.5-8.3 14 14 0 0 1 3.4-5.2 14 14 0 0 1 5.2-3.4c1.5-.6 4-1.3 8.3-1.5C31.6 8.2 33 8 45 8s13.4 0 18.2.3c4.4.2 6.8.9 8.3 1.5a14 14 0 0 1 5.2 3.4 14 14 0 0 1 3.4 5.2c.6 1.5 1.3 4 1.5 8.3.2 4.8.3 6.2.3 18.2s0 13.4-.3 18.2z"}),c.jsxs("linearGradient",{id:"b",x1:"28.7",x2:"61.3",y1:"30.7",y2:"63.3",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{offset:"0%",stopColor:"#ff6400"}),c.jsx("stop",{offset:"50%",stopColor:"#ff0100"}),c.jsx("stop",{offset:"100%",stopColor:"#fd0056"})]}),c.jsx("path",{fill:"url(#b)",d:"M45 21.9A23.1 23.1 0 1 0 45 68 23.1 23.1 0 0 0 45 22zM45 60a15 15 0 1 1 0-30 15 15 0 0 1 0 30z"}),c.jsxs("linearGradient",{id:"c",x1:"65.2",x2:"72.8",y1:"67.2",y2:"74.8",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{offset:"0%",stopColor:"#f30072"}),c.jsx("stop",{offset:"100%",stopColor:"#e50097"})]}),c.jsx("path",{fill:"url(#c)",d:"M74.4 21a5.4 5.4 0 1 1-10.8 0 5.4 5.4 0 0 1 10.8 0z"})]})}),Ai=y.memo(Wu,H),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Yu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[c.jsx("path",{d:"M61.4 254.3A59.8 59.8 0 0 1 19 151.8L65.8 105a11.2 11.2 0 0 1 15.9 16l-46.8 46.7a37.3 37.3 0 0 0 0 53.1 37.6 37.6 0 0 0 53 0l46.9-46.8a11.2 11.2 0 1 1 15.9 16l-46.8 46.7a59.8 59.8 0 0 1-42.5 17.6zM182 154a11.2 11.2 0 0 1-8-19.2L220.8 88a37.6 37.6 0 0 0-53-53.1l-46.9 46.8a11.2 11.2 0 0 1-15.9-16L151.8 19a59.6 59.6 0 0 1 85 0 60.1 60.1 0 0 1 0 84.9l-46.9 46.8c-2.2 2.2-5 3.3-8 3.3z"}),c.jsx("path",{d:"M72.6 194.3a11.2 11.2 0 0 1-8-19.1L175.3 64.7A11.2 11.2 0 1 1 191 80.6L80.6 191c-2.2 2.2-5.1 3.2-8 3.2z"})]})}),Li=y.memo(Yu,H),Ju=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Qu=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:19,viewBox:"0 0 18 19",fill:"none",...t,children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.79773C0 1.07677 0.604838 0.5 1.33064 0.5H16.6694C17.3952 0.5 18 1.07677 18 1.79773V17.2023C18 17.9232 17.3952 18.5 16.6694 18.5H1.33064C0.604838 18.5 0 17.9232 0 17.2023V1.79773ZM5.44373 15.5677V7.44492H2.73405V15.5677H5.44373ZM4.08889 6.31541C5.03244 6.31541 5.63728 5.69058 5.63728 4.92155C5.61308 4.1285 5.05663 3.52769 4.11308 3.52769C3.19373 3.52769 2.5647 4.1285 2.5647 4.92155C2.5647 5.69058 3.14534 6.31541 4.08889 6.31541ZM9.65304 15.5677H6.94336C6.94336 15.5677 6.99175 8.18991 6.94336 7.44492H9.67723V8.58586C9.66903 8.59819 9.66097 8.6104 9.65304 8.62249H9.67723V8.58586C10.0439 8.03441 10.6772 7.25266 12.1208 7.25266C13.9111 7.25266 15.2417 8.4062 15.2417 10.9055V15.5677H12.5321V11.2179C12.5321 10.1365 12.145 9.39151 11.153 9.39151C10.403 9.39151 9.94336 9.89619 9.74981 10.3768C9.67723 10.5451 9.65304 10.7854 9.65304 11.0257V15.5677Z",fill:"currentColor"})}),Ni=y.memo(Qu,H),Xu=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),Zu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",transform:"matrix(2.8 0 0 2.8 1.4 1.4)",children:[c.jsx("path",{d:"M80.9 78.8H9c-5 0-9.1-4.1-9.1-9.1V20.3c0-5 4-9 9.1-9H81c5 0 9.1 4 9.1 9v49.4c0 5-4 9-9.1 9zM9 17.2A3.1 3.1 0 0 0 6 20.3v49.4c0 1.7 1.4 3 3.1 3H81c1.7 0 3.1-1.3 3.1-3V20.3c0-1.7-1.4-3-3.1-3H9z"}),c.jsx("path",{d:"M45 55.4c-5.4 0-10.6-2.3-14.2-6.3l-28.3-31 4.4-4 28.3 31c2.5 2.8 6 4.3 9.8 4.3 3.8 0 7.3-1.5 9.8-4.3l28.3-31 4.4 4-28.3 31c-3.6 4-8.8 6.3-14.2 6.3z"}),c.jsx("rect",{width:"39",height:"6",x:"-1",y:"57.2",rx:"0",ry:"0",transform:"rotate(-45.1 18.5 60.2)"}),c.jsx("rect",{width:"6",height:"39",x:"68.5",y:"40.7",rx:"0",ry:"0",transform:"rotate(-44.8 71.5 60.2)"})]})}),Bi=y.memo(Zu,H),ed=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),td=t=>c.jsxs("svg",{height:48,width:48,fill:"currentColor",...t,xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("ellipse",{cx:"26",cy:"24.095",rx:"26",ry:"23.547",fill:"#fff"}),c.jsx("path",{d:"M37.742 24.095H14.258M26 13.46V34.73 13.46Z",stroke:"#9E9E9E",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ki=y.memo(td,H),rd=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"})),nd=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M199.75 145.13a54.45 54.45 0 0 0-43.54 21.82l-47.88-23.93c1.4-4.82 2.2-9.9 2.2-15.17a54.3 54.3 0 0 0-2.2-15.16l47.88-23.93a54.45 54.45 0 0 0 43.54 21.82 54.61 54.61 0 0 0 54.56-54.56c0-30.08-24.48-54.56-54.56-54.56s-54.56 24.48-54.56 54.56c0 5.27.79 10.35 2.19 15.17L99.5 95.11A54.45 54.45 0 0 0 55.97 73.3C25.88 73.3 1.4 97.77 1.4 127.86s24.47 54.56 54.56 54.56c17.79 0 33.56-8.6 43.53-21.82l47.88 23.92a54.32 54.32 0 0 0-2.2 15.17c0 30.09 24.48 54.56 54.57 54.56s54.56-24.47 54.56-54.56a54.62 54.62 0 0 0-54.56-54.56zm0-124c19.24 0 34.89 15.65 34.89 34.9s-15.65 34.88-34.9 34.88-34.88-15.65-34.88-34.89 15.65-34.89 34.89-34.89zM55.97 162.75c-19.24 0-34.9-15.65-34.9-34.9s15.66-34.88 34.9-34.88 34.88 15.65 34.88 34.89-15.65 34.89-34.88 34.89zm143.78 71.83a34.93 34.93 0 0 1-34.9-34.89c0-19.24 15.66-34.89 34.9-34.89s34.89 15.65 34.89 34.9a34.93 34.93 0 0 1-34.9 34.88z"})}),Fi=y.memo(nd,H),od=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),id=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M81 231A147 147 0 0 0 228 76c11-7 19-16 26-27-9 5-19 7-29 9 10-7 18-17 22-29-10 6-21 10-33 12a52 52 0 0 0-88 48C83 87 45 66 19 35a52 52 0 0 0 16 69c-8 0-16-3-23-7v1c0 25 17 46 41 51a52 52 0 0 1-23 1c6 20 26 35 48 36a104 104 0 0 1-77 21c23 15 51 24 80 24"})}),qi=y.memo(id,H),sd=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),ad=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"#1da1f2",strokeMiterlimit:"10",strokeWidth:"0",d:"M81 230.6c95.4 0 147.6-79 147.6-147.6 0-2.3 0-4.5-.2-6.7 10.2-7.4 19-16.5 25.9-26.9-9.5 4.2-19.5 7-29.8 8.2a52 52 0 0 0 22.8-28.7 104 104 0 0 1-33 12.6A52 52 0 0 0 126 88.8C84.2 86.7 45.4 67 19 34.6a52 52 0 0 0 16 69.2 51.5 51.5 0 0 1-23.5-6.5v.7c0 24.7 17.4 46 41.6 50.9-7.6 2-15.6 2.4-23.4.9a52 52 0 0 0 48.5 36 104.1 104.1 0 0 1-76.8 21.5A146.9 146.9 0 0 0 81 230.6"})}),Ui=y.memo(ad,H),ld=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),cd=t=>c.jsx("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:c.jsx("path",{d:"M17 21H7a4 4 0 0 1-4-4v-1a1 1 0 1 1 2 0v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 1 2 0v1a4 4 0 0 1-4 4Zm-5-4a1 1 0 0 1-1-1V6.41l-2.29 2.3a1.004 1.004 0 0 1-1.42-1.42l4-4a1 1 0 0 1 .33-.21A1 1 0 0 1 12 3a1 1 0 0 1 .38.08 1 1 0 0 1 .33.21l4 4a1.004 1.004 0 1 1-1.42 1.42L13 6.41V16a1 1 0 0 1-1 1Z",fill:"currentColor"})}),Vi=y.memo(cd,H),ud=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),dd=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 25",fill:"none",...t,children:c.jsx("path",{d:"M14.119 11.7052L20.4486 4.5H18.9492L13.4509 10.7549L9.0626 4.5H4L10.6374 13.9594L4 21.5142H5.4994L11.3021 14.9074L15.9374 21.5142H21M6.04057 5.60727H8.34407L18.9481 20.4613H16.644",fill:"currentColor"})}),Hi=y.memo(dd,H),fd=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),hd=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M249 67c-3-11-11-19-22-22-20-6-99-6-99-6s-79 0-99 6C18 48 10 56 7 67c-6 20-6 61-6 61s0 41 6 61c3 11 11 19 22 22 20 5 99 5 99 5s79 0 99-5c11-3 19-11 22-22 5-20 5-61 5-61s0-41-5-61zm-146 99V90l65 38-65 38z"})}),zi=y.memo(hd,H),pd=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),md=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[c.jsx("path",{fill:"red",d:"M249.02 66.99a31.68 31.68 0 0 0-22.36-22.36c-19.72-5.29-98.8-5.29-98.8-5.29s-79.09 0-98.8 5.29A31.68 31.68 0 0 0 6.68 66.99c-5.28 19.72-5.28 60.87-5.28 60.87s0 41.15 5.28 60.87a31.68 31.68 0 0 0 22.36 22.36c19.72 5.28 98.8 5.28 98.8 5.28s79.1 0 98.81-5.28a31.68 31.68 0 0 0 22.36-22.36c5.29-19.72 5.29-60.87 5.29-60.87s0-41.15-5.29-60.87z"}),c.jsx("path",{fill:"#fff",d:"m102.57 165.8 65.7-37.94-65.7-37.94z"})]})}),Wi=y.memo(md,H),gd=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),[bd,yd]=vo();function vd({children:t}){const[e,r]=y.useState(!1);y.useEffect(()=>{r(!0)},[]);const n=y.useMemo(()=>({isClient:e}),[e]);return c.jsx(yd,{value:n,children:t})}const Et=(t,e,r="sharing_tool")=>`?utm_source=${t}&utm_medium=${e}&utm_campaign=${r}`,Mt=()=>{const[t,e]=y.useState(),[r,n]=y.useState();return y.useEffect(()=>{e(window.location.href),n(window.document.title)},[]),{windowLocation:t,windowTitle:r}},xd=(t,e,r)=>{const{windowLocation:n,windowTitle:o}=Mt(),i=r??n,s=Et(t,e);return`https://www.facebook.com/sharer.php?u=${`${i}${s}`}&t=${o}`},$d=(t,e,r)=>{const{windowLocation:n,windowTitle:o}=Mt(),i=r??n,s=Et(t,e),a=`${i}${s}`;return`mailto:?to=&body=${o}%20${a}`},wd=(t,e,r)=>{const{windowLocation:n}=Mt(),o=r??n,i=Et(t,e);return`https://twitter.com/intent/tweet?text=${`${o}${i}`}`};exports.Accordion=Ja;exports.AccordionContextProvider=wo;exports.AccordionItem=Qa;exports.ArrowDown=Ti;exports.ArrowLeft=Ci;exports.ArrowRight=Si;exports.Box=W;exports.BoxWithForwardRef=Te;exports.Button=ve;exports.ButtonWithForwardRef=Ue;exports.Calendar=li;exports.Check=Ri;exports.Checkbox=bl;exports.CheckboxGroup=Cl;exports.CheckboxGroupItem=Rl;exports.ChevronLeft=Ei;exports.ChevronRight=Mi;exports.CloseBtn=ji;exports.Date=fl;exports.DatePicker=wc;exports.DirectusImg=wu;exports.Facebook=_i;exports.FacebookColored=ki;exports.FacebookRounded=Di;exports.Globe=Oi;exports.Icon=ce;exports.Img=Pi;exports.Instagram=Ii;exports.InstagramColored=Ai;exports.IsClientContextProvider=vd;exports.Lightbox=ll;exports.Link=Li;exports.LinkedIn=Ni;exports.Mail=Bi;exports.Menu=Dc;exports.MenuContextProvider=Mc;exports.MenuItems=mu;exports.MenuSidePanel=Oc;exports.Modal=Rr;exports.Plus=Ki;exports.Popover=ul;exports.Radio=fi;exports.RadioGroup=Rc;exports.RadioGroupProvider=ui;exports.ReactHookFormInput=Ml;exports.ReactHookFormRadio=Pc;exports.ReactHookFormSelect=gl;exports.ReactHookFormTextArea=El;exports.RenderWithSlide=Mo;exports.Select=ko;exports.SelectItem=_o;exports.Share=Fi;exports.ShareButton=Za;exports.SidePanel=jo;exports.SidePanelContextProvider=Eo;exports.TabContainer=pi;exports.TextArea=Lo;exports.TextInputField=No;exports.ThemeContextProvider=ao;exports.ThemeProvider=ba;exports.Twitter=qi;exports.TwitterColored=Ui;exports.Typography=Z;exports.Upload=Vi;exports.WysiwygBlock=dl;exports.X=Hi;exports.YouTube=zi;exports.YouTubeColored=Wi;exports.createThemeProvider=lo;exports.generateUtmTags=Et;exports.makeTheme=io;exports.useAccordionCtx=$o;exports.useAccordionState=Co;exports.useFacebookShareUrl=xd;exports.useIsClient=bd;exports.useMailToShareUrl=$d;exports.useMenu=Ie;exports.useRadioGroupCtx=di;exports.useSidePanel=Sr;exports.useTheme=so;exports.useThemeContext=I;exports.useTwitterShareUrl=wd;exports.useWindow=Mt;
|